blob: e302947d8f2b17536df54d34a43a92118fd176c7 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebcceee2009-04-18 11:20:33 +00003# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Tanya Lattnercf067672008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Bill Wendlingebcceee2009-04-18 11:20:33 +000017# Be Bourne compatible
John Criswell0c38eaf2003-09-10 15:17:25 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Bill Wendlingebcceee2009-04-18 11:20:33 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Wendlingebcceee2009-04-18 11:20:33 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000240# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000260# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Bill Wendlingebcceee2009-04-18 11:20:33 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
Bill Wendlingebcceee2009-04-18 11:20:33 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000749#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000752#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
Bill Wendlinga0833352009-03-12 04:10:09 +0000815ARCH
816ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000830BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000831CVSBUILD
832ENABLE_OPTIMIZED
David Greene2a5a12c2009-04-17 14:50:39 +0000833ENABLE_PROFILING
Reid Spencera773bd52006-08-04 18:18:08 +0000834DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000835ENABLE_EXPENSIVE_CHECKS
836EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000837DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000838JIT
839TARGET_HAS_JIT
840ENABLE_DOXYGEN
841ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000842ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000843TARGETS_TO_BUILD
Douglas Gregor1555a232009-06-16 20:12:29 +0000844LLVM_ENUM_TARGETS
845LLVM_ENUM_ASM_PRINTERS
Reid Spencer65c5d752006-11-05 17:08:18 +0000846ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000847EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000848BINUTILS_INCDIR
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +0000849ENABLE_LLVMC_DYNAMIC
850ENABLE_LLVMC_DYNAMIC_PLUGINS
Reid Spencera773bd52006-08-04 18:18:08 +0000851CXX
852CXXFLAGS
853ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
870GV
871DOTTY
872PERL
873HAVE_PERL
874INSTALL_PROGRAM
875INSTALL_SCRIPT
876INSTALL_DATA
877BZIP2
878DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000879GROFF
880GZIP
881POD2HTML
882POD2MAN
883RUNTEST
884TCLSH
885ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000886OCAMLC
887OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000888OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000889OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000890GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000891INSTALL_LTDL_TRUE
892INSTALL_LTDL_FALSE
893CONVENIENCE_LTDL_TRUE
894CONVENIENCE_LTDL_FALSE
895LIBADD_DL
896ECHO
897AR
898STRIP
899CXXCPP
900F77
901FFLAGS
902ac_ct_F77
903LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000904LLVMGCCCOMMAND
905LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000906LLVMGCC
907LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000908USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000909HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000910HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000911ALLOCA
912MMAP_FILE
913LLVMCC1
914LLVMCC1PLUS
915LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000916LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000917LLVMGCC_VERSION
918LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000919LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000920SHLIBEXT
921LLVM_PREFIX
922LLVM_BINDIR
923LLVM_LIBDIR
924LLVM_DATADIR
925LLVM_DOCSDIR
926LLVM_ETCDIR
927LLVM_INCLUDEDIR
928LLVM_INFODIR
929LLVM_MANDIR
930LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000931BINDINGS_TO_BUILD
932ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000933OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000934ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000935RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000936RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000937LIBOBJS
938LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000939ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000940 ac_precious_vars='build_alias
941host_alias
942target_alias
943CC
944CFLAGS
945LDFLAGS
946CPPFLAGS
947CPP
948CXX
949CXXFLAGS
950CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000951CXXCPP
952F77
953FFLAGS'
954ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000955projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000956projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000957projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000958projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000959projects/llvm-reopt
960projects/llvm-gcc
961projects/llvm-java
962projects/llvm-tv
963projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000964projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000965projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000966
967# Initialize some variables set by options.
968ac_init_help=
969ac_init_version=false
970# The variables have the same names as the options, with
971# dashes changed to underlines.
972cache_file=/dev/null
973exec_prefix=NONE
974no_create=
975no_recursion=
976prefix=NONE
977program_prefix=NONE
978program_suffix=NONE
979program_transform_name=s,x,x,
980silent=
981site=
982srcdir=
983verbose=
984x_includes=NONE
985x_libraries=NONE
986
987# Installation directory options.
988# These are left unexpanded so users can "make install exec_prefix=/foo"
989# and all the variables that are supposed to be based on exec_prefix
990# by default will actually change.
991# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000992# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000993bindir='${exec_prefix}/bin'
994sbindir='${exec_prefix}/sbin'
995libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000996datarootdir='${prefix}/share'
997datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000998sysconfdir='${prefix}/etc'
999sharedstatedir='${prefix}/com'
1000localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001001includedir='${prefix}/include'
1002oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001003docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1004infodir='${datarootdir}/info'
1005htmldir='${docdir}'
1006dvidir='${docdir}'
1007pdfdir='${docdir}'
1008psdir='${docdir}'
1009libdir='${exec_prefix}/lib'
1010localedir='${datarootdir}/locale'
1011mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001012
1013ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001014ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001015for ac_option
1016do
1017 # If the previous option needs an argument, assign it.
1018 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001019 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001020 ac_prev=
1021 continue
1022 fi
1023
Reid Spencera773bd52006-08-04 18:18:08 +00001024 case $ac_option in
1025 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026 *) ac_optarg=yes ;;
1027 esac
John Criswell7a73b802003-06-30 21:59:07 +00001028
1029 # Accept the important Cygnus configure options, so we can diagnose typos.
1030
Reid Spencera773bd52006-08-04 18:18:08 +00001031 case $ac_dashdash$ac_option in
1032 --)
1033 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001034
1035 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036 ac_prev=bindir ;;
1037 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038 bindir=$ac_optarg ;;
1039
1040 -build | --build | --buil | --bui | --bu)
1041 ac_prev=build_alias ;;
1042 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043 build_alias=$ac_optarg ;;
1044
1045 -cache-file | --cache-file | --cache-fil | --cache-fi \
1046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047 ac_prev=cache_file ;;
1048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050 cache_file=$ac_optarg ;;
1051
1052 --config-cache | -C)
1053 cache_file=config.cache ;;
1054
Reid Spencera773bd52006-08-04 18:18:08 +00001055 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001056 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001057 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001058 datadir=$ac_optarg ;;
1059
Reid Spencera773bd52006-08-04 18:18:08 +00001060 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061 | --dataroo | --dataro | --datar)
1062 ac_prev=datarootdir ;;
1063 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065 datarootdir=$ac_optarg ;;
1066
John Criswell7a73b802003-06-30 21:59:07 +00001067 -disable-* | --disable-*)
1068 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001070 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001071 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1072 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001073 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001074 eval enable_$ac_feature=no ;;
1075
1076 -docdir | --docdir | --docdi | --doc | --do)
1077 ac_prev=docdir ;;
1078 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079 docdir=$ac_optarg ;;
1080
1081 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082 ac_prev=dvidir ;;
1083 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001085
1086 -enable-* | --enable-*)
1087 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001089 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001090 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1091 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001092 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001093 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001094
1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097 | --exec | --exe | --ex)
1098 ac_prev=exec_prefix ;;
1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101 | --exec=* | --exe=* | --ex=*)
1102 exec_prefix=$ac_optarg ;;
1103
1104 -gas | --gas | --ga | --g)
1105 # Obsolete; use --with-gas.
1106 with_gas=yes ;;
1107
1108 -help | --help | --hel | --he | -h)
1109 ac_init_help=long ;;
1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111 ac_init_help=recursive ;;
1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113 ac_init_help=short ;;
1114
1115 -host | --host | --hos | --ho)
1116 ac_prev=host_alias ;;
1117 -host=* | --host=* | --hos=* | --ho=*)
1118 host_alias=$ac_optarg ;;
1119
Reid Spencera773bd52006-08-04 18:18:08 +00001120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121 ac_prev=htmldir ;;
1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123 | --ht=*)
1124 htmldir=$ac_optarg ;;
1125
John Criswell7a73b802003-06-30 21:59:07 +00001126 -includedir | --includedir | --includedi | --included | --include \
1127 | --includ | --inclu | --incl | --inc)
1128 ac_prev=includedir ;;
1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130 | --includ=* | --inclu=* | --incl=* | --inc=*)
1131 includedir=$ac_optarg ;;
1132
1133 -infodir | --infodir | --infodi | --infod | --info | --inf)
1134 ac_prev=infodir ;;
1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136 infodir=$ac_optarg ;;
1137
1138 -libdir | --libdir | --libdi | --libd)
1139 ac_prev=libdir ;;
1140 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141 libdir=$ac_optarg ;;
1142
1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144 | --libexe | --libex | --libe)
1145 ac_prev=libexecdir ;;
1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147 | --libexe=* | --libex=* | --libe=*)
1148 libexecdir=$ac_optarg ;;
1149
Reid Spencera773bd52006-08-04 18:18:08 +00001150 -localedir | --localedir | --localedi | --localed | --locale)
1151 ac_prev=localedir ;;
1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153 localedir=$ac_optarg ;;
1154
John Criswell7a73b802003-06-30 21:59:07 +00001155 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001156 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001157 ac_prev=localstatedir ;;
1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001160 localstatedir=$ac_optarg ;;
1161
1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163 ac_prev=mandir ;;
1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165 mandir=$ac_optarg ;;
1166
1167 -nfp | --nfp | --nf)
1168 # Obsolete; use --without-fp.
1169 with_fp=no ;;
1170
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n)
1173 no_create=yes ;;
1174
1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 no_recursion=yes ;;
1178
1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181 | --oldin | --oldi | --old | --ol | --o)
1182 ac_prev=oldincludedir ;;
1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186 oldincludedir=$ac_optarg ;;
1187
1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189 ac_prev=prefix ;;
1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191 prefix=$ac_optarg ;;
1192
1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194 | --program-pre | --program-pr | --program-p)
1195 ac_prev=program_prefix ;;
1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198 program_prefix=$ac_optarg ;;
1199
1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201 | --program-suf | --program-su | --program-s)
1202 ac_prev=program_suffix ;;
1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205 program_suffix=$ac_optarg ;;
1206
1207 -program-transform-name | --program-transform-name \
1208 | --program-transform-nam | --program-transform-na \
1209 | --program-transform-n | --program-transform- \
1210 | --program-transform | --program-transfor \
1211 | --program-transfo | --program-transf \
1212 | --program-trans | --program-tran \
1213 | --progr-tra | --program-tr | --program-t)
1214 ac_prev=program_transform_name ;;
1215 -program-transform-name=* | --program-transform-name=* \
1216 | --program-transform-nam=* | --program-transform-na=* \
1217 | --program-transform-n=* | --program-transform-=* \
1218 | --program-transform=* | --program-transfor=* \
1219 | --program-transfo=* | --program-transf=* \
1220 | --program-trans=* | --program-tran=* \
1221 | --progr-tra=* | --program-tr=* | --program-t=*)
1222 program_transform_name=$ac_optarg ;;
1223
Reid Spencera773bd52006-08-04 18:18:08 +00001224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225 ac_prev=pdfdir ;;
1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227 pdfdir=$ac_optarg ;;
1228
1229 -psdir | --psdir | --psdi | --psd | --ps)
1230 ac_prev=psdir ;;
1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 psdir=$ac_optarg ;;
1233
John Criswell7a73b802003-06-30 21:59:07 +00001234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1236 silent=yes ;;
1237
1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239 ac_prev=sbindir ;;
1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241 | --sbi=* | --sb=*)
1242 sbindir=$ac_optarg ;;
1243
1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246 | --sharedst | --shareds | --shared | --share | --shar \
1247 | --sha | --sh)
1248 ac_prev=sharedstatedir ;;
1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252 | --sha=* | --sh=*)
1253 sharedstatedir=$ac_optarg ;;
1254
1255 -site | --site | --sit)
1256 ac_prev=site ;;
1257 -site=* | --site=* | --sit=*)
1258 site=$ac_optarg ;;
1259
1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261 ac_prev=srcdir ;;
1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263 srcdir=$ac_optarg ;;
1264
1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266 | --syscon | --sysco | --sysc | --sys | --sy)
1267 ac_prev=sysconfdir ;;
1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270 sysconfdir=$ac_optarg ;;
1271
1272 -target | --target | --targe | --targ | --tar | --ta | --t)
1273 ac_prev=target_alias ;;
1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275 target_alias=$ac_optarg ;;
1276
1277 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 verbose=yes ;;
1279
1280 -version | --version | --versio | --versi | --vers | -V)
1281 ac_init_version=: ;;
1282
1283 -with-* | --with-*)
1284 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001286 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001287 { echo "$as_me: error: invalid package name: $ac_package" >&2
1288 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001289 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001290 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001291
1292 -without-* | --without-*)
1293 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001295 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001296 { echo "$as_me: error: invalid package name: $ac_package" >&2
1297 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001298 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001299 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001300
1301 --x)
1302 # Obsolete; use --with-x.
1303 with_x=yes ;;
1304
1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306 | --x-incl | --x-inc | --x-in | --x-i)
1307 ac_prev=x_includes ;;
1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310 x_includes=$ac_optarg ;;
1311
1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314 ac_prev=x_libraries ;;
1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317 x_libraries=$ac_optarg ;;
1318
1319 -*) { echo "$as_me: error: unrecognized option: $ac_option
1320Try \`$0 --help' for more information." >&2
1321 { (exit 1); exit 1; }; }
1322 ;;
1323
1324 *=*)
1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1328 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1329 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001330 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001331 export $ac_envvar ;;
1332
1333 *)
1334 # FIXME: should be removed in autoconf 3.0.
1335 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339 ;;
1340
1341 esac
1342done
1343
1344if test -n "$ac_prev"; then
1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346 { echo "$as_me: error: missing argument to $ac_option" >&2
1347 { (exit 1); exit 1; }; }
1348fi
1349
Reid Spencera773bd52006-08-04 18:18:08 +00001350# Be sure to have absolute directory names.
1351for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352 datadir sysconfdir sharedstatedir localstatedir includedir \
1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001355do
Reid Spencera773bd52006-08-04 18:18:08 +00001356 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001357 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001358 [\\/$]* | ?:[\\/]* ) continue;;
1359 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001360 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001361 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1362 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001363done
1364
1365# There might be people who depend on the old broken behavior: `$host'
1366# used to hold the argument of --host etc.
1367# FIXME: To remove some day.
1368build=$build_alias
1369host=$host_alias
1370target=$target_alias
1371
1372# FIXME: To remove some day.
1373if test "x$host_alias" != x; then
1374 if test "x$build_alias" = x; then
1375 cross_compiling=maybe
1376 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1377 If a cross compiler is detected then cross compile mode will be used." >&2
1378 elif test "x$build_alias" != "x$host_alias"; then
1379 cross_compiling=yes
1380 fi
1381fi
1382
1383ac_tool_prefix=
1384test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385
1386test "$silent" = yes && exec 6>/dev/null
1387
1388
Reid Spencera773bd52006-08-04 18:18:08 +00001389ac_pwd=`pwd` && test -n "$ac_pwd" &&
1390ac_ls_di=`ls -di .` &&
1391ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1392 { echo "$as_me: error: Working directory cannot be determined" >&2
1393 { (exit 1); exit 1; }; }
1394test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395 { echo "$as_me: error: pwd does not report name of working directory" >&2
1396 { (exit 1); exit 1; }; }
1397
1398
John Criswell7a73b802003-06-30 21:59:07 +00001399# Find the source files, if location was not specified.
1400if test -z "$srcdir"; then
1401 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001402 # Try the directory containing this script, then the parent directory.
1403 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001404$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001405 X"$0" : 'X\(//\)[^/]' \| \
1406 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001408echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\/\)[^/].*/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\/\)$/{
1418 s//\1/
1419 q
1420 }
1421 /^X\(\/\).*/{
1422 s//\1/
1423 q
1424 }
1425 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001426 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001427 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001428 srcdir=..
1429 fi
1430else
1431 ac_srcdir_defaulted=no
1432fi
Reid Spencera773bd52006-08-04 18:18:08 +00001433if test ! -r "$srcdir/$ac_unique_file"; then
1434 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1435 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001436 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001437fi
Reid Spencera773bd52006-08-04 18:18:08 +00001438ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1439ac_abs_confdir=`(
1440 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001441 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001442 pwd)`
1443# When building in place, set srcdir=.
1444if test "$ac_abs_confdir" = "$ac_pwd"; then
1445 srcdir=.
1446fi
1447# Remove unnecessary trailing slashes from srcdir.
1448# Double slashes in file names in object file debugging info
1449# mess up M-x gdb in Emacs.
1450case $srcdir in
1451*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452esac
1453for ac_var in $ac_precious_vars; do
1454 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_env_${ac_var}_value=\$${ac_var}
1456 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1458done
John Criswell7a73b802003-06-30 21:59:07 +00001459
1460#
1461# Report the --help message.
1462#
1463if test "$ac_init_help" = "long"; then
1464 # Omit some internal or obsolete options to make the list less imposing.
1465 # This message is too long to be a string in the A/UX 3.1 sh.
1466 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001467\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001468
1469Usage: $0 [OPTION]... [VAR=VALUE]...
1470
1471To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472VAR=VALUE. See below for descriptions of some of the useful variables.
1473
1474Defaults for the options are specified in brackets.
1475
1476Configuration:
1477 -h, --help display this help and exit
1478 --help=short display options specific to this package
1479 --help=recursive display the short help of all the included packages
1480 -V, --version display version information and exit
1481 -q, --quiet, --silent do not print \`checking...' messages
1482 --cache-file=FILE cache test results in FILE [disabled]
1483 -C, --config-cache alias for \`--cache-file=config.cache'
1484 -n, --no-create do not create output files
1485 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1486
John Criswell7a73b802003-06-30 21:59:07 +00001487Installation directories:
1488 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001489 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001491 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001492
1493By default, \`make install' will install all the files in
1494\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1495an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496for instance \`--prefix=\$HOME'.
1497
1498For better control, use the options below.
1499
1500Fine tuning of the installation directories:
1501 --bindir=DIR user executables [EPREFIX/bin]
1502 --sbindir=DIR system admin executables [EPREFIX/sbin]
1503 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001504 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1505 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1506 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1507 --libdir=DIR object code libraries [EPREFIX/lib]
1508 --includedir=DIR C header files [PREFIX/include]
1509 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001510 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1511 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1512 --infodir=DIR info documentation [DATAROOTDIR/info]
1513 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1514 --mandir=DIR man documentation [DATAROOTDIR/man]
1515 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1516 --htmldir=DIR html documentation [DOCDIR]
1517 --dvidir=DIR dvi documentation [DOCDIR]
1518 --pdfdir=DIR pdf documentation [DOCDIR]
1519 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001520_ACEOF
1521
1522 cat <<\_ACEOF
1523
1524System types:
1525 --build=BUILD configure for building on BUILD [guessed]
1526 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1527 --target=TARGET configure for building compilers for TARGET [HOST]
1528_ACEOF
1529fi
1530
1531if test -n "$ac_init_help"; then
1532 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001533 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001534 esac
1535 cat <<\_ACEOF
1536
1537Optional Features:
1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001540 --enable-optimized Compile with optimizations enabled (default is NO)
1541 --enable-profiling Compile with profiling enabled (default is NO)
1542 --enable-assertions Compile with assertion checks enabled (default is
1543 YES)
David Greenea696d242007-06-28 19:36:08 +00001544 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001545 Compile with expensive debug checks enabled (default
1546 is NO)
1547 --enable-debug-runtime Build runtime libs with debug symbols (default is
1548 NO)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001549 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001550 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001551 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001552 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001553 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001554 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001555 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001556 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1557 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001558 --enable-bindings Build specific language bindings:
1559 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001560 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001561 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1562 Win32)
1563 --enable-llvmc-dynamic-plugins
1564 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001565 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001566 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001567 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001568 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001569 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001570 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001571 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001572 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001573 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001574
1575Optional Packages:
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001578 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1579 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001580 --with-llvmgcc Specify location of llvm-gcc driver (default
1581 searches PATH)
1582 --with-llvmgxx Specify location of llvm-g++ driver (default
1583 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001584 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001585 --with-ocaml-libdir Specify install location for ocaml bindings (default
1586 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001587 --with-binutils-include Specify path to binutils/include/ containing
1588 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001589 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001590 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1591 --with-pic try to use only PIC/non-PIC objects [default=use
1592 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001593 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001594 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001595
1596Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001597 CC C compiler command
1598 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001599 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1600 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001601 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1602 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001603 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001604 CXX C++ compiler command
1605 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001606 CXXCPP C++ preprocessor
1607 F77 Fortran 77 compiler command
1608 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001609
1610Use these variables to override the choices made by `configure' or to help
1611it to find libraries and programs with nonstandard names/locations.
1612
1613Report bugs to <llvmbugs@cs.uiuc.edu>.
1614_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001615ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001616fi
1617
1618if test "$ac_init_help" = "recursive"; then
1619 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001620 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001621 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001622 ac_builddir=.
1623
Reid Spencera773bd52006-08-04 18:18:08 +00001624case "$ac_dir" in
1625.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626*)
John Criswell7a73b802003-06-30 21:59:07 +00001627 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001628 # A ".." for each directory in $ac_dir_suffix.
1629 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1630 case $ac_top_builddir_sub in
1631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633 esac ;;
1634esac
1635ac_abs_top_builddir=$ac_pwd
1636ac_abs_builddir=$ac_pwd$ac_dir_suffix
1637# for backward compatibility:
1638ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001639
1640case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001641 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001642 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001643 ac_top_srcdir=$ac_top_builddir_sub
1644 ac_abs_top_srcdir=$ac_pwd ;;
1645 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001646 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001647 ac_top_srcdir=$srcdir
1648 ac_abs_top_srcdir=$srcdir ;;
1649 *) # Relative name.
1650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651 ac_top_srcdir=$ac_top_build_prefix$srcdir
1652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001653esac
Reid Spencera773bd52006-08-04 18:18:08 +00001654ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001655
Reid Spencera773bd52006-08-04 18:18:08 +00001656 cd "$ac_dir" || { ac_status=$?; continue; }
1657 # Check for guested configure.
1658 if test -f "$ac_srcdir/configure.gnu"; then
1659 echo &&
1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661 elif test -f "$ac_srcdir/configure"; then
1662 echo &&
1663 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001664 else
1665 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001666 fi || ac_status=$?
1667 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001668 done
1669fi
1670
Reid Spencera773bd52006-08-04 18:18:08 +00001671test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001672if $ac_init_version; then
1673 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001674llvm configure 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001675generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001676
Reid Spencera773bd52006-08-04 18:18:08 +00001677Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16782002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001679This configure script is free software; the Free Software Foundation
1680gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001681
Tanya Lattnercf067672008-01-17 05:57:22 +00001682Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001683_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001684 exit
John Criswell7a73b802003-06-30 21:59:07 +00001685fi
Reid Spencera773bd52006-08-04 18:18:08 +00001686cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001687This file contains any messages produced by compilers while
1688running configure, to aid debugging if configure makes a mistake.
1689
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001690It was created by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001691generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001692
1693 $ $0 $@
1694
1695_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001696exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001697{
1698cat <<_ASUNAME
1699## --------- ##
1700## Platform. ##
1701## --------- ##
1702
1703hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1704uname -m = `(uname -m) 2>/dev/null || echo unknown`
1705uname -r = `(uname -r) 2>/dev/null || echo unknown`
1706uname -s = `(uname -s) 2>/dev/null || echo unknown`
1707uname -v = `(uname -v) 2>/dev/null || echo unknown`
1708
1709/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1710/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1711
1712/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1713/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1714/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001715/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001716/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1717/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1718/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1719
1720_ASUNAME
1721
1722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723for as_dir in $PATH
1724do
1725 IFS=$as_save_IFS
1726 test -z "$as_dir" && as_dir=.
1727 echo "PATH: $as_dir"
1728done
Reid Spencera773bd52006-08-04 18:18:08 +00001729IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001730
1731} >&5
1732
1733cat >&5 <<_ACEOF
1734
1735
1736## ----------- ##
1737## Core tests. ##
1738## ----------- ##
1739
1740_ACEOF
1741
1742
1743# Keep a trace of the command line.
1744# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001745# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001746# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001747# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001748ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001749ac_configure_args0=
1750ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001751ac_must_keep_next=false
1752for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001753do
John Criswell0c38eaf2003-09-10 15:17:25 +00001754 for ac_arg
1755 do
1756 case $ac_arg in
1757 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1758 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1759 | -silent | --silent | --silen | --sile | --sil)
1760 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001761 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001762 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1763 esac
1764 case $ac_pass in
1765 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1766 2)
1767 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1768 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001769 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001771 case $ac_arg in
1772 *=* | --config-cache | -C | -disable-* | --disable-* \
1773 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1774 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1775 | -with-* | --with-* | -without-* | --without-* | --x)
1776 case "$ac_configure_args0 " in
1777 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1778 esac
1779 ;;
1780 -* ) ac_must_keep_next=true ;;
1781 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001782 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001783 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001784 ;;
1785 esac
1786 done
John Criswell7a73b802003-06-30 21:59:07 +00001787done
John Criswell0c38eaf2003-09-10 15:17:25 +00001788$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1789$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 +00001790
1791# When interrupted or exit'd, cleanup temporary files, and complete
1792# config.log. We remove comments because anyway the quotes in there
1793# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001794# WARNING: Use '\'' to represent an apostrophe within the trap.
1795# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001796trap 'exit_status=$?
1797 # Save into config.log some information that might help in debugging.
1798 {
1799 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001800
John Criswell7a73b802003-06-30 21:59:07 +00001801 cat <<\_ASBOX
1802## ---------------- ##
1803## Cache variables. ##
1804## ---------------- ##
1805_ASBOX
1806 echo
1807 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001808(
1809 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1810 eval ac_val=\$$ac_var
1811 case $ac_val in #(
1812 *${as_nl}*)
1813 case $ac_var in #(
1814 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1815echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1816 esac
1817 case $ac_var in #(
1818 _ | IFS | as_nl) ;; #(
1819 *) $as_unset $ac_var ;;
1820 esac ;;
1821 esac
1822 done
John Criswell7a73b802003-06-30 21:59:07 +00001823 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001824 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1825 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001826 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001827 "s/'\''/'\''\\\\'\'''\''/g;
1828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1829 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001830 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001831 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001832 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001833 esac |
1834 sort
1835)
John Criswell7a73b802003-06-30 21:59:07 +00001836 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001837
1838 cat <<\_ASBOX
1839## ----------------- ##
1840## Output variables. ##
1841## ----------------- ##
1842_ASBOX
1843 echo
1844 for ac_var in $ac_subst_vars
1845 do
Reid Spencera773bd52006-08-04 18:18:08 +00001846 eval ac_val=\$$ac_var
1847 case $ac_val in
1848 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1849 esac
1850 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001851 done | sort
1852 echo
1853
1854 if test -n "$ac_subst_files"; then
1855 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001856## ------------------- ##
1857## File substitutions. ##
1858## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001859_ASBOX
1860 echo
1861 for ac_var in $ac_subst_files
1862 do
Reid Spencera773bd52006-08-04 18:18:08 +00001863 eval ac_val=\$$ac_var
1864 case $ac_val in
1865 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866 esac
1867 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001868 done | sort
1869 echo
1870 fi
1871
John Criswell7a73b802003-06-30 21:59:07 +00001872 if test -s confdefs.h; then
1873 cat <<\_ASBOX
1874## ----------- ##
1875## confdefs.h. ##
1876## ----------- ##
1877_ASBOX
1878 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001879 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001880 echo
1881 fi
1882 test "$ac_signal" != 0 &&
1883 echo "$as_me: caught signal $ac_signal"
1884 echo "$as_me: exit $exit_status"
1885 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001886 rm -f core *.core core.conftest.* &&
1887 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001888 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001889' 0
John Criswell7a73b802003-06-30 21:59:07 +00001890for ac_signal in 1 2 13 15; do
1891 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1892done
1893ac_signal=0
1894
1895# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001896rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001897
1898# Predefined preprocessor variables.
1899
1900cat >>confdefs.h <<_ACEOF
1901#define PACKAGE_NAME "$PACKAGE_NAME"
1902_ACEOF
1903
1904
1905cat >>confdefs.h <<_ACEOF
1906#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1907_ACEOF
1908
1909
1910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE_VERSION "$PACKAGE_VERSION"
1912_ACEOF
1913
1914
1915cat >>confdefs.h <<_ACEOF
1916#define PACKAGE_STRING "$PACKAGE_STRING"
1917_ACEOF
1918
1919
1920cat >>confdefs.h <<_ACEOF
1921#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1922_ACEOF
1923
1924
1925# Let the site file select an alternate cache file if it wants to.
1926# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001927if test -n "$CONFIG_SITE"; then
1928 set x "$CONFIG_SITE"
1929elif test "x$prefix" != xNONE; then
1930 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1931else
1932 set x "$ac_default_prefix/share/config.site" \
1933 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001934fi
Reid Spencera773bd52006-08-04 18:18:08 +00001935shift
1936for ac_site_file
1937do
John Criswell7a73b802003-06-30 21:59:07 +00001938 if test -r "$ac_site_file"; then
1939 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1940echo "$as_me: loading site script $ac_site_file" >&6;}
1941 sed 's/^/| /' "$ac_site_file" >&5
1942 . "$ac_site_file"
1943 fi
1944done
1945
1946if test -r "$cache_file"; then
1947 # Some versions of bash will fail to source /dev/null (special
1948 # files actually), so we avoid doing that.
1949 if test -f "$cache_file"; then
1950 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1951echo "$as_me: loading cache $cache_file" >&6;}
1952 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001953 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1954 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001955 esac
1956 fi
1957else
1958 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1959echo "$as_me: creating cache $cache_file" >&6;}
1960 >$cache_file
1961fi
1962
1963# Check that the precious variables saved in the cache have kept the same
1964# value.
1965ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001966for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001967 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1968 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001969 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1970 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001971 case $ac_old_set,$ac_new_set in
1972 set,)
1973 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1974echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1975 ac_cache_corrupted=: ;;
1976 ,set)
1977 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1978echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1979 ac_cache_corrupted=: ;;
1980 ,);;
1981 *)
1982 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001983 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001984echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001985 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001986echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001987 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001988echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001989 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001990 fi;;
1991 esac
1992 # Pass precious variables to config.status.
1993 if test "$ac_new_set" = set; then
1994 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001995 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001996 *) ac_arg=$ac_var=$ac_new_val ;;
1997 esac
1998 case " $ac_configure_args " in
1999 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2000 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2001 esac
2002 fi
2003done
2004if $ac_cache_corrupted; then
2005 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2006echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2007 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2008echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2009 { (exit 1); exit 1; }; }
2010fi
2011
Reid Spencera773bd52006-08-04 18:18:08 +00002012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
John Criswell7a73b802003-06-30 21:59:07 +00002036ac_ext=c
2037ac_cpp='$CPP $CPPFLAGS'
2038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2040ac_compiler_gnu=$ac_cv_c_compiler_gnu
2041
2042
2043
Tanya Lattnercf067672008-01-17 05:57:22 +00002044LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002045
2046
2047
2048
2049
2050
2051
John Criswell7a73b802003-06-30 21:59:07 +00002052ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002053for ac_dir in autoconf "$srcdir"/autoconf; do
2054 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/install-sh -c"
2057 break
Reid Spencera773bd52006-08-04 18:18:08 +00002058 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002059 ac_aux_dir=$ac_dir
2060 ac_install_sh="$ac_aux_dir/install.sh -c"
2061 break
Reid Spencera773bd52006-08-04 18:18:08 +00002062 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002063 ac_aux_dir=$ac_dir
2064 ac_install_sh="$ac_aux_dir/shtool install -c"
2065 break
2066 fi
2067done
2068if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002069 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2070echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002071 { (exit 1); exit 1; }; }
2072fi
Reid Spencera773bd52006-08-04 18:18:08 +00002073
2074# These three variables are undocumented and unsupported,
2075# and are intended to be withdrawn in a future Autoconf release.
2076# They can cause serious problems if a builder's source tree is in a directory
2077# whose full name contains unusual characters.
2078ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2079ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2080ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2081
John Criswell7a73b802003-06-30 21:59:07 +00002082
John Criswell392aaa32003-07-22 19:18:09 +00002083
Reid Spencer2706f8c2004-09-19 23:53:36 +00002084if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002085 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2086 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002087echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2088 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002089 fi
John Criswell93e1c722003-09-15 17:04:06 +00002090fi
2091
John Criswell33a911a2003-11-25 20:36:46 +00002092for i in `ls ${srcdir}/projects`
2093do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002094 if test -d ${srcdir}/projects/${i} ; then
2095 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002096 CVS) ;;
2097 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002098 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002099 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002100 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002101 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002102 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002103 # llvm-test is the old name of the test-suite, kept here for backwards
2104 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002105 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002106 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002107 test-suite) subdirs="$subdirs projects/test-suite"
2108 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002109 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002110;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002111 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002112 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002113 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002114 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002115 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002116 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002117 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002118 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002119 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002120 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002121 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002122 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002123 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002124 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2125echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002126 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002127 esac
John Criswell33a911a2003-11-25 20:36:46 +00002128 fi
2129done
John Criswell559a6c12003-09-30 16:31:48 +00002130
John Criswell7a73b802003-06-30 21:59:07 +00002131
2132# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002133$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2134 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2135echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002136 { (exit 1); exit 1; }; }
2137
Reid Spencera773bd52006-08-04 18:18:08 +00002138{ echo "$as_me:$LINENO: checking build system type" >&5
2139echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002140if test "${ac_cv_build+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142else
Reid Spencera773bd52006-08-04 18:18:08 +00002143 ac_build_alias=$build_alias
2144test "x$ac_build_alias" = x &&
2145 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2146test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002147 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2148echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2149 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002150ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2151 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2152echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002153 { (exit 1); exit 1; }; }
2154
2155fi
Reid Spencera773bd52006-08-04 18:18:08 +00002156{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2157echo "${ECHO_T}$ac_cv_build" >&6; }
2158case $ac_cv_build in
2159*-*-*) ;;
2160*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2161echo "$as_me: error: invalid value of canonical build" >&2;}
2162 { (exit 1); exit 1; }; };;
2163esac
John Criswell7a73b802003-06-30 21:59:07 +00002164build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002165ac_save_IFS=$IFS; IFS='-'
2166set x $ac_cv_build
2167shift
2168build_cpu=$1
2169build_vendor=$2
2170shift; shift
2171# Remember, the first character of IFS is used to create $*,
2172# except with old shells:
2173build_os=$*
2174IFS=$ac_save_IFS
2175case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002176
2177
Reid Spencera773bd52006-08-04 18:18:08 +00002178{ echo "$as_me:$LINENO: checking host system type" >&5
2179echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002180if test "${ac_cv_host+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182else
Reid Spencera773bd52006-08-04 18:18:08 +00002183 if test "x$host_alias" = x; then
2184 ac_cv_host=$ac_cv_build
2185else
2186 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2187 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2188echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002189 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002190fi
John Criswell7a73b802003-06-30 21:59:07 +00002191
2192fi
Reid Spencera773bd52006-08-04 18:18:08 +00002193{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2194echo "${ECHO_T}$ac_cv_host" >&6; }
2195case $ac_cv_host in
2196*-*-*) ;;
2197*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2198echo "$as_me: error: invalid value of canonical host" >&2;}
2199 { (exit 1); exit 1; }; };;
2200esac
John Criswell7a73b802003-06-30 21:59:07 +00002201host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002202ac_save_IFS=$IFS; IFS='-'
2203set x $ac_cv_host
2204shift
2205host_cpu=$1
2206host_vendor=$2
2207shift; shift
2208# Remember, the first character of IFS is used to create $*,
2209# except with old shells:
2210host_os=$*
2211IFS=$ac_save_IFS
2212case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002213
2214
Reid Spencera773bd52006-08-04 18:18:08 +00002215{ echo "$as_me:$LINENO: checking target system type" >&5
2216echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002217if test "${ac_cv_target+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
Reid Spencera773bd52006-08-04 18:18:08 +00002220 if test "x$target_alias" = x; then
2221 ac_cv_target=$ac_cv_host
2222else
2223 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2224 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2225echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002226 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002227fi
John Criswell7a73b802003-06-30 21:59:07 +00002228
2229fi
Reid Spencera773bd52006-08-04 18:18:08 +00002230{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2231echo "${ECHO_T}$ac_cv_target" >&6; }
2232case $ac_cv_target in
2233*-*-*) ;;
2234*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2235echo "$as_me: error: invalid value of canonical target" >&2;}
2236 { (exit 1); exit 1; }; };;
2237esac
John Criswell7a73b802003-06-30 21:59:07 +00002238target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002239ac_save_IFS=$IFS; IFS='-'
2240set x $ac_cv_target
2241shift
2242target_cpu=$1
2243target_vendor=$2
2244shift; shift
2245# Remember, the first character of IFS is used to create $*,
2246# except with old shells:
2247target_os=$*
2248IFS=$ac_save_IFS
2249case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002250
2251
2252# The aliases save the names the user supplied, while $host etc.
2253# will get canonicalized.
2254test -n "$target_alias" &&
2255 test "$program_prefix$program_suffix$program_transform_name" = \
2256 NONENONEs,x,x, &&
2257 program_prefix=${target_alias}-
2258
Reid Spencera773bd52006-08-04 18:18:08 +00002259{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2260echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002261if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002264 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002265 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268 llvm_cv_os_type="AIX"
2269 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002270 *-*-irix*)
2271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273 llvm_cv_os_type="IRIX"
2274 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002275 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002278 llvm_cv_os_type="Cygwin"
2279 llvm_cv_platform_type="Unix" ;;
2280 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002281 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002282 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002283 llvm_cv_os_type="Darwin"
2284 llvm_cv_platform_type="Unix" ;;
2285 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002288 llvm_cv_os_type="FreeBSD"
2289 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002290 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002291 llvm_cv_link_all_option="-Wl,--whole-archive"
2292 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002293 llvm_cv_os_type="OpenBSD"
2294 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002295 *-*-netbsd*)
2296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298 llvm_cv_os_type="NetBSD"
2299 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002300 *-*-dragonfly*)
2301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303 llvm_cv_os_type="DragonFly"
2304 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002305 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002308 llvm_cv_os_type="HP-UX"
2309 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002310 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002313 llvm_cv_os_type="Interix"
2314 llvm_cv_platform_type="Unix" ;;
2315 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002318 llvm_cv_os_type="Linux"
2319 llvm_cv_platform_type="Unix" ;;
2320 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002321 llvm_cv_link_all_option="-Wl,-z,allextract"
2322 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002323 llvm_cv_os_type="SunOS"
2324 llvm_cv_platform_type="Unix" ;;
2325 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002326 llvm_cv_link_all_option="-Wl,--whole-archive"
2327 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002328 llvm_cv_os_type="Win32"
2329 llvm_cv_platform_type="Win32" ;;
2330 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002331 llvm_cv_link_all_option="-Wl,--whole-archive"
2332 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002333 llvm_cv_os_type="MingW"
2334 llvm_cv_platform_type="Win32" ;;
2335 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002336 llvm_cv_link_all_option=""
2337 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002338 llvm_cv_os_type="Unknown"
2339 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002340esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002341fi
Reid Spencera773bd52006-08-04 18:18:08 +00002342{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2343echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002344
Reid Spencer7b3e8512004-12-24 06:29:05 +00002345if test "$llvm_cv_os_type" = "Unknown" ; then
2346 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2347echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002348 { (exit 1); exit 1; }; }
2349fi
2350
Reid Spencer7b3e8512004-12-24 06:29:05 +00002351OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002352
2353
Reid Spencera773bd52006-08-04 18:18:08 +00002354LINKALL=$llvm_cv_link_all_option
2355
2356NOLINKALL=$llvm_cv_no_link_all_option
2357
2358
Reid Spencer7b3e8512004-12-24 06:29:05 +00002359case $llvm_cv_platform_type in
2360 Unix)
2361
2362cat >>confdefs.h <<\_ACEOF
2363#define LLVM_ON_UNIX 1
2364_ACEOF
2365
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002366 LLVM_ON_UNIX=1
2367
2368 LLVM_ON_WIN32=0
2369
Reid Spencer7b3e8512004-12-24 06:29:05 +00002370 ;;
2371 Win32)
2372
2373cat >>confdefs.h <<\_ACEOF
2374#define LLVM_ON_WIN32 1
2375_ACEOF
2376
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002377 LLVM_ON_UNIX=0
2378
2379 LLVM_ON_WIN32=1
2380
Reid Spencer7b3e8512004-12-24 06:29:05 +00002381 ;;
2382esac
2383
Reid Spencera773bd52006-08-04 18:18:08 +00002384{ echo "$as_me:$LINENO: checking target architecture" >&5
2385echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002386if test "${llvm_cv_target_arch+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2388else
2389 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002390 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002391 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002392 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2393 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002394 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002395 ia64-*) llvm_cv_target_arch="IA64" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002396 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002397 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002398 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002399 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002400 msp430-*) llvm_cv_target_arch="MSP430" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002401 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002402esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403fi
Reid Spencera773bd52006-08-04 18:18:08 +00002404{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2405echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002406
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002407if test "$llvm_cv_target_arch" = "Unknown" ; then
2408 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2409echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2410fi
John Criswell76595452003-07-01 22:07:39 +00002411
Douglas Gregor0711c302009-06-17 00:43:20 +00002412# Determine the LLVM native architecture for the target
2413case "$llvm_cv_target_arch" in
2414 x86) LLVM_NATIVE_ARCH="X86" ;;
2415 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2416 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2417esac
2418
Bill Wendlinga0833352009-03-12 04:10:09 +00002419ARCH=$llvm_cv_target_arch
2420
2421
2422ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423ac_cpp='$CPP $CPPFLAGS'
2424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2426ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002427if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002428 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2429set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002432if test "${ac_cv_prog_CC+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2434else
2435 if test -n "$CC"; then
2436 ac_cv_prog_CC="$CC" # Let the user override the test.
2437else
2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439for as_dir in $PATH
2440do
2441 IFS=$as_save_IFS
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002444 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 +00002445 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 break 2
2448 fi
2449done
2450done
Reid Spencera773bd52006-08-04 18:18:08 +00002451IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002452
2453fi
2454fi
2455CC=$ac_cv_prog_CC
2456if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002457 { echo "$as_me:$LINENO: result: $CC" >&5
2458echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459else
Reid Spencera773bd52006-08-04 18:18:08 +00002460 { echo "$as_me:$LINENO: result: no" >&5
2461echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002462fi
2463
Reid Spencera773bd52006-08-04 18:18:08 +00002464
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002465fi
2466if test -z "$ac_cv_prog_CC"; then
2467 ac_ct_CC=$CC
2468 # Extract the first word of "gcc", so it can be a program name with args.
2469set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002472if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2474else
2475 if test -n "$ac_ct_CC"; then
2476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2477else
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479for as_dir in $PATH
2480do
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002484 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 +00002485 ac_cv_prog_ac_ct_CC="gcc"
2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 break 2
2488 fi
2489done
2490done
Reid Spencera773bd52006-08-04 18:18:08 +00002491IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002492
2493fi
2494fi
2495ac_ct_CC=$ac_cv_prog_ac_ct_CC
2496if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002497 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2498echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002499else
Reid Spencera773bd52006-08-04 18:18:08 +00002500 { echo "$as_me:$LINENO: result: no" >&5
2501echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002502fi
2503
Reid Spencera773bd52006-08-04 18:18:08 +00002504 if test "x$ac_ct_CC" = x; then
2505 CC=""
2506 else
2507 case $cross_compiling:$ac_tool_warned in
2508yes:)
2509{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2510whose name does not start with the host triplet. If you think this
2511configuration is useful to you, please write to autoconf@gnu.org." >&5
2512echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2513whose name does not start with the host triplet. If you think this
2514configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2515ac_tool_warned=yes ;;
2516esac
2517 CC=$ac_ct_CC
2518 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002519else
2520 CC="$ac_cv_prog_CC"
2521fi
2522
2523if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002524 if test -n "$ac_tool_prefix"; then
2525 # 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 +00002526set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002527{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002529if test "${ac_cv_prog_CC+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2531else
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2534else
2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002541 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 +00002542 ac_cv_prog_CC="${ac_tool_prefix}cc"
2543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 break 2
2545 fi
2546done
2547done
Reid Spencera773bd52006-08-04 18:18:08 +00002548IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002549
2550fi
2551fi
2552CC=$ac_cv_prog_CC
2553if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002554 { echo "$as_me:$LINENO: result: $CC" >&5
2555echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002556else
Reid Spencera773bd52006-08-04 18:18:08 +00002557 { echo "$as_me:$LINENO: result: no" >&5
2558echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002559fi
2560
Reid Spencera773bd52006-08-04 18:18:08 +00002561
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002562 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002563fi
2564if test -z "$CC"; then
2565 # Extract the first word of "cc", so it can be a program name with args.
2566set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002567{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002569if test "${ac_cv_prog_CC+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571else
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2574else
2575 ac_prog_rejected=no
2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577for as_dir in $PATH
2578do
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002582 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 +00002583 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2584 ac_prog_rejected=yes
2585 continue
2586 fi
2587 ac_cv_prog_CC="cc"
2588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2590 fi
2591done
2592done
Reid Spencera773bd52006-08-04 18:18:08 +00002593IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002594
2595if test $ac_prog_rejected = yes; then
2596 # We found a bogon in the path, so make sure we never use it.
2597 set dummy $ac_cv_prog_CC
2598 shift
2599 if test $# != 0; then
2600 # We chose a different compiler from the bogus one.
2601 # However, it has the same basename, so the bogon will be chosen
2602 # first if we set CC to just the basename; use the full file name.
2603 shift
2604 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2605 fi
2606fi
2607fi
2608fi
2609CC=$ac_cv_prog_CC
2610if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002611 { echo "$as_me:$LINENO: result: $CC" >&5
2612echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002613else
Reid Spencera773bd52006-08-04 18:18:08 +00002614 { echo "$as_me:$LINENO: result: no" >&5
2615echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002616fi
2617
Reid Spencera773bd52006-08-04 18:18:08 +00002618
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002619fi
2620if test -z "$CC"; then
2621 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002622 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002623 do
2624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2625set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002626{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631 if test -n "$CC"; then
2632 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002633else
2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635for as_dir in $PATH
2636do
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002640 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 +00002641 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 break 2
2644 fi
2645done
2646done
Reid Spencera773bd52006-08-04 18:18:08 +00002647IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002648
2649fi
2650fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002651CC=$ac_cv_prog_CC
2652if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002653 { echo "$as_me:$LINENO: result: $CC" >&5
2654echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002655else
Reid Spencera773bd52006-08-04 18:18:08 +00002656 { echo "$as_me:$LINENO: result: no" >&5
2657echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002658fi
2659
Reid Spencera773bd52006-08-04 18:18:08 +00002660
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002661 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002662 done
2663fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002664if test -z "$CC"; then
2665 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002666 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002667do
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002672if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002673 echo $ECHO_N "(cached) $ECHO_C" >&6
2674else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002675 if test -n "$ac_ct_CC"; then
2676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002677else
2678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679for as_dir in $PATH
2680do
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002684 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 +00002685 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2688 fi
2689done
2690done
Reid Spencera773bd52006-08-04 18:18:08 +00002691IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002692
2693fi
2694fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002695ac_ct_CC=$ac_cv_prog_ac_ct_CC
2696if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002697 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2698echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002699else
Reid Spencera773bd52006-08-04 18:18:08 +00002700 { echo "$as_me:$LINENO: result: no" >&5
2701echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002702fi
2703
Reid Spencera773bd52006-08-04 18:18:08 +00002704
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002705 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002706done
John Criswell7a73b802003-06-30 21:59:07 +00002707
Reid Spencera773bd52006-08-04 18:18:08 +00002708 if test "x$ac_ct_CC" = x; then
2709 CC=""
2710 else
2711 case $cross_compiling:$ac_tool_warned in
2712yes:)
2713{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2714whose name does not start with the host triplet. If you think this
2715configuration is useful to you, please write to autoconf@gnu.org." >&5
2716echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2717whose name does not start with the host triplet. If you think this
2718configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2719ac_tool_warned=yes ;;
2720esac
2721 CC=$ac_ct_CC
2722 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002723fi
2724
John Criswell7a73b802003-06-30 21:59:07 +00002725fi
2726
2727
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002728test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2729See \`config.log' for more details." >&5
2730echo "$as_me: error: no acceptable C compiler found in \$PATH
2731See \`config.log' for more details." >&2;}
2732 { (exit 1); exit 1; }; }
2733
John Criswell7a73b802003-06-30 21:59:07 +00002734# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002735echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002736ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002737{ (ac_try="$ac_compiler --version >&5"
2738case "(($ac_try" in
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2741esac
2742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002747{ (ac_try="$ac_compiler -v >&5"
2748case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751esac
2752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002754 ac_status=$?
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002757{ (ac_try="$ac_compiler -V >&5"
2758case "(($ac_try" in
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2761esac
2762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }
2767
2768cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002769/* confdefs.h. */
2770_ACEOF
2771cat confdefs.h >>conftest.$ac_ext
2772cat >>conftest.$ac_ext <<_ACEOF
2773/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002774
John Criswell7a73b802003-06-30 21:59:07 +00002775int
2776main ()
2777{
2778
2779 ;
2780 return 0;
2781}
2782_ACEOF
2783ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002784ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002785# Try to create an executable without -o first, disregard a.out.
2786# It will help us diagnose broken compilers, and finding out an intuition
2787# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002788{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2789echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002790ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002791#
2792# List of possible output files, starting from the most likely.
2793# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2794# only as a last resort. b.out is created by i960 compilers.
2795ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2796#
2797# The IRIX 6 linker writes into existing files which may not be
2798# executable, retaining their permissions. Remove them first so a
2799# subsequent execution test works.
2800ac_rmfiles=
2801for ac_file in $ac_files
2802do
2803 case $ac_file in
2804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2805 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2806 esac
2807done
2808rm -f $ac_rmfiles
2809
2810if { (ac_try="$ac_link_default"
2811case "(($ac_try" in
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2814esac
2815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002817 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002820 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2821# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2822# in a Makefile. We should not override ac_cv_exeext if it was cached,
2823# so that the user can short-circuit this test for compilers unknown to
2824# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002825for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002826do
2827 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002828 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002830 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002831 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002832 # We found the default executable, but exeext='' is most
2833 # certainly right.
2834 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002835 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002836 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2837 then :; else
2838 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2839 fi
2840 # We set ac_cv_exeext here because the later test for it is not
2841 # safe: cross compilers may not add the suffix if given an `-o'
2842 # argument, so we may need to know it at that point already.
2843 # Even if this section looks crufty: it has the advantage of
2844 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002845 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002846 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002847 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002848 esac
2849done
Reid Spencera773bd52006-08-04 18:18:08 +00002850test "$ac_cv_exeext" = no && ac_cv_exeext=
2851
John Criswell7a73b802003-06-30 21:59:07 +00002852else
2853 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002854sed 's/^/| /' conftest.$ac_ext >&5
2855
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002856{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002857See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002858echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002859See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002860 { (exit 77); exit 77; }; }
2861fi
2862
2863ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002864{ echo "$as_me:$LINENO: result: $ac_file" >&5
2865echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002866
Reid Spencera773bd52006-08-04 18:18:08 +00002867# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002868# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002869{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2870echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002871# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2872# If not cross compiling, check that we can run a simple program.
2873if test "$cross_compiling" != yes; then
2874 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002875 { (case "(($ac_try" in
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2878esac
2879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; }; then
2884 cross_compiling=no
2885 else
2886 if test "$cross_compiling" = maybe; then
2887 cross_compiling=yes
2888 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002889 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002890If you meant to cross compile, use \`--host'.
2891See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002892echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002893If you meant to cross compile, use \`--host'.
2894See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002895 { (exit 1); exit 1; }; }
2896 fi
2897 fi
2898fi
Reid Spencera773bd52006-08-04 18:18:08 +00002899{ echo "$as_me:$LINENO: result: yes" >&5
2900echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002901
John Criswell0c38eaf2003-09-10 15:17:25 +00002902rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002903ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002904# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002905# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002906{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2907echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2908{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2909echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002910
Reid Spencera773bd52006-08-04 18:18:08 +00002911{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2912echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2913if { (ac_try="$ac_link"
2914case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917esac
2918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; then
2923 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2924# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2925# work properly (i.e., refer to `conftest.exe'), while it won't with
2926# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002927for ac_file in conftest.exe conftest conftest.*; do
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 ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002931 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002932 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002933 * ) break;;
2934 esac
2935done
2936else
John Criswell0c38eaf2003-09-10 15:17:25 +00002937 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2938See \`config.log' for more details." >&5
2939echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2940See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002941 { (exit 1); exit 1; }; }
2942fi
2943
2944rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002945{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2946echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002947
2948rm -f conftest.$ac_ext
2949EXEEXT=$ac_cv_exeext
2950ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002951{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2952echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002953if test "${ac_cv_objext+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2955else
2956 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002957/* confdefs.h. */
2958_ACEOF
2959cat confdefs.h >>conftest.$ac_ext
2960cat >>conftest.$ac_ext <<_ACEOF
2961/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002962
John Criswell7a73b802003-06-30 21:59:07 +00002963int
2964main ()
2965{
2966
2967 ;
2968 return 0;
2969}
2970_ACEOF
2971rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002972if { (ac_try="$ac_compile"
2973case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976esac
2977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002982 for ac_file in conftest.o conftest.obj conftest.*; do
2983 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002984 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002986 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2987 break;;
2988 esac
2989done
2990else
2991 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002992sed 's/^/| /' conftest.$ac_ext >&5
2993
2994{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2995See \`config.log' for more details." >&5
2996echo "$as_me: error: cannot compute suffix of object files: cannot compile
2997See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002998 { (exit 1); exit 1; }; }
2999fi
3000
3001rm -f conftest.$ac_cv_objext conftest.$ac_ext
3002fi
Reid Spencera773bd52006-08-04 18:18:08 +00003003{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3004echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003005OBJEXT=$ac_cv_objext
3006ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003007{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3008echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003009if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011else
3012 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003013/* confdefs.h. */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003018
John Criswell7a73b802003-06-30 21:59:07 +00003019int
3020main ()
3021{
3022#ifndef __GNUC__
3023 choke me
3024#endif
3025
3026 ;
3027 return 0;
3028}
3029_ACEOF
3030rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003031if { (ac_try="$ac_compile"
3032case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003038 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003043 (exit $ac_status); } &&
3044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3045 { (case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048esac
3049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_try") 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; } &&
3054 { ac_try='test -s conftest.$ac_objext'
3055 { (case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058esac
3059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_try") 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003064 ac_compiler_gnu=yes
3065else
3066 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003067sed 's/^/| /' conftest.$ac_ext >&5
3068
Reid Spencera773bd52006-08-04 18:18:08 +00003069 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003070fi
Reid Spencera773bd52006-08-04 18:18:08 +00003071
3072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003073ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003074
3075fi
Reid Spencera773bd52006-08-04 18:18:08 +00003076{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3077echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003078GCC=`test $ac_compiler_gnu = yes && echo yes`
3079ac_test_CFLAGS=${CFLAGS+set}
3080ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003081{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3082echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003083if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085else
Reid Spencera773bd52006-08-04 18:18:08 +00003086 ac_save_c_werror_flag=$ac_c_werror_flag
3087 ac_c_werror_flag=yes
3088 ac_cv_prog_cc_g=no
3089 CFLAGS="-g"
3090 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003091/* confdefs.h. */
3092_ACEOF
3093cat confdefs.h >>conftest.$ac_ext
3094cat >>conftest.$ac_ext <<_ACEOF
3095/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003096
John Criswell7a73b802003-06-30 21:59:07 +00003097int
3098main ()
3099{
3100
3101 ;
3102 return 0;
3103}
3104_ACEOF
3105rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003106if { (ac_try="$ac_compile"
3107case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110esac
3111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003113 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003114 grep -v '^ *+' conftest.er1 >conftest.err
3115 rm -f conftest.er1
3116 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003118 (exit $ac_status); } &&
3119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3120 { (case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123esac
3124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_try") 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; } &&
3129 { ac_try='test -s conftest.$ac_objext'
3130 { (case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
3134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_try") 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003139 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003140else
3141 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003142sed 's/^/| /' conftest.$ac_ext >&5
3143
Reid Spencera773bd52006-08-04 18:18:08 +00003144 CFLAGS=""
3145 cat >conftest.$ac_ext <<_ACEOF
3146/* confdefs.h. */
3147_ACEOF
3148cat confdefs.h >>conftest.$ac_ext
3149cat >>conftest.$ac_ext <<_ACEOF
3150/* end confdefs.h. */
3151
3152int
3153main ()
3154{
3155
3156 ;
3157 return 0;
3158}
3159_ACEOF
3160rm -f conftest.$ac_objext
3161if { (ac_try="$ac_compile"
3162case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165esac
3166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_compile") 2>conftest.er1
3168 ac_status=$?
3169 grep -v '^ *+' conftest.er1 >conftest.err
3170 rm -f conftest.er1
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003173 (exit $ac_status); } &&
3174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3175 { (case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178esac
3179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_try") 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; } &&
3184 { ac_try='test -s conftest.$ac_objext'
3185 { (case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188esac
3189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_try") 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003194 :
3195else
3196 echo "$as_me: failed program was:" >&5
3197sed 's/^/| /' conftest.$ac_ext >&5
3198
3199 ac_c_werror_flag=$ac_save_c_werror_flag
3200 CFLAGS="-g"
3201 cat >conftest.$ac_ext <<_ACEOF
3202/* confdefs.h. */
3203_ACEOF
3204cat confdefs.h >>conftest.$ac_ext
3205cat >>conftest.$ac_ext <<_ACEOF
3206/* end confdefs.h. */
3207
3208int
3209main ()
3210{
3211
3212 ;
3213 return 0;
3214}
3215_ACEOF
3216rm -f conftest.$ac_objext
3217if { (ac_try="$ac_compile"
3218case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221esac
3222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_compile") 2>conftest.er1
3224 ac_status=$?
3225 grep -v '^ *+' conftest.er1 >conftest.err
3226 rm -f conftest.er1
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003229 (exit $ac_status); } &&
3230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3240 { ac_try='test -s conftest.$ac_objext'
3241 { (case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244esac
3245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_try") 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003250 ac_cv_prog_cc_g=yes
3251else
3252 echo "$as_me: failed program was:" >&5
3253sed 's/^/| /' conftest.$ac_ext >&5
3254
3255
John Criswell7a73b802003-06-30 21:59:07 +00003256fi
Reid Spencera773bd52006-08-04 18:18:08 +00003257
3258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003259fi
Reid Spencera773bd52006-08-04 18:18:08 +00003260
3261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262fi
3263
3264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 ac_c_werror_flag=$ac_save_c_werror_flag
3266fi
3267{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3268echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003269if test "$ac_test_CFLAGS" = set; then
3270 CFLAGS=$ac_save_CFLAGS
3271elif test $ac_cv_prog_cc_g = yes; then
3272 if test "$GCC" = yes; then
3273 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003274 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003275 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003276 fi
3277else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003278 if test "$GCC" = yes; then
3279 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003280 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003281 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003282 fi
3283fi
Reid Spencera773bd52006-08-04 18:18:08 +00003284{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3285echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3286if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003287 echo $ECHO_N "(cached) $ECHO_C" >&6
3288else
Reid Spencera773bd52006-08-04 18:18:08 +00003289 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003290ac_save_CC=$CC
3291cat >conftest.$ac_ext <<_ACEOF
3292/* confdefs.h. */
3293_ACEOF
3294cat confdefs.h >>conftest.$ac_ext
3295cat >>conftest.$ac_ext <<_ACEOF
3296/* end confdefs.h. */
3297#include <stdarg.h>
3298#include <stdio.h>
3299#include <sys/types.h>
3300#include <sys/stat.h>
3301/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3302struct buf { int x; };
3303FILE * (*rcsopen) (struct buf *, struct stat *, int);
3304static char *e (p, i)
3305 char **p;
3306 int i;
3307{
3308 return p[i];
3309}
3310static char *f (char * (*g) (char **, int), char **p, ...)
3311{
3312 char *s;
3313 va_list v;
3314 va_start (v,p);
3315 s = g (p, va_arg (v,int));
3316 va_end (v);
3317 return s;
3318}
3319
3320/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3321 function prototypes and stuff, but not '\xHH' hex character constants.
3322 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003323 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003324 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3325 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003326 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003327int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3328
Reid Spencera773bd52006-08-04 18:18:08 +00003329/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3330 inside strings and character constants. */
3331#define FOO(x) 'x'
3332int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3333
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003334int test (int i, double x);
3335struct s1 {int (*f) (int a);};
3336struct s2 {int (*f) (double a);};
3337int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3338int argc;
3339char **argv;
3340int
3341main ()
3342{
3343return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3344 ;
3345 return 0;
3346}
3347_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003348for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3349 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003350do
3351 CC="$ac_save_CC $ac_arg"
3352 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003353if { (ac_try="$ac_compile"
3354case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357esac
3358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003360 ac_status=$?
3361 grep -v '^ *+' conftest.er1 >conftest.err
3362 rm -f conftest.er1
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003365 (exit $ac_status); } &&
3366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3367 { (case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370esac
3371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372 (eval "$ac_try") 2>&5
3373 ac_status=$?
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); }; } &&
3376 { ac_try='test -s conftest.$ac_objext'
3377 { (case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
3381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_try") 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003386 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003387else
3388 echo "$as_me: failed program was:" >&5
3389sed 's/^/| /' conftest.$ac_ext >&5
3390
Reid Spencera773bd52006-08-04 18:18:08 +00003391
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392fi
Reid Spencera773bd52006-08-04 18:18:08 +00003393
3394rm -f core conftest.err conftest.$ac_objext
3395 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003396done
Reid Spencera773bd52006-08-04 18:18:08 +00003397rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003398CC=$ac_save_CC
3399
3400fi
Reid Spencera773bd52006-08-04 18:18:08 +00003401# AC_CACHE_VAL
3402case "x$ac_cv_prog_cc_c89" in
3403 x)
3404 { echo "$as_me:$LINENO: result: none needed" >&5
3405echo "${ECHO_T}none needed" >&6; } ;;
3406 xno)
3407 { echo "$as_me:$LINENO: result: unsupported" >&5
3408echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003409 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003410 CC="$CC $ac_cv_prog_cc_c89"
3411 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3412echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003413esac
3414
John Criswell0c38eaf2003-09-10 15:17:25 +00003415
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003416ac_ext=c
3417ac_cpp='$CPP $CPPFLAGS'
3418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421
3422
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003423ac_ext=c
3424ac_cpp='$CPP $CPPFLAGS'
3425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003428{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3429echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003430# On Suns, sometimes $CPP names a directory.
3431if test -n "$CPP" && test -d "$CPP"; then
3432 CPP=
3433fi
3434if test -z "$CPP"; then
3435 if test "${ac_cv_prog_CPP+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437else
3438 # Double quotes because CPP needs to be expanded
3439 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3440 do
3441 ac_preproc_ok=false
3442for ac_c_preproc_warn_flag in '' yes
3443do
3444 # Use a header file that comes with gcc, so configuring glibc
3445 # with a fresh cross-compiler works.
3446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3447 # <limits.h> exists even on freestanding compilers.
3448 # On the NeXT, cc -E runs the code through the compiler's parser,
3449 # not just through cpp. "Syntax error" is here to catch this case.
3450 cat >conftest.$ac_ext <<_ACEOF
3451/* confdefs.h. */
3452_ACEOF
3453cat confdefs.h >>conftest.$ac_ext
3454cat >>conftest.$ac_ext <<_ACEOF
3455/* end confdefs.h. */
3456#ifdef __STDC__
3457# include <limits.h>
3458#else
3459# include <assert.h>
3460#endif
3461 Syntax error
3462_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003463if { (ac_try="$ac_cpp conftest.$ac_ext"
3464case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467esac
3468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003470 ac_status=$?
3471 grep -v '^ *+' conftest.er1 >conftest.err
3472 rm -f conftest.er1
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003475 (exit $ac_status); } >/dev/null; then
3476 if test -s conftest.err; then
3477 ac_cpp_err=$ac_c_preproc_warn_flag
3478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3479 else
3480 ac_cpp_err=
3481 fi
3482else
3483 ac_cpp_err=yes
3484fi
3485if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003486 :
3487else
3488 echo "$as_me: failed program was:" >&5
3489sed 's/^/| /' conftest.$ac_ext >&5
3490
3491 # Broken: fails on valid input.
3492continue
3493fi
Reid Spencera773bd52006-08-04 18:18:08 +00003494
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003495rm -f conftest.err conftest.$ac_ext
3496
Reid Spencera773bd52006-08-04 18:18:08 +00003497 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003498 # can be detected and how.
3499 cat >conftest.$ac_ext <<_ACEOF
3500/* confdefs.h. */
3501_ACEOF
3502cat confdefs.h >>conftest.$ac_ext
3503cat >>conftest.$ac_ext <<_ACEOF
3504/* end confdefs.h. */
3505#include <ac_nonexistent.h>
3506_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003507if { (ac_try="$ac_cpp conftest.$ac_ext"
3508case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511esac
3512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003514 ac_status=$?
3515 grep -v '^ *+' conftest.er1 >conftest.err
3516 rm -f conftest.er1
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003519 (exit $ac_status); } >/dev/null; then
3520 if test -s conftest.err; then
3521 ac_cpp_err=$ac_c_preproc_warn_flag
3522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3523 else
3524 ac_cpp_err=
3525 fi
3526else
3527 ac_cpp_err=yes
3528fi
3529if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003530 # Broken: success on invalid input.
3531continue
3532else
3533 echo "$as_me: failed program was:" >&5
3534sed 's/^/| /' conftest.$ac_ext >&5
3535
3536 # Passes both tests.
3537ac_preproc_ok=:
3538break
3539fi
Reid Spencera773bd52006-08-04 18:18:08 +00003540
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003541rm -f conftest.err conftest.$ac_ext
3542
3543done
3544# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3545rm -f conftest.err conftest.$ac_ext
3546if $ac_preproc_ok; then
3547 break
3548fi
3549
3550 done
3551 ac_cv_prog_CPP=$CPP
3552
3553fi
3554 CPP=$ac_cv_prog_CPP
3555else
3556 ac_cv_prog_CPP=$CPP
3557fi
Reid Spencera773bd52006-08-04 18:18:08 +00003558{ echo "$as_me:$LINENO: result: $CPP" >&5
3559echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003560ac_preproc_ok=false
3561for ac_c_preproc_warn_flag in '' yes
3562do
3563 # Use a header file that comes with gcc, so configuring glibc
3564 # with a fresh cross-compiler works.
3565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3566 # <limits.h> exists even on freestanding compilers.
3567 # On the NeXT, cc -E runs the code through the compiler's parser,
3568 # not just through cpp. "Syntax error" is here to catch this case.
3569 cat >conftest.$ac_ext <<_ACEOF
3570/* confdefs.h. */
3571_ACEOF
3572cat confdefs.h >>conftest.$ac_ext
3573cat >>conftest.$ac_ext <<_ACEOF
3574/* end confdefs.h. */
3575#ifdef __STDC__
3576# include <limits.h>
3577#else
3578# include <assert.h>
3579#endif
3580 Syntax error
3581_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003582if { (ac_try="$ac_cpp conftest.$ac_ext"
3583case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586esac
3587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003589 ac_status=$?
3590 grep -v '^ *+' conftest.er1 >conftest.err
3591 rm -f conftest.er1
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003594 (exit $ac_status); } >/dev/null; then
3595 if test -s conftest.err; then
3596 ac_cpp_err=$ac_c_preproc_warn_flag
3597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3598 else
3599 ac_cpp_err=
3600 fi
3601else
3602 ac_cpp_err=yes
3603fi
3604if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003605 :
3606else
3607 echo "$as_me: failed program was:" >&5
3608sed 's/^/| /' conftest.$ac_ext >&5
3609
3610 # Broken: fails on valid input.
3611continue
3612fi
Reid Spencera773bd52006-08-04 18:18:08 +00003613
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003614rm -f conftest.err conftest.$ac_ext
3615
Reid Spencera773bd52006-08-04 18:18:08 +00003616 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003617 # can be detected and how.
3618 cat >conftest.$ac_ext <<_ACEOF
3619/* confdefs.h. */
3620_ACEOF
3621cat confdefs.h >>conftest.$ac_ext
3622cat >>conftest.$ac_ext <<_ACEOF
3623/* end confdefs.h. */
3624#include <ac_nonexistent.h>
3625_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003626if { (ac_try="$ac_cpp conftest.$ac_ext"
3627case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630esac
3631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003633 ac_status=$?
3634 grep -v '^ *+' conftest.er1 >conftest.err
3635 rm -f conftest.er1
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003638 (exit $ac_status); } >/dev/null; then
3639 if test -s conftest.err; then
3640 ac_cpp_err=$ac_c_preproc_warn_flag
3641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3642 else
3643 ac_cpp_err=
3644 fi
3645else
3646 ac_cpp_err=yes
3647fi
3648if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003649 # Broken: success on invalid input.
3650continue
3651else
3652 echo "$as_me: failed program was:" >&5
3653sed 's/^/| /' conftest.$ac_ext >&5
3654
3655 # Passes both tests.
3656ac_preproc_ok=:
3657break
3658fi
Reid Spencera773bd52006-08-04 18:18:08 +00003659
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003660rm -f conftest.err conftest.$ac_ext
3661
3662done
3663# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3664rm -f conftest.err conftest.$ac_ext
3665if $ac_preproc_ok; then
3666 :
3667else
3668 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3669See \`config.log' for more details." >&5
3670echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3671See \`config.log' for more details." >&2;}
3672 { (exit 1); exit 1; }; }
3673fi
3674
John Criswell7a73b802003-06-30 21:59:07 +00003675ac_ext=c
3676ac_cpp='$CPP $CPPFLAGS'
3677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680
John Criswell7a73b802003-06-30 21:59:07 +00003681
Reid Spencera773bd52006-08-04 18:18:08 +00003682{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3683echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003684if test "${ac_cv_path_GREP+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686else
Reid Spencera773bd52006-08-04 18:18:08 +00003687 # Extract the first word of "grep ggrep" to use in msg output
3688if test -z "$GREP"; then
3689set dummy grep ggrep; ac_prog_name=$2
3690if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692else
Reid Spencera773bd52006-08-04 18:18:08 +00003693 ac_path_GREP_found=false
3694# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003696for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003697do
3698 IFS=$as_save_IFS
3699 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003700 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003701 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003702 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003703 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003704 # Check for GNU ac_path_GREP and select it if it is found.
3705 # Check for GNU $ac_path_GREP
3706case `"$ac_path_GREP" --version 2>&1` in
3707*GNU*)
3708 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3709*)
3710 ac_count=0
3711 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3712 while :
3713 do
3714 cat "conftest.in" "conftest.in" >"conftest.tmp"
3715 mv "conftest.tmp" "conftest.in"
3716 cp "conftest.in" "conftest.nl"
3717 echo 'GREP' >> "conftest.nl"
3718 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3720 ac_count=`expr $ac_count + 1`
3721 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3722 # Best one so far, save it but keep looking for a better one
3723 ac_cv_path_GREP="$ac_path_GREP"
3724 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003725 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003726 # 10*(2^10) chars as input seems more than enough
3727 test $ac_count -gt 10 && break
3728 done
3729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3730esac
3731
3732
3733 $ac_path_GREP_found && break 3
3734 done
3735done
3736
3737done
3738IFS=$as_save_IFS
3739
3740
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003741fi
Reid Spencera773bd52006-08-04 18:18:08 +00003742
3743GREP="$ac_cv_path_GREP"
3744if test -z "$GREP"; then
3745 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3746echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3747 { (exit 1); exit 1; }; }
3748fi
3749
3750else
3751 ac_cv_path_GREP=$GREP
3752fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003753
John Criswell7a73b802003-06-30 21:59:07 +00003754
Reid Spencera773bd52006-08-04 18:18:08 +00003755fi
3756{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3757echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3758 GREP="$ac_cv_path_GREP"
3759
3760
3761{ echo "$as_me:$LINENO: checking for egrep" >&5
3762echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3763if test "${ac_cv_path_EGREP+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765else
3766 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3767 then ac_cv_path_EGREP="$GREP -E"
3768 else
3769 # Extract the first word of "egrep" to use in msg output
3770if test -z "$EGREP"; then
3771set dummy egrep; ac_prog_name=$2
3772if test "${ac_cv_path_EGREP+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774else
3775 ac_path_EGREP_found=false
3776# Loop through the user's path and test for each of PROGNAME-LIST
3777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3779do
3780 IFS=$as_save_IFS
3781 test -z "$as_dir" && as_dir=.
3782 for ac_prog in egrep; do
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003785 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003786 # Check for GNU ac_path_EGREP and select it if it is found.
3787 # Check for GNU $ac_path_EGREP
3788case `"$ac_path_EGREP" --version 2>&1` in
3789*GNU*)
3790 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3791*)
3792 ac_count=0
3793 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3794 while :
3795 do
3796 cat "conftest.in" "conftest.in" >"conftest.tmp"
3797 mv "conftest.tmp" "conftest.in"
3798 cp "conftest.in" "conftest.nl"
3799 echo 'EGREP' >> "conftest.nl"
3800 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3802 ac_count=`expr $ac_count + 1`
3803 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3804 # Best one so far, save it but keep looking for a better one
3805 ac_cv_path_EGREP="$ac_path_EGREP"
3806 ac_path_EGREP_max=$ac_count
3807 fi
3808 # 10*(2^10) chars as input seems more than enough
3809 test $ac_count -gt 10 && break
3810 done
3811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3812esac
3813
3814
3815 $ac_path_EGREP_found && break 3
3816 done
3817done
3818
3819done
3820IFS=$as_save_IFS
3821
3822
3823fi
3824
3825EGREP="$ac_cv_path_EGREP"
3826if test -z "$EGREP"; then
3827 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3828echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3829 { (exit 1); exit 1; }; }
3830fi
3831
3832else
3833 ac_cv_path_EGREP=$EGREP
3834fi
3835
3836
3837 fi
3838fi
3839{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3840echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3841 EGREP="$ac_cv_path_EGREP"
3842
3843
3844{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3845echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003846if test "${ac_cv_header_stdc+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848else
3849 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003850/* confdefs.h. */
3851_ACEOF
3852cat confdefs.h >>conftest.$ac_ext
3853cat >>conftest.$ac_ext <<_ACEOF
3854/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003855#include <stdlib.h>
3856#include <stdarg.h>
3857#include <string.h>
3858#include <float.h>
3859
John Criswell0c38eaf2003-09-10 15:17:25 +00003860int
3861main ()
3862{
3863
3864 ;
3865 return 0;
3866}
John Criswell7a73b802003-06-30 21:59:07 +00003867_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003868rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003869if { (ac_try="$ac_compile"
3870case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873esac
3874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003876 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003877 grep -v '^ *+' conftest.er1 >conftest.err
3878 rm -f conftest.er1
3879 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003881 (exit $ac_status); } &&
3882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3883 { (case "(($ac_try" in
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3886esac
3887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3888 (eval "$ac_try") 2>&5
3889 ac_status=$?
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; } &&
3892 { ac_try='test -s conftest.$ac_objext'
3893 { (case "(($ac_try" in
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3896esac
3897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3898 (eval "$ac_try") 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003902 ac_cv_header_stdc=yes
3903else
3904 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003905sed 's/^/| /' conftest.$ac_ext >&5
3906
Reid Spencera773bd52006-08-04 18:18:08 +00003907 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003908fi
Reid Spencera773bd52006-08-04 18:18:08 +00003909
3910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003911
3912if test $ac_cv_header_stdc = yes; then
3913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3914 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003915/* confdefs.h. */
3916_ACEOF
3917cat confdefs.h >>conftest.$ac_ext
3918cat >>conftest.$ac_ext <<_ACEOF
3919/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003920#include <string.h>
3921
3922_ACEOF
3923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003924 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003925 :
3926else
3927 ac_cv_header_stdc=no
3928fi
3929rm -f conftest*
3930
3931fi
3932
3933if test $ac_cv_header_stdc = yes; then
3934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3935 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003936/* confdefs.h. */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003941#include <stdlib.h>
3942
3943_ACEOF
3944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003945 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003946 :
3947else
3948 ac_cv_header_stdc=no
3949fi
3950rm -f conftest*
3951
3952fi
3953
3954if test $ac_cv_header_stdc = yes; then
3955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3956 if test "$cross_compiling" = yes; then
3957 :
3958else
3959 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003960/* confdefs.h. */
3961_ACEOF
3962cat confdefs.h >>conftest.$ac_ext
3963cat >>conftest.$ac_ext <<_ACEOF
3964/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003965#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003966#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003967#if ((' ' & 0x0FF) == 0x020)
3968# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3969# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3970#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003971# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003972 (('a' <= (c) && (c) <= 'i') \
3973 || ('j' <= (c) && (c) <= 'r') \
3974 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003975# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3976#endif
3977
3978#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3979int
3980main ()
3981{
3982 int i;
3983 for (i = 0; i < 256; i++)
3984 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003985 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003986 return 2;
3987 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003988}
3989_ACEOF
3990rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003991if { (ac_try="$ac_link"
3992case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995esac
3996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00004001 { (case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004esac
4005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4010 :
4011else
4012 echo "$as_me: program exited with status $ac_status" >&5
4013echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004014sed 's/^/| /' conftest.$ac_ext >&5
4015
John Criswell7a73b802003-06-30 21:59:07 +00004016( exit $ac_status )
4017ac_cv_header_stdc=no
4018fi
Reid Spencera773bd52006-08-04 18:18:08 +00004019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4020fi
4021
4022
John Criswell7a73b802003-06-30 21:59:07 +00004023fi
4024fi
Reid Spencera773bd52006-08-04 18:18:08 +00004025{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4026echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004027if test $ac_cv_header_stdc = yes; then
4028
4029cat >>confdefs.h <<\_ACEOF
4030#define STDC_HEADERS 1
4031_ACEOF
4032
4033fi
4034
Reid Spencera773bd52006-08-04 18:18:08 +00004035# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4046 inttypes.h stdint.h unistd.h
4047do
4048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4049{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4053else
4054 cat >conftest.$ac_ext <<_ACEOF
4055/* confdefs.h. */
4056_ACEOF
4057cat confdefs.h >>conftest.$ac_ext
4058cat >>conftest.$ac_ext <<_ACEOF
4059/* end confdefs.h. */
4060$ac_includes_default
4061
4062#include <$ac_header>
4063_ACEOF
4064rm -f conftest.$ac_objext
4065if { (ac_try="$ac_compile"
4066case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069esac
4070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_compile") 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004077 (exit $ac_status); } &&
4078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4079 { (case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082esac
4083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_try") 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; } &&
4088 { ac_try='test -s conftest.$ac_objext'
4089 { (case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4092esac
4093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_try") 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004098 eval "$as_ac_Header=yes"
4099else
4100 echo "$as_me: failed program was:" >&5
4101sed 's/^/| /' conftest.$ac_ext >&5
4102
4103 eval "$as_ac_Header=no"
4104fi
4105
4106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107fi
4108ac_res=`eval echo '${'$as_ac_Header'}'`
4109 { echo "$as_me:$LINENO: result: $ac_res" >&5
4110echo "${ECHO_T}$ac_res" >&6; }
4111if test `eval echo '${'$as_ac_Header'}'` = yes; then
4112 cat >>confdefs.h <<_ACEOF
4113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4114_ACEOF
4115
4116fi
4117
4118done
4119
4120
4121{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4122echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4123if test "${ac_cv_c_bigendian+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4125else
4126 # See if sys/param.h defines the BYTE_ORDER macro.
4127cat >conftest.$ac_ext <<_ACEOF
4128/* confdefs.h. */
4129_ACEOF
4130cat confdefs.h >>conftest.$ac_ext
4131cat >>conftest.$ac_ext <<_ACEOF
4132/* end confdefs.h. */
4133#include <sys/types.h>
4134#include <sys/param.h>
4135
4136int
4137main ()
4138{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004139#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004140 bogus endian macros
4141#endif
4142
4143 ;
4144 return 0;
4145}
4146_ACEOF
4147rm -f conftest.$ac_objext
4148if { (ac_try="$ac_compile"
4149case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152esac
4153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_compile") 2>conftest.er1
4155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004160 (exit $ac_status); } &&
4161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4162 { (case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4165esac
4166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_try") 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; } &&
4171 { ac_try='test -s conftest.$ac_objext'
4172 { (case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4175esac
4176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4177 (eval "$ac_try") 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004181 # It does; now see whether it defined to BIG_ENDIAN or not.
4182cat >conftest.$ac_ext <<_ACEOF
4183/* confdefs.h. */
4184_ACEOF
4185cat confdefs.h >>conftest.$ac_ext
4186cat >>conftest.$ac_ext <<_ACEOF
4187/* end confdefs.h. */
4188#include <sys/types.h>
4189#include <sys/param.h>
4190
4191int
4192main ()
4193{
4194#if BYTE_ORDER != BIG_ENDIAN
4195 not big endian
4196#endif
4197
4198 ;
4199 return 0;
4200}
4201_ACEOF
4202rm -f conftest.$ac_objext
4203if { (ac_try="$ac_compile"
4204case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207esac
4208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_compile") 2>conftest.er1
4210 ac_status=$?
4211 grep -v '^ *+' conftest.er1 >conftest.err
4212 rm -f conftest.er1
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004215 (exit $ac_status); } &&
4216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4217 { (case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220esac
4221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_try") 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; } &&
4226 { ac_try='test -s conftest.$ac_objext'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230esac
4231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004236 ac_cv_c_bigendian=yes
4237else
4238 echo "$as_me: failed program was:" >&5
4239sed 's/^/| /' conftest.$ac_ext >&5
4240
4241 ac_cv_c_bigendian=no
4242fi
4243
4244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245else
4246 echo "$as_me: failed program was:" >&5
4247sed 's/^/| /' conftest.$ac_ext >&5
4248
4249 # It does not; compile a test program.
4250if test "$cross_compiling" = yes; then
4251 # try to guess the endianness by grepping values into an object file
4252 ac_cv_c_bigendian=unknown
4253 cat >conftest.$ac_ext <<_ACEOF
4254/* confdefs.h. */
4255_ACEOF
4256cat confdefs.h >>conftest.$ac_ext
4257cat >>conftest.$ac_ext <<_ACEOF
4258/* end confdefs.h. */
4259short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4260short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4261void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4262short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4263short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4264void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4265int
4266main ()
4267{
4268 _ascii (); _ebcdic ();
4269 ;
4270 return 0;
4271}
4272_ACEOF
4273rm -f conftest.$ac_objext
4274if { (ac_try="$ac_compile"
4275case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278esac
4279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_compile") 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004286 (exit $ac_status); } &&
4287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4288 { (case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291esac
4292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_try") 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try='test -s conftest.$ac_objext'
4298 { (case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301esac
4302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_try") 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004307 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4308 ac_cv_c_bigendian=yes
4309fi
4310if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4311 if test "$ac_cv_c_bigendian" = unknown; then
4312 ac_cv_c_bigendian=no
4313 else
4314 # finding both strings is unlikely to happen, but who knows?
4315 ac_cv_c_bigendian=unknown
4316 fi
4317fi
4318else
4319 echo "$as_me: failed program was:" >&5
4320sed 's/^/| /' conftest.$ac_ext >&5
4321
4322
4323fi
4324
4325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326else
4327 cat >conftest.$ac_ext <<_ACEOF
4328/* confdefs.h. */
4329_ACEOF
4330cat confdefs.h >>conftest.$ac_ext
4331cat >>conftest.$ac_ext <<_ACEOF
4332/* end confdefs.h. */
4333$ac_includes_default
4334int
4335main ()
4336{
4337
4338 /* Are we little or big endian? From Harbison&Steele. */
4339 union
4340 {
4341 long int l;
4342 char c[sizeof (long int)];
4343 } u;
4344 u.l = 1;
4345 return u.c[sizeof (long int) - 1] == 1;
4346
4347 ;
4348 return 0;
4349}
4350_ACEOF
4351rm -f conftest$ac_exeext
4352if { (ac_try="$ac_link"
4353case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4356esac
4357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358 (eval "$ac_link") 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4362 { (case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365esac
4366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_try") 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4371 ac_cv_c_bigendian=no
4372else
4373 echo "$as_me: program exited with status $ac_status" >&5
4374echo "$as_me: failed program was:" >&5
4375sed 's/^/| /' conftest.$ac_ext >&5
4376
4377( exit $ac_status )
4378ac_cv_c_bigendian=yes
4379fi
4380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4381fi
4382
4383
4384fi
4385
4386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387fi
4388{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4389echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4390case $ac_cv_c_bigendian in
4391 yes)
4392 ENDIAN=big
4393 ;;
4394 no)
4395 ENDIAN=little
4396 ;;
4397 *)
4398 { { echo "$as_me:$LINENO: error: unknown endianness
4399presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4400echo "$as_me: error: unknown endianness
4401presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4402 { (exit 1); exit 1; }; } ;;
4403esac
4404
4405
4406if test "$cross_compiling" = yes; then
4407 LLVM_CROSS_COMPILING=1
4408
4409
4410{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4411echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4412if test "${ac_cv_build_exeext+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414else
4415 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4416 ac_cv_build_exeext=.exe
4417else
4418 ac_build_prefix=${build_alias}-
4419
4420 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4421set dummy ${ac_build_prefix}gcc; ac_word=$2
4422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4424if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426else
4427 if test -n "$BUILD_CC"; then
4428 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4429else
4430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431for as_dir in $PATH
4432do
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004436 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 +00004437 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4440 fi
4441done
4442done
4443IFS=$as_save_IFS
4444
4445fi
4446fi
4447BUILD_CC=$ac_cv_prog_BUILD_CC
4448if test -n "$BUILD_CC"; then
4449 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4450echo "${ECHO_T}$BUILD_CC" >&6; }
4451else
4452 { echo "$as_me:$LINENO: result: no" >&5
4453echo "${ECHO_T}no" >&6; }
4454fi
4455
4456
4457 if test -z "$BUILD_CC"; then
4458 # Extract the first word of "gcc", so it can be a program name with args.
4459set dummy gcc; ac_word=$2
4460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464else
4465 if test -n "$BUILD_CC"; then
4466 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4467else
4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469for as_dir in $PATH
4470do
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004474 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 +00004475 ac_cv_prog_BUILD_CC="gcc"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4478 fi
4479done
4480done
4481IFS=$as_save_IFS
4482
4483fi
4484fi
4485BUILD_CC=$ac_cv_prog_BUILD_CC
4486if test -n "$BUILD_CC"; then
4487 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4488echo "${ECHO_T}$BUILD_CC" >&6; }
4489else
4490 { echo "$as_me:$LINENO: result: no" >&5
4491echo "${ECHO_T}no" >&6; }
4492fi
4493
4494
4495 if test -z "$BUILD_CC"; then
4496 # Extract the first word of "cc", so it can be a program name with args.
4497set dummy cc; ac_word=$2
4498{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4500if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502else
4503 if test -n "$BUILD_CC"; then
4504 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4505else
4506 ac_prog_rejected=no
4507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508for as_dir in $PATH
4509do
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004513 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 +00004514 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4515 ac_prog_rejected=yes
4516 continue
4517 fi
4518 ac_cv_prog_BUILD_CC="cc"
4519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 break 2
4521 fi
4522done
4523done
4524IFS=$as_save_IFS
4525
4526if test $ac_prog_rejected = yes; then
4527 # We found a bogon in the path, so make sure we never use it.
4528 set dummy $ac_cv_prog_BUILD_CC
4529 shift
4530 if test $# != 0; then
4531 # We chose a different compiler from the bogus one.
4532 # However, it has the same basename, so the bogon will be chosen
4533 # first if we set BUILD_CC to just the basename; use the full file name.
4534 shift
4535 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4536 fi
4537fi
4538fi
4539fi
4540BUILD_CC=$ac_cv_prog_BUILD_CC
4541if test -n "$BUILD_CC"; then
4542 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4543echo "${ECHO_T}$BUILD_CC" >&6; }
4544else
4545 { echo "$as_me:$LINENO: result: no" >&5
4546echo "${ECHO_T}no" >&6; }
4547fi
4548
4549
4550 fi
4551 fi
4552 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4553echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4554 { (exit 1); exit 1; }; }
4555 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4556 rm -f conftest*
4557 echo 'int main () { return 0; }' > conftest.$ac_ext
4558 ac_cv_build_exeext=
4559 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4560 (eval $ac_build_link) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; then
4564 for file in conftest.*; do
4565 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004566 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004567 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4568 esac
4569 done
4570 else
4571 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4572echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4573 { (exit 1); exit 1; }; }
4574 fi
4575 rm -f conftest*
4576 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4577fi
4578fi
4579
4580BUILD_EXEEXT=""
4581test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4582{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4583echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4584ac_build_exeext=$BUILD_EXEEXT
4585
Jim Grosbach673612e2008-10-02 22:56:44 +00004586 ac_build_prefix=${build_alias}-
4587 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4588set dummy ${ac_build_prefix}g++; ac_word=$2
4589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4591if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4593else
4594 if test -n "$BUILD_CXX"; then
4595 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4596else
4597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598for as_dir in $PATH
4599do
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004603 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 +00004604 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 break 2
4607 fi
4608done
4609done
4610IFS=$as_save_IFS
4611
4612fi
4613fi
4614BUILD_CXX=$ac_cv_prog_BUILD_CXX
4615if test -n "$BUILD_CXX"; then
4616 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4617echo "${ECHO_T}$BUILD_CXX" >&6; }
4618else
4619 { echo "$as_me:$LINENO: result: no" >&5
4620echo "${ECHO_T}no" >&6; }
4621fi
4622
4623
4624 if test -z "$BUILD_CXX"; then
4625 # Extract the first word of "g++", so it can be a program name with args.
4626set dummy g++; ac_word=$2
4627{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4629if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631else
4632 if test -n "$BUILD_CXX"; then
4633 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4634else
4635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636for as_dir in $PATH
4637do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004641 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 +00004642 ac_cv_prog_BUILD_CXX="g++"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
4645 fi
4646done
4647done
4648IFS=$as_save_IFS
4649
4650fi
4651fi
4652BUILD_CXX=$ac_cv_prog_BUILD_CXX
4653if test -n "$BUILD_CXX"; then
4654 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4655echo "${ECHO_T}$BUILD_CXX" >&6; }
4656else
4657 { echo "$as_me:$LINENO: result: no" >&5
4658echo "${ECHO_T}no" >&6; }
4659fi
4660
4661
4662 if test -z "$BUILD_CXX"; then
4663 # Extract the first word of "c++", so it can be a program name with args.
4664set dummy c++; ac_word=$2
4665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669else
4670 if test -n "$BUILD_CXX"; then
4671 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4672else
4673 ac_prog_rejected=no
4674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675for as_dir in $PATH
4676do
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004680 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 +00004681 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4682 ac_prog_rejected=yes
4683 continue
4684 fi
4685 ac_cv_prog_BUILD_CXX="c++"
4686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4688 fi
4689done
4690done
4691IFS=$as_save_IFS
4692
4693if test $ac_prog_rejected = yes; then
4694 # We found a bogon in the path, so make sure we never use it.
4695 set dummy $ac_cv_prog_BUILD_CXX
4696 shift
4697 if test $# != 0; then
4698 # We chose a different compiler from the bogus one.
4699 # However, it has the same basename, so the bogon will be chosen
4700 # first if we set BUILD_CXX to just the basename; use the full file name.
4701 shift
4702 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4703 fi
4704fi
4705fi
4706fi
4707BUILD_CXX=$ac_cv_prog_BUILD_CXX
4708if test -n "$BUILD_CXX"; then
4709 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4710echo "${ECHO_T}$BUILD_CXX" >&6; }
4711else
4712 { echo "$as_me:$LINENO: result: no" >&5
4713echo "${ECHO_T}no" >&6; }
4714fi
4715
4716
4717 fi
4718 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004719else
4720 LLVM_CROSS_COMPILING=0
4721
4722fi
4723
Nick Lewycky5b28f862009-04-10 05:18:27 +00004724if 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 +00004725 cvsbuild="yes"
4726 optimize="no"
4727 CVSBUILD=CVSBUILD=1
4728
4729else
4730 cvsbuild="no"
4731 optimize="yes"
4732fi
4733
4734
4735# Check whether --enable-optimized was given.
4736if test "${enable_optimized+set}" = set; then
4737 enableval=$enable_optimized;
4738else
4739 enableval=$optimize
4740fi
4741
4742if test ${enableval} = "no" ; then
4743 ENABLE_OPTIMIZED=
4744
4745else
4746 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4747
4748fi
4749
David Greene2a5a12c2009-04-17 14:50:39 +00004750# Check whether --enable-profiling was given.
4751if test "${enable_profiling+set}" = set; then
4752 enableval=$enable_profiling;
4753else
4754 enableval="no"
4755fi
4756
4757if test ${enableval} = "no" ; then
4758 ENABLE_PROFILING=
4759
4760else
4761 ENABLE_PROFILING=ENABLE_PROFILING=1
4762
4763fi
4764
Reid Spencera773bd52006-08-04 18:18:08 +00004765# Check whether --enable-assertions was given.
4766if test "${enable_assertions+set}" = set; then
4767 enableval=$enable_assertions;
4768else
4769 enableval="yes"
4770fi
4771
4772if test ${enableval} = "yes" ; then
4773 DISABLE_ASSERTIONS=
4774
4775else
4776 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4777
4778fi
4779
David Greenea696d242007-06-28 19:36:08 +00004780# Check whether --enable-expensive-checks was given.
4781if test "${enable_expensive_checks+set}" = set; then
4782 enableval=$enable_expensive_checks;
4783else
4784 enableval="no"
4785fi
4786
4787if test ${enableval} = "yes" ; then
4788 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4789
4790 EXPENSIVE_CHECKS=yes
4791
4792else
4793 ENABLE_EXPENSIVE_CHECKS=
4794
4795 EXPENSIVE_CHECKS=no
4796
4797fi
4798
Reid Spencer8b2e1412006-11-17 03:32:33 +00004799# Check whether --enable-debug-runtime was given.
4800if test "${enable_debug_runtime+set}" = set; then
4801 enableval=$enable_debug_runtime;
4802else
4803 enableval=no
4804fi
4805
4806if test ${enableval} = "no" ; then
4807 DEBUG_RUNTIME=
4808
4809else
4810 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4811
4812fi
4813
Reid Spencera773bd52006-08-04 18:18:08 +00004814# Check whether --enable-jit was given.
4815if test "${enable_jit+set}" = set; then
4816 enableval=$enable_jit;
4817else
4818 enableval=default
4819fi
4820
4821if test ${enableval} = "no"
4822then
4823 JIT=
4824
4825else
4826 case "$llvm_cv_target_arch" in
4827 x86) TARGET_HAS_JIT=1
4828 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004829 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004830 ;;
4831 PowerPC) TARGET_HAS_JIT=1
4832 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004833 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004834 ;;
4835 Alpha) TARGET_HAS_JIT=1
4836 ;;
4837 IA64) TARGET_HAS_JIT=0
4838 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004839 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004840 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004841 Mips) TARGET_HAS_JIT=0
4842 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004843 PIC16) TARGET_HAS_JIT=0
4844 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004845 XCore) TARGET_HAS_JIT=0
4846 ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004847 MSP430) TARGET_HAS_JIT=0
4848 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004849 *) TARGET_HAS_JIT=0
4850 ;;
4851 esac
4852fi
4853
4854# Check whether --enable-doxygen was given.
4855if test "${enable_doxygen+set}" = set; then
4856 enableval=$enable_doxygen;
4857else
4858 enableval=default
4859fi
4860
4861case "$enableval" in
4862 yes) ENABLE_DOXYGEN=1
4863 ;;
4864 no) ENABLE_DOXYGEN=0
4865 ;;
4866 default) ENABLE_DOXYGEN=0
4867 ;;
4868 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4869echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4870 { (exit 1); exit 1; }; } ;;
4871esac
4872
4873# Check whether --enable-threads was given.
4874if test "${enable_threads+set}" = set; then
4875 enableval=$enable_threads;
4876else
Reid Spencer65c5d752006-11-05 17:08:18 +00004877 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004878fi
4879
4880case "$enableval" in
4881 yes) ENABLE_THREADS=1
4882 ;;
4883 no) ENABLE_THREADS=0
4884 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004885 default) ENABLE_THREADS=1
4886 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004887 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4888echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4889 { (exit 1); exit 1; }; } ;;
4890esac
4891
Owen Andersona8603702009-05-19 22:18:56 +00004892cat >>confdefs.h <<_ACEOF
4893#define ENABLE_THREADS $ENABLE_THREADS
4894_ACEOF
4895
4896
Reid Spencer89b0d992006-12-16 22:07:52 +00004897# Check whether --enable-pic was given.
4898if test "${enable_pic+set}" = set; then
4899 enableval=$enable_pic;
4900else
4901 enableval=default
4902fi
4903
4904case "$enableval" in
4905 yes) ENABLE_PIC=1
4906 ;;
4907 no) ENABLE_PIC=0
4908 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004909 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004910 ;;
4911 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4912echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4913 { (exit 1); exit 1; }; } ;;
4914esac
4915
4916cat >>confdefs.h <<_ACEOF
4917#define ENABLE_PIC $ENABLE_PIC
4918_ACEOF
4919
4920
Reid Spencera773bd52006-08-04 18:18:08 +00004921TARGETS_TO_BUILD=""
4922# Check whether --enable-targets was given.
4923if test "${enable_targets+set}" = set; then
4924 enableval=$enable_targets;
4925else
4926 enableval=all
4927fi
4928
4929case "$enableval" in
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004930 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004931 host-only)
4932 case "$llvm_cv_target_arch" in
4933 x86) TARGETS_TO_BUILD="X86" ;;
4934 x86_64) TARGETS_TO_BUILD="X86" ;;
4935 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4936 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4937 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4938 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004939 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004940 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004941 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004942 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004943 XCore) TARGETS_TO_BUILD="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004944 MSP430) TARGETS_TO_BUILD="MSP430" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004945 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4946echo "$as_me: error: Can not set target to build" >&2;}
4947 { (exit 1); exit 1; }; } ;;
4948 esac
4949 ;;
4950 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4951 case "$a_target" in
4952 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4953 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4954 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4955 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4956 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4957 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004958 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004959 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004960 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004961 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004962 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004963 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004964 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4965 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004966 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004967 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4968echo "$as_me: error: Unrecognized target $a_target" >&2;}
4969 { (exit 1); exit 1; }; } ;;
4970 esac
4971 done
4972 ;;
4973esac
Reid Spencera773bd52006-08-04 18:18:08 +00004974TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4975
4976
Douglas Gregor0711c302009-06-17 00:43:20 +00004977# Determine whether we are building LLVM support for the native architecture.
4978# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4979for a_target in $TARGETS_TO_BUILD; do
4980 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004981 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004982
4983cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004984#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004985_ACEOF
4986
4987 fi
4988done
4989
Douglas Gregor1555a232009-06-16 20:12:29 +00004990# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4991# Targets.def and AsmPrinters.def.
4992LLVM_ENUM_TARGETS=""
4993LLVM_ENUM_ASM_PRINTERS=""
4994for target_to_build in $TARGETS_TO_BUILD; do
4995 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4996 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4997 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4998 fi
4999done
5000
5001
5002
Reid Spencer65c5d752006-11-05 17:08:18 +00005003# Check whether --enable-cbe-printf-a was given.
5004if test "${enable_cbe_printf_a+set}" = set; then
5005 enableval=$enable_cbe_printf_a;
5006else
5007 enableval=default
5008fi
5009
5010case "$enableval" in
5011 yes) ENABLE_CBE_PRINTF_A=1
5012 ;;
5013 no) ENABLE_CBE_PRINTF_A=0
5014 ;;
5015 default) ENABLE_CBE_PRINTF_A=1
5016 ;;
5017 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5018echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5019 { (exit 1); exit 1; }; } ;;
5020esac
5021
5022cat >>confdefs.h <<_ACEOF
5023#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5024_ACEOF
5025
5026
Reid Spencera773bd52006-08-04 18:18:08 +00005027
5028# Check whether --with-llvmgccdir was given.
5029if test "${with_llvmgccdir+set}" = set; then
5030 withval=$with_llvmgccdir;
5031else
5032 withval=default
5033fi
5034
5035case "$withval" in
5036 default) WITH_LLVMGCCDIR=default ;;
5037 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5038 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5039echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5040 { (exit 1); exit 1; }; } ;;
5041esac
5042
5043
Devang Patel5d28b882007-12-04 22:54:47 +00005044# Check whether --with-llvmgcc was given.
5045if test "${with_llvmgcc+set}" = set; then
5046 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5047 WITH_LLVMGCCDIR=""
5048fi
5049
5050
5051
5052# Check whether --with-llvmgxx was given.
5053if test "${with_llvmgxx+set}" = set; then
5054 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5055 WITH_LLVMGCCDIR=""
5056fi
5057
Douglas Gregor01746742009-05-11 18:05:52 +00005058
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005059if test -n "$LLVMGCC"; then
5060 LLVMGCCCOMMAND="$LLVMGCC"
5061fi
5062
5063if test -n "$LLVMGXX"; then
5064 LLVMGXXCOMMAND="$LLVMGXX"
5065fi
Devang Patel5d28b882007-12-04 22:54:47 +00005066
5067if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5068 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5069echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5070 { (exit 1); exit 1; }; };
5071fi
5072
5073if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5074 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5075echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5076 { (exit 1); exit 1; }; };
5077fi
5078
5079
Reid Spencera773bd52006-08-04 18:18:08 +00005080# Check whether --with-extra-options was given.
5081if test "${with_extra_options+set}" = set; then
5082 withval=$with_extra_options;
5083else
5084 withval=default
5085fi
5086
5087case "$withval" in
5088 default) EXTRA_OPTIONS= ;;
5089 *) EXTRA_OPTIONS=$withval ;;
5090esac
5091EXTRA_OPTIONS=$EXTRA_OPTIONS
5092
5093
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005094# Check whether --enable-bindings was given.
5095if test "${enable_bindings+set}" = set; then
5096 enableval=$enable_bindings;
5097else
5098 enableval=default
5099fi
5100
5101BINDINGS_TO_BUILD=""
5102case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005103 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005104 all ) BINDINGS_TO_BUILD="ocaml" ;;
5105 none | no) BINDINGS_TO_BUILD="" ;;
5106 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5107 case "$a_binding" in
5108 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5109 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5110echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5111 { (exit 1); exit 1; }; } ;;
5112 esac
5113 done
5114 ;;
5115esac
5116
Reid Spencera773bd52006-08-04 18:18:08 +00005117
Gordon Henriksenf0915682007-10-02 16:42:22 +00005118# Check whether --with-ocaml-libdir was given.
5119if test "${with_ocaml_libdir+set}" = set; then
5120 withval=$with_ocaml_libdir;
5121else
5122 withval=auto
5123fi
5124
5125case "$withval" in
5126 auto) with_ocaml_libdir="$withval" ;;
5127 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5128 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5129echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5130 { (exit 1); exit 1; }; } ;;
5131esac
5132
5133
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005134# Check whether --with-binutils-include was given.
5135if test "${with_binutils_include+set}" = set; then
5136 withval=$with_binutils_include;
5137else
5138 withval=default
5139fi
5140
5141case "$withval" in
5142 default) WITH_BINUTILS_INCDIR=default ;;
5143 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5144 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5145echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5146 { (exit 1); exit 1; }; } ;;
5147esac
5148if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5149 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5150
5151 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5152 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5153 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5154echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5155 { (exit 1); exit 1; }; };
5156 fi
5157fi
5158
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005159# Check whether --enable-libffi was given.
5160if test "${enable_libffi+set}" = set; then
5161 enableval=$enable_libffi;
5162else
5163 enableval=yes
5164fi
5165
5166case "$enableval" in
5167 yes) llvm_cv_enable_libffi="yes" ;;
5168 no) llvm_cv_enable_libffi="no" ;;
5169 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5170echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5171 { (exit 1); exit 1; }; } ;;
5172esac
5173
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005174if test "$llvm_cv_os_type" = "Win32" ; then
5175 llvmc_dynamic="yes"
5176else
5177 llvmc_dynamic="no"
5178fi
5179
5180# Check whether --enable-llvmc-dynamic was given.
5181if test "${enable_llvmc_dynamic+set}" = set; then
5182 enableval=$enable_llvmc_dynamic;
5183else
5184 enableval=$llvmc_dynamic
5185fi
5186
5187if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5188 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5189
5190else
5191 ENABLE_LLVMC_DYNAMIC=
5192
5193fi
5194
5195# Check whether --enable-llvmc-dynamic-plugins was given.
5196if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5197 enableval=$enable_llvmc_dynamic_plugins;
5198else
5199 enableval=yes
5200fi
5201
5202if test ${enableval} = "yes" ; then
5203 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5204
5205else
5206 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5207
5208fi
5209
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005210
Reid Spencera773bd52006-08-04 18:18:08 +00005211ac_ext=c
5212ac_cpp='$CPP $CPPFLAGS'
5213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5217echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5218# On Suns, sometimes $CPP names a directory.
5219if test -n "$CPP" && test -d "$CPP"; then
5220 CPP=
5221fi
5222if test -z "$CPP"; then
5223 if test "${ac_cv_prog_CPP+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225else
5226 # Double quotes because CPP needs to be expanded
5227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5228 do
5229 ac_preproc_ok=false
5230for ac_c_preproc_warn_flag in '' yes
5231do
5232 # Use a header file that comes with gcc, so configuring glibc
5233 # with a fresh cross-compiler works.
5234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5235 # <limits.h> exists even on freestanding compilers.
5236 # On the NeXT, cc -E runs the code through the compiler's parser,
5237 # not just through cpp. "Syntax error" is here to catch this case.
5238 cat >conftest.$ac_ext <<_ACEOF
5239/* confdefs.h. */
5240_ACEOF
5241cat confdefs.h >>conftest.$ac_ext
5242cat >>conftest.$ac_ext <<_ACEOF
5243/* end confdefs.h. */
5244#ifdef __STDC__
5245# include <limits.h>
5246#else
5247# include <assert.h>
5248#endif
5249 Syntax error
5250_ACEOF
5251if { (ac_try="$ac_cpp conftest.$ac_ext"
5252case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5255esac
5256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005263 (exit $ac_status); } >/dev/null; then
5264 if test -s conftest.err; then
5265 ac_cpp_err=$ac_c_preproc_warn_flag
5266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5267 else
5268 ac_cpp_err=
5269 fi
5270else
5271 ac_cpp_err=yes
5272fi
5273if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005274 :
5275else
5276 echo "$as_me: failed program was:" >&5
5277sed 's/^/| /' conftest.$ac_ext >&5
5278
5279 # Broken: fails on valid input.
5280continue
5281fi
5282
5283rm -f conftest.err conftest.$ac_ext
5284
5285 # OK, works on sane cases. Now check whether nonexistent headers
5286 # can be detected and how.
5287 cat >conftest.$ac_ext <<_ACEOF
5288/* confdefs.h. */
5289_ACEOF
5290cat confdefs.h >>conftest.$ac_ext
5291cat >>conftest.$ac_ext <<_ACEOF
5292/* end confdefs.h. */
5293#include <ac_nonexistent.h>
5294_ACEOF
5295if { (ac_try="$ac_cpp conftest.$ac_ext"
5296case "(($ac_try" in
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5299esac
5300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5302 ac_status=$?
5303 grep -v '^ *+' conftest.er1 >conftest.err
5304 rm -f conftest.er1
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005307 (exit $ac_status); } >/dev/null; then
5308 if test -s conftest.err; then
5309 ac_cpp_err=$ac_c_preproc_warn_flag
5310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5311 else
5312 ac_cpp_err=
5313 fi
5314else
5315 ac_cpp_err=yes
5316fi
5317if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005318 # Broken: success on invalid input.
5319continue
5320else
5321 echo "$as_me: failed program was:" >&5
5322sed 's/^/| /' conftest.$ac_ext >&5
5323
5324 # Passes both tests.
5325ac_preproc_ok=:
5326break
5327fi
5328
5329rm -f conftest.err conftest.$ac_ext
5330
5331done
5332# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5333rm -f conftest.err conftest.$ac_ext
5334if $ac_preproc_ok; then
5335 break
5336fi
5337
5338 done
5339 ac_cv_prog_CPP=$CPP
5340
5341fi
5342 CPP=$ac_cv_prog_CPP
5343else
5344 ac_cv_prog_CPP=$CPP
5345fi
5346{ echo "$as_me:$LINENO: result: $CPP" >&5
5347echo "${ECHO_T}$CPP" >&6; }
5348ac_preproc_ok=false
5349for ac_c_preproc_warn_flag in '' yes
5350do
5351 # Use a header file that comes with gcc, so configuring glibc
5352 # with a fresh cross-compiler works.
5353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5354 # <limits.h> exists even on freestanding compilers.
5355 # On the NeXT, cc -E runs the code through the compiler's parser,
5356 # not just through cpp. "Syntax error" is here to catch this case.
5357 cat >conftest.$ac_ext <<_ACEOF
5358/* confdefs.h. */
5359_ACEOF
5360cat confdefs.h >>conftest.$ac_ext
5361cat >>conftest.$ac_ext <<_ACEOF
5362/* end confdefs.h. */
5363#ifdef __STDC__
5364# include <limits.h>
5365#else
5366# include <assert.h>
5367#endif
5368 Syntax error
5369_ACEOF
5370if { (ac_try="$ac_cpp conftest.$ac_ext"
5371case "(($ac_try" in
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5374esac
5375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5377 ac_status=$?
5378 grep -v '^ *+' conftest.er1 >conftest.err
5379 rm -f conftest.er1
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005382 (exit $ac_status); } >/dev/null; then
5383 if test -s conftest.err; then
5384 ac_cpp_err=$ac_c_preproc_warn_flag
5385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5386 else
5387 ac_cpp_err=
5388 fi
5389else
5390 ac_cpp_err=yes
5391fi
5392if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005393 :
5394else
5395 echo "$as_me: failed program was:" >&5
5396sed 's/^/| /' conftest.$ac_ext >&5
5397
5398 # Broken: fails on valid input.
5399continue
5400fi
5401
5402rm -f conftest.err conftest.$ac_ext
5403
5404 # OK, works on sane cases. Now check whether nonexistent headers
5405 # can be detected and how.
5406 cat >conftest.$ac_ext <<_ACEOF
5407/* confdefs.h. */
5408_ACEOF
5409cat confdefs.h >>conftest.$ac_ext
5410cat >>conftest.$ac_ext <<_ACEOF
5411/* end confdefs.h. */
5412#include <ac_nonexistent.h>
5413_ACEOF
5414if { (ac_try="$ac_cpp conftest.$ac_ext"
5415case "(($ac_try" in
5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417 *) ac_try_echo=$ac_try;;
5418esac
5419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005426 (exit $ac_status); } >/dev/null; then
5427 if test -s conftest.err; then
5428 ac_cpp_err=$ac_c_preproc_warn_flag
5429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5430 else
5431 ac_cpp_err=
5432 fi
5433else
5434 ac_cpp_err=yes
5435fi
5436if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005437 # Broken: success on invalid input.
5438continue
5439else
5440 echo "$as_me: failed program was:" >&5
5441sed 's/^/| /' conftest.$ac_ext >&5
5442
5443 # Passes both tests.
5444ac_preproc_ok=:
5445break
5446fi
5447
5448rm -f conftest.err conftest.$ac_ext
5449
5450done
5451# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5452rm -f conftest.err conftest.$ac_ext
5453if $ac_preproc_ok; then
5454 :
5455else
5456 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5457See \`config.log' for more details." >&5
5458echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5459See \`config.log' for more details." >&2;}
5460 { (exit 1); exit 1; }; }
5461fi
5462
5463ac_ext=c
5464ac_cpp='$CPP $CPPFLAGS'
5465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467ac_compiler_gnu=$ac_cv_c_compiler_gnu
5468
5469ac_ext=c
5470ac_cpp='$CPP $CPPFLAGS'
5471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474if test -n "$ac_tool_prefix"; then
5475 for ac_prog in gcc
5476 do
5477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5478set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5481if test "${ac_cv_prog_CC+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483else
5484 if test -n "$CC"; then
5485 ac_cv_prog_CC="$CC" # Let the user override the test.
5486else
5487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488for as_dir in $PATH
5489do
5490 IFS=$as_save_IFS
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005493 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 +00005494 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 break 2
5497 fi
5498done
5499done
5500IFS=$as_save_IFS
5501
5502fi
5503fi
5504CC=$ac_cv_prog_CC
5505if test -n "$CC"; then
5506 { echo "$as_me:$LINENO: result: $CC" >&5
5507echo "${ECHO_T}$CC" >&6; }
5508else
5509 { echo "$as_me:$LINENO: result: no" >&5
5510echo "${ECHO_T}no" >&6; }
5511fi
5512
5513
5514 test -n "$CC" && break
5515 done
5516fi
5517if test -z "$CC"; then
5518 ac_ct_CC=$CC
5519 for ac_prog in gcc
5520do
5521 # Extract the first word of "$ac_prog", so it can be a program name with args.
5522set dummy $ac_prog; ac_word=$2
5523{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5525if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527else
5528 if test -n "$ac_ct_CC"; then
5529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5530else
5531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532for as_dir in $PATH
5533do
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005537 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 +00005538 ac_cv_prog_ac_ct_CC="$ac_prog"
5539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 break 2
5541 fi
5542done
5543done
5544IFS=$as_save_IFS
5545
5546fi
5547fi
5548ac_ct_CC=$ac_cv_prog_ac_ct_CC
5549if test -n "$ac_ct_CC"; then
5550 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5551echo "${ECHO_T}$ac_ct_CC" >&6; }
5552else
5553 { echo "$as_me:$LINENO: result: no" >&5
5554echo "${ECHO_T}no" >&6; }
5555fi
5556
5557
5558 test -n "$ac_ct_CC" && break
5559done
5560
5561 if test "x$ac_ct_CC" = x; then
5562 CC=""
5563 else
5564 case $cross_compiling:$ac_tool_warned in
5565yes:)
5566{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5567whose name does not start with the host triplet. If you think this
5568configuration is useful to you, please write to autoconf@gnu.org." >&5
5569echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5570whose name does not start with the host triplet. If you think this
5571configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5572ac_tool_warned=yes ;;
5573esac
5574 CC=$ac_ct_CC
5575 fi
5576fi
5577
5578
5579test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5580See \`config.log' for more details." >&5
5581echo "$as_me: error: no acceptable C compiler found in \$PATH
5582See \`config.log' for more details." >&2;}
5583 { (exit 1); exit 1; }; }
5584
5585# Provide some information about the compiler.
5586echo "$as_me:$LINENO: checking for C compiler version" >&5
5587ac_compiler=`set X $ac_compile; echo $2`
5588{ (ac_try="$ac_compiler --version >&5"
5589case "(($ac_try" in
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5592esac
5593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_compiler --version >&5") 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }
5598{ (ac_try="$ac_compiler -v >&5"
5599case "(($ac_try" in
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5602esac
5603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_compiler -v >&5") 2>&5
5605 ac_status=$?
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }
5608{ (ac_try="$ac_compiler -V >&5"
5609case "(($ac_try" in
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5612esac
5613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compiler -V >&5") 2>&5
5615 ac_status=$?
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }
5618
5619{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5620echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5621if test "${ac_cv_c_compiler_gnu+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623else
5624 cat >conftest.$ac_ext <<_ACEOF
5625/* confdefs.h. */
5626_ACEOF
5627cat confdefs.h >>conftest.$ac_ext
5628cat >>conftest.$ac_ext <<_ACEOF
5629/* end confdefs.h. */
5630
5631int
5632main ()
5633{
5634#ifndef __GNUC__
5635 choke me
5636#endif
5637
5638 ;
5639 return 0;
5640}
5641_ACEOF
5642rm -f conftest.$ac_objext
5643if { (ac_try="$ac_compile"
5644case "(($ac_try" in
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5647esac
5648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649 (eval "$ac_compile") 2>conftest.er1
5650 ac_status=$?
5651 grep -v '^ *+' conftest.er1 >conftest.err
5652 rm -f conftest.er1
5653 cat conftest.err >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005655 (exit $ac_status); } &&
5656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5657 { (case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660esac
5661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_try") 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; } &&
5666 { ac_try='test -s conftest.$ac_objext'
5667 { (case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670esac
5671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_try") 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005676 ac_compiler_gnu=yes
5677else
5678 echo "$as_me: failed program was:" >&5
5679sed 's/^/| /' conftest.$ac_ext >&5
5680
5681 ac_compiler_gnu=no
5682fi
5683
5684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685ac_cv_c_compiler_gnu=$ac_compiler_gnu
5686
5687fi
5688{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5689echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5690GCC=`test $ac_compiler_gnu = yes && echo yes`
5691ac_test_CFLAGS=${CFLAGS+set}
5692ac_save_CFLAGS=$CFLAGS
5693{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5694echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5695if test "${ac_cv_prog_cc_g+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5697else
5698 ac_save_c_werror_flag=$ac_c_werror_flag
5699 ac_c_werror_flag=yes
5700 ac_cv_prog_cc_g=no
5701 CFLAGS="-g"
5702 cat >conftest.$ac_ext <<_ACEOF
5703/* confdefs.h. */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
5707/* end confdefs.h. */
5708
5709int
5710main ()
5711{
5712
5713 ;
5714 return 0;
5715}
5716_ACEOF
5717rm -f conftest.$ac_objext
5718if { (ac_try="$ac_compile"
5719case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722esac
5723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005730 (exit $ac_status); } &&
5731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5732 { (case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735esac
5736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_try") 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; } &&
5741 { ac_try='test -s conftest.$ac_objext'
5742 { (case "(($ac_try" in
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5745esac
5746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747 (eval "$ac_try") 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005751 ac_cv_prog_cc_g=yes
5752else
5753 echo "$as_me: failed program was:" >&5
5754sed 's/^/| /' conftest.$ac_ext >&5
5755
5756 CFLAGS=""
5757 cat >conftest.$ac_ext <<_ACEOF
5758/* confdefs.h. */
5759_ACEOF
5760cat confdefs.h >>conftest.$ac_ext
5761cat >>conftest.$ac_ext <<_ACEOF
5762/* end confdefs.h. */
5763
5764int
5765main ()
5766{
5767
5768 ;
5769 return 0;
5770}
5771_ACEOF
5772rm -f conftest.$ac_objext
5773if { (ac_try="$ac_compile"
5774case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777esac
5778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compile") 2>conftest.er1
5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005785 (exit $ac_status); } &&
5786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5787 { (case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790esac
5791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_try") 2>&5
5793 ac_status=$?
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; } &&
5796 { ac_try='test -s conftest.$ac_objext'
5797 { (case "(($ac_try" in
5798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5800esac
5801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_try") 2>&5
5803 ac_status=$?
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005806 :
5807else
5808 echo "$as_me: failed program was:" >&5
5809sed 's/^/| /' conftest.$ac_ext >&5
5810
5811 ac_c_werror_flag=$ac_save_c_werror_flag
5812 CFLAGS="-g"
5813 cat >conftest.$ac_ext <<_ACEOF
5814/* confdefs.h. */
5815_ACEOF
5816cat confdefs.h >>conftest.$ac_ext
5817cat >>conftest.$ac_ext <<_ACEOF
5818/* end confdefs.h. */
5819
5820int
5821main ()
5822{
5823
5824 ;
5825 return 0;
5826}
5827_ACEOF
5828rm -f conftest.$ac_objext
5829if { (ac_try="$ac_compile"
5830case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833esac
5834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_compile") 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005841 (exit $ac_status); } &&
5842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5843 { (case "(($ac_try" in
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5846esac
5847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_try") 2>&5
5849 ac_status=$?
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; } &&
5852 { ac_try='test -s conftest.$ac_objext'
5853 { (case "(($ac_try" in
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5856esac
5857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_try") 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005862 ac_cv_prog_cc_g=yes
5863else
5864 echo "$as_me: failed program was:" >&5
5865sed 's/^/| /' conftest.$ac_ext >&5
5866
5867
5868fi
5869
5870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871fi
5872
5873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874fi
5875
5876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 ac_c_werror_flag=$ac_save_c_werror_flag
5878fi
5879{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5880echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5881if test "$ac_test_CFLAGS" = set; then
5882 CFLAGS=$ac_save_CFLAGS
5883elif test $ac_cv_prog_cc_g = yes; then
5884 if test "$GCC" = yes; then
5885 CFLAGS="-g -O2"
5886 else
5887 CFLAGS="-g"
5888 fi
5889else
5890 if test "$GCC" = yes; then
5891 CFLAGS="-O2"
5892 else
5893 CFLAGS=
5894 fi
5895fi
5896{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5897echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5898if test "${ac_cv_prog_cc_c89+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5900else
5901 ac_cv_prog_cc_c89=no
5902ac_save_CC=$CC
5903cat >conftest.$ac_ext <<_ACEOF
5904/* confdefs.h. */
5905_ACEOF
5906cat confdefs.h >>conftest.$ac_ext
5907cat >>conftest.$ac_ext <<_ACEOF
5908/* end confdefs.h. */
5909#include <stdarg.h>
5910#include <stdio.h>
5911#include <sys/types.h>
5912#include <sys/stat.h>
5913/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5914struct buf { int x; };
5915FILE * (*rcsopen) (struct buf *, struct stat *, int);
5916static char *e (p, i)
5917 char **p;
5918 int i;
5919{
5920 return p[i];
5921}
5922static char *f (char * (*g) (char **, int), char **p, ...)
5923{
5924 char *s;
5925 va_list v;
5926 va_start (v,p);
5927 s = g (p, va_arg (v,int));
5928 va_end (v);
5929 return s;
5930}
5931
5932/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5933 function prototypes and stuff, but not '\xHH' hex character constants.
5934 These don't provoke an error unfortunately, instead are silently treated
5935 as 'x'. The following induces an error, until -std is added to get
5936 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5937 array size at least. It's necessary to write '\x00'==0 to get something
5938 that's true only with -std. */
5939int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5940
5941/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5942 inside strings and character constants. */
5943#define FOO(x) 'x'
5944int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5945
5946int test (int i, double x);
5947struct s1 {int (*f) (int a);};
5948struct s2 {int (*f) (double a);};
5949int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5950int argc;
5951char **argv;
5952int
5953main ()
5954{
5955return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5956 ;
5957 return 0;
5958}
5959_ACEOF
5960for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5961 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5962do
5963 CC="$ac_save_CC $ac_arg"
5964 rm -f conftest.$ac_objext
5965if { (ac_try="$ac_compile"
5966case "(($ac_try" in
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5969esac
5970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971 (eval "$ac_compile") 2>conftest.er1
5972 ac_status=$?
5973 grep -v '^ *+' conftest.er1 >conftest.err
5974 rm -f conftest.er1
5975 cat conftest.err >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005977 (exit $ac_status); } &&
5978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5979 { (case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982esac
5983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_try") 2>&5
5985 ac_status=$?
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; } &&
5988 { ac_try='test -s conftest.$ac_objext'
5989 { (case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5992esac
5993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_try") 2>&5
5995 ac_status=$?
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005998 ac_cv_prog_cc_c89=$ac_arg
5999else
6000 echo "$as_me: failed program was:" >&5
6001sed 's/^/| /' conftest.$ac_ext >&5
6002
6003
6004fi
6005
6006rm -f core conftest.err conftest.$ac_objext
6007 test "x$ac_cv_prog_cc_c89" != "xno" && break
6008done
6009rm -f conftest.$ac_ext
6010CC=$ac_save_CC
6011
6012fi
6013# AC_CACHE_VAL
6014case "x$ac_cv_prog_cc_c89" in
6015 x)
6016 { echo "$as_me:$LINENO: result: none needed" >&5
6017echo "${ECHO_T}none needed" >&6; } ;;
6018 xno)
6019 { echo "$as_me:$LINENO: result: unsupported" >&5
6020echo "${ECHO_T}unsupported" >&6; } ;;
6021 *)
6022 CC="$CC $ac_cv_prog_cc_c89"
6023 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6024echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6025esac
6026
6027
6028ac_ext=c
6029ac_cpp='$CPP $CPPFLAGS'
6030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6032ac_compiler_gnu=$ac_cv_c_compiler_gnu
6033
6034ac_ext=cpp
6035ac_cpp='$CXXCPP $CPPFLAGS'
6036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6039if test -z "$CXX"; then
6040 if test -n "$CCC"; then
6041 CXX=$CCC
6042 else
6043 if test -n "$ac_tool_prefix"; then
6044 for ac_prog in g++
6045 do
6046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6047set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6050if test "${ac_cv_prog_CXX+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052else
6053 if test -n "$CXX"; then
6054 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6055else
6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057for as_dir in $PATH
6058do
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006062 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 +00006063 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 break 2
6066 fi
6067done
6068done
6069IFS=$as_save_IFS
6070
6071fi
6072fi
6073CXX=$ac_cv_prog_CXX
6074if test -n "$CXX"; then
6075 { echo "$as_me:$LINENO: result: $CXX" >&5
6076echo "${ECHO_T}$CXX" >&6; }
6077else
6078 { echo "$as_me:$LINENO: result: no" >&5
6079echo "${ECHO_T}no" >&6; }
6080fi
6081
6082
6083 test -n "$CXX" && break
6084 done
6085fi
6086if test -z "$CXX"; then
6087 ac_ct_CXX=$CXX
6088 for ac_prog in g++
6089do
6090 # Extract the first word of "$ac_prog", so it can be a program name with args.
6091set dummy $ac_prog; ac_word=$2
6092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096else
6097 if test -n "$ac_ct_CXX"; then
6098 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6099else
6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006106 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 +00006107 ac_cv_prog_ac_ct_CXX="$ac_prog"
6108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6110 fi
6111done
6112done
6113IFS=$as_save_IFS
6114
6115fi
6116fi
6117ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6118if test -n "$ac_ct_CXX"; then
6119 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6120echo "${ECHO_T}$ac_ct_CXX" >&6; }
6121else
6122 { echo "$as_me:$LINENO: result: no" >&5
6123echo "${ECHO_T}no" >&6; }
6124fi
6125
6126
6127 test -n "$ac_ct_CXX" && break
6128done
6129
6130 if test "x$ac_ct_CXX" = x; then
6131 CXX="g++"
6132 else
6133 case $cross_compiling:$ac_tool_warned in
6134yes:)
6135{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6136whose name does not start with the host triplet. If you think this
6137configuration is useful to you, please write to autoconf@gnu.org." >&5
6138echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6139whose name does not start with the host triplet. If you think this
6140configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6141ac_tool_warned=yes ;;
6142esac
6143 CXX=$ac_ct_CXX
6144 fi
6145fi
6146
6147 fi
6148fi
6149# Provide some information about the compiler.
6150echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6151ac_compiler=`set X $ac_compile; echo $2`
6152{ (ac_try="$ac_compiler --version >&5"
6153case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156esac
6157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_compiler --version >&5") 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }
6162{ (ac_try="$ac_compiler -v >&5"
6163case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166esac
6167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_compiler -v >&5") 2>&5
6169 ac_status=$?
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }
6172{ (ac_try="$ac_compiler -V >&5"
6173case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176esac
6177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_compiler -V >&5") 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }
6182
6183{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6184echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6185if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6187else
6188 cat >conftest.$ac_ext <<_ACEOF
6189/* confdefs.h. */
6190_ACEOF
6191cat confdefs.h >>conftest.$ac_ext
6192cat >>conftest.$ac_ext <<_ACEOF
6193/* end confdefs.h. */
6194
6195int
6196main ()
6197{
6198#ifndef __GNUC__
6199 choke me
6200#endif
6201
6202 ;
6203 return 0;
6204}
6205_ACEOF
6206rm -f conftest.$ac_objext
6207if { (ac_try="$ac_compile"
6208case "(($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_compile") 2>conftest.er1
6214 ac_status=$?
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006219 (exit $ac_status); } &&
6220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6221 { (case "(($ac_try" in
6222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223 *) ac_try_echo=$ac_try;;
6224esac
6225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226 (eval "$ac_try") 2>&5
6227 ac_status=$?
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; } &&
6230 { ac_try='test -s conftest.$ac_objext'
6231 { (case "(($ac_try" in
6232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233 *) ac_try_echo=$ac_try;;
6234esac
6235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236 (eval "$ac_try") 2>&5
6237 ac_status=$?
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006240 ac_compiler_gnu=yes
6241else
6242 echo "$as_me: failed program was:" >&5
6243sed 's/^/| /' conftest.$ac_ext >&5
6244
6245 ac_compiler_gnu=no
6246fi
6247
6248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6250
6251fi
6252{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6253echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6254GXX=`test $ac_compiler_gnu = yes && echo yes`
6255ac_test_CXXFLAGS=${CXXFLAGS+set}
6256ac_save_CXXFLAGS=$CXXFLAGS
6257{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6258echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6259if test "${ac_cv_prog_cxx_g+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6261else
6262 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6263 ac_cxx_werror_flag=yes
6264 ac_cv_prog_cxx_g=no
6265 CXXFLAGS="-g"
6266 cat >conftest.$ac_ext <<_ACEOF
6267/* confdefs.h. */
6268_ACEOF
6269cat confdefs.h >>conftest.$ac_ext
6270cat >>conftest.$ac_ext <<_ACEOF
6271/* end confdefs.h. */
6272
6273int
6274main ()
6275{
6276
6277 ;
6278 return 0;
6279}
6280_ACEOF
6281rm -f conftest.$ac_objext
6282if { (ac_try="$ac_compile"
6283case "(($ac_try" in
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6286esac
6287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288 (eval "$ac_compile") 2>conftest.er1
6289 ac_status=$?
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006294 (exit $ac_status); } &&
6295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6296 { (case "(($ac_try" in
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6299esac
6300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_try") 2>&5
6302 ac_status=$?
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; } &&
6305 { ac_try='test -s conftest.$ac_objext'
6306 { (case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6309esac
6310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_try") 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006315 ac_cv_prog_cxx_g=yes
6316else
6317 echo "$as_me: failed program was:" >&5
6318sed 's/^/| /' conftest.$ac_ext >&5
6319
6320 CXXFLAGS=""
6321 cat >conftest.$ac_ext <<_ACEOF
6322/* confdefs.h. */
6323_ACEOF
6324cat confdefs.h >>conftest.$ac_ext
6325cat >>conftest.$ac_ext <<_ACEOF
6326/* end confdefs.h. */
6327
6328int
6329main ()
6330{
6331
6332 ;
6333 return 0;
6334}
6335_ACEOF
6336rm -f conftest.$ac_objext
6337if { (ac_try="$ac_compile"
6338case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6341esac
6342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_compile") 2>conftest.er1
6344 ac_status=$?
6345 grep -v '^ *+' conftest.er1 >conftest.err
6346 rm -f conftest.er1
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006349 (exit $ac_status); } &&
6350 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6351 { (case "(($ac_try" in
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6354esac
6355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_try") 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; } &&
6360 { ac_try='test -s conftest.$ac_objext'
6361 { (case "(($ac_try" in
6362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363 *) ac_try_echo=$ac_try;;
6364esac
6365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366 (eval "$ac_try") 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006370 :
6371else
6372 echo "$as_me: failed program was:" >&5
6373sed 's/^/| /' conftest.$ac_ext >&5
6374
6375 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6376 CXXFLAGS="-g"
6377 cat >conftest.$ac_ext <<_ACEOF
6378/* confdefs.h. */
6379_ACEOF
6380cat confdefs.h >>conftest.$ac_ext
6381cat >>conftest.$ac_ext <<_ACEOF
6382/* end confdefs.h. */
6383
6384int
6385main ()
6386{
6387
6388 ;
6389 return 0;
6390}
6391_ACEOF
6392rm -f conftest.$ac_objext
6393if { (ac_try="$ac_compile"
6394case "(($ac_try" in
6395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396 *) ac_try_echo=$ac_try;;
6397esac
6398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399 (eval "$ac_compile") 2>conftest.er1
6400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006405 (exit $ac_status); } &&
6406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6407 { (case "(($ac_try" in
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6410esac
6411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_try") 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; } &&
6416 { ac_try='test -s conftest.$ac_objext'
6417 { (case "(($ac_try" in
6418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6419 *) ac_try_echo=$ac_try;;
6420esac
6421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6422 (eval "$ac_try") 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006426 ac_cv_prog_cxx_g=yes
6427else
6428 echo "$as_me: failed program was:" >&5
6429sed 's/^/| /' conftest.$ac_ext >&5
6430
6431
6432fi
6433
6434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435fi
6436
6437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438fi
6439
6440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6442fi
6443{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6444echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6445if test "$ac_test_CXXFLAGS" = set; then
6446 CXXFLAGS=$ac_save_CXXFLAGS
6447elif test $ac_cv_prog_cxx_g = yes; then
6448 if test "$GXX" = yes; then
6449 CXXFLAGS="-g -O2"
6450 else
6451 CXXFLAGS="-g"
6452 fi
6453else
6454 if test "$GXX" = yes; then
6455 CXXFLAGS="-O2"
6456 else
6457 CXXFLAGS=
6458 fi
6459fi
6460ac_ext=c
6461ac_cpp='$CPP $CPPFLAGS'
6462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6464ac_compiler_gnu=$ac_cv_c_compiler_gnu
6465
Reid Spencera773bd52006-08-04 18:18:08 +00006466
6467{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6468echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6469if test "${lt_cv_path_NM+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472 if test -n "$NM"; then
6473 # Let the user override the test.
6474 lt_cv_path_NM="$NM"
6475else
6476 lt_nm_to_check="${ac_tool_prefix}nm"
6477 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6478 lt_nm_to_check="$lt_nm_to_check nm"
6479 fi
6480 for lt_tmp_nm in $lt_nm_to_check; do
6481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6482 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6483 IFS="$lt_save_ifs"
6484 test -z "$ac_dir" && ac_dir=.
6485 tmp_nm="$ac_dir/$lt_tmp_nm"
6486 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6487 # Check to see if the nm accepts a BSD-compat flag.
6488 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6489 # nm: unknown option "B" ignored
6490 # Tru64's nm complains that /dev/null is an invalid object file
6491 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6492 */dev/null* | *'Invalid file or object type'*)
6493 lt_cv_path_NM="$tmp_nm -B"
6494 break
6495 ;;
6496 *)
6497 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6498 */dev/null*)
6499 lt_cv_path_NM="$tmp_nm -p"
6500 break
6501 ;;
6502 *)
6503 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6504 continue # so that we can try to find one that supports BSD flags
6505 ;;
6506 esac
6507 ;;
6508 esac
6509 fi
6510 done
6511 IFS="$lt_save_ifs"
6512 done
6513 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6514fi
6515fi
6516{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6517echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6518NM="$lt_cv_path_NM"
6519
6520
6521
6522{ echo "$as_me:$LINENO: checking for GNU make" >&5
6523echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6524if test "${llvm_cv_gnu_make_command+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526else
6527 llvm_cv_gnu_make_command=''
6528 for a in "$MAKE" make gmake gnumake ; do
6529 if test -z "$a" ; then continue ; fi ;
6530 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6531 then
6532 llvm_cv_gnu_make_command=$a ;
6533 break;
6534 fi
6535 done
6536fi
6537{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6538echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6539 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6540 ifGNUmake='' ;
6541 else
6542 ifGNUmake='#' ;
6543 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6544echo "${ECHO_T}\"Not found\"" >&6; };
6545 fi
6546
6547
6548{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6549echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6550LN_S=$as_ln_s
6551if test "$LN_S" = "ln -s"; then
6552 { echo "$as_me:$LINENO: result: yes" >&5
6553echo "${ECHO_T}yes" >&6; }
6554else
6555 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6556echo "${ECHO_T}no, using $LN_S" >&6; }
6557fi
6558
6559# Extract the first word of "cmp", so it can be a program name with args.
6560set dummy cmp; ac_word=$2
6561{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6563if test "${ac_cv_path_CMP+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565else
6566 case $CMP in
6567 [\\/]* | ?:[\\/]*)
6568 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6569 ;;
6570 *)
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572for as_dir in $PATH
6573do
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006577 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 +00006578 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 break 2
6581 fi
6582done
6583done
6584IFS=$as_save_IFS
6585
6586 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6587 ;;
6588esac
6589fi
6590CMP=$ac_cv_path_CMP
6591if test -n "$CMP"; then
6592 { echo "$as_me:$LINENO: result: $CMP" >&5
6593echo "${ECHO_T}$CMP" >&6; }
6594else
6595 { echo "$as_me:$LINENO: result: no" >&5
6596echo "${ECHO_T}no" >&6; }
6597fi
6598
6599
6600# Extract the first word of "cp", so it can be a program name with args.
6601set dummy cp; ac_word=$2
6602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6604if test "${ac_cv_path_CP+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6606else
6607 case $CP in
6608 [\\/]* | ?:[\\/]*)
6609 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6610 ;;
6611 *)
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613for as_dir in $PATH
6614do
6615 IFS=$as_save_IFS
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006618 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 +00006619 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 break 2
6622 fi
6623done
6624done
6625IFS=$as_save_IFS
6626
6627 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6628 ;;
6629esac
6630fi
6631CP=$ac_cv_path_CP
6632if test -n "$CP"; then
6633 { echo "$as_me:$LINENO: result: $CP" >&5
6634echo "${ECHO_T}$CP" >&6; }
6635else
6636 { echo "$as_me:$LINENO: result: no" >&5
6637echo "${ECHO_T}no" >&6; }
6638fi
6639
6640
6641# Extract the first word of "date", so it can be a program name with args.
6642set dummy date; ac_word=$2
6643{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645if test "${ac_cv_path_DATE+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6647else
6648 case $DATE in
6649 [\\/]* | ?:[\\/]*)
6650 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6651 ;;
6652 *)
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654for as_dir in $PATH
6655do
6656 IFS=$as_save_IFS
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006659 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 +00006660 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 break 2
6663 fi
6664done
6665done
6666IFS=$as_save_IFS
6667
6668 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6669 ;;
6670esac
6671fi
6672DATE=$ac_cv_path_DATE
6673if test -n "$DATE"; then
6674 { echo "$as_me:$LINENO: result: $DATE" >&5
6675echo "${ECHO_T}$DATE" >&6; }
6676else
6677 { echo "$as_me:$LINENO: result: no" >&5
6678echo "${ECHO_T}no" >&6; }
6679fi
6680
6681
6682# Extract the first word of "find", so it can be a program name with args.
6683set dummy find; ac_word=$2
6684{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686if test "${ac_cv_path_FIND+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6688else
6689 case $FIND in
6690 [\\/]* | ?:[\\/]*)
6691 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6692 ;;
6693 *)
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695for as_dir in $PATH
6696do
6697 IFS=$as_save_IFS
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006700 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 +00006701 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 break 2
6704 fi
6705done
6706done
6707IFS=$as_save_IFS
6708
6709 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6710 ;;
6711esac
6712fi
6713FIND=$ac_cv_path_FIND
6714if test -n "$FIND"; then
6715 { echo "$as_me:$LINENO: result: $FIND" >&5
6716echo "${ECHO_T}$FIND" >&6; }
6717else
6718 { echo "$as_me:$LINENO: result: no" >&5
6719echo "${ECHO_T}no" >&6; }
6720fi
6721
6722
6723# Extract the first word of "grep", so it can be a program name with args.
6724set dummy grep; ac_word=$2
6725{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727if test "${ac_cv_path_GREP+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729else
6730 case $GREP in
6731 [\\/]* | ?:[\\/]*)
6732 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6733 ;;
6734 *)
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH
6737do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006741 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 +00006742 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746done
6747done
6748IFS=$as_save_IFS
6749
6750 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6751 ;;
6752esac
6753fi
6754GREP=$ac_cv_path_GREP
6755if test -n "$GREP"; then
6756 { echo "$as_me:$LINENO: result: $GREP" >&5
6757echo "${ECHO_T}$GREP" >&6; }
6758else
6759 { echo "$as_me:$LINENO: result: no" >&5
6760echo "${ECHO_T}no" >&6; }
6761fi
6762
6763
6764# Extract the first word of "mkdir", so it can be a program name with args.
6765set dummy mkdir; ac_word=$2
6766{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768if test "${ac_cv_path_MKDIR+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6770else
6771 case $MKDIR in
6772 [\\/]* | ?:[\\/]*)
6773 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6774 ;;
6775 *)
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777for as_dir in $PATH
6778do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006782 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 +00006783 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787done
6788done
6789IFS=$as_save_IFS
6790
6791 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6792 ;;
6793esac
6794fi
6795MKDIR=$ac_cv_path_MKDIR
6796if test -n "$MKDIR"; then
6797 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6798echo "${ECHO_T}$MKDIR" >&6; }
6799else
6800 { echo "$as_me:$LINENO: result: no" >&5
6801echo "${ECHO_T}no" >&6; }
6802fi
6803
6804
6805# Extract the first word of "mv", so it can be a program name with args.
6806set dummy mv; ac_word=$2
6807{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6809if test "${ac_cv_path_MV+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811else
6812 case $MV in
6813 [\\/]* | ?:[\\/]*)
6814 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6815 ;;
6816 *)
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818for as_dir in $PATH
6819do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006823 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 +00006824 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 break 2
6827 fi
6828done
6829done
6830IFS=$as_save_IFS
6831
6832 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6833 ;;
6834esac
6835fi
6836MV=$ac_cv_path_MV
6837if test -n "$MV"; then
6838 { echo "$as_me:$LINENO: result: $MV" >&5
6839echo "${ECHO_T}$MV" >&6; }
6840else
6841 { echo "$as_me:$LINENO: result: no" >&5
6842echo "${ECHO_T}no" >&6; }
6843fi
6844
6845
6846if test -n "$ac_tool_prefix"; then
6847 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6848set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851if test "${ac_cv_prog_RANLIB+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853else
6854 if test -n "$RANLIB"; then
6855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6856else
6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
6859do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006864 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868done
6869done
6870IFS=$as_save_IFS
6871
6872fi
6873fi
6874RANLIB=$ac_cv_prog_RANLIB
6875if test -n "$RANLIB"; then
6876 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6877echo "${ECHO_T}$RANLIB" >&6; }
6878else
6879 { echo "$as_me:$LINENO: result: no" >&5
6880echo "${ECHO_T}no" >&6; }
6881fi
6882
6883
6884fi
6885if test -z "$ac_cv_prog_RANLIB"; then
6886 ac_ct_RANLIB=$RANLIB
6887 # Extract the first word of "ranlib", so it can be a program name with args.
6888set dummy ranlib; ac_word=$2
6889{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893else
6894 if test -n "$ac_ct_RANLIB"; then
6895 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6896else
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006903 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 +00006904 ac_cv_prog_ac_ct_RANLIB="ranlib"
6905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6907 fi
6908done
6909done
6910IFS=$as_save_IFS
6911
6912fi
6913fi
6914ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6915if test -n "$ac_ct_RANLIB"; then
6916 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6917echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6918else
6919 { echo "$as_me:$LINENO: result: no" >&5
6920echo "${ECHO_T}no" >&6; }
6921fi
6922
6923 if test "x$ac_ct_RANLIB" = x; then
6924 RANLIB=":"
6925 else
6926 case $cross_compiling:$ac_tool_warned in
6927yes:)
6928{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6929whose name does not start with the host triplet. If you think this
6930configuration is useful to you, please write to autoconf@gnu.org." >&5
6931echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6932whose name does not start with the host triplet. If you think this
6933configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6934ac_tool_warned=yes ;;
6935esac
6936 RANLIB=$ac_ct_RANLIB
6937 fi
6938else
6939 RANLIB="$ac_cv_prog_RANLIB"
6940fi
6941
6942# Extract the first word of "rm", so it can be a program name with args.
6943set dummy rm; 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_RM+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948else
6949 case $RM in
6950 [\\/]* | ?:[\\/]*)
6951 ac_cv_path_RM="$RM" # 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_RM="$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_RM" && ac_cv_path_RM="rm"
6970 ;;
6971esac
6972fi
6973RM=$ac_cv_path_RM
6974if test -n "$RM"; then
6975 { echo "$as_me:$LINENO: result: $RM" >&5
6976echo "${ECHO_T}$RM" >&6; }
6977else
6978 { echo "$as_me:$LINENO: result: no" >&5
6979echo "${ECHO_T}no" >&6; }
6980fi
6981
6982
6983# Extract the first word of "sed", so it can be a program name with args.
6984set dummy sed; 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_SED+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989else
6990 case $SED in
6991 [\\/]* | ?:[\\/]*)
6992 ac_cv_path_SED="$SED" # 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_SED="$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_SED" && ac_cv_path_SED="sed"
7011 ;;
7012esac
7013fi
7014SED=$ac_cv_path_SED
7015if test -n "$SED"; then
7016 { echo "$as_me:$LINENO: result: $SED" >&5
7017echo "${ECHO_T}$SED" >&6; }
7018else
7019 { echo "$as_me:$LINENO: result: no" >&5
7020echo "${ECHO_T}no" >&6; }
7021fi
7022
7023
7024# Extract the first word of "tar", so it can be a program name with args.
7025set dummy tar; 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_TAR+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030else
7031 case $TAR in
7032 [\\/]* | ?:[\\/]*)
7033 ac_cv_path_TAR="$TAR" # 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_TAR="$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_TAR" && ac_cv_path_TAR="gtar"
7052 ;;
7053esac
7054fi
7055TAR=$ac_cv_path_TAR
7056if test -n "$TAR"; then
7057 { echo "$as_me:$LINENO: result: $TAR" >&5
7058echo "${ECHO_T}$TAR" >&6; }
7059else
7060 { echo "$as_me:$LINENO: result: no" >&5
7061echo "${ECHO_T}no" >&6; }
7062fi
7063
7064
7065# Extract the first word of "pwd", so it can be a program name with args.
7066set dummy pwd; ac_word=$2
7067{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069if test "${ac_cv_path_BINPWD+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071else
7072 case $BINPWD in
7073 [\\/]* | ?:[\\/]*)
7074 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7075 ;;
7076 *)
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078for as_dir in $PATH
7079do
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007084 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7087 fi
7088done
7089done
7090IFS=$as_save_IFS
7091
7092 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7093 ;;
7094esac
7095fi
7096BINPWD=$ac_cv_path_BINPWD
7097if test -n "$BINPWD"; then
7098 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7099echo "${ECHO_T}$BINPWD" >&6; }
7100else
7101 { echo "$as_me:$LINENO: result: no" >&5
7102echo "${ECHO_T}no" >&6; }
7103fi
7104
7105
7106
7107# Extract the first word of "Graphviz", so it can be a program name with args.
7108set dummy Graphviz; ac_word=$2
7109{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113else
7114 case $GRAPHVIZ in
7115 [\\/]* | ?:[\\/]*)
7116 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7117 ;;
7118 *)
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007125 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 +00007126 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7129 fi
7130done
7131done
7132IFS=$as_save_IFS
7133
7134 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7135 ;;
7136esac
7137fi
7138GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7139if test -n "$GRAPHVIZ"; then
7140 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7141echo "${ECHO_T}$GRAPHVIZ" >&6; }
7142else
7143 { echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6; }
7145fi
7146
7147
7148if test "$GRAPHVIZ" != "echo Graphviz" ; then
7149
7150cat >>confdefs.h <<\_ACEOF
7151#define HAVE_GRAPHVIZ 1
7152_ACEOF
7153
Jeff Cohen28783c32007-01-12 18:22:38 +00007154 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007155 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7156 fi
7157
7158cat >>confdefs.h <<_ACEOF
7159#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7160_ACEOF
7161
7162fi
7163# Extract the first word of "dot", so it can be a program name with args.
7164set dummy dot; ac_word=$2
7165{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167if test "${ac_cv_path_DOT+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7169else
7170 case $DOT in
7171 [\\/]* | ?:[\\/]*)
7172 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7173 ;;
7174 *)
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176for as_dir in $PATH
7177do
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007181 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 +00007182 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 break 2
7185 fi
7186done
7187done
7188IFS=$as_save_IFS
7189
7190 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7191 ;;
7192esac
7193fi
7194DOT=$ac_cv_path_DOT
7195if test -n "$DOT"; then
7196 { echo "$as_me:$LINENO: result: $DOT" >&5
7197echo "${ECHO_T}$DOT" >&6; }
7198else
7199 { echo "$as_me:$LINENO: result: no" >&5
7200echo "${ECHO_T}no" >&6; }
7201fi
7202
7203
7204if test "$DOT" != "echo dot" ; then
7205
7206cat >>confdefs.h <<\_ACEOF
7207#define HAVE_DOT 1
7208_ACEOF
7209
Jeff Cohen28783c32007-01-12 18:22:38 +00007210 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007211 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7212 fi
7213
7214cat >>confdefs.h <<_ACEOF
7215#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7216_ACEOF
7217
7218fi
7219for ac_prog in gv gsview32
7220do
7221 # Extract the first word of "$ac_prog", so it can be a program name with args.
7222set dummy $ac_prog; ac_word=$2
7223{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7225if test "${ac_cv_path_GV+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7227else
7228 case $GV in
7229 [\\/]* | ?:[\\/]*)
7230 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7231 ;;
7232 *)
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234for as_dir in $PATH
7235do
7236 IFS=$as_save_IFS
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007239 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 +00007240 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 break 2
7243 fi
7244done
7245done
7246IFS=$as_save_IFS
7247
7248 ;;
7249esac
7250fi
7251GV=$ac_cv_path_GV
7252if test -n "$GV"; then
7253 { echo "$as_me:$LINENO: result: $GV" >&5
7254echo "${ECHO_T}$GV" >&6; }
7255else
7256 { echo "$as_me:$LINENO: result: no" >&5
7257echo "${ECHO_T}no" >&6; }
7258fi
7259
7260
7261 test -n "$GV" && break
7262done
7263test -n "$GV" || GV="echo gv"
7264
7265if test "$GV" != "echo gv" ; then
7266
7267cat >>confdefs.h <<\_ACEOF
7268#define HAVE_GV 1
7269_ACEOF
7270
Jeff Cohen28783c32007-01-12 18:22:38 +00007271 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007272 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7273 fi
7274
7275cat >>confdefs.h <<_ACEOF
7276#define LLVM_PATH_GV "$GV${EXEEXT}"
7277_ACEOF
7278
7279fi
7280# Extract the first word of "dotty", so it can be a program name with args.
7281set dummy dotty; ac_word=$2
7282{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7284if test "${ac_cv_path_DOTTY+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286else
7287 case $DOTTY in
7288 [\\/]* | ?:[\\/]*)
7289 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7290 ;;
7291 *)
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293for as_dir in $PATH
7294do
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007298 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 +00007299 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 break 2
7302 fi
7303done
7304done
7305IFS=$as_save_IFS
7306
7307 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7308 ;;
7309esac
7310fi
7311DOTTY=$ac_cv_path_DOTTY
7312if test -n "$DOTTY"; then
7313 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7314echo "${ECHO_T}$DOTTY" >&6; }
7315else
7316 { echo "$as_me:$LINENO: result: no" >&5
7317echo "${ECHO_T}no" >&6; }
7318fi
7319
7320
7321if test "$DOTTY" != "echo dotty" ; then
7322
7323cat >>confdefs.h <<\_ACEOF
7324#define HAVE_DOTTY 1
7325_ACEOF
7326
Jeff Cohen28783c32007-01-12 18:22:38 +00007327 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007328 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7329 fi
7330
7331cat >>confdefs.h <<_ACEOF
7332#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7333_ACEOF
7334
7335fi
7336
7337
7338# Extract the first word of "perl", so it can be a program name with args.
7339set dummy perl; ac_word=$2
7340{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7342if test "${ac_cv_path_PERL+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7344else
7345 case $PERL in
7346 [\\/]* | ?:[\\/]*)
7347 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7348 ;;
7349 *)
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007356 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 +00007357 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361done
7362done
7363IFS=$as_save_IFS
7364
7365 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7366 ;;
7367esac
7368fi
7369PERL=$ac_cv_path_PERL
7370if test -n "$PERL"; then
7371 { echo "$as_me:$LINENO: result: $PERL" >&5
7372echo "${ECHO_T}$PERL" >&6; }
7373else
7374 { echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6; }
7376fi
7377
7378
7379if test "$PERL" != "none"; then
7380 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7381echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7382 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7383 { echo "$as_me:$LINENO: result: yes" >&5
7384echo "${ECHO_T}yes" >&6; }
7385 else
7386 PERL=none
7387 { echo "$as_me:$LINENO: result: not found" >&5
7388echo "${ECHO_T}not found" >&6; }
7389 fi
7390fi
7391
7392
7393if test x"$PERL" = xnone; then
7394 HAVE_PERL=0
7395
Reid Spencer59807fa2007-05-17 18:11:03 +00007396 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7397echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7398 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007399else
7400 HAVE_PERL=1
7401
7402fi
7403
7404# Find a good install program. We prefer a C program (faster),
7405# so one script is as good as another. But avoid the broken or
7406# incompatible versions:
7407# SysV /etc/install, /usr/sbin/install
7408# SunOS /usr/etc/install
7409# IRIX /sbin/install
7410# AIX /bin/install
7411# AmigaOS /C/install, which installs bootblocks on floppy discs
7412# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7413# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7414# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7415# OS/2's system install, which has a completely different semantic
7416# ./install, which can be erroneously created by make from ./install.sh.
7417{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7418echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7419if test -z "$INSTALL"; then
7420if test "${ac_cv_path_install+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424for as_dir in $PATH
7425do
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 # Account for people who put trailing slashes in PATH elements.
7429case $as_dir/ in
7430 ./ | .// | /cC/* | \
7431 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7432 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7433 /usr/ucb/* ) ;;
7434 *)
7435 # OSF1 and SCO ODT 3.0 have their own names for install.
7436 # Don't use installbsd from OSF since it installs stuff as root
7437 # by default.
7438 for ac_prog in ginstall scoinst install; do
7439 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007440 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 +00007441 if test $ac_prog = install &&
7442 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7443 # AIX install. It has an incompatible calling convention.
7444 :
7445 elif test $ac_prog = install &&
7446 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7447 # program-specific install script used by HP pwplus--don't use.
7448 :
7449 else
7450 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7451 break 3
7452 fi
7453 fi
7454 done
7455 done
7456 ;;
7457esac
7458done
7459IFS=$as_save_IFS
7460
7461
7462fi
7463 if test "${ac_cv_path_install+set}" = set; then
7464 INSTALL=$ac_cv_path_install
7465 else
7466 # As a last resort, use the slow shell script. Don't cache a
7467 # value for INSTALL within a source directory, because that will
7468 # break other packages using the cache if that directory is
7469 # removed, or if the value is a relative name.
7470 INSTALL=$ac_install_sh
7471 fi
7472fi
7473{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7474echo "${ECHO_T}$INSTALL" >&6; }
7475
7476# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7477# It thinks the first close brace ends the variable substitution.
7478test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7479
7480test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7481
7482test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7483
7484
7485# Extract the first word of "bzip2", so it can be a program name with args.
7486set dummy bzip2; ac_word=$2
7487{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7489if test "${ac_cv_path_BZIP2+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7491else
7492 case $BZIP2 in
7493 [\\/]* | ?:[\\/]*)
7494 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7495 ;;
7496 *)
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498for as_dir in $PATH
7499do
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007503 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 +00007504 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7507 fi
7508done
7509done
7510IFS=$as_save_IFS
7511
Reid Spencera773bd52006-08-04 18:18:08 +00007512 ;;
7513esac
7514fi
7515BZIP2=$ac_cv_path_BZIP2
7516if test -n "$BZIP2"; then
7517 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7518echo "${ECHO_T}$BZIP2" >&6; }
7519else
7520 { echo "$as_me:$LINENO: result: no" >&5
7521echo "${ECHO_T}no" >&6; }
7522fi
7523
7524
7525# Extract the first word of "doxygen", so it can be a program name with args.
7526set dummy doxygen; ac_word=$2
7527{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7529if test "${ac_cv_path_DOXYGEN+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7531else
7532 case $DOXYGEN in
7533 [\\/]* | ?:[\\/]*)
7534 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7535 ;;
7536 *)
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538for as_dir in $PATH
7539do
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
7542 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007543 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 +00007544 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7546 break 2
7547 fi
7548done
7549done
7550IFS=$as_save_IFS
7551
Reid Spencera773bd52006-08-04 18:18:08 +00007552 ;;
7553esac
7554fi
7555DOXYGEN=$ac_cv_path_DOXYGEN
7556if test -n "$DOXYGEN"; then
7557 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7558echo "${ECHO_T}$DOXYGEN" >&6; }
7559else
7560 { echo "$as_me:$LINENO: result: no" >&5
7561echo "${ECHO_T}no" >&6; }
7562fi
7563
7564
Reid Spencera773bd52006-08-04 18:18:08 +00007565# Extract the first word of "groff", so it can be a program name with args.
7566set dummy groff; ac_word=$2
7567{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7569if test "${ac_cv_path_GROFF+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7571else
7572 case $GROFF in
7573 [\\/]* | ?:[\\/]*)
7574 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7575 ;;
7576 *)
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578for as_dir in $PATH
7579do
7580 IFS=$as_save_IFS
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007583 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 +00007584 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 break 2
7587 fi
7588done
7589done
7590IFS=$as_save_IFS
7591
Reid Spencera773bd52006-08-04 18:18:08 +00007592 ;;
7593esac
7594fi
7595GROFF=$ac_cv_path_GROFF
7596if test -n "$GROFF"; then
7597 { echo "$as_me:$LINENO: result: $GROFF" >&5
7598echo "${ECHO_T}$GROFF" >&6; }
7599else
7600 { echo "$as_me:$LINENO: result: no" >&5
7601echo "${ECHO_T}no" >&6; }
7602fi
7603
7604
7605# Extract the first word of "gzip", so it can be a program name with args.
7606set dummy gzip; ac_word=$2
7607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7609if test "${ac_cv_path_GZIP+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7611else
7612 case $GZIP in
7613 [\\/]* | ?:[\\/]*)
7614 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7615 ;;
7616 *)
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618for as_dir in $PATH
7619do
7620 IFS=$as_save_IFS
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007623 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 +00007624 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 break 2
7627 fi
7628done
7629done
7630IFS=$as_save_IFS
7631
Reid Spencera773bd52006-08-04 18:18:08 +00007632 ;;
7633esac
7634fi
7635GZIP=$ac_cv_path_GZIP
7636if test -n "$GZIP"; then
7637 { echo "$as_me:$LINENO: result: $GZIP" >&5
7638echo "${ECHO_T}$GZIP" >&6; }
7639else
7640 { echo "$as_me:$LINENO: result: no" >&5
7641echo "${ECHO_T}no" >&6; }
7642fi
7643
7644
7645# Extract the first word of "pod2html", so it can be a program name with args.
7646set dummy pod2html; ac_word=$2
7647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7649if test "${ac_cv_path_POD2HTML+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651else
7652 case $POD2HTML in
7653 [\\/]* | ?:[\\/]*)
7654 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7655 ;;
7656 *)
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658for as_dir in $PATH
7659do
7660 IFS=$as_save_IFS
7661 test -z "$as_dir" && as_dir=.
7662 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007663 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 +00007664 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 break 2
7667 fi
7668done
7669done
7670IFS=$as_save_IFS
7671
Reid Spencera773bd52006-08-04 18:18:08 +00007672 ;;
7673esac
7674fi
7675POD2HTML=$ac_cv_path_POD2HTML
7676if test -n "$POD2HTML"; then
7677 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7678echo "${ECHO_T}$POD2HTML" >&6; }
7679else
7680 { echo "$as_me:$LINENO: result: no" >&5
7681echo "${ECHO_T}no" >&6; }
7682fi
7683
7684
7685# Extract the first word of "pod2man", so it can be a program name with args.
7686set dummy pod2man; ac_word=$2
7687{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7689if test "${ac_cv_path_POD2MAN+set}" = set; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7691else
7692 case $POD2MAN in
7693 [\\/]* | ?:[\\/]*)
7694 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7695 ;;
7696 *)
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698for as_dir in $PATH
7699do
7700 IFS=$as_save_IFS
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007703 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 +00007704 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 break 2
7707 fi
7708done
7709done
7710IFS=$as_save_IFS
7711
Reid Spencera773bd52006-08-04 18:18:08 +00007712 ;;
7713esac
7714fi
7715POD2MAN=$ac_cv_path_POD2MAN
7716if test -n "$POD2MAN"; then
7717 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7718echo "${ECHO_T}$POD2MAN" >&6; }
7719else
7720 { echo "$as_me:$LINENO: result: no" >&5
7721echo "${ECHO_T}no" >&6; }
7722fi
7723
7724
7725# Extract the first word of "runtest", so it can be a program name with args.
7726set dummy runtest; ac_word=$2
7727{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7729if test "${ac_cv_path_RUNTEST+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7731else
7732 case $RUNTEST in
7733 [\\/]* | ?:[\\/]*)
7734 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7735 ;;
7736 *)
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738for as_dir in $PATH
7739do
7740 IFS=$as_save_IFS
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007743 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 +00007744 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 break 2
7747 fi
7748done
7749done
7750IFS=$as_save_IFS
7751
Reid Spencera773bd52006-08-04 18:18:08 +00007752 ;;
7753esac
7754fi
7755RUNTEST=$ac_cv_path_RUNTEST
7756if test -n "$RUNTEST"; then
7757 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7758echo "${ECHO_T}$RUNTEST" >&6; }
7759else
7760 { echo "$as_me:$LINENO: result: no" >&5
7761echo "${ECHO_T}no" >&6; }
7762fi
7763
7764
7765
7766no_itcl=true
7767{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7768echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7769
7770# Check whether --with-tclinclude was given.
7771if test "${with_tclinclude+set}" = set; then
7772 withval=$with_tclinclude; with_tclinclude=${withval}
7773else
7774 with_tclinclude=''
7775fi
7776
7777if test "${ac_cv_path_tclsh+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7779else
7780
7781if test x"${with_tclinclude}" != x ; then
7782 if test -f ${with_tclinclude}/tclsh ; then
7783 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7784 elif test -f ${with_tclinclude}/src/tclsh ; then
7785 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7786 else
7787 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7788echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7789 { (exit 1); exit 1; }; }
7790 fi
7791fi
7792
7793if test x"${ac_cv_path_tclsh}" = x ; then
7794 { echo "$as_me:$LINENO: result: none" >&5
7795echo "${ECHO_T}none" >&6; }
7796 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
7797do
7798 # Extract the first word of "$ac_prog", so it can be a program name with args.
7799set dummy $ac_prog; ac_word=$2
7800{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7802if test "${ac_cv_path_TCLSH+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7804else
7805 case $TCLSH in
7806 [\\/]* | ?:[\\/]*)
7807 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7808 ;;
7809 *)
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811for as_dir in $PATH
7812do
7813 IFS=$as_save_IFS
7814 test -z "$as_dir" && as_dir=.
7815 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007816 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 +00007817 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7819 break 2
7820 fi
7821done
7822done
7823IFS=$as_save_IFS
7824
7825 ;;
7826esac
7827fi
7828TCLSH=$ac_cv_path_TCLSH
7829if test -n "$TCLSH"; then
7830 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7831echo "${ECHO_T}$TCLSH" >&6; }
7832else
7833 { echo "$as_me:$LINENO: result: no" >&5
7834echo "${ECHO_T}no" >&6; }
7835fi
7836
7837
7838 test -n "$TCLSH" && break
7839done
7840
7841 if test x"${TCLSH}" = x ; then
7842 ac_cv_path_tclsh='';
7843 else
7844 ac_cv_path_tclsh="${TCLSH}";
7845 fi
7846else
7847 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7848echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7849 TCLSH="${ac_cv_path_tclsh}"
7850
7851fi
7852
7853fi
7854
7855# Extract the first word of "zip", so it can be a program name with args.
7856set dummy zip; ac_word=$2
7857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7859if test "${ac_cv_path_ZIP+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7861else
7862 case $ZIP in
7863 [\\/]* | ?:[\\/]*)
7864 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7865 ;;
7866 *)
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868for as_dir in $PATH
7869do
7870 IFS=$as_save_IFS
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007874 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 break 2
7877 fi
7878done
7879done
7880IFS=$as_save_IFS
7881
Reid Spencera773bd52006-08-04 18:18:08 +00007882 ;;
7883esac
7884fi
7885ZIP=$ac_cv_path_ZIP
7886if test -n "$ZIP"; then
7887 { echo "$as_me:$LINENO: result: $ZIP" >&5
7888echo "${ECHO_T}$ZIP" >&6; }
7889else
7890 { echo "$as_me:$LINENO: result: no" >&5
7891echo "${ECHO_T}no" >&6; }
7892fi
7893
7894
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007895for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007896do
7897 # Extract the first word of "$ac_prog", so it can be a program name with args.
7898set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7901if test "${ac_cv_path_OCAMLC+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903else
7904 case $OCAMLC in
7905 [\\/]* | ?:[\\/]*)
7906 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7907 ;;
7908 *)
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910for as_dir in $PATH
7911do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007915 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 +00007916 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7919 fi
7920done
7921done
7922IFS=$as_save_IFS
7923
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007924 ;;
7925esac
7926fi
7927OCAMLC=$ac_cv_path_OCAMLC
7928if test -n "$OCAMLC"; then
7929 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7930echo "${ECHO_T}$OCAMLC" >&6; }
7931else
7932 { echo "$as_me:$LINENO: result: no" >&5
7933echo "${ECHO_T}no" >&6; }
7934fi
7935
7936
Gordon Henriksene7072162008-03-07 18:20:01 +00007937 test -n "$OCAMLC" && break
7938done
7939
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007940for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007941do
7942 # Extract the first word of "$ac_prog", so it can be a program name with args.
7943set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7946if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7948else
7949 case $OCAMLOPT in
7950 [\\/]* | ?:[\\/]*)
7951 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7952 ;;
7953 *)
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955for as_dir in $PATH
7956do
7957 IFS=$as_save_IFS
7958 test -z "$as_dir" && as_dir=.
7959 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007960 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 +00007961 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7963 break 2
7964 fi
7965done
7966done
7967IFS=$as_save_IFS
7968
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007969 ;;
7970esac
7971fi
7972OCAMLOPT=$ac_cv_path_OCAMLOPT
7973if test -n "$OCAMLOPT"; then
7974 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7975echo "${ECHO_T}$OCAMLOPT" >&6; }
7976else
7977 { echo "$as_me:$LINENO: result: no" >&5
7978echo "${ECHO_T}no" >&6; }
7979fi
7980
7981
Gordon Henriksene7072162008-03-07 18:20:01 +00007982 test -n "$OCAMLOPT" && break
7983done
7984
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007985for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007986do
7987 # Extract the first word of "$ac_prog", so it can be a program name with args.
7988set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007989{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7991if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7993else
7994 case $OCAMLDEP in
7995 [\\/]* | ?:[\\/]*)
7996 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7997 ;;
7998 *)
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000for as_dir in $PATH
8001do
8002 IFS=$as_save_IFS
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008005 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 +00008006 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 break 2
8009 fi
8010done
8011done
8012IFS=$as_save_IFS
8013
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008014 ;;
8015esac
8016fi
8017OCAMLDEP=$ac_cv_path_OCAMLDEP
8018if test -n "$OCAMLDEP"; then
8019 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8020echo "${ECHO_T}$OCAMLDEP" >&6; }
8021else
8022 { echo "$as_me:$LINENO: result: no" >&5
8023echo "${ECHO_T}no" >&6; }
8024fi
8025
8026
Gordon Henriksene7072162008-03-07 18:20:01 +00008027 test -n "$OCAMLDEP" && break
8028done
8029
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008030for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008031do
8032 # Extract the first word of "$ac_prog", so it can be a program name with args.
8033set dummy $ac_prog; ac_word=$2
8034{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8036if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8038else
8039 case $OCAMLDOC in
8040 [\\/]* | ?:[\\/]*)
8041 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8042 ;;
8043 *)
8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045for as_dir in $PATH
8046do
8047 IFS=$as_save_IFS
8048 test -z "$as_dir" && as_dir=.
8049 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008050 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 +00008051 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8053 break 2
8054 fi
8055done
8056done
8057IFS=$as_save_IFS
8058
8059 ;;
8060esac
8061fi
8062OCAMLDOC=$ac_cv_path_OCAMLDOC
8063if test -n "$OCAMLDOC"; then
8064 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8065echo "${ECHO_T}$OCAMLDOC" >&6; }
8066else
8067 { echo "$as_me:$LINENO: result: no" >&5
8068echo "${ECHO_T}no" >&6; }
8069fi
8070
8071
8072 test -n "$OCAMLDOC" && break
8073done
8074
Torok Edwincc499a42008-10-22 09:56:27 +00008075for ac_prog in gas as
8076do
8077 # Extract the first word of "$ac_prog", so it can be a program name with args.
8078set dummy $ac_prog; ac_word=$2
8079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8081if test "${ac_cv_path_GAS+set}" = set; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8083else
8084 case $GAS in
8085 [\\/]* | ?:[\\/]*)
8086 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8087 ;;
8088 *)
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090for as_dir in $PATH
8091do
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008095 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 +00008096 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 break 2
8099 fi
8100done
8101done
8102IFS=$as_save_IFS
8103
8104 ;;
8105esac
8106fi
8107GAS=$ac_cv_path_GAS
8108if test -n "$GAS"; then
8109 { echo "$as_me:$LINENO: result: $GAS" >&5
8110echo "${ECHO_T}$GAS" >&6; }
8111else
8112 { echo "$as_me:$LINENO: result: no" >&5
8113echo "${ECHO_T}no" >&6; }
8114fi
8115
8116
8117 test -n "$GAS" && break
8118done
8119
Reid Spencera773bd52006-08-04 18:18:08 +00008120
8121{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8122echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8123if test "${llvm_cv_link_use_r+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8125else
8126 ac_ext=c
8127ac_cpp='$CPP $CPPFLAGS'
8128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8130ac_compiler_gnu=$ac_cv_c_compiler_gnu
8131
8132 oldcflags="$CFLAGS"
8133 CFLAGS="$CFLAGS -Wl,-R."
8134 cat >conftest.$ac_ext <<_ACEOF
8135/* confdefs.h. */
8136_ACEOF
8137cat confdefs.h >>conftest.$ac_ext
8138cat >>conftest.$ac_ext <<_ACEOF
8139/* end confdefs.h. */
8140
8141int
8142main ()
8143{
8144int main() { return 0; }
8145 ;
8146 return 0;
8147}
8148_ACEOF
8149rm -f conftest.$ac_objext conftest$ac_exeext
8150if { (ac_try="$ac_link"
8151case "(($ac_try" in
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8154esac
8155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8156 (eval "$ac_link") 2>conftest.er1
8157 ac_status=$?
8158 grep -v '^ *+' conftest.er1 >conftest.err
8159 rm -f conftest.er1
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008162 (exit $ac_status); } &&
8163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8164 { (case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8167esac
8168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_try") 2>&5
8170 ac_status=$?
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; } &&
8173 { ac_try='test -s conftest$ac_exeext'
8174 { (case "(($ac_try" in
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8177esac
8178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179 (eval "$ac_try") 2>&5
8180 ac_status=$?
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008183 llvm_cv_link_use_r=yes
8184else
8185 echo "$as_me: failed program was:" >&5
8186sed 's/^/| /' conftest.$ac_ext >&5
8187
8188 llvm_cv_link_use_r=no
8189fi
8190
Bill Wendlingebcceee2009-04-18 11:20:33 +00008191rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008192 conftest$ac_exeext conftest.$ac_ext
8193 CFLAGS="$oldcflags"
8194 ac_ext=c
8195ac_cpp='$CPP $CPPFLAGS'
8196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8198ac_compiler_gnu=$ac_cv_c_compiler_gnu
8199
8200
8201fi
8202{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8203echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8204if test "$llvm_cv_link_use_r" = yes ; then
8205
8206cat >>confdefs.h <<\_ACEOF
8207#define HAVE_LINK_R 1
8208_ACEOF
8209
8210 fi
8211
8212
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008213{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8214echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8215if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8217else
8218 ac_ext=c
8219ac_cpp='$CPP $CPPFLAGS'
8220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8222ac_compiler_gnu=$ac_cv_c_compiler_gnu
8223
8224 oldcflags="$CFLAGS"
8225 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8226 cat >conftest.$ac_ext <<_ACEOF
8227/* confdefs.h. */
8228_ACEOF
8229cat confdefs.h >>conftest.$ac_ext
8230cat >>conftest.$ac_ext <<_ACEOF
8231/* end confdefs.h. */
8232
8233int
8234main ()
8235{
8236int main() { return 0; }
8237 ;
8238 return 0;
8239}
8240_ACEOF
8241rm -f conftest.$ac_objext conftest$ac_exeext
8242if { (ac_try="$ac_link"
8243case "(($ac_try" in
8244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245 *) ac_try_echo=$ac_try;;
8246esac
8247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248 (eval "$ac_link") 2>conftest.er1
8249 ac_status=$?
8250 grep -v '^ *+' conftest.er1 >conftest.err
8251 rm -f conftest.er1
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008254 (exit $ac_status); } &&
8255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8259esac
8260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try='test -s conftest$ac_exeext'
8266 { (case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8269esac
8270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_try") 2>&5
8272 ac_status=$?
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008275 llvm_cv_link_use_export_dynamic=yes
8276else
8277 echo "$as_me: failed program was:" >&5
8278sed 's/^/| /' conftest.$ac_ext >&5
8279
8280 llvm_cv_link_use_export_dynamic=no
8281fi
8282
Bill Wendlingebcceee2009-04-18 11:20:33 +00008283rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008284 conftest$ac_exeext conftest.$ac_ext
8285 CFLAGS="$oldcflags"
8286 ac_ext=c
8287ac_cpp='$CPP $CPPFLAGS'
8288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8290ac_compiler_gnu=$ac_cv_c_compiler_gnu
8291
8292
8293fi
8294{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8295echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8296if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8297
8298cat >>confdefs.h <<\_ACEOF
8299#define HAVE_LINK_EXPORT_DYNAMIC 1
8300_ACEOF
8301
8302 fi
8303
8304
Reid Spencera773bd52006-08-04 18:18:08 +00008305
8306
8307{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8308echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8309if test "${ac_cv_c_const+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8311else
8312 cat >conftest.$ac_ext <<_ACEOF
8313/* confdefs.h. */
8314_ACEOF
8315cat confdefs.h >>conftest.$ac_ext
8316cat >>conftest.$ac_ext <<_ACEOF
8317/* end confdefs.h. */
8318
8319int
8320main ()
8321{
8322/* FIXME: Include the comments suggested by Paul. */
8323#ifndef __cplusplus
8324 /* Ultrix mips cc rejects this. */
8325 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008326 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008327 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008328 char const *const *ccp;
8329 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008330 /* NEC SVR4.0.2 mips cc rejects this. */
8331 struct point {int x, y;};
8332 static struct point const zero = {0,0};
8333 /* AIX XL C 1.02.0.0 rejects this.
8334 It does not let you subtract one const X* pointer from another in
8335 an arm of an if-expression whose if-part is not a constant
8336 expression */
8337 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008338 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008339 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008340 ++ccp;
8341 p = (char**) ccp;
8342 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008343 { /* SCO 3.2v4 cc rejects this. */
8344 char *t;
8345 char const *s = 0 ? (char *) 0 : (char const *) 0;
8346
8347 *t++ = 0;
8348 if (s) return 0;
8349 }
8350 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8351 int x[] = {25, 17};
8352 const int *foo = &x[0];
8353 ++foo;
8354 }
8355 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8356 typedef const int *iptr;
8357 iptr p = 0;
8358 ++p;
8359 }
8360 { /* AIX XL C 1.02.0.0 rejects this saying
8361 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8362 struct s { int j; const int *ap[3]; };
8363 struct s *b; b->j = 5;
8364 }
8365 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8366 const int foo = 10;
8367 if (!foo) return 0;
8368 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008369 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008370#endif
8371
8372 ;
8373 return 0;
8374}
8375_ACEOF
8376rm -f conftest.$ac_objext
8377if { (ac_try="$ac_compile"
8378case "(($ac_try" in
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8381esac
8382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_compile") 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008389 (exit $ac_status); } &&
8390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8391 { (case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394esac
8395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_try") 2>&5
8397 ac_status=$?
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; } &&
8400 { ac_try='test -s conftest.$ac_objext'
8401 { (case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404esac
8405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_try") 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008410 ac_cv_c_const=yes
8411else
8412 echo "$as_me: failed program was:" >&5
8413sed 's/^/| /' conftest.$ac_ext >&5
8414
8415 ac_cv_c_const=no
8416fi
8417
8418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419fi
8420{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8421echo "${ECHO_T}$ac_cv_c_const" >&6; }
8422if test $ac_cv_c_const = no; then
8423
8424cat >>confdefs.h <<\_ACEOF
8425#define const
8426_ACEOF
8427
8428fi
8429
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008430
8431
8432
8433
8434
8435ac_header_dirent=no
8436for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8437 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008438{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8439echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008441 echo $ECHO_N "(cached) $ECHO_C" >&6
8442else
8443 cat >conftest.$ac_ext <<_ACEOF
8444/* confdefs.h. */
8445_ACEOF
8446cat confdefs.h >>conftest.$ac_ext
8447cat >>conftest.$ac_ext <<_ACEOF
8448/* end confdefs.h. */
8449#include <sys/types.h>
8450#include <$ac_hdr>
8451
8452int
8453main ()
8454{
8455if ((DIR *) 0)
8456return 0;
8457 ;
8458 return 0;
8459}
8460_ACEOF
8461rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008462if { (ac_try="$ac_compile"
8463case "(($ac_try" in
8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8466esac
8467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008469 ac_status=$?
8470 grep -v '^ *+' conftest.er1 >conftest.err
8471 rm -f conftest.er1
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008474 (exit $ac_status); } &&
8475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8476 { (case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8479esac
8480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_try") 2>&5
8482 ac_status=$?
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; } &&
8485 { ac_try='test -s conftest.$ac_objext'
8486 { (case "(($ac_try" in
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8489esac
8490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491 (eval "$ac_try") 2>&5
8492 ac_status=$?
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008495 eval "$as_ac_Header=yes"
8496else
8497 echo "$as_me: failed program was:" >&5
8498sed 's/^/| /' conftest.$ac_ext >&5
8499
Reid Spencera773bd52006-08-04 18:18:08 +00008500 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008501fi
Reid Spencera773bd52006-08-04 18:18:08 +00008502
8503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008504fi
Reid Spencera773bd52006-08-04 18:18:08 +00008505ac_res=`eval echo '${'$as_ac_Header'}'`
8506 { echo "$as_me:$LINENO: result: $ac_res" >&5
8507echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008508if test `eval echo '${'$as_ac_Header'}'` = yes; then
8509 cat >>confdefs.h <<_ACEOF
8510#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8511_ACEOF
8512
8513ac_header_dirent=$ac_hdr; break
8514fi
8515
8516done
8517# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8518if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008519 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8520echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008521if test "${ac_cv_search_opendir+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8523else
8524 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008525cat >conftest.$ac_ext <<_ACEOF
8526/* confdefs.h. */
8527_ACEOF
8528cat confdefs.h >>conftest.$ac_ext
8529cat >>conftest.$ac_ext <<_ACEOF
8530/* end confdefs.h. */
8531
Reid Spencera773bd52006-08-04 18:18:08 +00008532/* Override any GCC internal prototype to avoid an error.
8533 Use char because int might match the return type of a GCC
8534 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008535#ifdef __cplusplus
8536extern "C"
8537#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008538char opendir ();
8539int
8540main ()
8541{
Reid Spencera773bd52006-08-04 18:18:08 +00008542return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008543 ;
8544 return 0;
8545}
8546_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008547for ac_lib in '' dir; do
8548 if test -z "$ac_lib"; then
8549 ac_res="none required"
8550 else
8551 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008553 fi
8554 rm -f conftest.$ac_objext conftest$ac_exeext
8555if { (ac_try="$ac_link"
8556case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8559esac
8560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008562 ac_status=$?
8563 grep -v '^ *+' conftest.er1 >conftest.err
8564 rm -f conftest.er1
8565 cat conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008567 (exit $ac_status); } &&
8568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8569 { (case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8572esac
8573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_try") 2>&5
8575 ac_status=$?
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; } &&
8578 { ac_try='test -s conftest$ac_exeext'
8579 { (case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8582esac
8583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_try") 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008588 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008589else
8590 echo "$as_me: failed program was:" >&5
8591sed 's/^/| /' conftest.$ac_ext >&5
8592
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008593
8594fi
8595
Bill Wendlingebcceee2009-04-18 11:20:33 +00008596rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008597 conftest$ac_exeext
8598 if test "${ac_cv_search_opendir+set}" = set; then
8599 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008600fi
John Criswell7a73b802003-06-30 21:59:07 +00008601done
Reid Spencera773bd52006-08-04 18:18:08 +00008602if test "${ac_cv_search_opendir+set}" = set; then
8603 :
8604else
8605 ac_cv_search_opendir=no
8606fi
8607rm conftest.$ac_ext
8608LIBS=$ac_func_search_save_LIBS
8609fi
8610{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8611echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8612ac_res=$ac_cv_search_opendir
8613if test "$ac_res" != no; then
8614 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008615
Reid Spencera773bd52006-08-04 18:18:08 +00008616fi
8617
8618else
8619 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8620echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8621if test "${ac_cv_search_opendir+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8623else
8624 ac_func_search_save_LIBS=$LIBS
8625cat >conftest.$ac_ext <<_ACEOF
8626/* confdefs.h. */
8627_ACEOF
8628cat confdefs.h >>conftest.$ac_ext
8629cat >>conftest.$ac_ext <<_ACEOF
8630/* end confdefs.h. */
8631
8632/* Override any GCC internal prototype to avoid an error.
8633 Use char because int might match the return type of a GCC
8634 builtin and then its argument prototype would still apply. */
8635#ifdef __cplusplus
8636extern "C"
8637#endif
8638char opendir ();
8639int
8640main ()
8641{
8642return opendir ();
8643 ;
8644 return 0;
8645}
8646_ACEOF
8647for ac_lib in '' x; do
8648 if test -z "$ac_lib"; then
8649 ac_res="none required"
8650 else
8651 ac_res=-l$ac_lib
8652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8653 fi
8654 rm -f conftest.$ac_objext conftest$ac_exeext
8655if { (ac_try="$ac_link"
8656case "(($ac_try" in
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8659esac
8660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8661 (eval "$ac_link") 2>conftest.er1
8662 ac_status=$?
8663 grep -v '^ *+' conftest.er1 >conftest.err
8664 rm -f conftest.er1
8665 cat conftest.err >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008667 (exit $ac_status); } &&
8668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8669 { (case "(($ac_try" in
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8672esac
8673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_try") 2>&5
8675 ac_status=$?
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; } &&
8678 { ac_try='test -s conftest$ac_exeext'
8679 { (case "(($ac_try" in
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8682esac
8683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_try") 2>&5
8685 ac_status=$?
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008688 ac_cv_search_opendir=$ac_res
8689else
8690 echo "$as_me: failed program was:" >&5
8691sed 's/^/| /' conftest.$ac_ext >&5
8692
8693
8694fi
8695
Bill Wendlingebcceee2009-04-18 11:20:33 +00008696rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008697 conftest$ac_exeext
8698 if test "${ac_cv_search_opendir+set}" = set; then
8699 break
8700fi
8701done
8702if test "${ac_cv_search_opendir+set}" = set; then
8703 :
8704else
8705 ac_cv_search_opendir=no
8706fi
8707rm conftest.$ac_ext
8708LIBS=$ac_func_search_save_LIBS
8709fi
8710{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8711echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8712ac_res=$ac_cv_search_opendir
8713if test "$ac_res" != no; then
8714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8715
8716fi
8717
8718fi
John Criswell7a73b802003-06-30 21:59:07 +00008719
8720
8721for ac_header in dlfcn.h
8722do
8723as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008724if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008728 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008729fi
Reid Spencera773bd52006-08-04 18:18:08 +00008730ac_res=`eval echo '${'$as_ac_Header'}'`
8731 { echo "$as_me:$LINENO: result: $ac_res" >&5
8732echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008733else
Brian Gaeke0a621332004-09-08 20:38:05 +00008734 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008735{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8736echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008737cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008738/* confdefs.h. */
8739_ACEOF
8740cat confdefs.h >>conftest.$ac_ext
8741cat >>conftest.$ac_ext <<_ACEOF
8742/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008743$ac_includes_default
8744#include <$ac_header>
8745_ACEOF
8746rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008747if { (ac_try="$ac_compile"
8748case "(($ac_try" in
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8751esac
8752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008754 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008759 (exit $ac_status); } &&
8760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8761 { (case "(($ac_try" in
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8764esac
8765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_try") 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; } &&
8770 { ac_try='test -s conftest.$ac_objext'
8771 { (case "(($ac_try" in
8772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773 *) ac_try_echo=$ac_try;;
8774esac
8775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8776 (eval "$ac_try") 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008780 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008781else
8782 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008783sed 's/^/| /' conftest.$ac_ext >&5
8784
Reid Spencera773bd52006-08-04 18:18:08 +00008785 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008786fi
Reid Spencera773bd52006-08-04 18:18:08 +00008787
8788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8789{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8790echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008791
8792# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008793{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8794echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008795cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008796/* confdefs.h. */
8797_ACEOF
8798cat confdefs.h >>conftest.$ac_ext
8799cat >>conftest.$ac_ext <<_ACEOF
8800/* end confdefs.h. */
8801#include <$ac_header>
8802_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008803if { (ac_try="$ac_cpp conftest.$ac_ext"
8804case "(($ac_try" in
8805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8806 *) ac_try_echo=$ac_try;;
8807esac
8808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008810 ac_status=$?
8811 grep -v '^ *+' conftest.er1 >conftest.err
8812 rm -f conftest.er1
8813 cat conftest.err >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008815 (exit $ac_status); } >/dev/null; then
8816 if test -s conftest.err; then
8817 ac_cpp_err=$ac_c_preproc_warn_flag
8818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8819 else
8820 ac_cpp_err=
8821 fi
8822else
8823 ac_cpp_err=yes
8824fi
8825if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008826 ac_header_preproc=yes
8827else
8828 echo "$as_me: failed program was:" >&5
8829sed 's/^/| /' conftest.$ac_ext >&5
8830
8831 ac_header_preproc=no
8832fi
Reid Spencera773bd52006-08-04 18:18:08 +00008833
Brian Gaeke0a621332004-09-08 20:38:05 +00008834rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008835{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8836echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008837
8838# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8840 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8842echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8844echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8845 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008846 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008847 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8849echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8851echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8853echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8855echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8857echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8859echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008860 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008861## ----------------------------------- ##
8862## Report this to llvmbugs@cs.uiuc.edu ##
8863## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008864_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008865 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008866 ;;
8867esac
Reid Spencera773bd52006-08-04 18:18:08 +00008868{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8869echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8870if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008871 echo $ECHO_N "(cached) $ECHO_C" >&6
8872else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008873 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008874fi
Reid Spencera773bd52006-08-04 18:18:08 +00008875ac_res=`eval echo '${'$as_ac_Header'}'`
8876 { echo "$as_me:$LINENO: result: $ac_res" >&5
8877echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008878
8879fi
John Criswell7a73b802003-06-30 21:59:07 +00008880if test `eval echo '${'$as_ac_Header'}'` = yes; then
8881 cat >>confdefs.h <<_ACEOF
8882#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8883_ACEOF
8884
8885fi
8886
8887done
8888
Reid Spencera773bd52006-08-04 18:18:08 +00008889# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008890if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008891 enableval=$enable_ltdl_install;
8892fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008893
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008894
Bill Wendlingebcceee2009-04-18 11:20:33 +00008895
8896
8897if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008898 INSTALL_LTDL_TRUE=
8899 INSTALL_LTDL_FALSE='#'
8900else
8901 INSTALL_LTDL_TRUE='#'
8902 INSTALL_LTDL_FALSE=
8903fi
8904
Bill Wendlingebcceee2009-04-18 11:20:33 +00008905
8906
8907if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008908 CONVENIENCE_LTDL_TRUE=
8909 CONVENIENCE_LTDL_FALSE='#'
8910else
8911 CONVENIENCE_LTDL_TRUE='#'
8912 CONVENIENCE_LTDL_FALSE=
8913fi
8914
8915
Reid Spencera773bd52006-08-04 18:18:08 +00008916{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8917echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008918library_names_spec=
8919libname_spec='lib$name'
8920soname_spec=
8921shrext_cmds=".so"
8922postinstall_cmds=
8923postuninstall_cmds=
8924finish_cmds=
8925finish_eval=
8926shlibpath_var=
8927shlibpath_overrides_runpath=unknown
8928version_type=none
8929dynamic_linker="$host_os ld.so"
8930sys_lib_dlsearch_path_spec="/lib /usr/lib"
8931if test "$GCC" = yes; then
8932 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8933 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8934 # if the path contains ";" then we assume it to be the separator
8935 # otherwise default to the standard path separator (i.e. ":") - it is
8936 # assumed that no part of a normal pathname contains ";" but that should
8937 # okay in the real world where ";" in dirpaths is itself problematic.
8938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8939 else
8940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8941 fi
8942else
8943 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8944fi
8945need_lib_prefix=unknown
8946hardcode_into_libs=no
8947
8948# when you set need_version to no, make sure it does not cause -set_version
8949# flags to be left without arguments
8950need_version=unknown
8951
8952case $host_os in
8953aix3*)
8954 version_type=linux
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8956 shlibpath_var=LIBPATH
8957
8958 # AIX 3 has no versioning support, so we append a major version to the name.
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 ;;
8961
8962aix4* | aix5*)
8963 version_type=linux
8964 need_lib_prefix=no
8965 need_version=no
8966 hardcode_into_libs=yes
8967 if test "$host_cpu" = ia64; then
8968 # AIX 5 supports IA64
8969 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8970 shlibpath_var=LD_LIBRARY_PATH
8971 else
8972 # With GCC up to 2.95.x, collect2 would create an import file
8973 # for dependence libraries. The import file would start with
8974 # the line `#! .'. This would cause the generated library to
8975 # depend on `.', always an invalid library. This was fixed in
8976 # development snapshots of GCC prior to 3.0.
8977 case $host_os in
8978 aix4 | aix4.[01] | aix4.[01].*)
8979 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8980 echo ' yes '
8981 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8982 :
8983 else
8984 can_build_shared=no
8985 fi
8986 ;;
8987 esac
8988 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8989 # soname into executable. Probably we can add versioning support to
8990 # collect2, so additional links can be useful in future.
8991 if test "$aix_use_runtimelinking" = yes; then
8992 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8993 # instead of lib<name>.a to let people know that these are not
8994 # typical AIX shared libraries.
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996 else
8997 # We preserve .a as extension for shared libraries through AIX4.2
8998 # and later when we are not doing run time linking.
8999 library_names_spec='${libname}${release}.a $libname.a'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 fi
9002 shlibpath_var=LIBPATH
9003 fi
9004 ;;
9005
9006amigaos*)
9007 library_names_spec='$libname.ixlibrary $libname.a'
9008 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9009 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'
9010 ;;
9011
9012beos*)
9013 library_names_spec='${libname}${shared_ext}'
9014 dynamic_linker="$host_os ld.so"
9015 shlibpath_var=LIBRARY_PATH
9016 ;;
9017
9018bsdi[45]*)
9019 version_type=linux
9020 need_version=no
9021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9022 soname_spec='${libname}${release}${shared_ext}$major'
9023 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9024 shlibpath_var=LD_LIBRARY_PATH
9025 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9026 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9027 # the default ld.so.conf also contains /usr/contrib/lib and
9028 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9029 # libtool to hard-code these into programs
9030 ;;
9031
9032cygwin* | mingw* | pw32*)
9033 version_type=windows
9034 shrext_cmds=".dll"
9035 need_version=no
9036 need_lib_prefix=no
9037
9038 case $GCC,$host_os in
9039 yes,cygwin* | yes,mingw* | yes,pw32*)
9040 library_names_spec='$libname.dll.a'
9041 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9042 postinstall_cmds='base_file=`basename \${file}`~
9043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9044 dldir=$destdir/`dirname \$dlpath`~
9045 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009046 $install_prog $dir/$dlname \$dldir/$dlname~
9047 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009048 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9049 dlpath=$dir/\$dldll~
9050 $rm \$dlpath'
9051 shlibpath_overrides_runpath=yes
9052
9053 case $host_os in
9054 cygwin*)
9055 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9056 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9057 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9058 ;;
9059 mingw*)
9060 # MinGW DLLs use traditional 'lib' prefix
9061 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9062 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9063 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9064 # It is most probably a Windows format PATH printed by
9065 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9066 # path with ; separators, and with drive letters. We can handle the
9067 # drive letters (cygwin fileutils understands them), so leave them,
9068 # especially as we might pass files found there to a mingw objdump,
9069 # which wouldn't understand a cygwinified path. Ahh.
9070 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9071 else
9072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9073 fi
9074 ;;
9075 pw32*)
9076 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009077 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 +00009078 ;;
9079 esac
9080 ;;
9081
9082 *)
9083 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9084 ;;
9085 esac
9086 dynamic_linker='Win32 ld.exe'
9087 # FIXME: first we should search . and the directory the executable is in
9088 shlibpath_var=PATH
9089 ;;
9090
9091darwin* | rhapsody*)
9092 dynamic_linker="$host_os dyld"
9093 version_type=darwin
9094 need_lib_prefix=no
9095 need_version=no
9096 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9097 soname_spec='${libname}${release}${major}$shared_ext'
9098 shlibpath_overrides_runpath=yes
9099 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009100 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009101 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9102 if test "$GCC" = yes; then
9103 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"`
9104 else
9105 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9106 fi
9107 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9108 ;;
9109
9110dgux*)
9111 version_type=linux
9112 need_lib_prefix=no
9113 need_version=no
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9115 soname_spec='${libname}${release}${shared_ext}$major'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 ;;
9118
9119freebsd1*)
9120 dynamic_linker=no
9121 ;;
9122
9123kfreebsd*-gnu)
9124 version_type=linux
9125 need_lib_prefix=no
9126 need_version=no
9127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9128 soname_spec='${libname}${release}${shared_ext}$major'
9129 shlibpath_var=LD_LIBRARY_PATH
9130 shlibpath_overrides_runpath=no
9131 hardcode_into_libs=yes
9132 dynamic_linker='GNU ld.so'
9133 ;;
9134
Reid Spencera773bd52006-08-04 18:18:08 +00009135freebsd* | dragonfly*)
9136 # DragonFly does not have aout. When/if they implement a new
9137 # versioning mechanism, adjust this.
9138 if test -x /usr/bin/objformat; then
9139 objformat=`/usr/bin/objformat`
9140 else
9141 case $host_os in
9142 freebsd[123]*) objformat=aout ;;
9143 *) objformat=elf ;;
9144 esac
9145 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009146 version_type=freebsd-$objformat
9147 case $version_type in
9148 freebsd-elf*)
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9150 need_version=no
9151 need_lib_prefix=no
9152 ;;
9153 freebsd-*)
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9155 need_version=yes
9156 ;;
9157 esac
9158 shlibpath_var=LD_LIBRARY_PATH
9159 case $host_os in
9160 freebsd2*)
9161 shlibpath_overrides_runpath=yes
9162 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009163 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009164 shlibpath_overrides_runpath=yes
9165 hardcode_into_libs=yes
9166 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009167 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9168 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009169 shlibpath_overrides_runpath=no
9170 hardcode_into_libs=yes
9171 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009172 freebsd*) # from 4.6 on
9173 shlibpath_overrides_runpath=yes
9174 hardcode_into_libs=yes
9175 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009176 esac
9177 ;;
9178
9179gnu*)
9180 version_type=linux
9181 need_lib_prefix=no
9182 need_version=no
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 hardcode_into_libs=yes
9187 ;;
9188
9189hpux9* | hpux10* | hpux11*)
9190 # Give a soname corresponding to the major version so that dld.sl refuses to
9191 # link against other versions.
9192 version_type=sunos
9193 need_lib_prefix=no
9194 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009195 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009196 ia64*)
9197 shrext_cmds='.so'
9198 hardcode_into_libs=yes
9199 dynamic_linker="$host_os dld.so"
9200 shlibpath_var=LD_LIBRARY_PATH
9201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9203 soname_spec='${libname}${release}${shared_ext}$major'
9204 if test "X$HPUX_IA64_MODE" = X32; then
9205 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9206 else
9207 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9208 fi
9209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9210 ;;
9211 hppa*64*)
9212 shrext_cmds='.sl'
9213 hardcode_into_libs=yes
9214 dynamic_linker="$host_os dld.sl"
9215 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218 soname_spec='${libname}${release}${shared_ext}$major'
9219 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9221 ;;
9222 *)
9223 shrext_cmds='.sl'
9224 dynamic_linker="$host_os dld.sl"
9225 shlibpath_var=SHLIB_PATH
9226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 ;;
9230 esac
9231 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9232 postinstall_cmds='chmod 555 $lib'
9233 ;;
9234
Reid Spencera773bd52006-08-04 18:18:08 +00009235interix3*)
9236 version_type=linux
9237 need_lib_prefix=no
9238 need_version=no
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 shlibpath_overrides_runpath=no
9244 hardcode_into_libs=yes
9245 ;;
9246
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009247irix5* | irix6* | nonstopux*)
9248 case $host_os in
9249 nonstopux*) version_type=nonstopux ;;
9250 *)
9251 if test "$lt_cv_prog_gnu_ld" = yes; then
9252 version_type=linux
9253 else
9254 version_type=irix
9255 fi ;;
9256 esac
9257 need_lib_prefix=no
9258 need_version=no
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9261 case $host_os in
9262 irix5* | nonstopux*)
9263 libsuff= shlibsuff=
9264 ;;
9265 *)
9266 case $LD in # libtool.m4 will add one of these switches to LD
9267 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9268 libsuff= shlibsuff= libmagic=32-bit;;
9269 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9270 libsuff=32 shlibsuff=N32 libmagic=N32;;
9271 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9272 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9273 *) libsuff= shlibsuff= libmagic=never-match;;
9274 esac
9275 ;;
9276 esac
9277 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9278 shlibpath_overrides_runpath=no
9279 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9280 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9281 hardcode_into_libs=yes
9282 ;;
9283
9284# No shared lib support for Linux oldld, aout, or coff.
9285linux*oldld* | linux*aout* | linux*coff*)
9286 dynamic_linker=no
9287 ;;
9288
9289# This must be Linux ELF.
9290linux*)
9291 version_type=linux
9292 need_lib_prefix=no
9293 need_version=no
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295 soname_spec='${libname}${release}${shared_ext}$major'
9296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9297 shlibpath_var=LD_LIBRARY_PATH
9298 shlibpath_overrides_runpath=no
9299 # This implies no fast_install, which is unacceptable.
9300 # Some rework will be needed to allow for fast_install
9301 # before this can be enabled.
9302 hardcode_into_libs=yes
9303
9304 # Append ld.so.conf contents to the search path
9305 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009306 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 +00009307 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9308 fi
9309
9310 # We used to test for /lib/ld.so.1 and disable shared libraries on
9311 # powerpc, because MkLinux only supported shared libraries with the
9312 # GNU dynamic linker. Since this was broken with cross compilers,
9313 # most powerpc-linux boxes support dynamic linking these days and
9314 # people can always --disable-shared, the test was removed, and we
9315 # assume the GNU/Linux dynamic linker is in use.
9316 dynamic_linker='GNU/Linux ld.so'
9317 ;;
9318
9319knetbsd*-gnu)
9320 version_type=linux
9321 need_lib_prefix=no
9322 need_version=no
9323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9324 soname_spec='${libname}${release}${shared_ext}$major'
9325 shlibpath_var=LD_LIBRARY_PATH
9326 shlibpath_overrides_runpath=no
9327 hardcode_into_libs=yes
9328 dynamic_linker='GNU ld.so'
9329 ;;
9330
9331netbsd*)
9332 version_type=sunos
9333 need_lib_prefix=no
9334 need_version=no
9335 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9338 dynamic_linker='NetBSD (a.out) ld.so'
9339 else
9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9341 soname_spec='${libname}${release}${shared_ext}$major'
9342 dynamic_linker='NetBSD ld.elf_so'
9343 fi
9344 shlibpath_var=LD_LIBRARY_PATH
9345 shlibpath_overrides_runpath=yes
9346 hardcode_into_libs=yes
9347 ;;
9348
9349newsos6)
9350 version_type=linux
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 shlibpath_overrides_runpath=yes
9354 ;;
9355
9356nto-qnx*)
9357 version_type=linux
9358 need_lib_prefix=no
9359 need_version=no
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 shlibpath_overrides_runpath=yes
9364 ;;
9365
9366openbsd*)
9367 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009368 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009369 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009370 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9371 case $host_os in
9372 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9373 *) need_version=no ;;
9374 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9377 shlibpath_var=LD_LIBRARY_PATH
9378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9379 case $host_os in
9380 openbsd2.[89] | openbsd2.[89].*)
9381 shlibpath_overrides_runpath=no
9382 ;;
9383 *)
9384 shlibpath_overrides_runpath=yes
9385 ;;
9386 esac
9387 else
9388 shlibpath_overrides_runpath=yes
9389 fi
9390 ;;
9391
9392os2*)
9393 libname_spec='$name'
9394 shrext_cmds=".dll"
9395 need_lib_prefix=no
9396 library_names_spec='$libname${shared_ext} $libname.a'
9397 dynamic_linker='OS/2 ld.exe'
9398 shlibpath_var=LIBPATH
9399 ;;
9400
9401osf3* | osf4* | osf5*)
9402 version_type=osf
9403 need_lib_prefix=no
9404 need_version=no
9405 soname_spec='${libname}${release}${shared_ext}$major'
9406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9407 shlibpath_var=LD_LIBRARY_PATH
9408 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9409 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9410 ;;
9411
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009412solaris*)
9413 version_type=linux
9414 need_lib_prefix=no
9415 need_version=no
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417 soname_spec='${libname}${release}${shared_ext}$major'
9418 shlibpath_var=LD_LIBRARY_PATH
9419 shlibpath_overrides_runpath=yes
9420 hardcode_into_libs=yes
9421 # ldd complains unless libraries are executable
9422 postinstall_cmds='chmod +x $lib'
9423 ;;
9424
9425sunos4*)
9426 version_type=sunos
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9428 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9429 shlibpath_var=LD_LIBRARY_PATH
9430 shlibpath_overrides_runpath=yes
9431 if test "$with_gnu_ld" = yes; then
9432 need_lib_prefix=no
9433 fi
9434 need_version=yes
9435 ;;
9436
Reid Spencera773bd52006-08-04 18:18:08 +00009437sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009438 version_type=linux
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 shlibpath_var=LD_LIBRARY_PATH
9442 case $host_vendor in
9443 sni)
9444 shlibpath_overrides_runpath=no
9445 need_lib_prefix=no
9446 export_dynamic_flag_spec='${wl}-Blargedynsym'
9447 runpath_var=LD_RUN_PATH
9448 ;;
9449 siemens)
9450 need_lib_prefix=no
9451 ;;
9452 motorola)
9453 need_lib_prefix=no
9454 need_version=no
9455 shlibpath_overrides_runpath=no
9456 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9457 ;;
9458 esac
9459 ;;
9460
9461sysv4*MP*)
9462 if test -d /usr/nec ;then
9463 version_type=linux
9464 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9465 soname_spec='$libname${shared_ext}.$major'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 fi
9468 ;;
9469
Reid Spencera773bd52006-08-04 18:18:08 +00009470sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9471 version_type=freebsd-elf
9472 need_lib_prefix=no
9473 need_version=no
9474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9475 soname_spec='${libname}${release}${shared_ext}$major'
9476 shlibpath_var=LD_LIBRARY_PATH
9477 hardcode_into_libs=yes
9478 if test "$with_gnu_ld" = yes; then
9479 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9480 shlibpath_overrides_runpath=no
9481 else
9482 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9483 shlibpath_overrides_runpath=yes
9484 case $host_os in
9485 sco3.2v5*)
9486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9487 ;;
9488 esac
9489 fi
9490 sys_lib_dlsearch_path_spec='/usr/lib'
9491 ;;
9492
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009493uts4*)
9494 version_type=linux
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9496 soname_spec='${libname}${release}${shared_ext}$major'
9497 shlibpath_var=LD_LIBRARY_PATH
9498 ;;
9499
9500*)
9501 dynamic_linker=no
9502 ;;
9503esac
Reid Spencera773bd52006-08-04 18:18:08 +00009504{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9505echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009506test "$dynamic_linker" = no && can_build_shared=no
9507
Reid Spencera773bd52006-08-04 18:18:08 +00009508variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9509if test "$GCC" = yes; then
9510 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9511fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009512
Reid Spencera773bd52006-08-04 18:18:08 +00009513
9514{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9515echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009516if test "${libltdl_cv_shlibext+set}" = set; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9518else
9519
9520module=yes
9521eval libltdl_cv_shlibext=$shrext_cmds
9522
9523fi
Reid Spencera773bd52006-08-04 18:18:08 +00009524{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9525echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009526if test -n "$libltdl_cv_shlibext"; then
9527
9528cat >>confdefs.h <<_ACEOF
9529#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9530_ACEOF
9531
9532fi
9533
9534
Reid Spencera773bd52006-08-04 18:18:08 +00009535{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9536echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009537if test "${libltdl_cv_shlibpath_var+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9539else
9540 libltdl_cv_shlibpath_var="$shlibpath_var"
9541fi
Reid Spencera773bd52006-08-04 18:18:08 +00009542{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9543echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009544if test -n "$libltdl_cv_shlibpath_var"; then
9545
9546cat >>confdefs.h <<_ACEOF
9547#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9548_ACEOF
9549
9550fi
9551
9552
Reid Spencera773bd52006-08-04 18:18:08 +00009553{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9554echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009555if test "${libltdl_cv_sys_search_path+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9557else
9558 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9559fi
Reid Spencera773bd52006-08-04 18:18:08 +00009560{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9561echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009562if test -n "$libltdl_cv_sys_search_path"; then
9563 sys_search_path=
9564 for dir in $libltdl_cv_sys_search_path; do
9565 if test -z "$sys_search_path"; then
9566 sys_search_path="$dir"
9567 else
9568 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9569 fi
9570 done
9571
9572cat >>confdefs.h <<_ACEOF
9573#define LTDL_SYSSEARCHPATH "$sys_search_path"
9574_ACEOF
9575
9576fi
9577
Reid Spencera773bd52006-08-04 18:18:08 +00009578{ echo "$as_me:$LINENO: checking for objdir" >&5
9579echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009580if test "${libltdl_cv_objdir+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9582else
9583 libltdl_cv_objdir="$objdir"
9584 if test -n "$objdir"; then
9585 :
9586 else
9587 rm -f .libs 2>/dev/null
9588 mkdir .libs 2>/dev/null
9589 if test -d .libs; then
9590 libltdl_cv_objdir=.libs
9591 else
9592 # MS-DOS does not allow filenames that begin with a dot.
9593 libltdl_cv_objdir=_libs
9594 fi
9595 rmdir .libs 2>/dev/null
9596 fi
9597
9598fi
Reid Spencera773bd52006-08-04 18:18:08 +00009599{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9600echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009601
9602cat >>confdefs.h <<_ACEOF
9603#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9604_ACEOF
9605
9606
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009607
9608
9609
9610
9611# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009612{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9613echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009614if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9616else
9617
9618# These are sane defaults that work on at least a few old systems.
9619# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9620
9621# Character class describing NM global symbol codes.
9622symcode='[BCDEGRST]'
9623
9624# Regexp to match symbols that can be accessed directly from C.
9625sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9626
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009627# Transform an extracted symbol line into a proper C declaration
9628lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9629
9630# Transform an extracted symbol line into symbol name and symbol address
9631lt_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'"
9632
9633# Define system-specific variables.
9634case $host_os in
9635aix*)
9636 symcode='[BCDT]'
9637 ;;
9638cygwin* | mingw* | pw32*)
9639 symcode='[ABCDGISTW]'
9640 ;;
9641hpux*) # Its linker distinguishes data from code symbols
9642 if test "$host_cpu" = ia64; then
9643 symcode='[ABCDEGRST]'
9644 fi
9645 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9646 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'"
9647 ;;
9648linux*)
9649 if test "$host_cpu" = ia64; then
9650 symcode='[ABCDGIRSTW]'
9651 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9652 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'"
9653 fi
9654 ;;
9655irix* | nonstopux*)
9656 symcode='[BCDEGRST]'
9657 ;;
9658osf*)
9659 symcode='[BCDEGQRST]'
9660 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009661solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009662 symcode='[BDRT]'
9663 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009664sco3.2v5*)
9665 symcode='[DT]'
9666 ;;
9667sysv4.2uw2*)
9668 symcode='[DT]'
9669 ;;
9670sysv5* | sco5v6* | unixware* | OpenUNIX*)
9671 symcode='[ABDT]'
9672 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009673sysv4)
9674 symcode='[DFNSTU]'
9675 ;;
9676esac
9677
9678# Handle CRLF in mingw tool chain
9679opt_cr=
9680case $build_os in
9681mingw*)
9682 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9683 ;;
9684esac
9685
9686# If we're using GNU nm, then use its standard symbol codes.
9687case `$NM -V 2>&1` in
9688*GNU* | *'with BFD'*)
9689 symcode='[ABCDGIRSTW]' ;;
9690esac
9691
9692# Try without a prefix undercore, then with it.
9693for ac_symprfx in "" "_"; do
9694
Reid Spencera773bd52006-08-04 18:18:08 +00009695 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9696 symxfrm="\\1 $ac_symprfx\\2 \\2"
9697
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009698 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009699 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 +00009700
9701 # Check to see that the pipe works correctly.
9702 pipe_works=no
9703
9704 rm -f conftest*
9705 cat > conftest.$ac_ext <<EOF
9706#ifdef __cplusplus
9707extern "C" {
9708#endif
9709char nm_test_var;
9710void nm_test_func(){}
9711#ifdef __cplusplus
9712}
9713#endif
9714int main(){nm_test_var='a';nm_test_func();return(0);}
9715EOF
9716
9717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9718 (eval $ac_compile) 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; then
9722 # Now try to grab the symbols.
9723 nlist=conftest.nm
9724 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9725 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } && test -s "$nlist"; then
9729 # Try sorting and uniquifying the output.
9730 if sort "$nlist" | uniq > "$nlist"T; then
9731 mv -f "$nlist"T "$nlist"
9732 else
9733 rm -f "$nlist"T
9734 fi
9735
9736 # Make sure that we snagged all the symbols we need.
9737 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9738 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9739 cat <<EOF > conftest.$ac_ext
9740#ifdef __cplusplus
9741extern "C" {
9742#endif
9743
9744EOF
9745 # Now generate the symbol file.
9746 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9747
9748 cat <<EOF >> conftest.$ac_ext
9749#if defined (__STDC__) && __STDC__
9750# define lt_ptr_t void *
9751#else
9752# define lt_ptr_t char *
9753# define const
9754#endif
9755
9756/* The mapping between symbol names and symbols. */
9757const struct {
9758 const char *name;
9759 lt_ptr_t address;
9760}
9761lt_preloaded_symbols[] =
9762{
9763EOF
9764 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9765 cat <<\EOF >> conftest.$ac_ext
9766 {0, (lt_ptr_t) 0}
9767};
9768
9769#ifdef __cplusplus
9770}
9771#endif
9772EOF
9773 # Now try linking the two files.
9774 mv conftest.$ac_objext conftstm.$ac_objext
9775 lt_save_LIBS="$LIBS"
9776 lt_save_CFLAGS="$CFLAGS"
9777 LIBS="conftstm.$ac_objext"
9778 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9780 (eval $ac_link) 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9784 pipe_works=yes
9785 fi
9786 LIBS="$lt_save_LIBS"
9787 CFLAGS="$lt_save_CFLAGS"
9788 else
9789 echo "cannot find nm_test_func in $nlist" >&5
9790 fi
9791 else
9792 echo "cannot find nm_test_var in $nlist" >&5
9793 fi
9794 else
9795 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9796 fi
9797 else
9798 echo "$progname: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9800 fi
9801 rm -f conftest* conftst*
9802
9803 # Do not use the global_symbol_pipe unless it works.
9804 if test "$pipe_works" = yes; then
9805 break
9806 else
9807 lt_cv_sys_global_symbol_pipe=
9808 fi
9809done
9810
9811fi
9812
9813if test -z "$lt_cv_sys_global_symbol_pipe"; then
9814 lt_cv_sys_global_symbol_to_cdecl=
9815fi
9816if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009817 { echo "$as_me:$LINENO: result: failed" >&5
9818echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009819else
Reid Spencera773bd52006-08-04 18:18:08 +00009820 { echo "$as_me:$LINENO: result: ok" >&5
9821echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009822fi
9823
9824
Reid Spencera773bd52006-08-04 18:18:08 +00009825{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9826echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009827if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9829else
9830 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9831 libltdl_cv_preloaded_symbols=yes
9832 else
9833 libltdl_cv_preloaded_symbols=no
9834 fi
9835
9836fi
Reid Spencera773bd52006-08-04 18:18:08 +00009837{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9838echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009839if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9840
9841cat >>confdefs.h <<\_ACEOF
9842#define HAVE_PRELOADED_SYMBOLS 1
9843_ACEOF
9844
9845fi
9846
9847LIBADD_DL=
9848
9849ac_ext=c
9850ac_cpp='$CPP $CPPFLAGS'
9851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9853ac_compiler_gnu=$ac_cv_c_compiler_gnu
9854
9855
Reid Spencera773bd52006-08-04 18:18:08 +00009856{ echo "$as_me:$LINENO: checking for shl_load" >&5
9857echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009858if test "${ac_cv_func_shl_load+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9860else
9861 cat >conftest.$ac_ext <<_ACEOF
9862/* confdefs.h. */
9863_ACEOF
9864cat confdefs.h >>conftest.$ac_ext
9865cat >>conftest.$ac_ext <<_ACEOF
9866/* end confdefs.h. */
9867/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9869#define shl_load innocuous_shl_load
9870
9871/* System header to define __stub macros and hopefully few prototypes,
9872 which can conflict with char shl_load (); below.
9873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9874 <limits.h> exists even on freestanding compilers. */
9875
9876#ifdef __STDC__
9877# include <limits.h>
9878#else
9879# include <assert.h>
9880#endif
9881
9882#undef shl_load
9883
Reid Spencera773bd52006-08-04 18:18:08 +00009884/* Override any GCC internal prototype to avoid an error.
9885 Use char because int might match the return type of a GCC
9886 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009887#ifdef __cplusplus
9888extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009889#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009890char shl_load ();
9891/* The GNU C library defines this for functions which it implements
9892 to always fail with ENOSYS. Some functions are actually named
9893 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009894#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009895choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009896#endif
9897
9898int
9899main ()
9900{
Reid Spencera773bd52006-08-04 18:18:08 +00009901return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009902 ;
9903 return 0;
9904}
9905_ACEOF
9906rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009907if { (ac_try="$ac_link"
9908case "(($ac_try" in
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9911esac
9912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009914 ac_status=$?
9915 grep -v '^ *+' conftest.er1 >conftest.err
9916 rm -f conftest.er1
9917 cat conftest.err >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009919 (exit $ac_status); } &&
9920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9921 { (case "(($ac_try" in
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9924esac
9925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_try") 2>&5
9927 ac_status=$?
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; } &&
9930 { ac_try='test -s conftest$ac_exeext'
9931 { (case "(($ac_try" in
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9934esac
9935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_try") 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009940 ac_cv_func_shl_load=yes
9941else
9942 echo "$as_me: failed program was:" >&5
9943sed 's/^/| /' conftest.$ac_ext >&5
9944
Reid Spencera773bd52006-08-04 18:18:08 +00009945 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009946fi
Reid Spencera773bd52006-08-04 18:18:08 +00009947
Bill Wendlingebcceee2009-04-18 11:20:33 +00009948rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009949 conftest$ac_exeext conftest.$ac_ext
9950fi
Reid Spencera773bd52006-08-04 18:18:08 +00009951{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9952echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009953if test $ac_cv_func_shl_load = yes; then
9954
9955cat >>confdefs.h <<\_ACEOF
9956#define HAVE_SHL_LOAD 1
9957_ACEOF
9958
9959else
Reid Spencera773bd52006-08-04 18:18:08 +00009960 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9961echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009962if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9964else
9965 ac_check_lib_save_LIBS=$LIBS
9966LIBS="-ldld $LIBS"
9967cat >conftest.$ac_ext <<_ACEOF
9968/* confdefs.h. */
9969_ACEOF
9970cat confdefs.h >>conftest.$ac_ext
9971cat >>conftest.$ac_ext <<_ACEOF
9972/* end confdefs.h. */
9973
Reid Spencera773bd52006-08-04 18:18:08 +00009974/* Override any GCC internal prototype to avoid an error.
9975 Use char because int might match the return type of a GCC
9976 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009977#ifdef __cplusplus
9978extern "C"
9979#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009980char shl_load ();
9981int
9982main ()
9983{
Reid Spencera773bd52006-08-04 18:18:08 +00009984return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009985 ;
9986 return 0;
9987}
9988_ACEOF
9989rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009990if { (ac_try="$ac_link"
9991case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9994esac
9995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009997 ac_status=$?
9998 grep -v '^ *+' conftest.er1 >conftest.err
9999 rm -f conftest.er1
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010002 (exit $ac_status); } &&
10003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10004 { (case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10007esac
10008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_try") 2>&5
10010 ac_status=$?
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; } &&
10013 { ac_try='test -s conftest$ac_exeext'
10014 { (case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017esac
10018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_try") 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010023 ac_cv_lib_dld_shl_load=yes
10024else
10025 echo "$as_me: failed program was:" >&5
10026sed 's/^/| /' conftest.$ac_ext >&5
10027
Reid Spencera773bd52006-08-04 18:18:08 +000010028 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010029fi
Reid Spencera773bd52006-08-04 18:18:08 +000010030
Bill Wendlingebcceee2009-04-18 11:20:33 +000010031rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010032 conftest$ac_exeext conftest.$ac_ext
10033LIBS=$ac_check_lib_save_LIBS
10034fi
Reid Spencera773bd52006-08-04 18:18:08 +000010035{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10036echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010037if test $ac_cv_lib_dld_shl_load = yes; then
10038
10039cat >>confdefs.h <<\_ACEOF
10040#define HAVE_SHL_LOAD 1
10041_ACEOF
10042
10043 LIBADD_DL="$LIBADD_DL -ldld"
10044else
Reid Spencera773bd52006-08-04 18:18:08 +000010045 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10046echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010047if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10049else
10050 ac_check_lib_save_LIBS=$LIBS
10051LIBS="-ldl $LIBS"
10052cat >conftest.$ac_ext <<_ACEOF
10053/* confdefs.h. */
10054_ACEOF
10055cat confdefs.h >>conftest.$ac_ext
10056cat >>conftest.$ac_ext <<_ACEOF
10057/* end confdefs.h. */
10058
Reid Spencera773bd52006-08-04 18:18:08 +000010059/* Override any GCC internal prototype to avoid an error.
10060 Use char because int might match the return type of a GCC
10061 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010062#ifdef __cplusplus
10063extern "C"
10064#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010065char dlopen ();
10066int
10067main ()
10068{
Reid Spencera773bd52006-08-04 18:18:08 +000010069return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010070 ;
10071 return 0;
10072}
10073_ACEOF
10074rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010075if { (ac_try="$ac_link"
10076case "(($ac_try" in
10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10079esac
10080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010082 ac_status=$?
10083 grep -v '^ *+' conftest.er1 >conftest.err
10084 rm -f conftest.er1
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010087 (exit $ac_status); } &&
10088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10089 { (case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10092esac
10093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_try") 2>&5
10095 ac_status=$?
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; } &&
10098 { ac_try='test -s conftest$ac_exeext'
10099 { (case "(($ac_try" in
10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101 *) ac_try_echo=$ac_try;;
10102esac
10103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104 (eval "$ac_try") 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010108 ac_cv_lib_dl_dlopen=yes
10109else
10110 echo "$as_me: failed program was:" >&5
10111sed 's/^/| /' conftest.$ac_ext >&5
10112
Reid Spencera773bd52006-08-04 18:18:08 +000010113 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010114fi
Reid Spencera773bd52006-08-04 18:18:08 +000010115
Bill Wendlingebcceee2009-04-18 11:20:33 +000010116rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010117 conftest$ac_exeext conftest.$ac_ext
10118LIBS=$ac_check_lib_save_LIBS
10119fi
Reid Spencera773bd52006-08-04 18:18:08 +000010120{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10121echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010122if test $ac_cv_lib_dl_dlopen = yes; then
10123
10124cat >>confdefs.h <<\_ACEOF
10125#define HAVE_LIBDL 1
10126_ACEOF
10127
10128 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10129else
10130 cat >conftest.$ac_ext <<_ACEOF
10131/* confdefs.h. */
10132_ACEOF
10133cat confdefs.h >>conftest.$ac_ext
10134cat >>conftest.$ac_ext <<_ACEOF
10135/* end confdefs.h. */
10136#if HAVE_DLFCN_H
10137# include <dlfcn.h>
10138#endif
10139
10140int
10141main ()
10142{
10143dlopen(0, 0);
10144 ;
10145 return 0;
10146}
10147_ACEOF
10148rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010149if { (ac_try="$ac_link"
10150case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10153esac
10154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010156 ac_status=$?
10157 grep -v '^ *+' conftest.er1 >conftest.err
10158 rm -f conftest.er1
10159 cat conftest.err >&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010161 (exit $ac_status); } &&
10162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10163 { (case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10166esac
10167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_try") 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try='test -s conftest$ac_exeext'
10173 { (case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10176esac
10177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_try") 2>&5
10179 ac_status=$?
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010182
10183cat >>confdefs.h <<\_ACEOF
10184#define HAVE_LIBDL 1
10185_ACEOF
10186 libltdl_cv_func_dlopen="yes"
10187else
10188 echo "$as_me: failed program was:" >&5
10189sed 's/^/| /' conftest.$ac_ext >&5
10190
Reid Spencera773bd52006-08-04 18:18:08 +000010191 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10192echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010193if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10195else
10196 ac_check_lib_save_LIBS=$LIBS
10197LIBS="-lsvld $LIBS"
10198cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h. */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h. */
10204
Reid Spencera773bd52006-08-04 18:18:08 +000010205/* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010208#ifdef __cplusplus
10209extern "C"
10210#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010211char dlopen ();
10212int
10213main ()
10214{
Reid Spencera773bd52006-08-04 18:18:08 +000010215return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010216 ;
10217 return 0;
10218}
10219_ACEOF
10220rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010221if { (ac_try="$ac_link"
10222case "(($ac_try" in
10223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224 *) ac_try_echo=$ac_try;;
10225esac
10226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010228 ac_status=$?
10229 grep -v '^ *+' conftest.er1 >conftest.err
10230 rm -f conftest.er1
10231 cat conftest.err >&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010233 (exit $ac_status); } &&
10234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10235 { (case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10238esac
10239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_try") 2>&5
10241 ac_status=$?
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; } &&
10244 { ac_try='test -s conftest$ac_exeext'
10245 { (case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248esac
10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_try") 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010254 ac_cv_lib_svld_dlopen=yes
10255else
10256 echo "$as_me: failed program was:" >&5
10257sed 's/^/| /' conftest.$ac_ext >&5
10258
Reid Spencera773bd52006-08-04 18:18:08 +000010259 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010260fi
Reid Spencera773bd52006-08-04 18:18:08 +000010261
Bill Wendlingebcceee2009-04-18 11:20:33 +000010262rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010263 conftest$ac_exeext conftest.$ac_ext
10264LIBS=$ac_check_lib_save_LIBS
10265fi
Reid Spencera773bd52006-08-04 18:18:08 +000010266{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10267echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010268if test $ac_cv_lib_svld_dlopen = yes; then
10269
10270cat >>confdefs.h <<\_ACEOF
10271#define HAVE_LIBDL 1
10272_ACEOF
10273
10274 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10275else
Reid Spencera773bd52006-08-04 18:18:08 +000010276 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10277echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010278if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280else
10281 ac_check_lib_save_LIBS=$LIBS
10282LIBS="-ldld $LIBS"
10283cat >conftest.$ac_ext <<_ACEOF
10284/* confdefs.h. */
10285_ACEOF
10286cat confdefs.h >>conftest.$ac_ext
10287cat >>conftest.$ac_ext <<_ACEOF
10288/* end confdefs.h. */
10289
Reid Spencera773bd52006-08-04 18:18:08 +000010290/* Override any GCC internal prototype to avoid an error.
10291 Use char because int might match the return type of a GCC
10292 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010293#ifdef __cplusplus
10294extern "C"
10295#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010296char dld_link ();
10297int
10298main ()
10299{
Reid Spencera773bd52006-08-04 18:18:08 +000010300return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010301 ;
10302 return 0;
10303}
10304_ACEOF
10305rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010306if { (ac_try="$ac_link"
10307case "(($ac_try" in
10308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309 *) ac_try_echo=$ac_try;;
10310esac
10311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10312 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010313 ac_status=$?
10314 grep -v '^ *+' conftest.er1 >conftest.err
10315 rm -f conftest.er1
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010318 (exit $ac_status); } &&
10319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10320 { (case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10323esac
10324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325 (eval "$ac_try") 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; } &&
10329 { ac_try='test -s conftest$ac_exeext'
10330 { (case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10333esac
10334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_try") 2>&5
10336 ac_status=$?
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010339 ac_cv_lib_dld_dld_link=yes
10340else
10341 echo "$as_me: failed program was:" >&5
10342sed 's/^/| /' conftest.$ac_ext >&5
10343
Reid Spencera773bd52006-08-04 18:18:08 +000010344 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010345fi
Reid Spencera773bd52006-08-04 18:18:08 +000010346
Bill Wendlingebcceee2009-04-18 11:20:33 +000010347rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010348 conftest$ac_exeext conftest.$ac_ext
10349LIBS=$ac_check_lib_save_LIBS
10350fi
Reid Spencera773bd52006-08-04 18:18:08 +000010351{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10352echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010353if test $ac_cv_lib_dld_dld_link = yes; then
10354
10355cat >>confdefs.h <<\_ACEOF
10356#define HAVE_DLD 1
10357_ACEOF
10358
10359 LIBADD_DL="$LIBADD_DL -ldld"
10360else
Reid Spencera773bd52006-08-04 18:18:08 +000010361 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10362echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010363if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10365else
10366 cat >conftest.$ac_ext <<_ACEOF
10367/* confdefs.h. */
10368_ACEOF
10369cat confdefs.h >>conftest.$ac_ext
10370cat >>conftest.$ac_ext <<_ACEOF
10371/* end confdefs.h. */
10372/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10374#define _dyld_func_lookup innocuous__dyld_func_lookup
10375
10376/* System header to define __stub macros and hopefully few prototypes,
10377 which can conflict with char _dyld_func_lookup (); below.
10378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10379 <limits.h> exists even on freestanding compilers. */
10380
10381#ifdef __STDC__
10382# include <limits.h>
10383#else
10384# include <assert.h>
10385#endif
10386
10387#undef _dyld_func_lookup
10388
Reid Spencera773bd52006-08-04 18:18:08 +000010389/* Override any GCC internal prototype to avoid an error.
10390 Use char because int might match the return type of a GCC
10391 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010392#ifdef __cplusplus
10393extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010394#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010395char _dyld_func_lookup ();
10396/* The GNU C library defines this for functions which it implements
10397 to always fail with ENOSYS. Some functions are actually named
10398 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010399#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010400choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010401#endif
10402
10403int
10404main ()
10405{
Reid Spencera773bd52006-08-04 18:18:08 +000010406return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010407 ;
10408 return 0;
10409}
10410_ACEOF
10411rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010412if { (ac_try="$ac_link"
10413case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10416esac
10417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010419 ac_status=$?
10420 grep -v '^ *+' conftest.er1 >conftest.err
10421 rm -f conftest.er1
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10426 { (case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10429esac
10430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431 (eval "$ac_try") 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; } &&
10435 { ac_try='test -s conftest$ac_exeext'
10436 { (case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10439esac
10440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441 (eval "$ac_try") 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010445 ac_cv_func__dyld_func_lookup=yes
10446else
10447 echo "$as_me: failed program was:" >&5
10448sed 's/^/| /' conftest.$ac_ext >&5
10449
Reid Spencera773bd52006-08-04 18:18:08 +000010450 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451fi
Reid Spencera773bd52006-08-04 18:18:08 +000010452
Bill Wendlingebcceee2009-04-18 11:20:33 +000010453rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010454 conftest$ac_exeext conftest.$ac_ext
10455fi
Reid Spencera773bd52006-08-04 18:18:08 +000010456{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10457echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010458if test $ac_cv_func__dyld_func_lookup = yes; then
10459
10460cat >>confdefs.h <<\_ACEOF
10461#define HAVE_DYLD 1
10462_ACEOF
10463
10464fi
10465
10466
10467fi
10468
10469
10470fi
10471
10472
10473fi
Reid Spencera773bd52006-08-04 18:18:08 +000010474
Bill Wendlingebcceee2009-04-18 11:20:33 +000010475rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010476 conftest$ac_exeext conftest.$ac_ext
10477
10478fi
10479
10480
10481fi
10482
10483
10484fi
10485
10486
10487if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10488then
10489 lt_save_LIBS="$LIBS"
10490 LIBS="$LIBS $LIBADD_DL"
10491
10492for ac_func in dlerror
10493do
10494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010495{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10497if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010498 echo $ECHO_N "(cached) $ECHO_C" >&6
10499else
10500 cat >conftest.$ac_ext <<_ACEOF
10501/* confdefs.h. */
10502_ACEOF
10503cat confdefs.h >>conftest.$ac_ext
10504cat >>conftest.$ac_ext <<_ACEOF
10505/* end confdefs.h. */
10506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10508#define $ac_func innocuous_$ac_func
10509
10510/* System header to define __stub macros and hopefully few prototypes,
10511 which can conflict with char $ac_func (); below.
10512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10513 <limits.h> exists even on freestanding compilers. */
10514
10515#ifdef __STDC__
10516# include <limits.h>
10517#else
10518# include <assert.h>
10519#endif
10520
10521#undef $ac_func
10522
Reid Spencera773bd52006-08-04 18:18:08 +000010523/* Override any GCC internal prototype to avoid an error.
10524 Use char because int might match the return type of a GCC
10525 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010526#ifdef __cplusplus
10527extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010528#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010529char $ac_func ();
10530/* The GNU C library defines this for functions which it implements
10531 to always fail with ENOSYS. Some functions are actually named
10532 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010533#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010534choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010535#endif
10536
10537int
10538main ()
10539{
Reid Spencera773bd52006-08-04 18:18:08 +000010540return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010541 ;
10542 return 0;
10543}
10544_ACEOF
10545rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010546if { (ac_try="$ac_link"
10547case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10550esac
10551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010558 (exit $ac_status); } &&
10559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10560 { (case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10563esac
10564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565 (eval "$ac_try") 2>&5
10566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; } &&
10569 { ac_try='test -s conftest$ac_exeext'
10570 { (case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10573esac
10574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575 (eval "$ac_try") 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010579 eval "$as_ac_var=yes"
10580else
10581 echo "$as_me: failed program was:" >&5
10582sed 's/^/| /' conftest.$ac_ext >&5
10583
Reid Spencera773bd52006-08-04 18:18:08 +000010584 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010585fi
Reid Spencera773bd52006-08-04 18:18:08 +000010586
Bill Wendlingebcceee2009-04-18 11:20:33 +000010587rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588 conftest$ac_exeext conftest.$ac_ext
10589fi
Reid Spencera773bd52006-08-04 18:18:08 +000010590ac_res=`eval echo '${'$as_ac_var'}'`
10591 { echo "$as_me:$LINENO: result: $ac_res" >&5
10592echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010593if test `eval echo '${'$as_ac_var'}'` = yes; then
10594 cat >>confdefs.h <<_ACEOF
10595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10596_ACEOF
10597
10598fi
10599done
10600
10601 LIBS="$lt_save_LIBS"
10602fi
10603ac_ext=c
10604ac_cpp='$CPP $CPPFLAGS'
10605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10607ac_compiler_gnu=$ac_cv_c_compiler_gnu
10608
10609
10610
Reid Spencera773bd52006-08-04 18:18:08 +000010611{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10612echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010613if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10615else
10616 ac_cv_sys_symbol_underscore=no
10617 cat > conftest.$ac_ext <<EOF
10618void nm_test_func(){}
10619int main(){nm_test_func;return 0;}
10620EOF
10621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10622 (eval $ac_compile) 2>&5
10623 ac_status=$?
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; then
10626 # Now try to grab the symbols.
10627 ac_nlist=conftest.nm
10628 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10629 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); } && test -s "$ac_nlist"; then
10633 # See whether the symbols have a leading underscore.
10634 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10635 ac_cv_sys_symbol_underscore=yes
10636 else
10637 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10638 :
10639 else
10640 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10641 fi
10642 fi
10643 else
10644 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10645 fi
10646 else
10647 echo "configure: failed program was:" >&5
10648 cat conftest.c >&5
10649 fi
10650 rm -rf conftest*
10651
10652fi
Reid Spencera773bd52006-08-04 18:18:08 +000010653{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10654echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010655
10656
10657if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10658 if test x"$libltdl_cv_func_dlopen" = xyes ||
10659 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010660 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10661echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010662if test "${libltdl_cv_need_uscore+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10664else
10665 libltdl_cv_need_uscore=unknown
10666 save_LIBS="$LIBS"
10667 LIBS="$LIBS $LIBADD_DL"
10668 if test "$cross_compiling" = yes; then :
10669 libltdl_cv_need_uscore=cross
10670else
10671 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10672 lt_status=$lt_dlunknown
10673 cat > conftest.$ac_ext <<EOF
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000010674#line 10674 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010675#include "confdefs.h"
10676
10677#if HAVE_DLFCN_H
10678#include <dlfcn.h>
10679#endif
10680
10681#include <stdio.h>
10682
10683#ifdef RTLD_GLOBAL
10684# define LT_DLGLOBAL RTLD_GLOBAL
10685#else
10686# ifdef DL_GLOBAL
10687# define LT_DLGLOBAL DL_GLOBAL
10688# else
10689# define LT_DLGLOBAL 0
10690# endif
10691#endif
10692
10693/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10694 find out it does not work in some platform. */
10695#ifndef LT_DLLAZY_OR_NOW
10696# ifdef RTLD_LAZY
10697# define LT_DLLAZY_OR_NOW RTLD_LAZY
10698# else
10699# ifdef DL_LAZY
10700# define LT_DLLAZY_OR_NOW DL_LAZY
10701# else
10702# ifdef RTLD_NOW
10703# define LT_DLLAZY_OR_NOW RTLD_NOW
10704# else
10705# ifdef DL_NOW
10706# define LT_DLLAZY_OR_NOW DL_NOW
10707# else
10708# define LT_DLLAZY_OR_NOW 0
10709# endif
10710# endif
10711# endif
10712# endif
10713#endif
10714
10715#ifdef __cplusplus
10716extern "C" void exit (int);
10717#endif
10718
10719void fnord() { int i=42;}
10720int main ()
10721{
10722 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10723 int status = $lt_dlunknown;
10724
10725 if (self)
10726 {
10727 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10728 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10729 /* dlclose (self); */
10730 }
Reid Spencera773bd52006-08-04 18:18:08 +000010731 else
10732 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010733
10734 exit (status);
10735}
10736EOF
10737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10738 (eval $ac_link) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010742 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010743 lt_status=$?
10744 case x$lt_status in
10745 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10746 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010747 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010748 esac
10749 else :
10750 # compilation failed
10751
10752 fi
10753fi
10754rm -fr conftest*
10755
10756 LIBS="$save_LIBS"
10757
10758fi
Reid Spencera773bd52006-08-04 18:18:08 +000010759{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10760echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010761 fi
10762fi
10763
10764if test x"$libltdl_cv_need_uscore" = xyes; then
10765
10766cat >>confdefs.h <<\_ACEOF
10767#define NEED_USCORE 1
10768_ACEOF
10769
10770fi
10771
10772
Reid Spencera773bd52006-08-04 18:18:08 +000010773{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10774echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010775if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10777else
10778 # PORTME does your system automatically load deplibs for dlopen?
10779 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10780 # For now, we just catch OSes we know something about -- in the
10781 # future, we'll try test this programmatically.
10782 libltdl_cv_sys_dlopen_deplibs=unknown
10783 case "$host_os" in
10784 aix3*|aix4.1.*|aix4.2.*)
10785 # Unknown whether this is true for these versions of AIX, but
10786 # we want this `case' here to explicitly catch those versions.
10787 libltdl_cv_sys_dlopen_deplibs=unknown
10788 ;;
10789 aix[45]*)
10790 libltdl_cv_sys_dlopen_deplibs=yes
10791 ;;
10792 darwin*)
10793 # Assuming the user has installed a libdl from somewhere, this is true
10794 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10795 libltdl_cv_sys_dlopen_deplibs=yes
10796 ;;
10797 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10798 # GNU and its variants, using gnu ld.so (Glibc)
10799 libltdl_cv_sys_dlopen_deplibs=yes
10800 ;;
10801 hpux10*|hpux11*)
10802 libltdl_cv_sys_dlopen_deplibs=yes
10803 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010804 interix*)
10805 libltdl_cv_sys_dlopen_deplibs=yes
10806 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010807 irix[12345]*|irix6.[01]*)
10808 # Catch all versions of IRIX before 6.2, and indicate that we don't
10809 # know how it worked for any of those versions.
10810 libltdl_cv_sys_dlopen_deplibs=unknown
10811 ;;
10812 irix*)
10813 # The case above catches anything before 6.2, and it's known that
10814 # at 6.2 and later dlopen does load deplibs.
10815 libltdl_cv_sys_dlopen_deplibs=yes
10816 ;;
10817 netbsd*)
10818 libltdl_cv_sys_dlopen_deplibs=yes
10819 ;;
10820 openbsd*)
10821 libltdl_cv_sys_dlopen_deplibs=yes
10822 ;;
10823 osf[1234]*)
10824 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10825 # it did *not* use an RPATH in a shared library to find objects the
10826 # library depends on, so we explictly say `no'.
10827 libltdl_cv_sys_dlopen_deplibs=no
10828 ;;
10829 osf5.0|osf5.0a|osf5.1)
10830 # dlopen *does* load deplibs and with the right loader patch applied
10831 # it even uses RPATH in a shared library to search for shared objects
10832 # that the library depends on, but there's no easy way to know if that
10833 # patch is installed. Since this is the case, all we can really
10834 # say is unknown -- it depends on the patch being installed. If
10835 # it is, this changes to `yes'. Without it, it would be `no'.
10836 libltdl_cv_sys_dlopen_deplibs=unknown
10837 ;;
10838 osf*)
10839 # the two cases above should catch all versions of osf <= 5.1. Read
10840 # the comments above for what we know about them.
10841 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10842 # is used to find them so we can finally say `yes'.
10843 libltdl_cv_sys_dlopen_deplibs=yes
10844 ;;
10845 solaris*)
10846 libltdl_cv_sys_dlopen_deplibs=yes
10847 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010848 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10849 libltdl_cv_sys_dlopen_deplibs=yes
10850 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010851 esac
10852
10853fi
Reid Spencera773bd52006-08-04 18:18:08 +000010854{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10855echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010856if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10857
10858cat >>confdefs.h <<\_ACEOF
10859#define LTDL_DLOPEN_DEPLIBS 1
10860_ACEOF
10861
10862fi
10863
10864
10865for ac_header in argz.h
10866do
10867as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873fi
Reid Spencera773bd52006-08-04 18:18:08 +000010874ac_res=`eval echo '${'$as_ac_Header'}'`
10875 { echo "$as_me:$LINENO: result: $ac_res" >&5
10876echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010877else
10878 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010879{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10880echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010881cat >conftest.$ac_ext <<_ACEOF
10882/* confdefs.h. */
10883_ACEOF
10884cat confdefs.h >>conftest.$ac_ext
10885cat >>conftest.$ac_ext <<_ACEOF
10886/* end confdefs.h. */
10887$ac_includes_default
10888#include <$ac_header>
10889_ACEOF
10890rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010891if { (ac_try="$ac_compile"
10892case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895esac
10896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010903 (exit $ac_status); } &&
10904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10905 { (case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908esac
10909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_try") 2>&5
10911 ac_status=$?
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; } &&
10914 { ac_try='test -s conftest.$ac_objext'
10915 { (case "(($ac_try" in
10916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917 *) ac_try_echo=$ac_try;;
10918esac
10919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920 (eval "$ac_try") 2>&5
10921 ac_status=$?
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010924 ac_header_compiler=yes
10925else
10926 echo "$as_me: failed program was:" >&5
10927sed 's/^/| /' conftest.$ac_ext >&5
10928
Reid Spencera773bd52006-08-04 18:18:08 +000010929 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010930fi
Reid Spencera773bd52006-08-04 18:18:08 +000010931
10932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10933{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10934echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010935
10936# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010937{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10938echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010939cat >conftest.$ac_ext <<_ACEOF
10940/* confdefs.h. */
10941_ACEOF
10942cat confdefs.h >>conftest.$ac_ext
10943cat >>conftest.$ac_ext <<_ACEOF
10944/* end confdefs.h. */
10945#include <$ac_header>
10946_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010947if { (ac_try="$ac_cpp conftest.$ac_ext"
10948case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10951esac
10952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010954 ac_status=$?
10955 grep -v '^ *+' conftest.er1 >conftest.err
10956 rm -f conftest.er1
10957 cat conftest.err >&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010959 (exit $ac_status); } >/dev/null; then
10960 if test -s conftest.err; then
10961 ac_cpp_err=$ac_c_preproc_warn_flag
10962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10963 else
10964 ac_cpp_err=
10965 fi
10966else
10967 ac_cpp_err=yes
10968fi
10969if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010970 ac_header_preproc=yes
10971else
10972 echo "$as_me: failed program was:" >&5
10973sed 's/^/| /' conftest.$ac_ext >&5
10974
10975 ac_header_preproc=no
10976fi
Reid Spencera773bd52006-08-04 18:18:08 +000010977
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010978rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010979{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10980echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010981
10982# So? What about this header?
10983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10984 yes:no: )
10985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10986echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10988echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10989 ac_header_preproc=yes
10990 ;;
10991 no:yes:* )
10992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10993echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10995echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10997echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10999echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11001echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11003echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011004 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011005## ----------------------------------- ##
11006## Report this to llvmbugs@cs.uiuc.edu ##
11007## ----------------------------------- ##
11008_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011009 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011010 ;;
11011esac
Reid Spencera773bd52006-08-04 18:18:08 +000011012{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011015 echo $ECHO_N "(cached) $ECHO_C" >&6
11016else
11017 eval "$as_ac_Header=\$ac_header_preproc"
11018fi
Reid Spencera773bd52006-08-04 18:18:08 +000011019ac_res=`eval echo '${'$as_ac_Header'}'`
11020 { echo "$as_me:$LINENO: result: $ac_res" >&5
11021echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011022
11023fi
11024if test `eval echo '${'$as_ac_Header'}'` = yes; then
11025 cat >>confdefs.h <<_ACEOF
11026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11027_ACEOF
11028
11029fi
11030
11031done
11032
11033
Reid Spencera773bd52006-08-04 18:18:08 +000011034{ echo "$as_me:$LINENO: checking for error_t" >&5
11035echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011036if test "${ac_cv_type_error_t+set}" = set; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11038else
11039 cat >conftest.$ac_ext <<_ACEOF
11040/* confdefs.h. */
11041_ACEOF
11042cat confdefs.h >>conftest.$ac_ext
11043cat >>conftest.$ac_ext <<_ACEOF
11044/* end confdefs.h. */
11045#if HAVE_ARGZ_H
11046# include <argz.h>
11047#endif
11048
Reid Spencera773bd52006-08-04 18:18:08 +000011049typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011050int
11051main ()
11052{
Reid Spencera773bd52006-08-04 18:18:08 +000011053if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011054 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011055if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011056 return 0;
11057 ;
11058 return 0;
11059}
11060_ACEOF
11061rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011062if { (ac_try="$ac_compile"
11063case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066esac
11067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011074 (exit $ac_status); } &&
11075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11076 { (case "(($ac_try" in
11077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078 *) ac_try_echo=$ac_try;;
11079esac
11080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081 (eval "$ac_try") 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; } &&
11085 { ac_try='test -s conftest.$ac_objext'
11086 { (case "(($ac_try" in
11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088 *) ac_try_echo=$ac_try;;
11089esac
11090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091 (eval "$ac_try") 2>&5
11092 ac_status=$?
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011095 ac_cv_type_error_t=yes
11096else
11097 echo "$as_me: failed program was:" >&5
11098sed 's/^/| /' conftest.$ac_ext >&5
11099
Reid Spencera773bd52006-08-04 18:18:08 +000011100 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011101fi
Reid Spencera773bd52006-08-04 18:18:08 +000011102
11103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011104fi
Reid Spencera773bd52006-08-04 18:18:08 +000011105{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11106echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011107if test $ac_cv_type_error_t = yes; then
11108
11109cat >>confdefs.h <<_ACEOF
11110#define HAVE_ERROR_T 1
11111_ACEOF
11112
11113
11114else
11115
11116cat >>confdefs.h <<\_ACEOF
11117#define error_t int
11118_ACEOF
11119
11120fi
11121
11122
11123
11124
11125
11126
11127
11128for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11129do
11130as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011131{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11132echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11133if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011134 echo $ECHO_N "(cached) $ECHO_C" >&6
11135else
11136 cat >conftest.$ac_ext <<_ACEOF
11137/* confdefs.h. */
11138_ACEOF
11139cat confdefs.h >>conftest.$ac_ext
11140cat >>conftest.$ac_ext <<_ACEOF
11141/* end confdefs.h. */
11142/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11144#define $ac_func innocuous_$ac_func
11145
11146/* System header to define __stub macros and hopefully few prototypes,
11147 which can conflict with char $ac_func (); below.
11148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11149 <limits.h> exists even on freestanding compilers. */
11150
11151#ifdef __STDC__
11152# include <limits.h>
11153#else
11154# include <assert.h>
11155#endif
11156
11157#undef $ac_func
11158
Reid Spencera773bd52006-08-04 18:18:08 +000011159/* Override any GCC internal prototype to avoid an error.
11160 Use char because int might match the return type of a GCC
11161 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011162#ifdef __cplusplus
11163extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011164#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011165char $ac_func ();
11166/* The GNU C library defines this for functions which it implements
11167 to always fail with ENOSYS. Some functions are actually named
11168 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011169#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011170choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011171#endif
11172
11173int
11174main ()
11175{
Reid Spencera773bd52006-08-04 18:18:08 +000011176return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011177 ;
11178 return 0;
11179}
11180_ACEOF
11181rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011182if { (ac_try="$ac_link"
11183case "(($ac_try" in
11184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185 *) ac_try_echo=$ac_try;;
11186esac
11187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011189 ac_status=$?
11190 grep -v '^ *+' conftest.er1 >conftest.err
11191 rm -f conftest.er1
11192 cat conftest.err >&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011194 (exit $ac_status); } &&
11195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11196 { (case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11199esac
11200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201 (eval "$ac_try") 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; } &&
11205 { ac_try='test -s conftest$ac_exeext'
11206 { (case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11209esac
11210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_try") 2>&5
11212 ac_status=$?
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011215 eval "$as_ac_var=yes"
11216else
11217 echo "$as_me: failed program was:" >&5
11218sed 's/^/| /' conftest.$ac_ext >&5
11219
Reid Spencera773bd52006-08-04 18:18:08 +000011220 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011221fi
Reid Spencera773bd52006-08-04 18:18:08 +000011222
Bill Wendlingebcceee2009-04-18 11:20:33 +000011223rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011224 conftest$ac_exeext conftest.$ac_ext
11225fi
Reid Spencera773bd52006-08-04 18:18:08 +000011226ac_res=`eval echo '${'$as_ac_var'}'`
11227 { echo "$as_me:$LINENO: result: $ac_res" >&5
11228echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011229if test `eval echo '${'$as_ac_var'}'` = yes; then
11230 cat >>confdefs.h <<_ACEOF
11231#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11232_ACEOF
11233
11234fi
11235done
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11265 stdio.h unistd.h
11266do
11267as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011272 echo $ECHO_N "(cached) $ECHO_C" >&6
11273fi
Reid Spencera773bd52006-08-04 18:18:08 +000011274ac_res=`eval echo '${'$as_ac_Header'}'`
11275 { echo "$as_me:$LINENO: result: $ac_res" >&5
11276echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011277else
11278 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011279{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11280echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011281cat >conftest.$ac_ext <<_ACEOF
11282/* confdefs.h. */
11283_ACEOF
11284cat confdefs.h >>conftest.$ac_ext
11285cat >>conftest.$ac_ext <<_ACEOF
11286/* end confdefs.h. */
11287$ac_includes_default
11288#include <$ac_header>
11289_ACEOF
11290rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011291if { (ac_try="$ac_compile"
11292case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11295esac
11296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011303 (exit $ac_status); } &&
11304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11305 { (case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11308esac
11309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310 (eval "$ac_try") 2>&5
11311 ac_status=$?
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; } &&
11314 { ac_try='test -s conftest.$ac_objext'
11315 { (case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11318esac
11319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320 (eval "$ac_try") 2>&5
11321 ac_status=$?
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011324 ac_header_compiler=yes
11325else
11326 echo "$as_me: failed program was:" >&5
11327sed 's/^/| /' conftest.$ac_ext >&5
11328
Reid Spencera773bd52006-08-04 18:18:08 +000011329 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011330fi
Reid Spencera773bd52006-08-04 18:18:08 +000011331
11332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11333{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11334echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011335
11336# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011337{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011339cat >conftest.$ac_ext <<_ACEOF
11340/* confdefs.h. */
11341_ACEOF
11342cat confdefs.h >>conftest.$ac_ext
11343cat >>conftest.$ac_ext <<_ACEOF
11344/* end confdefs.h. */
11345#include <$ac_header>
11346_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011347if { (ac_try="$ac_cpp conftest.$ac_ext"
11348case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011354 ac_status=$?
11355 grep -v '^ *+' conftest.er1 >conftest.err
11356 rm -f conftest.er1
11357 cat conftest.err >&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011359 (exit $ac_status); } >/dev/null; then
11360 if test -s conftest.err; then
11361 ac_cpp_err=$ac_c_preproc_warn_flag
11362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11363 else
11364 ac_cpp_err=
11365 fi
11366else
11367 ac_cpp_err=yes
11368fi
11369if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011370 ac_header_preproc=yes
11371else
11372 echo "$as_me: failed program was:" >&5
11373sed 's/^/| /' conftest.$ac_ext >&5
11374
11375 ac_header_preproc=no
11376fi
Reid Spencera773bd52006-08-04 18:18:08 +000011377
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011378rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011379{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11380echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011381
11382# So? What about this header?
11383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11384 yes:no: )
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11389 ac_header_preproc=yes
11390 ;;
11391 no:yes:* )
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11395echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11399echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011404 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011405## ----------------------------------- ##
11406## Report this to llvmbugs@cs.uiuc.edu ##
11407## ----------------------------------- ##
11408_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011409 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011410 ;;
11411esac
Reid Spencera773bd52006-08-04 18:18:08 +000011412{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11414if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011415 echo $ECHO_N "(cached) $ECHO_C" >&6
11416else
11417 eval "$as_ac_Header=\$ac_header_preproc"
11418fi
Reid Spencera773bd52006-08-04 18:18:08 +000011419ac_res=`eval echo '${'$as_ac_Header'}'`
11420 { echo "$as_me:$LINENO: result: $ac_res" >&5
11421echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011422
11423fi
11424if test `eval echo '${'$as_ac_Header'}'` = yes; then
11425 cat >>confdefs.h <<_ACEOF
11426#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11427_ACEOF
11428
11429fi
11430
11431done
11432
11433
11434
11435
11436
11437for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11438do
11439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011444 echo $ECHO_N "(cached) $ECHO_C" >&6
11445fi
Reid Spencera773bd52006-08-04 18:18:08 +000011446ac_res=`eval echo '${'$as_ac_Header'}'`
11447 { echo "$as_me:$LINENO: result: $ac_res" >&5
11448echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011449else
11450 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011451{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11452echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011453cat >conftest.$ac_ext <<_ACEOF
11454/* confdefs.h. */
11455_ACEOF
11456cat confdefs.h >>conftest.$ac_ext
11457cat >>conftest.$ac_ext <<_ACEOF
11458/* end confdefs.h. */
11459$ac_includes_default
11460#include <$ac_header>
11461_ACEOF
11462rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011463if { (ac_try="$ac_compile"
11464case "(($ac_try" in
11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466 *) ac_try_echo=$ac_try;;
11467esac
11468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11469 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011470 ac_status=$?
11471 grep -v '^ *+' conftest.er1 >conftest.err
11472 rm -f conftest.er1
11473 cat conftest.err >&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011475 (exit $ac_status); } &&
11476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11477 { (case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11480esac
11481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_try") 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; } &&
11486 { ac_try='test -s conftest.$ac_objext'
11487 { (case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11490esac
11491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_try") 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011496 ac_header_compiler=yes
11497else
11498 echo "$as_me: failed program was:" >&5
11499sed 's/^/| /' conftest.$ac_ext >&5
11500
Reid Spencera773bd52006-08-04 18:18:08 +000011501 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011502fi
Reid Spencera773bd52006-08-04 18:18:08 +000011503
11504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11505{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11506echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011507
11508# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011509{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11510echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011511cat >conftest.$ac_ext <<_ACEOF
11512/* confdefs.h. */
11513_ACEOF
11514cat confdefs.h >>conftest.$ac_ext
11515cat >>conftest.$ac_ext <<_ACEOF
11516/* end confdefs.h. */
11517#include <$ac_header>
11518_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011519if { (ac_try="$ac_cpp conftest.$ac_ext"
11520case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11523esac
11524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011526 ac_status=$?
11527 grep -v '^ *+' conftest.er1 >conftest.err
11528 rm -f conftest.er1
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011531 (exit $ac_status); } >/dev/null; then
11532 if test -s conftest.err; then
11533 ac_cpp_err=$ac_c_preproc_warn_flag
11534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11535 else
11536 ac_cpp_err=
11537 fi
11538else
11539 ac_cpp_err=yes
11540fi
11541if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011542 ac_header_preproc=yes
11543else
11544 echo "$as_me: failed program was:" >&5
11545sed 's/^/| /' conftest.$ac_ext >&5
11546
11547 ac_header_preproc=no
11548fi
Reid Spencera773bd52006-08-04 18:18:08 +000011549
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011550rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011551{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11552echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011553
11554# So? What about this header?
11555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11556 yes:no: )
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11558echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11560echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11561 ac_header_preproc=yes
11562 ;;
11563 no:yes:* )
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11565echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11567echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11569echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11571echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11575echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011576 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011577## ----------------------------------- ##
11578## Report this to llvmbugs@cs.uiuc.edu ##
11579## ----------------------------------- ##
11580_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011581 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011582 ;;
11583esac
Reid Spencera773bd52006-08-04 18:18:08 +000011584{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011587 echo $ECHO_N "(cached) $ECHO_C" >&6
11588else
11589 eval "$as_ac_Header=\$ac_header_preproc"
11590fi
Reid Spencera773bd52006-08-04 18:18:08 +000011591ac_res=`eval echo '${'$as_ac_Header'}'`
11592 { echo "$as_me:$LINENO: result: $ac_res" >&5
11593echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011594
11595fi
11596if test `eval echo '${'$as_ac_Header'}'` = yes; then
11597 cat >>confdefs.h <<_ACEOF
11598#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11599_ACEOF
11600
11601fi
11602
11603done
11604
11605
11606
11607for ac_header in string.h strings.h
11608do
11609as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011610if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011614 echo $ECHO_N "(cached) $ECHO_C" >&6
11615fi
Reid Spencera773bd52006-08-04 18:18:08 +000011616ac_res=`eval echo '${'$as_ac_Header'}'`
11617 { echo "$as_me:$LINENO: result: $ac_res" >&5
11618echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011619else
11620 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011621{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11622echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011623cat >conftest.$ac_ext <<_ACEOF
11624/* confdefs.h. */
11625_ACEOF
11626cat confdefs.h >>conftest.$ac_ext
11627cat >>conftest.$ac_ext <<_ACEOF
11628/* end confdefs.h. */
11629$ac_includes_default
11630#include <$ac_header>
11631_ACEOF
11632rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011633if { (ac_try="$ac_compile"
11634case "(($ac_try" in
11635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636 *) ac_try_echo=$ac_try;;
11637esac
11638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11639 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011640 ac_status=$?
11641 grep -v '^ *+' conftest.er1 >conftest.err
11642 rm -f conftest.er1
11643 cat conftest.err >&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011645 (exit $ac_status); } &&
11646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11647 { (case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11650esac
11651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_try") 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; } &&
11656 { ac_try='test -s conftest.$ac_objext'
11657 { (case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11660esac
11661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_try") 2>&5
11663 ac_status=$?
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011666 ac_header_compiler=yes
11667else
11668 echo "$as_me: failed program was:" >&5
11669sed 's/^/| /' conftest.$ac_ext >&5
11670
Reid Spencera773bd52006-08-04 18:18:08 +000011671 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011672fi
Reid Spencera773bd52006-08-04 18:18:08 +000011673
11674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11675{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11676echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011677
11678# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011679{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11680echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011681cat >conftest.$ac_ext <<_ACEOF
11682/* confdefs.h. */
11683_ACEOF
11684cat confdefs.h >>conftest.$ac_ext
11685cat >>conftest.$ac_ext <<_ACEOF
11686/* end confdefs.h. */
11687#include <$ac_header>
11688_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011689if { (ac_try="$ac_cpp conftest.$ac_ext"
11690case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11693esac
11694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011696 ac_status=$?
11697 grep -v '^ *+' conftest.er1 >conftest.err
11698 rm -f conftest.er1
11699 cat conftest.err >&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011701 (exit $ac_status); } >/dev/null; then
11702 if test -s conftest.err; then
11703 ac_cpp_err=$ac_c_preproc_warn_flag
11704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11705 else
11706 ac_cpp_err=
11707 fi
11708else
11709 ac_cpp_err=yes
11710fi
11711if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011712 ac_header_preproc=yes
11713else
11714 echo "$as_me: failed program was:" >&5
11715sed 's/^/| /' conftest.$ac_ext >&5
11716
11717 ac_header_preproc=no
11718fi
Reid Spencera773bd52006-08-04 18:18:08 +000011719
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011720rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011721{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11722echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011723
11724# So? What about this header?
11725case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11726 yes:no: )
11727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11728echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11730echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11731 ac_header_preproc=yes
11732 ;;
11733 no:yes:* )
11734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11735echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11737echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11739echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11741echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11743echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11745echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011746 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011747## ----------------------------------- ##
11748## Report this to llvmbugs@cs.uiuc.edu ##
11749## ----------------------------------- ##
11750_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011751 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752 ;;
11753esac
Reid Spencera773bd52006-08-04 18:18:08 +000011754{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11756if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011757 echo $ECHO_N "(cached) $ECHO_C" >&6
11758else
11759 eval "$as_ac_Header=\$ac_header_preproc"
11760fi
Reid Spencera773bd52006-08-04 18:18:08 +000011761ac_res=`eval echo '${'$as_ac_Header'}'`
11762 { echo "$as_me:$LINENO: result: $ac_res" >&5
11763echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011764
11765fi
11766if test `eval echo '${'$as_ac_Header'}'` = yes; then
11767 cat >>confdefs.h <<_ACEOF
11768#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11769_ACEOF
11770 break
11771fi
11772
11773done
11774
11775
11776
11777
11778for ac_func in strchr index
11779do
11780as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011781{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11782echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11783if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011784 echo $ECHO_N "(cached) $ECHO_C" >&6
11785else
11786 cat >conftest.$ac_ext <<_ACEOF
11787/* confdefs.h. */
11788_ACEOF
11789cat confdefs.h >>conftest.$ac_ext
11790cat >>conftest.$ac_ext <<_ACEOF
11791/* end confdefs.h. */
11792/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11794#define $ac_func innocuous_$ac_func
11795
11796/* System header to define __stub macros and hopefully few prototypes,
11797 which can conflict with char $ac_func (); below.
11798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11799 <limits.h> exists even on freestanding compilers. */
11800
11801#ifdef __STDC__
11802# include <limits.h>
11803#else
11804# include <assert.h>
11805#endif
11806
11807#undef $ac_func
11808
Reid Spencera773bd52006-08-04 18:18:08 +000011809/* Override any GCC internal prototype to avoid an error.
11810 Use char because int might match the return type of a GCC
11811 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011812#ifdef __cplusplus
11813extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011814#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011815char $ac_func ();
11816/* The GNU C library defines this for functions which it implements
11817 to always fail with ENOSYS. Some functions are actually named
11818 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011819#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011820choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011821#endif
11822
11823int
11824main ()
11825{
Reid Spencera773bd52006-08-04 18:18:08 +000011826return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011827 ;
11828 return 0;
11829}
11830_ACEOF
11831rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011832if { (ac_try="$ac_link"
11833case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11836esac
11837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011839 ac_status=$?
11840 grep -v '^ *+' conftest.er1 >conftest.err
11841 rm -f conftest.er1
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011844 (exit $ac_status); } &&
11845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11846 { (case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11849esac
11850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_try") 2>&5
11852 ac_status=$?
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; } &&
11855 { ac_try='test -s conftest$ac_exeext'
11856 { (case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11859esac
11860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_try") 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011865 eval "$as_ac_var=yes"
11866else
11867 echo "$as_me: failed program was:" >&5
11868sed 's/^/| /' conftest.$ac_ext >&5
11869
Reid Spencera773bd52006-08-04 18:18:08 +000011870 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011871fi
Reid Spencera773bd52006-08-04 18:18:08 +000011872
Bill Wendlingebcceee2009-04-18 11:20:33 +000011873rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011874 conftest$ac_exeext conftest.$ac_ext
11875fi
Reid Spencera773bd52006-08-04 18:18:08 +000011876ac_res=`eval echo '${'$as_ac_var'}'`
11877 { echo "$as_me:$LINENO: result: $ac_res" >&5
11878echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011879if test `eval echo '${'$as_ac_var'}'` = yes; then
11880 cat >>confdefs.h <<_ACEOF
11881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11882_ACEOF
11883 break
11884fi
11885done
11886
11887
11888
11889for ac_func in strrchr rindex
11890do
11891as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011892{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11893echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11894if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011895 echo $ECHO_N "(cached) $ECHO_C" >&6
11896else
11897 cat >conftest.$ac_ext <<_ACEOF
11898/* confdefs.h. */
11899_ACEOF
11900cat confdefs.h >>conftest.$ac_ext
11901cat >>conftest.$ac_ext <<_ACEOF
11902/* end confdefs.h. */
11903/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11905#define $ac_func innocuous_$ac_func
11906
11907/* System header to define __stub macros and hopefully few prototypes,
11908 which can conflict with char $ac_func (); below.
11909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11910 <limits.h> exists even on freestanding compilers. */
11911
11912#ifdef __STDC__
11913# include <limits.h>
11914#else
11915# include <assert.h>
11916#endif
11917
11918#undef $ac_func
11919
Reid Spencera773bd52006-08-04 18:18:08 +000011920/* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011923#ifdef __cplusplus
11924extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011925#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011926char $ac_func ();
11927/* The GNU C library defines this for functions which it implements
11928 to always fail with ENOSYS. Some functions are actually named
11929 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011930#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011931choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011932#endif
11933
11934int
11935main ()
11936{
Reid Spencera773bd52006-08-04 18:18:08 +000011937return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011938 ;
11939 return 0;
11940}
11941_ACEOF
11942rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011943if { (ac_try="$ac_link"
11944case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11947esac
11948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011950 ac_status=$?
11951 grep -v '^ *+' conftest.er1 >conftest.err
11952 rm -f conftest.er1
11953 cat conftest.err >&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011955 (exit $ac_status); } &&
11956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11957 { (case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11960esac
11961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_try") 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
11966 { ac_try='test -s conftest$ac_exeext'
11967 { (case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11970esac
11971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_try") 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011976 eval "$as_ac_var=yes"
11977else
11978 echo "$as_me: failed program was:" >&5
11979sed 's/^/| /' conftest.$ac_ext >&5
11980
Reid Spencera773bd52006-08-04 18:18:08 +000011981 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011982fi
Reid Spencera773bd52006-08-04 18:18:08 +000011983
Bill Wendlingebcceee2009-04-18 11:20:33 +000011984rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011985 conftest$ac_exeext conftest.$ac_ext
11986fi
Reid Spencera773bd52006-08-04 18:18:08 +000011987ac_res=`eval echo '${'$as_ac_var'}'`
11988 { echo "$as_me:$LINENO: result: $ac_res" >&5
11989echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011990if test `eval echo '${'$as_ac_var'}'` = yes; then
11991 cat >>confdefs.h <<_ACEOF
11992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11993_ACEOF
11994 break
11995fi
11996done
11997
11998
11999
12000for ac_func in memcpy bcopy
12001do
12002as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012003{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12004echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12005if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012006 echo $ECHO_N "(cached) $ECHO_C" >&6
12007else
12008 cat >conftest.$ac_ext <<_ACEOF
12009/* confdefs.h. */
12010_ACEOF
12011cat confdefs.h >>conftest.$ac_ext
12012cat >>conftest.$ac_ext <<_ACEOF
12013/* end confdefs.h. */
12014/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12016#define $ac_func innocuous_$ac_func
12017
12018/* System header to define __stub macros and hopefully few prototypes,
12019 which can conflict with char $ac_func (); below.
12020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12021 <limits.h> exists even on freestanding compilers. */
12022
12023#ifdef __STDC__
12024# include <limits.h>
12025#else
12026# include <assert.h>
12027#endif
12028
12029#undef $ac_func
12030
Reid Spencera773bd52006-08-04 18:18:08 +000012031/* Override any GCC internal prototype to avoid an error.
12032 Use char because int might match the return type of a GCC
12033 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012034#ifdef __cplusplus
12035extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012036#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012037char $ac_func ();
12038/* The GNU C library defines this for functions which it implements
12039 to always fail with ENOSYS. Some functions are actually named
12040 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012041#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012042choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012043#endif
12044
12045int
12046main ()
12047{
Reid Spencera773bd52006-08-04 18:18:08 +000012048return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012049 ;
12050 return 0;
12051}
12052_ACEOF
12053rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012054if { (ac_try="$ac_link"
12055case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12058esac
12059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012066 (exit $ac_status); } &&
12067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12068 { (case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12071esac
12072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_try") 2>&5
12074 ac_status=$?
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest$ac_exeext'
12078 { (case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12081esac
12082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_try") 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012087 eval "$as_ac_var=yes"
12088else
12089 echo "$as_me: failed program was:" >&5
12090sed 's/^/| /' conftest.$ac_ext >&5
12091
Reid Spencera773bd52006-08-04 18:18:08 +000012092 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012093fi
Reid Spencera773bd52006-08-04 18:18:08 +000012094
Bill Wendlingebcceee2009-04-18 11:20:33 +000012095rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012096 conftest$ac_exeext conftest.$ac_ext
12097fi
Reid Spencera773bd52006-08-04 18:18:08 +000012098ac_res=`eval echo '${'$as_ac_var'}'`
12099 { echo "$as_me:$LINENO: result: $ac_res" >&5
12100echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012101if test `eval echo '${'$as_ac_var'}'` = yes; then
12102 cat >>confdefs.h <<_ACEOF
12103#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12104_ACEOF
12105 break
12106fi
12107done
12108
12109
12110
12111for ac_func in memmove strcmp
12112do
12113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012114{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12116if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012117 echo $ECHO_N "(cached) $ECHO_C" >&6
12118else
12119 cat >conftest.$ac_ext <<_ACEOF
12120/* confdefs.h. */
12121_ACEOF
12122cat confdefs.h >>conftest.$ac_ext
12123cat >>conftest.$ac_ext <<_ACEOF
12124/* end confdefs.h. */
12125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12127#define $ac_func innocuous_$ac_func
12128
12129/* System header to define __stub macros and hopefully few prototypes,
12130 which can conflict with char $ac_func (); below.
12131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12132 <limits.h> exists even on freestanding compilers. */
12133
12134#ifdef __STDC__
12135# include <limits.h>
12136#else
12137# include <assert.h>
12138#endif
12139
12140#undef $ac_func
12141
Reid Spencera773bd52006-08-04 18:18:08 +000012142/* Override any GCC internal prototype to avoid an error.
12143 Use char because int might match the return type of a GCC
12144 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012145#ifdef __cplusplus
12146extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012147#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012148char $ac_func ();
12149/* The GNU C library defines this for functions which it implements
12150 to always fail with ENOSYS. Some functions are actually named
12151 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012152#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012153choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012154#endif
12155
12156int
12157main ()
12158{
Reid Spencera773bd52006-08-04 18:18:08 +000012159return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012160 ;
12161 return 0;
12162}
12163_ACEOF
12164rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012165if { (ac_try="$ac_link"
12166case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169esac
12170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012177 (exit $ac_status); } &&
12178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12179 { (case "(($ac_try" in
12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181 *) ac_try_echo=$ac_try;;
12182esac
12183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_try") 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; } &&
12188 { ac_try='test -s conftest$ac_exeext'
12189 { (case "(($ac_try" in
12190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191 *) ac_try_echo=$ac_try;;
12192esac
12193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194 (eval "$ac_try") 2>&5
12195 ac_status=$?
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012198 eval "$as_ac_var=yes"
12199else
12200 echo "$as_me: failed program was:" >&5
12201sed 's/^/| /' conftest.$ac_ext >&5
12202
Reid Spencera773bd52006-08-04 18:18:08 +000012203 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012204fi
Reid Spencera773bd52006-08-04 18:18:08 +000012205
Bill Wendlingebcceee2009-04-18 11:20:33 +000012206rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012207 conftest$ac_exeext conftest.$ac_ext
12208fi
Reid Spencera773bd52006-08-04 18:18:08 +000012209ac_res=`eval echo '${'$as_ac_var'}'`
12210 { echo "$as_me:$LINENO: result: $ac_res" >&5
12211echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012212if test `eval echo '${'$as_ac_var'}'` = yes; then
12213 cat >>confdefs.h <<_ACEOF
12214#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12215_ACEOF
12216
12217fi
12218done
12219
12220
12221
12222
12223for ac_func in closedir opendir readdir
12224do
12225as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012226{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12227echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12228if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230else
12231 cat >conftest.$ac_ext <<_ACEOF
12232/* confdefs.h. */
12233_ACEOF
12234cat confdefs.h >>conftest.$ac_ext
12235cat >>conftest.$ac_ext <<_ACEOF
12236/* end confdefs.h. */
12237/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12239#define $ac_func innocuous_$ac_func
12240
12241/* System header to define __stub macros and hopefully few prototypes,
12242 which can conflict with char $ac_func (); below.
12243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12244 <limits.h> exists even on freestanding compilers. */
12245
12246#ifdef __STDC__
12247# include <limits.h>
12248#else
12249# include <assert.h>
12250#endif
12251
12252#undef $ac_func
12253
Reid Spencera773bd52006-08-04 18:18:08 +000012254/* Override any GCC internal prototype to avoid an error.
12255 Use char because int might match the return type of a GCC
12256 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012257#ifdef __cplusplus
12258extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012259#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012260char $ac_func ();
12261/* The GNU C library defines this for functions which it implements
12262 to always fail with ENOSYS. Some functions are actually named
12263 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012264#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012265choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012266#endif
12267
12268int
12269main ()
12270{
Reid Spencera773bd52006-08-04 18:18:08 +000012271return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012272 ;
12273 return 0;
12274}
12275_ACEOF
12276rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012277if { (ac_try="$ac_link"
12278case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12281esac
12282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012284 ac_status=$?
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012289 (exit $ac_status); } &&
12290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12291 { (case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12294esac
12295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_try") 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; } &&
12300 { ac_try='test -s conftest$ac_exeext'
12301 { (case "(($ac_try" in
12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303 *) ac_try_echo=$ac_try;;
12304esac
12305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306 (eval "$ac_try") 2>&5
12307 ac_status=$?
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012310 eval "$as_ac_var=yes"
12311else
12312 echo "$as_me: failed program was:" >&5
12313sed 's/^/| /' conftest.$ac_ext >&5
12314
Reid Spencera773bd52006-08-04 18:18:08 +000012315 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012316fi
Reid Spencera773bd52006-08-04 18:18:08 +000012317
Bill Wendlingebcceee2009-04-18 11:20:33 +000012318rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012319 conftest$ac_exeext conftest.$ac_ext
12320fi
Reid Spencera773bd52006-08-04 18:18:08 +000012321ac_res=`eval echo '${'$as_ac_var'}'`
12322 { echo "$as_me:$LINENO: result: $ac_res" >&5
12323echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012324if test `eval echo '${'$as_ac_var'}'` = yes; then
12325 cat >>confdefs.h <<_ACEOF
12326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12327_ACEOF
12328
12329fi
12330done
12331
12332
Reid Spencera773bd52006-08-04 18:18:08 +000012333# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012334if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012335 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012336 case $enableval in
12337 yes) enable_shared=yes ;;
12338 no) enable_shared=no ;;
12339 *)
12340 enable_shared=no
12341 # Look at the argument we got. We use all the common list separators.
12342 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12343 for pkg in $enableval; do
12344 IFS="$lt_save_ifs"
12345 if test "X$pkg" = "X$p"; then
12346 enable_shared=yes
12347 fi
12348 done
12349 IFS="$lt_save_ifs"
12350 ;;
12351 esac
12352else
12353 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012354fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012355
Reid Spencera773bd52006-08-04 18:18:08 +000012356
12357# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012358if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012359 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012360 case $enableval in
12361 yes) enable_static=yes ;;
12362 no) enable_static=no ;;
12363 *)
12364 enable_static=no
12365 # Look at the argument we got. We use all the common list separators.
12366 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12367 for pkg in $enableval; do
12368 IFS="$lt_save_ifs"
12369 if test "X$pkg" = "X$p"; then
12370 enable_static=yes
12371 fi
12372 done
12373 IFS="$lt_save_ifs"
12374 ;;
12375 esac
12376else
12377 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012378fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012379
Reid Spencera773bd52006-08-04 18:18:08 +000012380
12381# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012382if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012383 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012384 case $enableval in
12385 yes) enable_fast_install=yes ;;
12386 no) enable_fast_install=no ;;
12387 *)
12388 enable_fast_install=no
12389 # Look at the argument we got. We use all the common list separators.
12390 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12391 for pkg in $enableval; do
12392 IFS="$lt_save_ifs"
12393 if test "X$pkg" = "X$p"; then
12394 enable_fast_install=yes
12395 fi
12396 done
12397 IFS="$lt_save_ifs"
12398 ;;
12399 esac
12400else
12401 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012402fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012403
Reid Spencera773bd52006-08-04 18:18:08 +000012404
12405{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12406echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012407if test "${lt_cv_path_SED+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12409else
12410 # Loop through the user's path and test for sed and gsed.
12411# Then use that list of sed's as ones to test for truncation.
12412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413for as_dir in $PATH
12414do
12415 IFS=$as_save_IFS
12416 test -z "$as_dir" && as_dir=.
12417 for lt_ac_prog in sed gsed; do
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12420 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12421 fi
12422 done
12423 done
12424done
12425lt_ac_max=0
12426lt_ac_count=0
12427# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12428# along with /bin/sed that truncates output.
12429for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012430 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012431 cat /dev/null > conftest.in
12432 lt_ac_count=0
12433 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12434 # Check for GNU sed and select it if it is found.
12435 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12436 lt_cv_path_SED=$lt_ac_sed
12437 break
12438 fi
12439 while true; do
12440 cat conftest.in conftest.in >conftest.tmp
12441 mv conftest.tmp conftest.in
12442 cp conftest.in conftest.nl
12443 echo >>conftest.nl
12444 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12445 cmp -s conftest.out conftest.nl || break
12446 # 10000 chars as input seems more than enough
12447 test $lt_ac_count -gt 10 && break
12448 lt_ac_count=`expr $lt_ac_count + 1`
12449 if test $lt_ac_count -gt $lt_ac_max; then
12450 lt_ac_max=$lt_ac_count
12451 lt_cv_path_SED=$lt_ac_sed
12452 fi
12453 done
12454done
12455
12456fi
12457
12458SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012459{ echo "$as_me:$LINENO: result: $SED" >&5
12460echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012461
12462
Reid Spencera773bd52006-08-04 18:18:08 +000012463# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012464if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012465 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012466else
12467 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012468fi
12469
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012470ac_prog=ld
12471if test "$GCC" = yes; then
12472 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012473 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12474echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012475 case $host in
12476 *-*-mingw*)
12477 # gcc leaves a trailing carriage return which upsets mingw
12478 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12479 *)
12480 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12481 esac
12482 case $ac_prog in
12483 # Accept absolute paths.
12484 [\\/]* | ?:[\\/]*)
12485 re_direlt='/[^/][^/]*/\.\./'
12486 # Canonicalize the pathname of ld
12487 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12488 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12489 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12490 done
12491 test -z "$LD" && LD="$ac_prog"
12492 ;;
12493 "")
12494 # If it fails, then pretend we aren't using GCC.
12495 ac_prog=ld
12496 ;;
12497 *)
12498 # If it is relative, then search for the first ld in PATH.
12499 with_gnu_ld=unknown
12500 ;;
12501 esac
12502elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012503 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12504echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012505else
Reid Spencera773bd52006-08-04 18:18:08 +000012506 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12507echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012508fi
12509if test "${lt_cv_path_LD+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12511else
12512 if test -z "$LD"; then
12513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12514 for ac_dir in $PATH; do
12515 IFS="$lt_save_ifs"
12516 test -z "$ac_dir" && ac_dir=.
12517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12518 lt_cv_path_LD="$ac_dir/$ac_prog"
12519 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012520 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012521 # Break only if it was the GNU/non-GNU ld that we prefer.
12522 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12523 *GNU* | *'with BFD'*)
12524 test "$with_gnu_ld" != no && break
12525 ;;
12526 *)
12527 test "$with_gnu_ld" != yes && break
12528 ;;
12529 esac
12530 fi
12531 done
12532 IFS="$lt_save_ifs"
12533else
12534 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12535fi
12536fi
12537
12538LD="$lt_cv_path_LD"
12539if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012540 { echo "$as_me:$LINENO: result: $LD" >&5
12541echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012542else
Reid Spencera773bd52006-08-04 18:18:08 +000012543 { echo "$as_me:$LINENO: result: no" >&5
12544echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012545fi
12546test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12547echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12548 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012549{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12550echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012551if test "${lt_cv_prog_gnu_ld+set}" = set; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12553else
Reid Spencera773bd52006-08-04 18:18:08 +000012554 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012555case `$LD -v 2>&1 </dev/null` in
12556*GNU* | *'with BFD'*)
12557 lt_cv_prog_gnu_ld=yes
12558 ;;
12559*)
12560 lt_cv_prog_gnu_ld=no
12561 ;;
12562esac
12563fi
Reid Spencera773bd52006-08-04 18:18:08 +000012564{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12565echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012566with_gnu_ld=$lt_cv_prog_gnu_ld
12567
12568
Reid Spencera773bd52006-08-04 18:18:08 +000012569{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12570echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012571if test "${lt_cv_ld_reload_flag+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12573else
12574 lt_cv_ld_reload_flag='-r'
12575fi
Reid Spencera773bd52006-08-04 18:18:08 +000012576{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12577echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012578reload_flag=$lt_cv_ld_reload_flag
12579case $reload_flag in
12580"" | " "*) ;;
12581*) reload_flag=" $reload_flag" ;;
12582esac
12583reload_cmds='$LD$reload_flag -o $output$reload_objs'
12584case $host_os in
12585 darwin*)
12586 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012587 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012588 else
12589 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12590 fi
12591 ;;
12592esac
12593
Reid Spencera773bd52006-08-04 18:18:08 +000012594{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12595echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012596if test "${lt_cv_deplibs_check_method+set}" = set; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12598else
12599 lt_cv_file_magic_cmd='$MAGIC_CMD'
12600lt_cv_file_magic_test_file=
12601lt_cv_deplibs_check_method='unknown'
12602# Need to set the preceding variable on all platforms that support
12603# interlibrary dependencies.
12604# 'none' -- dependencies not supported.
12605# `unknown' -- same as none, but documents that we really don't know.
12606# 'pass_all' -- all dependencies passed with no checks.
12607# 'test_compile' -- check by making test program.
12608# 'file_magic [[regex]]' -- check by looking for files in library path
12609# which responds to the $file_magic_cmd with a given extended regex.
12610# If you have `file' or equivalent on your system and you're not sure
12611# whether `pass_all' will *always* work, you probably want this one.
12612
12613case $host_os in
12614aix4* | aix5*)
12615 lt_cv_deplibs_check_method=pass_all
12616 ;;
12617
12618beos*)
12619 lt_cv_deplibs_check_method=pass_all
12620 ;;
12621
12622bsdi[45]*)
12623 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12624 lt_cv_file_magic_cmd='/usr/bin/file -L'
12625 lt_cv_file_magic_test_file=/shlib/libc.so
12626 ;;
12627
12628cygwin*)
12629 # func_win32_libid is a shell function defined in ltmain.sh
12630 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12631 lt_cv_file_magic_cmd='func_win32_libid'
12632 ;;
12633
12634mingw* | pw32*)
12635 # Base MSYS/MinGW do not provide the 'file' command needed by
12636 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12637 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12638 lt_cv_file_magic_cmd='$OBJDUMP -f'
12639 ;;
12640
12641darwin* | rhapsody*)
12642 lt_cv_deplibs_check_method=pass_all
12643 ;;
12644
Reid Spencera773bd52006-08-04 18:18:08 +000012645freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012646 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12647 case $host_cpu in
12648 i*86 )
12649 # Not sure whether the presence of OpenBSD here was a mistake.
12650 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012651 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 +000012652 lt_cv_file_magic_cmd=/usr/bin/file
12653 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12654 ;;
12655 esac
12656 else
12657 lt_cv_deplibs_check_method=pass_all
12658 fi
12659 ;;
12660
12661gnu*)
12662 lt_cv_deplibs_check_method=pass_all
12663 ;;
12664
12665hpux10.20* | hpux11*)
12666 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012667 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012668 ia64*)
12669 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12670 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12671 ;;
12672 hppa*64*)
12673 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]'
12674 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12675 ;;
12676 *)
12677 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12678 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12679 ;;
12680 esac
12681 ;;
12682
Reid Spencera773bd52006-08-04 18:18:08 +000012683interix3*)
12684 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12686 ;;
12687
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012688irix5* | irix6* | nonstopux*)
12689 case $LD in
12690 *-32|*"-32 ") libmagic=32-bit;;
12691 *-n32|*"-n32 ") libmagic=N32;;
12692 *-64|*"-64 ") libmagic=64-bit;;
12693 *) libmagic=never-match;;
12694 esac
12695 lt_cv_deplibs_check_method=pass_all
12696 ;;
12697
12698# This must be Linux ELF.
12699linux*)
12700 lt_cv_deplibs_check_method=pass_all
12701 ;;
12702
12703netbsd*)
12704 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12705 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12706 else
12707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12708 fi
12709 ;;
12710
12711newos6*)
12712 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12713 lt_cv_file_magic_cmd=/usr/bin/file
12714 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12715 ;;
12716
12717nto-qnx*)
12718 lt_cv_deplibs_check_method=unknown
12719 ;;
12720
12721openbsd*)
12722 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12724 else
12725 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12726 fi
12727 ;;
12728
12729osf3* | osf4* | osf5*)
12730 lt_cv_deplibs_check_method=pass_all
12731 ;;
12732
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012733solaris*)
12734 lt_cv_deplibs_check_method=pass_all
12735 ;;
12736
Reid Spencera773bd52006-08-04 18:18:08 +000012737sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012738 case $host_vendor in
12739 motorola)
12740 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]'
12741 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12742 ;;
12743 ncr)
12744 lt_cv_deplibs_check_method=pass_all
12745 ;;
12746 sequent)
12747 lt_cv_file_magic_cmd='/bin/file'
12748 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12749 ;;
12750 sni)
12751 lt_cv_file_magic_cmd='/bin/file'
12752 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12753 lt_cv_file_magic_test_file=/lib/libc.so
12754 ;;
12755 siemens)
12756 lt_cv_deplibs_check_method=pass_all
12757 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012758 pc)
12759 lt_cv_deplibs_check_method=pass_all
12760 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012761 esac
12762 ;;
12763
Reid Spencera773bd52006-08-04 18:18:08 +000012764sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012765 lt_cv_deplibs_check_method=pass_all
12766 ;;
12767esac
12768
12769fi
Reid Spencera773bd52006-08-04 18:18:08 +000012770{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12771echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012772file_magic_cmd=$lt_cv_file_magic_cmd
12773deplibs_check_method=$lt_cv_deplibs_check_method
12774test -z "$deplibs_check_method" && deplibs_check_method=unknown
12775
12776
12777
12778# If no C compiler was specified, use CC.
12779LTCC=${LTCC-"$CC"}
12780
Reid Spencera773bd52006-08-04 18:18:08 +000012781# If no C compiler flags were specified, use CFLAGS.
12782LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12783
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012784# Allow CC to be a program name with arguments.
12785compiler=$CC
12786
Reid Spencera773bd52006-08-04 18:18:08 +000012787# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012788if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012789 enableval=$enable_libtool_lock;
12790fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012791
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012792test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12793
12794# Some flags need to be propagated to the compiler or linker for good
12795# libtool support.
12796case $host in
12797ia64-*-hpux*)
12798 # Find out which ABI we are using.
12799 echo 'int i;' > conftest.$ac_ext
12800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801 (eval $ac_compile) 2>&5
12802 ac_status=$?
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; then
12805 case `/usr/bin/file conftest.$ac_objext` in
12806 *ELF-32*)
12807 HPUX_IA64_MODE="32"
12808 ;;
12809 *ELF-64*)
12810 HPUX_IA64_MODE="64"
12811 ;;
12812 esac
12813 fi
12814 rm -rf conftest*
12815 ;;
12816*-*-irix6*)
12817 # Find out which ABI we are using.
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000012818 echo '#line 12818 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820 (eval $ac_compile) 2>&5
12821 ac_status=$?
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; then
12824 if test "$lt_cv_prog_gnu_ld" = yes; then
12825 case `/usr/bin/file conftest.$ac_objext` in
12826 *32-bit*)
12827 LD="${LD-ld} -melf32bsmip"
12828 ;;
12829 *N32*)
12830 LD="${LD-ld} -melf32bmipn32"
12831 ;;
12832 *64-bit*)
12833 LD="${LD-ld} -melf64bmip"
12834 ;;
12835 esac
12836 else
12837 case `/usr/bin/file conftest.$ac_objext` in
12838 *32-bit*)
12839 LD="${LD-ld} -32"
12840 ;;
12841 *N32*)
12842 LD="${LD-ld} -n32"
12843 ;;
12844 *64-bit*)
12845 LD="${LD-ld} -64"
12846 ;;
12847 esac
12848 fi
12849 fi
12850 rm -rf conftest*
12851 ;;
12852
12853x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12854 # Find out which ABI we are using.
12855 echo 'int i;' > conftest.$ac_ext
12856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12857 (eval $ac_compile) 2>&5
12858 ac_status=$?
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012861 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012862 *32-bit*)
12863 case $host in
12864 x86_64-*linux*)
12865 LD="${LD-ld} -m elf_i386"
12866 ;;
12867 ppc64-*linux*|powerpc64-*linux*)
12868 LD="${LD-ld} -m elf32ppclinux"
12869 ;;
12870 s390x-*linux*)
12871 LD="${LD-ld} -m elf_s390"
12872 ;;
12873 sparc64-*linux*)
12874 LD="${LD-ld} -m elf32_sparc"
12875 ;;
12876 esac
12877 ;;
12878 *64-bit*)
12879 case $host in
12880 x86_64-*linux*)
12881 LD="${LD-ld} -m elf_x86_64"
12882 ;;
12883 ppc*-*linux*|powerpc*-*linux*)
12884 LD="${LD-ld} -m elf64ppc"
12885 ;;
12886 s390*-*linux*)
12887 LD="${LD-ld} -m elf64_s390"
12888 ;;
12889 sparc*-*linux*)
12890 LD="${LD-ld} -m elf64_sparc"
12891 ;;
12892 esac
12893 ;;
12894 esac
12895 fi
12896 rm -rf conftest*
12897 ;;
12898
12899*-*-sco3.2v5*)
12900 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12901 SAVE_CFLAGS="$CFLAGS"
12902 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012903 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12904echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012905if test "${lt_cv_cc_needs_belf+set}" = set; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12907else
12908 ac_ext=c
12909ac_cpp='$CPP $CPPFLAGS'
12910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12912ac_compiler_gnu=$ac_cv_c_compiler_gnu
12913
12914 cat >conftest.$ac_ext <<_ACEOF
12915/* confdefs.h. */
12916_ACEOF
12917cat confdefs.h >>conftest.$ac_ext
12918cat >>conftest.$ac_ext <<_ACEOF
12919/* end confdefs.h. */
12920
Reid Spencera773bd52006-08-04 18:18:08 +000012921int
12922main ()
12923{
12924
12925 ;
12926 return 0;
12927}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012928_ACEOF
12929rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012930if { (ac_try="$ac_link"
12931case "(($ac_try" in
12932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933 *) ac_try_echo=$ac_try;;
12934esac
12935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12936 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012937 ac_status=$?
12938 grep -v '^ *+' conftest.er1 >conftest.err
12939 rm -f conftest.er1
12940 cat conftest.err >&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012942 (exit $ac_status); } &&
12943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12944 { (case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12947esac
12948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949 (eval "$ac_try") 2>&5
12950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; } &&
12953 { ac_try='test -s conftest$ac_exeext'
12954 { (case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12957esac
12958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_try") 2>&5
12960 ac_status=$?
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012963 lt_cv_cc_needs_belf=yes
12964else
12965 echo "$as_me: failed program was:" >&5
12966sed 's/^/| /' conftest.$ac_ext >&5
12967
Reid Spencera773bd52006-08-04 18:18:08 +000012968 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012969fi
Reid Spencera773bd52006-08-04 18:18:08 +000012970
Bill Wendlingebcceee2009-04-18 11:20:33 +000012971rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012972 conftest$ac_exeext conftest.$ac_ext
12973 ac_ext=c
12974ac_cpp='$CPP $CPPFLAGS'
12975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12977ac_compiler_gnu=$ac_cv_c_compiler_gnu
12978
12979fi
Reid Spencera773bd52006-08-04 18:18:08 +000012980{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12981echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012982 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12983 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12984 CFLAGS="$SAVE_CFLAGS"
12985 fi
12986 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012987sparc*-*solaris*)
12988 # Find out which ABI we are using.
12989 echo 'int i;' > conftest.$ac_ext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12991 (eval $ac_compile) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; then
12995 case `/usr/bin/file conftest.o` in
12996 *64-bit*)
12997 case $lt_cv_prog_gnu_ld in
12998 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12999 *) LD="${LD-ld} -64" ;;
13000 esac
13001 ;;
13002 esac
13003 fi
13004 rm -rf conftest*
13005 ;;
13006
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013007
13008esac
13009
13010need_locks="$enable_libtool_lock"
13011
13012
Reid Spencer2706f8c2004-09-19 23:53:36 +000013013
13014
13015if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13016 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13017 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013018 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013019ac_cpp='$CXXCPP $CPPFLAGS'
13020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013023{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13024echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013025if test -z "$CXXCPP"; then
13026 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013027 echo $ECHO_N "(cached) $ECHO_C" >&6
13028else
John Criswell47fdd832003-07-14 16:52:07 +000013029 # Double quotes because CXXCPP needs to be expanded
13030 for CXXCPP in "$CXX -E" "/lib/cpp"
13031 do
13032 ac_preproc_ok=false
13033for ac_cxx_preproc_warn_flag in '' yes
13034do
13035 # Use a header file that comes with gcc, so configuring glibc
13036 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13038 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013039 # On the NeXT, cc -E runs the code through the compiler's parser,
13040 # not just through cpp. "Syntax error" is here to catch this case.
13041 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013042/* confdefs.h. */
13043_ACEOF
13044cat confdefs.h >>conftest.$ac_ext
13045cat >>conftest.$ac_ext <<_ACEOF
13046/* end confdefs.h. */
13047#ifdef __STDC__
13048# include <limits.h>
13049#else
13050# include <assert.h>
13051#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013052 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013053_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013054if { (ac_try="$ac_cpp conftest.$ac_ext"
13055case "(($ac_try" in
13056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13057 *) ac_try_echo=$ac_try;;
13058esac
13059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013061 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013062 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013063 rm -f conftest.er1
13064 cat conftest.err >&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013066 (exit $ac_status); } >/dev/null; then
13067 if test -s conftest.err; then
13068 ac_cpp_err=$ac_cxx_preproc_warn_flag
13069 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13070 else
13071 ac_cpp_err=
13072 fi
13073else
13074 ac_cpp_err=yes
13075fi
13076if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013077 :
13078else
13079 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013080sed 's/^/| /' conftest.$ac_ext >&5
13081
John Criswell47fdd832003-07-14 16:52:07 +000013082 # Broken: fails on valid input.
13083continue
13084fi
Reid Spencera773bd52006-08-04 18:18:08 +000013085
John Criswell47fdd832003-07-14 16:52:07 +000013086rm -f conftest.err conftest.$ac_ext
13087
Reid Spencera773bd52006-08-04 18:18:08 +000013088 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013089 # can be detected and how.
13090 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013091/* confdefs.h. */
13092_ACEOF
13093cat confdefs.h >>conftest.$ac_ext
13094cat >>conftest.$ac_ext <<_ACEOF
13095/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013096#include <ac_nonexistent.h>
13097_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013098if { (ac_try="$ac_cpp conftest.$ac_ext"
13099case "(($ac_try" in
13100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101 *) ac_try_echo=$ac_try;;
13102esac
13103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013105 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013106 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013107 rm -f conftest.er1
13108 cat conftest.err >&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013110 (exit $ac_status); } >/dev/null; then
13111 if test -s conftest.err; then
13112 ac_cpp_err=$ac_cxx_preproc_warn_flag
13113 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13114 else
13115 ac_cpp_err=
13116 fi
13117else
13118 ac_cpp_err=yes
13119fi
13120if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013121 # Broken: success on invalid input.
13122continue
13123else
13124 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013125sed 's/^/| /' conftest.$ac_ext >&5
13126
John Criswell47fdd832003-07-14 16:52:07 +000013127 # Passes both tests.
13128ac_preproc_ok=:
13129break
13130fi
Reid Spencera773bd52006-08-04 18:18:08 +000013131
John Criswell47fdd832003-07-14 16:52:07 +000013132rm -f conftest.err conftest.$ac_ext
13133
13134done
13135# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13136rm -f conftest.err conftest.$ac_ext
13137if $ac_preproc_ok; then
13138 break
John Criswell7a73b802003-06-30 21:59:07 +000013139fi
13140
John Criswell47fdd832003-07-14 16:52:07 +000013141 done
13142 ac_cv_prog_CXXCPP=$CXXCPP
13143
13144fi
13145 CXXCPP=$ac_cv_prog_CXXCPP
13146else
13147 ac_cv_prog_CXXCPP=$CXXCPP
13148fi
Reid Spencera773bd52006-08-04 18:18:08 +000013149{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13150echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013151ac_preproc_ok=false
13152for ac_cxx_preproc_warn_flag in '' yes
13153do
13154 # Use a header file that comes with gcc, so configuring glibc
13155 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13157 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013158 # On the NeXT, cc -E runs the code through the compiler's parser,
13159 # not just through cpp. "Syntax error" is here to catch this case.
13160 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013161/* confdefs.h. */
13162_ACEOF
13163cat confdefs.h >>conftest.$ac_ext
13164cat >>conftest.$ac_ext <<_ACEOF
13165/* end confdefs.h. */
13166#ifdef __STDC__
13167# include <limits.h>
13168#else
13169# include <assert.h>
13170#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013171 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013172_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013173if { (ac_try="$ac_cpp conftest.$ac_ext"
13174case "(($ac_try" in
13175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176 *) ac_try_echo=$ac_try;;
13177esac
13178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013180 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013181 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013182 rm -f conftest.er1
13183 cat conftest.err >&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013185 (exit $ac_status); } >/dev/null; then
13186 if test -s conftest.err; then
13187 ac_cpp_err=$ac_cxx_preproc_warn_flag
13188 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13189 else
13190 ac_cpp_err=
13191 fi
13192else
13193 ac_cpp_err=yes
13194fi
13195if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013196 :
13197else
13198 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013199sed 's/^/| /' conftest.$ac_ext >&5
13200
John Criswell47fdd832003-07-14 16:52:07 +000013201 # Broken: fails on valid input.
13202continue
13203fi
Reid Spencera773bd52006-08-04 18:18:08 +000013204
John Criswell47fdd832003-07-14 16:52:07 +000013205rm -f conftest.err conftest.$ac_ext
13206
Reid Spencera773bd52006-08-04 18:18:08 +000013207 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013208 # can be detected and how.
13209 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013210/* confdefs.h. */
13211_ACEOF
13212cat confdefs.h >>conftest.$ac_ext
13213cat >>conftest.$ac_ext <<_ACEOF
13214/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013215#include <ac_nonexistent.h>
13216_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013217if { (ac_try="$ac_cpp conftest.$ac_ext"
13218case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13221esac
13222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013224 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013225 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013226 rm -f conftest.er1
13227 cat conftest.err >&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013229 (exit $ac_status); } >/dev/null; then
13230 if test -s conftest.err; then
13231 ac_cpp_err=$ac_cxx_preproc_warn_flag
13232 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13233 else
13234 ac_cpp_err=
13235 fi
13236else
13237 ac_cpp_err=yes
13238fi
13239if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013240 # Broken: success on invalid input.
13241continue
13242else
13243 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013244sed 's/^/| /' conftest.$ac_ext >&5
13245
John Criswell47fdd832003-07-14 16:52:07 +000013246 # Passes both tests.
13247ac_preproc_ok=:
13248break
13249fi
Reid Spencera773bd52006-08-04 18:18:08 +000013250
John Criswell47fdd832003-07-14 16:52:07 +000013251rm -f conftest.err conftest.$ac_ext
13252
13253done
13254# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13255rm -f conftest.err conftest.$ac_ext
13256if $ac_preproc_ok; then
13257 :
13258else
John Criswell0c38eaf2003-09-10 15:17:25 +000013259 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13260See \`config.log' for more details." >&5
13261echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13262See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013263 { (exit 1); exit 1; }; }
13264fi
13265
Reid Spencera773bd52006-08-04 18:18:08 +000013266ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013267ac_cpp='$CXXCPP $CPPFLAGS'
13268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13271
Reid Spencer2706f8c2004-09-19 23:53:36 +000013272fi
13273
John Criswell47fdd832003-07-14 16:52:07 +000013274
13275ac_ext=f
13276ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13277ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13278ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13279if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013280 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 +000013281 do
13282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13283set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013284{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013286if test "${ac_cv_prog_F77+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13288else
13289 if test -n "$F77"; then
13290 ac_cv_prog_F77="$F77" # Let the user override the test.
13291else
13292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13293for as_dir in $PATH
13294do
13295 IFS=$as_save_IFS
13296 test -z "$as_dir" && as_dir=.
13297 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013298 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 +000013299 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13301 break 2
13302 fi
13303done
13304done
Reid Spencera773bd52006-08-04 18:18:08 +000013305IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013306
13307fi
13308fi
13309F77=$ac_cv_prog_F77
13310if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013311 { echo "$as_me:$LINENO: result: $F77" >&5
13312echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013313else
Reid Spencera773bd52006-08-04 18:18:08 +000013314 { echo "$as_me:$LINENO: result: no" >&5
13315echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013316fi
13317
Reid Spencera773bd52006-08-04 18:18:08 +000013318
John Criswell47fdd832003-07-14 16:52:07 +000013319 test -n "$F77" && break
13320 done
13321fi
13322if test -z "$F77"; then
13323 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013324 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 +000013325do
13326 # Extract the first word of "$ac_prog", so it can be a program name with args.
13327set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013328{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013330if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13332else
13333 if test -n "$ac_ct_F77"; then
13334 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13335else
13336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337for as_dir in $PATH
13338do
13339 IFS=$as_save_IFS
13340 test -z "$as_dir" && as_dir=.
13341 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013342 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 +000013343 ac_cv_prog_ac_ct_F77="$ac_prog"
13344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13345 break 2
13346 fi
13347done
13348done
Reid Spencera773bd52006-08-04 18:18:08 +000013349IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013350
13351fi
13352fi
13353ac_ct_F77=$ac_cv_prog_ac_ct_F77
13354if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013355 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13356echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013357else
Reid Spencera773bd52006-08-04 18:18:08 +000013358 { echo "$as_me:$LINENO: result: no" >&5
13359echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013360fi
13361
Reid Spencera773bd52006-08-04 18:18:08 +000013362
John Criswell47fdd832003-07-14 16:52:07 +000013363 test -n "$ac_ct_F77" && break
13364done
13365
Reid Spencera773bd52006-08-04 18:18:08 +000013366 if test "x$ac_ct_F77" = x; then
13367 F77=""
13368 else
13369 case $cross_compiling:$ac_tool_warned in
13370yes:)
13371{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13372whose name does not start with the host triplet. If you think this
13373configuration is useful to you, please write to autoconf@gnu.org." >&5
13374echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13375whose name does not start with the host triplet. If you think this
13376configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13377ac_tool_warned=yes ;;
13378esac
13379 F77=$ac_ct_F77
13380 fi
John Criswell47fdd832003-07-14 16:52:07 +000013381fi
13382
13383
13384# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013385echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013386ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013387{ (ac_try="$ac_compiler --version >&5"
13388case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13391esac
13392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013397{ (ac_try="$ac_compiler -v >&5"
13398case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13401esac
13402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013407{ (ac_try="$ac_compiler -V >&5"
13408case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13411esac
13412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013414 ac_status=$?
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013417rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013418
13419# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013420# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013421ac_save_ext=$ac_ext
13422ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013423{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13424echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013425if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13427else
13428 cat >conftest.$ac_ext <<_ACEOF
13429 program main
13430#ifndef __GNUC__
13431 choke me
13432#endif
13433
13434 end
13435_ACEOF
13436rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013437if { (ac_try="$ac_compile"
13438case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13441esac
13442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013444 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013445 grep -v '^ *+' conftest.er1 >conftest.err
13446 rm -f conftest.er1
13447 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013449 (exit $ac_status); } &&
13450 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13451 { (case "(($ac_try" in
13452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453 *) ac_try_echo=$ac_try;;
13454esac
13455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456 (eval "$ac_try") 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; } &&
13460 { ac_try='test -s conftest.$ac_objext'
13461 { (case "(($ac_try" in
13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13464esac
13465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466 (eval "$ac_try") 2>&5
13467 ac_status=$?
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013470 ac_compiler_gnu=yes
13471else
13472 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013473sed 's/^/| /' conftest.$ac_ext >&5
13474
Reid Spencera773bd52006-08-04 18:18:08 +000013475 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013476fi
Reid Spencera773bd52006-08-04 18:18:08 +000013477
13478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013479ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13480
13481fi
Reid Spencera773bd52006-08-04 18:18:08 +000013482{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13483echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013484ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013485ac_test_FFLAGS=${FFLAGS+set}
13486ac_save_FFLAGS=$FFLAGS
13487FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013488{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13489echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013490if test "${ac_cv_prog_f77_g+set}" = set; then
13491 echo $ECHO_N "(cached) $ECHO_C" >&6
13492else
13493 FFLAGS=-g
13494cat >conftest.$ac_ext <<_ACEOF
13495 program main
13496
13497 end
13498_ACEOF
13499rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013500if { (ac_try="$ac_compile"
13501case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13504esac
13505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013507 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013508 grep -v '^ *+' conftest.er1 >conftest.err
13509 rm -f conftest.er1
13510 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013512 (exit $ac_status); } &&
13513 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13514 { (case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13517esac
13518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_try") 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; } &&
13523 { ac_try='test -s conftest.$ac_objext'
13524 { (case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13527esac
13528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529 (eval "$ac_try") 2>&5
13530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013533 ac_cv_prog_f77_g=yes
13534else
13535 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013536sed 's/^/| /' conftest.$ac_ext >&5
13537
Reid Spencera773bd52006-08-04 18:18:08 +000013538 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013539fi
Reid Spencera773bd52006-08-04 18:18:08 +000013540
13541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013542
13543fi
Reid Spencera773bd52006-08-04 18:18:08 +000013544{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13545echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013546if test "$ac_test_FFLAGS" = set; then
13547 FFLAGS=$ac_save_FFLAGS
13548elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013549 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013550 FFLAGS="-g -O2"
13551 else
13552 FFLAGS="-g"
13553 fi
13554else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013555 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013556 FFLAGS="-O2"
13557 else
13558 FFLAGS=
13559 fi
13560fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013561
13562G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013563ac_ext=c
13564ac_cpp='$CPP $CPPFLAGS'
13565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13567ac_compiler_gnu=$ac_cv_c_compiler_gnu
13568
13569
13570
13571# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13572
13573# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013574{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13575echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013576if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13578else
13579 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013580 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013581
13582 case $build_os in
13583 msdosdjgpp*)
13584 # On DJGPP, this test can blow up pretty badly due to problems in libc
13585 # (any single argument exceeding 2000 bytes causes a buffer overrun
13586 # during glob expansion). Even if it were fixed, the result of this
13587 # check would be larger than it should be.
13588 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13589 ;;
13590
13591 gnu*)
13592 # Under GNU Hurd, this test is not required because there is
13593 # no limit to the length of command line arguments.
13594 # Libtool will interpret -1 as no limit whatsoever
13595 lt_cv_sys_max_cmd_len=-1;
13596 ;;
13597
13598 cygwin* | mingw*)
13599 # On Win9x/ME, this test blows up -- it succeeds, but takes
13600 # about 5 minutes as the teststring grows exponentially.
13601 # Worse, since 9x/ME are not pre-emptively multitasking,
13602 # you end up with a "frozen" computer, even though with patience
13603 # the test eventually succeeds (with a max line length of 256k).
13604 # Instead, let's just punt: use the minimum linelength reported by
13605 # all of the supported platforms: 8192 (on NT/2K/XP).
13606 lt_cv_sys_max_cmd_len=8192;
13607 ;;
13608
Reid Spencer2706f8c2004-09-19 23:53:36 +000013609 amigaos*)
13610 # On AmigaOS with pdksh, this test takes hours, literally.
13611 # So we just punt and use a minimum line length of 8192.
13612 lt_cv_sys_max_cmd_len=8192;
13613 ;;
13614
Reid Spencera773bd52006-08-04 18:18:08 +000013615 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013616 # This has been around since 386BSD, at least. Likely further.
13617 if test -x /sbin/sysctl; then
13618 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13619 elif test -x /usr/sbin/sysctl; then
13620 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13621 else
Reid Spencera773bd52006-08-04 18:18:08 +000013622 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013623 fi
13624 # And add a safety zone
13625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013627 ;;
13628
Reid Spencera773bd52006-08-04 18:18:08 +000013629 interix*)
13630 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13631 lt_cv_sys_max_cmd_len=196608
13632 ;;
13633
13634 osf*)
13635 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13636 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13637 # nice to cause kernel panics so lets avoid the loop below.
13638 # First set a reasonable default.
13639 lt_cv_sys_max_cmd_len=16384
13640 #
13641 if test -x /sbin/sysconfig; then
13642 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13643 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13644 esac
13645 fi
13646 ;;
13647 sco3.2v5*)
13648 lt_cv_sys_max_cmd_len=102400
13649 ;;
13650 sysv5* | sco5v6* | sysv4.2uw2*)
13651 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13652 if test -n "$kargmax"; then
13653 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13654 else
13655 lt_cv_sys_max_cmd_len=32768
13656 fi
13657 ;;
13658 *)
John Criswell47fdd832003-07-14 16:52:07 +000013659 # If test is not a shell built-in, we'll probably end up computing a
13660 # maximum length that is only half of the actual maximum length, but
13661 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013662 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13663 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13664 = "XX$teststring") >/dev/null 2>&1 &&
13665 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013666 lt_cv_sys_max_cmd_len=$new_result &&
13667 test $i != 17 # 1/2 MB should be enough
13668 do
13669 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013670 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013671 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013672 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013673 # Add a significant safety factor because C++ compilers can tack on massive
13674 # amounts of additional arguments before passing them to the linker.
13675 # It appears as though 1/2 is a usable value.
13676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13677 ;;
13678 esac
13679
13680fi
13681
13682if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013683 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13684echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013685else
Reid Spencera773bd52006-08-04 18:18:08 +000013686 { echo "$as_me:$LINENO: result: none" >&5
13687echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013688fi
13689
13690
13691
13692
13693# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013694{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13695echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013696if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13698else
13699
13700# These are sane defaults that work on at least a few old systems.
13701# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13702
13703# Character class describing NM global symbol codes.
13704symcode='[BCDEGRST]'
13705
13706# Regexp to match symbols that can be accessed directly from C.
13707sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13708
John Criswell47fdd832003-07-14 16:52:07 +000013709# Transform an extracted symbol line into a proper C declaration
13710lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13711
13712# Transform an extracted symbol line into symbol name and symbol address
13713lt_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'"
13714
13715# Define system-specific variables.
13716case $host_os in
13717aix*)
13718 symcode='[BCDT]'
13719 ;;
13720cygwin* | mingw* | pw32*)
13721 symcode='[ABCDGISTW]'
13722 ;;
13723hpux*) # Its linker distinguishes data from code symbols
13724 if test "$host_cpu" = ia64; then
13725 symcode='[ABCDEGRST]'
13726 fi
13727 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13728 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'"
13729 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013730linux*)
13731 if test "$host_cpu" = ia64; then
13732 symcode='[ABCDGIRSTW]'
13733 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13734 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'"
13735 fi
13736 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013737irix* | nonstopux*)
13738 symcode='[BCDEGRST]'
13739 ;;
13740osf*)
13741 symcode='[BCDEGQRST]'
13742 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013743solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013744 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013745 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013746sco3.2v5*)
13747 symcode='[DT]'
13748 ;;
13749sysv4.2uw2*)
13750 symcode='[DT]'
13751 ;;
13752sysv5* | sco5v6* | unixware* | OpenUNIX*)
13753 symcode='[ABDT]'
13754 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013755sysv4)
13756 symcode='[DFNSTU]'
13757 ;;
13758esac
13759
13760# Handle CRLF in mingw tool chain
13761opt_cr=
13762case $build_os in
13763mingw*)
13764 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13765 ;;
13766esac
13767
13768# If we're using GNU nm, then use its standard symbol codes.
13769case `$NM -V 2>&1` in
13770*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013771 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013772esac
13773
13774# Try without a prefix undercore, then with it.
13775for ac_symprfx in "" "_"; do
13776
Reid Spencera773bd52006-08-04 18:18:08 +000013777 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13778 symxfrm="\\1 $ac_symprfx\\2 \\2"
13779
John Criswell47fdd832003-07-14 16:52:07 +000013780 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013781 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 +000013782
13783 # Check to see that the pipe works correctly.
13784 pipe_works=no
13785
13786 rm -f conftest*
13787 cat > conftest.$ac_ext <<EOF
13788#ifdef __cplusplus
13789extern "C" {
13790#endif
13791char nm_test_var;
13792void nm_test_func(){}
13793#ifdef __cplusplus
13794}
13795#endif
13796int main(){nm_test_var='a';nm_test_func();return(0);}
13797EOF
13798
13799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13800 (eval $ac_compile) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; then
13804 # Now try to grab the symbols.
13805 nlist=conftest.nm
13806 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13807 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } && test -s "$nlist"; then
13811 # Try sorting and uniquifying the output.
13812 if sort "$nlist" | uniq > "$nlist"T; then
13813 mv -f "$nlist"T "$nlist"
13814 else
13815 rm -f "$nlist"T
13816 fi
13817
13818 # Make sure that we snagged all the symbols we need.
13819 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13820 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13821 cat <<EOF > conftest.$ac_ext
13822#ifdef __cplusplus
13823extern "C" {
13824#endif
13825
13826EOF
13827 # Now generate the symbol file.
13828 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13829
13830 cat <<EOF >> conftest.$ac_ext
13831#if defined (__STDC__) && __STDC__
13832# define lt_ptr_t void *
13833#else
13834# define lt_ptr_t char *
13835# define const
13836#endif
13837
13838/* The mapping between symbol names and symbols. */
13839const struct {
13840 const char *name;
13841 lt_ptr_t address;
13842}
13843lt_preloaded_symbols[] =
13844{
13845EOF
13846 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13847 cat <<\EOF >> conftest.$ac_ext
13848 {0, (lt_ptr_t) 0}
13849};
13850
13851#ifdef __cplusplus
13852}
13853#endif
13854EOF
13855 # Now try linking the two files.
13856 mv conftest.$ac_objext conftstm.$ac_objext
13857 lt_save_LIBS="$LIBS"
13858 lt_save_CFLAGS="$CFLAGS"
13859 LIBS="conftstm.$ac_objext"
13860 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13862 (eval $ac_link) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13866 pipe_works=yes
13867 fi
13868 LIBS="$lt_save_LIBS"
13869 CFLAGS="$lt_save_CFLAGS"
13870 else
13871 echo "cannot find nm_test_func in $nlist" >&5
13872 fi
13873 else
13874 echo "cannot find nm_test_var in $nlist" >&5
13875 fi
13876 else
13877 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13878 fi
13879 else
13880 echo "$progname: failed program was:" >&5
13881 cat conftest.$ac_ext >&5
13882 fi
13883 rm -f conftest* conftst*
13884
13885 # Do not use the global_symbol_pipe unless it works.
13886 if test "$pipe_works" = yes; then
13887 break
13888 else
13889 lt_cv_sys_global_symbol_pipe=
13890 fi
13891done
13892
13893fi
13894
13895if test -z "$lt_cv_sys_global_symbol_pipe"; then
13896 lt_cv_sys_global_symbol_to_cdecl=
13897fi
13898if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013899 { echo "$as_me:$LINENO: result: failed" >&5
13900echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013901else
Reid Spencera773bd52006-08-04 18:18:08 +000013902 { echo "$as_me:$LINENO: result: ok" >&5
13903echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013904fi
13905
Reid Spencera773bd52006-08-04 18:18:08 +000013906{ echo "$as_me:$LINENO: checking for objdir" >&5
13907echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013908if test "${lt_cv_objdir+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13910else
13911 rm -f .libs 2>/dev/null
13912mkdir .libs 2>/dev/null
13913if test -d .libs; then
13914 lt_cv_objdir=.libs
13915else
13916 # MS-DOS does not allow filenames that begin with a dot.
13917 lt_cv_objdir=_libs
13918fi
13919rmdir .libs 2>/dev/null
13920fi
Reid Spencera773bd52006-08-04 18:18:08 +000013921{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13922echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013923objdir=$lt_cv_objdir
13924
13925
13926
13927
13928
13929case $host_os in
13930aix3*)
13931 # AIX sometimes has problems with the GCC collect2 program. For some
13932 # reason, if we set the COLLECT_NAMES environment variable, the problems
13933 # vanish in a puff of smoke.
13934 if test "X${COLLECT_NAMES+set}" != Xset; then
13935 COLLECT_NAMES=
13936 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013937 fi
13938 ;;
13939esac
13940
John Criswell47fdd832003-07-14 16:52:07 +000013941# Sed substitution that helps us do robust quoting. It backslashifies
13942# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013943Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013944sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13945
13946# Same as above, but do not quote variable references.
13947double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13948
13949# Sed substitution to delay expansion of an escaped shell variable in a
13950# double_quote_subst'ed string.
13951delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13952
13953# Sed substitution to avoid accidental globbing in evaled expressions
13954no_glob_subst='s/\*/\\\*/g'
13955
13956# Constants:
13957rm="rm -f"
13958
13959# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013960default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013961can_build_shared=yes
13962
Reid Spencera773bd52006-08-04 18:18:08 +000013963# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013964# which needs '.lib').
13965libext=a
13966ltmain="$ac_aux_dir/ltmain.sh"
13967ofile="$default_ofile"
13968with_gnu_ld="$lt_cv_prog_gnu_ld"
13969
13970if test -n "$ac_tool_prefix"; then
13971 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13972set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013973{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013975if test "${ac_cv_prog_AR+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13977else
13978 if test -n "$AR"; then
13979 ac_cv_prog_AR="$AR" # Let the user override the test.
13980else
13981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982for as_dir in $PATH
13983do
13984 IFS=$as_save_IFS
13985 test -z "$as_dir" && as_dir=.
13986 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013987 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 +000013988 ac_cv_prog_AR="${ac_tool_prefix}ar"
13989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13990 break 2
13991 fi
13992done
13993done
Reid Spencera773bd52006-08-04 18:18:08 +000013994IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013995
13996fi
13997fi
13998AR=$ac_cv_prog_AR
13999if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014000 { echo "$as_me:$LINENO: result: $AR" >&5
14001echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014002else
Reid Spencera773bd52006-08-04 18:18:08 +000014003 { echo "$as_me:$LINENO: result: no" >&5
14004echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014005fi
14006
Reid Spencera773bd52006-08-04 18:18:08 +000014007
John Criswell47fdd832003-07-14 16:52:07 +000014008fi
14009if test -z "$ac_cv_prog_AR"; then
14010 ac_ct_AR=$AR
14011 # Extract the first word of "ar", so it can be a program name with args.
14012set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014015if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14017else
14018 if test -n "$ac_ct_AR"; then
14019 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14020else
14021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14022for as_dir in $PATH
14023do
14024 IFS=$as_save_IFS
14025 test -z "$as_dir" && as_dir=.
14026 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014027 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 +000014028 ac_cv_prog_ac_ct_AR="ar"
14029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14030 break 2
14031 fi
14032done
14033done
Reid Spencera773bd52006-08-04 18:18:08 +000014034IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014035
John Criswell47fdd832003-07-14 16:52:07 +000014036fi
14037fi
14038ac_ct_AR=$ac_cv_prog_ac_ct_AR
14039if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014040 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14041echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014042else
Reid Spencera773bd52006-08-04 18:18:08 +000014043 { echo "$as_me:$LINENO: result: no" >&5
14044echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014045fi
14046
Reid Spencera773bd52006-08-04 18:18:08 +000014047 if test "x$ac_ct_AR" = x; then
14048 AR="false"
14049 else
14050 case $cross_compiling:$ac_tool_warned in
14051yes:)
14052{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14053whose name does not start with the host triplet. If you think this
14054configuration is useful to you, please write to autoconf@gnu.org." >&5
14055echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14056whose name does not start with the host triplet. If you think this
14057configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14058ac_tool_warned=yes ;;
14059esac
14060 AR=$ac_ct_AR
14061 fi
John Criswell47fdd832003-07-14 16:52:07 +000014062else
14063 AR="$ac_cv_prog_AR"
14064fi
14065
John Criswell7a73b802003-06-30 21:59:07 +000014066if test -n "$ac_tool_prefix"; then
14067 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14068set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014069{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014071if test "${ac_cv_prog_RANLIB+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073else
14074 if test -n "$RANLIB"; then
14075 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14076else
14077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14078for as_dir in $PATH
14079do
14080 IFS=$as_save_IFS
14081 test -z "$as_dir" && as_dir=.
14082 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014083 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 +000014084 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14086 break 2
14087 fi
14088done
14089done
Reid Spencera773bd52006-08-04 18:18:08 +000014090IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014091
14092fi
14093fi
14094RANLIB=$ac_cv_prog_RANLIB
14095if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014096 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14097echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014098else
Reid Spencera773bd52006-08-04 18:18:08 +000014099 { echo "$as_me:$LINENO: result: no" >&5
14100echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014101fi
14102
Reid Spencera773bd52006-08-04 18:18:08 +000014103
John Criswell7a73b802003-06-30 21:59:07 +000014104fi
14105if test -z "$ac_cv_prog_RANLIB"; then
14106 ac_ct_RANLIB=$RANLIB
14107 # Extract the first word of "ranlib", so it can be a program name with args.
14108set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014109{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014111if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14113else
14114 if test -n "$ac_ct_RANLIB"; then
14115 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14116else
14117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14118for as_dir in $PATH
14119do
14120 IFS=$as_save_IFS
14121 test -z "$as_dir" && as_dir=.
14122 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014123 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 +000014124 ac_cv_prog_ac_ct_RANLIB="ranlib"
14125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14126 break 2
14127 fi
14128done
14129done
Reid Spencera773bd52006-08-04 18:18:08 +000014130IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014131
John Criswell7a73b802003-06-30 21:59:07 +000014132fi
14133fi
14134ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14135if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014136 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14137echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014138else
Reid Spencera773bd52006-08-04 18:18:08 +000014139 { echo "$as_me:$LINENO: result: no" >&5
14140echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014141fi
14142
Reid Spencera773bd52006-08-04 18:18:08 +000014143 if test "x$ac_ct_RANLIB" = x; then
14144 RANLIB=":"
14145 else
14146 case $cross_compiling:$ac_tool_warned in
14147yes:)
14148{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14149whose name does not start with the host triplet. If you think this
14150configuration is useful to you, please write to autoconf@gnu.org." >&5
14151echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14152whose name does not start with the host triplet. If you think this
14153configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14154ac_tool_warned=yes ;;
14155esac
14156 RANLIB=$ac_ct_RANLIB
14157 fi
John Criswell7a73b802003-06-30 21:59:07 +000014158else
14159 RANLIB="$ac_cv_prog_RANLIB"
14160fi
14161
14162if test -n "$ac_tool_prefix"; then
14163 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14164set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014165{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014167if test "${ac_cv_prog_STRIP+set}" = set; then
14168 echo $ECHO_N "(cached) $ECHO_C" >&6
14169else
14170 if test -n "$STRIP"; then
14171 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14172else
14173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14174for as_dir in $PATH
14175do
14176 IFS=$as_save_IFS
14177 test -z "$as_dir" && as_dir=.
14178 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014179 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 +000014180 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14182 break 2
14183 fi
14184done
14185done
Reid Spencera773bd52006-08-04 18:18:08 +000014186IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014187
14188fi
14189fi
14190STRIP=$ac_cv_prog_STRIP
14191if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014192 { echo "$as_me:$LINENO: result: $STRIP" >&5
14193echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014194else
Reid Spencera773bd52006-08-04 18:18:08 +000014195 { echo "$as_me:$LINENO: result: no" >&5
14196echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014197fi
14198
Reid Spencera773bd52006-08-04 18:18:08 +000014199
John Criswell7a73b802003-06-30 21:59:07 +000014200fi
14201if test -z "$ac_cv_prog_STRIP"; then
14202 ac_ct_STRIP=$STRIP
14203 # Extract the first word of "strip", so it can be a program name with args.
14204set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014205{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014207if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14208 echo $ECHO_N "(cached) $ECHO_C" >&6
14209else
14210 if test -n "$ac_ct_STRIP"; then
14211 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14212else
14213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14214for as_dir in $PATH
14215do
14216 IFS=$as_save_IFS
14217 test -z "$as_dir" && as_dir=.
14218 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014219 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 +000014220 ac_cv_prog_ac_ct_STRIP="strip"
14221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14222 break 2
14223 fi
14224done
14225done
Reid Spencera773bd52006-08-04 18:18:08 +000014226IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014227
John Criswell7a73b802003-06-30 21:59:07 +000014228fi
14229fi
14230ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14231if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014232 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14233echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014234else
Reid Spencera773bd52006-08-04 18:18:08 +000014235 { echo "$as_me:$LINENO: result: no" >&5
14236echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014237fi
14238
Reid Spencera773bd52006-08-04 18:18:08 +000014239 if test "x$ac_ct_STRIP" = x; then
14240 STRIP=":"
14241 else
14242 case $cross_compiling:$ac_tool_warned in
14243yes:)
14244{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14245whose name does not start with the host triplet. If you think this
14246configuration is useful to you, please write to autoconf@gnu.org." >&5
14247echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14248whose name does not start with the host triplet. If you think this
14249configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14250ac_tool_warned=yes ;;
14251esac
14252 STRIP=$ac_ct_STRIP
14253 fi
John Criswell7a73b802003-06-30 21:59:07 +000014254else
14255 STRIP="$ac_cv_prog_STRIP"
14256fi
14257
14258
John Criswell7a73b802003-06-30 21:59:07 +000014259old_CC="$CC"
14260old_CFLAGS="$CFLAGS"
14261
14262# Set sane defaults for various variables
14263test -z "$AR" && AR=ar
14264test -z "$AR_FLAGS" && AR_FLAGS=cru
14265test -z "$AS" && AS=as
14266test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014267test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014268test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014269test -z "$DLLTOOL" && DLLTOOL=dlltool
14270test -z "$LD" && LD=ld
14271test -z "$LN_S" && LN_S="ln -s"
14272test -z "$MAGIC_CMD" && MAGIC_CMD=file
14273test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014274test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014275test -z "$OBJDUMP" && OBJDUMP=objdump
14276test -z "$RANLIB" && RANLIB=:
14277test -z "$STRIP" && STRIP=:
14278test -z "$ac_objext" && ac_objext=o
14279
John Criswell7a73b802003-06-30 21:59:07 +000014280# Determine commands to create old-style static archives.
14281old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14282old_postinstall_cmds='chmod 644 $oldlib'
14283old_postuninstall_cmds=
14284
14285if test -n "$RANLIB"; then
14286 case $host_os in
14287 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014288 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014289 ;;
14290 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014291 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014292 ;;
14293 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014294 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014295fi
14296
Reid Spencera773bd52006-08-04 18:18:08 +000014297for cc_temp in $compiler""; do
14298 case $cc_temp in
14299 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14300 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14301 \-*) ;;
14302 *) break;;
14303 esac
14304done
14305cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14306
Reid Spencer2706f8c2004-09-19 23:53:36 +000014307
John Criswell47fdd832003-07-14 16:52:07 +000014308# Only perform the check for file, if the check method requires it
14309case $deplibs_check_method in
14310file_magic*)
14311 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014312 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14313echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014314if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014316else
John Criswell47fdd832003-07-14 16:52:07 +000014317 case $MAGIC_CMD in
14318[\\/*] | ?:[\\/]*)
14319 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14320 ;;
14321*)
14322 lt_save_MAGIC_CMD="$MAGIC_CMD"
14323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14324 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14325 for ac_dir in $ac_dummy; do
14326 IFS="$lt_save_ifs"
14327 test -z "$ac_dir" && ac_dir=.
14328 if test -f $ac_dir/${ac_tool_prefix}file; then
14329 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14330 if test -n "$file_magic_test_file"; then
14331 case $deplibs_check_method in
14332 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014333 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014334 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14335 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14336 $EGREP "$file_magic_regex" > /dev/null; then
14337 :
14338 else
14339 cat <<EOF 1>&2
14340
14341*** Warning: the command libtool uses to detect shared libraries,
14342*** $file_magic_cmd, produces output that libtool cannot recognize.
14343*** The result is that libtool may fail to recognize shared libraries
14344*** as such. This will affect the creation of libtool libraries that
14345*** depend on shared libraries, but programs linked with such libtool
14346*** libraries will work regardless of this problem. Nevertheless, you
14347*** may want to report the problem to your system manager and/or to
14348*** bug-libtool@gnu.org
14349
14350EOF
14351 fi ;;
14352 esac
14353 fi
14354 break
14355 fi
14356 done
14357 IFS="$lt_save_ifs"
14358 MAGIC_CMD="$lt_save_MAGIC_CMD"
14359 ;;
14360esac
John Criswell7a73b802003-06-30 21:59:07 +000014361fi
John Criswell7a73b802003-06-30 21:59:07 +000014362
John Criswell47fdd832003-07-14 16:52:07 +000014363MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14364if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014365 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14366echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014367else
Reid Spencera773bd52006-08-04 18:18:08 +000014368 { echo "$as_me:$LINENO: result: no" >&5
14369echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014370fi
John Criswell7a73b802003-06-30 21:59:07 +000014371
John Criswell47fdd832003-07-14 16:52:07 +000014372if test -z "$lt_cv_path_MAGIC_CMD"; then
14373 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014374 { echo "$as_me:$LINENO: checking for file" >&5
14375echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014376if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14378else
14379 case $MAGIC_CMD in
14380[\\/*] | ?:[\\/]*)
14381 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14382 ;;
14383*)
14384 lt_save_MAGIC_CMD="$MAGIC_CMD"
14385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14386 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14387 for ac_dir in $ac_dummy; do
14388 IFS="$lt_save_ifs"
14389 test -z "$ac_dir" && ac_dir=.
14390 if test -f $ac_dir/file; then
14391 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14392 if test -n "$file_magic_test_file"; then
14393 case $deplibs_check_method in
14394 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014395 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014396 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14397 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14398 $EGREP "$file_magic_regex" > /dev/null; then
14399 :
14400 else
14401 cat <<EOF 1>&2
14402
14403*** Warning: the command libtool uses to detect shared libraries,
14404*** $file_magic_cmd, produces output that libtool cannot recognize.
14405*** The result is that libtool may fail to recognize shared libraries
14406*** as such. This will affect the creation of libtool libraries that
14407*** depend on shared libraries, but programs linked with such libtool
14408*** libraries will work regardless of this problem. Nevertheless, you
14409*** may want to report the problem to your system manager and/or to
14410*** bug-libtool@gnu.org
14411
14412EOF
14413 fi ;;
14414 esac
14415 fi
14416 break
14417 fi
14418 done
14419 IFS="$lt_save_ifs"
14420 MAGIC_CMD="$lt_save_MAGIC_CMD"
14421 ;;
14422esac
14423fi
14424
14425MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14426if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014427 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14428echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014429else
Reid Spencera773bd52006-08-04 18:18:08 +000014430 { echo "$as_me:$LINENO: result: no" >&5
14431echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014432fi
14433
14434 else
14435 MAGIC_CMD=:
14436 fi
14437fi
14438
14439 fi
14440 ;;
14441esac
14442
Reid Spencer17795972004-11-18 09:47:37 +000014443enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014444enable_win32_dll=no
14445
Reid Spencera773bd52006-08-04 18:18:08 +000014446# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014447if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014448 enableval=$enable_libtool_lock;
14449fi
John Criswell47fdd832003-07-14 16:52:07 +000014450
John Criswell47fdd832003-07-14 16:52:07 +000014451test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14452
John Criswell7a73b802003-06-30 21:59:07 +000014453
Reid Spencera773bd52006-08-04 18:18:08 +000014454# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014455if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014456 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014457else
14458 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014459fi
14460
John Criswell7a73b802003-06-30 21:59:07 +000014461test -z "$pic_mode" && pic_mode=default
14462
John Criswell47fdd832003-07-14 16:52:07 +000014463# Use C for the default configuration in the libtool script
14464tagname=
14465lt_save_CC="$CC"
14466ac_ext=c
14467ac_cpp='$CPP $CPPFLAGS'
14468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14470ac_compiler_gnu=$ac_cv_c_compiler_gnu
14471
14472
14473# Source file extension for C test sources.
14474ac_ext=c
14475
14476# Object file extension for compiled C test sources.
14477objext=o
14478objext=$objext
14479
14480# Code to be used in simple compile tests
14481lt_simple_compile_test_code="int some_variable = 0;\n"
14482
14483# Code to be used in simple link tests
14484lt_simple_link_test_code='int main(){return(0);}\n'
14485
14486
14487# If no C compiler was specified, use CC.
14488LTCC=${LTCC-"$CC"}
14489
Reid Spencera773bd52006-08-04 18:18:08 +000014490# If no C compiler flags were specified, use CFLAGS.
14491LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14492
John Criswell47fdd832003-07-14 16:52:07 +000014493# Allow CC to be a program name with arguments.
14494compiler=$CC
14495
14496
Reid Spencera773bd52006-08-04 18:18:08 +000014497# save warnings/boilerplate of simple test code
14498ac_outfile=conftest.$ac_objext
14499printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14500eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14501_lt_compiler_boilerplate=`cat conftest.err`
14502$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014503
Reid Spencera773bd52006-08-04 18:18:08 +000014504ac_outfile=conftest.$ac_objext
14505printf "$lt_simple_link_test_code" >conftest.$ac_ext
14506eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14507_lt_linker_boilerplate=`cat conftest.err`
14508$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014509
14510
John Criswell47fdd832003-07-14 16:52:07 +000014511
14512lt_prog_compiler_no_builtin_flag=
14513
14514if test "$GCC" = yes; then
14515 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14516
Reid Spencer2706f8c2004-09-19 23:53:36 +000014517
Reid Spencera773bd52006-08-04 18:18:08 +000014518{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14519echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014520if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14522else
14523 lt_cv_prog_compiler_rtti_exceptions=no
14524 ac_outfile=conftest.$ac_objext
14525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14526 lt_compiler_flag="-fno-rtti -fno-exceptions"
14527 # Insert the option either (1) after the last *FLAGS variable, or
14528 # (2) before a word containing "conftest.", or (3) at the end.
14529 # Note that $ac_compile itself does not contain backslashes and begins
14530 # with a dollar sign (not a hyphen), so the echo should work correctly.
14531 # The option is referenced via a variable to avoid confusing sed.
14532 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14535 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000014536 (eval echo "\"\$as_me:14536: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014537 (eval "$lt_compile" 2>conftest.err)
14538 ac_status=$?
14539 cat conftest.err >&5
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000014540 echo "$as_me:14540: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014541 if (exit $ac_status) && test -s "$ac_outfile"; then
14542 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014543 # So say no if there are warnings other than the usual output.
14544 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14546 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014547 lt_cv_prog_compiler_rtti_exceptions=yes
14548 fi
14549 fi
14550 $rm conftest*
14551
14552fi
Reid Spencera773bd52006-08-04 18:18:08 +000014553{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14554echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014555
14556if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14557 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14558else
14559 :
14560fi
14561
14562fi
14563
14564lt_prog_compiler_wl=
14565lt_prog_compiler_pic=
14566lt_prog_compiler_static=
14567
Reid Spencera773bd52006-08-04 18:18:08 +000014568{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14569echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014570
14571 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014572 lt_prog_compiler_wl='-Wl,'
14573 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014574
14575 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014576 aix*)
14577 # All AIX code is PIC.
14578 if test "$host_cpu" = ia64; then
14579 # AIX 5 now supports IA64 processor
14580 lt_prog_compiler_static='-Bstatic'
14581 fi
John Criswell7a73b802003-06-30 21:59:07 +000014582 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014583
John Criswell7a73b802003-06-30 21:59:07 +000014584 amigaos*)
14585 # FIXME: we need at least 68020 code to build shared libraries, but
14586 # adding the `-m68020' flag to GCC prevents building anything better,
14587 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014588 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014589 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014590
14591 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014592 # PIC is the default for these OSes.
14593 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014594
14595 mingw* | pw32* | os2*)
14596 # This hack is so that the source file can tell whether it is being
14597 # built for inclusion in a dll (and should export symbols for example).
14598 lt_prog_compiler_pic='-DDLL_EXPORT'
14599 ;;
14600
John Criswell7a73b802003-06-30 21:59:07 +000014601 darwin* | rhapsody*)
14602 # PIC is the default on this platform
14603 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014604 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014605 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014606
Reid Spencera773bd52006-08-04 18:18:08 +000014607 interix3*)
14608 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14609 # Instead, we relocate shared libraries at runtime.
14610 ;;
14611
John Criswell47fdd832003-07-14 16:52:07 +000014612 msdosdjgpp*)
14613 # Just because we use GCC doesn't mean we suddenly get shared libraries
14614 # on systems that don't support them.
14615 lt_prog_compiler_can_build_shared=no
14616 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014617 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014618
John Criswell7a73b802003-06-30 21:59:07 +000014619 sysv4*MP*)
14620 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014621 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014622 fi
14623 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014624
14625 hpux*)
14626 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14627 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014628 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014629 hppa*64*|ia64*)
14630 # +Z the default
14631 ;;
14632 *)
14633 lt_prog_compiler_pic='-fPIC'
14634 ;;
14635 esac
14636 ;;
14637
John Criswell7a73b802003-06-30 21:59:07 +000014638 *)
John Criswell47fdd832003-07-14 16:52:07 +000014639 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014640 ;;
14641 esac
14642 else
John Criswell47fdd832003-07-14 16:52:07 +000014643 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014644 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014645 aix*)
14646 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014647 if test "$host_cpu" = ia64; then
14648 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014649 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014650 else
John Criswell47fdd832003-07-14 16:52:07 +000014651 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014652 fi
14653 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014654 darwin*)
14655 # PIC is the default on this platform
14656 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014657 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014658 xlc*)
14659 lt_prog_compiler_pic='-qnocommon'
14660 lt_prog_compiler_wl='-Wl,'
14661 ;;
14662 esac
14663 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014664
John Criswell47fdd832003-07-14 16:52:07 +000014665 mingw* | pw32* | os2*)
14666 # This hack is so that the source file can tell whether it is being
14667 # built for inclusion in a dll (and should export symbols for example).
14668 lt_prog_compiler_pic='-DDLL_EXPORT'
14669 ;;
14670
John Criswell7a73b802003-06-30 21:59:07 +000014671 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014672 lt_prog_compiler_wl='-Wl,'
14673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14674 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014675 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014676 hppa*64*|ia64*)
14677 # +Z the default
14678 ;;
14679 *)
14680 lt_prog_compiler_pic='+Z'
14681 ;;
14682 esac
14683 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14684 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014685 ;;
14686
John Criswell47fdd832003-07-14 16:52:07 +000014687 irix5* | irix6* | nonstopux*)
14688 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014689 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014690 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014691 ;;
14692
14693 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014694 lt_prog_compiler_pic='-KPIC'
14695 lt_prog_compiler_static='-Bstatic'
14696 ;;
14697
14698 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014699 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014700 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014701 lt_prog_compiler_wl='-Wl,'
14702 lt_prog_compiler_pic='-KPIC'
14703 lt_prog_compiler_static='-static'
14704 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014705 pgcc* | pgf77* | pgf90* | pgf95*)
14706 # Portland Group compilers (*not* the Pentium gcc compiler,
14707 # which looks to be a dead project)
14708 lt_prog_compiler_wl='-Wl,'
14709 lt_prog_compiler_pic='-fpic'
14710 lt_prog_compiler_static='-Bstatic'
14711 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014712 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014713 lt_prog_compiler_wl='-Wl,'
14714 # All Alpha code is PIC.
14715 lt_prog_compiler_static='-non_shared'
14716 ;;
14717 esac
John Criswell7a73b802003-06-30 21:59:07 +000014718 ;;
14719
14720 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014721 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014722 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014723 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014724 ;;
14725
John Criswell7a73b802003-06-30 21:59:07 +000014726 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014727 lt_prog_compiler_pic='-KPIC'
14728 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014729 case $cc_basename in
14730 f77* | f90* | f95*)
14731 lt_prog_compiler_wl='-Qoption ld ';;
14732 *)
14733 lt_prog_compiler_wl='-Wl,';;
14734 esac
John Criswell7a73b802003-06-30 21:59:07 +000014735 ;;
14736
14737 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014738 lt_prog_compiler_wl='-Qoption ld '
14739 lt_prog_compiler_pic='-PIC'
14740 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014741 ;;
14742
Reid Spencera773bd52006-08-04 18:18:08 +000014743 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014744 lt_prog_compiler_wl='-Wl,'
14745 lt_prog_compiler_pic='-KPIC'
14746 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014747 ;;
14748
14749 sysv4*MP*)
14750 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014751 lt_prog_compiler_pic='-Kconform_pic'
14752 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014753 fi
14754 ;;
14755
Reid Spencera773bd52006-08-04 18:18:08 +000014756 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14757 lt_prog_compiler_wl='-Wl,'
14758 lt_prog_compiler_pic='-KPIC'
14759 lt_prog_compiler_static='-Bstatic'
14760 ;;
14761
14762 unicos*)
14763 lt_prog_compiler_wl='-Wl,'
14764 lt_prog_compiler_can_build_shared=no
14765 ;;
14766
John Criswell47fdd832003-07-14 16:52:07 +000014767 uts4*)
14768 lt_prog_compiler_pic='-pic'
14769 lt_prog_compiler_static='-Bstatic'
14770 ;;
14771
John Criswell7a73b802003-06-30 21:59:07 +000014772 *)
John Criswell47fdd832003-07-14 16:52:07 +000014773 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014774 ;;
14775 esac
14776 fi
14777
Reid Spencera773bd52006-08-04 18:18:08 +000014778{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14779echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014780
John Criswell47fdd832003-07-14 16:52:07 +000014781#
14782# Check to make sure the PIC flag actually works.
14783#
14784if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014785
Reid Spencera773bd52006-08-04 18:18:08 +000014786{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14787echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014788if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014789 echo $ECHO_N "(cached) $ECHO_C" >&6
14790else
John Criswell47fdd832003-07-14 16:52:07 +000014791 lt_prog_compiler_pic_works=no
14792 ac_outfile=conftest.$ac_objext
14793 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14794 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14795 # Insert the option either (1) after the last *FLAGS variable, or
14796 # (2) before a word containing "conftest.", or (3) at the end.
14797 # Note that $ac_compile itself does not contain backslashes and begins
14798 # with a dollar sign (not a hyphen), so the echo should work correctly.
14799 # The option is referenced via a variable to avoid confusing sed.
14800 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14803 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000014804 (eval echo "\"\$as_me:14804: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014805 (eval "$lt_compile" 2>conftest.err)
14806 ac_status=$?
14807 cat conftest.err >&5
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000014808 echo "$as_me:14808: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014809 if (exit $ac_status) && test -s "$ac_outfile"; then
14810 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014811 # So say no if there are warnings other than the usual output.
14812 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14814 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014815 lt_prog_compiler_pic_works=yes
14816 fi
14817 fi
14818 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014819
John Criswell47fdd832003-07-14 16:52:07 +000014820fi
Reid Spencera773bd52006-08-04 18:18:08 +000014821{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14822echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014823
John Criswell47fdd832003-07-14 16:52:07 +000014824if test x"$lt_prog_compiler_pic_works" = xyes; then
14825 case $lt_prog_compiler_pic in
14826 "" | " "*) ;;
14827 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14828 esac
John Criswell7a73b802003-06-30 21:59:07 +000014829else
John Criswell47fdd832003-07-14 16:52:07 +000014830 lt_prog_compiler_pic=
14831 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014832fi
14833
John Criswell7a73b802003-06-30 21:59:07 +000014834fi
Reid Spencera773bd52006-08-04 18:18:08 +000014835case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014836 # For platforms which do not support PIC, -DPIC is meaningless:
14837 *djgpp*)
14838 lt_prog_compiler_pic=
14839 ;;
14840 *)
14841 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14842 ;;
14843esac
John Criswell7a73b802003-06-30 21:59:07 +000014844
Reid Spencera773bd52006-08-04 18:18:08 +000014845#
14846# Check to make sure the static flag actually works.
14847#
14848wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14849{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14850echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14851if test "${lt_prog_compiler_static_works+set}" = set; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14853else
14854 lt_prog_compiler_static_works=no
14855 save_LDFLAGS="$LDFLAGS"
14856 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14857 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14858 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14859 # The linker can only warn and ignore the option if not recognized
14860 # So say no if there are warnings
14861 if test -s conftest.err; then
14862 # Append any errors to the config.log.
14863 cat conftest.err 1>&5
14864 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14866 if diff conftest.exp conftest.er2 >/dev/null; then
14867 lt_prog_compiler_static_works=yes
14868 fi
14869 else
14870 lt_prog_compiler_static_works=yes
14871 fi
14872 fi
14873 $rm conftest*
14874 LDFLAGS="$save_LDFLAGS"
14875
14876fi
14877{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14878echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14879
14880if test x"$lt_prog_compiler_static_works" = xyes; then
14881 :
14882else
14883 lt_prog_compiler_static=
14884fi
14885
14886
14887{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14888echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014889if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014890 echo $ECHO_N "(cached) $ECHO_C" >&6
14891else
John Criswell47fdd832003-07-14 16:52:07 +000014892 lt_cv_prog_compiler_c_o=no
14893 $rm -r conftest 2>/dev/null
14894 mkdir conftest
14895 cd conftest
14896 mkdir out
14897 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014898
John Criswell47fdd832003-07-14 16:52:07 +000014899 lt_compiler_flag="-o out/conftest2.$ac_objext"
14900 # Insert the option either (1) after the last *FLAGS variable, or
14901 # (2) before a word containing "conftest.", or (3) at the end.
14902 # Note that $ac_compile itself does not contain backslashes and begins
14903 # with a dollar sign (not a hyphen), so the echo should work correctly.
14904 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14907 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000014908 (eval echo "\"\$as_me:14908: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014909 (eval "$lt_compile" 2>out/conftest.err)
14910 ac_status=$?
14911 cat out/conftest.err >&5
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000014912 echo "$as_me:14912: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014913 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14914 then
14915 # The compiler can only warn and ignore the option if not recognized
14916 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014917 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14918 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14919 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014920 lt_cv_prog_compiler_c_o=yes
14921 fi
14922 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014923 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014924 $rm conftest*
14925 # SGI C++ compiler will create directory out/ii_files/ for
14926 # template instantiation
14927 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14928 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014929 cd ..
14930 rmdir conftest
14931 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014932
14933fi
Reid Spencera773bd52006-08-04 18:18:08 +000014934{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14935echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014936
John Criswell7a73b802003-06-30 21:59:07 +000014937
John Criswell7a73b802003-06-30 21:59:07 +000014938hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014939if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014940 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014941 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14942echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014943 hard_links=yes
14944 $rm conftest*
14945 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14946 touch conftest.a
14947 ln conftest.a conftest.b 2>&5 || hard_links=no
14948 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014949 { echo "$as_me:$LINENO: result: $hard_links" >&5
14950echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014951 if test "$hard_links" = no; then
14952 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14953echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14954 need_locks=warn
14955 fi
14956else
14957 need_locks=no
14958fi
John Criswell7a73b802003-06-30 21:59:07 +000014959
Reid Spencera773bd52006-08-04 18:18:08 +000014960{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14961echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014962
14963 runpath_var=
14964 allow_undefined_flag=
14965 enable_shared_with_static_runtimes=no
14966 archive_cmds=
14967 archive_expsym_cmds=
14968 old_archive_From_new_cmds=
14969 old_archive_from_expsyms_cmds=
14970 export_dynamic_flag_spec=
14971 whole_archive_flag_spec=
14972 thread_safe_flag_spec=
14973 hardcode_libdir_flag_spec=
14974 hardcode_libdir_flag_spec_ld=
14975 hardcode_libdir_separator=
14976 hardcode_direct=no
14977 hardcode_minus_L=no
14978 hardcode_shlibpath_var=unsupported
14979 link_all_deplibs=unknown
14980 hardcode_automatic=no
14981 module_cmds=
14982 module_expsym_cmds=
14983 always_export_symbols=no
14984 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14985 # include_expsyms should be a list of space-separated symbols to be *always*
14986 # included in the symbol list
14987 include_expsyms=
14988 # exclude_expsyms can be an extended regexp of symbols to exclude
14989 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14990 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14991 # as well as any symbol that contains `d'.
14992 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14993 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14994 # platforms (ab)use it in PIC code, but their linkers get confused if
14995 # the symbol is explicitly referenced. Since portable code cannot
14996 # rely on this symbol name, it's probably fine to never include it in
14997 # preloaded symbol tables.
14998 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014999 # Just being paranoid about ensuring that cc_basename is set.
15000 for cc_temp in $compiler""; do
15001 case $cc_temp in
15002 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15003 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15004 \-*) ;;
15005 *) break;;
15006 esac
15007done
15008cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015009
15010 case $host_os in
15011 cygwin* | mingw* | pw32*)
15012 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15013 # When not using gcc, we currently assume that we are using
15014 # Microsoft Visual C++.
15015 if test "$GCC" != yes; then
15016 with_gnu_ld=no
15017 fi
15018 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015019 interix*)
15020 # we just hope/assume this is gcc and not c89 (= MSVC++)
15021 with_gnu_ld=yes
15022 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015023 openbsd*)
15024 with_gnu_ld=no
15025 ;;
15026 esac
15027
15028 ld_shlibs=yes
15029 if test "$with_gnu_ld" = yes; then
15030 # If archive_cmds runs LD, not CC, wlarc should be empty
15031 wlarc='${wl}'
15032
Reid Spencera773bd52006-08-04 18:18:08 +000015033 # Set some defaults for GNU ld with shared library support. These
15034 # are reset later if shared libraries are not supported. Putting them
15035 # here allows them to be overridden if necessary.
15036 runpath_var=LD_RUN_PATH
15037 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15038 export_dynamic_flag_spec='${wl}--export-dynamic'
15039 # ancient GNU ld didn't support --whole-archive et. al.
15040 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15041 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15042 else
15043 whole_archive_flag_spec=
15044 fi
15045 supports_anon_versioning=no
15046 case `$LD -v 2>/dev/null` in
15047 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15048 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15049 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15050 *\ 2.11.*) ;; # other 2.11 versions
15051 *) supports_anon_versioning=yes ;;
15052 esac
15053
John Criswell47fdd832003-07-14 16:52:07 +000015054 # See if GNU ld supports shared libraries.
15055 case $host_os in
15056 aix3* | aix4* | aix5*)
15057 # On AIX/PPC, the GNU linker is very broken
15058 if test "$host_cpu" != ia64; then
15059 ld_shlibs=no
15060 cat <<EOF 1>&2
15061
15062*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15063*** to be unable to reliably create shared libraries on AIX.
15064*** Therefore, libtool is disabling shared libraries support. If you
15065*** really care for shared libraries, you may want to modify your PATH
15066*** so that a non-GNU linker is found, and then restart.
15067
15068EOF
15069 fi
15070 ;;
15071
15072 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015073 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 +000015074 hardcode_libdir_flag_spec='-L$libdir'
15075 hardcode_minus_L=yes
15076
15077 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15078 # that the semantics of dynamic libraries on AmigaOS, at least up
15079 # to version 4, is to share data among multiple programs linked
15080 # with the same dynamic library. Since this doesn't match the
15081 # behavior of shared libraries on other platforms, we can't use
15082 # them.
15083 ld_shlibs=no
15084 ;;
15085
15086 beos*)
15087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15088 allow_undefined_flag=unsupported
15089 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15090 # support --undefined. This deserves some investigation. FIXME
15091 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15092 else
15093 ld_shlibs=no
15094 fi
15095 ;;
15096
15097 cygwin* | mingw* | pw32*)
15098 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15099 # as there is no search path for DLLs.
15100 hardcode_libdir_flag_spec='-L$libdir'
15101 allow_undefined_flag=unsupported
15102 always_export_symbols=no
15103 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015104 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 +000015105
15106 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015107 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 +000015108 # If the export-symbols file already is a .def file (1st line
15109 # is EXPORTS), use it as is; otherwise, prepend...
15110 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15111 cp $export_symbols $output_objdir/$soname.def;
15112 else
15113 echo EXPORTS > $output_objdir/$soname.def;
15114 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015115 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015116 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15117 else
15118 ld_shlibs=no
15119 fi
15120 ;;
15121
15122 interix3*)
15123 hardcode_direct=no
15124 hardcode_shlibpath_var=no
15125 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15126 export_dynamic_flag_spec='${wl}-E'
15127 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15128 # Instead, shared libraries are loaded at an image base (0x10000000 by
15129 # default) and relocated if they conflict, which is a slow very memory
15130 # consuming and fragmenting process. To avoid this, we pick a random,
15131 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15132 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15133 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15134 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'
15135 ;;
15136
15137 linux*)
15138 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15139 tmp_addflag=
15140 case $cc_basename,$host_cpu in
15141 pgcc*) # Portland Group C compiler
15142 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'
15143 tmp_addflag=' $pic_flag'
15144 ;;
15145 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15146 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'
15147 tmp_addflag=' $pic_flag -Mnomain' ;;
15148 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15149 tmp_addflag=' -i_dynamic' ;;
15150 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15151 tmp_addflag=' -i_dynamic -nofor_main' ;;
15152 ifc* | ifort*) # Intel Fortran compiler
15153 tmp_addflag=' -nofor_main' ;;
15154 esac
15155 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15156
15157 if test $supports_anon_versioning = yes; then
15158 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15159 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15160 $echo "local: *; };" >> $output_objdir/$libname.ver~
15161 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15162 fi
John Criswell47fdd832003-07-14 16:52:07 +000015163 else
15164 ld_shlibs=no
15165 fi
15166 ;;
15167
15168 netbsd*)
15169 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15170 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15171 wlarc=
15172 else
15173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15174 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15175 fi
15176 ;;
15177
Reid Spencera773bd52006-08-04 18:18:08 +000015178 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015179 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15180 ld_shlibs=no
15181 cat <<EOF 1>&2
15182
15183*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15184*** create shared libraries on Solaris systems. Therefore, libtool
15185*** is disabling shared libraries support. We urge you to upgrade GNU
15186*** binutils to release 2.9.1 or newer. Another option is to modify
15187*** your PATH or compiler configuration so that the native linker is
15188*** used, and then restart.
15189
15190EOF
15191 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15194 else
15195 ld_shlibs=no
15196 fi
15197 ;;
15198
Reid Spencera773bd52006-08-04 18:18:08 +000015199 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15200 case `$LD -v 2>&1` in
15201 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15202 ld_shlibs=no
15203 cat <<_LT_EOF 1>&2
15204
15205*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15206*** reliably create shared libraries on SCO systems. Therefore, libtool
15207*** is disabling shared libraries support. We urge you to upgrade GNU
15208*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15209*** your PATH or compiler configuration so that the native linker is
15210*** used, and then restart.
15211
15212_LT_EOF
15213 ;;
15214 *)
15215 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15216 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15218 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15219 else
15220 ld_shlibs=no
15221 fi
15222 ;;
15223 esac
15224 ;;
15225
John Criswell47fdd832003-07-14 16:52:07 +000015226 sunos4*)
15227 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15228 wlarc=
15229 hardcode_direct=yes
15230 hardcode_shlibpath_var=no
15231 ;;
15232
15233 *)
15234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15236 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15237 else
15238 ld_shlibs=no
15239 fi
15240 ;;
15241 esac
15242
Reid Spencera773bd52006-08-04 18:18:08 +000015243 if test "$ld_shlibs" = no; then
15244 runpath_var=
15245 hardcode_libdir_flag_spec=
15246 export_dynamic_flag_spec=
15247 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015248 fi
15249 else
15250 # PORTME fill in a description of your system's linker (not GNU ld)
15251 case $host_os in
15252 aix3*)
15253 allow_undefined_flag=unsupported
15254 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015255 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 +000015256 # Note: this linker hardcodes the directories in LIBPATH if there
15257 # are no directories specified by -L.
15258 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015259 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015260 # Neither direct hardcoding nor static linking is supported with a
15261 # broken collect2.
15262 hardcode_direct=unsupported
15263 fi
15264 ;;
15265
15266 aix4* | aix5*)
15267 if test "$host_cpu" = ia64; then
15268 # On IA64, the linker does run time linking by default, so we don't
15269 # have to do anything special.
15270 aix_use_runtimelinking=no
15271 exp_sym_flag='-Bexport'
15272 no_entry_flag=""
15273 else
15274 # If we're using GNU nm, then we don't want the "-C" option.
15275 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15276 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15277 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'
15278 else
15279 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'
15280 fi
15281 aix_use_runtimelinking=no
15282
15283 # Test if we are trying to use run time linking or normal
15284 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15285 # need to do runtime linking.
15286 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15287 for ld_flag in $LDFLAGS; do
15288 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15289 aix_use_runtimelinking=yes
15290 break
15291 fi
15292 done
Reid Spencera773bd52006-08-04 18:18:08 +000015293 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015294 esac
15295
15296 exp_sym_flag='-bexport'
15297 no_entry_flag='-bnoentry'
15298 fi
15299
15300 # When large executables or shared objects are built, AIX ld can
15301 # have problems creating the table of contents. If linking a library
15302 # or program results in "error TOC overflow" add -mminimal-toc to
15303 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15304 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15305
15306 archive_cmds=''
15307 hardcode_direct=yes
15308 hardcode_libdir_separator=':'
15309 link_all_deplibs=yes
15310
15311 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015312 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015313 # We only want to do this on AIX 4.2 and lower, the check
15314 # below for broken collect2 doesn't work under 4.3+
15315 collect2name=`${CC} -print-prog-name=collect2`
15316 if test -f "$collect2name" && \
15317 strings "$collect2name" | grep resolve_lib_name >/dev/null
15318 then
15319 # We have reworked collect2
15320 hardcode_direct=yes
15321 else
15322 # We have old collect2
15323 hardcode_direct=unsupported
15324 # It fails to find uninstalled libraries when the uninstalled
15325 # path is not listed in the libpath. Setting hardcode_minus_L
15326 # to unsupported forces relinking
15327 hardcode_minus_L=yes
15328 hardcode_libdir_flag_spec='-L$libdir'
15329 hardcode_libdir_separator=
15330 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015331 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015332 esac
15333 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015334 if test "$aix_use_runtimelinking" = yes; then
15335 shared_flag="$shared_flag "'${wl}-G'
15336 fi
John Criswell47fdd832003-07-14 16:52:07 +000015337 else
15338 # not using gcc
15339 if test "$host_cpu" = ia64; then
15340 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15341 # chokes on -Wl,-G. The following line is correct:
15342 shared_flag='-G'
15343 else
Reid Spencera773bd52006-08-04 18:18:08 +000015344 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015345 shared_flag='${wl}-G'
15346 else
15347 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015348 fi
John Criswell47fdd832003-07-14 16:52:07 +000015349 fi
15350 fi
15351
15352 # It seems that -bexpall does not export symbols beginning with
15353 # underscore (_), so it is better to generate a list of symbols to export.
15354 always_export_symbols=yes
15355 if test "$aix_use_runtimelinking" = yes; then
15356 # Warning - without using the other runtime loading flags (-brtl),
15357 # -berok will link without error, but may produce a broken library.
15358 allow_undefined_flag='-berok'
15359 # Determine the default libpath from the value encoded in an empty executable.
15360 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015361/* confdefs.h. */
15362_ACEOF
15363cat confdefs.h >>conftest.$ac_ext
15364cat >>conftest.$ac_ext <<_ACEOF
15365/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015366
John Criswell7a73b802003-06-30 21:59:07 +000015367int
15368main ()
15369{
John Criswell47fdd832003-07-14 16:52:07 +000015370
John Criswell7a73b802003-06-30 21:59:07 +000015371 ;
15372 return 0;
15373}
15374_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015375rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015376if { (ac_try="$ac_link"
15377case "(($ac_try" in
15378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379 *) ac_try_echo=$ac_try;;
15380esac
15381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015383 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015384 grep -v '^ *+' conftest.er1 >conftest.err
15385 rm -f conftest.er1
15386 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015388 (exit $ac_status); } &&
15389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15390 { (case "(($ac_try" in
15391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392 *) ac_try_echo=$ac_try;;
15393esac
15394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395 (eval "$ac_try") 2>&5
15396 ac_status=$?
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; } &&
15399 { ac_try='test -s conftest$ac_exeext'
15400 { (case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15403esac
15404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_try") 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015409
John Criswell47fdd832003-07-14 16:52:07 +000015410aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15411}'`
15412# Check for a 64-bit object if we didn't find anything.
15413if 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; }
15414}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015415else
15416 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015417sed 's/^/| /' conftest.$ac_ext >&5
15418
Reid Spencera773bd52006-08-04 18:18:08 +000015419
John Criswell7a73b802003-06-30 21:59:07 +000015420fi
Reid Spencera773bd52006-08-04 18:18:08 +000015421
Bill Wendlingebcceee2009-04-18 11:20:33 +000015422rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015423 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015424if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015425
John Criswell47fdd832003-07-14 16:52:07 +000015426 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015427 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 +000015428 else
15429 if test "$host_cpu" = ia64; then
15430 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15431 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015432 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 +000015433 else
15434 # Determine the default libpath from the value encoded in an empty executable.
15435 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015436/* confdefs.h. */
15437_ACEOF
15438cat confdefs.h >>conftest.$ac_ext
15439cat >>conftest.$ac_ext <<_ACEOF
15440/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015441
John Criswell47fdd832003-07-14 16:52:07 +000015442int
15443main ()
15444{
John Criswell7a73b802003-06-30 21:59:07 +000015445
John Criswell47fdd832003-07-14 16:52:07 +000015446 ;
15447 return 0;
15448}
15449_ACEOF
15450rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015451if { (ac_try="$ac_link"
15452case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15455esac
15456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015458 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015459 grep -v '^ *+' conftest.er1 >conftest.err
15460 rm -f conftest.er1
15461 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015463 (exit $ac_status); } &&
15464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15465 { (case "(($ac_try" in
15466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467 *) ac_try_echo=$ac_try;;
15468esac
15469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15470 (eval "$ac_try") 2>&5
15471 ac_status=$?
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; } &&
15474 { ac_try='test -s conftest$ac_exeext'
15475 { (case "(($ac_try" in
15476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477 *) ac_try_echo=$ac_try;;
15478esac
15479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15480 (eval "$ac_try") 2>&5
15481 ac_status=$?
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015484
John Criswell47fdd832003-07-14 16:52:07 +000015485aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15486}'`
15487# Check for a 64-bit object if we didn't find anything.
15488if 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; }
15489}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015490else
John Criswell47fdd832003-07-14 16:52:07 +000015491 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015492sed 's/^/| /' conftest.$ac_ext >&5
15493
Reid Spencera773bd52006-08-04 18:18:08 +000015494
John Criswell47fdd832003-07-14 16:52:07 +000015495fi
Reid Spencera773bd52006-08-04 18:18:08 +000015496
Bill Wendlingebcceee2009-04-18 11:20:33 +000015497rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015498 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015499if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015500
John Criswell47fdd832003-07-14 16:52:07 +000015501 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15502 # Warning - without using the other run time loading flags,
15503 # -berok will link without error, but may produce a broken library.
15504 no_undefined_flag=' ${wl}-bernotok'
15505 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015506 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015507 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015508 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015509 # This is similar to how AIX traditionally builds its shared libraries.
15510 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 +000015511 fi
15512 fi
John Criswell7a73b802003-06-30 21:59:07 +000015513 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015514
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 # see comment about different semantics on the GNU ld section
15520 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015521 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015522
Reid Spencer2706f8c2004-09-19 23:53:36 +000015523 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015524 export_dynamic_flag_spec=-rdynamic
15525 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015526
John Criswell47fdd832003-07-14 16:52:07 +000015527 cygwin* | mingw* | pw32*)
15528 # When not using gcc, we currently assume that we are using
15529 # Microsoft Visual C++.
15530 # hardcode_libdir_flag_spec is actually meaningless, as there is
15531 # no search path for DLLs.
15532 hardcode_libdir_flag_spec=' '
15533 allow_undefined_flag=unsupported
15534 # Tell ltmain to make .lib files, not .a files.
15535 libext=lib
15536 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015537 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015538 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015539 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015540 # The linker will automatically build a .lib file if we build a DLL.
15541 old_archive_From_new_cmds='true'
15542 # FIXME: Should let the user specify the lib program.
15543 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15544 fix_srcfile_path='`cygpath -w "$srcfile"`'
15545 enable_shared_with_static_runtimes=yes
15546 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015547
John Criswell47fdd832003-07-14 16:52:07 +000015548 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015549 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015550 rhapsody* | darwin1.[012])
15551 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15552 ;;
15553 *) # Darwin 1.3 on
15554 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15555 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15556 else
15557 case ${MACOSX_DEPLOYMENT_TARGET} in
15558 10.[012])
15559 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15560 ;;
15561 10.*)
15562 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15563 ;;
15564 esac
15565 fi
15566 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015567 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015568 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015569 hardcode_direct=no
15570 hardcode_automatic=yes
15571 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015572 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015573 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015574 if test "$GCC" = yes ; then
15575 output_verbose_link_cmd='echo'
15576 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15577 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015578 # 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 +000015579 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}'
15580 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 +000015581 else
Reid Spencera773bd52006-08-04 18:18:08 +000015582 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015583 xlc*)
15584 output_verbose_link_cmd='echo'
15585 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15586 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015587 # 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 +000015588 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}'
15589 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 +000015590 ;;
15591 *)
15592 ld_shlibs=no
15593 ;;
15594 esac
John Criswell7a73b802003-06-30 21:59:07 +000015595 fi
John Criswell47fdd832003-07-14 16:52:07 +000015596 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015597
John Criswell47fdd832003-07-14 16:52:07 +000015598 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015600 hardcode_libdir_flag_spec='-L$libdir'
15601 hardcode_shlibpath_var=no
15602 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015603
John Criswell47fdd832003-07-14 16:52:07 +000015604 freebsd1*)
15605 ld_shlibs=no
15606 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015607
John Criswell47fdd832003-07-14 16:52:07 +000015608 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15609 # support. Future versions do this automatically, but an explicit c++rt0.o
15610 # does not break anything, and helps significantly (at the cost of a little
15611 # extra space).
15612 freebsd2.2*)
15613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15614 hardcode_libdir_flag_spec='-R$libdir'
15615 hardcode_direct=yes
15616 hardcode_shlibpath_var=no
15617 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015618
John Criswell47fdd832003-07-14 16:52:07 +000015619 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15620 freebsd2*)
15621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15622 hardcode_direct=yes
15623 hardcode_minus_L=yes
15624 hardcode_shlibpath_var=no
15625 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015626
John Criswell47fdd832003-07-14 16:52:07 +000015627 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015628 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015629 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15630 hardcode_libdir_flag_spec='-R$libdir'
15631 hardcode_direct=yes
15632 hardcode_shlibpath_var=no
15633 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015634
John Criswell47fdd832003-07-14 16:52:07 +000015635 hpux9*)
15636 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015637 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 +000015638 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015639 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 +000015640 fi
15641 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15642 hardcode_libdir_separator=:
15643 hardcode_direct=yes
15644
15645 # hardcode_minus_L: Not really in the search PATH,
15646 # but as the default location of the library.
15647 hardcode_minus_L=yes
15648 export_dynamic_flag_spec='${wl}-E'
15649 ;;
15650
Reid Spencera773bd52006-08-04 18:18:08 +000015651 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015652 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015653 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15654 else
15655 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15656 fi
15657 if test "$with_gnu_ld" = no; then
15658 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15659 hardcode_libdir_separator=:
15660
15661 hardcode_direct=yes
15662 export_dynamic_flag_spec='${wl}-E'
15663
15664 # hardcode_minus_L: Not really in the search PATH,
15665 # but as the default location of the library.
15666 hardcode_minus_L=yes
15667 fi
15668 ;;
15669
15670 hpux11*)
15671 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15672 case $host_cpu in
15673 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015674 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15675 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015676 ia64*)
15677 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15678 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015679 *)
15680 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15681 ;;
15682 esac
15683 else
Reid Spencera773bd52006-08-04 18:18:08 +000015684 case $host_cpu in
15685 hppa*64*)
15686 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15687 ;;
15688 ia64*)
15689 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015690 ;;
15691 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015692 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 +000015693 ;;
15694 esac
15695 fi
15696 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015697 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15698 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015699
Reid Spencera773bd52006-08-04 18:18:08 +000015700 case $host_cpu in
15701 hppa*64*|ia64*)
15702 hardcode_libdir_flag_spec_ld='+b $libdir'
15703 hardcode_direct=no
15704 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015705 ;;
15706 *)
John Criswell47fdd832003-07-14 16:52:07 +000015707 hardcode_direct=yes
15708 export_dynamic_flag_spec='${wl}-E'
15709
15710 # hardcode_minus_L: Not really in the search PATH,
15711 # but as the default location of the library.
15712 hardcode_minus_L=yes
15713 ;;
15714 esac
15715 fi
15716 ;;
15717
15718 irix5* | irix6* | nonstopux*)
15719 if test "$GCC" = yes; then
15720 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'
15721 else
15722 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'
15723 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15724 fi
15725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15726 hardcode_libdir_separator=:
15727 link_all_deplibs=yes
15728 ;;
15729
15730 netbsd*)
15731 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15733 else
15734 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15735 fi
15736 hardcode_libdir_flag_spec='-R$libdir'
15737 hardcode_direct=yes
15738 hardcode_shlibpath_var=no
15739 ;;
15740
15741 newsos6)
15742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15743 hardcode_direct=yes
15744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15745 hardcode_libdir_separator=:
15746 hardcode_shlibpath_var=no
15747 ;;
15748
15749 openbsd*)
15750 hardcode_direct=yes
15751 hardcode_shlibpath_var=no
15752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15753 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015754 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 +000015755 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15756 export_dynamic_flag_spec='${wl}-E'
15757 else
15758 case $host_os in
15759 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15760 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15761 hardcode_libdir_flag_spec='-R$libdir'
15762 ;;
15763 *)
15764 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15765 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15766 ;;
15767 esac
15768 fi
15769 ;;
15770
15771 os2*)
15772 hardcode_libdir_flag_spec='-L$libdir'
15773 hardcode_minus_L=yes
15774 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015775 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 +000015776 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15777 ;;
15778
15779 osf3*)
15780 if test "$GCC" = yes; then
15781 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15782 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'
15783 else
15784 allow_undefined_flag=' -expect_unresolved \*'
15785 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'
15786 fi
15787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15788 hardcode_libdir_separator=:
15789 ;;
15790
15791 osf4* | osf5*) # as osf3* with the addition of -msym flag
15792 if test "$GCC" = yes; then
15793 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15794 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'
15795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15796 else
15797 allow_undefined_flag=' -expect_unresolved \*'
15798 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 +000015799 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 +000015800 $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 +000015801
John Criswell47fdd832003-07-14 16:52:07 +000015802 # Both c and cxx compiler support -rpath directly
15803 hardcode_libdir_flag_spec='-rpath $libdir'
15804 fi
15805 hardcode_libdir_separator=:
15806 ;;
15807
John Criswell47fdd832003-07-14 16:52:07 +000015808 solaris*)
15809 no_undefined_flag=' -z text'
15810 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015811 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015812 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015813 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15814 $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 +000015815 else
Reid Spencera773bd52006-08-04 18:18:08 +000015816 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015817 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015818 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15819 $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 +000015820 fi
15821 hardcode_libdir_flag_spec='-R$libdir'
15822 hardcode_shlibpath_var=no
15823 case $host_os in
15824 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015825 *)
15826 # The compiler driver will combine linker options so we
15827 # cannot just pass the convience library names through
15828 # without $wl, iff we do not link with $LD.
15829 # Luckily, gcc supports the same syntax we need for Sun Studio.
15830 # Supported since Solaris 2.6 (maybe 2.5.1?)
15831 case $wlarc in
15832 '')
15833 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15834 *)
15835 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' ;;
15836 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015837 esac
15838 link_all_deplibs=yes
15839 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015840
John Criswell47fdd832003-07-14 16:52:07 +000015841 sunos4*)
15842 if test "x$host_vendor" = xsequent; then
15843 # Use $CC to link under sequent, because it throws in some extra .o
15844 # files that make .init and .fini sections work.
15845 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15846 else
15847 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15848 fi
15849 hardcode_libdir_flag_spec='-L$libdir'
15850 hardcode_direct=yes
15851 hardcode_minus_L=yes
15852 hardcode_shlibpath_var=no
15853 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015854
John Criswell47fdd832003-07-14 16:52:07 +000015855 sysv4)
15856 case $host_vendor in
15857 sni)
15858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15859 hardcode_direct=yes # is this really true???
15860 ;;
15861 siemens)
15862 ## LD is ld it makes a PLAMLIB
15863 ## CC just makes a GrossModule.
15864 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15865 reload_cmds='$CC -r -o $output$reload_objs'
15866 hardcode_direct=no
15867 ;;
15868 motorola)
15869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15870 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15871 ;;
15872 esac
15873 runpath_var='LD_RUN_PATH'
15874 hardcode_shlibpath_var=no
15875 ;;
15876
15877 sysv4.3*)
15878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15879 hardcode_shlibpath_var=no
15880 export_dynamic_flag_spec='-Bexport'
15881 ;;
15882
15883 sysv4*MP*)
15884 if test -d /usr/nec; then
15885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15886 hardcode_shlibpath_var=no
15887 runpath_var=LD_RUN_PATH
15888 hardcode_runpath_var=yes
15889 ld_shlibs=yes
15890 fi
15891 ;;
15892
Reid Spencera773bd52006-08-04 18:18:08 +000015893 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15894 no_undefined_flag='${wl}-z,text'
15895 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015896 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015897 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015898
John Criswell47fdd832003-07-14 16:52:07 +000015899 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015900 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15901 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 +000015902 else
Reid Spencera773bd52006-08-04 18:18:08 +000015903 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15904 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 +000015905 fi
John Criswell47fdd832003-07-14 16:52:07 +000015906 ;;
15907
Reid Spencera773bd52006-08-04 18:18:08 +000015908 sysv5* | sco3.2v5* | sco5v6*)
15909 # Note: We can NOT use -z defs as we might desire, because we do not
15910 # link with -lc, and that would cause any symbols used from libc to
15911 # always be unresolved, which means just about no library would
15912 # ever link correctly. If we're not using GNU ld we use -z text
15913 # though, which does catch some bad symbols but isn't as heavy-handed
15914 # as -z defs.
15915 no_undefined_flag='${wl}-z,text'
15916 allow_undefined_flag='${wl}-z,nodefs'
15917 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015918 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015919 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15920 hardcode_libdir_separator=':'
15921 link_all_deplibs=yes
15922 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015923 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015924
15925 if test "$GCC" = yes; then
15926 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15927 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15928 else
15929 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15930 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15931 fi
John Criswell47fdd832003-07-14 16:52:07 +000015932 ;;
15933
15934 uts4*)
15935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15936 hardcode_libdir_flag_spec='-L$libdir'
15937 hardcode_shlibpath_var=no
15938 ;;
15939
15940 *)
15941 ld_shlibs=no
15942 ;;
15943 esac
15944 fi
15945
Reid Spencera773bd52006-08-04 18:18:08 +000015946{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15947echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015948test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015949
John Criswell47fdd832003-07-14 16:52:07 +000015950#
15951# Do we need to explicitly link libc?
15952#
15953case "x$archive_cmds_need_lc" in
15954x|xyes)
15955 # Assume -lc should be added
15956 archive_cmds_need_lc=yes
15957
15958 if test "$enable_shared" = yes && test "$GCC" = yes; then
15959 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015960 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015961 # FIXME: we may have to deal with multi-command sequences.
15962 ;;
15963 '$CC '*)
15964 # Test whether the compiler implicitly links with -lc since on some
15965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15966 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015967 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15968echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015969 $rm conftest*
15970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15971
15972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15973 (eval $ac_compile) 2>&5
15974 ac_status=$?
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } 2>conftest.err; then
15977 soname=conftest
15978 lib=conftest
15979 libobjs=conftest.$ac_objext
15980 deplibs=
15981 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015982 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015983 compiler_flags=-v
15984 linker_flags=-v
15985 verstring=
15986 output_objdir=.
15987 libname=conftest
15988 lt_save_allow_undefined_flag=$allow_undefined_flag
15989 allow_undefined_flag=
15990 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15991 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }
15995 then
15996 archive_cmds_need_lc=no
15997 else
15998 archive_cmds_need_lc=yes
15999 fi
16000 allow_undefined_flag=$lt_save_allow_undefined_flag
16001 else
16002 cat conftest.err 1>&5
16003 fi
16004 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016005 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16006echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016007 ;;
16008 esac
16009 fi
16010 ;;
16011esac
16012
Reid Spencera773bd52006-08-04 18:18:08 +000016013{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16014echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016015library_names_spec=
16016libname_spec='lib$name'
16017soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016018shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016019postinstall_cmds=
16020postuninstall_cmds=
16021finish_cmds=
16022finish_eval=
16023shlibpath_var=
16024shlibpath_overrides_runpath=unknown
16025version_type=none
16026dynamic_linker="$host_os ld.so"
16027sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016028if test "$GCC" = yes; then
16029 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16030 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16031 # if the path contains ";" then we assume it to be the separator
16032 # otherwise default to the standard path separator (i.e. ":") - it is
16033 # assumed that no part of a normal pathname contains ";" but that should
16034 # okay in the real world where ";" in dirpaths is itself problematic.
16035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16036 else
16037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16038 fi
16039else
16040 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16041fi
16042need_lib_prefix=unknown
16043hardcode_into_libs=no
16044
16045# when you set need_version to no, make sure it does not cause -set_version
16046# flags to be left without arguments
16047need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016048
16049case $host_os in
16050aix3*)
16051 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016053 shlibpath_var=LIBPATH
16054
John Criswell47fdd832003-07-14 16:52:07 +000016055 # AIX 3 has no versioning support, so we append a major version to the name.
16056 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016057 ;;
16058
16059aix4* | aix5*)
16060 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016061 need_lib_prefix=no
16062 need_version=no
16063 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016064 if test "$host_cpu" = ia64; then
16065 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016066 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016067 shlibpath_var=LD_LIBRARY_PATH
16068 else
16069 # With GCC up to 2.95.x, collect2 would create an import file
16070 # for dependence libraries. The import file would start with
16071 # the line `#! .'. This would cause the generated library to
16072 # depend on `.', always an invalid library. This was fixed in
16073 # development snapshots of GCC prior to 3.0.
16074 case $host_os in
16075 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016076 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16077 echo ' yes '
16078 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16079 :
16080 else
16081 can_build_shared=no
16082 fi
16083 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016084 esac
John Criswell47fdd832003-07-14 16:52:07 +000016085 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16086 # soname into executable. Probably we can add versioning support to
16087 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016088 if test "$aix_use_runtimelinking" = yes; then
16089 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16090 # instead of lib<name>.a to let people know that these are not
16091 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016093 else
16094 # We preserve .a as extension for shared libraries through AIX4.2
16095 # and later when we are not doing run time linking.
16096 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016097 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016098 fi
16099 shlibpath_var=LIBPATH
16100 fi
16101 ;;
16102
16103amigaos*)
16104 library_names_spec='$libname.ixlibrary $libname.a'
16105 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016106 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 +000016107 ;;
16108
16109beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016110 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016111 dynamic_linker="$host_os ld.so"
16112 shlibpath_var=LIBRARY_PATH
16113 ;;
16114
Reid Spencer2706f8c2004-09-19 23:53:36 +000016115bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016116 version_type=linux
16117 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016120 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16121 shlibpath_var=LD_LIBRARY_PATH
16122 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16123 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016124 # the default ld.so.conf also contains /usr/contrib/lib and
16125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16126 # libtool to hard-code these into programs
16127 ;;
16128
16129cygwin* | mingw* | pw32*)
16130 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016131 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016132 need_version=no
16133 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016134
John Criswell7a73b802003-06-30 21:59:07 +000016135 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016136 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016137 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016139 postinstall_cmds='base_file=`basename \${file}`~
16140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16141 dldir=$destdir/`dirname \$dlpath`~
16142 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016143 $install_prog $dir/$dlname \$dldir/$dlname~
16144 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16146 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016147 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016148 shlibpath_overrides_runpath=yes
16149
16150 case $host_os in
16151 cygwin*)
16152 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16153 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 +000016154 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016155 ;;
16156 mingw*)
16157 # MinGW DLLs use traditional 'lib' prefix
16158 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16159 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16160 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16161 # It is most probably a Windows format PATH printed by
16162 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16163 # path with ; separators, and with drive letters. We can handle the
16164 # drive letters (cygwin fileutils understands them), so leave them,
16165 # especially as we might pass files found there to a mingw objdump,
16166 # which wouldn't understand a cygwinified path. Ahh.
16167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16168 else
16169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16170 fi
16171 ;;
16172 pw32*)
16173 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016174 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 +000016175 ;;
16176 esac
John Criswell7a73b802003-06-30 21:59:07 +000016177 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016178
John Criswell7a73b802003-06-30 21:59:07 +000016179 *)
John Criswell47fdd832003-07-14 16:52:07 +000016180 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016181 ;;
16182 esac
16183 dynamic_linker='Win32 ld.exe'
16184 # FIXME: first we should search . and the directory the executable is in
16185 shlibpath_var=PATH
16186 ;;
16187
16188darwin* | rhapsody*)
16189 dynamic_linker="$host_os dyld"
16190 version_type=darwin
16191 need_lib_prefix=no
16192 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016193 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016194 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016195 shlibpath_overrides_runpath=yes
16196 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016197 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016198 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016199 if test "$GCC" = yes; then
16200 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"`
16201 else
16202 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016203 fi
16204 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16205 ;;
16206
16207dgux*)
16208 version_type=linux
16209 need_lib_prefix=no
16210 need_version=no
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16212 soname_spec='${libname}${release}${shared_ext}$major'
16213 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016214 ;;
16215
16216freebsd1*)
16217 dynamic_linker=no
16218 ;;
16219
Reid Spencer2706f8c2004-09-19 23:53:36 +000016220kfreebsd*-gnu)
16221 version_type=linux
16222 need_lib_prefix=no
16223 need_version=no
16224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16225 soname_spec='${libname}${release}${shared_ext}$major'
16226 shlibpath_var=LD_LIBRARY_PATH
16227 shlibpath_overrides_runpath=no
16228 hardcode_into_libs=yes
16229 dynamic_linker='GNU ld.so'
16230 ;;
16231
Reid Spencera773bd52006-08-04 18:18:08 +000016232freebsd* | dragonfly*)
16233 # DragonFly does not have aout. When/if they implement a new
16234 # versioning mechanism, adjust this.
16235 if test -x /usr/bin/objformat; then
16236 objformat=`/usr/bin/objformat`
16237 else
16238 case $host_os in
16239 freebsd[123]*) objformat=aout ;;
16240 *) objformat=elf ;;
16241 esac
16242 fi
John Criswell7a73b802003-06-30 21:59:07 +000016243 version_type=freebsd-$objformat
16244 case $version_type in
16245 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016247 need_version=no
16248 need_lib_prefix=no
16249 ;;
16250 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016251 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016252 need_version=yes
16253 ;;
16254 esac
16255 shlibpath_var=LD_LIBRARY_PATH
16256 case $host_os in
16257 freebsd2*)
16258 shlibpath_overrides_runpath=yes
16259 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016260 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016261 shlibpath_overrides_runpath=yes
16262 hardcode_into_libs=yes
16263 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016264 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16265 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016266 shlibpath_overrides_runpath=no
16267 hardcode_into_libs=yes
16268 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016269 freebsd*) # from 4.6 on
16270 shlibpath_overrides_runpath=yes
16271 hardcode_into_libs=yes
16272 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016273 esac
16274 ;;
16275
16276gnu*)
16277 version_type=linux
16278 need_lib_prefix=no
16279 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16281 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016282 shlibpath_var=LD_LIBRARY_PATH
16283 hardcode_into_libs=yes
16284 ;;
16285
16286hpux9* | hpux10* | hpux11*)
16287 # Give a soname corresponding to the major version so that dld.sl refuses to
16288 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016289 version_type=sunos
16290 need_lib_prefix=no
16291 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016292 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016293 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016294 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016295 hardcode_into_libs=yes
16296 dynamic_linker="$host_os dld.so"
16297 shlibpath_var=LD_LIBRARY_PATH
16298 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16300 soname_spec='${libname}${release}${shared_ext}$major'
16301 if test "X$HPUX_IA64_MODE" = X32; then
16302 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16303 else
16304 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16305 fi
16306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16307 ;;
16308 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016309 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016310 hardcode_into_libs=yes
16311 dynamic_linker="$host_os dld.sl"
16312 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16315 soname_spec='${libname}${release}${shared_ext}$major'
16316 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16317 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16318 ;;
16319 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016320 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016321 dynamic_linker="$host_os dld.sl"
16322 shlibpath_var=SHLIB_PATH
16323 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16325 soname_spec='${libname}${release}${shared_ext}$major'
16326 ;;
16327 esac
John Criswell7a73b802003-06-30 21:59:07 +000016328 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16329 postinstall_cmds='chmod 555 $lib'
16330 ;;
16331
Reid Spencera773bd52006-08-04 18:18:08 +000016332interix3*)
16333 version_type=linux
16334 need_lib_prefix=no
16335 need_version=no
16336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16337 soname_spec='${libname}${release}${shared_ext}$major'
16338 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16339 shlibpath_var=LD_LIBRARY_PATH
16340 shlibpath_overrides_runpath=no
16341 hardcode_into_libs=yes
16342 ;;
16343
John Criswell47fdd832003-07-14 16:52:07 +000016344irix5* | irix6* | nonstopux*)
16345 case $host_os in
16346 nonstopux*) version_type=nonstopux ;;
16347 *)
16348 if test "$lt_cv_prog_gnu_ld" = yes; then
16349 version_type=linux
16350 else
16351 version_type=irix
16352 fi ;;
16353 esac
John Criswell7a73b802003-06-30 21:59:07 +000016354 need_lib_prefix=no
16355 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016356 soname_spec='${libname}${release}${shared_ext}$major'
16357 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 +000016358 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016359 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016360 libsuff= shlibsuff=
16361 ;;
16362 *)
16363 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016364 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16365 libsuff= shlibsuff= libmagic=32-bit;;
16366 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16367 libsuff=32 shlibsuff=N32 libmagic=N32;;
16368 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16369 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016370 *) libsuff= shlibsuff= libmagic=never-match;;
16371 esac
16372 ;;
16373 esac
16374 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16375 shlibpath_overrides_runpath=no
16376 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16377 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016378 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016379 ;;
16380
16381# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016382linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016383 dynamic_linker=no
16384 ;;
16385
16386# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016387linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016388 version_type=linux
16389 need_lib_prefix=no
16390 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16394 shlibpath_var=LD_LIBRARY_PATH
16395 shlibpath_overrides_runpath=no
16396 # This implies no fast_install, which is unacceptable.
16397 # Some rework will be needed to allow for fast_install
16398 # before this can be enabled.
16399 hardcode_into_libs=yes
16400
Reid Spencer2706f8c2004-09-19 23:53:36 +000016401 # Append ld.so.conf contents to the search path
16402 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016403 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 +000016404 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16405 fi
16406
John Criswell7a73b802003-06-30 21:59:07 +000016407 # We used to test for /lib/ld.so.1 and disable shared libraries on
16408 # powerpc, because MkLinux only supported shared libraries with the
16409 # GNU dynamic linker. Since this was broken with cross compilers,
16410 # most powerpc-linux boxes support dynamic linking these days and
16411 # people can always --disable-shared, the test was removed, and we
16412 # assume the GNU/Linux dynamic linker is in use.
16413 dynamic_linker='GNU/Linux ld.so'
16414 ;;
16415
Reid Spencer2706f8c2004-09-19 23:53:36 +000016416knetbsd*-gnu)
16417 version_type=linux
16418 need_lib_prefix=no
16419 need_version=no
16420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16421 soname_spec='${libname}${release}${shared_ext}$major'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 shlibpath_overrides_runpath=no
16424 hardcode_into_libs=yes
16425 dynamic_linker='GNU ld.so'
16426 ;;
16427
John Criswell7a73b802003-06-30 21:59:07 +000016428netbsd*)
16429 version_type=sunos
16430 need_lib_prefix=no
16431 need_version=no
16432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16435 dynamic_linker='NetBSD (a.out) ld.so'
16436 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016438 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016439 dynamic_linker='NetBSD ld.elf_so'
16440 fi
16441 shlibpath_var=LD_LIBRARY_PATH
16442 shlibpath_overrides_runpath=yes
16443 hardcode_into_libs=yes
16444 ;;
16445
16446newsos6)
16447 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449 shlibpath_var=LD_LIBRARY_PATH
16450 shlibpath_overrides_runpath=yes
16451 ;;
16452
Reid Spencer2706f8c2004-09-19 23:53:36 +000016453nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016454 version_type=linux
16455 need_lib_prefix=no
16456 need_version=no
16457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16458 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016459 shlibpath_var=LD_LIBRARY_PATH
16460 shlibpath_overrides_runpath=yes
16461 ;;
16462
16463openbsd*)
16464 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016465 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016466 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016467 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16468 case $host_os in
16469 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16470 *) need_version=no ;;
16471 esac
John Criswell47fdd832003-07-14 16:52:07 +000016472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16474 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016475 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 +000016476 case $host_os in
16477 openbsd2.[89] | openbsd2.[89].*)
16478 shlibpath_overrides_runpath=no
16479 ;;
16480 *)
16481 shlibpath_overrides_runpath=yes
16482 ;;
16483 esac
John Criswell7a73b802003-06-30 21:59:07 +000016484 else
16485 shlibpath_overrides_runpath=yes
16486 fi
John Criswell7a73b802003-06-30 21:59:07 +000016487 ;;
16488
16489os2*)
16490 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016491 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016492 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016493 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016494 dynamic_linker='OS/2 ld.exe'
16495 shlibpath_var=LIBPATH
16496 ;;
16497
16498osf3* | osf4* | osf5*)
16499 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016500 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016501 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016502 soname_spec='${libname}${release}${shared_ext}$major'
16503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016504 shlibpath_var=LD_LIBRARY_PATH
16505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16506 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16507 ;;
16508
John Criswell7a73b802003-06-30 21:59:07 +000016509solaris*)
16510 version_type=linux
16511 need_lib_prefix=no
16512 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16514 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016515 shlibpath_var=LD_LIBRARY_PATH
16516 shlibpath_overrides_runpath=yes
16517 hardcode_into_libs=yes
16518 # ldd complains unless libraries are executable
16519 postinstall_cmds='chmod +x $lib'
16520 ;;
16521
16522sunos4*)
16523 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016525 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16526 shlibpath_var=LD_LIBRARY_PATH
16527 shlibpath_overrides_runpath=yes
16528 if test "$with_gnu_ld" = yes; then
16529 need_lib_prefix=no
16530 fi
16531 need_version=yes
16532 ;;
16533
Reid Spencera773bd52006-08-04 18:18:08 +000016534sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016535 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16537 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016538 shlibpath_var=LD_LIBRARY_PATH
16539 case $host_vendor in
16540 sni)
16541 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016542 need_lib_prefix=no
16543 export_dynamic_flag_spec='${wl}-Blargedynsym'
16544 runpath_var=LD_RUN_PATH
16545 ;;
16546 siemens)
16547 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016548 ;;
16549 motorola)
16550 need_lib_prefix=no
16551 need_version=no
16552 shlibpath_overrides_runpath=no
16553 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16554 ;;
16555 esac
16556 ;;
16557
John Criswell7a73b802003-06-30 21:59:07 +000016558sysv4*MP*)
16559 if test -d /usr/nec ;then
16560 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016561 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16562 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016563 shlibpath_var=LD_LIBRARY_PATH
16564 fi
16565 ;;
16566
Reid Spencera773bd52006-08-04 18:18:08 +000016567sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16568 version_type=freebsd-elf
16569 need_lib_prefix=no
16570 need_version=no
16571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16572 soname_spec='${libname}${release}${shared_ext}$major'
16573 shlibpath_var=LD_LIBRARY_PATH
16574 hardcode_into_libs=yes
16575 if test "$with_gnu_ld" = yes; then
16576 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16577 shlibpath_overrides_runpath=no
16578 else
16579 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16580 shlibpath_overrides_runpath=yes
16581 case $host_os in
16582 sco3.2v5*)
16583 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16584 ;;
16585 esac
16586 fi
16587 sys_lib_dlsearch_path_spec='/usr/lib'
16588 ;;
16589
John Criswell47fdd832003-07-14 16:52:07 +000016590uts4*)
16591 version_type=linux
16592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16593 soname_spec='${libname}${release}${shared_ext}$major'
16594 shlibpath_var=LD_LIBRARY_PATH
16595 ;;
16596
John Criswell7a73b802003-06-30 21:59:07 +000016597*)
16598 dynamic_linker=no
16599 ;;
16600esac
Reid Spencera773bd52006-08-04 18:18:08 +000016601{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16602echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016603test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016604
Reid Spencera773bd52006-08-04 18:18:08 +000016605variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16606if test "$GCC" = yes; then
16607 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16608fi
16609
16610{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16611echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016612hardcode_action=
16613if test -n "$hardcode_libdir_flag_spec" || \
16614 test -n "$runpath_var" || \
16615 test "X$hardcode_automatic" = "Xyes" ; then
16616
16617 # We can hardcode non-existant directories.
16618 if test "$hardcode_direct" != no &&
16619 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16620 # have to relink, otherwise we might link with an installed library
16621 # when we should be linking with a yet-to-be-installed one
16622 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16623 test "$hardcode_minus_L" != no; then
16624 # Linking always hardcodes the temporary library directory.
16625 hardcode_action=relink
16626 else
16627 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16628 hardcode_action=immediate
16629 fi
16630else
16631 # We cannot hardcode anything, or else we can only hardcode existing
16632 # directories.
16633 hardcode_action=unsupported
16634fi
Reid Spencera773bd52006-08-04 18:18:08 +000016635{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16636echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016637
16638if test "$hardcode_action" = relink; then
16639 # Fast installation is not supported
16640 enable_fast_install=no
16641elif test "$shlibpath_overrides_runpath" = yes ||
16642 test "$enable_shared" = no; then
16643 # Fast installation is not necessary
16644 enable_fast_install=needless
16645fi
16646
16647striplib=
16648old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016649{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16650echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016651if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16652 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16653 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016654 { echo "$as_me:$LINENO: result: yes" >&5
16655echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016656else
16657# FIXME - insert some real tests, host_os isn't really good enough
16658 case $host_os in
16659 darwin*)
16660 if test -n "$STRIP" ; then
16661 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016662 { echo "$as_me:$LINENO: result: yes" >&5
16663echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016664 else
Reid Spencera773bd52006-08-04 18:18:08 +000016665 { echo "$as_me:$LINENO: result: no" >&5
16666echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016667fi
16668 ;;
16669 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016670 { echo "$as_me:$LINENO: result: no" >&5
16671echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016672 ;;
16673 esac
16674fi
16675
John Criswell7a73b802003-06-30 21:59:07 +000016676if test "x$enable_dlopen" != xyes; then
16677 enable_dlopen=unknown
16678 enable_dlopen_self=unknown
16679 enable_dlopen_self_static=unknown
16680else
16681 lt_cv_dlopen=no
16682 lt_cv_dlopen_libs=
16683
16684 case $host_os in
16685 beos*)
16686 lt_cv_dlopen="load_add_on"
16687 lt_cv_dlopen_libs=
16688 lt_cv_dlopen_self=yes
16689 ;;
16690
John Criswell47fdd832003-07-14 16:52:07 +000016691 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016692 lt_cv_dlopen="LoadLibrary"
16693 lt_cv_dlopen_libs=
16694 ;;
16695
John Criswell47fdd832003-07-14 16:52:07 +000016696 cygwin*)
16697 lt_cv_dlopen="dlopen"
16698 lt_cv_dlopen_libs=
16699 ;;
16700
16701 darwin*)
16702 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016703 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16704echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016705if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16707else
16708 ac_check_lib_save_LIBS=$LIBS
16709LIBS="-ldl $LIBS"
16710cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016711/* confdefs.h. */
16712_ACEOF
16713cat confdefs.h >>conftest.$ac_ext
16714cat >>conftest.$ac_ext <<_ACEOF
16715/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016716
Reid Spencera773bd52006-08-04 18:18:08 +000016717/* Override any GCC internal prototype to avoid an error.
16718 Use char because int might match the return type of a GCC
16719 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016720#ifdef __cplusplus
16721extern "C"
16722#endif
John Criswell47fdd832003-07-14 16:52:07 +000016723char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016724int
16725main ()
16726{
Reid Spencera773bd52006-08-04 18:18:08 +000016727return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016728 ;
16729 return 0;
16730}
16731_ACEOF
16732rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016733if { (ac_try="$ac_link"
16734case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16737esac
16738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016740 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016741 grep -v '^ *+' conftest.er1 >conftest.err
16742 rm -f conftest.er1
16743 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016745 (exit $ac_status); } &&
16746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16747 { (case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16750esac
16751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_try") 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; } &&
16756 { ac_try='test -s conftest$ac_exeext'
16757 { (case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16760esac
16761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762 (eval "$ac_try") 2>&5
16763 ac_status=$?
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016766 ac_cv_lib_dl_dlopen=yes
16767else
16768 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016769sed 's/^/| /' conftest.$ac_ext >&5
16770
Reid Spencera773bd52006-08-04 18:18:08 +000016771 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016772fi
Reid Spencera773bd52006-08-04 18:18:08 +000016773
Bill Wendlingebcceee2009-04-18 11:20:33 +000016774rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016775 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016776LIBS=$ac_check_lib_save_LIBS
16777fi
Reid Spencera773bd52006-08-04 18:18:08 +000016778{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16779echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016780if test $ac_cv_lib_dl_dlopen = yes; then
16781 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16782else
16783
16784 lt_cv_dlopen="dyld"
16785 lt_cv_dlopen_libs=
16786 lt_cv_dlopen_self=yes
16787
16788fi
16789
16790 ;;
16791
John Criswell7a73b802003-06-30 21:59:07 +000016792 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016793 { echo "$as_me:$LINENO: checking for shl_load" >&5
16794echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016795if test "${ac_cv_func_shl_load+set}" = set; then
16796 echo $ECHO_N "(cached) $ECHO_C" >&6
16797else
16798 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016799/* confdefs.h. */
16800_ACEOF
16801cat confdefs.h >>conftest.$ac_ext
16802cat >>conftest.$ac_ext <<_ACEOF
16803/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016804/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16806#define shl_load innocuous_shl_load
16807
John Criswell7a73b802003-06-30 21:59:07 +000016808/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016809 which can conflict with char shl_load (); below.
16810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16811 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016812
John Criswell0c38eaf2003-09-10 15:17:25 +000016813#ifdef __STDC__
16814# include <limits.h>
16815#else
16816# include <assert.h>
16817#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016818
16819#undef shl_load
16820
Reid Spencera773bd52006-08-04 18:18:08 +000016821/* Override any GCC internal prototype to avoid an error.
16822 Use char because int might match the return type of a GCC
16823 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016824#ifdef __cplusplus
16825extern "C"
16826#endif
John Criswell7a73b802003-06-30 21:59:07 +000016827char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016828/* The GNU C library defines this for functions which it implements
16829 to always fail with ENOSYS. Some functions are actually named
16830 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016831#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016832choke me
John Criswell7a73b802003-06-30 21:59:07 +000016833#endif
16834
John Criswell0c38eaf2003-09-10 15:17:25 +000016835int
16836main ()
16837{
Reid Spencera773bd52006-08-04 18:18:08 +000016838return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016839 ;
16840 return 0;
16841}
16842_ACEOF
16843rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016844if { (ac_try="$ac_link"
16845case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16848esac
16849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016851 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016852 grep -v '^ *+' conftest.er1 >conftest.err
16853 rm -f conftest.er1
16854 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016856 (exit $ac_status); } &&
16857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16858 { (case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16861esac
16862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_try") 2>&5
16864 ac_status=$?
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; } &&
16867 { ac_try='test -s conftest$ac_exeext'
16868 { (case "(($ac_try" in
16869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870 *) ac_try_echo=$ac_try;;
16871esac
16872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16873 (eval "$ac_try") 2>&5
16874 ac_status=$?
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016877 ac_cv_func_shl_load=yes
16878else
16879 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016880sed 's/^/| /' conftest.$ac_ext >&5
16881
Reid Spencera773bd52006-08-04 18:18:08 +000016882 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016883fi
Reid Spencera773bd52006-08-04 18:18:08 +000016884
Bill Wendlingebcceee2009-04-18 11:20:33 +000016885rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016886 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016887fi
Reid Spencera773bd52006-08-04 18:18:08 +000016888{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16889echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016890if test $ac_cv_func_shl_load = yes; then
16891 lt_cv_dlopen="shl_load"
16892else
Reid Spencera773bd52006-08-04 18:18:08 +000016893 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16894echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016895if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16896 echo $ECHO_N "(cached) $ECHO_C" >&6
16897else
16898 ac_check_lib_save_LIBS=$LIBS
16899LIBS="-ldld $LIBS"
16900cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016901/* confdefs.h. */
16902_ACEOF
16903cat confdefs.h >>conftest.$ac_ext
16904cat >>conftest.$ac_ext <<_ACEOF
16905/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016906
Reid Spencera773bd52006-08-04 18:18:08 +000016907/* Override any GCC internal prototype to avoid an error.
16908 Use char because int might match the return type of a GCC
16909 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016910#ifdef __cplusplus
16911extern "C"
16912#endif
John Criswell7a73b802003-06-30 21:59:07 +000016913char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016914int
16915main ()
16916{
Reid Spencera773bd52006-08-04 18:18:08 +000016917return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016918 ;
16919 return 0;
16920}
16921_ACEOF
16922rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016923if { (ac_try="$ac_link"
16924case "(($ac_try" in
16925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926 *) ac_try_echo=$ac_try;;
16927esac
16928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016930 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016931 grep -v '^ *+' conftest.er1 >conftest.err
16932 rm -f conftest.er1
16933 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016935 (exit $ac_status); } &&
16936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16937 { (case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16940esac
16941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_try") 2>&5
16943 ac_status=$?
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; } &&
16946 { ac_try='test -s conftest$ac_exeext'
16947 { (case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16950esac
16951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_try") 2>&5
16953 ac_status=$?
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016956 ac_cv_lib_dld_shl_load=yes
16957else
16958 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016959sed 's/^/| /' conftest.$ac_ext >&5
16960
Reid Spencera773bd52006-08-04 18:18:08 +000016961 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016962fi
Reid Spencera773bd52006-08-04 18:18:08 +000016963
Bill Wendlingebcceee2009-04-18 11:20:33 +000016964rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016965 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016966LIBS=$ac_check_lib_save_LIBS
16967fi
Reid Spencera773bd52006-08-04 18:18:08 +000016968{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16969echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016970if test $ac_cv_lib_dld_shl_load = yes; then
16971 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16972else
Reid Spencera773bd52006-08-04 18:18:08 +000016973 { echo "$as_me:$LINENO: checking for dlopen" >&5
16974echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016975if test "${ac_cv_func_dlopen+set}" = set; then
16976 echo $ECHO_N "(cached) $ECHO_C" >&6
16977else
16978 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016979/* confdefs.h. */
16980_ACEOF
16981cat confdefs.h >>conftest.$ac_ext
16982cat >>conftest.$ac_ext <<_ACEOF
16983/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016984/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16986#define dlopen innocuous_dlopen
16987
John Criswell7a73b802003-06-30 21:59:07 +000016988/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016989 which can conflict with char dlopen (); below.
16990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16991 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016992
John Criswell0c38eaf2003-09-10 15:17:25 +000016993#ifdef __STDC__
16994# include <limits.h>
16995#else
16996# include <assert.h>
16997#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016998
16999#undef dlopen
17000
Reid Spencera773bd52006-08-04 18:18:08 +000017001/* Override any GCC internal prototype to avoid an error.
17002 Use char because int might match the return type of a GCC
17003 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017004#ifdef __cplusplus
17005extern "C"
17006#endif
John Criswell7a73b802003-06-30 21:59:07 +000017007char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017008/* The GNU C library defines this for functions which it implements
17009 to always fail with ENOSYS. Some functions are actually named
17010 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017011#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017012choke me
John Criswell7a73b802003-06-30 21:59:07 +000017013#endif
17014
John Criswell0c38eaf2003-09-10 15:17:25 +000017015int
17016main ()
17017{
Reid Spencera773bd52006-08-04 18:18:08 +000017018return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017019 ;
17020 return 0;
17021}
17022_ACEOF
17023rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017024if { (ac_try="$ac_link"
17025case "(($ac_try" in
17026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027 *) ac_try_echo=$ac_try;;
17028esac
17029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017031 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017032 grep -v '^ *+' conftest.er1 >conftest.err
17033 rm -f conftest.er1
17034 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017036 (exit $ac_status); } &&
17037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17038 { (case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17041esac
17042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_try") 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; } &&
17047 { ac_try='test -s conftest$ac_exeext'
17048 { (case "(($ac_try" in
17049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050 *) ac_try_echo=$ac_try;;
17051esac
17052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053 (eval "$ac_try") 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017057 ac_cv_func_dlopen=yes
17058else
17059 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017060sed 's/^/| /' conftest.$ac_ext >&5
17061
Reid Spencera773bd52006-08-04 18:18:08 +000017062 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017063fi
Reid Spencera773bd52006-08-04 18:18:08 +000017064
Bill Wendlingebcceee2009-04-18 11:20:33 +000017065rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017066 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017067fi
Reid Spencera773bd52006-08-04 18:18:08 +000017068{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17069echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017070if test $ac_cv_func_dlopen = yes; then
17071 lt_cv_dlopen="dlopen"
17072else
Reid Spencera773bd52006-08-04 18:18:08 +000017073 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17074echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017075if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17076 echo $ECHO_N "(cached) $ECHO_C" >&6
17077else
17078 ac_check_lib_save_LIBS=$LIBS
17079LIBS="-ldl $LIBS"
17080cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017081/* confdefs.h. */
17082_ACEOF
17083cat confdefs.h >>conftest.$ac_ext
17084cat >>conftest.$ac_ext <<_ACEOF
17085/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017086
Reid Spencera773bd52006-08-04 18:18:08 +000017087/* Override any GCC internal prototype to avoid an error.
17088 Use char because int might match the return type of a GCC
17089 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017090#ifdef __cplusplus
17091extern "C"
17092#endif
John Criswell7a73b802003-06-30 21:59:07 +000017093char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017094int
17095main ()
17096{
Reid Spencera773bd52006-08-04 18:18:08 +000017097return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017098 ;
17099 return 0;
17100}
17101_ACEOF
17102rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017103if { (ac_try="$ac_link"
17104case "(($ac_try" in
17105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106 *) ac_try_echo=$ac_try;;
17107esac
17108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017110 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017111 grep -v '^ *+' conftest.er1 >conftest.err
17112 rm -f conftest.er1
17113 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017115 (exit $ac_status); } &&
17116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17117 { (case "(($ac_try" in
17118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119 *) ac_try_echo=$ac_try;;
17120esac
17121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122 (eval "$ac_try") 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; } &&
17126 { ac_try='test -s conftest$ac_exeext'
17127 { (case "(($ac_try" in
17128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129 *) ac_try_echo=$ac_try;;
17130esac
17131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132 (eval "$ac_try") 2>&5
17133 ac_status=$?
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017136 ac_cv_lib_dl_dlopen=yes
17137else
17138 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017139sed 's/^/| /' conftest.$ac_ext >&5
17140
Reid Spencera773bd52006-08-04 18:18:08 +000017141 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017142fi
Reid Spencera773bd52006-08-04 18:18:08 +000017143
Bill Wendlingebcceee2009-04-18 11:20:33 +000017144rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017145 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017146LIBS=$ac_check_lib_save_LIBS
17147fi
Reid Spencera773bd52006-08-04 18:18:08 +000017148{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17149echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017150if test $ac_cv_lib_dl_dlopen = yes; then
17151 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17152else
Reid Spencera773bd52006-08-04 18:18:08 +000017153 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17154echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017155if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17156 echo $ECHO_N "(cached) $ECHO_C" >&6
17157else
17158 ac_check_lib_save_LIBS=$LIBS
17159LIBS="-lsvld $LIBS"
17160cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017161/* confdefs.h. */
17162_ACEOF
17163cat confdefs.h >>conftest.$ac_ext
17164cat >>conftest.$ac_ext <<_ACEOF
17165/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017166
Reid Spencera773bd52006-08-04 18:18:08 +000017167/* Override any GCC internal prototype to avoid an error.
17168 Use char because int might match the return type of a GCC
17169 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017170#ifdef __cplusplus
17171extern "C"
17172#endif
John Criswell7a73b802003-06-30 21:59:07 +000017173char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017174int
17175main ()
17176{
Reid Spencera773bd52006-08-04 18:18:08 +000017177return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017178 ;
17179 return 0;
17180}
17181_ACEOF
17182rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017183if { (ac_try="$ac_link"
17184case "(($ac_try" in
17185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186 *) ac_try_echo=$ac_try;;
17187esac
17188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17189 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017190 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017191 grep -v '^ *+' conftest.er1 >conftest.err
17192 rm -f conftest.er1
17193 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017195 (exit $ac_status); } &&
17196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17197 { (case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17200esac
17201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_try") 2>&5
17203 ac_status=$?
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; } &&
17206 { ac_try='test -s conftest$ac_exeext'
17207 { (case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17210esac
17211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212 (eval "$ac_try") 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017216 ac_cv_lib_svld_dlopen=yes
17217else
17218 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017219sed 's/^/| /' conftest.$ac_ext >&5
17220
Reid Spencera773bd52006-08-04 18:18:08 +000017221 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017222fi
Reid Spencera773bd52006-08-04 18:18:08 +000017223
Bill Wendlingebcceee2009-04-18 11:20:33 +000017224rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017225 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017226LIBS=$ac_check_lib_save_LIBS
17227fi
Reid Spencera773bd52006-08-04 18:18:08 +000017228{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17229echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017230if test $ac_cv_lib_svld_dlopen = yes; then
17231 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17232else
Reid Spencera773bd52006-08-04 18:18:08 +000017233 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17234echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017235if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17236 echo $ECHO_N "(cached) $ECHO_C" >&6
17237else
17238 ac_check_lib_save_LIBS=$LIBS
17239LIBS="-ldld $LIBS"
17240cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017241/* confdefs.h. */
17242_ACEOF
17243cat confdefs.h >>conftest.$ac_ext
17244cat >>conftest.$ac_ext <<_ACEOF
17245/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017246
Reid Spencera773bd52006-08-04 18:18:08 +000017247/* Override any GCC internal prototype to avoid an error.
17248 Use char because int might match the return type of a GCC
17249 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017250#ifdef __cplusplus
17251extern "C"
17252#endif
John Criswell7a73b802003-06-30 21:59:07 +000017253char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017254int
17255main ()
17256{
Reid Spencera773bd52006-08-04 18:18:08 +000017257return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017258 ;
17259 return 0;
17260}
17261_ACEOF
17262rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017263if { (ac_try="$ac_link"
17264case "(($ac_try" in
17265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266 *) ac_try_echo=$ac_try;;
17267esac
17268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017270 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017271 grep -v '^ *+' conftest.er1 >conftest.err
17272 rm -f conftest.er1
17273 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017275 (exit $ac_status); } &&
17276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17277 { (case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17280esac
17281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282 (eval "$ac_try") 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; } &&
17286 { ac_try='test -s conftest$ac_exeext'
17287 { (case "(($ac_try" in
17288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17289 *) ac_try_echo=$ac_try;;
17290esac
17291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17292 (eval "$ac_try") 2>&5
17293 ac_status=$?
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017296 ac_cv_lib_dld_dld_link=yes
17297else
17298 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017299sed 's/^/| /' conftest.$ac_ext >&5
17300
Reid Spencera773bd52006-08-04 18:18:08 +000017301 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017302fi
Reid Spencera773bd52006-08-04 18:18:08 +000017303
Bill Wendlingebcceee2009-04-18 11:20:33 +000017304rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017305 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017306LIBS=$ac_check_lib_save_LIBS
17307fi
Reid Spencera773bd52006-08-04 18:18:08 +000017308{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17309echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017310if test $ac_cv_lib_dld_dld_link = yes; then
17311 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17312fi
17313
17314
17315fi
17316
17317
17318fi
17319
17320
17321fi
17322
17323
17324fi
17325
17326
17327fi
17328
17329 ;;
17330 esac
17331
17332 if test "x$lt_cv_dlopen" != xno; then
17333 enable_dlopen=yes
17334 else
17335 enable_dlopen=no
17336 fi
17337
17338 case $lt_cv_dlopen in
17339 dlopen)
17340 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017341 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017342
17343 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017344 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017345
17346 save_LIBS="$LIBS"
17347 LIBS="$lt_cv_dlopen_libs $LIBS"
17348
Reid Spencera773bd52006-08-04 18:18:08 +000017349 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17350echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017351if test "${lt_cv_dlopen_self+set}" = set; then
17352 echo $ECHO_N "(cached) $ECHO_C" >&6
17353else
17354 if test "$cross_compiling" = yes; then :
17355 lt_cv_dlopen_self=cross
17356else
John Criswell47fdd832003-07-14 16:52:07 +000017357 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017358 lt_status=$lt_dlunknown
17359 cat > conftest.$ac_ext <<EOF
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000017360#line 17360 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017361#include "confdefs.h"
17362
17363#if HAVE_DLFCN_H
17364#include <dlfcn.h>
17365#endif
17366
17367#include <stdio.h>
17368
17369#ifdef RTLD_GLOBAL
17370# define LT_DLGLOBAL RTLD_GLOBAL
17371#else
17372# ifdef DL_GLOBAL
17373# define LT_DLGLOBAL DL_GLOBAL
17374# else
17375# define LT_DLGLOBAL 0
17376# endif
17377#endif
17378
17379/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17380 find out it does not work in some platform. */
17381#ifndef LT_DLLAZY_OR_NOW
17382# ifdef RTLD_LAZY
17383# define LT_DLLAZY_OR_NOW RTLD_LAZY
17384# else
17385# ifdef DL_LAZY
17386# define LT_DLLAZY_OR_NOW DL_LAZY
17387# else
17388# ifdef RTLD_NOW
17389# define LT_DLLAZY_OR_NOW RTLD_NOW
17390# else
17391# ifdef DL_NOW
17392# define LT_DLLAZY_OR_NOW DL_NOW
17393# else
17394# define LT_DLLAZY_OR_NOW 0
17395# endif
17396# endif
17397# endif
17398# endif
17399#endif
17400
17401#ifdef __cplusplus
17402extern "C" void exit (int);
17403#endif
17404
17405void fnord() { int i=42;}
17406int main ()
17407{
17408 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17409 int status = $lt_dlunknown;
17410
17411 if (self)
17412 {
17413 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17414 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17415 /* dlclose (self); */
17416 }
Reid Spencera773bd52006-08-04 18:18:08 +000017417 else
17418 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017419
17420 exit (status);
17421}
17422EOF
17423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17424 (eval $ac_link) 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017428 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017429 lt_status=$?
17430 case x$lt_status in
17431 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17432 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017433 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017434 esac
17435 else :
17436 # compilation failed
17437 lt_cv_dlopen_self=no
17438 fi
17439fi
17440rm -fr conftest*
17441
17442
17443fi
Reid Spencera773bd52006-08-04 18:18:08 +000017444{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17445echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017446
17447 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017448 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17449 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17450echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017451if test "${lt_cv_dlopen_self_static+set}" = set; then
17452 echo $ECHO_N "(cached) $ECHO_C" >&6
17453else
17454 if test "$cross_compiling" = yes; then :
17455 lt_cv_dlopen_self_static=cross
17456else
John Criswell47fdd832003-07-14 16:52:07 +000017457 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017458 lt_status=$lt_dlunknown
17459 cat > conftest.$ac_ext <<EOF
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000017460#line 17460 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017461#include "confdefs.h"
17462
17463#if HAVE_DLFCN_H
17464#include <dlfcn.h>
17465#endif
17466
17467#include <stdio.h>
17468
17469#ifdef RTLD_GLOBAL
17470# define LT_DLGLOBAL RTLD_GLOBAL
17471#else
17472# ifdef DL_GLOBAL
17473# define LT_DLGLOBAL DL_GLOBAL
17474# else
17475# define LT_DLGLOBAL 0
17476# endif
17477#endif
17478
17479/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17480 find out it does not work in some platform. */
17481#ifndef LT_DLLAZY_OR_NOW
17482# ifdef RTLD_LAZY
17483# define LT_DLLAZY_OR_NOW RTLD_LAZY
17484# else
17485# ifdef DL_LAZY
17486# define LT_DLLAZY_OR_NOW DL_LAZY
17487# else
17488# ifdef RTLD_NOW
17489# define LT_DLLAZY_OR_NOW RTLD_NOW
17490# else
17491# ifdef DL_NOW
17492# define LT_DLLAZY_OR_NOW DL_NOW
17493# else
17494# define LT_DLLAZY_OR_NOW 0
17495# endif
17496# endif
17497# endif
17498# endif
17499#endif
17500
17501#ifdef __cplusplus
17502extern "C" void exit (int);
17503#endif
17504
17505void fnord() { int i=42;}
17506int main ()
17507{
17508 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17509 int status = $lt_dlunknown;
17510
17511 if (self)
17512 {
17513 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17514 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17515 /* dlclose (self); */
17516 }
Reid Spencera773bd52006-08-04 18:18:08 +000017517 else
17518 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017519
17520 exit (status);
17521}
17522EOF
17523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17524 (eval $ac_link) 2>&5
17525 ac_status=$?
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017528 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017529 lt_status=$?
17530 case x$lt_status in
17531 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17532 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017533 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017534 esac
17535 else :
17536 # compilation failed
17537 lt_cv_dlopen_self_static=no
17538 fi
17539fi
17540rm -fr conftest*
17541
17542
17543fi
Reid Spencera773bd52006-08-04 18:18:08 +000017544{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17545echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017546 fi
17547
17548 CPPFLAGS="$save_CPPFLAGS"
17549 LDFLAGS="$save_LDFLAGS"
17550 LIBS="$save_LIBS"
17551 ;;
17552 esac
17553
17554 case $lt_cv_dlopen_self in
17555 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17556 *) enable_dlopen_self=unknown ;;
17557 esac
17558
17559 case $lt_cv_dlopen_self_static in
17560 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17561 *) enable_dlopen_self_static=unknown ;;
17562 esac
17563fi
17564
17565
Reid Spencera773bd52006-08-04 18:18:08 +000017566# Report which library types will actually be built
17567{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17568echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17569{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17570echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017571
Reid Spencera773bd52006-08-04 18:18:08 +000017572{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17573echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017574test "$can_build_shared" = "no" && enable_shared=no
17575
17576# On AIX, shared libraries and static libraries use the same namespace, and
17577# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017578case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017579aix3*)
17580 test "$enable_shared" = yes && enable_static=no
17581 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017582 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017583 postinstall_cmds='$RANLIB $lib'
17584 fi
17585 ;;
17586
Reid Spencer2706f8c2004-09-19 23:53:36 +000017587aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017588 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17589 test "$enable_shared" = yes && enable_static=no
17590 fi
John Criswell7a73b802003-06-30 21:59:07 +000017591 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017592esac
Reid Spencera773bd52006-08-04 18:18:08 +000017593{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17594echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017595
Reid Spencera773bd52006-08-04 18:18:08 +000017596{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17597echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017598# Make sure either enable_shared or enable_static is yes.
17599test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017600{ echo "$as_me:$LINENO: result: $enable_static" >&5
17601echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017602
17603# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017604# libtool distribution, otherwise you forgot to ship ltmain.sh
17605# with your package, and you will get complaints that there are
17606# no rules to generate ltmain.sh.
17607if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017608 # See if we are running on zsh, and set the options which allow our commands through
17609 # without removal of \ escapes.
17610 if test -n "${ZSH_VERSION+set}" ; then
17611 setopt NO_GLOB_SUBST
17612 fi
John Criswell7a73b802003-06-30 21:59:07 +000017613 # Now quote all the things that may contain metacharacters while being
17614 # careful not to overquote the AC_SUBSTed values. We take copies of the
17615 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017616 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 +000017617 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017618 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17619 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17620 deplibs_check_method reload_flag reload_cmds need_locks \
17621 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17622 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017623 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017624 old_postinstall_cmds old_postuninstall_cmds \
17625 compiler \
17626 CC \
17627 LD \
17628 lt_prog_compiler_wl \
17629 lt_prog_compiler_pic \
17630 lt_prog_compiler_static \
17631 lt_prog_compiler_no_builtin_flag \
17632 export_dynamic_flag_spec \
17633 thread_safe_flag_spec \
17634 whole_archive_flag_spec \
17635 enable_shared_with_static_runtimes \
17636 old_archive_cmds \
17637 old_archive_from_new_cmds \
17638 predep_objects \
17639 postdep_objects \
17640 predeps \
17641 postdeps \
17642 compiler_lib_search_path \
17643 archive_cmds \
17644 archive_expsym_cmds \
17645 postinstall_cmds \
17646 postuninstall_cmds \
17647 old_archive_from_expsyms_cmds \
17648 allow_undefined_flag \
17649 no_undefined_flag \
17650 export_symbols_cmds \
17651 hardcode_libdir_flag_spec \
17652 hardcode_libdir_flag_spec_ld \
17653 hardcode_libdir_separator \
17654 hardcode_automatic \
17655 module_cmds \
17656 module_expsym_cmds \
17657 lt_cv_prog_compiler_c_o \
17658 exclude_expsyms \
17659 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017660
17661 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017662 old_archive_cmds | \
17663 old_archive_from_new_cmds | \
17664 archive_cmds | \
17665 archive_expsym_cmds | \
17666 module_cmds | \
17667 module_expsym_cmds | \
17668 old_archive_from_expsyms_cmds | \
17669 export_symbols_cmds | \
17670 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017671 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017672 old_postinstall_cmds | old_postuninstall_cmds | \
17673 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017674 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017675 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 +000017676 ;;
17677 *)
17678 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17679 ;;
17680 esac
17681 done
17682
John Criswell47fdd832003-07-14 16:52:07 +000017683 case $lt_echo in
17684 *'\$0 --fallback-echo"')
17685 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17686 ;;
17687 esac
17688
17689cfgfile="${ofile}T"
17690 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17691 $rm -f "$cfgfile"
17692 { echo "$as_me:$LINENO: creating $ofile" >&5
17693echo "$as_me: creating $ofile" >&6;}
17694
17695 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017696#! $SHELL
17697
John Criswell47fdd832003-07-14 16:52:07 +000017698# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017699# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17700# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17701#
John Criswell47fdd832003-07-14 16:52:07 +000017702# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17703# Free Software Foundation, Inc.
17704#
17705# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017706# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17707#
17708# This program is free software; you can redistribute it and/or modify
17709# it under the terms of the GNU General Public License as published by
17710# the Free Software Foundation; either version 2 of the License, or
17711# (at your option) any later version.
17712#
17713# This program is distributed in the hope that it will be useful, but
17714# WITHOUT ANY WARRANTY; without even the implied warranty of
17715# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17716# General Public License for more details.
17717#
17718# You should have received a copy of the GNU General Public License
17719# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017720# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017721#
17722# As a special exception to the GNU General Public License, if you
17723# distribute this file as part of a program that contains a
17724# configuration script generated by Autoconf, you may include it under
17725# the same distribution terms that you use for the rest of that program.
17726
John Criswell47fdd832003-07-14 16:52:07 +000017727# A sed program that does not truncate output.
17728SED=$lt_SED
17729
John Criswell7a73b802003-06-30 21:59:07 +000017730# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017731Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017732
17733# The HP-UX ksh and POSIX shell print the target directory to stdout
17734# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017735(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017736
John Criswell47fdd832003-07-14 16:52:07 +000017737# The names of the tagged configurations supported by this script.
17738available_tags=
17739
John Criswell7a73b802003-06-30 21:59:07 +000017740# ### BEGIN LIBTOOL CONFIG
17741
17742# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17743
17744# Shell to use when invoking shell scripts.
17745SHELL=$lt_SHELL
17746
17747# Whether or not to build shared libraries.
17748build_libtool_libs=$enable_shared
17749
17750# Whether or not to build static libraries.
17751build_old_libs=$enable_static
17752
17753# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017754build_libtool_need_lc=$archive_cmds_need_lc
17755
17756# Whether or not to disallow shared libs when runtime libs are static
17757allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017758
17759# Whether or not to optimize for fast installation.
17760fast_install=$enable_fast_install
17761
17762# The host system.
17763host_alias=$host_alias
17764host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017765host_os=$host_os
17766
17767# The build system.
17768build_alias=$build_alias
17769build=$build
17770build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017771
17772# An echo program that does not interpret backslashes.
17773echo=$lt_echo
17774
17775# The archiver.
17776AR=$lt_AR
17777AR_FLAGS=$lt_AR_FLAGS
17778
John Criswell47fdd832003-07-14 16:52:07 +000017779# A C compiler.
17780LTCC=$lt_LTCC
17781
Reid Spencera773bd52006-08-04 18:18:08 +000017782# LTCC compiler flags.
17783LTCFLAGS=$lt_LTCFLAGS
17784
John Criswell47fdd832003-07-14 16:52:07 +000017785# A language-specific compiler.
17786CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017787
17788# Is the compiler the GNU C compiler?
17789with_gcc=$GCC
17790
John Criswell47fdd832003-07-14 16:52:07 +000017791# An ERE matcher.
17792EGREP=$lt_EGREP
17793
John Criswell7a73b802003-06-30 21:59:07 +000017794# The linker used to build libraries.
17795LD=$lt_LD
17796
17797# Whether we need hard or soft links.
17798LN_S=$lt_LN_S
17799
17800# A BSD-compatible nm program.
17801NM=$lt_NM
17802
17803# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017804STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017805
17806# Used to examine libraries when file_magic_cmd begins "file"
17807MAGIC_CMD=$MAGIC_CMD
17808
17809# Used on cygwin: DLL creation program.
17810DLLTOOL="$DLLTOOL"
17811
17812# Used on cygwin: object dumper.
17813OBJDUMP="$OBJDUMP"
17814
17815# Used on cygwin: assembler.
17816AS="$AS"
17817
17818# The name of the directory that contains temporary libtool files.
17819objdir=$objdir
17820
17821# How to create reloadable object files.
17822reload_flag=$lt_reload_flag
17823reload_cmds=$lt_reload_cmds
17824
17825# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017826wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017827
17828# Object file suffix (normally "o").
17829objext="$ac_objext"
17830
17831# Old archive suffix (normally "a").
17832libext="$libext"
17833
John Criswell47fdd832003-07-14 16:52:07 +000017834# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017835shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017836
John Criswell7a73b802003-06-30 21:59:07 +000017837# Executable file suffix (normally "").
17838exeext="$exeext"
17839
17840# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017841pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017842pic_mode=$pic_mode
17843
John Criswell47fdd832003-07-14 16:52:07 +000017844# What is the maximum length of a command?
17845max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017846
John Criswell47fdd832003-07-14 16:52:07 +000017847# Does compiler simultaneously support -c and -o options?
17848compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017849
Reid Spencera773bd52006-08-04 18:18:08 +000017850# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017851need_locks=$lt_need_locks
17852
17853# Do we need the lib prefix for modules?
17854need_lib_prefix=$need_lib_prefix
17855
17856# Do we need a version for libraries?
17857need_version=$need_version
17858
17859# Whether dlopen is supported.
17860dlopen_support=$enable_dlopen
17861
17862# Whether dlopen of programs is supported.
17863dlopen_self=$enable_dlopen_self
17864
17865# Whether dlopen of statically linked programs is supported.
17866dlopen_self_static=$enable_dlopen_self_static
17867
17868# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017869link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017870
17871# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017872no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017873
17874# Compiler flag to allow reflexive dlopens.
17875export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17876
17877# Compiler flag to generate shared objects directly from archives.
17878whole_archive_flag_spec=$lt_whole_archive_flag_spec
17879
17880# Compiler flag to generate thread-safe objects.
17881thread_safe_flag_spec=$lt_thread_safe_flag_spec
17882
17883# Library versioning type.
17884version_type=$version_type
17885
17886# Format of library name prefix.
17887libname_spec=$lt_libname_spec
17888
17889# List of archive names. First name is the real one, the rest are links.
17890# The last name is the one that the linker finds with -lNAME.
17891library_names_spec=$lt_library_names_spec
17892
17893# The coded name of the library, if different from the real name.
17894soname_spec=$lt_soname_spec
17895
17896# Commands used to build and install an old-style archive.
17897RANLIB=$lt_RANLIB
17898old_archive_cmds=$lt_old_archive_cmds
17899old_postinstall_cmds=$lt_old_postinstall_cmds
17900old_postuninstall_cmds=$lt_old_postuninstall_cmds
17901
17902# Create an old-style archive from a shared archive.
17903old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17904
17905# Create a temporary old-style archive to link instead of a shared archive.
17906old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17907
17908# Commands used to build and install a shared archive.
17909archive_cmds=$lt_archive_cmds
17910archive_expsym_cmds=$lt_archive_expsym_cmds
17911postinstall_cmds=$lt_postinstall_cmds
17912postuninstall_cmds=$lt_postuninstall_cmds
17913
John Criswell47fdd832003-07-14 16:52:07 +000017914# Commands used to build a loadable module (assumed same as above if empty)
17915module_cmds=$lt_module_cmds
17916module_expsym_cmds=$lt_module_expsym_cmds
17917
John Criswell7a73b802003-06-30 21:59:07 +000017918# Commands to strip libraries.
17919old_striplib=$lt_old_striplib
17920striplib=$lt_striplib
17921
John Criswell47fdd832003-07-14 16:52:07 +000017922# Dependencies to place before the objects being linked to create a
17923# shared library.
17924predep_objects=$lt_predep_objects
17925
17926# Dependencies to place after the objects being linked to create a
17927# shared library.
17928postdep_objects=$lt_postdep_objects
17929
17930# Dependencies to place before the objects being linked to create a
17931# shared library.
17932predeps=$lt_predeps
17933
17934# Dependencies to place after the objects being linked to create a
17935# shared library.
17936postdeps=$lt_postdeps
17937
17938# The library search path used internally by the compiler when linking
17939# a shared library.
17940compiler_lib_search_path=$lt_compiler_lib_search_path
17941
John Criswell7a73b802003-06-30 21:59:07 +000017942# Method to check whether dependent libraries are shared objects.
17943deplibs_check_method=$lt_deplibs_check_method
17944
17945# Command to use when deplibs_check_method == file_magic.
17946file_magic_cmd=$lt_file_magic_cmd
17947
17948# Flag that allows shared libraries with undefined symbols to be built.
17949allow_undefined_flag=$lt_allow_undefined_flag
17950
17951# Flag that forces no undefined symbols.
17952no_undefined_flag=$lt_no_undefined_flag
17953
17954# Commands used to finish a libtool library installation in a directory.
17955finish_cmds=$lt_finish_cmds
17956
17957# Same as above, but a single script fragment to be evaled but not shown.
17958finish_eval=$lt_finish_eval
17959
17960# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017961global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017962
17963# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017964global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017965
17966# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017967global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017968
17969# This is the shared library runtime path variable.
17970runpath_var=$runpath_var
17971
17972# This is the shared library path variable.
17973shlibpath_var=$shlibpath_var
17974
17975# Is shlibpath searched before the hard-coded library search path?
17976shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17977
17978# How to hardcode a shared library path into an executable.
17979hardcode_action=$hardcode_action
17980
17981# Whether we should hardcode library paths into libraries.
17982hardcode_into_libs=$hardcode_into_libs
17983
17984# Flag to hardcode \$libdir into a binary during linking.
17985# This must work even if \$libdir does not exist.
17986hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17987
John Criswell47fdd832003-07-14 16:52:07 +000017988# If ld is used when linking, flag to hardcode \$libdir into
17989# a binary during linking. This must work even if \$libdir does
17990# not exist.
17991hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17992
John Criswell7a73b802003-06-30 21:59:07 +000017993# Whether we need a single -rpath flag with a separated argument.
17994hardcode_libdir_separator=$lt_hardcode_libdir_separator
17995
John Criswell47fdd832003-07-14 16:52:07 +000017996# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017997# resulting binary.
17998hardcode_direct=$hardcode_direct
17999
18000# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18001# resulting binary.
18002hardcode_minus_L=$hardcode_minus_L
18003
18004# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18005# the resulting binary.
18006hardcode_shlibpath_var=$hardcode_shlibpath_var
18007
John Criswell47fdd832003-07-14 16:52:07 +000018008# Set to yes if building a shared library automatically hardcodes DIR into the library
18009# and all subsequent libraries and executables linked against it.
18010hardcode_automatic=$hardcode_automatic
18011
John Criswell7a73b802003-06-30 21:59:07 +000018012# Variables whose values should be saved in libtool wrapper scripts and
18013# restored at relink time.
18014variables_saved_for_relink="$variables_saved_for_relink"
18015
18016# Whether libtool must link a program against all its dependency libraries.
18017link_all_deplibs=$link_all_deplibs
18018
18019# Compile-time system search path for libraries
18020sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18021
18022# Run-time system search path for libraries
18023sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18024
18025# Fix the shell variable \$srcfile for the compiler.
18026fix_srcfile_path="$fix_srcfile_path"
18027
18028# Set to yes if exported symbols are required.
18029always_export_symbols=$always_export_symbols
18030
18031# The commands to list exported symbols.
18032export_symbols_cmds=$lt_export_symbols_cmds
18033
18034# The commands to extract the exported symbol list from a shared archive.
18035extract_expsyms_cmds=$lt_extract_expsyms_cmds
18036
18037# Symbols that should not be listed in the preloaded symbols.
18038exclude_expsyms=$lt_exclude_expsyms
18039
18040# Symbols that must always be exported.
18041include_expsyms=$lt_include_expsyms
18042
18043# ### END LIBTOOL CONFIG
18044
18045__EOF__
18046
John Criswell47fdd832003-07-14 16:52:07 +000018047
John Criswell7a73b802003-06-30 21:59:07 +000018048 case $host_os in
18049 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018050 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018051
18052# AIX sometimes has problems with the GCC collect2 program. For some
18053# reason, if we set the COLLECT_NAMES environment variable, the problems
18054# vanish in a puff of smoke.
18055if test "X${COLLECT_NAMES+set}" != Xset; then
18056 COLLECT_NAMES=
18057 export COLLECT_NAMES
18058fi
18059EOF
18060 ;;
18061 esac
18062
John Criswell7a73b802003-06-30 21:59:07 +000018063 # We use sed instead of cat because bash on DJGPP gets confused if
18064 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18065 # text mode, it properly converts lines to CR/LF. This bash problem
18066 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018067 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018068
John Criswell47fdd832003-07-14 16:52:07 +000018069 mv -f "$cfgfile" "$ofile" || \
18070 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018071 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018072
18073else
18074 # If there is no Makefile yet, we rely on a make rule to execute
18075 # `config.status --recheck' to rerun these tests and create the
18076 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018077 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18078 if test -f "$ltmain_in"; then
18079 test -f Makefile && make "$ltmain"
18080 fi
John Criswell7a73b802003-06-30 21:59:07 +000018081fi
John Criswell7a73b802003-06-30 21:59:07 +000018082
18083
John Criswell47fdd832003-07-14 16:52:07 +000018084ac_ext=c
18085ac_cpp='$CPP $CPPFLAGS'
18086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18088ac_compiler_gnu=$ac_cv_c_compiler_gnu
18089
18090CC="$lt_save_CC"
18091
18092
Reid Spencera773bd52006-08-04 18:18:08 +000018093# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018094if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018095 withval=$with_tags; tagnames="$withval"
18096fi
18097
John Criswell47fdd832003-07-14 16:52:07 +000018098
18099if test -f "$ltmain" && test -n "$tagnames"; then
18100 if test ! -f "${ofile}"; then
18101 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18102echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18103 fi
18104
18105 if test -z "$LTCC"; then
18106 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18107 if test -z "$LTCC"; then
18108 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18109echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18110 else
18111 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18112echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18113 fi
18114 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018115 if test -z "$LTCFLAGS"; then
18116 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18117 fi
John Criswell47fdd832003-07-14 16:52:07 +000018118
18119 # Extract list of available tagged configurations in $ofile.
18120 # Note that this assumes the entire list is on one line.
18121 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18122
18123 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18124 for tagname in $tagnames; do
18125 IFS="$lt_save_ifs"
18126 # Check whether tagname contains only valid characters
18127 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18128 "") ;;
18129 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18130echo "$as_me: error: invalid tag name: $tagname" >&2;}
18131 { (exit 1); exit 1; }; }
18132 ;;
18133 esac
18134
18135 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18136 then
18137 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18138echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18139 { (exit 1); exit 1; }; }
18140 fi
18141
18142 # Update the list of available tags.
18143 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018144 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018145
18146 case $tagname in
18147 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018148 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18149 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18150 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018151 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018152ac_cpp='$CXXCPP $CPPFLAGS'
18153ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18154ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18155ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18156
18157
18158
18159
18160archive_cmds_need_lc_CXX=no
18161allow_undefined_flag_CXX=
18162always_export_symbols_CXX=no
18163archive_expsym_cmds_CXX=
18164export_dynamic_flag_spec_CXX=
18165hardcode_direct_CXX=no
18166hardcode_libdir_flag_spec_CXX=
18167hardcode_libdir_flag_spec_ld_CXX=
18168hardcode_libdir_separator_CXX=
18169hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018170hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018171hardcode_automatic_CXX=no
18172module_cmds_CXX=
18173module_expsym_cmds_CXX=
18174link_all_deplibs_CXX=unknown
18175old_archive_cmds_CXX=$old_archive_cmds
18176no_undefined_flag_CXX=
18177whole_archive_flag_spec_CXX=
18178enable_shared_with_static_runtimes_CXX=no
18179
18180# Dependencies to place before and after the object being linked:
18181predep_objects_CXX=
18182postdep_objects_CXX=
18183predeps_CXX=
18184postdeps_CXX=
18185compiler_lib_search_path_CXX=
18186
18187# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018188ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018189
18190# Object file extension for compiled C++ test sources.
18191objext=o
18192objext_CXX=$objext
18193
18194# Code to be used in simple compile tests
18195lt_simple_compile_test_code="int some_variable = 0;\n"
18196
18197# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018198lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018199
18200# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18201
18202# If no C compiler was specified, use CC.
18203LTCC=${LTCC-"$CC"}
18204
Reid Spencera773bd52006-08-04 18:18:08 +000018205# If no C compiler flags were specified, use CFLAGS.
18206LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18207
John Criswell47fdd832003-07-14 16:52:07 +000018208# Allow CC to be a program name with arguments.
18209compiler=$CC
18210
18211
Reid Spencera773bd52006-08-04 18:18:08 +000018212# save warnings/boilerplate of simple test code
18213ac_outfile=conftest.$ac_objext
18214printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18215eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18216_lt_compiler_boilerplate=`cat conftest.err`
18217$rm conftest*
18218
18219ac_outfile=conftest.$ac_objext
18220printf "$lt_simple_link_test_code" >conftest.$ac_ext
18221eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18222_lt_linker_boilerplate=`cat conftest.err`
18223$rm conftest*
18224
18225
John Criswell47fdd832003-07-14 16:52:07 +000018226# Allow CC to be a program name with arguments.
18227lt_save_CC=$CC
18228lt_save_LD=$LD
18229lt_save_GCC=$GCC
18230GCC=$GXX
18231lt_save_with_gnu_ld=$with_gnu_ld
18232lt_save_path_LD=$lt_cv_path_LD
18233if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18234 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18235else
Reid Spencera773bd52006-08-04 18:18:08 +000018236 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018237fi
18238if test -n "${lt_cv_path_LDCXX+set}"; then
18239 lt_cv_path_LD=$lt_cv_path_LDCXX
18240else
Reid Spencera773bd52006-08-04 18:18:08 +000018241 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018242fi
18243test -z "${LDCXX+set}" || LD=$LDCXX
18244CC=${CXX-"c++"}
18245compiler=$CC
18246compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018247for cc_temp in $compiler""; do
18248 case $cc_temp in
18249 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18250 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18251 \-*) ;;
18252 *) break;;
18253 esac
18254done
18255cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18256
John Criswell47fdd832003-07-14 16:52:07 +000018257
18258# We don't want -fno-exception wen compiling C++ code, so set the
18259# no_builtin_flag separately
18260if test "$GXX" = yes; then
18261 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18262else
18263 lt_prog_compiler_no_builtin_flag_CXX=
18264fi
18265
18266if test "$GXX" = yes; then
18267 # Set up default GNU C++ configuration
18268
18269
Reid Spencera773bd52006-08-04 18:18:08 +000018270# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018271if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018272 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018273else
18274 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018275fi
18276
John Criswell47fdd832003-07-14 16:52:07 +000018277ac_prog=ld
18278if test "$GCC" = yes; then
18279 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018280 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18281echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018282 case $host in
18283 *-*-mingw*)
18284 # gcc leaves a trailing carriage return which upsets mingw
18285 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18286 *)
18287 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18288 esac
18289 case $ac_prog in
18290 # Accept absolute paths.
18291 [\\/]* | ?:[\\/]*)
18292 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018293 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018294 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18295 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18296 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18297 done
18298 test -z "$LD" && LD="$ac_prog"
18299 ;;
18300 "")
18301 # If it fails, then pretend we aren't using GCC.
18302 ac_prog=ld
18303 ;;
18304 *)
18305 # If it is relative, then search for the first ld in PATH.
18306 with_gnu_ld=unknown
18307 ;;
18308 esac
18309elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018310 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18311echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018312else
Reid Spencera773bd52006-08-04 18:18:08 +000018313 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18314echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018315fi
18316if test "${lt_cv_path_LD+set}" = set; then
18317 echo $ECHO_N "(cached) $ECHO_C" >&6
18318else
18319 if test -z "$LD"; then
18320 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18321 for ac_dir in $PATH; do
18322 IFS="$lt_save_ifs"
18323 test -z "$ac_dir" && ac_dir=.
18324 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18325 lt_cv_path_LD="$ac_dir/$ac_prog"
18326 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018327 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018328 # Break only if it was the GNU/non-GNU ld that we prefer.
18329 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18330 *GNU* | *'with BFD'*)
18331 test "$with_gnu_ld" != no && break
18332 ;;
18333 *)
18334 test "$with_gnu_ld" != yes && break
18335 ;;
18336 esac
18337 fi
18338 done
18339 IFS="$lt_save_ifs"
18340else
18341 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18342fi
18343fi
18344
18345LD="$lt_cv_path_LD"
18346if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018347 { echo "$as_me:$LINENO: result: $LD" >&5
18348echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018349else
Reid Spencera773bd52006-08-04 18:18:08 +000018350 { echo "$as_me:$LINENO: result: no" >&5
18351echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018352fi
18353test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18354echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18355 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018356{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18357echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018358if test "${lt_cv_prog_gnu_ld+set}" = set; then
18359 echo $ECHO_N "(cached) $ECHO_C" >&6
18360else
Reid Spencera773bd52006-08-04 18:18:08 +000018361 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018362case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018363*GNU* | *'with BFD'*)
18364 lt_cv_prog_gnu_ld=yes
18365 ;;
18366*)
18367 lt_cv_prog_gnu_ld=no
18368 ;;
18369esac
18370fi
Reid Spencera773bd52006-08-04 18:18:08 +000018371{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18372echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018373with_gnu_ld=$lt_cv_prog_gnu_ld
18374
18375
18376
18377 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18378 # archiving commands below assume that GNU ld is being used.
18379 if test "$with_gnu_ld" = yes; then
18380 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18381 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'
18382
18383 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18384 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18385
18386 # If archive_cmds runs LD, not CC, wlarc should be empty
18387 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18388 # investigate it a little bit more. (MM)
18389 wlarc='${wl}'
18390
18391 # ancient GNU ld didn't support --whole-archive et. al.
18392 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18393 grep 'no-whole-archive' > /dev/null; then
18394 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18395 else
18396 whole_archive_flag_spec_CXX=
18397 fi
18398 else
18399 with_gnu_ld=no
18400 wlarc=
18401
18402 # A generic and very simple default shared library creation
18403 # command for GNU C++ for the case where it uses the native
18404 # linker, instead of GNU ld. If possible, this setting should
18405 # overridden to take advantage of the native linker features on
18406 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018407 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018408 fi
18409
18410 # Commands to make compiler produce verbose output that lists
18411 # what "hidden" libraries, object files and flags are used when
18412 # linking a shared library.
18413 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18414
18415else
18416 GXX=no
18417 with_gnu_ld=no
18418 wlarc=
18419fi
18420
18421# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018422{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18423echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018424ld_shlibs_CXX=yes
18425case $host_os in
18426 aix3*)
18427 # FIXME: insert proper C++ library support
18428 ld_shlibs_CXX=no
18429 ;;
18430 aix4* | aix5*)
18431 if test "$host_cpu" = ia64; then
18432 # On IA64, the linker does run time linking by default, so we don't
18433 # have to do anything special.
18434 aix_use_runtimelinking=no
18435 exp_sym_flag='-Bexport'
18436 no_entry_flag=""
18437 else
18438 aix_use_runtimelinking=no
18439
18440 # Test if we are trying to use run time linking or normal
18441 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18442 # need to do runtime linking.
18443 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18444 for ld_flag in $LDFLAGS; do
18445 case $ld_flag in
18446 *-brtl*)
18447 aix_use_runtimelinking=yes
18448 break
18449 ;;
18450 esac
18451 done
Reid Spencera773bd52006-08-04 18:18:08 +000018452 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018453 esac
18454
18455 exp_sym_flag='-bexport'
18456 no_entry_flag='-bnoentry'
18457 fi
18458
18459 # When large executables or shared objects are built, AIX ld can
18460 # have problems creating the table of contents. If linking a library
18461 # or program results in "error TOC overflow" add -mminimal-toc to
18462 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18463 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18464
18465 archive_cmds_CXX=''
18466 hardcode_direct_CXX=yes
18467 hardcode_libdir_separator_CXX=':'
18468 link_all_deplibs_CXX=yes
18469
18470 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018471 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018472 # We only want to do this on AIX 4.2 and lower, the check
18473 # below for broken collect2 doesn't work under 4.3+
18474 collect2name=`${CC} -print-prog-name=collect2`
18475 if test -f "$collect2name" && \
18476 strings "$collect2name" | grep resolve_lib_name >/dev/null
18477 then
18478 # We have reworked collect2
18479 hardcode_direct_CXX=yes
18480 else
18481 # We have old collect2
18482 hardcode_direct_CXX=unsupported
18483 # It fails to find uninstalled libraries when the uninstalled
18484 # path is not listed in the libpath. Setting hardcode_minus_L
18485 # to unsupported forces relinking
18486 hardcode_minus_L_CXX=yes
18487 hardcode_libdir_flag_spec_CXX='-L$libdir'
18488 hardcode_libdir_separator_CXX=
18489 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018490 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018491 esac
18492 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018493 if test "$aix_use_runtimelinking" = yes; then
18494 shared_flag="$shared_flag "'${wl}-G'
18495 fi
John Criswell47fdd832003-07-14 16:52:07 +000018496 else
18497 # not using gcc
18498 if test "$host_cpu" = ia64; then
18499 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18500 # chokes on -Wl,-G. The following line is correct:
18501 shared_flag='-G'
18502 else
18503 if test "$aix_use_runtimelinking" = yes; then
18504 shared_flag='${wl}-G'
18505 else
18506 shared_flag='${wl}-bM:SRE'
18507 fi
18508 fi
18509 fi
18510
18511 # It seems that -bexpall does not export symbols beginning with
18512 # underscore (_), so it is better to generate a list of symbols to export.
18513 always_export_symbols_CXX=yes
18514 if test "$aix_use_runtimelinking" = yes; then
18515 # Warning - without using the other runtime loading flags (-brtl),
18516 # -berok will link without error, but may produce a broken library.
18517 allow_undefined_flag_CXX='-berok'
18518 # Determine the default libpath from the value encoded in an empty executable.
18519 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018520/* confdefs.h. */
18521_ACEOF
18522cat confdefs.h >>conftest.$ac_ext
18523cat >>conftest.$ac_ext <<_ACEOF
18524/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018525
John Criswell47fdd832003-07-14 16:52:07 +000018526int
18527main ()
18528{
18529
18530 ;
18531 return 0;
18532}
18533_ACEOF
18534rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018535if { (ac_try="$ac_link"
18536case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18539esac
18540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018542 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018543 grep -v '^ *+' conftest.er1 >conftest.err
18544 rm -f conftest.er1
18545 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018547 (exit $ac_status); } &&
18548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18549 { (case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18552esac
18553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_try") 2>&5
18555 ac_status=$?
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; } &&
18558 { ac_try='test -s conftest$ac_exeext'
18559 { (case "(($ac_try" in
18560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561 *) ac_try_echo=$ac_try;;
18562esac
18563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564 (eval "$ac_try") 2>&5
18565 ac_status=$?
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018568
18569aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18570}'`
18571# Check for a 64-bit object if we didn't find anything.
18572if 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; }
18573}'`; fi
18574else
18575 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018576sed 's/^/| /' conftest.$ac_ext >&5
18577
Reid Spencera773bd52006-08-04 18:18:08 +000018578
John Criswell47fdd832003-07-14 16:52:07 +000018579fi
Reid Spencera773bd52006-08-04 18:18:08 +000018580
Bill Wendlingebcceee2009-04-18 11:20:33 +000018581rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018582 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018583if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18584
18585 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18586
Reid Spencera773bd52006-08-04 18:18:08 +000018587 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 +000018588 else
18589 if test "$host_cpu" = ia64; then
18590 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18591 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018592 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 +000018593 else
18594 # Determine the default libpath from the value encoded in an empty executable.
18595 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018596/* confdefs.h. */
18597_ACEOF
18598cat confdefs.h >>conftest.$ac_ext
18599cat >>conftest.$ac_ext <<_ACEOF
18600/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018601
John Criswell47fdd832003-07-14 16:52:07 +000018602int
18603main ()
18604{
18605
18606 ;
18607 return 0;
18608}
18609_ACEOF
18610rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018611if { (ac_try="$ac_link"
18612case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18615esac
18616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018618 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018619 grep -v '^ *+' conftest.er1 >conftest.err
18620 rm -f conftest.er1
18621 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018623 (exit $ac_status); } &&
18624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18625 { (case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628esac
18629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_try") 2>&5
18631 ac_status=$?
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; } &&
18634 { ac_try='test -s conftest$ac_exeext'
18635 { (case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18638esac
18639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_try") 2>&5
18641 ac_status=$?
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018644
18645aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18646}'`
18647# Check for a 64-bit object if we didn't find anything.
18648if 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; }
18649}'`; fi
18650else
18651 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018652sed 's/^/| /' conftest.$ac_ext >&5
18653
Reid Spencera773bd52006-08-04 18:18:08 +000018654
John Criswell47fdd832003-07-14 16:52:07 +000018655fi
Reid Spencera773bd52006-08-04 18:18:08 +000018656
Bill Wendlingebcceee2009-04-18 11:20:33 +000018657rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018658 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018659if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18660
18661 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18662 # Warning - without using the other run time loading flags,
18663 # -berok will link without error, but may produce a broken library.
18664 no_undefined_flag_CXX=' ${wl}-bernotok'
18665 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018666 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018667 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018668 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018669 # This is similar to how AIX traditionally builds its shared libraries.
18670 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 +000018671 fi
18672 fi
18673 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018674
18675 beos*)
18676 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18677 allow_undefined_flag_CXX=unsupported
18678 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18679 # support --undefined. This deserves some investigation. FIXME
18680 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18681 else
18682 ld_shlibs_CXX=no
18683 fi
18684 ;;
18685
John Criswell47fdd832003-07-14 16:52:07 +000018686 chorus*)
18687 case $cc_basename in
18688 *)
18689 # FIXME: insert proper C++ library support
18690 ld_shlibs_CXX=no
18691 ;;
18692 esac
18693 ;;
18694
18695 cygwin* | mingw* | pw32*)
18696 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18697 # as there is no search path for DLLs.
18698 hardcode_libdir_flag_spec_CXX='-L$libdir'
18699 allow_undefined_flag_CXX=unsupported
18700 always_export_symbols_CXX=no
18701 enable_shared_with_static_runtimes_CXX=yes
18702
18703 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018704 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 +000018705 # If the export-symbols file already is a .def file (1st line
18706 # is EXPORTS), use it as is; otherwise, prepend...
18707 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18708 cp $export_symbols $output_objdir/$soname.def;
18709 else
18710 echo EXPORTS > $output_objdir/$soname.def;
18711 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018712 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018713 $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 +000018714 else
18715 ld_shlibs_CXX=no
18716 fi
18717 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018718 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018719 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018720 rhapsody* | darwin1.[012])
18721 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18722 ;;
18723 *) # Darwin 1.3 on
18724 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18725 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18726 else
18727 case ${MACOSX_DEPLOYMENT_TARGET} in
18728 10.[012])
18729 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18730 ;;
18731 10.*)
18732 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18733 ;;
18734 esac
18735 fi
18736 ;;
18737 esac
18738 archive_cmds_need_lc_CXX=no
18739 hardcode_direct_CXX=no
18740 hardcode_automatic_CXX=yes
18741 hardcode_shlibpath_var_CXX=unsupported
18742 whole_archive_flag_spec_CXX=''
18743 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018744
Reid Spencer2706f8c2004-09-19 23:53:36 +000018745 if test "$GXX" = yes ; then
18746 lt_int_apple_cc_single_mod=no
18747 output_verbose_link_cmd='echo'
18748 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18749 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018750 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018751 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018752 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 +000018753 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018754 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 +000018755 fi
18756 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018757 # 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 +000018758 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018759 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 +000018760 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018761 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 +000018762 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018763 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 +000018764 else
Reid Spencera773bd52006-08-04 18:18:08 +000018765 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018766 xlc*)
18767 output_verbose_link_cmd='echo'
18768 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'
18769 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018770 # 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 +000018771 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}'
18772 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 +000018773 ;;
18774 *)
18775 ld_shlibs_CXX=no
18776 ;;
18777 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018778 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018779 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018780
18781 dgux*)
18782 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018783 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018784 # FIXME: insert proper C++ library support
18785 ld_shlibs_CXX=no
18786 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018787 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018788 # Green Hills C++ Compiler
18789 # FIXME: insert proper C++ library support
18790 ld_shlibs_CXX=no
18791 ;;
18792 *)
18793 # FIXME: insert proper C++ library support
18794 ld_shlibs_CXX=no
18795 ;;
18796 esac
18797 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018798 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018799 # C++ shared libraries reported to be fairly broken before switch to ELF
18800 ld_shlibs_CXX=no
18801 ;;
18802 freebsd-elf*)
18803 archive_cmds_need_lc_CXX=no
18804 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018805 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018806 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18807 # conventions
18808 ld_shlibs_CXX=yes
18809 ;;
18810 gnu*)
18811 ;;
18812 hpux9*)
18813 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18814 hardcode_libdir_separator_CXX=:
18815 export_dynamic_flag_spec_CXX='${wl}-E'
18816 hardcode_direct_CXX=yes
18817 hardcode_minus_L_CXX=yes # Not in the search PATH,
18818 # but as the default
18819 # location of the library.
18820
18821 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018822 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018823 # FIXME: insert proper C++ library support
18824 ld_shlibs_CXX=no
18825 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018826 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018827 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 +000018828 # Commands to make compiler produce verbose output that lists
18829 # what "hidden" libraries, object files and flags are used when
18830 # linking a shared library.
18831 #
18832 # There doesn't appear to be a way to prevent this compiler from
18833 # explicitly linking system object files so we need to strip them
18834 # from the output so that they don't get included in the library
18835 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018836 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 +000018837 ;;
18838 *)
18839 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018840 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 +000018841 else
18842 # FIXME: insert proper C++ library support
18843 ld_shlibs_CXX=no
18844 fi
18845 ;;
18846 esac
18847 ;;
18848 hpux10*|hpux11*)
18849 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018850 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18851 hardcode_libdir_separator_CXX=:
18852
18853 case $host_cpu in
18854 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018855 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018856 ;;
18857 *)
John Criswell47fdd832003-07-14 16:52:07 +000018858 export_dynamic_flag_spec_CXX='${wl}-E'
18859 ;;
18860 esac
18861 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018862 case $host_cpu in
18863 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018864 hardcode_direct_CXX=no
18865 hardcode_shlibpath_var_CXX=no
18866 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018867 *)
18868 hardcode_direct_CXX=yes
18869 hardcode_minus_L_CXX=yes # Not in the search PATH,
18870 # but as the default
18871 # location of the library.
18872 ;;
18873 esac
18874
18875 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018876 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018877 # FIXME: insert proper C++ library support
18878 ld_shlibs_CXX=no
18879 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018880 aCC*)
18881 case $host_cpu in
18882 hppa*64*)
18883 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18884 ;;
18885 ia64*)
18886 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 +000018887 ;;
18888 *)
18889 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18890 ;;
18891 esac
18892 # Commands to make compiler produce verbose output that lists
18893 # what "hidden" libraries, object files and flags are used when
18894 # linking a shared library.
18895 #
18896 # There doesn't appear to be a way to prevent this compiler from
18897 # explicitly linking system object files so we need to strip them
18898 # from the output so that they don't get included in the library
18899 # dependencies.
18900 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'
18901 ;;
18902 *)
18903 if test "$GXX" = yes; then
18904 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018905 case $host_cpu in
18906 hppa*64*)
18907 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18908 ;;
18909 ia64*)
18910 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 +000018911 ;;
18912 *)
18913 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'
18914 ;;
18915 esac
18916 fi
18917 else
18918 # FIXME: insert proper C++ library support
18919 ld_shlibs_CXX=no
18920 fi
18921 ;;
18922 esac
18923 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018924 interix3*)
18925 hardcode_direct_CXX=no
18926 hardcode_shlibpath_var_CXX=no
18927 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18928 export_dynamic_flag_spec_CXX='${wl}-E'
18929 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18930 # Instead, shared libraries are loaded at an image base (0x10000000 by
18931 # default) and relocated if they conflict, which is a slow very memory
18932 # consuming and fragmenting process. To avoid this, we pick a random,
18933 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18934 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18935 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'
18936 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'
18937 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018938 irix5* | irix6*)
18939 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018940 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018941 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018942 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 +000018943
18944 # Archives containing C++ object files must be created using
18945 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18946 # necessary to make sure instantiated templates are included
18947 # in the archive.
18948 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18949 ;;
18950 *)
18951 if test "$GXX" = yes; then
18952 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018953 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 +000018954 else
18955 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'
18956 fi
18957 fi
18958 link_all_deplibs_CXX=yes
18959 ;;
18960 esac
18961 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18962 hardcode_libdir_separator_CXX=:
18963 ;;
18964 linux*)
18965 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018966 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018967 # Kuck and Associates, Inc. (KAI) C++ Compiler
18968
18969 # KCC will only create a shared library if the output file
18970 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18971 # to its proper name (with version) after linking.
18972 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'
18973 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'
18974 # Commands to make compiler produce verbose output that lists
18975 # what "hidden" libraries, object files and flags are used when
18976 # linking a shared library.
18977 #
18978 # There doesn't appear to be a way to prevent this compiler from
18979 # explicitly linking system object files so we need to strip them
18980 # from the output so that they don't get included in the library
18981 # dependencies.
18982 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'
18983
18984 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18985 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18986
18987 # Archives containing C++ object files must be created using
18988 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18989 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18990 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018991 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018992 # Intel C++
18993 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018994 # version 8.0 and above of icpc choke on multiply defined symbols
18995 # if we add $predep_objects and $postdep_objects, however 7.1 and
18996 # earlier do not add the objects themselves.
18997 case `$CC -V 2>&1` in
18998 *"Version 7."*)
18999 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19000 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'
19001 ;;
19002 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019003 tmp_idyn=
19004 case $host_cpu in
19005 ia64*) tmp_idyn=' -i_dynamic';;
19006 esac
19007 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19008 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 +000019009 ;;
19010 esac
John Criswell47fdd832003-07-14 16:52:07 +000019011 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019012 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19013 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19014 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19015 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019016 pgCC*)
19017 # Portland Group C++ compiler
19018 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19019 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'
19020
19021 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19022 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19023 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'
19024 ;;
19025 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019026 # Compaq C++
19027 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19028 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'
19029
19030 runpath_var=LD_RUN_PATH
19031 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19032 hardcode_libdir_separator_CXX=:
19033
19034 # Commands to make compiler produce verbose output that lists
19035 # what "hidden" libraries, object files and flags are used when
19036 # linking a shared library.
19037 #
19038 # There doesn't appear to be a way to prevent this compiler from
19039 # explicitly linking system object files so we need to strip them
19040 # from the output so that they don't get included in the library
19041 # dependencies.
19042 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'
19043 ;;
19044 esac
19045 ;;
19046 lynxos*)
19047 # FIXME: insert proper C++ library support
19048 ld_shlibs_CXX=no
19049 ;;
19050 m88k*)
19051 # FIXME: insert proper C++ library support
19052 ld_shlibs_CXX=no
19053 ;;
19054 mvs*)
19055 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019056 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019057 # FIXME: insert proper C++ library support
19058 ld_shlibs_CXX=no
19059 ;;
19060 *)
19061 # FIXME: insert proper C++ library support
19062 ld_shlibs_CXX=no
19063 ;;
19064 esac
19065 ;;
19066 netbsd*)
19067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19068 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19069 wlarc=
19070 hardcode_libdir_flag_spec_CXX='-R$libdir'
19071 hardcode_direct_CXX=yes
19072 hardcode_shlibpath_var_CXX=no
19073 fi
19074 # Workaround some broken pre-1.5 toolchains
19075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19076 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019077 openbsd2*)
19078 # C++ shared libraries are fairly broken
19079 ld_shlibs_CXX=no
19080 ;;
19081 openbsd*)
19082 hardcode_direct_CXX=yes
19083 hardcode_shlibpath_var_CXX=no
19084 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19085 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19086 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19087 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19088 export_dynamic_flag_spec_CXX='${wl}-E'
19089 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19090 fi
19091 output_verbose_link_cmd='echo'
19092 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019093 osf3*)
19094 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019095 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019096 # Kuck and Associates, Inc. (KAI) C++ Compiler
19097
19098 # KCC will only create a shared library if the output file
19099 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19100 # to its proper name (with version) after linking.
19101 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'
19102
19103 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19104 hardcode_libdir_separator_CXX=:
19105
19106 # Archives containing C++ object files must be created using
19107 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19108 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19109
19110 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019111 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019112 # Rational C++ 2.4.1
19113 # FIXME: insert proper C++ library support
19114 ld_shlibs_CXX=no
19115 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019116 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019117 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019118 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 +000019119
19120 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19121 hardcode_libdir_separator_CXX=:
19122
19123 # Commands to make compiler produce verbose output that lists
19124 # what "hidden" libraries, object files and flags are used when
19125 # linking a shared library.
19126 #
19127 # There doesn't appear to be a way to prevent this compiler from
19128 # explicitly linking system object files so we need to strip them
19129 # from the output so that they don't get included in the library
19130 # dependencies.
19131 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'
19132 ;;
19133 *)
19134 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19135 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019136 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 +000019137
19138 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19139 hardcode_libdir_separator_CXX=:
19140
19141 # Commands to make compiler produce verbose output that lists
19142 # what "hidden" libraries, object files and flags are used when
19143 # linking a shared library.
19144 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19145
19146 else
19147 # FIXME: insert proper C++ library support
19148 ld_shlibs_CXX=no
19149 fi
19150 ;;
19151 esac
19152 ;;
19153 osf4* | osf5*)
19154 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019155 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019156 # Kuck and Associates, Inc. (KAI) C++ Compiler
19157
19158 # KCC will only create a shared library if the output file
19159 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19160 # to its proper name (with version) after linking.
19161 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'
19162
19163 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19164 hardcode_libdir_separator_CXX=:
19165
19166 # Archives containing C++ object files must be created using
19167 # the KAI C++ compiler.
19168 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19169 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019170 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019171 # Rational C++ 2.4.1
19172 # FIXME: insert proper C++ library support
19173 ld_shlibs_CXX=no
19174 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019175 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019176 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019177 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 +000019178 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19179 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019180 $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 +000019181 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019182
19183 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19184 hardcode_libdir_separator_CXX=:
19185
19186 # Commands to make compiler produce verbose output that lists
19187 # what "hidden" libraries, object files and flags are used when
19188 # linking a shared library.
19189 #
19190 # There doesn't appear to be a way to prevent this compiler from
19191 # explicitly linking system object files so we need to strip them
19192 # from the output so that they don't get included in the library
19193 # dependencies.
19194 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'
19195 ;;
19196 *)
19197 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19198 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019199 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 +000019200
19201 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19202 hardcode_libdir_separator_CXX=:
19203
19204 # Commands to make compiler produce verbose output that lists
19205 # what "hidden" libraries, object files and flags are used when
19206 # linking a shared library.
19207 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19208
19209 else
19210 # FIXME: insert proper C++ library support
19211 ld_shlibs_CXX=no
19212 fi
19213 ;;
19214 esac
19215 ;;
19216 psos*)
19217 # FIXME: insert proper C++ library support
19218 ld_shlibs_CXX=no
19219 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019220 sunos4*)
19221 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019222 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019223 # Sun C++ 4.x
19224 # FIXME: insert proper C++ library support
19225 ld_shlibs_CXX=no
19226 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019227 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019228 # Lucid
19229 # FIXME: insert proper C++ library support
19230 ld_shlibs_CXX=no
19231 ;;
19232 *)
19233 # FIXME: insert proper C++ library support
19234 ld_shlibs_CXX=no
19235 ;;
19236 esac
19237 ;;
19238 solaris*)
19239 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019240 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019241 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019242 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019243 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019244 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 +000019245 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 +000019246 $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 +000019247
19248 hardcode_libdir_flag_spec_CXX='-R$libdir'
19249 hardcode_shlibpath_var_CXX=no
19250 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019251 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019252 *)
19253 # The C++ compiler is used as linker so we must use $wl
19254 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019255 # linker. We must also pass each convience library through
19256 # to the system linker between allextract/defaultextract.
19257 # The C++ compiler will combine linker options so we
19258 # cannot just pass the convience library names through
19259 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019260 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019261 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 +000019262 ;;
19263 esac
19264 link_all_deplibs_CXX=yes
19265
Reid Spencera773bd52006-08-04 18:18:08 +000019266 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019267
19268 # Archives containing C++ object files must be created using
19269 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19270 # necessary to make sure instantiated templates are included
19271 # in the archive.
19272 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19273 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019274 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019275 # Green Hills C++ Compiler
19276 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19277
19278 # The C++ compiler must be used to create the archive.
19279 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19280 ;;
19281 *)
19282 # GNU C++ compiler with Solaris linker
19283 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19284 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19285 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019286 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 +000019287 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19288 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19289
John Criswell47fdd832003-07-14 16:52:07 +000019290 # Commands to make compiler produce verbose output that lists
19291 # what "hidden" libraries, object files and flags are used when
19292 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019293 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019294 else
19295 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19296 # platform.
19297 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 +000019298 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19299 $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 +000019300
19301 # Commands to make compiler produce verbose output that lists
19302 # what "hidden" libraries, object files and flags are used when
19303 # linking a shared library.
19304 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19305 fi
19306
19307 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19308 fi
19309 ;;
19310 esac
19311 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019312 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19313 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019314 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019315 hardcode_shlibpath_var_CXX=no
19316 runpath_var='LD_RUN_PATH'
19317
19318 case $cc_basename in
19319 CC*)
19320 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19321 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19322 ;;
19323 *)
19324 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19325 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19326 ;;
19327 esac
19328 ;;
19329 sysv5* | sco3.2v5* | sco5v6*)
19330 # Note: We can NOT use -z defs as we might desire, because we do not
19331 # link with -lc, and that would cause any symbols used from libc to
19332 # always be unresolved, which means just about no library would
19333 # ever link correctly. If we're not using GNU ld we use -z text
19334 # though, which does catch some bad symbols but isn't as heavy-handed
19335 # as -z defs.
19336 # For security reasons, it is highly recommended that you always
19337 # use absolute paths for naming shared libraries, and exclude the
19338 # DT_RUNPATH tag from executables and libraries. But doing so
19339 # requires that you compile everything twice, which is a pain.
19340 # So that behaviour is only enabled if SCOABSPATH is set to a
19341 # non-empty value in the environment. Most likely only useful for
19342 # creating official distributions of packages.
19343 # This is a hack until libtool officially supports absolute path
19344 # names for shared libraries.
19345 no_undefined_flag_CXX='${wl}-z,text'
19346 allow_undefined_flag_CXX='${wl}-z,nodefs'
19347 archive_cmds_need_lc_CXX=no
19348 hardcode_shlibpath_var_CXX=no
19349 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19350 hardcode_libdir_separator_CXX=':'
19351 link_all_deplibs_CXX=yes
19352 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19353 runpath_var='LD_RUN_PATH'
19354
19355 case $cc_basename in
19356 CC*)
19357 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19358 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19359 ;;
19360 *)
19361 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19362 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19363 ;;
19364 esac
John Criswell47fdd832003-07-14 16:52:07 +000019365 ;;
19366 tandem*)
19367 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019368 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019369 # NonStop-UX NCC 3.20
19370 # FIXME: insert proper C++ library support
19371 ld_shlibs_CXX=no
19372 ;;
19373 *)
19374 # FIXME: insert proper C++ library support
19375 ld_shlibs_CXX=no
19376 ;;
19377 esac
19378 ;;
19379 vxworks*)
19380 # FIXME: insert proper C++ library support
19381 ld_shlibs_CXX=no
19382 ;;
19383 *)
19384 # FIXME: insert proper C++ library support
19385 ld_shlibs_CXX=no
19386 ;;
19387esac
Reid Spencera773bd52006-08-04 18:18:08 +000019388{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19389echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019390test "$ld_shlibs_CXX" = no && can_build_shared=no
19391
19392GCC_CXX="$GXX"
19393LD_CXX="$LD"
19394
John Criswell47fdd832003-07-14 16:52:07 +000019395
19396cat > conftest.$ac_ext <<EOF
19397class Foo
19398{
19399public:
19400 Foo (void) { a = 0; }
19401private:
19402 int a;
19403};
19404EOF
19405
19406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19407 (eval $ac_compile) 2>&5
19408 ac_status=$?
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; then
19411 # Parse the compiler output and extract the necessary
19412 # objects, libraries and library flags.
19413
19414 # Sentinel used to keep track of whether or not we are before
19415 # the conftest object file.
19416 pre_test_object_deps_done=no
19417
19418 # The `*' in the case matches for architectures that use `case' in
19419 # $output_verbose_cmd can trigger glob expansion during the loop
19420 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019421 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019422
19423 for p in `eval $output_verbose_link_cmd`; do
19424 case $p in
19425
19426 -L* | -R* | -l*)
19427 # Some compilers place space between "-{L,R}" and the path.
19428 # Remove the space.
19429 if test $p = "-L" \
19430 || test $p = "-R"; then
19431 prev=$p
19432 continue
19433 else
19434 prev=
19435 fi
19436
19437 if test "$pre_test_object_deps_done" = no; then
19438 case $p in
19439 -L* | -R*)
19440 # Internal compiler library paths should come after those
19441 # provided the user. The postdeps already come after the
19442 # user supplied libs so there is no need to process them.
19443 if test -z "$compiler_lib_search_path_CXX"; then
19444 compiler_lib_search_path_CXX="${prev}${p}"
19445 else
19446 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19447 fi
19448 ;;
19449 # The "-l" case would never come before the object being
19450 # linked, so don't bother handling this case.
19451 esac
19452 else
19453 if test -z "$postdeps_CXX"; then
19454 postdeps_CXX="${prev}${p}"
19455 else
19456 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19457 fi
19458 fi
19459 ;;
19460
19461 *.$objext)
19462 # This assumes that the test object file only shows up
19463 # once in the compiler output.
19464 if test "$p" = "conftest.$objext"; then
19465 pre_test_object_deps_done=yes
19466 continue
19467 fi
19468
19469 if test "$pre_test_object_deps_done" = no; then
19470 if test -z "$predep_objects_CXX"; then
19471 predep_objects_CXX="$p"
19472 else
19473 predep_objects_CXX="$predep_objects_CXX $p"
19474 fi
19475 else
19476 if test -z "$postdep_objects_CXX"; then
19477 postdep_objects_CXX="$p"
19478 else
19479 postdep_objects_CXX="$postdep_objects_CXX $p"
19480 fi
19481 fi
19482 ;;
19483
19484 *) ;; # Ignore the rest.
19485
19486 esac
19487 done
19488
19489 # Clean up.
19490 rm -f a.out a.exe
19491else
19492 echo "libtool.m4: error: problem compiling CXX test program"
19493fi
19494
19495$rm -f confest.$objext
19496
Reid Spencera773bd52006-08-04 18:18:08 +000019497# PORTME: override above test on systems where it is broken
19498case $host_os in
19499interix3*)
19500 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19501 # hack all around it, let's just trust "g++" to DTRT.
19502 predep_objects_CXX=
19503 postdep_objects_CXX=
19504 postdeps_CXX=
19505 ;;
19506
19507solaris*)
19508 case $cc_basename in
19509 CC*)
19510 # Adding this requires a known-good setup of shared libraries for
19511 # Sun compiler versions before 5.6, else PIC objects from an old
19512 # archive will be linked into the output, leading to subtle bugs.
19513 postdeps_CXX='-lCstd -lCrun'
19514 ;;
19515 esac
19516 ;;
19517esac
19518
19519
John Criswell47fdd832003-07-14 16:52:07 +000019520case " $postdeps_CXX " in
19521*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19522esac
19523
19524lt_prog_compiler_wl_CXX=
19525lt_prog_compiler_pic_CXX=
19526lt_prog_compiler_static_CXX=
19527
Reid Spencera773bd52006-08-04 18:18:08 +000019528{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19529echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019530
19531 # C++ specific cases for pic, static, wl, etc.
19532 if test "$GXX" = yes; then
19533 lt_prog_compiler_wl_CXX='-Wl,'
19534 lt_prog_compiler_static_CXX='-static'
19535
19536 case $host_os in
19537 aix*)
19538 # All AIX code is PIC.
19539 if test "$host_cpu" = ia64; then
19540 # AIX 5 now supports IA64 processor
19541 lt_prog_compiler_static_CXX='-Bstatic'
19542 fi
19543 ;;
19544 amigaos*)
19545 # FIXME: we need at least 68020 code to build shared libraries, but
19546 # adding the `-m68020' flag to GCC prevents building anything better,
19547 # like `-m68040'.
19548 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19549 ;;
19550 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19551 # PIC is the default for these OSes.
19552 ;;
19553 mingw* | os2* | pw32*)
19554 # This hack is so that the source file can tell whether it is being
19555 # built for inclusion in a dll (and should export symbols for example).
19556 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19557 ;;
19558 darwin* | rhapsody*)
19559 # PIC is the default on this platform
19560 # Common symbols not allowed in MH_DYLIB files
19561 lt_prog_compiler_pic_CXX='-fno-common'
19562 ;;
19563 *djgpp*)
19564 # DJGPP does not support shared libraries at all
19565 lt_prog_compiler_pic_CXX=
19566 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019567 interix3*)
19568 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19569 # Instead, we relocate shared libraries at runtime.
19570 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019571 sysv4*MP*)
19572 if test -d /usr/nec; then
19573 lt_prog_compiler_pic_CXX=-Kconform_pic
19574 fi
19575 ;;
19576 hpux*)
19577 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19578 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019579 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019580 hppa*64*|ia64*)
19581 ;;
19582 *)
19583 lt_prog_compiler_pic_CXX='-fPIC'
19584 ;;
19585 esac
19586 ;;
19587 *)
19588 lt_prog_compiler_pic_CXX='-fPIC'
19589 ;;
19590 esac
19591 else
19592 case $host_os in
19593 aix4* | aix5*)
19594 # All AIX code is PIC.
19595 if test "$host_cpu" = ia64; then
19596 # AIX 5 now supports IA64 processor
19597 lt_prog_compiler_static_CXX='-Bstatic'
19598 else
19599 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19600 fi
19601 ;;
19602 chorus*)
19603 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019604 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019605 # Green Hills C++ Compiler
19606 # _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"
19607 ;;
19608 esac
19609 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019610 darwin*)
19611 # PIC is the default on this platform
19612 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019613 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019614 xlc*)
19615 lt_prog_compiler_pic_CXX='-qnocommon'
19616 lt_prog_compiler_wl_CXX='-Wl,'
19617 ;;
19618 esac
19619 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019620 dgux*)
19621 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019622 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019623 lt_prog_compiler_pic_CXX='-KPIC'
19624 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019625 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019626 # Green Hills C++ Compiler
19627 lt_prog_compiler_pic_CXX='-pic'
19628 ;;
19629 *)
19630 ;;
19631 esac
19632 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019633 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019634 # FreeBSD uses GNU C++
19635 ;;
19636 hpux9* | hpux10* | hpux11*)
19637 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019638 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019639 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019640 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019641 if test "$host_cpu" != ia64; then
19642 lt_prog_compiler_pic_CXX='+Z'
19643 fi
19644 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019645 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019646 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019647 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19648 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019649 hppa*64*|ia64*)
19650 # +Z the default
19651 ;;
19652 *)
19653 lt_prog_compiler_pic_CXX='+Z'
19654 ;;
19655 esac
19656 ;;
19657 *)
19658 ;;
19659 esac
19660 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019661 interix*)
19662 # This is c89, which is MS Visual C++ (no shared libs)
19663 # Anyone wants to do a port?
19664 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019665 irix5* | irix6* | nonstopux*)
19666 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019667 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019668 lt_prog_compiler_wl_CXX='-Wl,'
19669 lt_prog_compiler_static_CXX='-non_shared'
19670 # CC pic flag -KPIC is the default.
19671 ;;
19672 *)
19673 ;;
19674 esac
19675 ;;
19676 linux*)
19677 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019678 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019679 # KAI C++ Compiler
19680 lt_prog_compiler_wl_CXX='--backend -Wl,'
19681 lt_prog_compiler_pic_CXX='-fPIC'
19682 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019683 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019684 # Intel C++
19685 lt_prog_compiler_wl_CXX='-Wl,'
19686 lt_prog_compiler_pic_CXX='-KPIC'
19687 lt_prog_compiler_static_CXX='-static'
19688 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019689 pgCC*)
19690 # Portland Group C++ compiler.
19691 lt_prog_compiler_wl_CXX='-Wl,'
19692 lt_prog_compiler_pic_CXX='-fpic'
19693 lt_prog_compiler_static_CXX='-Bstatic'
19694 ;;
19695 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019696 # Compaq C++
19697 # Make sure the PIC flag is empty. It appears that all Alpha
19698 # Linux and Compaq Tru64 Unix objects are PIC.
19699 lt_prog_compiler_pic_CXX=
19700 lt_prog_compiler_static_CXX='-non_shared'
19701 ;;
19702 *)
19703 ;;
19704 esac
19705 ;;
19706 lynxos*)
19707 ;;
19708 m88k*)
19709 ;;
19710 mvs*)
19711 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019712 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019713 lt_prog_compiler_pic_CXX='-W c,exportall'
19714 ;;
19715 *)
19716 ;;
19717 esac
19718 ;;
19719 netbsd*)
19720 ;;
19721 osf3* | osf4* | osf5*)
19722 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019723 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019724 lt_prog_compiler_wl_CXX='--backend -Wl,'
19725 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019726 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019727 # Rational C++ 2.4.1
19728 lt_prog_compiler_pic_CXX='-pic'
19729 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019730 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019731 # Digital/Compaq C++
19732 lt_prog_compiler_wl_CXX='-Wl,'
19733 # Make sure the PIC flag is empty. It appears that all Alpha
19734 # Linux and Compaq Tru64 Unix objects are PIC.
19735 lt_prog_compiler_pic_CXX=
19736 lt_prog_compiler_static_CXX='-non_shared'
19737 ;;
19738 *)
19739 ;;
19740 esac
19741 ;;
19742 psos*)
19743 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019744 solaris*)
19745 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019746 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019747 # Sun C++ 4.2, 5.x and Centerline C++
19748 lt_prog_compiler_pic_CXX='-KPIC'
19749 lt_prog_compiler_static_CXX='-Bstatic'
19750 lt_prog_compiler_wl_CXX='-Qoption ld '
19751 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019752 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019753 # Green Hills C++ Compiler
19754 lt_prog_compiler_pic_CXX='-PIC'
19755 ;;
19756 *)
19757 ;;
19758 esac
19759 ;;
19760 sunos4*)
19761 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019762 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019763 # Sun C++ 4.x
19764 lt_prog_compiler_pic_CXX='-pic'
19765 lt_prog_compiler_static_CXX='-Bstatic'
19766 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019767 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019768 # Lucid
19769 lt_prog_compiler_pic_CXX='-pic'
19770 ;;
19771 *)
19772 ;;
19773 esac
19774 ;;
19775 tandem*)
19776 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019777 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019778 # NonStop-UX NCC 3.20
19779 lt_prog_compiler_pic_CXX='-KPIC'
19780 ;;
19781 *)
19782 ;;
19783 esac
19784 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019785 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19786 case $cc_basename in
19787 CC*)
19788 lt_prog_compiler_wl_CXX='-Wl,'
19789 lt_prog_compiler_pic_CXX='-KPIC'
19790 lt_prog_compiler_static_CXX='-Bstatic'
19791 ;;
19792 esac
John Criswell47fdd832003-07-14 16:52:07 +000019793 ;;
19794 vxworks*)
19795 ;;
19796 *)
19797 lt_prog_compiler_can_build_shared_CXX=no
19798 ;;
19799 esac
19800 fi
19801
Reid Spencera773bd52006-08-04 18:18:08 +000019802{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19803echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019804
19805#
19806# Check to make sure the PIC flag actually works.
19807#
19808if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019809
Reid Spencera773bd52006-08-04 18:18:08 +000019810{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19811echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019812if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19813 echo $ECHO_N "(cached) $ECHO_C" >&6
19814else
19815 lt_prog_compiler_pic_works_CXX=no
19816 ac_outfile=conftest.$ac_objext
19817 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19818 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19819 # Insert the option either (1) after the last *FLAGS variable, or
19820 # (2) before a word containing "conftest.", or (3) at the end.
19821 # Note that $ac_compile itself does not contain backslashes and begins
19822 # with a dollar sign (not a hyphen), so the echo should work correctly.
19823 # The option is referenced via a variable to avoid confusing sed.
19824 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19827 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000019828 (eval echo "\"\$as_me:19828: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019829 (eval "$lt_compile" 2>conftest.err)
19830 ac_status=$?
19831 cat conftest.err >&5
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000019832 echo "$as_me:19832: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019833 if (exit $ac_status) && test -s "$ac_outfile"; then
19834 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019835 # So say no if there are warnings other than the usual output.
19836 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019839 lt_prog_compiler_pic_works_CXX=yes
19840 fi
19841 fi
19842 $rm conftest*
19843
19844fi
Reid Spencera773bd52006-08-04 18:18:08 +000019845{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19846echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019847
19848if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19849 case $lt_prog_compiler_pic_CXX in
19850 "" | " "*) ;;
19851 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19852 esac
19853else
19854 lt_prog_compiler_pic_CXX=
19855 lt_prog_compiler_can_build_shared_CXX=no
19856fi
19857
19858fi
Reid Spencera773bd52006-08-04 18:18:08 +000019859case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019860 # For platforms which do not support PIC, -DPIC is meaningless:
19861 *djgpp*)
19862 lt_prog_compiler_pic_CXX=
19863 ;;
19864 *)
19865 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19866 ;;
19867esac
19868
Reid Spencera773bd52006-08-04 18:18:08 +000019869#
19870# Check to make sure the static flag actually works.
19871#
19872wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19873{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19874echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19875if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19877else
19878 lt_prog_compiler_static_works_CXX=no
19879 save_LDFLAGS="$LDFLAGS"
19880 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19881 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19882 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19883 # The linker can only warn and ignore the option if not recognized
19884 # So say no if there are warnings
19885 if test -s conftest.err; then
19886 # Append any errors to the config.log.
19887 cat conftest.err 1>&5
19888 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19889 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19890 if diff conftest.exp conftest.er2 >/dev/null; then
19891 lt_prog_compiler_static_works_CXX=yes
19892 fi
19893 else
19894 lt_prog_compiler_static_works_CXX=yes
19895 fi
19896 fi
19897 $rm conftest*
19898 LDFLAGS="$save_LDFLAGS"
19899
19900fi
19901{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19902echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19903
19904if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19905 :
19906else
19907 lt_prog_compiler_static_CXX=
19908fi
19909
19910
19911{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19912echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019913if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19915else
19916 lt_cv_prog_compiler_c_o_CXX=no
19917 $rm -r conftest 2>/dev/null
19918 mkdir conftest
19919 cd conftest
19920 mkdir out
19921 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19922
John Criswell47fdd832003-07-14 16:52:07 +000019923 lt_compiler_flag="-o out/conftest2.$ac_objext"
19924 # Insert the option either (1) after the last *FLAGS variable, or
19925 # (2) before a word containing "conftest.", or (3) at the end.
19926 # Note that $ac_compile itself does not contain backslashes and begins
19927 # with a dollar sign (not a hyphen), so the echo should work correctly.
19928 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19931 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000019932 (eval echo "\"\$as_me:19932: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019933 (eval "$lt_compile" 2>out/conftest.err)
19934 ac_status=$?
19935 cat out/conftest.err >&5
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000019936 echo "$as_me:19936: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019937 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19938 then
19939 # The compiler can only warn and ignore the option if not recognized
19940 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019941 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19942 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19943 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019944 lt_cv_prog_compiler_c_o_CXX=yes
19945 fi
19946 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019947 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019948 $rm conftest*
19949 # SGI C++ compiler will create directory out/ii_files/ for
19950 # template instantiation
19951 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19952 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019953 cd ..
19954 rmdir conftest
19955 $rm conftest*
19956
19957fi
Reid Spencera773bd52006-08-04 18:18:08 +000019958{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19959echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019960
19961
19962hard_links="nottested"
19963if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19964 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019965 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19966echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019967 hard_links=yes
19968 $rm conftest*
19969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19970 touch conftest.a
19971 ln conftest.a conftest.b 2>&5 || hard_links=no
19972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019973 { echo "$as_me:$LINENO: result: $hard_links" >&5
19974echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019975 if test "$hard_links" = no; then
19976 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19977echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19978 need_locks=warn
19979 fi
19980else
19981 need_locks=no
19982fi
19983
Reid Spencera773bd52006-08-04 18:18:08 +000019984{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19985echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019986
19987 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19988 case $host_os in
19989 aix4* | aix5*)
19990 # If we're using GNU nm, then we don't want the "-C" option.
19991 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19992 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19993 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'
19994 else
19995 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'
19996 fi
19997 ;;
19998 pw32*)
19999 export_symbols_cmds_CXX="$ltdll_cmds"
20000 ;;
20001 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020002 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 +000020003 ;;
20004 *)
20005 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20006 ;;
20007 esac
20008
Reid Spencera773bd52006-08-04 18:18:08 +000020009{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20010echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020011test "$ld_shlibs_CXX" = no && can_build_shared=no
20012
John Criswell47fdd832003-07-14 16:52:07 +000020013#
20014# Do we need to explicitly link libc?
20015#
20016case "x$archive_cmds_need_lc_CXX" in
20017x|xyes)
20018 # Assume -lc should be added
20019 archive_cmds_need_lc_CXX=yes
20020
20021 if test "$enable_shared" = yes && test "$GCC" = yes; then
20022 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020023 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020024 # FIXME: we may have to deal with multi-command sequences.
20025 ;;
20026 '$CC '*)
20027 # Test whether the compiler implicitly links with -lc since on some
20028 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20029 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020030 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20031echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020032 $rm conftest*
20033 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20034
20035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20036 (eval $ac_compile) 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } 2>conftest.err; then
20040 soname=conftest
20041 lib=conftest
20042 libobjs=conftest.$ac_objext
20043 deplibs=
20044 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020045 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020046 compiler_flags=-v
20047 linker_flags=-v
20048 verstring=
20049 output_objdir=.
20050 libname=conftest
20051 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20052 allow_undefined_flag_CXX=
20053 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20054 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20055 ac_status=$?
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }
20058 then
20059 archive_cmds_need_lc_CXX=no
20060 else
20061 archive_cmds_need_lc_CXX=yes
20062 fi
20063 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20064 else
20065 cat conftest.err 1>&5
20066 fi
20067 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020068 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20069echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020070 ;;
20071 esac
20072 fi
20073 ;;
20074esac
20075
Reid Spencera773bd52006-08-04 18:18:08 +000020076{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20077echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020078library_names_spec=
20079libname_spec='lib$name'
20080soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020081shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020082postinstall_cmds=
20083postuninstall_cmds=
20084finish_cmds=
20085finish_eval=
20086shlibpath_var=
20087shlibpath_overrides_runpath=unknown
20088version_type=none
20089dynamic_linker="$host_os ld.so"
20090sys_lib_dlsearch_path_spec="/lib /usr/lib"
20091if test "$GCC" = yes; then
20092 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20093 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20094 # if the path contains ";" then we assume it to be the separator
20095 # otherwise default to the standard path separator (i.e. ":") - it is
20096 # assumed that no part of a normal pathname contains ";" but that should
20097 # okay in the real world where ";" in dirpaths is itself problematic.
20098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20099 else
20100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20101 fi
20102else
20103 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20104fi
20105need_lib_prefix=unknown
20106hardcode_into_libs=no
20107
20108# when you set need_version to no, make sure it does not cause -set_version
20109# flags to be left without arguments
20110need_version=unknown
20111
20112case $host_os in
20113aix3*)
20114 version_type=linux
20115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20116 shlibpath_var=LIBPATH
20117
20118 # AIX 3 has no versioning support, so we append a major version to the name.
20119 soname_spec='${libname}${release}${shared_ext}$major'
20120 ;;
20121
20122aix4* | aix5*)
20123 version_type=linux
20124 need_lib_prefix=no
20125 need_version=no
20126 hardcode_into_libs=yes
20127 if test "$host_cpu" = ia64; then
20128 # AIX 5 supports IA64
20129 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20130 shlibpath_var=LD_LIBRARY_PATH
20131 else
20132 # With GCC up to 2.95.x, collect2 would create an import file
20133 # for dependence libraries. The import file would start with
20134 # the line `#! .'. This would cause the generated library to
20135 # depend on `.', always an invalid library. This was fixed in
20136 # development snapshots of GCC prior to 3.0.
20137 case $host_os in
20138 aix4 | aix4.[01] | aix4.[01].*)
20139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20140 echo ' yes '
20141 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20142 :
20143 else
20144 can_build_shared=no
20145 fi
20146 ;;
20147 esac
20148 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20149 # soname into executable. Probably we can add versioning support to
20150 # collect2, so additional links can be useful in future.
20151 if test "$aix_use_runtimelinking" = yes; then
20152 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20153 # instead of lib<name>.a to let people know that these are not
20154 # typical AIX shared libraries.
20155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20156 else
20157 # We preserve .a as extension for shared libraries through AIX4.2
20158 # and later when we are not doing run time linking.
20159 library_names_spec='${libname}${release}.a $libname.a'
20160 soname_spec='${libname}${release}${shared_ext}$major'
20161 fi
20162 shlibpath_var=LIBPATH
20163 fi
20164 ;;
20165
20166amigaos*)
20167 library_names_spec='$libname.ixlibrary $libname.a'
20168 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020169 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 +000020170 ;;
20171
20172beos*)
20173 library_names_spec='${libname}${shared_ext}'
20174 dynamic_linker="$host_os ld.so"
20175 shlibpath_var=LIBRARY_PATH
20176 ;;
20177
Reid Spencer2706f8c2004-09-19 23:53:36 +000020178bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020179 version_type=linux
20180 need_version=no
20181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20182 soname_spec='${libname}${release}${shared_ext}$major'
20183 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20184 shlibpath_var=LD_LIBRARY_PATH
20185 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20186 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20187 # the default ld.so.conf also contains /usr/contrib/lib and
20188 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20189 # libtool to hard-code these into programs
20190 ;;
20191
20192cygwin* | mingw* | pw32*)
20193 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020194 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020195 need_version=no
20196 need_lib_prefix=no
20197
20198 case $GCC,$host_os in
20199 yes,cygwin* | yes,mingw* | yes,pw32*)
20200 library_names_spec='$libname.dll.a'
20201 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020202 postinstall_cmds='base_file=`basename \${file}`~
20203 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20204 dldir=$destdir/`dirname \$dlpath`~
20205 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020206 $install_prog $dir/$dlname \$dldir/$dlname~
20207 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020208 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20209 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020210 $rm \$dlpath'
20211 shlibpath_overrides_runpath=yes
20212
20213 case $host_os in
20214 cygwin*)
20215 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20216 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 +000020217 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020218 ;;
20219 mingw*)
20220 # MinGW DLLs use traditional 'lib' prefix
20221 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20222 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20223 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20224 # It is most probably a Windows format PATH printed by
20225 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20226 # path with ; separators, and with drive letters. We can handle the
20227 # drive letters (cygwin fileutils understands them), so leave them,
20228 # especially as we might pass files found there to a mingw objdump,
20229 # which wouldn't understand a cygwinified path. Ahh.
20230 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20231 else
20232 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20233 fi
20234 ;;
20235 pw32*)
20236 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020237 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 +000020238 ;;
20239 esac
20240 ;;
20241
20242 *)
20243 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20244 ;;
20245 esac
20246 dynamic_linker='Win32 ld.exe'
20247 # FIXME: first we should search . and the directory the executable is in
20248 shlibpath_var=PATH
20249 ;;
20250
20251darwin* | rhapsody*)
20252 dynamic_linker="$host_os dyld"
20253 version_type=darwin
20254 need_lib_prefix=no
20255 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020256 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020257 soname_spec='${libname}${release}${major}$shared_ext'
20258 shlibpath_overrides_runpath=yes
20259 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020260 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020261 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020262 if test "$GCC" = yes; then
20263 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"`
20264 else
20265 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020266 fi
20267 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20268 ;;
20269
20270dgux*)
20271 version_type=linux
20272 need_lib_prefix=no
20273 need_version=no
20274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20275 soname_spec='${libname}${release}${shared_ext}$major'
20276 shlibpath_var=LD_LIBRARY_PATH
20277 ;;
20278
20279freebsd1*)
20280 dynamic_linker=no
20281 ;;
20282
Reid Spencer2706f8c2004-09-19 23:53:36 +000020283kfreebsd*-gnu)
20284 version_type=linux
20285 need_lib_prefix=no
20286 need_version=no
20287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20288 soname_spec='${libname}${release}${shared_ext}$major'
20289 shlibpath_var=LD_LIBRARY_PATH
20290 shlibpath_overrides_runpath=no
20291 hardcode_into_libs=yes
20292 dynamic_linker='GNU ld.so'
20293 ;;
20294
Reid Spencera773bd52006-08-04 18:18:08 +000020295freebsd* | dragonfly*)
20296 # DragonFly does not have aout. When/if they implement a new
20297 # versioning mechanism, adjust this.
20298 if test -x /usr/bin/objformat; then
20299 objformat=`/usr/bin/objformat`
20300 else
20301 case $host_os in
20302 freebsd[123]*) objformat=aout ;;
20303 *) objformat=elf ;;
20304 esac
20305 fi
John Criswell47fdd832003-07-14 16:52:07 +000020306 version_type=freebsd-$objformat
20307 case $version_type in
20308 freebsd-elf*)
20309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20310 need_version=no
20311 need_lib_prefix=no
20312 ;;
20313 freebsd-*)
20314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20315 need_version=yes
20316 ;;
20317 esac
20318 shlibpath_var=LD_LIBRARY_PATH
20319 case $host_os in
20320 freebsd2*)
20321 shlibpath_overrides_runpath=yes
20322 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020323 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020324 shlibpath_overrides_runpath=yes
20325 hardcode_into_libs=yes
20326 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020327 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20328 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020329 shlibpath_overrides_runpath=no
20330 hardcode_into_libs=yes
20331 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020332 freebsd*) # from 4.6 on
20333 shlibpath_overrides_runpath=yes
20334 hardcode_into_libs=yes
20335 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020336 esac
20337 ;;
20338
20339gnu*)
20340 version_type=linux
20341 need_lib_prefix=no
20342 need_version=no
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20344 soname_spec='${libname}${release}${shared_ext}$major'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 hardcode_into_libs=yes
20347 ;;
20348
20349hpux9* | hpux10* | hpux11*)
20350 # Give a soname corresponding to the major version so that dld.sl refuses to
20351 # link against other versions.
20352 version_type=sunos
20353 need_lib_prefix=no
20354 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020355 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020356 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020357 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020358 hardcode_into_libs=yes
20359 dynamic_linker="$host_os dld.so"
20360 shlibpath_var=LD_LIBRARY_PATH
20361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20363 soname_spec='${libname}${release}${shared_ext}$major'
20364 if test "X$HPUX_IA64_MODE" = X32; then
20365 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20366 else
20367 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20368 fi
20369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20370 ;;
20371 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020372 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020373 hardcode_into_libs=yes
20374 dynamic_linker="$host_os dld.sl"
20375 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20378 soname_spec='${libname}${release}${shared_ext}$major'
20379 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20381 ;;
20382 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020383 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020384 dynamic_linker="$host_os dld.sl"
20385 shlibpath_var=SHLIB_PATH
20386 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20388 soname_spec='${libname}${release}${shared_ext}$major'
20389 ;;
20390 esac
20391 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20392 postinstall_cmds='chmod 555 $lib'
20393 ;;
20394
Reid Spencera773bd52006-08-04 18:18:08 +000020395interix3*)
20396 version_type=linux
20397 need_lib_prefix=no
20398 need_version=no
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20400 soname_spec='${libname}${release}${shared_ext}$major'
20401 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20402 shlibpath_var=LD_LIBRARY_PATH
20403 shlibpath_overrides_runpath=no
20404 hardcode_into_libs=yes
20405 ;;
20406
John Criswell47fdd832003-07-14 16:52:07 +000020407irix5* | irix6* | nonstopux*)
20408 case $host_os in
20409 nonstopux*) version_type=nonstopux ;;
20410 *)
20411 if test "$lt_cv_prog_gnu_ld" = yes; then
20412 version_type=linux
20413 else
20414 version_type=irix
20415 fi ;;
20416 esac
20417 need_lib_prefix=no
20418 need_version=no
20419 soname_spec='${libname}${release}${shared_ext}$major'
20420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20421 case $host_os in
20422 irix5* | nonstopux*)
20423 libsuff= shlibsuff=
20424 ;;
20425 *)
20426 case $LD in # libtool.m4 will add one of these switches to LD
20427 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20428 libsuff= shlibsuff= libmagic=32-bit;;
20429 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20430 libsuff=32 shlibsuff=N32 libmagic=N32;;
20431 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20432 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20433 *) libsuff= shlibsuff= libmagic=never-match;;
20434 esac
20435 ;;
20436 esac
20437 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20438 shlibpath_overrides_runpath=no
20439 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20440 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20441 hardcode_into_libs=yes
20442 ;;
20443
20444# No shared lib support for Linux oldld, aout, or coff.
20445linux*oldld* | linux*aout* | linux*coff*)
20446 dynamic_linker=no
20447 ;;
20448
20449# This must be Linux ELF.
20450linux*)
20451 version_type=linux
20452 need_lib_prefix=no
20453 need_version=no
20454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20455 soname_spec='${libname}${release}${shared_ext}$major'
20456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20457 shlibpath_var=LD_LIBRARY_PATH
20458 shlibpath_overrides_runpath=no
20459 # This implies no fast_install, which is unacceptable.
20460 # Some rework will be needed to allow for fast_install
20461 # before this can be enabled.
20462 hardcode_into_libs=yes
20463
Reid Spencer2706f8c2004-09-19 23:53:36 +000020464 # Append ld.so.conf contents to the search path
20465 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020466 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 +000020467 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20468 fi
20469
John Criswell47fdd832003-07-14 16:52:07 +000020470 # We used to test for /lib/ld.so.1 and disable shared libraries on
20471 # powerpc, because MkLinux only supported shared libraries with the
20472 # GNU dynamic linker. Since this was broken with cross compilers,
20473 # most powerpc-linux boxes support dynamic linking these days and
20474 # people can always --disable-shared, the test was removed, and we
20475 # assume the GNU/Linux dynamic linker is in use.
20476 dynamic_linker='GNU/Linux ld.so'
20477 ;;
20478
Reid Spencer2706f8c2004-09-19 23:53:36 +000020479knetbsd*-gnu)
20480 version_type=linux
20481 need_lib_prefix=no
20482 need_version=no
20483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20484 soname_spec='${libname}${release}${shared_ext}$major'
20485 shlibpath_var=LD_LIBRARY_PATH
20486 shlibpath_overrides_runpath=no
20487 hardcode_into_libs=yes
20488 dynamic_linker='GNU ld.so'
20489 ;;
20490
John Criswell47fdd832003-07-14 16:52:07 +000020491netbsd*)
20492 version_type=sunos
20493 need_lib_prefix=no
20494 need_version=no
20495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20498 dynamic_linker='NetBSD (a.out) ld.so'
20499 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020501 soname_spec='${libname}${release}${shared_ext}$major'
20502 dynamic_linker='NetBSD ld.elf_so'
20503 fi
20504 shlibpath_var=LD_LIBRARY_PATH
20505 shlibpath_overrides_runpath=yes
20506 hardcode_into_libs=yes
20507 ;;
20508
20509newsos6)
20510 version_type=linux
20511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20512 shlibpath_var=LD_LIBRARY_PATH
20513 shlibpath_overrides_runpath=yes
20514 ;;
20515
Reid Spencer2706f8c2004-09-19 23:53:36 +000020516nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020517 version_type=linux
20518 need_lib_prefix=no
20519 need_version=no
20520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20521 soname_spec='${libname}${release}${shared_ext}$major'
20522 shlibpath_var=LD_LIBRARY_PATH
20523 shlibpath_overrides_runpath=yes
20524 ;;
20525
20526openbsd*)
20527 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020528 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020529 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20531 case $host_os in
20532 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20533 *) need_version=no ;;
20534 esac
John Criswell47fdd832003-07-14 16:52:07 +000020535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20537 shlibpath_var=LD_LIBRARY_PATH
20538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20539 case $host_os in
20540 openbsd2.[89] | openbsd2.[89].*)
20541 shlibpath_overrides_runpath=no
20542 ;;
20543 *)
20544 shlibpath_overrides_runpath=yes
20545 ;;
20546 esac
20547 else
20548 shlibpath_overrides_runpath=yes
20549 fi
20550 ;;
20551
20552os2*)
20553 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020554 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020555 need_lib_prefix=no
20556 library_names_spec='$libname${shared_ext} $libname.a'
20557 dynamic_linker='OS/2 ld.exe'
20558 shlibpath_var=LIBPATH
20559 ;;
20560
20561osf3* | osf4* | osf5*)
20562 version_type=osf
20563 need_lib_prefix=no
20564 need_version=no
20565 soname_spec='${libname}${release}${shared_ext}$major'
20566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20567 shlibpath_var=LD_LIBRARY_PATH
20568 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20569 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20570 ;;
20571
John Criswell47fdd832003-07-14 16:52:07 +000020572solaris*)
20573 version_type=linux
20574 need_lib_prefix=no
20575 need_version=no
20576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20577 soname_spec='${libname}${release}${shared_ext}$major'
20578 shlibpath_var=LD_LIBRARY_PATH
20579 shlibpath_overrides_runpath=yes
20580 hardcode_into_libs=yes
20581 # ldd complains unless libraries are executable
20582 postinstall_cmds='chmod +x $lib'
20583 ;;
20584
20585sunos4*)
20586 version_type=sunos
20587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20588 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20589 shlibpath_var=LD_LIBRARY_PATH
20590 shlibpath_overrides_runpath=yes
20591 if test "$with_gnu_ld" = yes; then
20592 need_lib_prefix=no
20593 fi
20594 need_version=yes
20595 ;;
20596
Reid Spencera773bd52006-08-04 18:18:08 +000020597sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020598 version_type=linux
20599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20600 soname_spec='${libname}${release}${shared_ext}$major'
20601 shlibpath_var=LD_LIBRARY_PATH
20602 case $host_vendor in
20603 sni)
20604 shlibpath_overrides_runpath=no
20605 need_lib_prefix=no
20606 export_dynamic_flag_spec='${wl}-Blargedynsym'
20607 runpath_var=LD_RUN_PATH
20608 ;;
20609 siemens)
20610 need_lib_prefix=no
20611 ;;
20612 motorola)
20613 need_lib_prefix=no
20614 need_version=no
20615 shlibpath_overrides_runpath=no
20616 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20617 ;;
20618 esac
20619 ;;
20620
20621sysv4*MP*)
20622 if test -d /usr/nec ;then
20623 version_type=linux
20624 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20625 soname_spec='$libname${shared_ext}.$major'
20626 shlibpath_var=LD_LIBRARY_PATH
20627 fi
20628 ;;
20629
Reid Spencera773bd52006-08-04 18:18:08 +000020630sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20631 version_type=freebsd-elf
20632 need_lib_prefix=no
20633 need_version=no
20634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20635 soname_spec='${libname}${release}${shared_ext}$major'
20636 shlibpath_var=LD_LIBRARY_PATH
20637 hardcode_into_libs=yes
20638 if test "$with_gnu_ld" = yes; then
20639 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20640 shlibpath_overrides_runpath=no
20641 else
20642 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20643 shlibpath_overrides_runpath=yes
20644 case $host_os in
20645 sco3.2v5*)
20646 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20647 ;;
20648 esac
20649 fi
20650 sys_lib_dlsearch_path_spec='/usr/lib'
20651 ;;
20652
John Criswell47fdd832003-07-14 16:52:07 +000020653uts4*)
20654 version_type=linux
20655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20656 soname_spec='${libname}${release}${shared_ext}$major'
20657 shlibpath_var=LD_LIBRARY_PATH
20658 ;;
20659
20660*)
20661 dynamic_linker=no
20662 ;;
20663esac
Reid Spencera773bd52006-08-04 18:18:08 +000020664{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20665echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020666test "$dynamic_linker" = no && can_build_shared=no
20667
Reid Spencera773bd52006-08-04 18:18:08 +000020668variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20669if test "$GCC" = yes; then
20670 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20671fi
20672
20673{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20674echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020675hardcode_action_CXX=
20676if test -n "$hardcode_libdir_flag_spec_CXX" || \
20677 test -n "$runpath_var_CXX" || \
20678 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20679
20680 # We can hardcode non-existant directories.
20681 if test "$hardcode_direct_CXX" != no &&
20682 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20683 # have to relink, otherwise we might link with an installed library
20684 # when we should be linking with a yet-to-be-installed one
20685 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20686 test "$hardcode_minus_L_CXX" != no; then
20687 # Linking always hardcodes the temporary library directory.
20688 hardcode_action_CXX=relink
20689 else
20690 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20691 hardcode_action_CXX=immediate
20692 fi
20693else
20694 # We cannot hardcode anything, or else we can only hardcode existing
20695 # directories.
20696 hardcode_action_CXX=unsupported
20697fi
Reid Spencera773bd52006-08-04 18:18:08 +000020698{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20699echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020700
20701if test "$hardcode_action_CXX" = relink; then
20702 # Fast installation is not supported
20703 enable_fast_install=no
20704elif test "$shlibpath_overrides_runpath" = yes ||
20705 test "$enable_shared" = no; then
20706 # Fast installation is not necessary
20707 enable_fast_install=needless
20708fi
20709
John Criswell47fdd832003-07-14 16:52:07 +000020710
20711# The else clause should only fire when bootstrapping the
20712# libtool distribution, otherwise you forgot to ship ltmain.sh
20713# with your package, and you will get complaints that there are
20714# no rules to generate ltmain.sh.
20715if test -f "$ltmain"; then
20716 # See if we are running on zsh, and set the options which allow our commands through
20717 # without removal of \ escapes.
20718 if test -n "${ZSH_VERSION+set}" ; then
20719 setopt NO_GLOB_SUBST
20720 fi
20721 # Now quote all the things that may contain metacharacters while being
20722 # careful not to overquote the AC_SUBSTed values. We take copies of the
20723 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020724 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 +000020725 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020726 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20727 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20728 deplibs_check_method reload_flag reload_cmds need_locks \
20729 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20730 lt_cv_sys_global_symbol_to_c_name_address \
20731 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20732 old_postinstall_cmds old_postuninstall_cmds \
20733 compiler_CXX \
20734 CC_CXX \
20735 LD_CXX \
20736 lt_prog_compiler_wl_CXX \
20737 lt_prog_compiler_pic_CXX \
20738 lt_prog_compiler_static_CXX \
20739 lt_prog_compiler_no_builtin_flag_CXX \
20740 export_dynamic_flag_spec_CXX \
20741 thread_safe_flag_spec_CXX \
20742 whole_archive_flag_spec_CXX \
20743 enable_shared_with_static_runtimes_CXX \
20744 old_archive_cmds_CXX \
20745 old_archive_from_new_cmds_CXX \
20746 predep_objects_CXX \
20747 postdep_objects_CXX \
20748 predeps_CXX \
20749 postdeps_CXX \
20750 compiler_lib_search_path_CXX \
20751 archive_cmds_CXX \
20752 archive_expsym_cmds_CXX \
20753 postinstall_cmds_CXX \
20754 postuninstall_cmds_CXX \
20755 old_archive_from_expsyms_cmds_CXX \
20756 allow_undefined_flag_CXX \
20757 no_undefined_flag_CXX \
20758 export_symbols_cmds_CXX \
20759 hardcode_libdir_flag_spec_CXX \
20760 hardcode_libdir_flag_spec_ld_CXX \
20761 hardcode_libdir_separator_CXX \
20762 hardcode_automatic_CXX \
20763 module_cmds_CXX \
20764 module_expsym_cmds_CXX \
20765 lt_cv_prog_compiler_c_o_CXX \
20766 exclude_expsyms_CXX \
20767 include_expsyms_CXX; do
20768
20769 case $var in
20770 old_archive_cmds_CXX | \
20771 old_archive_from_new_cmds_CXX | \
20772 archive_cmds_CXX | \
20773 archive_expsym_cmds_CXX | \
20774 module_cmds_CXX | \
20775 module_expsym_cmds_CXX | \
20776 old_archive_from_expsyms_cmds_CXX | \
20777 export_symbols_cmds_CXX | \
20778 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20779 postinstall_cmds | postuninstall_cmds | \
20780 old_postinstall_cmds | old_postuninstall_cmds | \
20781 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20782 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020783 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 +000020784 ;;
20785 *)
20786 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20787 ;;
20788 esac
20789 done
20790
20791 case $lt_echo in
20792 *'\$0 --fallback-echo"')
20793 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20794 ;;
20795 esac
20796
20797cfgfile="$ofile"
20798
20799 cat <<__EOF__ >> "$cfgfile"
20800# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20801
20802# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20803
20804# Shell to use when invoking shell scripts.
20805SHELL=$lt_SHELL
20806
20807# Whether or not to build shared libraries.
20808build_libtool_libs=$enable_shared
20809
20810# Whether or not to build static libraries.
20811build_old_libs=$enable_static
20812
20813# Whether or not to add -lc for building shared libraries.
20814build_libtool_need_lc=$archive_cmds_need_lc_CXX
20815
20816# Whether or not to disallow shared libs when runtime libs are static
20817allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20818
20819# Whether or not to optimize for fast installation.
20820fast_install=$enable_fast_install
20821
20822# The host system.
20823host_alias=$host_alias
20824host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020825host_os=$host_os
20826
20827# The build system.
20828build_alias=$build_alias
20829build=$build
20830build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020831
20832# An echo program that does not interpret backslashes.
20833echo=$lt_echo
20834
20835# The archiver.
20836AR=$lt_AR
20837AR_FLAGS=$lt_AR_FLAGS
20838
20839# A C compiler.
20840LTCC=$lt_LTCC
20841
Reid Spencera773bd52006-08-04 18:18:08 +000020842# LTCC compiler flags.
20843LTCFLAGS=$lt_LTCFLAGS
20844
John Criswell47fdd832003-07-14 16:52:07 +000020845# A language-specific compiler.
20846CC=$lt_compiler_CXX
20847
20848# Is the compiler the GNU C compiler?
20849with_gcc=$GCC_CXX
20850
20851# An ERE matcher.
20852EGREP=$lt_EGREP
20853
20854# The linker used to build libraries.
20855LD=$lt_LD_CXX
20856
20857# Whether we need hard or soft links.
20858LN_S=$lt_LN_S
20859
20860# A BSD-compatible nm program.
20861NM=$lt_NM
20862
20863# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020864STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020865
20866# Used to examine libraries when file_magic_cmd begins "file"
20867MAGIC_CMD=$MAGIC_CMD
20868
20869# Used on cygwin: DLL creation program.
20870DLLTOOL="$DLLTOOL"
20871
20872# Used on cygwin: object dumper.
20873OBJDUMP="$OBJDUMP"
20874
20875# Used on cygwin: assembler.
20876AS="$AS"
20877
20878# The name of the directory that contains temporary libtool files.
20879objdir=$objdir
20880
20881# How to create reloadable object files.
20882reload_flag=$lt_reload_flag
20883reload_cmds=$lt_reload_cmds
20884
20885# How to pass a linker flag through the compiler.
20886wl=$lt_lt_prog_compiler_wl_CXX
20887
20888# Object file suffix (normally "o").
20889objext="$ac_objext"
20890
20891# Old archive suffix (normally "a").
20892libext="$libext"
20893
20894# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020895shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020896
20897# Executable file suffix (normally "").
20898exeext="$exeext"
20899
20900# Additional compiler flags for building library objects.
20901pic_flag=$lt_lt_prog_compiler_pic_CXX
20902pic_mode=$pic_mode
20903
20904# What is the maximum length of a command?
20905max_cmd_len=$lt_cv_sys_max_cmd_len
20906
20907# Does compiler simultaneously support -c and -o options?
20908compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20909
Reid Spencera773bd52006-08-04 18:18:08 +000020910# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020911need_locks=$lt_need_locks
20912
20913# Do we need the lib prefix for modules?
20914need_lib_prefix=$need_lib_prefix
20915
20916# Do we need a version for libraries?
20917need_version=$need_version
20918
20919# Whether dlopen is supported.
20920dlopen_support=$enable_dlopen
20921
20922# Whether dlopen of programs is supported.
20923dlopen_self=$enable_dlopen_self
20924
20925# Whether dlopen of statically linked programs is supported.
20926dlopen_self_static=$enable_dlopen_self_static
20927
20928# Compiler flag to prevent dynamic linking.
20929link_static_flag=$lt_lt_prog_compiler_static_CXX
20930
20931# Compiler flag to turn off builtin functions.
20932no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20933
20934# Compiler flag to allow reflexive dlopens.
20935export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20936
20937# Compiler flag to generate shared objects directly from archives.
20938whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20939
20940# Compiler flag to generate thread-safe objects.
20941thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20942
20943# Library versioning type.
20944version_type=$version_type
20945
20946# Format of library name prefix.
20947libname_spec=$lt_libname_spec
20948
20949# List of archive names. First name is the real one, the rest are links.
20950# The last name is the one that the linker finds with -lNAME.
20951library_names_spec=$lt_library_names_spec
20952
20953# The coded name of the library, if different from the real name.
20954soname_spec=$lt_soname_spec
20955
20956# Commands used to build and install an old-style archive.
20957RANLIB=$lt_RANLIB
20958old_archive_cmds=$lt_old_archive_cmds_CXX
20959old_postinstall_cmds=$lt_old_postinstall_cmds
20960old_postuninstall_cmds=$lt_old_postuninstall_cmds
20961
20962# Create an old-style archive from a shared archive.
20963old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20964
20965# Create a temporary old-style archive to link instead of a shared archive.
20966old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20967
20968# Commands used to build and install a shared archive.
20969archive_cmds=$lt_archive_cmds_CXX
20970archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20971postinstall_cmds=$lt_postinstall_cmds
20972postuninstall_cmds=$lt_postuninstall_cmds
20973
20974# Commands used to build a loadable module (assumed same as above if empty)
20975module_cmds=$lt_module_cmds_CXX
20976module_expsym_cmds=$lt_module_expsym_cmds_CXX
20977
20978# Commands to strip libraries.
20979old_striplib=$lt_old_striplib
20980striplib=$lt_striplib
20981
20982# Dependencies to place before the objects being linked to create a
20983# shared library.
20984predep_objects=$lt_predep_objects_CXX
20985
20986# Dependencies to place after the objects being linked to create a
20987# shared library.
20988postdep_objects=$lt_postdep_objects_CXX
20989
20990# Dependencies to place before the objects being linked to create a
20991# shared library.
20992predeps=$lt_predeps_CXX
20993
20994# Dependencies to place after the objects being linked to create a
20995# shared library.
20996postdeps=$lt_postdeps_CXX
20997
20998# The library search path used internally by the compiler when linking
20999# a shared library.
21000compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21001
21002# Method to check whether dependent libraries are shared objects.
21003deplibs_check_method=$lt_deplibs_check_method
21004
21005# Command to use when deplibs_check_method == file_magic.
21006file_magic_cmd=$lt_file_magic_cmd
21007
21008# Flag that allows shared libraries with undefined symbols to be built.
21009allow_undefined_flag=$lt_allow_undefined_flag_CXX
21010
21011# Flag that forces no undefined symbols.
21012no_undefined_flag=$lt_no_undefined_flag_CXX
21013
21014# Commands used to finish a libtool library installation in a directory.
21015finish_cmds=$lt_finish_cmds
21016
21017# Same as above, but a single script fragment to be evaled but not shown.
21018finish_eval=$lt_finish_eval
21019
21020# Take the output of nm and produce a listing of raw symbols and C names.
21021global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21022
21023# Transform the output of nm in a proper C declaration
21024global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21025
21026# Transform the output of nm in a C name address pair
21027global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21028
21029# This is the shared library runtime path variable.
21030runpath_var=$runpath_var
21031
21032# This is the shared library path variable.
21033shlibpath_var=$shlibpath_var
21034
21035# Is shlibpath searched before the hard-coded library search path?
21036shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21037
21038# How to hardcode a shared library path into an executable.
21039hardcode_action=$hardcode_action_CXX
21040
21041# Whether we should hardcode library paths into libraries.
21042hardcode_into_libs=$hardcode_into_libs
21043
21044# Flag to hardcode \$libdir into a binary during linking.
21045# This must work even if \$libdir does not exist.
21046hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21047
21048# If ld is used when linking, flag to hardcode \$libdir into
21049# a binary during linking. This must work even if \$libdir does
21050# not exist.
21051hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21052
21053# Whether we need a single -rpath flag with a separated argument.
21054hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21055
21056# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21057# resulting binary.
21058hardcode_direct=$hardcode_direct_CXX
21059
21060# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21061# resulting binary.
21062hardcode_minus_L=$hardcode_minus_L_CXX
21063
21064# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21065# the resulting binary.
21066hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21067
21068# Set to yes if building a shared library automatically hardcodes DIR into the library
21069# and all subsequent libraries and executables linked against it.
21070hardcode_automatic=$hardcode_automatic_CXX
21071
21072# Variables whose values should be saved in libtool wrapper scripts and
21073# restored at relink time.
21074variables_saved_for_relink="$variables_saved_for_relink"
21075
21076# Whether libtool must link a program against all its dependency libraries.
21077link_all_deplibs=$link_all_deplibs_CXX
21078
21079# Compile-time system search path for libraries
21080sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21081
21082# Run-time system search path for libraries
21083sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21084
21085# Fix the shell variable \$srcfile for the compiler.
21086fix_srcfile_path="$fix_srcfile_path_CXX"
21087
21088# Set to yes if exported symbols are required.
21089always_export_symbols=$always_export_symbols_CXX
21090
21091# The commands to list exported symbols.
21092export_symbols_cmds=$lt_export_symbols_cmds_CXX
21093
21094# The commands to extract the exported symbol list from a shared archive.
21095extract_expsyms_cmds=$lt_extract_expsyms_cmds
21096
21097# Symbols that should not be listed in the preloaded symbols.
21098exclude_expsyms=$lt_exclude_expsyms_CXX
21099
21100# Symbols that must always be exported.
21101include_expsyms=$lt_include_expsyms_CXX
21102
21103# ### END LIBTOOL TAG CONFIG: $tagname
21104
21105__EOF__
21106
21107
21108else
21109 # If there is no Makefile yet, we rely on a make rule to execute
21110 # `config.status --recheck' to rerun these tests and create the
21111 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021112 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21113 if test -f "$ltmain_in"; then
21114 test -f Makefile && make "$ltmain"
21115 fi
John Criswell47fdd832003-07-14 16:52:07 +000021116fi
21117
21118
21119ac_ext=c
21120ac_cpp='$CPP $CPPFLAGS'
21121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21123ac_compiler_gnu=$ac_cv_c_compiler_gnu
21124
21125CC=$lt_save_CC
21126LDCXX=$LD
21127LD=$lt_save_LD
21128GCC=$lt_save_GCC
21129with_gnu_ldcxx=$with_gnu_ld
21130with_gnu_ld=$lt_save_with_gnu_ld
21131lt_cv_path_LDCXX=$lt_cv_path_LD
21132lt_cv_path_LD=$lt_save_path_LD
21133lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21134lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21135
21136 else
21137 tagname=""
21138 fi
21139 ;;
21140
21141 F77)
21142 if test -n "$F77" && test "X$F77" != "Xno"; then
21143
21144ac_ext=f
21145ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21146ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21147ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21148
21149
21150archive_cmds_need_lc_F77=no
21151allow_undefined_flag_F77=
21152always_export_symbols_F77=no
21153archive_expsym_cmds_F77=
21154export_dynamic_flag_spec_F77=
21155hardcode_direct_F77=no
21156hardcode_libdir_flag_spec_F77=
21157hardcode_libdir_flag_spec_ld_F77=
21158hardcode_libdir_separator_F77=
21159hardcode_minus_L_F77=no
21160hardcode_automatic_F77=no
21161module_cmds_F77=
21162module_expsym_cmds_F77=
21163link_all_deplibs_F77=unknown
21164old_archive_cmds_F77=$old_archive_cmds
21165no_undefined_flag_F77=
21166whole_archive_flag_spec_F77=
21167enable_shared_with_static_runtimes_F77=no
21168
21169# Source file extension for f77 test sources.
21170ac_ext=f
21171
21172# Object file extension for compiled f77 test sources.
21173objext=o
21174objext_F77=$objext
21175
21176# Code to be used in simple compile tests
21177lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21178
21179# Code to be used in simple link tests
21180lt_simple_link_test_code=" program t\n end\n"
21181
21182# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21183
21184# If no C compiler was specified, use CC.
21185LTCC=${LTCC-"$CC"}
21186
Reid Spencera773bd52006-08-04 18:18:08 +000021187# If no C compiler flags were specified, use CFLAGS.
21188LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21189
John Criswell47fdd832003-07-14 16:52:07 +000021190# Allow CC to be a program name with arguments.
21191compiler=$CC
21192
21193
Reid Spencera773bd52006-08-04 18:18:08 +000021194# save warnings/boilerplate of simple test code
21195ac_outfile=conftest.$ac_objext
21196printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21197eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21198_lt_compiler_boilerplate=`cat conftest.err`
21199$rm conftest*
21200
21201ac_outfile=conftest.$ac_objext
21202printf "$lt_simple_link_test_code" >conftest.$ac_ext
21203eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21204_lt_linker_boilerplate=`cat conftest.err`
21205$rm conftest*
21206
21207
John Criswell47fdd832003-07-14 16:52:07 +000021208# Allow CC to be a program name with arguments.
21209lt_save_CC="$CC"
21210CC=${F77-"f77"}
21211compiler=$CC
21212compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021213for cc_temp in $compiler""; do
21214 case $cc_temp in
21215 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21216 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21217 \-*) ;;
21218 *) break;;
21219 esac
21220done
21221cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021222
John Criswell47fdd832003-07-14 16:52:07 +000021223
Reid Spencera773bd52006-08-04 18:18:08 +000021224{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21225echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21226{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21227echo "${ECHO_T}$can_build_shared" >&6; }
21228
21229{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21230echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021231test "$can_build_shared" = "no" && enable_shared=no
21232
21233# On AIX, shared libraries and static libraries use the same namespace, and
21234# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021235case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021236aix3*)
21237 test "$enable_shared" = yes && enable_static=no
21238 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021239 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021240 postinstall_cmds='$RANLIB $lib'
21241 fi
21242 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021243aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021244 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21245 test "$enable_shared" = yes && enable_static=no
21246 fi
John Criswell47fdd832003-07-14 16:52:07 +000021247 ;;
21248esac
Reid Spencera773bd52006-08-04 18:18:08 +000021249{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21250echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021251
Reid Spencera773bd52006-08-04 18:18:08 +000021252{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21253echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021254# Make sure either enable_shared or enable_static is yes.
21255test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021256{ echo "$as_me:$LINENO: result: $enable_static" >&5
21257echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021258
21259GCC_F77="$G77"
21260LD_F77="$LD"
21261
21262lt_prog_compiler_wl_F77=
21263lt_prog_compiler_pic_F77=
21264lt_prog_compiler_static_F77=
21265
Reid Spencera773bd52006-08-04 18:18:08 +000021266{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21267echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021268
21269 if test "$GCC" = yes; then
21270 lt_prog_compiler_wl_F77='-Wl,'
21271 lt_prog_compiler_static_F77='-static'
21272
21273 case $host_os in
21274 aix*)
21275 # All AIX code is PIC.
21276 if test "$host_cpu" = ia64; then
21277 # AIX 5 now supports IA64 processor
21278 lt_prog_compiler_static_F77='-Bstatic'
21279 fi
21280 ;;
21281
21282 amigaos*)
21283 # FIXME: we need at least 68020 code to build shared libraries, but
21284 # adding the `-m68020' flag to GCC prevents building anything better,
21285 # like `-m68040'.
21286 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21287 ;;
21288
21289 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21290 # PIC is the default for these OSes.
21291 ;;
21292
21293 mingw* | pw32* | os2*)
21294 # This hack is so that the source file can tell whether it is being
21295 # built for inclusion in a dll (and should export symbols for example).
21296 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21297 ;;
21298
21299 darwin* | rhapsody*)
21300 # PIC is the default on this platform
21301 # Common symbols not allowed in MH_DYLIB files
21302 lt_prog_compiler_pic_F77='-fno-common'
21303 ;;
21304
Reid Spencera773bd52006-08-04 18:18:08 +000021305 interix3*)
21306 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21307 # Instead, we relocate shared libraries at runtime.
21308 ;;
21309
John Criswell47fdd832003-07-14 16:52:07 +000021310 msdosdjgpp*)
21311 # Just because we use GCC doesn't mean we suddenly get shared libraries
21312 # on systems that don't support them.
21313 lt_prog_compiler_can_build_shared_F77=no
21314 enable_shared=no
21315 ;;
21316
21317 sysv4*MP*)
21318 if test -d /usr/nec; then
21319 lt_prog_compiler_pic_F77=-Kconform_pic
21320 fi
21321 ;;
21322
21323 hpux*)
21324 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21325 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021326 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021327 hppa*64*|ia64*)
21328 # +Z the default
21329 ;;
21330 *)
21331 lt_prog_compiler_pic_F77='-fPIC'
21332 ;;
21333 esac
21334 ;;
21335
21336 *)
21337 lt_prog_compiler_pic_F77='-fPIC'
21338 ;;
21339 esac
21340 else
21341 # PORTME Check for flag to pass linker flags through the system compiler.
21342 case $host_os in
21343 aix*)
21344 lt_prog_compiler_wl_F77='-Wl,'
21345 if test "$host_cpu" = ia64; then
21346 # AIX 5 now supports IA64 processor
21347 lt_prog_compiler_static_F77='-Bstatic'
21348 else
21349 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21350 fi
21351 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021352 darwin*)
21353 # PIC is the default on this platform
21354 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021355 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021356 xlc*)
21357 lt_prog_compiler_pic_F77='-qnocommon'
21358 lt_prog_compiler_wl_F77='-Wl,'
21359 ;;
21360 esac
21361 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021362
21363 mingw* | pw32* | os2*)
21364 # This hack is so that the source file can tell whether it is being
21365 # built for inclusion in a dll (and should export symbols for example).
21366 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21367 ;;
21368
21369 hpux9* | hpux10* | hpux11*)
21370 lt_prog_compiler_wl_F77='-Wl,'
21371 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21372 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021373 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021374 hppa*64*|ia64*)
21375 # +Z the default
21376 ;;
21377 *)
21378 lt_prog_compiler_pic_F77='+Z'
21379 ;;
21380 esac
21381 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21382 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21383 ;;
21384
21385 irix5* | irix6* | nonstopux*)
21386 lt_prog_compiler_wl_F77='-Wl,'
21387 # PIC (with -KPIC) is the default.
21388 lt_prog_compiler_static_F77='-non_shared'
21389 ;;
21390
21391 newsos6)
21392 lt_prog_compiler_pic_F77='-KPIC'
21393 lt_prog_compiler_static_F77='-Bstatic'
21394 ;;
21395
21396 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021397 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021398 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021399 lt_prog_compiler_wl_F77='-Wl,'
21400 lt_prog_compiler_pic_F77='-KPIC'
21401 lt_prog_compiler_static_F77='-static'
21402 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021403 pgcc* | pgf77* | pgf90* | pgf95*)
21404 # Portland Group compilers (*not* the Pentium gcc compiler,
21405 # which looks to be a dead project)
21406 lt_prog_compiler_wl_F77='-Wl,'
21407 lt_prog_compiler_pic_F77='-fpic'
21408 lt_prog_compiler_static_F77='-Bstatic'
21409 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021410 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021411 lt_prog_compiler_wl_F77='-Wl,'
21412 # All Alpha code is PIC.
21413 lt_prog_compiler_static_F77='-non_shared'
21414 ;;
21415 esac
21416 ;;
21417
21418 osf3* | osf4* | osf5*)
21419 lt_prog_compiler_wl_F77='-Wl,'
21420 # All OSF/1 code is PIC.
21421 lt_prog_compiler_static_F77='-non_shared'
21422 ;;
21423
John Criswell47fdd832003-07-14 16:52:07 +000021424 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021425 lt_prog_compiler_pic_F77='-KPIC'
21426 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021427 case $cc_basename in
21428 f77* | f90* | f95*)
21429 lt_prog_compiler_wl_F77='-Qoption ld ';;
21430 *)
21431 lt_prog_compiler_wl_F77='-Wl,';;
21432 esac
John Criswell47fdd832003-07-14 16:52:07 +000021433 ;;
21434
21435 sunos4*)
21436 lt_prog_compiler_wl_F77='-Qoption ld '
21437 lt_prog_compiler_pic_F77='-PIC'
21438 lt_prog_compiler_static_F77='-Bstatic'
21439 ;;
21440
Reid Spencera773bd52006-08-04 18:18:08 +000021441 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021442 lt_prog_compiler_wl_F77='-Wl,'
21443 lt_prog_compiler_pic_F77='-KPIC'
21444 lt_prog_compiler_static_F77='-Bstatic'
21445 ;;
21446
21447 sysv4*MP*)
21448 if test -d /usr/nec ;then
21449 lt_prog_compiler_pic_F77='-Kconform_pic'
21450 lt_prog_compiler_static_F77='-Bstatic'
21451 fi
21452 ;;
21453
Reid Spencera773bd52006-08-04 18:18:08 +000021454 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21455 lt_prog_compiler_wl_F77='-Wl,'
21456 lt_prog_compiler_pic_F77='-KPIC'
21457 lt_prog_compiler_static_F77='-Bstatic'
21458 ;;
21459
21460 unicos*)
21461 lt_prog_compiler_wl_F77='-Wl,'
21462 lt_prog_compiler_can_build_shared_F77=no
21463 ;;
21464
John Criswell47fdd832003-07-14 16:52:07 +000021465 uts4*)
21466 lt_prog_compiler_pic_F77='-pic'
21467 lt_prog_compiler_static_F77='-Bstatic'
21468 ;;
21469
21470 *)
21471 lt_prog_compiler_can_build_shared_F77=no
21472 ;;
21473 esac
21474 fi
21475
Reid Spencera773bd52006-08-04 18:18:08 +000021476{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21477echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021478
21479#
21480# Check to make sure the PIC flag actually works.
21481#
21482if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021483
Reid Spencera773bd52006-08-04 18:18:08 +000021484{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21485echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021486if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21487 echo $ECHO_N "(cached) $ECHO_C" >&6
21488else
21489 lt_prog_compiler_pic_works_F77=no
21490 ac_outfile=conftest.$ac_objext
21491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21492 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21493 # Insert the option either (1) after the last *FLAGS variable, or
21494 # (2) before a word containing "conftest.", or (3) at the end.
21495 # Note that $ac_compile itself does not contain backslashes and begins
21496 # with a dollar sign (not a hyphen), so the echo should work correctly.
21497 # The option is referenced via a variable to avoid confusing sed.
21498 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21501 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000021502 (eval echo "\"\$as_me:21502: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021503 (eval "$lt_compile" 2>conftest.err)
21504 ac_status=$?
21505 cat conftest.err >&5
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000021506 echo "$as_me:21506: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021507 if (exit $ac_status) && test -s "$ac_outfile"; then
21508 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021509 # So say no if there are warnings other than the usual output.
21510 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021513 lt_prog_compiler_pic_works_F77=yes
21514 fi
21515 fi
21516 $rm conftest*
21517
21518fi
Reid Spencera773bd52006-08-04 18:18:08 +000021519{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21520echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021521
21522if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21523 case $lt_prog_compiler_pic_F77 in
21524 "" | " "*) ;;
21525 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21526 esac
21527else
21528 lt_prog_compiler_pic_F77=
21529 lt_prog_compiler_can_build_shared_F77=no
21530fi
21531
21532fi
Reid Spencera773bd52006-08-04 18:18:08 +000021533case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021534 # For platforms which do not support PIC, -DPIC is meaningless:
21535 *djgpp*)
21536 lt_prog_compiler_pic_F77=
21537 ;;
21538 *)
21539 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21540 ;;
21541esac
21542
Reid Spencera773bd52006-08-04 18:18:08 +000021543#
21544# Check to make sure the static flag actually works.
21545#
21546wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21547{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21548echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21549if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21550 echo $ECHO_N "(cached) $ECHO_C" >&6
21551else
21552 lt_prog_compiler_static_works_F77=no
21553 save_LDFLAGS="$LDFLAGS"
21554 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21555 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21556 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21557 # The linker can only warn and ignore the option if not recognized
21558 # So say no if there are warnings
21559 if test -s conftest.err; then
21560 # Append any errors to the config.log.
21561 cat conftest.err 1>&5
21562 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21564 if diff conftest.exp conftest.er2 >/dev/null; then
21565 lt_prog_compiler_static_works_F77=yes
21566 fi
21567 else
21568 lt_prog_compiler_static_works_F77=yes
21569 fi
21570 fi
21571 $rm conftest*
21572 LDFLAGS="$save_LDFLAGS"
21573
21574fi
21575{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21576echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21577
21578if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21579 :
21580else
21581 lt_prog_compiler_static_F77=
21582fi
21583
21584
21585{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21586echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021587if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21588 echo $ECHO_N "(cached) $ECHO_C" >&6
21589else
21590 lt_cv_prog_compiler_c_o_F77=no
21591 $rm -r conftest 2>/dev/null
21592 mkdir conftest
21593 cd conftest
21594 mkdir out
21595 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21596
John Criswell47fdd832003-07-14 16:52:07 +000021597 lt_compiler_flag="-o out/conftest2.$ac_objext"
21598 # Insert the option either (1) after the last *FLAGS variable, or
21599 # (2) before a word containing "conftest.", or (3) at the end.
21600 # Note that $ac_compile itself does not contain backslashes and begins
21601 # with a dollar sign (not a hyphen), so the echo should work correctly.
21602 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21605 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000021606 (eval echo "\"\$as_me:21606: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021607 (eval "$lt_compile" 2>out/conftest.err)
21608 ac_status=$?
21609 cat out/conftest.err >&5
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000021610 echo "$as_me:21610: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021611 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21612 then
21613 # The compiler can only warn and ignore the option if not recognized
21614 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021615 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21616 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21617 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021618 lt_cv_prog_compiler_c_o_F77=yes
21619 fi
21620 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021621 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021622 $rm conftest*
21623 # SGI C++ compiler will create directory out/ii_files/ for
21624 # template instantiation
21625 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21626 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021627 cd ..
21628 rmdir conftest
21629 $rm conftest*
21630
21631fi
Reid Spencera773bd52006-08-04 18:18:08 +000021632{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21633echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021634
21635
21636hard_links="nottested"
21637if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21638 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021639 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21640echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021641 hard_links=yes
21642 $rm conftest*
21643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21644 touch conftest.a
21645 ln conftest.a conftest.b 2>&5 || hard_links=no
21646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021647 { echo "$as_me:$LINENO: result: $hard_links" >&5
21648echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021649 if test "$hard_links" = no; then
21650 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21651echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21652 need_locks=warn
21653 fi
21654else
21655 need_locks=no
21656fi
21657
Reid Spencera773bd52006-08-04 18:18:08 +000021658{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21659echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021660
21661 runpath_var=
21662 allow_undefined_flag_F77=
21663 enable_shared_with_static_runtimes_F77=no
21664 archive_cmds_F77=
21665 archive_expsym_cmds_F77=
21666 old_archive_From_new_cmds_F77=
21667 old_archive_from_expsyms_cmds_F77=
21668 export_dynamic_flag_spec_F77=
21669 whole_archive_flag_spec_F77=
21670 thread_safe_flag_spec_F77=
21671 hardcode_libdir_flag_spec_F77=
21672 hardcode_libdir_flag_spec_ld_F77=
21673 hardcode_libdir_separator_F77=
21674 hardcode_direct_F77=no
21675 hardcode_minus_L_F77=no
21676 hardcode_shlibpath_var_F77=unsupported
21677 link_all_deplibs_F77=unknown
21678 hardcode_automatic_F77=no
21679 module_cmds_F77=
21680 module_expsym_cmds_F77=
21681 always_export_symbols_F77=no
21682 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21683 # include_expsyms should be a list of space-separated symbols to be *always*
21684 # included in the symbol list
21685 include_expsyms_F77=
21686 # exclude_expsyms can be an extended regexp of symbols to exclude
21687 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21688 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21689 # as well as any symbol that contains `d'.
21690 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21691 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21692 # platforms (ab)use it in PIC code, but their linkers get confused if
21693 # the symbol is explicitly referenced. Since portable code cannot
21694 # rely on this symbol name, it's probably fine to never include it in
21695 # preloaded symbol tables.
21696 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021697 # Just being paranoid about ensuring that cc_basename is set.
21698 for cc_temp in $compiler""; do
21699 case $cc_temp in
21700 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21701 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21702 \-*) ;;
21703 *) break;;
21704 esac
21705done
21706cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021707
21708 case $host_os in
21709 cygwin* | mingw* | pw32*)
21710 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21711 # When not using gcc, we currently assume that we are using
21712 # Microsoft Visual C++.
21713 if test "$GCC" != yes; then
21714 with_gnu_ld=no
21715 fi
21716 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021717 interix*)
21718 # we just hope/assume this is gcc and not c89 (= MSVC++)
21719 with_gnu_ld=yes
21720 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021721 openbsd*)
21722 with_gnu_ld=no
21723 ;;
21724 esac
21725
21726 ld_shlibs_F77=yes
21727 if test "$with_gnu_ld" = yes; then
21728 # If archive_cmds runs LD, not CC, wlarc should be empty
21729 wlarc='${wl}'
21730
Reid Spencera773bd52006-08-04 18:18:08 +000021731 # Set some defaults for GNU ld with shared library support. These
21732 # are reset later if shared libraries are not supported. Putting them
21733 # here allows them to be overridden if necessary.
21734 runpath_var=LD_RUN_PATH
21735 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21736 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21737 # ancient GNU ld didn't support --whole-archive et. al.
21738 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21739 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21740 else
21741 whole_archive_flag_spec_F77=
21742 fi
21743 supports_anon_versioning=no
21744 case `$LD -v 2>/dev/null` in
21745 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21746 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21747 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21748 *\ 2.11.*) ;; # other 2.11 versions
21749 *) supports_anon_versioning=yes ;;
21750 esac
21751
John Criswell47fdd832003-07-14 16:52:07 +000021752 # See if GNU ld supports shared libraries.
21753 case $host_os in
21754 aix3* | aix4* | aix5*)
21755 # On AIX/PPC, the GNU linker is very broken
21756 if test "$host_cpu" != ia64; then
21757 ld_shlibs_F77=no
21758 cat <<EOF 1>&2
21759
21760*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21761*** to be unable to reliably create shared libraries on AIX.
21762*** Therefore, libtool is disabling shared libraries support. If you
21763*** really care for shared libraries, you may want to modify your PATH
21764*** so that a non-GNU linker is found, and then restart.
21765
21766EOF
21767 fi
21768 ;;
21769
21770 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021771 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 +000021772 hardcode_libdir_flag_spec_F77='-L$libdir'
21773 hardcode_minus_L_F77=yes
21774
21775 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21776 # that the semantics of dynamic libraries on AmigaOS, at least up
21777 # to version 4, is to share data among multiple programs linked
21778 # with the same dynamic library. Since this doesn't match the
21779 # behavior of shared libraries on other platforms, we can't use
21780 # them.
21781 ld_shlibs_F77=no
21782 ;;
21783
21784 beos*)
21785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21786 allow_undefined_flag_F77=unsupported
21787 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21788 # support --undefined. This deserves some investigation. FIXME
21789 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21790 else
21791 ld_shlibs_F77=no
21792 fi
21793 ;;
21794
21795 cygwin* | mingw* | pw32*)
21796 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21797 # as there is no search path for DLLs.
21798 hardcode_libdir_flag_spec_F77='-L$libdir'
21799 allow_undefined_flag_F77=unsupported
21800 always_export_symbols_F77=no
21801 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021802 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 +000021803
21804 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021805 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 +000021806 # If the export-symbols file already is a .def file (1st line
21807 # is EXPORTS), use it as is; otherwise, prepend...
21808 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21809 cp $export_symbols $output_objdir/$soname.def;
21810 else
21811 echo EXPORTS > $output_objdir/$soname.def;
21812 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021813 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021814 $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 +000021815 else
Reid Spencera773bd52006-08-04 18:18:08 +000021816 ld_shlibs_F77=no
21817 fi
21818 ;;
21819
21820 interix3*)
21821 hardcode_direct_F77=no
21822 hardcode_shlibpath_var_F77=no
21823 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21824 export_dynamic_flag_spec_F77='${wl}-E'
21825 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21826 # Instead, shared libraries are loaded at an image base (0x10000000 by
21827 # default) and relocated if they conflict, which is a slow very memory
21828 # consuming and fragmenting process. To avoid this, we pick a random,
21829 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21830 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21831 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'
21832 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'
21833 ;;
21834
21835 linux*)
21836 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21837 tmp_addflag=
21838 case $cc_basename,$host_cpu in
21839 pgcc*) # Portland Group C compiler
21840 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'
21841 tmp_addflag=' $pic_flag'
21842 ;;
21843 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21844 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'
21845 tmp_addflag=' $pic_flag -Mnomain' ;;
21846 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21847 tmp_addflag=' -i_dynamic' ;;
21848 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21849 tmp_addflag=' -i_dynamic -nofor_main' ;;
21850 ifc* | ifort*) # Intel Fortran compiler
21851 tmp_addflag=' -nofor_main' ;;
21852 esac
21853 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21854
21855 if test $supports_anon_versioning = yes; then
21856 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21858 $echo "local: *; };" >> $output_objdir/$libname.ver~
21859 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21860 fi
21861 else
21862 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021863 fi
21864 ;;
21865
21866 netbsd*)
21867 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21868 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21869 wlarc=
21870 else
21871 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21872 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21873 fi
21874 ;;
21875
Reid Spencera773bd52006-08-04 18:18:08 +000021876 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021877 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21878 ld_shlibs_F77=no
21879 cat <<EOF 1>&2
21880
21881*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21882*** create shared libraries on Solaris systems. Therefore, libtool
21883*** is disabling shared libraries support. We urge you to upgrade GNU
21884*** binutils to release 2.9.1 or newer. Another option is to modify
21885*** your PATH or compiler configuration so that the native linker is
21886*** used, and then restart.
21887
21888EOF
21889 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21890 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21891 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21892 else
21893 ld_shlibs_F77=no
21894 fi
21895 ;;
21896
Reid Spencera773bd52006-08-04 18:18:08 +000021897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21898 case `$LD -v 2>&1` in
21899 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21900 ld_shlibs_F77=no
21901 cat <<_LT_EOF 1>&2
21902
21903*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21904*** reliably create shared libraries on SCO systems. Therefore, libtool
21905*** is disabling shared libraries support. We urge you to upgrade GNU
21906*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21907*** your PATH or compiler configuration so that the native linker is
21908*** used, and then restart.
21909
21910_LT_EOF
21911 ;;
21912 *)
21913 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21914 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21915 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21916 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21917 else
21918 ld_shlibs_F77=no
21919 fi
21920 ;;
21921 esac
21922 ;;
21923
John Criswell47fdd832003-07-14 16:52:07 +000021924 sunos4*)
21925 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21926 wlarc=
21927 hardcode_direct_F77=yes
21928 hardcode_shlibpath_var_F77=no
21929 ;;
21930
21931 *)
21932 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21933 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21934 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21935 else
21936 ld_shlibs_F77=no
21937 fi
21938 ;;
21939 esac
21940
Reid Spencera773bd52006-08-04 18:18:08 +000021941 if test "$ld_shlibs_F77" = no; then
21942 runpath_var=
21943 hardcode_libdir_flag_spec_F77=
21944 export_dynamic_flag_spec_F77=
21945 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021946 fi
21947 else
21948 # PORTME fill in a description of your system's linker (not GNU ld)
21949 case $host_os in
21950 aix3*)
21951 allow_undefined_flag_F77=unsupported
21952 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021953 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 +000021954 # Note: this linker hardcodes the directories in LIBPATH if there
21955 # are no directories specified by -L.
21956 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021957 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021958 # Neither direct hardcoding nor static linking is supported with a
21959 # broken collect2.
21960 hardcode_direct_F77=unsupported
21961 fi
21962 ;;
21963
21964 aix4* | aix5*)
21965 if test "$host_cpu" = ia64; then
21966 # On IA64, the linker does run time linking by default, so we don't
21967 # have to do anything special.
21968 aix_use_runtimelinking=no
21969 exp_sym_flag='-Bexport'
21970 no_entry_flag=""
21971 else
21972 # If we're using GNU nm, then we don't want the "-C" option.
21973 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21974 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21975 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'
21976 else
21977 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'
21978 fi
21979 aix_use_runtimelinking=no
21980
21981 # Test if we are trying to use run time linking or normal
21982 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21983 # need to do runtime linking.
21984 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21985 for ld_flag in $LDFLAGS; do
21986 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21987 aix_use_runtimelinking=yes
21988 break
21989 fi
21990 done
Reid Spencera773bd52006-08-04 18:18:08 +000021991 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021992 esac
21993
21994 exp_sym_flag='-bexport'
21995 no_entry_flag='-bnoentry'
21996 fi
21997
21998 # When large executables or shared objects are built, AIX ld can
21999 # have problems creating the table of contents. If linking a library
22000 # or program results in "error TOC overflow" add -mminimal-toc to
22001 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22002 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22003
22004 archive_cmds_F77=''
22005 hardcode_direct_F77=yes
22006 hardcode_libdir_separator_F77=':'
22007 link_all_deplibs_F77=yes
22008
22009 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022010 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022011 # We only want to do this on AIX 4.2 and lower, the check
22012 # below for broken collect2 doesn't work under 4.3+
22013 collect2name=`${CC} -print-prog-name=collect2`
22014 if test -f "$collect2name" && \
22015 strings "$collect2name" | grep resolve_lib_name >/dev/null
22016 then
22017 # We have reworked collect2
22018 hardcode_direct_F77=yes
22019 else
22020 # We have old collect2
22021 hardcode_direct_F77=unsupported
22022 # It fails to find uninstalled libraries when the uninstalled
22023 # path is not listed in the libpath. Setting hardcode_minus_L
22024 # to unsupported forces relinking
22025 hardcode_minus_L_F77=yes
22026 hardcode_libdir_flag_spec_F77='-L$libdir'
22027 hardcode_libdir_separator_F77=
22028 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022029 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022030 esac
22031 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022032 if test "$aix_use_runtimelinking" = yes; then
22033 shared_flag="$shared_flag "'${wl}-G'
22034 fi
John Criswell47fdd832003-07-14 16:52:07 +000022035 else
22036 # not using gcc
22037 if test "$host_cpu" = ia64; then
22038 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22039 # chokes on -Wl,-G. The following line is correct:
22040 shared_flag='-G'
22041 else
Reid Spencera773bd52006-08-04 18:18:08 +000022042 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022043 shared_flag='${wl}-G'
22044 else
22045 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022046 fi
John Criswell47fdd832003-07-14 16:52:07 +000022047 fi
22048 fi
22049
22050 # It seems that -bexpall does not export symbols beginning with
22051 # underscore (_), so it is better to generate a list of symbols to export.
22052 always_export_symbols_F77=yes
22053 if test "$aix_use_runtimelinking" = yes; then
22054 # Warning - without using the other runtime loading flags (-brtl),
22055 # -berok will link without error, but may produce a broken library.
22056 allow_undefined_flag_F77='-berok'
22057 # Determine the default libpath from the value encoded in an empty executable.
22058 cat >conftest.$ac_ext <<_ACEOF
22059 program main
22060
22061 end
22062_ACEOF
22063rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022064if { (ac_try="$ac_link"
22065case "(($ac_try" in
22066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067 *) ac_try_echo=$ac_try;;
22068esac
22069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22070 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022071 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022072 grep -v '^ *+' conftest.er1 >conftest.err
22073 rm -f conftest.er1
22074 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022076 (exit $ac_status); } &&
22077 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22078 { (case "(($ac_try" in
22079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080 *) ac_try_echo=$ac_try;;
22081esac
22082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22083 (eval "$ac_try") 2>&5
22084 ac_status=$?
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); }; } &&
22087 { ac_try='test -s conftest$ac_exeext'
22088 { (case "(($ac_try" in
22089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22090 *) ac_try_echo=$ac_try;;
22091esac
22092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22093 (eval "$ac_try") 2>&5
22094 ac_status=$?
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022097
22098aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22099}'`
22100# Check for a 64-bit object if we didn't find anything.
22101if 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; }
22102}'`; fi
22103else
22104 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022105sed 's/^/| /' conftest.$ac_ext >&5
22106
Reid Spencera773bd52006-08-04 18:18:08 +000022107
John Criswell47fdd832003-07-14 16:52:07 +000022108fi
Reid Spencera773bd52006-08-04 18:18:08 +000022109
Bill Wendlingebcceee2009-04-18 11:20:33 +000022110rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022111 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022112if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22113
22114 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022115 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 +000022116 else
22117 if test "$host_cpu" = ia64; then
22118 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22119 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022120 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 +000022121 else
22122 # Determine the default libpath from the value encoded in an empty executable.
22123 cat >conftest.$ac_ext <<_ACEOF
22124 program main
22125
22126 end
22127_ACEOF
22128rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022129if { (ac_try="$ac_link"
22130case "(($ac_try" in
22131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132 *) ac_try_echo=$ac_try;;
22133esac
22134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022136 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022137 grep -v '^ *+' conftest.er1 >conftest.err
22138 rm -f conftest.er1
22139 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022141 (exit $ac_status); } &&
22142 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22143 { (case "(($ac_try" in
22144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145 *) ac_try_echo=$ac_try;;
22146esac
22147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148 (eval "$ac_try") 2>&5
22149 ac_status=$?
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; } &&
22152 { ac_try='test -s conftest$ac_exeext'
22153 { (case "(($ac_try" in
22154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155 *) ac_try_echo=$ac_try;;
22156esac
22157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22158 (eval "$ac_try") 2>&5
22159 ac_status=$?
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022162
22163aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22164}'`
22165# Check for a 64-bit object if we didn't find anything.
22166if 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; }
22167}'`; fi
22168else
22169 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022170sed 's/^/| /' conftest.$ac_ext >&5
22171
Reid Spencera773bd52006-08-04 18:18:08 +000022172
John Criswell47fdd832003-07-14 16:52:07 +000022173fi
Reid Spencera773bd52006-08-04 18:18:08 +000022174
Bill Wendlingebcceee2009-04-18 11:20:33 +000022175rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022176 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022177if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22178
22179 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22180 # Warning - without using the other run time loading flags,
22181 # -berok will link without error, but may produce a broken library.
22182 no_undefined_flag_F77=' ${wl}-bernotok'
22183 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022184 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022185 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022186 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022187 # This is similar to how AIX traditionally builds its shared libraries.
22188 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 +000022189 fi
22190 fi
22191 ;;
22192
22193 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022194 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 +000022195 hardcode_libdir_flag_spec_F77='-L$libdir'
22196 hardcode_minus_L_F77=yes
22197 # see comment about different semantics on the GNU ld section
22198 ld_shlibs_F77=no
22199 ;;
22200
Reid Spencer2706f8c2004-09-19 23:53:36 +000022201 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022202 export_dynamic_flag_spec_F77=-rdynamic
22203 ;;
22204
22205 cygwin* | mingw* | pw32*)
22206 # When not using gcc, we currently assume that we are using
22207 # Microsoft Visual C++.
22208 # hardcode_libdir_flag_spec is actually meaningless, as there is
22209 # no search path for DLLs.
22210 hardcode_libdir_flag_spec_F77=' '
22211 allow_undefined_flag_F77=unsupported
22212 # Tell ltmain to make .lib files, not .a files.
22213 libext=lib
22214 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022215 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022216 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022217 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 +000022218 # The linker will automatically build a .lib file if we build a DLL.
22219 old_archive_From_new_cmds_F77='true'
22220 # FIXME: Should let the user specify the lib program.
22221 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022222 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022223 enable_shared_with_static_runtimes_F77=yes
22224 ;;
22225
22226 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022227 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022228 rhapsody* | darwin1.[012])
22229 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22230 ;;
22231 *) # Darwin 1.3 on
22232 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22233 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22234 else
22235 case ${MACOSX_DEPLOYMENT_TARGET} in
22236 10.[012])
22237 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22238 ;;
22239 10.*)
22240 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22241 ;;
22242 esac
22243 fi
22244 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022245 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022246 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022247 hardcode_direct_F77=no
22248 hardcode_automatic_F77=yes
22249 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022250 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022251 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022252 if test "$GCC" = yes ; then
22253 output_verbose_link_cmd='echo'
22254 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22255 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022256 # 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 +000022257 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}'
22258 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 +000022259 else
Reid Spencera773bd52006-08-04 18:18:08 +000022260 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022261 xlc*)
22262 output_verbose_link_cmd='echo'
22263 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22264 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022265 # 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 +000022266 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}'
22267 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 +000022268 ;;
22269 *)
22270 ld_shlibs_F77=no
22271 ;;
22272 esac
John Criswell47fdd832003-07-14 16:52:07 +000022273 fi
22274 ;;
22275
22276 dgux*)
22277 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22278 hardcode_libdir_flag_spec_F77='-L$libdir'
22279 hardcode_shlibpath_var_F77=no
22280 ;;
22281
22282 freebsd1*)
22283 ld_shlibs_F77=no
22284 ;;
22285
22286 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22287 # support. Future versions do this automatically, but an explicit c++rt0.o
22288 # does not break anything, and helps significantly (at the cost of a little
22289 # extra space).
22290 freebsd2.2*)
22291 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22292 hardcode_libdir_flag_spec_F77='-R$libdir'
22293 hardcode_direct_F77=yes
22294 hardcode_shlibpath_var_F77=no
22295 ;;
22296
22297 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22298 freebsd2*)
22299 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22300 hardcode_direct_F77=yes
22301 hardcode_minus_L_F77=yes
22302 hardcode_shlibpath_var_F77=no
22303 ;;
22304
22305 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022306 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022307 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22308 hardcode_libdir_flag_spec_F77='-R$libdir'
22309 hardcode_direct_F77=yes
22310 hardcode_shlibpath_var_F77=no
22311 ;;
22312
22313 hpux9*)
22314 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022315 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 +000022316 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022317 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 +000022318 fi
22319 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22320 hardcode_libdir_separator_F77=:
22321 hardcode_direct_F77=yes
22322
22323 # hardcode_minus_L: Not really in the search PATH,
22324 # but as the default location of the library.
22325 hardcode_minus_L_F77=yes
22326 export_dynamic_flag_spec_F77='${wl}-E'
22327 ;;
22328
Reid Spencera773bd52006-08-04 18:18:08 +000022329 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022330 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022331 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22332 else
22333 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22334 fi
22335 if test "$with_gnu_ld" = no; then
22336 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22337 hardcode_libdir_separator_F77=:
22338
22339 hardcode_direct_F77=yes
22340 export_dynamic_flag_spec_F77='${wl}-E'
22341
22342 # hardcode_minus_L: Not really in the search PATH,
22343 # but as the default location of the library.
22344 hardcode_minus_L_F77=yes
22345 fi
22346 ;;
22347
22348 hpux11*)
22349 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22350 case $host_cpu in
22351 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022352 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22353 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022354 ia64*)
22355 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22356 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022357 *)
22358 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22359 ;;
22360 esac
22361 else
Reid Spencera773bd52006-08-04 18:18:08 +000022362 case $host_cpu in
22363 hppa*64*)
22364 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22365 ;;
22366 ia64*)
22367 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022368 ;;
22369 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022370 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 +000022371 ;;
22372 esac
22373 fi
22374 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022375 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22376 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022377
Reid Spencera773bd52006-08-04 18:18:08 +000022378 case $host_cpu in
22379 hppa*64*|ia64*)
22380 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22381 hardcode_direct_F77=no
22382 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022383 ;;
22384 *)
John Criswell47fdd832003-07-14 16:52:07 +000022385 hardcode_direct_F77=yes
22386 export_dynamic_flag_spec_F77='${wl}-E'
22387
22388 # hardcode_minus_L: Not really in the search PATH,
22389 # but as the default location of the library.
22390 hardcode_minus_L_F77=yes
22391 ;;
22392 esac
22393 fi
22394 ;;
22395
22396 irix5* | irix6* | nonstopux*)
22397 if test "$GCC" = yes; then
22398 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'
22399 else
22400 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'
22401 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22402 fi
22403 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22404 hardcode_libdir_separator_F77=:
22405 link_all_deplibs_F77=yes
22406 ;;
22407
22408 netbsd*)
22409 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22410 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22411 else
22412 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22413 fi
22414 hardcode_libdir_flag_spec_F77='-R$libdir'
22415 hardcode_direct_F77=yes
22416 hardcode_shlibpath_var_F77=no
22417 ;;
22418
22419 newsos6)
22420 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22421 hardcode_direct_F77=yes
22422 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22423 hardcode_libdir_separator_F77=:
22424 hardcode_shlibpath_var_F77=no
22425 ;;
22426
22427 openbsd*)
22428 hardcode_direct_F77=yes
22429 hardcode_shlibpath_var_F77=no
22430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22431 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022432 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 +000022433 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22434 export_dynamic_flag_spec_F77='${wl}-E'
22435 else
22436 case $host_os in
22437 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22438 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22439 hardcode_libdir_flag_spec_F77='-R$libdir'
22440 ;;
22441 *)
22442 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22443 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22444 ;;
22445 esac
22446 fi
22447 ;;
22448
22449 os2*)
22450 hardcode_libdir_flag_spec_F77='-L$libdir'
22451 hardcode_minus_L_F77=yes
22452 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022453 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 +000022454 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22455 ;;
22456
22457 osf3*)
22458 if test "$GCC" = yes; then
22459 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22460 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'
22461 else
22462 allow_undefined_flag_F77=' -expect_unresolved \*'
22463 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'
22464 fi
22465 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22466 hardcode_libdir_separator_F77=:
22467 ;;
22468
22469 osf4* | osf5*) # as osf3* with the addition of -msym flag
22470 if test "$GCC" = yes; then
22471 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22472 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'
22473 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22474 else
22475 allow_undefined_flag_F77=' -expect_unresolved \*'
22476 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 +000022477 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 +000022478 $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 +000022479
John Criswell47fdd832003-07-14 16:52:07 +000022480 # Both c and cxx compiler support -rpath directly
22481 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22482 fi
22483 hardcode_libdir_separator_F77=:
22484 ;;
22485
John Criswell47fdd832003-07-14 16:52:07 +000022486 solaris*)
22487 no_undefined_flag_F77=' -z text'
22488 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022489 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022490 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022491 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22492 $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 +000022493 else
Reid Spencera773bd52006-08-04 18:18:08 +000022494 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022495 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022496 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22497 $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 +000022498 fi
22499 hardcode_libdir_flag_spec_F77='-R$libdir'
22500 hardcode_shlibpath_var_F77=no
22501 case $host_os in
22502 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022503 *)
22504 # The compiler driver will combine linker options so we
22505 # cannot just pass the convience library names through
22506 # without $wl, iff we do not link with $LD.
22507 # Luckily, gcc supports the same syntax we need for Sun Studio.
22508 # Supported since Solaris 2.6 (maybe 2.5.1?)
22509 case $wlarc in
22510 '')
22511 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22512 *)
22513 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' ;;
22514 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022515 esac
22516 link_all_deplibs_F77=yes
22517 ;;
22518
22519 sunos4*)
22520 if test "x$host_vendor" = xsequent; then
22521 # Use $CC to link under sequent, because it throws in some extra .o
22522 # files that make .init and .fini sections work.
22523 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22524 else
22525 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22526 fi
22527 hardcode_libdir_flag_spec_F77='-L$libdir'
22528 hardcode_direct_F77=yes
22529 hardcode_minus_L_F77=yes
22530 hardcode_shlibpath_var_F77=no
22531 ;;
22532
22533 sysv4)
22534 case $host_vendor in
22535 sni)
22536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22537 hardcode_direct_F77=yes # is this really true???
22538 ;;
22539 siemens)
22540 ## LD is ld it makes a PLAMLIB
22541 ## CC just makes a GrossModule.
22542 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22543 reload_cmds_F77='$CC -r -o $output$reload_objs'
22544 hardcode_direct_F77=no
22545 ;;
22546 motorola)
22547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22548 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22549 ;;
22550 esac
22551 runpath_var='LD_RUN_PATH'
22552 hardcode_shlibpath_var_F77=no
22553 ;;
22554
22555 sysv4.3*)
22556 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22557 hardcode_shlibpath_var_F77=no
22558 export_dynamic_flag_spec_F77='-Bexport'
22559 ;;
22560
22561 sysv4*MP*)
22562 if test -d /usr/nec; then
22563 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22564 hardcode_shlibpath_var_F77=no
22565 runpath_var=LD_RUN_PATH
22566 hardcode_runpath_var=yes
22567 ld_shlibs_F77=yes
22568 fi
22569 ;;
22570
Reid Spencera773bd52006-08-04 18:18:08 +000022571 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22572 no_undefined_flag_F77='${wl}-z,text'
22573 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022574 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022575 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022576
John Criswell47fdd832003-07-14 16:52:07 +000022577 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022578 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22579 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 +000022580 else
Reid Spencera773bd52006-08-04 18:18:08 +000022581 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22582 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 +000022583 fi
John Criswell47fdd832003-07-14 16:52:07 +000022584 ;;
22585
Reid Spencera773bd52006-08-04 18:18:08 +000022586 sysv5* | sco3.2v5* | sco5v6*)
22587 # Note: We can NOT use -z defs as we might desire, because we do not
22588 # link with -lc, and that would cause any symbols used from libc to
22589 # always be unresolved, which means just about no library would
22590 # ever link correctly. If we're not using GNU ld we use -z text
22591 # though, which does catch some bad symbols but isn't as heavy-handed
22592 # as -z defs.
22593 no_undefined_flag_F77='${wl}-z,text'
22594 allow_undefined_flag_F77='${wl}-z,nodefs'
22595 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022596 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022597 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22598 hardcode_libdir_separator_F77=':'
22599 link_all_deplibs_F77=yes
22600 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022601 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022602
22603 if test "$GCC" = yes; then
22604 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22605 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22606 else
22607 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22608 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22609 fi
John Criswell47fdd832003-07-14 16:52:07 +000022610 ;;
22611
22612 uts4*)
22613 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22614 hardcode_libdir_flag_spec_F77='-L$libdir'
22615 hardcode_shlibpath_var_F77=no
22616 ;;
22617
22618 *)
22619 ld_shlibs_F77=no
22620 ;;
22621 esac
22622 fi
22623
Reid Spencera773bd52006-08-04 18:18:08 +000022624{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22625echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022626test "$ld_shlibs_F77" = no && can_build_shared=no
22627
John Criswell47fdd832003-07-14 16:52:07 +000022628#
22629# Do we need to explicitly link libc?
22630#
22631case "x$archive_cmds_need_lc_F77" in
22632x|xyes)
22633 # Assume -lc should be added
22634 archive_cmds_need_lc_F77=yes
22635
22636 if test "$enable_shared" = yes && test "$GCC" = yes; then
22637 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022638 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022639 # FIXME: we may have to deal with multi-command sequences.
22640 ;;
22641 '$CC '*)
22642 # Test whether the compiler implicitly links with -lc since on some
22643 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22644 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022645 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22646echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022647 $rm conftest*
22648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22649
22650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22651 (eval $ac_compile) 2>&5
22652 ac_status=$?
22653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); } 2>conftest.err; then
22655 soname=conftest
22656 lib=conftest
22657 libobjs=conftest.$ac_objext
22658 deplibs=
22659 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022660 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022661 compiler_flags=-v
22662 linker_flags=-v
22663 verstring=
22664 output_objdir=.
22665 libname=conftest
22666 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22667 allow_undefined_flag_F77=
22668 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22669 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22670 ac_status=$?
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); }
22673 then
22674 archive_cmds_need_lc_F77=no
22675 else
22676 archive_cmds_need_lc_F77=yes
22677 fi
22678 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22679 else
22680 cat conftest.err 1>&5
22681 fi
22682 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022683 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22684echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022685 ;;
22686 esac
22687 fi
22688 ;;
22689esac
22690
Reid Spencera773bd52006-08-04 18:18:08 +000022691{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22692echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022693library_names_spec=
22694libname_spec='lib$name'
22695soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022696shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022697postinstall_cmds=
22698postuninstall_cmds=
22699finish_cmds=
22700finish_eval=
22701shlibpath_var=
22702shlibpath_overrides_runpath=unknown
22703version_type=none
22704dynamic_linker="$host_os ld.so"
22705sys_lib_dlsearch_path_spec="/lib /usr/lib"
22706if test "$GCC" = yes; then
22707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22708 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22709 # if the path contains ";" then we assume it to be the separator
22710 # otherwise default to the standard path separator (i.e. ":") - it is
22711 # assumed that no part of a normal pathname contains ";" but that should
22712 # okay in the real world where ";" in dirpaths is itself problematic.
22713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22714 else
22715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22716 fi
22717else
22718 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22719fi
22720need_lib_prefix=unknown
22721hardcode_into_libs=no
22722
22723# when you set need_version to no, make sure it does not cause -set_version
22724# flags to be left without arguments
22725need_version=unknown
22726
22727case $host_os in
22728aix3*)
22729 version_type=linux
22730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22731 shlibpath_var=LIBPATH
22732
22733 # AIX 3 has no versioning support, so we append a major version to the name.
22734 soname_spec='${libname}${release}${shared_ext}$major'
22735 ;;
22736
22737aix4* | aix5*)
22738 version_type=linux
22739 need_lib_prefix=no
22740 need_version=no
22741 hardcode_into_libs=yes
22742 if test "$host_cpu" = ia64; then
22743 # AIX 5 supports IA64
22744 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22745 shlibpath_var=LD_LIBRARY_PATH
22746 else
22747 # With GCC up to 2.95.x, collect2 would create an import file
22748 # for dependence libraries. The import file would start with
22749 # the line `#! .'. This would cause the generated library to
22750 # depend on `.', always an invalid library. This was fixed in
22751 # development snapshots of GCC prior to 3.0.
22752 case $host_os in
22753 aix4 | aix4.[01] | aix4.[01].*)
22754 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22755 echo ' yes '
22756 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22757 :
22758 else
22759 can_build_shared=no
22760 fi
22761 ;;
22762 esac
22763 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22764 # soname into executable. Probably we can add versioning support to
22765 # collect2, so additional links can be useful in future.
22766 if test "$aix_use_runtimelinking" = yes; then
22767 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22768 # instead of lib<name>.a to let people know that these are not
22769 # typical AIX shared libraries.
22770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22771 else
22772 # We preserve .a as extension for shared libraries through AIX4.2
22773 # and later when we are not doing run time linking.
22774 library_names_spec='${libname}${release}.a $libname.a'
22775 soname_spec='${libname}${release}${shared_ext}$major'
22776 fi
22777 shlibpath_var=LIBPATH
22778 fi
22779 ;;
22780
22781amigaos*)
22782 library_names_spec='$libname.ixlibrary $libname.a'
22783 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022784 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 +000022785 ;;
22786
22787beos*)
22788 library_names_spec='${libname}${shared_ext}'
22789 dynamic_linker="$host_os ld.so"
22790 shlibpath_var=LIBRARY_PATH
22791 ;;
22792
Reid Spencer2706f8c2004-09-19 23:53:36 +000022793bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022794 version_type=linux
22795 need_version=no
22796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22797 soname_spec='${libname}${release}${shared_ext}$major'
22798 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22799 shlibpath_var=LD_LIBRARY_PATH
22800 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22801 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22802 # the default ld.so.conf also contains /usr/contrib/lib and
22803 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22804 # libtool to hard-code these into programs
22805 ;;
22806
22807cygwin* | mingw* | pw32*)
22808 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022809 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022810 need_version=no
22811 need_lib_prefix=no
22812
22813 case $GCC,$host_os in
22814 yes,cygwin* | yes,mingw* | yes,pw32*)
22815 library_names_spec='$libname.dll.a'
22816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022817 postinstall_cmds='base_file=`basename \${file}`~
22818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22819 dldir=$destdir/`dirname \$dlpath`~
22820 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022821 $install_prog $dir/$dlname \$dldir/$dlname~
22822 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022823 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22824 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022825 $rm \$dlpath'
22826 shlibpath_overrides_runpath=yes
22827
22828 case $host_os in
22829 cygwin*)
22830 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22831 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 +000022832 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022833 ;;
22834 mingw*)
22835 # MinGW DLLs use traditional 'lib' prefix
22836 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22837 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22838 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22839 # It is most probably a Windows format PATH printed by
22840 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22841 # path with ; separators, and with drive letters. We can handle the
22842 # drive letters (cygwin fileutils understands them), so leave them,
22843 # especially as we might pass files found there to a mingw objdump,
22844 # which wouldn't understand a cygwinified path. Ahh.
22845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22846 else
22847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22848 fi
22849 ;;
22850 pw32*)
22851 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022852 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 +000022853 ;;
22854 esac
22855 ;;
22856
22857 *)
22858 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22859 ;;
22860 esac
22861 dynamic_linker='Win32 ld.exe'
22862 # FIXME: first we should search . and the directory the executable is in
22863 shlibpath_var=PATH
22864 ;;
22865
22866darwin* | rhapsody*)
22867 dynamic_linker="$host_os dyld"
22868 version_type=darwin
22869 need_lib_prefix=no
22870 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022871 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022872 soname_spec='${libname}${release}${major}$shared_ext'
22873 shlibpath_overrides_runpath=yes
22874 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022875 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022876 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022877 if test "$GCC" = yes; then
22878 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"`
22879 else
22880 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022881 fi
22882 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22883 ;;
22884
22885dgux*)
22886 version_type=linux
22887 need_lib_prefix=no
22888 need_version=no
22889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22890 soname_spec='${libname}${release}${shared_ext}$major'
22891 shlibpath_var=LD_LIBRARY_PATH
22892 ;;
22893
22894freebsd1*)
22895 dynamic_linker=no
22896 ;;
22897
Reid Spencer2706f8c2004-09-19 23:53:36 +000022898kfreebsd*-gnu)
22899 version_type=linux
22900 need_lib_prefix=no
22901 need_version=no
22902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22903 soname_spec='${libname}${release}${shared_ext}$major'
22904 shlibpath_var=LD_LIBRARY_PATH
22905 shlibpath_overrides_runpath=no
22906 hardcode_into_libs=yes
22907 dynamic_linker='GNU ld.so'
22908 ;;
22909
Reid Spencera773bd52006-08-04 18:18:08 +000022910freebsd* | dragonfly*)
22911 # DragonFly does not have aout. When/if they implement a new
22912 # versioning mechanism, adjust this.
22913 if test -x /usr/bin/objformat; then
22914 objformat=`/usr/bin/objformat`
22915 else
22916 case $host_os in
22917 freebsd[123]*) objformat=aout ;;
22918 *) objformat=elf ;;
22919 esac
22920 fi
John Criswell47fdd832003-07-14 16:52:07 +000022921 version_type=freebsd-$objformat
22922 case $version_type in
22923 freebsd-elf*)
22924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22925 need_version=no
22926 need_lib_prefix=no
22927 ;;
22928 freebsd-*)
22929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22930 need_version=yes
22931 ;;
22932 esac
22933 shlibpath_var=LD_LIBRARY_PATH
22934 case $host_os in
22935 freebsd2*)
22936 shlibpath_overrides_runpath=yes
22937 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022938 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022939 shlibpath_overrides_runpath=yes
22940 hardcode_into_libs=yes
22941 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022942 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22943 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022944 shlibpath_overrides_runpath=no
22945 hardcode_into_libs=yes
22946 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022947 freebsd*) # from 4.6 on
22948 shlibpath_overrides_runpath=yes
22949 hardcode_into_libs=yes
22950 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022951 esac
22952 ;;
22953
22954gnu*)
22955 version_type=linux
22956 need_lib_prefix=no
22957 need_version=no
22958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22959 soname_spec='${libname}${release}${shared_ext}$major'
22960 shlibpath_var=LD_LIBRARY_PATH
22961 hardcode_into_libs=yes
22962 ;;
22963
22964hpux9* | hpux10* | hpux11*)
22965 # Give a soname corresponding to the major version so that dld.sl refuses to
22966 # link against other versions.
22967 version_type=sunos
22968 need_lib_prefix=no
22969 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022970 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022971 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022972 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022973 hardcode_into_libs=yes
22974 dynamic_linker="$host_os dld.so"
22975 shlibpath_var=LD_LIBRARY_PATH
22976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22978 soname_spec='${libname}${release}${shared_ext}$major'
22979 if test "X$HPUX_IA64_MODE" = X32; then
22980 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22981 else
22982 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22983 fi
22984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22985 ;;
22986 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022987 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022988 hardcode_into_libs=yes
22989 dynamic_linker="$host_os dld.sl"
22990 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22993 soname_spec='${libname}${release}${shared_ext}$major'
22994 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22996 ;;
22997 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022998 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022999 dynamic_linker="$host_os dld.sl"
23000 shlibpath_var=SHLIB_PATH
23001 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23003 soname_spec='${libname}${release}${shared_ext}$major'
23004 ;;
23005 esac
23006 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23007 postinstall_cmds='chmod 555 $lib'
23008 ;;
23009
Reid Spencera773bd52006-08-04 18:18:08 +000023010interix3*)
23011 version_type=linux
23012 need_lib_prefix=no
23013 need_version=no
23014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23015 soname_spec='${libname}${release}${shared_ext}$major'
23016 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23017 shlibpath_var=LD_LIBRARY_PATH
23018 shlibpath_overrides_runpath=no
23019 hardcode_into_libs=yes
23020 ;;
23021
John Criswell47fdd832003-07-14 16:52:07 +000023022irix5* | irix6* | nonstopux*)
23023 case $host_os in
23024 nonstopux*) version_type=nonstopux ;;
23025 *)
23026 if test "$lt_cv_prog_gnu_ld" = yes; then
23027 version_type=linux
23028 else
23029 version_type=irix
23030 fi ;;
23031 esac
23032 need_lib_prefix=no
23033 need_version=no
23034 soname_spec='${libname}${release}${shared_ext}$major'
23035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23036 case $host_os in
23037 irix5* | nonstopux*)
23038 libsuff= shlibsuff=
23039 ;;
23040 *)
23041 case $LD in # libtool.m4 will add one of these switches to LD
23042 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23043 libsuff= shlibsuff= libmagic=32-bit;;
23044 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23045 libsuff=32 shlibsuff=N32 libmagic=N32;;
23046 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23047 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23048 *) libsuff= shlibsuff= libmagic=never-match;;
23049 esac
23050 ;;
23051 esac
23052 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23053 shlibpath_overrides_runpath=no
23054 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23055 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23056 hardcode_into_libs=yes
23057 ;;
23058
23059# No shared lib support for Linux oldld, aout, or coff.
23060linux*oldld* | linux*aout* | linux*coff*)
23061 dynamic_linker=no
23062 ;;
23063
23064# This must be Linux ELF.
23065linux*)
23066 version_type=linux
23067 need_lib_prefix=no
23068 need_version=no
23069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23070 soname_spec='${libname}${release}${shared_ext}$major'
23071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23072 shlibpath_var=LD_LIBRARY_PATH
23073 shlibpath_overrides_runpath=no
23074 # This implies no fast_install, which is unacceptable.
23075 # Some rework will be needed to allow for fast_install
23076 # before this can be enabled.
23077 hardcode_into_libs=yes
23078
Reid Spencer2706f8c2004-09-19 23:53:36 +000023079 # Append ld.so.conf contents to the search path
23080 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023081 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 +000023082 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23083 fi
23084
John Criswell47fdd832003-07-14 16:52:07 +000023085 # We used to test for /lib/ld.so.1 and disable shared libraries on
23086 # powerpc, because MkLinux only supported shared libraries with the
23087 # GNU dynamic linker. Since this was broken with cross compilers,
23088 # most powerpc-linux boxes support dynamic linking these days and
23089 # people can always --disable-shared, the test was removed, and we
23090 # assume the GNU/Linux dynamic linker is in use.
23091 dynamic_linker='GNU/Linux ld.so'
23092 ;;
23093
Reid Spencer2706f8c2004-09-19 23:53:36 +000023094knetbsd*-gnu)
23095 version_type=linux
23096 need_lib_prefix=no
23097 need_version=no
23098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23099 soname_spec='${libname}${release}${shared_ext}$major'
23100 shlibpath_var=LD_LIBRARY_PATH
23101 shlibpath_overrides_runpath=no
23102 hardcode_into_libs=yes
23103 dynamic_linker='GNU ld.so'
23104 ;;
23105
John Criswell47fdd832003-07-14 16:52:07 +000023106netbsd*)
23107 version_type=sunos
23108 need_lib_prefix=no
23109 need_version=no
23110 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23113 dynamic_linker='NetBSD (a.out) ld.so'
23114 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023116 soname_spec='${libname}${release}${shared_ext}$major'
23117 dynamic_linker='NetBSD ld.elf_so'
23118 fi
23119 shlibpath_var=LD_LIBRARY_PATH
23120 shlibpath_overrides_runpath=yes
23121 hardcode_into_libs=yes
23122 ;;
23123
23124newsos6)
23125 version_type=linux
23126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23127 shlibpath_var=LD_LIBRARY_PATH
23128 shlibpath_overrides_runpath=yes
23129 ;;
23130
Reid Spencer2706f8c2004-09-19 23:53:36 +000023131nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023132 version_type=linux
23133 need_lib_prefix=no
23134 need_version=no
23135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23136 soname_spec='${libname}${release}${shared_ext}$major'
23137 shlibpath_var=LD_LIBRARY_PATH
23138 shlibpath_overrides_runpath=yes
23139 ;;
23140
23141openbsd*)
23142 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023143 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023144 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023145 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23146 case $host_os in
23147 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23148 *) need_version=no ;;
23149 esac
John Criswell47fdd832003-07-14 16:52:07 +000023150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23152 shlibpath_var=LD_LIBRARY_PATH
23153 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23154 case $host_os in
23155 openbsd2.[89] | openbsd2.[89].*)
23156 shlibpath_overrides_runpath=no
23157 ;;
23158 *)
23159 shlibpath_overrides_runpath=yes
23160 ;;
23161 esac
23162 else
23163 shlibpath_overrides_runpath=yes
23164 fi
23165 ;;
23166
23167os2*)
23168 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023169 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023170 need_lib_prefix=no
23171 library_names_spec='$libname${shared_ext} $libname.a'
23172 dynamic_linker='OS/2 ld.exe'
23173 shlibpath_var=LIBPATH
23174 ;;
23175
23176osf3* | osf4* | osf5*)
23177 version_type=osf
23178 need_lib_prefix=no
23179 need_version=no
23180 soname_spec='${libname}${release}${shared_ext}$major'
23181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23182 shlibpath_var=LD_LIBRARY_PATH
23183 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23184 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23185 ;;
23186
John Criswell47fdd832003-07-14 16:52:07 +000023187solaris*)
23188 version_type=linux
23189 need_lib_prefix=no
23190 need_version=no
23191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23192 soname_spec='${libname}${release}${shared_ext}$major'
23193 shlibpath_var=LD_LIBRARY_PATH
23194 shlibpath_overrides_runpath=yes
23195 hardcode_into_libs=yes
23196 # ldd complains unless libraries are executable
23197 postinstall_cmds='chmod +x $lib'
23198 ;;
23199
23200sunos4*)
23201 version_type=sunos
23202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23203 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23204 shlibpath_var=LD_LIBRARY_PATH
23205 shlibpath_overrides_runpath=yes
23206 if test "$with_gnu_ld" = yes; then
23207 need_lib_prefix=no
23208 fi
23209 need_version=yes
23210 ;;
23211
Reid Spencera773bd52006-08-04 18:18:08 +000023212sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023213 version_type=linux
23214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23215 soname_spec='${libname}${release}${shared_ext}$major'
23216 shlibpath_var=LD_LIBRARY_PATH
23217 case $host_vendor in
23218 sni)
23219 shlibpath_overrides_runpath=no
23220 need_lib_prefix=no
23221 export_dynamic_flag_spec='${wl}-Blargedynsym'
23222 runpath_var=LD_RUN_PATH
23223 ;;
23224 siemens)
23225 need_lib_prefix=no
23226 ;;
23227 motorola)
23228 need_lib_prefix=no
23229 need_version=no
23230 shlibpath_overrides_runpath=no
23231 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23232 ;;
23233 esac
23234 ;;
23235
23236sysv4*MP*)
23237 if test -d /usr/nec ;then
23238 version_type=linux
23239 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23240 soname_spec='$libname${shared_ext}.$major'
23241 shlibpath_var=LD_LIBRARY_PATH
23242 fi
23243 ;;
23244
Reid Spencera773bd52006-08-04 18:18:08 +000023245sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23246 version_type=freebsd-elf
23247 need_lib_prefix=no
23248 need_version=no
23249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23250 soname_spec='${libname}${release}${shared_ext}$major'
23251 shlibpath_var=LD_LIBRARY_PATH
23252 hardcode_into_libs=yes
23253 if test "$with_gnu_ld" = yes; then
23254 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23255 shlibpath_overrides_runpath=no
23256 else
23257 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23258 shlibpath_overrides_runpath=yes
23259 case $host_os in
23260 sco3.2v5*)
23261 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23262 ;;
23263 esac
23264 fi
23265 sys_lib_dlsearch_path_spec='/usr/lib'
23266 ;;
23267
John Criswell47fdd832003-07-14 16:52:07 +000023268uts4*)
23269 version_type=linux
23270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23271 soname_spec='${libname}${release}${shared_ext}$major'
23272 shlibpath_var=LD_LIBRARY_PATH
23273 ;;
23274
23275*)
23276 dynamic_linker=no
23277 ;;
23278esac
Reid Spencera773bd52006-08-04 18:18:08 +000023279{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23280echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023281test "$dynamic_linker" = no && can_build_shared=no
23282
Reid Spencera773bd52006-08-04 18:18:08 +000023283variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23284if test "$GCC" = yes; then
23285 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23286fi
23287
23288{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23289echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023290hardcode_action_F77=
23291if test -n "$hardcode_libdir_flag_spec_F77" || \
23292 test -n "$runpath_var_F77" || \
23293 test "X$hardcode_automatic_F77" = "Xyes" ; then
23294
23295 # We can hardcode non-existant directories.
23296 if test "$hardcode_direct_F77" != no &&
23297 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23298 # have to relink, otherwise we might link with an installed library
23299 # when we should be linking with a yet-to-be-installed one
23300 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23301 test "$hardcode_minus_L_F77" != no; then
23302 # Linking always hardcodes the temporary library directory.
23303 hardcode_action_F77=relink
23304 else
23305 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23306 hardcode_action_F77=immediate
23307 fi
23308else
23309 # We cannot hardcode anything, or else we can only hardcode existing
23310 # directories.
23311 hardcode_action_F77=unsupported
23312fi
Reid Spencera773bd52006-08-04 18:18:08 +000023313{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23314echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023315
23316if test "$hardcode_action_F77" = relink; then
23317 # Fast installation is not supported
23318 enable_fast_install=no
23319elif test "$shlibpath_overrides_runpath" = yes ||
23320 test "$enable_shared" = no; then
23321 # Fast installation is not necessary
23322 enable_fast_install=needless
23323fi
23324
John Criswell47fdd832003-07-14 16:52:07 +000023325
23326# The else clause should only fire when bootstrapping the
23327# libtool distribution, otherwise you forgot to ship ltmain.sh
23328# with your package, and you will get complaints that there are
23329# no rules to generate ltmain.sh.
23330if test -f "$ltmain"; then
23331 # See if we are running on zsh, and set the options which allow our commands through
23332 # without removal of \ escapes.
23333 if test -n "${ZSH_VERSION+set}" ; then
23334 setopt NO_GLOB_SUBST
23335 fi
23336 # Now quote all the things that may contain metacharacters while being
23337 # careful not to overquote the AC_SUBSTed values. We take copies of the
23338 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023339 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 +000023340 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023341 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23342 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23343 deplibs_check_method reload_flag reload_cmds need_locks \
23344 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23345 lt_cv_sys_global_symbol_to_c_name_address \
23346 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23347 old_postinstall_cmds old_postuninstall_cmds \
23348 compiler_F77 \
23349 CC_F77 \
23350 LD_F77 \
23351 lt_prog_compiler_wl_F77 \
23352 lt_prog_compiler_pic_F77 \
23353 lt_prog_compiler_static_F77 \
23354 lt_prog_compiler_no_builtin_flag_F77 \
23355 export_dynamic_flag_spec_F77 \
23356 thread_safe_flag_spec_F77 \
23357 whole_archive_flag_spec_F77 \
23358 enable_shared_with_static_runtimes_F77 \
23359 old_archive_cmds_F77 \
23360 old_archive_from_new_cmds_F77 \
23361 predep_objects_F77 \
23362 postdep_objects_F77 \
23363 predeps_F77 \
23364 postdeps_F77 \
23365 compiler_lib_search_path_F77 \
23366 archive_cmds_F77 \
23367 archive_expsym_cmds_F77 \
23368 postinstall_cmds_F77 \
23369 postuninstall_cmds_F77 \
23370 old_archive_from_expsyms_cmds_F77 \
23371 allow_undefined_flag_F77 \
23372 no_undefined_flag_F77 \
23373 export_symbols_cmds_F77 \
23374 hardcode_libdir_flag_spec_F77 \
23375 hardcode_libdir_flag_spec_ld_F77 \
23376 hardcode_libdir_separator_F77 \
23377 hardcode_automatic_F77 \
23378 module_cmds_F77 \
23379 module_expsym_cmds_F77 \
23380 lt_cv_prog_compiler_c_o_F77 \
23381 exclude_expsyms_F77 \
23382 include_expsyms_F77; do
23383
23384 case $var in
23385 old_archive_cmds_F77 | \
23386 old_archive_from_new_cmds_F77 | \
23387 archive_cmds_F77 | \
23388 archive_expsym_cmds_F77 | \
23389 module_cmds_F77 | \
23390 module_expsym_cmds_F77 | \
23391 old_archive_from_expsyms_cmds_F77 | \
23392 export_symbols_cmds_F77 | \
23393 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23394 postinstall_cmds | postuninstall_cmds | \
23395 old_postinstall_cmds | old_postuninstall_cmds | \
23396 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23397 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023398 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 +000023399 ;;
23400 *)
23401 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23402 ;;
23403 esac
23404 done
23405
23406 case $lt_echo in
23407 *'\$0 --fallback-echo"')
23408 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23409 ;;
23410 esac
23411
23412cfgfile="$ofile"
23413
23414 cat <<__EOF__ >> "$cfgfile"
23415# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23416
23417# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23418
23419# Shell to use when invoking shell scripts.
23420SHELL=$lt_SHELL
23421
23422# Whether or not to build shared libraries.
23423build_libtool_libs=$enable_shared
23424
23425# Whether or not to build static libraries.
23426build_old_libs=$enable_static
23427
23428# Whether or not to add -lc for building shared libraries.
23429build_libtool_need_lc=$archive_cmds_need_lc_F77
23430
23431# Whether or not to disallow shared libs when runtime libs are static
23432allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23433
23434# Whether or not to optimize for fast installation.
23435fast_install=$enable_fast_install
23436
23437# The host system.
23438host_alias=$host_alias
23439host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023440host_os=$host_os
23441
23442# The build system.
23443build_alias=$build_alias
23444build=$build
23445build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023446
23447# An echo program that does not interpret backslashes.
23448echo=$lt_echo
23449
23450# The archiver.
23451AR=$lt_AR
23452AR_FLAGS=$lt_AR_FLAGS
23453
23454# A C compiler.
23455LTCC=$lt_LTCC
23456
Reid Spencera773bd52006-08-04 18:18:08 +000023457# LTCC compiler flags.
23458LTCFLAGS=$lt_LTCFLAGS
23459
John Criswell47fdd832003-07-14 16:52:07 +000023460# A language-specific compiler.
23461CC=$lt_compiler_F77
23462
23463# Is the compiler the GNU C compiler?
23464with_gcc=$GCC_F77
23465
23466# An ERE matcher.
23467EGREP=$lt_EGREP
23468
23469# The linker used to build libraries.
23470LD=$lt_LD_F77
23471
23472# Whether we need hard or soft links.
23473LN_S=$lt_LN_S
23474
23475# A BSD-compatible nm program.
23476NM=$lt_NM
23477
23478# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023479STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023480
23481# Used to examine libraries when file_magic_cmd begins "file"
23482MAGIC_CMD=$MAGIC_CMD
23483
23484# Used on cygwin: DLL creation program.
23485DLLTOOL="$DLLTOOL"
23486
23487# Used on cygwin: object dumper.
23488OBJDUMP="$OBJDUMP"
23489
23490# Used on cygwin: assembler.
23491AS="$AS"
23492
23493# The name of the directory that contains temporary libtool files.
23494objdir=$objdir
23495
23496# How to create reloadable object files.
23497reload_flag=$lt_reload_flag
23498reload_cmds=$lt_reload_cmds
23499
23500# How to pass a linker flag through the compiler.
23501wl=$lt_lt_prog_compiler_wl_F77
23502
23503# Object file suffix (normally "o").
23504objext="$ac_objext"
23505
23506# Old archive suffix (normally "a").
23507libext="$libext"
23508
23509# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023510shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023511
23512# Executable file suffix (normally "").
23513exeext="$exeext"
23514
23515# Additional compiler flags for building library objects.
23516pic_flag=$lt_lt_prog_compiler_pic_F77
23517pic_mode=$pic_mode
23518
23519# What is the maximum length of a command?
23520max_cmd_len=$lt_cv_sys_max_cmd_len
23521
23522# Does compiler simultaneously support -c and -o options?
23523compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23524
Reid Spencera773bd52006-08-04 18:18:08 +000023525# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023526need_locks=$lt_need_locks
23527
23528# Do we need the lib prefix for modules?
23529need_lib_prefix=$need_lib_prefix
23530
23531# Do we need a version for libraries?
23532need_version=$need_version
23533
23534# Whether dlopen is supported.
23535dlopen_support=$enable_dlopen
23536
23537# Whether dlopen of programs is supported.
23538dlopen_self=$enable_dlopen_self
23539
23540# Whether dlopen of statically linked programs is supported.
23541dlopen_self_static=$enable_dlopen_self_static
23542
23543# Compiler flag to prevent dynamic linking.
23544link_static_flag=$lt_lt_prog_compiler_static_F77
23545
23546# Compiler flag to turn off builtin functions.
23547no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23548
23549# Compiler flag to allow reflexive dlopens.
23550export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23551
23552# Compiler flag to generate shared objects directly from archives.
23553whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23554
23555# Compiler flag to generate thread-safe objects.
23556thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23557
23558# Library versioning type.
23559version_type=$version_type
23560
23561# Format of library name prefix.
23562libname_spec=$lt_libname_spec
23563
23564# List of archive names. First name is the real one, the rest are links.
23565# The last name is the one that the linker finds with -lNAME.
23566library_names_spec=$lt_library_names_spec
23567
23568# The coded name of the library, if different from the real name.
23569soname_spec=$lt_soname_spec
23570
23571# Commands used to build and install an old-style archive.
23572RANLIB=$lt_RANLIB
23573old_archive_cmds=$lt_old_archive_cmds_F77
23574old_postinstall_cmds=$lt_old_postinstall_cmds
23575old_postuninstall_cmds=$lt_old_postuninstall_cmds
23576
23577# Create an old-style archive from a shared archive.
23578old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23579
23580# Create a temporary old-style archive to link instead of a shared archive.
23581old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23582
23583# Commands used to build and install a shared archive.
23584archive_cmds=$lt_archive_cmds_F77
23585archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23586postinstall_cmds=$lt_postinstall_cmds
23587postuninstall_cmds=$lt_postuninstall_cmds
23588
23589# Commands used to build a loadable module (assumed same as above if empty)
23590module_cmds=$lt_module_cmds_F77
23591module_expsym_cmds=$lt_module_expsym_cmds_F77
23592
23593# Commands to strip libraries.
23594old_striplib=$lt_old_striplib
23595striplib=$lt_striplib
23596
23597# Dependencies to place before the objects being linked to create a
23598# shared library.
23599predep_objects=$lt_predep_objects_F77
23600
23601# Dependencies to place after the objects being linked to create a
23602# shared library.
23603postdep_objects=$lt_postdep_objects_F77
23604
23605# Dependencies to place before the objects being linked to create a
23606# shared library.
23607predeps=$lt_predeps_F77
23608
23609# Dependencies to place after the objects being linked to create a
23610# shared library.
23611postdeps=$lt_postdeps_F77
23612
23613# The library search path used internally by the compiler when linking
23614# a shared library.
23615compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23616
23617# Method to check whether dependent libraries are shared objects.
23618deplibs_check_method=$lt_deplibs_check_method
23619
23620# Command to use when deplibs_check_method == file_magic.
23621file_magic_cmd=$lt_file_magic_cmd
23622
23623# Flag that allows shared libraries with undefined symbols to be built.
23624allow_undefined_flag=$lt_allow_undefined_flag_F77
23625
23626# Flag that forces no undefined symbols.
23627no_undefined_flag=$lt_no_undefined_flag_F77
23628
23629# Commands used to finish a libtool library installation in a directory.
23630finish_cmds=$lt_finish_cmds
23631
23632# Same as above, but a single script fragment to be evaled but not shown.
23633finish_eval=$lt_finish_eval
23634
23635# Take the output of nm and produce a listing of raw symbols and C names.
23636global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23637
23638# Transform the output of nm in a proper C declaration
23639global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23640
23641# Transform the output of nm in a C name address pair
23642global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23643
23644# This is the shared library runtime path variable.
23645runpath_var=$runpath_var
23646
23647# This is the shared library path variable.
23648shlibpath_var=$shlibpath_var
23649
23650# Is shlibpath searched before the hard-coded library search path?
23651shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23652
23653# How to hardcode a shared library path into an executable.
23654hardcode_action=$hardcode_action_F77
23655
23656# Whether we should hardcode library paths into libraries.
23657hardcode_into_libs=$hardcode_into_libs
23658
23659# Flag to hardcode \$libdir into a binary during linking.
23660# This must work even if \$libdir does not exist.
23661hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23662
23663# If ld is used when linking, flag to hardcode \$libdir into
23664# a binary during linking. This must work even if \$libdir does
23665# not exist.
23666hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23667
23668# Whether we need a single -rpath flag with a separated argument.
23669hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23670
23671# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23672# resulting binary.
23673hardcode_direct=$hardcode_direct_F77
23674
23675# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23676# resulting binary.
23677hardcode_minus_L=$hardcode_minus_L_F77
23678
23679# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23680# the resulting binary.
23681hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23682
23683# Set to yes if building a shared library automatically hardcodes DIR into the library
23684# and all subsequent libraries and executables linked against it.
23685hardcode_automatic=$hardcode_automatic_F77
23686
23687# Variables whose values should be saved in libtool wrapper scripts and
23688# restored at relink time.
23689variables_saved_for_relink="$variables_saved_for_relink"
23690
23691# Whether libtool must link a program against all its dependency libraries.
23692link_all_deplibs=$link_all_deplibs_F77
23693
23694# Compile-time system search path for libraries
23695sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23696
23697# Run-time system search path for libraries
23698sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23699
23700# Fix the shell variable \$srcfile for the compiler.
23701fix_srcfile_path="$fix_srcfile_path_F77"
23702
23703# Set to yes if exported symbols are required.
23704always_export_symbols=$always_export_symbols_F77
23705
23706# The commands to list exported symbols.
23707export_symbols_cmds=$lt_export_symbols_cmds_F77
23708
23709# The commands to extract the exported symbol list from a shared archive.
23710extract_expsyms_cmds=$lt_extract_expsyms_cmds
23711
23712# Symbols that should not be listed in the preloaded symbols.
23713exclude_expsyms=$lt_exclude_expsyms_F77
23714
23715# Symbols that must always be exported.
23716include_expsyms=$lt_include_expsyms_F77
23717
23718# ### END LIBTOOL TAG CONFIG: $tagname
23719
23720__EOF__
23721
23722
23723else
23724 # If there is no Makefile yet, we rely on a make rule to execute
23725 # `config.status --recheck' to rerun these tests and create the
23726 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023727 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23728 if test -f "$ltmain_in"; then
23729 test -f Makefile && make "$ltmain"
23730 fi
John Criswell47fdd832003-07-14 16:52:07 +000023731fi
23732
23733
23734ac_ext=c
23735ac_cpp='$CPP $CPPFLAGS'
23736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23738ac_compiler_gnu=$ac_cv_c_compiler_gnu
23739
23740CC="$lt_save_CC"
23741
23742 else
23743 tagname=""
23744 fi
23745 ;;
23746
23747 GCJ)
23748 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023749 ac_ext=c
23750ac_cpp='$CPP $CPPFLAGS'
23751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23753ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023754
23755
23756# Source file extension for Java test sources.
23757ac_ext=java
23758
23759# Object file extension for compiled Java test sources.
23760objext=o
23761objext_GCJ=$objext
23762
23763# Code to be used in simple compile tests
23764lt_simple_compile_test_code="class foo {}\n"
23765
23766# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023767lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023768
23769# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23770
23771# If no C compiler was specified, use CC.
23772LTCC=${LTCC-"$CC"}
23773
Reid Spencera773bd52006-08-04 18:18:08 +000023774# If no C compiler flags were specified, use CFLAGS.
23775LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23776
John Criswell47fdd832003-07-14 16:52:07 +000023777# Allow CC to be a program name with arguments.
23778compiler=$CC
23779
23780
Reid Spencera773bd52006-08-04 18:18:08 +000023781# save warnings/boilerplate of simple test code
23782ac_outfile=conftest.$ac_objext
23783printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23784eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23785_lt_compiler_boilerplate=`cat conftest.err`
23786$rm conftest*
23787
23788ac_outfile=conftest.$ac_objext
23789printf "$lt_simple_link_test_code" >conftest.$ac_ext
23790eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23791_lt_linker_boilerplate=`cat conftest.err`
23792$rm conftest*
23793
23794
John Criswell47fdd832003-07-14 16:52:07 +000023795# Allow CC to be a program name with arguments.
23796lt_save_CC="$CC"
23797CC=${GCJ-"gcj"}
23798compiler=$CC
23799compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023800for cc_temp in $compiler""; do
23801 case $cc_temp in
23802 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23803 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23804 \-*) ;;
23805 *) break;;
23806 esac
23807done
23808cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23809
John Criswell47fdd832003-07-14 16:52:07 +000023810
23811# GCJ did not exist at the time GCC didn't implicitly link libc in.
23812archive_cmds_need_lc_GCJ=no
23813
Reid Spencera773bd52006-08-04 18:18:08 +000023814old_archive_cmds_GCJ=$old_archive_cmds
23815
John Criswell47fdd832003-07-14 16:52:07 +000023816
23817lt_prog_compiler_no_builtin_flag_GCJ=
23818
23819if test "$GCC" = yes; then
23820 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23821
Reid Spencer2706f8c2004-09-19 23:53:36 +000023822
Reid Spencera773bd52006-08-04 18:18:08 +000023823{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23824echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023825if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23826 echo $ECHO_N "(cached) $ECHO_C" >&6
23827else
23828 lt_cv_prog_compiler_rtti_exceptions=no
23829 ac_outfile=conftest.$ac_objext
23830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23831 lt_compiler_flag="-fno-rtti -fno-exceptions"
23832 # Insert the option either (1) after the last *FLAGS variable, or
23833 # (2) before a word containing "conftest.", or (3) at the end.
23834 # Note that $ac_compile itself does not contain backslashes and begins
23835 # with a dollar sign (not a hyphen), so the echo should work correctly.
23836 # The option is referenced via a variable to avoid confusing sed.
23837 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23840 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000023841 (eval echo "\"\$as_me:23841: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023842 (eval "$lt_compile" 2>conftest.err)
23843 ac_status=$?
23844 cat conftest.err >&5
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000023845 echo "$as_me:23845: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023846 if (exit $ac_status) && test -s "$ac_outfile"; then
23847 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023848 # So say no if there are warnings other than the usual output.
23849 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23851 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023852 lt_cv_prog_compiler_rtti_exceptions=yes
23853 fi
23854 fi
23855 $rm conftest*
23856
23857fi
Reid Spencera773bd52006-08-04 18:18:08 +000023858{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23859echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023860
23861if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23862 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23863else
23864 :
23865fi
23866
23867fi
23868
23869lt_prog_compiler_wl_GCJ=
23870lt_prog_compiler_pic_GCJ=
23871lt_prog_compiler_static_GCJ=
23872
Reid Spencera773bd52006-08-04 18:18:08 +000023873{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23874echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023875
23876 if test "$GCC" = yes; then
23877 lt_prog_compiler_wl_GCJ='-Wl,'
23878 lt_prog_compiler_static_GCJ='-static'
23879
23880 case $host_os in
23881 aix*)
23882 # All AIX code is PIC.
23883 if test "$host_cpu" = ia64; then
23884 # AIX 5 now supports IA64 processor
23885 lt_prog_compiler_static_GCJ='-Bstatic'
23886 fi
23887 ;;
23888
23889 amigaos*)
23890 # FIXME: we need at least 68020 code to build shared libraries, but
23891 # adding the `-m68020' flag to GCC prevents building anything better,
23892 # like `-m68040'.
23893 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23894 ;;
23895
23896 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23897 # PIC is the default for these OSes.
23898 ;;
23899
23900 mingw* | pw32* | os2*)
23901 # This hack is so that the source file can tell whether it is being
23902 # built for inclusion in a dll (and should export symbols for example).
23903 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23904 ;;
23905
23906 darwin* | rhapsody*)
23907 # PIC is the default on this platform
23908 # Common symbols not allowed in MH_DYLIB files
23909 lt_prog_compiler_pic_GCJ='-fno-common'
23910 ;;
23911
Reid Spencera773bd52006-08-04 18:18:08 +000023912 interix3*)
23913 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23914 # Instead, we relocate shared libraries at runtime.
23915 ;;
23916
John Criswell47fdd832003-07-14 16:52:07 +000023917 msdosdjgpp*)
23918 # Just because we use GCC doesn't mean we suddenly get shared libraries
23919 # on systems that don't support them.
23920 lt_prog_compiler_can_build_shared_GCJ=no
23921 enable_shared=no
23922 ;;
23923
23924 sysv4*MP*)
23925 if test -d /usr/nec; then
23926 lt_prog_compiler_pic_GCJ=-Kconform_pic
23927 fi
23928 ;;
23929
23930 hpux*)
23931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23932 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023933 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023934 hppa*64*|ia64*)
23935 # +Z the default
23936 ;;
23937 *)
23938 lt_prog_compiler_pic_GCJ='-fPIC'
23939 ;;
23940 esac
23941 ;;
23942
23943 *)
23944 lt_prog_compiler_pic_GCJ='-fPIC'
23945 ;;
23946 esac
23947 else
23948 # PORTME Check for flag to pass linker flags through the system compiler.
23949 case $host_os in
23950 aix*)
23951 lt_prog_compiler_wl_GCJ='-Wl,'
23952 if test "$host_cpu" = ia64; then
23953 # AIX 5 now supports IA64 processor
23954 lt_prog_compiler_static_GCJ='-Bstatic'
23955 else
23956 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23957 fi
23958 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023959 darwin*)
23960 # PIC is the default on this platform
23961 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023962 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023963 xlc*)
23964 lt_prog_compiler_pic_GCJ='-qnocommon'
23965 lt_prog_compiler_wl_GCJ='-Wl,'
23966 ;;
23967 esac
23968 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023969
23970 mingw* | pw32* | os2*)
23971 # This hack is so that the source file can tell whether it is being
23972 # built for inclusion in a dll (and should export symbols for example).
23973 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23974 ;;
23975
23976 hpux9* | hpux10* | hpux11*)
23977 lt_prog_compiler_wl_GCJ='-Wl,'
23978 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23979 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023980 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023981 hppa*64*|ia64*)
23982 # +Z the default
23983 ;;
23984 *)
23985 lt_prog_compiler_pic_GCJ='+Z'
23986 ;;
23987 esac
23988 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23989 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23990 ;;
23991
23992 irix5* | irix6* | nonstopux*)
23993 lt_prog_compiler_wl_GCJ='-Wl,'
23994 # PIC (with -KPIC) is the default.
23995 lt_prog_compiler_static_GCJ='-non_shared'
23996 ;;
23997
23998 newsos6)
23999 lt_prog_compiler_pic_GCJ='-KPIC'
24000 lt_prog_compiler_static_GCJ='-Bstatic'
24001 ;;
24002
24003 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024004 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024005 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024006 lt_prog_compiler_wl_GCJ='-Wl,'
24007 lt_prog_compiler_pic_GCJ='-KPIC'
24008 lt_prog_compiler_static_GCJ='-static'
24009 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024010 pgcc* | pgf77* | pgf90* | pgf95*)
24011 # Portland Group compilers (*not* the Pentium gcc compiler,
24012 # which looks to be a dead project)
24013 lt_prog_compiler_wl_GCJ='-Wl,'
24014 lt_prog_compiler_pic_GCJ='-fpic'
24015 lt_prog_compiler_static_GCJ='-Bstatic'
24016 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024017 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024018 lt_prog_compiler_wl_GCJ='-Wl,'
24019 # All Alpha code is PIC.
24020 lt_prog_compiler_static_GCJ='-non_shared'
24021 ;;
24022 esac
24023 ;;
24024
24025 osf3* | osf4* | osf5*)
24026 lt_prog_compiler_wl_GCJ='-Wl,'
24027 # All OSF/1 code is PIC.
24028 lt_prog_compiler_static_GCJ='-non_shared'
24029 ;;
24030
John Criswell47fdd832003-07-14 16:52:07 +000024031 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024032 lt_prog_compiler_pic_GCJ='-KPIC'
24033 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024034 case $cc_basename in
24035 f77* | f90* | f95*)
24036 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24037 *)
24038 lt_prog_compiler_wl_GCJ='-Wl,';;
24039 esac
John Criswell47fdd832003-07-14 16:52:07 +000024040 ;;
24041
24042 sunos4*)
24043 lt_prog_compiler_wl_GCJ='-Qoption ld '
24044 lt_prog_compiler_pic_GCJ='-PIC'
24045 lt_prog_compiler_static_GCJ='-Bstatic'
24046 ;;
24047
Reid Spencera773bd52006-08-04 18:18:08 +000024048 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024049 lt_prog_compiler_wl_GCJ='-Wl,'
24050 lt_prog_compiler_pic_GCJ='-KPIC'
24051 lt_prog_compiler_static_GCJ='-Bstatic'
24052 ;;
24053
24054 sysv4*MP*)
24055 if test -d /usr/nec ;then
24056 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24057 lt_prog_compiler_static_GCJ='-Bstatic'
24058 fi
24059 ;;
24060
Reid Spencera773bd52006-08-04 18:18:08 +000024061 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24062 lt_prog_compiler_wl_GCJ='-Wl,'
24063 lt_prog_compiler_pic_GCJ='-KPIC'
24064 lt_prog_compiler_static_GCJ='-Bstatic'
24065 ;;
24066
24067 unicos*)
24068 lt_prog_compiler_wl_GCJ='-Wl,'
24069 lt_prog_compiler_can_build_shared_GCJ=no
24070 ;;
24071
John Criswell47fdd832003-07-14 16:52:07 +000024072 uts4*)
24073 lt_prog_compiler_pic_GCJ='-pic'
24074 lt_prog_compiler_static_GCJ='-Bstatic'
24075 ;;
24076
24077 *)
24078 lt_prog_compiler_can_build_shared_GCJ=no
24079 ;;
24080 esac
24081 fi
24082
Reid Spencera773bd52006-08-04 18:18:08 +000024083{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24084echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024085
24086#
24087# Check to make sure the PIC flag actually works.
24088#
24089if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024090
Reid Spencera773bd52006-08-04 18:18:08 +000024091{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24092echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024093if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24094 echo $ECHO_N "(cached) $ECHO_C" >&6
24095else
24096 lt_prog_compiler_pic_works_GCJ=no
24097 ac_outfile=conftest.$ac_objext
24098 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24099 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24100 # Insert the option either (1) after the last *FLAGS variable, or
24101 # (2) before a word containing "conftest.", or (3) at the end.
24102 # Note that $ac_compile itself does not contain backslashes and begins
24103 # with a dollar sign (not a hyphen), so the echo should work correctly.
24104 # The option is referenced via a variable to avoid confusing sed.
24105 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24108 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000024109 (eval echo "\"\$as_me:24109: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024110 (eval "$lt_compile" 2>conftest.err)
24111 ac_status=$?
24112 cat conftest.err >&5
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000024113 echo "$as_me:24113: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024114 if (exit $ac_status) && test -s "$ac_outfile"; then
24115 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024116 # So say no if there are warnings other than the usual output.
24117 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024120 lt_prog_compiler_pic_works_GCJ=yes
24121 fi
24122 fi
24123 $rm conftest*
24124
24125fi
Reid Spencera773bd52006-08-04 18:18:08 +000024126{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24127echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024128
24129if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24130 case $lt_prog_compiler_pic_GCJ in
24131 "" | " "*) ;;
24132 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24133 esac
24134else
24135 lt_prog_compiler_pic_GCJ=
24136 lt_prog_compiler_can_build_shared_GCJ=no
24137fi
24138
24139fi
Reid Spencera773bd52006-08-04 18:18:08 +000024140case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024141 # For platforms which do not support PIC, -DPIC is meaningless:
24142 *djgpp*)
24143 lt_prog_compiler_pic_GCJ=
24144 ;;
24145 *)
24146 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24147 ;;
24148esac
24149
Reid Spencera773bd52006-08-04 18:18:08 +000024150#
24151# Check to make sure the static flag actually works.
24152#
24153wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24154{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24155echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24156if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24157 echo $ECHO_N "(cached) $ECHO_C" >&6
24158else
24159 lt_prog_compiler_static_works_GCJ=no
24160 save_LDFLAGS="$LDFLAGS"
24161 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24162 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24163 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24164 # The linker can only warn and ignore the option if not recognized
24165 # So say no if there are warnings
24166 if test -s conftest.err; then
24167 # Append any errors to the config.log.
24168 cat conftest.err 1>&5
24169 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24171 if diff conftest.exp conftest.er2 >/dev/null; then
24172 lt_prog_compiler_static_works_GCJ=yes
24173 fi
24174 else
24175 lt_prog_compiler_static_works_GCJ=yes
24176 fi
24177 fi
24178 $rm conftest*
24179 LDFLAGS="$save_LDFLAGS"
24180
24181fi
24182{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24183echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24184
24185if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24186 :
24187else
24188 lt_prog_compiler_static_GCJ=
24189fi
24190
24191
24192{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24193echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024194if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24195 echo $ECHO_N "(cached) $ECHO_C" >&6
24196else
24197 lt_cv_prog_compiler_c_o_GCJ=no
24198 $rm -r conftest 2>/dev/null
24199 mkdir conftest
24200 cd conftest
24201 mkdir out
24202 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24203
John Criswell47fdd832003-07-14 16:52:07 +000024204 lt_compiler_flag="-o out/conftest2.$ac_objext"
24205 # Insert the option either (1) after the last *FLAGS variable, or
24206 # (2) before a word containing "conftest.", or (3) at the end.
24207 # Note that $ac_compile itself does not contain backslashes and begins
24208 # with a dollar sign (not a hyphen), so the echo should work correctly.
24209 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24212 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000024213 (eval echo "\"\$as_me:24213: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024214 (eval "$lt_compile" 2>out/conftest.err)
24215 ac_status=$?
24216 cat out/conftest.err >&5
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000024217 echo "$as_me:24217: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024218 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24219 then
24220 # The compiler can only warn and ignore the option if not recognized
24221 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024222 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024225 lt_cv_prog_compiler_c_o_GCJ=yes
24226 fi
24227 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024228 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024229 $rm conftest*
24230 # SGI C++ compiler will create directory out/ii_files/ for
24231 # template instantiation
24232 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24233 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024234 cd ..
24235 rmdir conftest
24236 $rm conftest*
24237
24238fi
Reid Spencera773bd52006-08-04 18:18:08 +000024239{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24240echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024241
24242
24243hard_links="nottested"
24244if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24245 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024246 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24247echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024248 hard_links=yes
24249 $rm conftest*
24250 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24251 touch conftest.a
24252 ln conftest.a conftest.b 2>&5 || hard_links=no
24253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024254 { echo "$as_me:$LINENO: result: $hard_links" >&5
24255echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024256 if test "$hard_links" = no; then
24257 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24258echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24259 need_locks=warn
24260 fi
24261else
24262 need_locks=no
24263fi
24264
Reid Spencera773bd52006-08-04 18:18:08 +000024265{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24266echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024267
24268 runpath_var=
24269 allow_undefined_flag_GCJ=
24270 enable_shared_with_static_runtimes_GCJ=no
24271 archive_cmds_GCJ=
24272 archive_expsym_cmds_GCJ=
24273 old_archive_From_new_cmds_GCJ=
24274 old_archive_from_expsyms_cmds_GCJ=
24275 export_dynamic_flag_spec_GCJ=
24276 whole_archive_flag_spec_GCJ=
24277 thread_safe_flag_spec_GCJ=
24278 hardcode_libdir_flag_spec_GCJ=
24279 hardcode_libdir_flag_spec_ld_GCJ=
24280 hardcode_libdir_separator_GCJ=
24281 hardcode_direct_GCJ=no
24282 hardcode_minus_L_GCJ=no
24283 hardcode_shlibpath_var_GCJ=unsupported
24284 link_all_deplibs_GCJ=unknown
24285 hardcode_automatic_GCJ=no
24286 module_cmds_GCJ=
24287 module_expsym_cmds_GCJ=
24288 always_export_symbols_GCJ=no
24289 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24290 # include_expsyms should be a list of space-separated symbols to be *always*
24291 # included in the symbol list
24292 include_expsyms_GCJ=
24293 # exclude_expsyms can be an extended regexp of symbols to exclude
24294 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24295 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24296 # as well as any symbol that contains `d'.
24297 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24298 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24299 # platforms (ab)use it in PIC code, but their linkers get confused if
24300 # the symbol is explicitly referenced. Since portable code cannot
24301 # rely on this symbol name, it's probably fine to never include it in
24302 # preloaded symbol tables.
24303 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024304 # Just being paranoid about ensuring that cc_basename is set.
24305 for cc_temp in $compiler""; do
24306 case $cc_temp in
24307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24309 \-*) ;;
24310 *) break;;
24311 esac
24312done
24313cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024314
24315 case $host_os in
24316 cygwin* | mingw* | pw32*)
24317 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24318 # When not using gcc, we currently assume that we are using
24319 # Microsoft Visual C++.
24320 if test "$GCC" != yes; then
24321 with_gnu_ld=no
24322 fi
24323 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024324 interix*)
24325 # we just hope/assume this is gcc and not c89 (= MSVC++)
24326 with_gnu_ld=yes
24327 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024328 openbsd*)
24329 with_gnu_ld=no
24330 ;;
24331 esac
24332
24333 ld_shlibs_GCJ=yes
24334 if test "$with_gnu_ld" = yes; then
24335 # If archive_cmds runs LD, not CC, wlarc should be empty
24336 wlarc='${wl}'
24337
Reid Spencera773bd52006-08-04 18:18:08 +000024338 # Set some defaults for GNU ld with shared library support. These
24339 # are reset later if shared libraries are not supported. Putting them
24340 # here allows them to be overridden if necessary.
24341 runpath_var=LD_RUN_PATH
24342 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24343 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24344 # ancient GNU ld didn't support --whole-archive et. al.
24345 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24346 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24347 else
24348 whole_archive_flag_spec_GCJ=
24349 fi
24350 supports_anon_versioning=no
24351 case `$LD -v 2>/dev/null` in
24352 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24353 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24354 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24355 *\ 2.11.*) ;; # other 2.11 versions
24356 *) supports_anon_versioning=yes ;;
24357 esac
24358
John Criswell47fdd832003-07-14 16:52:07 +000024359 # See if GNU ld supports shared libraries.
24360 case $host_os in
24361 aix3* | aix4* | aix5*)
24362 # On AIX/PPC, the GNU linker is very broken
24363 if test "$host_cpu" != ia64; then
24364 ld_shlibs_GCJ=no
24365 cat <<EOF 1>&2
24366
24367*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24368*** to be unable to reliably create shared libraries on AIX.
24369*** Therefore, libtool is disabling shared libraries support. If you
24370*** really care for shared libraries, you may want to modify your PATH
24371*** so that a non-GNU linker is found, and then restart.
24372
24373EOF
24374 fi
24375 ;;
24376
24377 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024378 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 +000024379 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24380 hardcode_minus_L_GCJ=yes
24381
24382 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24383 # that the semantics of dynamic libraries on AmigaOS, at least up
24384 # to version 4, is to share data among multiple programs linked
24385 # with the same dynamic library. Since this doesn't match the
24386 # behavior of shared libraries on other platforms, we can't use
24387 # them.
24388 ld_shlibs_GCJ=no
24389 ;;
24390
24391 beos*)
24392 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24393 allow_undefined_flag_GCJ=unsupported
24394 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24395 # support --undefined. This deserves some investigation. FIXME
24396 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24397 else
24398 ld_shlibs_GCJ=no
24399 fi
24400 ;;
24401
24402 cygwin* | mingw* | pw32*)
24403 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24404 # as there is no search path for DLLs.
24405 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24406 allow_undefined_flag_GCJ=unsupported
24407 always_export_symbols_GCJ=no
24408 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024409 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 +000024410
24411 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024412 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 +000024413 # If the export-symbols file already is a .def file (1st line
24414 # is EXPORTS), use it as is; otherwise, prepend...
24415 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24416 cp $export_symbols $output_objdir/$soname.def;
24417 else
24418 echo EXPORTS > $output_objdir/$soname.def;
24419 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024420 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024421 $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 +000024422 else
Reid Spencera773bd52006-08-04 18:18:08 +000024423 ld_shlibs_GCJ=no
24424 fi
24425 ;;
24426
24427 interix3*)
24428 hardcode_direct_GCJ=no
24429 hardcode_shlibpath_var_GCJ=no
24430 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24431 export_dynamic_flag_spec_GCJ='${wl}-E'
24432 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24433 # Instead, shared libraries are loaded at an image base (0x10000000 by
24434 # default) and relocated if they conflict, which is a slow very memory
24435 # consuming and fragmenting process. To avoid this, we pick a random,
24436 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24437 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24438 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'
24439 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'
24440 ;;
24441
24442 linux*)
24443 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24444 tmp_addflag=
24445 case $cc_basename,$host_cpu in
24446 pgcc*) # Portland Group C compiler
24447 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'
24448 tmp_addflag=' $pic_flag'
24449 ;;
24450 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24451 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'
24452 tmp_addflag=' $pic_flag -Mnomain' ;;
24453 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24454 tmp_addflag=' -i_dynamic' ;;
24455 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24456 tmp_addflag=' -i_dynamic -nofor_main' ;;
24457 ifc* | ifort*) # Intel Fortran compiler
24458 tmp_addflag=' -nofor_main' ;;
24459 esac
24460 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24461
24462 if test $supports_anon_versioning = yes; then
24463 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24464 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24465 $echo "local: *; };" >> $output_objdir/$libname.ver~
24466 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24467 fi
24468 else
24469 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024470 fi
24471 ;;
24472
24473 netbsd*)
24474 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24475 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24476 wlarc=
24477 else
24478 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24479 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24480 fi
24481 ;;
24482
Reid Spencera773bd52006-08-04 18:18:08 +000024483 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024484 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24485 ld_shlibs_GCJ=no
24486 cat <<EOF 1>&2
24487
24488*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24489*** create shared libraries on Solaris systems. Therefore, libtool
24490*** is disabling shared libraries support. We urge you to upgrade GNU
24491*** binutils to release 2.9.1 or newer. Another option is to modify
24492*** your PATH or compiler configuration so that the native linker is
24493*** used, and then restart.
24494
24495EOF
24496 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24497 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24498 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24499 else
24500 ld_shlibs_GCJ=no
24501 fi
24502 ;;
24503
Reid Spencera773bd52006-08-04 18:18:08 +000024504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24505 case `$LD -v 2>&1` in
24506 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24507 ld_shlibs_GCJ=no
24508 cat <<_LT_EOF 1>&2
24509
24510*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24511*** reliably create shared libraries on SCO systems. Therefore, libtool
24512*** is disabling shared libraries support. We urge you to upgrade GNU
24513*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24514*** your PATH or compiler configuration so that the native linker is
24515*** used, and then restart.
24516
24517_LT_EOF
24518 ;;
24519 *)
24520 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24521 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24522 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24523 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24524 else
24525 ld_shlibs_GCJ=no
24526 fi
24527 ;;
24528 esac
24529 ;;
24530
John Criswell47fdd832003-07-14 16:52:07 +000024531 sunos4*)
24532 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24533 wlarc=
24534 hardcode_direct_GCJ=yes
24535 hardcode_shlibpath_var_GCJ=no
24536 ;;
24537
24538 *)
24539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24540 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24541 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24542 else
24543 ld_shlibs_GCJ=no
24544 fi
24545 ;;
24546 esac
24547
Reid Spencera773bd52006-08-04 18:18:08 +000024548 if test "$ld_shlibs_GCJ" = no; then
24549 runpath_var=
24550 hardcode_libdir_flag_spec_GCJ=
24551 export_dynamic_flag_spec_GCJ=
24552 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024553 fi
24554 else
24555 # PORTME fill in a description of your system's linker (not GNU ld)
24556 case $host_os in
24557 aix3*)
24558 allow_undefined_flag_GCJ=unsupported
24559 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024560 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 +000024561 # Note: this linker hardcodes the directories in LIBPATH if there
24562 # are no directories specified by -L.
24563 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024564 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024565 # Neither direct hardcoding nor static linking is supported with a
24566 # broken collect2.
24567 hardcode_direct_GCJ=unsupported
24568 fi
24569 ;;
24570
24571 aix4* | aix5*)
24572 if test "$host_cpu" = ia64; then
24573 # On IA64, the linker does run time linking by default, so we don't
24574 # have to do anything special.
24575 aix_use_runtimelinking=no
24576 exp_sym_flag='-Bexport'
24577 no_entry_flag=""
24578 else
24579 # If we're using GNU nm, then we don't want the "-C" option.
24580 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24581 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24582 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'
24583 else
24584 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'
24585 fi
24586 aix_use_runtimelinking=no
24587
24588 # Test if we are trying to use run time linking or normal
24589 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24590 # need to do runtime linking.
24591 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24592 for ld_flag in $LDFLAGS; do
24593 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24594 aix_use_runtimelinking=yes
24595 break
24596 fi
24597 done
Reid Spencera773bd52006-08-04 18:18:08 +000024598 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024599 esac
24600
24601 exp_sym_flag='-bexport'
24602 no_entry_flag='-bnoentry'
24603 fi
24604
24605 # When large executables or shared objects are built, AIX ld can
24606 # have problems creating the table of contents. If linking a library
24607 # or program results in "error TOC overflow" add -mminimal-toc to
24608 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24609 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24610
24611 archive_cmds_GCJ=''
24612 hardcode_direct_GCJ=yes
24613 hardcode_libdir_separator_GCJ=':'
24614 link_all_deplibs_GCJ=yes
24615
24616 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024617 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024618 # We only want to do this on AIX 4.2 and lower, the check
24619 # below for broken collect2 doesn't work under 4.3+
24620 collect2name=`${CC} -print-prog-name=collect2`
24621 if test -f "$collect2name" && \
24622 strings "$collect2name" | grep resolve_lib_name >/dev/null
24623 then
24624 # We have reworked collect2
24625 hardcode_direct_GCJ=yes
24626 else
24627 # We have old collect2
24628 hardcode_direct_GCJ=unsupported
24629 # It fails to find uninstalled libraries when the uninstalled
24630 # path is not listed in the libpath. Setting hardcode_minus_L
24631 # to unsupported forces relinking
24632 hardcode_minus_L_GCJ=yes
24633 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24634 hardcode_libdir_separator_GCJ=
24635 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024636 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024637 esac
24638 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024639 if test "$aix_use_runtimelinking" = yes; then
24640 shared_flag="$shared_flag "'${wl}-G'
24641 fi
John Criswell47fdd832003-07-14 16:52:07 +000024642 else
24643 # not using gcc
24644 if test "$host_cpu" = ia64; then
24645 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24646 # chokes on -Wl,-G. The following line is correct:
24647 shared_flag='-G'
24648 else
Reid Spencera773bd52006-08-04 18:18:08 +000024649 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024650 shared_flag='${wl}-G'
24651 else
24652 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024653 fi
John Criswell47fdd832003-07-14 16:52:07 +000024654 fi
24655 fi
24656
24657 # It seems that -bexpall does not export symbols beginning with
24658 # underscore (_), so it is better to generate a list of symbols to export.
24659 always_export_symbols_GCJ=yes
24660 if test "$aix_use_runtimelinking" = yes; then
24661 # Warning - without using the other runtime loading flags (-brtl),
24662 # -berok will link without error, but may produce a broken library.
24663 allow_undefined_flag_GCJ='-berok'
24664 # Determine the default libpath from the value encoded in an empty executable.
24665 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024666/* confdefs.h. */
24667_ACEOF
24668cat confdefs.h >>conftest.$ac_ext
24669cat >>conftest.$ac_ext <<_ACEOF
24670/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024671
John Criswell47fdd832003-07-14 16:52:07 +000024672int
24673main ()
24674{
24675
24676 ;
24677 return 0;
24678}
24679_ACEOF
24680rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024681if { (ac_try="$ac_link"
24682case "(($ac_try" in
24683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24684 *) ac_try_echo=$ac_try;;
24685esac
24686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24687 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024688 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024689 grep -v '^ *+' conftest.er1 >conftest.err
24690 rm -f conftest.er1
24691 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024693 (exit $ac_status); } &&
24694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24695 { (case "(($ac_try" in
24696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24697 *) ac_try_echo=$ac_try;;
24698esac
24699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24700 (eval "$ac_try") 2>&5
24701 ac_status=$?
24702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703 (exit $ac_status); }; } &&
24704 { ac_try='test -s conftest$ac_exeext'
24705 { (case "(($ac_try" in
24706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24707 *) ac_try_echo=$ac_try;;
24708esac
24709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24710 (eval "$ac_try") 2>&5
24711 ac_status=$?
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024714
24715aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24716}'`
24717# Check for a 64-bit object if we didn't find anything.
24718if 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; }
24719}'`; fi
24720else
24721 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024722sed 's/^/| /' conftest.$ac_ext >&5
24723
Reid Spencera773bd52006-08-04 18:18:08 +000024724
John Criswell47fdd832003-07-14 16:52:07 +000024725fi
Reid Spencera773bd52006-08-04 18:18:08 +000024726
Bill Wendlingebcceee2009-04-18 11:20:33 +000024727rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024728 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024729if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24730
24731 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024732 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 +000024733 else
24734 if test "$host_cpu" = ia64; then
24735 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24736 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024737 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 +000024738 else
24739 # Determine the default libpath from the value encoded in an empty executable.
24740 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024741/* confdefs.h. */
24742_ACEOF
24743cat confdefs.h >>conftest.$ac_ext
24744cat >>conftest.$ac_ext <<_ACEOF
24745/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024746
John Criswell47fdd832003-07-14 16:52:07 +000024747int
24748main ()
24749{
24750
24751 ;
24752 return 0;
24753}
24754_ACEOF
24755rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024756if { (ac_try="$ac_link"
24757case "(($ac_try" in
24758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759 *) ac_try_echo=$ac_try;;
24760esac
24761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24762 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024763 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024764 grep -v '^ *+' conftest.er1 >conftest.err
24765 rm -f conftest.er1
24766 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024768 (exit $ac_status); } &&
24769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24770 { (case "(($ac_try" in
24771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24772 *) ac_try_echo=$ac_try;;
24773esac
24774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24775 (eval "$ac_try") 2>&5
24776 ac_status=$?
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); }; } &&
24779 { ac_try='test -s conftest$ac_exeext'
24780 { (case "(($ac_try" in
24781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782 *) ac_try_echo=$ac_try;;
24783esac
24784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24785 (eval "$ac_try") 2>&5
24786 ac_status=$?
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024789
24790aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24791}'`
24792# Check for a 64-bit object if we didn't find anything.
24793if 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; }
24794}'`; fi
24795else
24796 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024797sed 's/^/| /' conftest.$ac_ext >&5
24798
Reid Spencera773bd52006-08-04 18:18:08 +000024799
John Criswell47fdd832003-07-14 16:52:07 +000024800fi
Reid Spencera773bd52006-08-04 18:18:08 +000024801
Bill Wendlingebcceee2009-04-18 11:20:33 +000024802rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024803 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024804if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24805
24806 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24807 # Warning - without using the other run time loading flags,
24808 # -berok will link without error, but may produce a broken library.
24809 no_undefined_flag_GCJ=' ${wl}-bernotok'
24810 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024811 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024812 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024813 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024814 # This is similar to how AIX traditionally builds its shared libraries.
24815 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 +000024816 fi
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 # see comment about different semantics on the GNU ld section
24825 ld_shlibs_GCJ=no
24826 ;;
24827
Reid Spencer2706f8c2004-09-19 23:53:36 +000024828 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024829 export_dynamic_flag_spec_GCJ=-rdynamic
24830 ;;
24831
24832 cygwin* | mingw* | pw32*)
24833 # When not using gcc, we currently assume that we are using
24834 # Microsoft Visual C++.
24835 # hardcode_libdir_flag_spec is actually meaningless, as there is
24836 # no search path for DLLs.
24837 hardcode_libdir_flag_spec_GCJ=' '
24838 allow_undefined_flag_GCJ=unsupported
24839 # Tell ltmain to make .lib files, not .a files.
24840 libext=lib
24841 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024842 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024843 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024844 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 +000024845 # The linker will automatically build a .lib file if we build a DLL.
24846 old_archive_From_new_cmds_GCJ='true'
24847 # FIXME: Should let the user specify the lib program.
24848 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024849 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024850 enable_shared_with_static_runtimes_GCJ=yes
24851 ;;
24852
24853 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024854 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024855 rhapsody* | darwin1.[012])
24856 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24857 ;;
24858 *) # Darwin 1.3 on
24859 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24860 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24861 else
24862 case ${MACOSX_DEPLOYMENT_TARGET} in
24863 10.[012])
24864 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24865 ;;
24866 10.*)
24867 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24868 ;;
24869 esac
24870 fi
24871 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024872 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024873 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024874 hardcode_direct_GCJ=no
24875 hardcode_automatic_GCJ=yes
24876 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024877 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024878 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024879 if test "$GCC" = yes ; then
24880 output_verbose_link_cmd='echo'
24881 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24882 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024883 # 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 +000024884 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}'
24885 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 +000024886 else
Reid Spencera773bd52006-08-04 18:18:08 +000024887 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024888 xlc*)
24889 output_verbose_link_cmd='echo'
24890 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24891 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024892 # 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 +000024893 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}'
24894 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 +000024895 ;;
24896 *)
24897 ld_shlibs_GCJ=no
24898 ;;
24899 esac
John Criswell47fdd832003-07-14 16:52:07 +000024900 fi
24901 ;;
24902
24903 dgux*)
24904 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24905 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24906 hardcode_shlibpath_var_GCJ=no
24907 ;;
24908
24909 freebsd1*)
24910 ld_shlibs_GCJ=no
24911 ;;
24912
24913 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24914 # support. Future versions do this automatically, but an explicit c++rt0.o
24915 # does not break anything, and helps significantly (at the cost of a little
24916 # extra space).
24917 freebsd2.2*)
24918 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24919 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24920 hardcode_direct_GCJ=yes
24921 hardcode_shlibpath_var_GCJ=no
24922 ;;
24923
24924 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24925 freebsd2*)
24926 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24927 hardcode_direct_GCJ=yes
24928 hardcode_minus_L_GCJ=yes
24929 hardcode_shlibpath_var_GCJ=no
24930 ;;
24931
24932 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024933 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024934 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24935 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24936 hardcode_direct_GCJ=yes
24937 hardcode_shlibpath_var_GCJ=no
24938 ;;
24939
24940 hpux9*)
24941 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024942 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 +000024943 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024944 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 +000024945 fi
24946 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24947 hardcode_libdir_separator_GCJ=:
24948 hardcode_direct_GCJ=yes
24949
24950 # hardcode_minus_L: Not really in the search PATH,
24951 # but as the default location of the library.
24952 hardcode_minus_L_GCJ=yes
24953 export_dynamic_flag_spec_GCJ='${wl}-E'
24954 ;;
24955
Reid Spencera773bd52006-08-04 18:18:08 +000024956 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024957 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024958 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24959 else
24960 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24961 fi
24962 if test "$with_gnu_ld" = no; then
24963 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24964 hardcode_libdir_separator_GCJ=:
24965
24966 hardcode_direct_GCJ=yes
24967 export_dynamic_flag_spec_GCJ='${wl}-E'
24968
24969 # hardcode_minus_L: Not really in the search PATH,
24970 # but as the default location of the library.
24971 hardcode_minus_L_GCJ=yes
24972 fi
24973 ;;
24974
24975 hpux11*)
24976 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24977 case $host_cpu in
24978 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024979 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24980 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024981 ia64*)
24982 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24983 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024984 *)
24985 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24986 ;;
24987 esac
24988 else
Reid Spencera773bd52006-08-04 18:18:08 +000024989 case $host_cpu in
24990 hppa*64*)
24991 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24992 ;;
24993 ia64*)
24994 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024995 ;;
24996 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024997 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 +000024998 ;;
24999 esac
25000 fi
25001 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025002 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25003 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025004
Reid Spencera773bd52006-08-04 18:18:08 +000025005 case $host_cpu in
25006 hppa*64*|ia64*)
25007 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25008 hardcode_direct_GCJ=no
25009 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025010 ;;
25011 *)
John Criswell47fdd832003-07-14 16:52:07 +000025012 hardcode_direct_GCJ=yes
25013 export_dynamic_flag_spec_GCJ='${wl}-E'
25014
25015 # hardcode_minus_L: Not really in the search PATH,
25016 # but as the default location of the library.
25017 hardcode_minus_L_GCJ=yes
25018 ;;
25019 esac
25020 fi
25021 ;;
25022
25023 irix5* | irix6* | nonstopux*)
25024 if test "$GCC" = yes; then
25025 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'
25026 else
25027 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'
25028 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25029 fi
25030 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25031 hardcode_libdir_separator_GCJ=:
25032 link_all_deplibs_GCJ=yes
25033 ;;
25034
25035 netbsd*)
25036 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25037 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25038 else
25039 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25040 fi
25041 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25042 hardcode_direct_GCJ=yes
25043 hardcode_shlibpath_var_GCJ=no
25044 ;;
25045
25046 newsos6)
25047 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25048 hardcode_direct_GCJ=yes
25049 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25050 hardcode_libdir_separator_GCJ=:
25051 hardcode_shlibpath_var_GCJ=no
25052 ;;
25053
25054 openbsd*)
25055 hardcode_direct_GCJ=yes
25056 hardcode_shlibpath_var_GCJ=no
25057 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25058 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025059 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 +000025060 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25061 export_dynamic_flag_spec_GCJ='${wl}-E'
25062 else
25063 case $host_os in
25064 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25065 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25066 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25067 ;;
25068 *)
25069 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25071 ;;
25072 esac
25073 fi
25074 ;;
25075
25076 os2*)
25077 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25078 hardcode_minus_L_GCJ=yes
25079 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025080 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 +000025081 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25082 ;;
25083
25084 osf3*)
25085 if test "$GCC" = yes; then
25086 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25087 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'
25088 else
25089 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25090 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'
25091 fi
25092 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25093 hardcode_libdir_separator_GCJ=:
25094 ;;
25095
25096 osf4* | osf5*) # as osf3* with the addition of -msym flag
25097 if test "$GCC" = yes; then
25098 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25099 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'
25100 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25101 else
25102 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25103 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 +000025104 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 +000025105 $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 +000025106
John Criswell47fdd832003-07-14 16:52:07 +000025107 # Both c and cxx compiler support -rpath directly
25108 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25109 fi
25110 hardcode_libdir_separator_GCJ=:
25111 ;;
25112
John Criswell47fdd832003-07-14 16:52:07 +000025113 solaris*)
25114 no_undefined_flag_GCJ=' -z text'
25115 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025116 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025117 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025118 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25119 $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 +000025120 else
Reid Spencera773bd52006-08-04 18:18:08 +000025121 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025122 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025123 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25124 $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 +000025125 fi
25126 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25127 hardcode_shlibpath_var_GCJ=no
25128 case $host_os in
25129 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025130 *)
25131 # The compiler driver will combine linker options so we
25132 # cannot just pass the convience library names through
25133 # without $wl, iff we do not link with $LD.
25134 # Luckily, gcc supports the same syntax we need for Sun Studio.
25135 # Supported since Solaris 2.6 (maybe 2.5.1?)
25136 case $wlarc in
25137 '')
25138 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25139 *)
25140 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' ;;
25141 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025142 esac
25143 link_all_deplibs_GCJ=yes
25144 ;;
25145
25146 sunos4*)
25147 if test "x$host_vendor" = xsequent; then
25148 # Use $CC to link under sequent, because it throws in some extra .o
25149 # files that make .init and .fini sections work.
25150 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25151 else
25152 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25153 fi
25154 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25155 hardcode_direct_GCJ=yes
25156 hardcode_minus_L_GCJ=yes
25157 hardcode_shlibpath_var_GCJ=no
25158 ;;
25159
25160 sysv4)
25161 case $host_vendor in
25162 sni)
25163 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25164 hardcode_direct_GCJ=yes # is this really true???
25165 ;;
25166 siemens)
25167 ## LD is ld it makes a PLAMLIB
25168 ## CC just makes a GrossModule.
25169 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25170 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25171 hardcode_direct_GCJ=no
25172 ;;
25173 motorola)
25174 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25175 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25176 ;;
25177 esac
25178 runpath_var='LD_RUN_PATH'
25179 hardcode_shlibpath_var_GCJ=no
25180 ;;
25181
25182 sysv4.3*)
25183 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25184 hardcode_shlibpath_var_GCJ=no
25185 export_dynamic_flag_spec_GCJ='-Bexport'
25186 ;;
25187
25188 sysv4*MP*)
25189 if test -d /usr/nec; then
25190 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25191 hardcode_shlibpath_var_GCJ=no
25192 runpath_var=LD_RUN_PATH
25193 hardcode_runpath_var=yes
25194 ld_shlibs_GCJ=yes
25195 fi
25196 ;;
25197
Reid Spencera773bd52006-08-04 18:18:08 +000025198 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25199 no_undefined_flag_GCJ='${wl}-z,text'
25200 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025201 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025202 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025203
John Criswell47fdd832003-07-14 16:52:07 +000025204 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025205 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25206 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 +000025207 else
Reid Spencera773bd52006-08-04 18:18:08 +000025208 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25209 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 +000025210 fi
John Criswell47fdd832003-07-14 16:52:07 +000025211 ;;
25212
Reid Spencera773bd52006-08-04 18:18:08 +000025213 sysv5* | sco3.2v5* | sco5v6*)
25214 # Note: We can NOT use -z defs as we might desire, because we do not
25215 # link with -lc, and that would cause any symbols used from libc to
25216 # always be unresolved, which means just about no library would
25217 # ever link correctly. If we're not using GNU ld we use -z text
25218 # though, which does catch some bad symbols but isn't as heavy-handed
25219 # as -z defs.
25220 no_undefined_flag_GCJ='${wl}-z,text'
25221 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25222 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025223 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025224 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25225 hardcode_libdir_separator_GCJ=':'
25226 link_all_deplibs_GCJ=yes
25227 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025228 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025229
25230 if test "$GCC" = yes; then
25231 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25232 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25233 else
25234 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25235 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25236 fi
John Criswell47fdd832003-07-14 16:52:07 +000025237 ;;
25238
25239 uts4*)
25240 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25241 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25242 hardcode_shlibpath_var_GCJ=no
25243 ;;
25244
25245 *)
25246 ld_shlibs_GCJ=no
25247 ;;
25248 esac
25249 fi
25250
Reid Spencera773bd52006-08-04 18:18:08 +000025251{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25252echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025253test "$ld_shlibs_GCJ" = no && can_build_shared=no
25254
John Criswell47fdd832003-07-14 16:52:07 +000025255#
25256# Do we need to explicitly link libc?
25257#
25258case "x$archive_cmds_need_lc_GCJ" in
25259x|xyes)
25260 # Assume -lc should be added
25261 archive_cmds_need_lc_GCJ=yes
25262
25263 if test "$enable_shared" = yes && test "$GCC" = yes; then
25264 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025265 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025266 # FIXME: we may have to deal with multi-command sequences.
25267 ;;
25268 '$CC '*)
25269 # Test whether the compiler implicitly links with -lc since on some
25270 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25271 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025272 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25273echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025274 $rm conftest*
25275 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25276
25277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25278 (eval $ac_compile) 2>&5
25279 ac_status=$?
25280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281 (exit $ac_status); } 2>conftest.err; then
25282 soname=conftest
25283 lib=conftest
25284 libobjs=conftest.$ac_objext
25285 deplibs=
25286 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025287 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025288 compiler_flags=-v
25289 linker_flags=-v
25290 verstring=
25291 output_objdir=.
25292 libname=conftest
25293 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25294 allow_undefined_flag_GCJ=
25295 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25296 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25297 ac_status=$?
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); }
25300 then
25301 archive_cmds_need_lc_GCJ=no
25302 else
25303 archive_cmds_need_lc_GCJ=yes
25304 fi
25305 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25306 else
25307 cat conftest.err 1>&5
25308 fi
25309 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025310 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25311echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025312 ;;
25313 esac
25314 fi
25315 ;;
25316esac
25317
Reid Spencera773bd52006-08-04 18:18:08 +000025318{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25319echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025320library_names_spec=
25321libname_spec='lib$name'
25322soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025323shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025324postinstall_cmds=
25325postuninstall_cmds=
25326finish_cmds=
25327finish_eval=
25328shlibpath_var=
25329shlibpath_overrides_runpath=unknown
25330version_type=none
25331dynamic_linker="$host_os ld.so"
25332sys_lib_dlsearch_path_spec="/lib /usr/lib"
25333if test "$GCC" = yes; then
25334 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25335 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25336 # if the path contains ";" then we assume it to be the separator
25337 # otherwise default to the standard path separator (i.e. ":") - it is
25338 # assumed that no part of a normal pathname contains ";" but that should
25339 # okay in the real world where ";" in dirpaths is itself problematic.
25340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25341 else
25342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25343 fi
25344else
25345 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25346fi
25347need_lib_prefix=unknown
25348hardcode_into_libs=no
25349
25350# when you set need_version to no, make sure it does not cause -set_version
25351# flags to be left without arguments
25352need_version=unknown
25353
25354case $host_os in
25355aix3*)
25356 version_type=linux
25357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25358 shlibpath_var=LIBPATH
25359
25360 # AIX 3 has no versioning support, so we append a major version to the name.
25361 soname_spec='${libname}${release}${shared_ext}$major'
25362 ;;
25363
25364aix4* | aix5*)
25365 version_type=linux
25366 need_lib_prefix=no
25367 need_version=no
25368 hardcode_into_libs=yes
25369 if test "$host_cpu" = ia64; then
25370 # AIX 5 supports IA64
25371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25372 shlibpath_var=LD_LIBRARY_PATH
25373 else
25374 # With GCC up to 2.95.x, collect2 would create an import file
25375 # for dependence libraries. The import file would start with
25376 # the line `#! .'. This would cause the generated library to
25377 # depend on `.', always an invalid library. This was fixed in
25378 # development snapshots of GCC prior to 3.0.
25379 case $host_os in
25380 aix4 | aix4.[01] | aix4.[01].*)
25381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25382 echo ' yes '
25383 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25384 :
25385 else
25386 can_build_shared=no
25387 fi
25388 ;;
25389 esac
25390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25391 # soname into executable. Probably we can add versioning support to
25392 # collect2, so additional links can be useful in future.
25393 if test "$aix_use_runtimelinking" = yes; then
25394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25395 # instead of lib<name>.a to let people know that these are not
25396 # typical AIX shared libraries.
25397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25398 else
25399 # We preserve .a as extension for shared libraries through AIX4.2
25400 # and later when we are not doing run time linking.
25401 library_names_spec='${libname}${release}.a $libname.a'
25402 soname_spec='${libname}${release}${shared_ext}$major'
25403 fi
25404 shlibpath_var=LIBPATH
25405 fi
25406 ;;
25407
25408amigaos*)
25409 library_names_spec='$libname.ixlibrary $libname.a'
25410 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025411 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 +000025412 ;;
25413
25414beos*)
25415 library_names_spec='${libname}${shared_ext}'
25416 dynamic_linker="$host_os ld.so"
25417 shlibpath_var=LIBRARY_PATH
25418 ;;
25419
Reid Spencer2706f8c2004-09-19 23:53:36 +000025420bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025421 version_type=linux
25422 need_version=no
25423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25424 soname_spec='${libname}${release}${shared_ext}$major'
25425 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25426 shlibpath_var=LD_LIBRARY_PATH
25427 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25428 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25429 # the default ld.so.conf also contains /usr/contrib/lib and
25430 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25431 # libtool to hard-code these into programs
25432 ;;
25433
25434cygwin* | mingw* | pw32*)
25435 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025436 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025437 need_version=no
25438 need_lib_prefix=no
25439
25440 case $GCC,$host_os in
25441 yes,cygwin* | yes,mingw* | yes,pw32*)
25442 library_names_spec='$libname.dll.a'
25443 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025444 postinstall_cmds='base_file=`basename \${file}`~
25445 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25446 dldir=$destdir/`dirname \$dlpath`~
25447 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025448 $install_prog $dir/$dlname \$dldir/$dlname~
25449 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025450 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25451 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025452 $rm \$dlpath'
25453 shlibpath_overrides_runpath=yes
25454
25455 case $host_os in
25456 cygwin*)
25457 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25458 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 +000025459 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025460 ;;
25461 mingw*)
25462 # MinGW DLLs use traditional 'lib' prefix
25463 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25464 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25465 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25466 # It is most probably a Windows format PATH printed by
25467 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25468 # path with ; separators, and with drive letters. We can handle the
25469 # drive letters (cygwin fileutils understands them), so leave them,
25470 # especially as we might pass files found there to a mingw objdump,
25471 # which wouldn't understand a cygwinified path. Ahh.
25472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25473 else
25474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25475 fi
25476 ;;
25477 pw32*)
25478 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025479 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 +000025480 ;;
25481 esac
25482 ;;
25483
25484 *)
25485 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25486 ;;
25487 esac
25488 dynamic_linker='Win32 ld.exe'
25489 # FIXME: first we should search . and the directory the executable is in
25490 shlibpath_var=PATH
25491 ;;
25492
25493darwin* | rhapsody*)
25494 dynamic_linker="$host_os dyld"
25495 version_type=darwin
25496 need_lib_prefix=no
25497 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025498 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025499 soname_spec='${libname}${release}${major}$shared_ext'
25500 shlibpath_overrides_runpath=yes
25501 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025502 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025503 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025504 if test "$GCC" = yes; then
25505 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"`
25506 else
25507 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025508 fi
25509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25510 ;;
25511
25512dgux*)
25513 version_type=linux
25514 need_lib_prefix=no
25515 need_version=no
25516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25517 soname_spec='${libname}${release}${shared_ext}$major'
25518 shlibpath_var=LD_LIBRARY_PATH
25519 ;;
25520
25521freebsd1*)
25522 dynamic_linker=no
25523 ;;
25524
Reid Spencer2706f8c2004-09-19 23:53:36 +000025525kfreebsd*-gnu)
25526 version_type=linux
25527 need_lib_prefix=no
25528 need_version=no
25529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25530 soname_spec='${libname}${release}${shared_ext}$major'
25531 shlibpath_var=LD_LIBRARY_PATH
25532 shlibpath_overrides_runpath=no
25533 hardcode_into_libs=yes
25534 dynamic_linker='GNU ld.so'
25535 ;;
25536
Reid Spencera773bd52006-08-04 18:18:08 +000025537freebsd* | dragonfly*)
25538 # DragonFly does not have aout. When/if they implement a new
25539 # versioning mechanism, adjust this.
25540 if test -x /usr/bin/objformat; then
25541 objformat=`/usr/bin/objformat`
25542 else
25543 case $host_os in
25544 freebsd[123]*) objformat=aout ;;
25545 *) objformat=elf ;;
25546 esac
25547 fi
John Criswell47fdd832003-07-14 16:52:07 +000025548 version_type=freebsd-$objformat
25549 case $version_type in
25550 freebsd-elf*)
25551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25552 need_version=no
25553 need_lib_prefix=no
25554 ;;
25555 freebsd-*)
25556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25557 need_version=yes
25558 ;;
25559 esac
25560 shlibpath_var=LD_LIBRARY_PATH
25561 case $host_os in
25562 freebsd2*)
25563 shlibpath_overrides_runpath=yes
25564 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025565 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025566 shlibpath_overrides_runpath=yes
25567 hardcode_into_libs=yes
25568 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025569 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25570 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025571 shlibpath_overrides_runpath=no
25572 hardcode_into_libs=yes
25573 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025574 freebsd*) # from 4.6 on
25575 shlibpath_overrides_runpath=yes
25576 hardcode_into_libs=yes
25577 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025578 esac
25579 ;;
25580
25581gnu*)
25582 version_type=linux
25583 need_lib_prefix=no
25584 need_version=no
25585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25586 soname_spec='${libname}${release}${shared_ext}$major'
25587 shlibpath_var=LD_LIBRARY_PATH
25588 hardcode_into_libs=yes
25589 ;;
25590
25591hpux9* | hpux10* | hpux11*)
25592 # Give a soname corresponding to the major version so that dld.sl refuses to
25593 # link against other versions.
25594 version_type=sunos
25595 need_lib_prefix=no
25596 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025597 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025598 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025599 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025600 hardcode_into_libs=yes
25601 dynamic_linker="$host_os dld.so"
25602 shlibpath_var=LD_LIBRARY_PATH
25603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25605 soname_spec='${libname}${release}${shared_ext}$major'
25606 if test "X$HPUX_IA64_MODE" = X32; then
25607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25608 else
25609 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25610 fi
25611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25612 ;;
25613 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025614 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025615 hardcode_into_libs=yes
25616 dynamic_linker="$host_os dld.sl"
25617 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25620 soname_spec='${libname}${release}${shared_ext}$major'
25621 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25623 ;;
25624 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025625 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025626 dynamic_linker="$host_os dld.sl"
25627 shlibpath_var=SHLIB_PATH
25628 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25630 soname_spec='${libname}${release}${shared_ext}$major'
25631 ;;
25632 esac
25633 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25634 postinstall_cmds='chmod 555 $lib'
25635 ;;
25636
Reid Spencera773bd52006-08-04 18:18:08 +000025637interix3*)
25638 version_type=linux
25639 need_lib_prefix=no
25640 need_version=no
25641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25642 soname_spec='${libname}${release}${shared_ext}$major'
25643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25644 shlibpath_var=LD_LIBRARY_PATH
25645 shlibpath_overrides_runpath=no
25646 hardcode_into_libs=yes
25647 ;;
25648
John Criswell47fdd832003-07-14 16:52:07 +000025649irix5* | irix6* | nonstopux*)
25650 case $host_os in
25651 nonstopux*) version_type=nonstopux ;;
25652 *)
25653 if test "$lt_cv_prog_gnu_ld" = yes; then
25654 version_type=linux
25655 else
25656 version_type=irix
25657 fi ;;
25658 esac
25659 need_lib_prefix=no
25660 need_version=no
25661 soname_spec='${libname}${release}${shared_ext}$major'
25662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25663 case $host_os in
25664 irix5* | nonstopux*)
25665 libsuff= shlibsuff=
25666 ;;
25667 *)
25668 case $LD in # libtool.m4 will add one of these switches to LD
25669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25670 libsuff= shlibsuff= libmagic=32-bit;;
25671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25672 libsuff=32 shlibsuff=N32 libmagic=N32;;
25673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25675 *) libsuff= shlibsuff= libmagic=never-match;;
25676 esac
25677 ;;
25678 esac
25679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25680 shlibpath_overrides_runpath=no
25681 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25682 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25683 hardcode_into_libs=yes
25684 ;;
25685
25686# No shared lib support for Linux oldld, aout, or coff.
25687linux*oldld* | linux*aout* | linux*coff*)
25688 dynamic_linker=no
25689 ;;
25690
25691# This must be Linux ELF.
25692linux*)
25693 version_type=linux
25694 need_lib_prefix=no
25695 need_version=no
25696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25697 soname_spec='${libname}${release}${shared_ext}$major'
25698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25699 shlibpath_var=LD_LIBRARY_PATH
25700 shlibpath_overrides_runpath=no
25701 # This implies no fast_install, which is unacceptable.
25702 # Some rework will be needed to allow for fast_install
25703 # before this can be enabled.
25704 hardcode_into_libs=yes
25705
Reid Spencer2706f8c2004-09-19 23:53:36 +000025706 # Append ld.so.conf contents to the search path
25707 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025708 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 +000025709 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25710 fi
25711
John Criswell47fdd832003-07-14 16:52:07 +000025712 # We used to test for /lib/ld.so.1 and disable shared libraries on
25713 # powerpc, because MkLinux only supported shared libraries with the
25714 # GNU dynamic linker. Since this was broken with cross compilers,
25715 # most powerpc-linux boxes support dynamic linking these days and
25716 # people can always --disable-shared, the test was removed, and we
25717 # assume the GNU/Linux dynamic linker is in use.
25718 dynamic_linker='GNU/Linux ld.so'
25719 ;;
25720
Reid Spencer2706f8c2004-09-19 23:53:36 +000025721knetbsd*-gnu)
25722 version_type=linux
25723 need_lib_prefix=no
25724 need_version=no
25725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25726 soname_spec='${libname}${release}${shared_ext}$major'
25727 shlibpath_var=LD_LIBRARY_PATH
25728 shlibpath_overrides_runpath=no
25729 hardcode_into_libs=yes
25730 dynamic_linker='GNU ld.so'
25731 ;;
25732
John Criswell47fdd832003-07-14 16:52:07 +000025733netbsd*)
25734 version_type=sunos
25735 need_lib_prefix=no
25736 need_version=no
25737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25740 dynamic_linker='NetBSD (a.out) ld.so'
25741 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025743 soname_spec='${libname}${release}${shared_ext}$major'
25744 dynamic_linker='NetBSD ld.elf_so'
25745 fi
25746 shlibpath_var=LD_LIBRARY_PATH
25747 shlibpath_overrides_runpath=yes
25748 hardcode_into_libs=yes
25749 ;;
25750
25751newsos6)
25752 version_type=linux
25753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25754 shlibpath_var=LD_LIBRARY_PATH
25755 shlibpath_overrides_runpath=yes
25756 ;;
25757
Reid Spencer2706f8c2004-09-19 23:53:36 +000025758nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025759 version_type=linux
25760 need_lib_prefix=no
25761 need_version=no
25762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25763 soname_spec='${libname}${release}${shared_ext}$major'
25764 shlibpath_var=LD_LIBRARY_PATH
25765 shlibpath_overrides_runpath=yes
25766 ;;
25767
25768openbsd*)
25769 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025770 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025771 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025772 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25773 case $host_os in
25774 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25775 *) need_version=no ;;
25776 esac
John Criswell47fdd832003-07-14 16:52:07 +000025777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25779 shlibpath_var=LD_LIBRARY_PATH
25780 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25781 case $host_os in
25782 openbsd2.[89] | openbsd2.[89].*)
25783 shlibpath_overrides_runpath=no
25784 ;;
25785 *)
25786 shlibpath_overrides_runpath=yes
25787 ;;
25788 esac
25789 else
25790 shlibpath_overrides_runpath=yes
25791 fi
25792 ;;
25793
25794os2*)
25795 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025796 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025797 need_lib_prefix=no
25798 library_names_spec='$libname${shared_ext} $libname.a'
25799 dynamic_linker='OS/2 ld.exe'
25800 shlibpath_var=LIBPATH
25801 ;;
25802
25803osf3* | osf4* | osf5*)
25804 version_type=osf
25805 need_lib_prefix=no
25806 need_version=no
25807 soname_spec='${libname}${release}${shared_ext}$major'
25808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25809 shlibpath_var=LD_LIBRARY_PATH
25810 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25811 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25812 ;;
25813
John Criswell47fdd832003-07-14 16:52:07 +000025814solaris*)
25815 version_type=linux
25816 need_lib_prefix=no
25817 need_version=no
25818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25819 soname_spec='${libname}${release}${shared_ext}$major'
25820 shlibpath_var=LD_LIBRARY_PATH
25821 shlibpath_overrides_runpath=yes
25822 hardcode_into_libs=yes
25823 # ldd complains unless libraries are executable
25824 postinstall_cmds='chmod +x $lib'
25825 ;;
25826
25827sunos4*)
25828 version_type=sunos
25829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25831 shlibpath_var=LD_LIBRARY_PATH
25832 shlibpath_overrides_runpath=yes
25833 if test "$with_gnu_ld" = yes; then
25834 need_lib_prefix=no
25835 fi
25836 need_version=yes
25837 ;;
25838
Reid Spencera773bd52006-08-04 18:18:08 +000025839sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025840 version_type=linux
25841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25842 soname_spec='${libname}${release}${shared_ext}$major'
25843 shlibpath_var=LD_LIBRARY_PATH
25844 case $host_vendor in
25845 sni)
25846 shlibpath_overrides_runpath=no
25847 need_lib_prefix=no
25848 export_dynamic_flag_spec='${wl}-Blargedynsym'
25849 runpath_var=LD_RUN_PATH
25850 ;;
25851 siemens)
25852 need_lib_prefix=no
25853 ;;
25854 motorola)
25855 need_lib_prefix=no
25856 need_version=no
25857 shlibpath_overrides_runpath=no
25858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25859 ;;
25860 esac
25861 ;;
25862
25863sysv4*MP*)
25864 if test -d /usr/nec ;then
25865 version_type=linux
25866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25867 soname_spec='$libname${shared_ext}.$major'
25868 shlibpath_var=LD_LIBRARY_PATH
25869 fi
25870 ;;
25871
Reid Spencera773bd52006-08-04 18:18:08 +000025872sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25873 version_type=freebsd-elf
25874 need_lib_prefix=no
25875 need_version=no
25876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25877 soname_spec='${libname}${release}${shared_ext}$major'
25878 shlibpath_var=LD_LIBRARY_PATH
25879 hardcode_into_libs=yes
25880 if test "$with_gnu_ld" = yes; then
25881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25882 shlibpath_overrides_runpath=no
25883 else
25884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25885 shlibpath_overrides_runpath=yes
25886 case $host_os in
25887 sco3.2v5*)
25888 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25889 ;;
25890 esac
25891 fi
25892 sys_lib_dlsearch_path_spec='/usr/lib'
25893 ;;
25894
John Criswell47fdd832003-07-14 16:52:07 +000025895uts4*)
25896 version_type=linux
25897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25898 soname_spec='${libname}${release}${shared_ext}$major'
25899 shlibpath_var=LD_LIBRARY_PATH
25900 ;;
25901
25902*)
25903 dynamic_linker=no
25904 ;;
25905esac
Reid Spencera773bd52006-08-04 18:18:08 +000025906{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25907echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025908test "$dynamic_linker" = no && can_build_shared=no
25909
Reid Spencera773bd52006-08-04 18:18:08 +000025910variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25911if test "$GCC" = yes; then
25912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25913fi
25914
25915{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25916echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025917hardcode_action_GCJ=
25918if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25919 test -n "$runpath_var_GCJ" || \
25920 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25921
25922 # We can hardcode non-existant directories.
25923 if test "$hardcode_direct_GCJ" != no &&
25924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25925 # have to relink, otherwise we might link with an installed library
25926 # when we should be linking with a yet-to-be-installed one
25927 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25928 test "$hardcode_minus_L_GCJ" != no; then
25929 # Linking always hardcodes the temporary library directory.
25930 hardcode_action_GCJ=relink
25931 else
25932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25933 hardcode_action_GCJ=immediate
25934 fi
25935else
25936 # We cannot hardcode anything, or else we can only hardcode existing
25937 # directories.
25938 hardcode_action_GCJ=unsupported
25939fi
Reid Spencera773bd52006-08-04 18:18:08 +000025940{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25941echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025942
25943if test "$hardcode_action_GCJ" = relink; then
25944 # Fast installation is not supported
25945 enable_fast_install=no
25946elif test "$shlibpath_overrides_runpath" = yes ||
25947 test "$enable_shared" = no; then
25948 # Fast installation is not necessary
25949 enable_fast_install=needless
25950fi
25951
John Criswell47fdd832003-07-14 16:52:07 +000025952
25953# The else clause should only fire when bootstrapping the
25954# libtool distribution, otherwise you forgot to ship ltmain.sh
25955# with your package, and you will get complaints that there are
25956# no rules to generate ltmain.sh.
25957if test -f "$ltmain"; then
25958 # See if we are running on zsh, and set the options which allow our commands through
25959 # without removal of \ escapes.
25960 if test -n "${ZSH_VERSION+set}" ; then
25961 setopt NO_GLOB_SUBST
25962 fi
25963 # Now quote all the things that may contain metacharacters while being
25964 # careful not to overquote the AC_SUBSTed values. We take copies of the
25965 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025966 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 +000025967 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025968 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25969 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25970 deplibs_check_method reload_flag reload_cmds need_locks \
25971 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25972 lt_cv_sys_global_symbol_to_c_name_address \
25973 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25974 old_postinstall_cmds old_postuninstall_cmds \
25975 compiler_GCJ \
25976 CC_GCJ \
25977 LD_GCJ \
25978 lt_prog_compiler_wl_GCJ \
25979 lt_prog_compiler_pic_GCJ \
25980 lt_prog_compiler_static_GCJ \
25981 lt_prog_compiler_no_builtin_flag_GCJ \
25982 export_dynamic_flag_spec_GCJ \
25983 thread_safe_flag_spec_GCJ \
25984 whole_archive_flag_spec_GCJ \
25985 enable_shared_with_static_runtimes_GCJ \
25986 old_archive_cmds_GCJ \
25987 old_archive_from_new_cmds_GCJ \
25988 predep_objects_GCJ \
25989 postdep_objects_GCJ \
25990 predeps_GCJ \
25991 postdeps_GCJ \
25992 compiler_lib_search_path_GCJ \
25993 archive_cmds_GCJ \
25994 archive_expsym_cmds_GCJ \
25995 postinstall_cmds_GCJ \
25996 postuninstall_cmds_GCJ \
25997 old_archive_from_expsyms_cmds_GCJ \
25998 allow_undefined_flag_GCJ \
25999 no_undefined_flag_GCJ \
26000 export_symbols_cmds_GCJ \
26001 hardcode_libdir_flag_spec_GCJ \
26002 hardcode_libdir_flag_spec_ld_GCJ \
26003 hardcode_libdir_separator_GCJ \
26004 hardcode_automatic_GCJ \
26005 module_cmds_GCJ \
26006 module_expsym_cmds_GCJ \
26007 lt_cv_prog_compiler_c_o_GCJ \
26008 exclude_expsyms_GCJ \
26009 include_expsyms_GCJ; do
26010
26011 case $var in
26012 old_archive_cmds_GCJ | \
26013 old_archive_from_new_cmds_GCJ | \
26014 archive_cmds_GCJ | \
26015 archive_expsym_cmds_GCJ | \
26016 module_cmds_GCJ | \
26017 module_expsym_cmds_GCJ | \
26018 old_archive_from_expsyms_cmds_GCJ | \
26019 export_symbols_cmds_GCJ | \
26020 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26021 postinstall_cmds | postuninstall_cmds | \
26022 old_postinstall_cmds | old_postuninstall_cmds | \
26023 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26024 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026025 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 +000026026 ;;
26027 *)
26028 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26029 ;;
26030 esac
26031 done
26032
26033 case $lt_echo in
26034 *'\$0 --fallback-echo"')
26035 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26036 ;;
26037 esac
26038
26039cfgfile="$ofile"
26040
26041 cat <<__EOF__ >> "$cfgfile"
26042# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26043
26044# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26045
26046# Shell to use when invoking shell scripts.
26047SHELL=$lt_SHELL
26048
26049# Whether or not to build shared libraries.
26050build_libtool_libs=$enable_shared
26051
26052# Whether or not to build static libraries.
26053build_old_libs=$enable_static
26054
26055# Whether or not to add -lc for building shared libraries.
26056build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26057
26058# Whether or not to disallow shared libs when runtime libs are static
26059allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26060
26061# Whether or not to optimize for fast installation.
26062fast_install=$enable_fast_install
26063
26064# The host system.
26065host_alias=$host_alias
26066host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026067host_os=$host_os
26068
26069# The build system.
26070build_alias=$build_alias
26071build=$build
26072build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026073
26074# An echo program that does not interpret backslashes.
26075echo=$lt_echo
26076
26077# The archiver.
26078AR=$lt_AR
26079AR_FLAGS=$lt_AR_FLAGS
26080
26081# A C compiler.
26082LTCC=$lt_LTCC
26083
Reid Spencera773bd52006-08-04 18:18:08 +000026084# LTCC compiler flags.
26085LTCFLAGS=$lt_LTCFLAGS
26086
John Criswell47fdd832003-07-14 16:52:07 +000026087# A language-specific compiler.
26088CC=$lt_compiler_GCJ
26089
26090# Is the compiler the GNU C compiler?
26091with_gcc=$GCC_GCJ
26092
26093# An ERE matcher.
26094EGREP=$lt_EGREP
26095
26096# The linker used to build libraries.
26097LD=$lt_LD_GCJ
26098
26099# Whether we need hard or soft links.
26100LN_S=$lt_LN_S
26101
26102# A BSD-compatible nm program.
26103NM=$lt_NM
26104
26105# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026106STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026107
26108# Used to examine libraries when file_magic_cmd begins "file"
26109MAGIC_CMD=$MAGIC_CMD
26110
26111# Used on cygwin: DLL creation program.
26112DLLTOOL="$DLLTOOL"
26113
26114# Used on cygwin: object dumper.
26115OBJDUMP="$OBJDUMP"
26116
26117# Used on cygwin: assembler.
26118AS="$AS"
26119
26120# The name of the directory that contains temporary libtool files.
26121objdir=$objdir
26122
26123# How to create reloadable object files.
26124reload_flag=$lt_reload_flag
26125reload_cmds=$lt_reload_cmds
26126
26127# How to pass a linker flag through the compiler.
26128wl=$lt_lt_prog_compiler_wl_GCJ
26129
26130# Object file suffix (normally "o").
26131objext="$ac_objext"
26132
26133# Old archive suffix (normally "a").
26134libext="$libext"
26135
26136# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026137shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026138
26139# Executable file suffix (normally "").
26140exeext="$exeext"
26141
26142# Additional compiler flags for building library objects.
26143pic_flag=$lt_lt_prog_compiler_pic_GCJ
26144pic_mode=$pic_mode
26145
26146# What is the maximum length of a command?
26147max_cmd_len=$lt_cv_sys_max_cmd_len
26148
26149# Does compiler simultaneously support -c and -o options?
26150compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26151
Reid Spencera773bd52006-08-04 18:18:08 +000026152# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026153need_locks=$lt_need_locks
26154
26155# Do we need the lib prefix for modules?
26156need_lib_prefix=$need_lib_prefix
26157
26158# Do we need a version for libraries?
26159need_version=$need_version
26160
26161# Whether dlopen is supported.
26162dlopen_support=$enable_dlopen
26163
26164# Whether dlopen of programs is supported.
26165dlopen_self=$enable_dlopen_self
26166
26167# Whether dlopen of statically linked programs is supported.
26168dlopen_self_static=$enable_dlopen_self_static
26169
26170# Compiler flag to prevent dynamic linking.
26171link_static_flag=$lt_lt_prog_compiler_static_GCJ
26172
26173# Compiler flag to turn off builtin functions.
26174no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26175
26176# Compiler flag to allow reflexive dlopens.
26177export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26178
26179# Compiler flag to generate shared objects directly from archives.
26180whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26181
26182# Compiler flag to generate thread-safe objects.
26183thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26184
26185# Library versioning type.
26186version_type=$version_type
26187
26188# Format of library name prefix.
26189libname_spec=$lt_libname_spec
26190
26191# List of archive names. First name is the real one, the rest are links.
26192# The last name is the one that the linker finds with -lNAME.
26193library_names_spec=$lt_library_names_spec
26194
26195# The coded name of the library, if different from the real name.
26196soname_spec=$lt_soname_spec
26197
26198# Commands used to build and install an old-style archive.
26199RANLIB=$lt_RANLIB
26200old_archive_cmds=$lt_old_archive_cmds_GCJ
26201old_postinstall_cmds=$lt_old_postinstall_cmds
26202old_postuninstall_cmds=$lt_old_postuninstall_cmds
26203
26204# Create an old-style archive from a shared archive.
26205old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26206
26207# Create a temporary old-style archive to link instead of a shared archive.
26208old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26209
26210# Commands used to build and install a shared archive.
26211archive_cmds=$lt_archive_cmds_GCJ
26212archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26213postinstall_cmds=$lt_postinstall_cmds
26214postuninstall_cmds=$lt_postuninstall_cmds
26215
26216# Commands used to build a loadable module (assumed same as above if empty)
26217module_cmds=$lt_module_cmds_GCJ
26218module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26219
26220# Commands to strip libraries.
26221old_striplib=$lt_old_striplib
26222striplib=$lt_striplib
26223
26224# Dependencies to place before the objects being linked to create a
26225# shared library.
26226predep_objects=$lt_predep_objects_GCJ
26227
26228# Dependencies to place after the objects being linked to create a
26229# shared library.
26230postdep_objects=$lt_postdep_objects_GCJ
26231
26232# Dependencies to place before the objects being linked to create a
26233# shared library.
26234predeps=$lt_predeps_GCJ
26235
26236# Dependencies to place after the objects being linked to create a
26237# shared library.
26238postdeps=$lt_postdeps_GCJ
26239
26240# The library search path used internally by the compiler when linking
26241# a shared library.
26242compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26243
26244# Method to check whether dependent libraries are shared objects.
26245deplibs_check_method=$lt_deplibs_check_method
26246
26247# Command to use when deplibs_check_method == file_magic.
26248file_magic_cmd=$lt_file_magic_cmd
26249
26250# Flag that allows shared libraries with undefined symbols to be built.
26251allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26252
26253# Flag that forces no undefined symbols.
26254no_undefined_flag=$lt_no_undefined_flag_GCJ
26255
26256# Commands used to finish a libtool library installation in a directory.
26257finish_cmds=$lt_finish_cmds
26258
26259# Same as above, but a single script fragment to be evaled but not shown.
26260finish_eval=$lt_finish_eval
26261
26262# Take the output of nm and produce a listing of raw symbols and C names.
26263global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26264
26265# Transform the output of nm in a proper C declaration
26266global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26267
26268# Transform the output of nm in a C name address pair
26269global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26270
26271# This is the shared library runtime path variable.
26272runpath_var=$runpath_var
26273
26274# This is the shared library path variable.
26275shlibpath_var=$shlibpath_var
26276
26277# Is shlibpath searched before the hard-coded library search path?
26278shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26279
26280# How to hardcode a shared library path into an executable.
26281hardcode_action=$hardcode_action_GCJ
26282
26283# Whether we should hardcode library paths into libraries.
26284hardcode_into_libs=$hardcode_into_libs
26285
26286# Flag to hardcode \$libdir into a binary during linking.
26287# This must work even if \$libdir does not exist.
26288hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26289
26290# If ld is used when linking, flag to hardcode \$libdir into
26291# a binary during linking. This must work even if \$libdir does
26292# not exist.
26293hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26294
26295# Whether we need a single -rpath flag with a separated argument.
26296hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26297
26298# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26299# resulting binary.
26300hardcode_direct=$hardcode_direct_GCJ
26301
26302# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26303# resulting binary.
26304hardcode_minus_L=$hardcode_minus_L_GCJ
26305
26306# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26307# the resulting binary.
26308hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26309
26310# Set to yes if building a shared library automatically hardcodes DIR into the library
26311# and all subsequent libraries and executables linked against it.
26312hardcode_automatic=$hardcode_automatic_GCJ
26313
26314# Variables whose values should be saved in libtool wrapper scripts and
26315# restored at relink time.
26316variables_saved_for_relink="$variables_saved_for_relink"
26317
26318# Whether libtool must link a program against all its dependency libraries.
26319link_all_deplibs=$link_all_deplibs_GCJ
26320
26321# Compile-time system search path for libraries
26322sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26323
26324# Run-time system search path for libraries
26325sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26326
26327# Fix the shell variable \$srcfile for the compiler.
26328fix_srcfile_path="$fix_srcfile_path_GCJ"
26329
26330# Set to yes if exported symbols are required.
26331always_export_symbols=$always_export_symbols_GCJ
26332
26333# The commands to list exported symbols.
26334export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26335
26336# The commands to extract the exported symbol list from a shared archive.
26337extract_expsyms_cmds=$lt_extract_expsyms_cmds
26338
26339# Symbols that should not be listed in the preloaded symbols.
26340exclude_expsyms=$lt_exclude_expsyms_GCJ
26341
26342# Symbols that must always be exported.
26343include_expsyms=$lt_include_expsyms_GCJ
26344
26345# ### END LIBTOOL TAG CONFIG: $tagname
26346
26347__EOF__
26348
26349
26350else
26351 # If there is no Makefile yet, we rely on a make rule to execute
26352 # `config.status --recheck' to rerun these tests and create the
26353 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026354 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26355 if test -f "$ltmain_in"; then
26356 test -f Makefile && make "$ltmain"
26357 fi
John Criswell47fdd832003-07-14 16:52:07 +000026358fi
26359
26360
26361ac_ext=c
26362ac_cpp='$CPP $CPPFLAGS'
26363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26365ac_compiler_gnu=$ac_cv_c_compiler_gnu
26366
26367CC="$lt_save_CC"
26368
26369 else
26370 tagname=""
26371 fi
26372 ;;
26373
26374 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026375 ac_ext=c
26376ac_cpp='$CPP $CPPFLAGS'
26377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26379ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026380
26381
26382# Source file extension for RC test sources.
26383ac_ext=rc
26384
26385# Object file extension for compiled RC test sources.
26386objext=o
26387objext_RC=$objext
26388
26389# Code to be used in simple compile tests
26390lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26391
26392# Code to be used in simple link tests
26393lt_simple_link_test_code="$lt_simple_compile_test_code"
26394
26395# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26396
26397# If no C compiler was specified, use CC.
26398LTCC=${LTCC-"$CC"}
26399
Reid Spencera773bd52006-08-04 18:18:08 +000026400# If no C compiler flags were specified, use CFLAGS.
26401LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26402
John Criswell47fdd832003-07-14 16:52:07 +000026403# Allow CC to be a program name with arguments.
26404compiler=$CC
26405
26406
Reid Spencera773bd52006-08-04 18:18:08 +000026407# save warnings/boilerplate of simple test code
26408ac_outfile=conftest.$ac_objext
26409printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26410eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26411_lt_compiler_boilerplate=`cat conftest.err`
26412$rm conftest*
26413
26414ac_outfile=conftest.$ac_objext
26415printf "$lt_simple_link_test_code" >conftest.$ac_ext
26416eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26417_lt_linker_boilerplate=`cat conftest.err`
26418$rm conftest*
26419
26420
John Criswell47fdd832003-07-14 16:52:07 +000026421# Allow CC to be a program name with arguments.
26422lt_save_CC="$CC"
26423CC=${RC-"windres"}
26424compiler=$CC
26425compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026426for cc_temp in $compiler""; do
26427 case $cc_temp in
26428 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26429 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26430 \-*) ;;
26431 *) break;;
26432 esac
26433done
26434cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26435
John Criswell47fdd832003-07-14 16:52:07 +000026436lt_cv_prog_compiler_c_o_RC=yes
26437
26438# The else clause should only fire when bootstrapping the
26439# libtool distribution, otherwise you forgot to ship ltmain.sh
26440# with your package, and you will get complaints that there are
26441# no rules to generate ltmain.sh.
26442if test -f "$ltmain"; then
26443 # See if we are running on zsh, and set the options which allow our commands through
26444 # without removal of \ escapes.
26445 if test -n "${ZSH_VERSION+set}" ; then
26446 setopt NO_GLOB_SUBST
26447 fi
26448 # Now quote all the things that may contain metacharacters while being
26449 # careful not to overquote the AC_SUBSTed values. We take copies of the
26450 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026451 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 +000026452 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026453 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26454 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26455 deplibs_check_method reload_flag reload_cmds need_locks \
26456 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26457 lt_cv_sys_global_symbol_to_c_name_address \
26458 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26459 old_postinstall_cmds old_postuninstall_cmds \
26460 compiler_RC \
26461 CC_RC \
26462 LD_RC \
26463 lt_prog_compiler_wl_RC \
26464 lt_prog_compiler_pic_RC \
26465 lt_prog_compiler_static_RC \
26466 lt_prog_compiler_no_builtin_flag_RC \
26467 export_dynamic_flag_spec_RC \
26468 thread_safe_flag_spec_RC \
26469 whole_archive_flag_spec_RC \
26470 enable_shared_with_static_runtimes_RC \
26471 old_archive_cmds_RC \
26472 old_archive_from_new_cmds_RC \
26473 predep_objects_RC \
26474 postdep_objects_RC \
26475 predeps_RC \
26476 postdeps_RC \
26477 compiler_lib_search_path_RC \
26478 archive_cmds_RC \
26479 archive_expsym_cmds_RC \
26480 postinstall_cmds_RC \
26481 postuninstall_cmds_RC \
26482 old_archive_from_expsyms_cmds_RC \
26483 allow_undefined_flag_RC \
26484 no_undefined_flag_RC \
26485 export_symbols_cmds_RC \
26486 hardcode_libdir_flag_spec_RC \
26487 hardcode_libdir_flag_spec_ld_RC \
26488 hardcode_libdir_separator_RC \
26489 hardcode_automatic_RC \
26490 module_cmds_RC \
26491 module_expsym_cmds_RC \
26492 lt_cv_prog_compiler_c_o_RC \
26493 exclude_expsyms_RC \
26494 include_expsyms_RC; do
26495
26496 case $var in
26497 old_archive_cmds_RC | \
26498 old_archive_from_new_cmds_RC | \
26499 archive_cmds_RC | \
26500 archive_expsym_cmds_RC | \
26501 module_cmds_RC | \
26502 module_expsym_cmds_RC | \
26503 old_archive_from_expsyms_cmds_RC | \
26504 export_symbols_cmds_RC | \
26505 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26506 postinstall_cmds | postuninstall_cmds | \
26507 old_postinstall_cmds | old_postuninstall_cmds | \
26508 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26509 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026510 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 +000026511 ;;
26512 *)
26513 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26514 ;;
26515 esac
26516 done
26517
26518 case $lt_echo in
26519 *'\$0 --fallback-echo"')
26520 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26521 ;;
26522 esac
26523
26524cfgfile="$ofile"
26525
26526 cat <<__EOF__ >> "$cfgfile"
26527# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26528
26529# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26530
26531# Shell to use when invoking shell scripts.
26532SHELL=$lt_SHELL
26533
26534# Whether or not to build shared libraries.
26535build_libtool_libs=$enable_shared
26536
26537# Whether or not to build static libraries.
26538build_old_libs=$enable_static
26539
26540# Whether or not to add -lc for building shared libraries.
26541build_libtool_need_lc=$archive_cmds_need_lc_RC
26542
26543# Whether or not to disallow shared libs when runtime libs are static
26544allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26545
26546# Whether or not to optimize for fast installation.
26547fast_install=$enable_fast_install
26548
26549# The host system.
26550host_alias=$host_alias
26551host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026552host_os=$host_os
26553
26554# The build system.
26555build_alias=$build_alias
26556build=$build
26557build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026558
26559# An echo program that does not interpret backslashes.
26560echo=$lt_echo
26561
26562# The archiver.
26563AR=$lt_AR
26564AR_FLAGS=$lt_AR_FLAGS
26565
26566# A C compiler.
26567LTCC=$lt_LTCC
26568
Reid Spencera773bd52006-08-04 18:18:08 +000026569# LTCC compiler flags.
26570LTCFLAGS=$lt_LTCFLAGS
26571
John Criswell47fdd832003-07-14 16:52:07 +000026572# A language-specific compiler.
26573CC=$lt_compiler_RC
26574
26575# Is the compiler the GNU C compiler?
26576with_gcc=$GCC_RC
26577
26578# An ERE matcher.
26579EGREP=$lt_EGREP
26580
26581# The linker used to build libraries.
26582LD=$lt_LD_RC
26583
26584# Whether we need hard or soft links.
26585LN_S=$lt_LN_S
26586
26587# A BSD-compatible nm program.
26588NM=$lt_NM
26589
26590# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026591STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026592
26593# Used to examine libraries when file_magic_cmd begins "file"
26594MAGIC_CMD=$MAGIC_CMD
26595
26596# Used on cygwin: DLL creation program.
26597DLLTOOL="$DLLTOOL"
26598
26599# Used on cygwin: object dumper.
26600OBJDUMP="$OBJDUMP"
26601
26602# Used on cygwin: assembler.
26603AS="$AS"
26604
26605# The name of the directory that contains temporary libtool files.
26606objdir=$objdir
26607
26608# How to create reloadable object files.
26609reload_flag=$lt_reload_flag
26610reload_cmds=$lt_reload_cmds
26611
26612# How to pass a linker flag through the compiler.
26613wl=$lt_lt_prog_compiler_wl_RC
26614
26615# Object file suffix (normally "o").
26616objext="$ac_objext"
26617
26618# Old archive suffix (normally "a").
26619libext="$libext"
26620
26621# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026622shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026623
26624# Executable file suffix (normally "").
26625exeext="$exeext"
26626
26627# Additional compiler flags for building library objects.
26628pic_flag=$lt_lt_prog_compiler_pic_RC
26629pic_mode=$pic_mode
26630
26631# What is the maximum length of a command?
26632max_cmd_len=$lt_cv_sys_max_cmd_len
26633
26634# Does compiler simultaneously support -c and -o options?
26635compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26636
Reid Spencera773bd52006-08-04 18:18:08 +000026637# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026638need_locks=$lt_need_locks
26639
26640# Do we need the lib prefix for modules?
26641need_lib_prefix=$need_lib_prefix
26642
26643# Do we need a version for libraries?
26644need_version=$need_version
26645
26646# Whether dlopen is supported.
26647dlopen_support=$enable_dlopen
26648
26649# Whether dlopen of programs is supported.
26650dlopen_self=$enable_dlopen_self
26651
26652# Whether dlopen of statically linked programs is supported.
26653dlopen_self_static=$enable_dlopen_self_static
26654
26655# Compiler flag to prevent dynamic linking.
26656link_static_flag=$lt_lt_prog_compiler_static_RC
26657
26658# Compiler flag to turn off builtin functions.
26659no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26660
26661# Compiler flag to allow reflexive dlopens.
26662export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26663
26664# Compiler flag to generate shared objects directly from archives.
26665whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26666
26667# Compiler flag to generate thread-safe objects.
26668thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26669
26670# Library versioning type.
26671version_type=$version_type
26672
26673# Format of library name prefix.
26674libname_spec=$lt_libname_spec
26675
26676# List of archive names. First name is the real one, the rest are links.
26677# The last name is the one that the linker finds with -lNAME.
26678library_names_spec=$lt_library_names_spec
26679
26680# The coded name of the library, if different from the real name.
26681soname_spec=$lt_soname_spec
26682
26683# Commands used to build and install an old-style archive.
26684RANLIB=$lt_RANLIB
26685old_archive_cmds=$lt_old_archive_cmds_RC
26686old_postinstall_cmds=$lt_old_postinstall_cmds
26687old_postuninstall_cmds=$lt_old_postuninstall_cmds
26688
26689# Create an old-style archive from a shared archive.
26690old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26691
26692# Create a temporary old-style archive to link instead of a shared archive.
26693old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26694
26695# Commands used to build and install a shared archive.
26696archive_cmds=$lt_archive_cmds_RC
26697archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26698postinstall_cmds=$lt_postinstall_cmds
26699postuninstall_cmds=$lt_postuninstall_cmds
26700
26701# Commands used to build a loadable module (assumed same as above if empty)
26702module_cmds=$lt_module_cmds_RC
26703module_expsym_cmds=$lt_module_expsym_cmds_RC
26704
26705# Commands to strip libraries.
26706old_striplib=$lt_old_striplib
26707striplib=$lt_striplib
26708
26709# Dependencies to place before the objects being linked to create a
26710# shared library.
26711predep_objects=$lt_predep_objects_RC
26712
26713# Dependencies to place after the objects being linked to create a
26714# shared library.
26715postdep_objects=$lt_postdep_objects_RC
26716
26717# Dependencies to place before the objects being linked to create a
26718# shared library.
26719predeps=$lt_predeps_RC
26720
26721# Dependencies to place after the objects being linked to create a
26722# shared library.
26723postdeps=$lt_postdeps_RC
26724
26725# The library search path used internally by the compiler when linking
26726# a shared library.
26727compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26728
26729# Method to check whether dependent libraries are shared objects.
26730deplibs_check_method=$lt_deplibs_check_method
26731
26732# Command to use when deplibs_check_method == file_magic.
26733file_magic_cmd=$lt_file_magic_cmd
26734
26735# Flag that allows shared libraries with undefined symbols to be built.
26736allow_undefined_flag=$lt_allow_undefined_flag_RC
26737
26738# Flag that forces no undefined symbols.
26739no_undefined_flag=$lt_no_undefined_flag_RC
26740
26741# Commands used to finish a libtool library installation in a directory.
26742finish_cmds=$lt_finish_cmds
26743
26744# Same as above, but a single script fragment to be evaled but not shown.
26745finish_eval=$lt_finish_eval
26746
26747# Take the output of nm and produce a listing of raw symbols and C names.
26748global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26749
26750# Transform the output of nm in a proper C declaration
26751global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26752
26753# Transform the output of nm in a C name address pair
26754global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26755
26756# This is the shared library runtime path variable.
26757runpath_var=$runpath_var
26758
26759# This is the shared library path variable.
26760shlibpath_var=$shlibpath_var
26761
26762# Is shlibpath searched before the hard-coded library search path?
26763shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26764
26765# How to hardcode a shared library path into an executable.
26766hardcode_action=$hardcode_action_RC
26767
26768# Whether we should hardcode library paths into libraries.
26769hardcode_into_libs=$hardcode_into_libs
26770
26771# Flag to hardcode \$libdir into a binary during linking.
26772# This must work even if \$libdir does not exist.
26773hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26774
26775# If ld is used when linking, flag to hardcode \$libdir into
26776# a binary during linking. This must work even if \$libdir does
26777# not exist.
26778hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26779
26780# Whether we need a single -rpath flag with a separated argument.
26781hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26782
26783# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26784# resulting binary.
26785hardcode_direct=$hardcode_direct_RC
26786
26787# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26788# resulting binary.
26789hardcode_minus_L=$hardcode_minus_L_RC
26790
26791# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26792# the resulting binary.
26793hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26794
26795# Set to yes if building a shared library automatically hardcodes DIR into the library
26796# and all subsequent libraries and executables linked against it.
26797hardcode_automatic=$hardcode_automatic_RC
26798
26799# Variables whose values should be saved in libtool wrapper scripts and
26800# restored at relink time.
26801variables_saved_for_relink="$variables_saved_for_relink"
26802
26803# Whether libtool must link a program against all its dependency libraries.
26804link_all_deplibs=$link_all_deplibs_RC
26805
26806# Compile-time system search path for libraries
26807sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26808
26809# Run-time system search path for libraries
26810sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26811
26812# Fix the shell variable \$srcfile for the compiler.
26813fix_srcfile_path="$fix_srcfile_path_RC"
26814
26815# Set to yes if exported symbols are required.
26816always_export_symbols=$always_export_symbols_RC
26817
26818# The commands to list exported symbols.
26819export_symbols_cmds=$lt_export_symbols_cmds_RC
26820
26821# The commands to extract the exported symbol list from a shared archive.
26822extract_expsyms_cmds=$lt_extract_expsyms_cmds
26823
26824# Symbols that should not be listed in the preloaded symbols.
26825exclude_expsyms=$lt_exclude_expsyms_RC
26826
26827# Symbols that must always be exported.
26828include_expsyms=$lt_include_expsyms_RC
26829
26830# ### END LIBTOOL TAG CONFIG: $tagname
26831
26832__EOF__
26833
26834
26835else
26836 # If there is no Makefile yet, we rely on a make rule to execute
26837 # `config.status --recheck' to rerun these tests and create the
26838 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026839 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26840 if test -f "$ltmain_in"; then
26841 test -f Makefile && make "$ltmain"
26842 fi
John Criswell47fdd832003-07-14 16:52:07 +000026843fi
26844
26845
26846ac_ext=c
26847ac_cpp='$CPP $CPPFLAGS'
26848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26850ac_compiler_gnu=$ac_cv_c_compiler_gnu
26851
26852CC="$lt_save_CC"
26853
26854 ;;
26855
26856 *)
26857 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26858echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26859 { (exit 1); exit 1; }; }
26860 ;;
26861 esac
26862
26863 # Append the new tag name to the list of available tags.
26864 if test -n "$tagname" ; then
26865 available_tags="$available_tags $tagname"
26866 fi
26867 fi
26868 done
26869 IFS="$lt_save_ifs"
26870
26871 # Now substitute the updated list of available tags.
26872 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26873 mv "${ofile}T" "$ofile"
26874 chmod +x "$ofile"
26875 else
26876 rm -f "${ofile}T"
26877 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26878echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26879 { (exit 1); exit 1; }; }
26880 fi
26881fi
John Criswell7a73b802003-06-30 21:59:07 +000026882
26883
26884
26885# This can be used to rebuild libtool when needed
26886LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26887
26888# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026889LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026890
26891# Prevent multiple expansion
26892
26893
26894
John Criswell47fdd832003-07-14 16:52:07 +000026895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026912
Reid Spencer582a23c2004-12-29 07:07:57 +000026913if test "$lt_cv_dlopen_self" = "yes" ; then
26914
26915cat >>confdefs.h <<\_ACEOF
26916#define CAN_DLOPEN_SELF 1
26917_ACEOF
26918
26919fi
26920
Douglas Gregor01746742009-05-11 18:05:52 +000026921
Reid Spencer7931a782004-12-27 06:15:02 +000026922if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026923 LLVMGCC="llvm-gcc${EXEEXT}"
26924 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026925 LLVMGCCCOMMAND="$LLVMGCC"
26926 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026927 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26928
26929 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26930
Reid Spencerc84492c2005-06-02 22:34:49 +000026931 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26932set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026933{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026935if test "${ac_cv_path_LLVMGCC+set}" = set; then
26936 echo $ECHO_N "(cached) $ECHO_C" >&6
26937else
26938 case $LLVMGCC in
26939 [\\/]* | ?:[\\/]*)
26940 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26941 ;;
26942 *)
26943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26944for as_dir in $PATH
26945do
26946 IFS=$as_save_IFS
26947 test -z "$as_dir" && as_dir=.
26948 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000026949 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 +000026950 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26952 break 2
26953 fi
26954done
26955done
Reid Spencera773bd52006-08-04 18:18:08 +000026956IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026957
Reid Spencer59473af2004-12-25 07:31:29 +000026958 ;;
26959esac
26960fi
26961LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026962if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026963 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26964echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026965else
Reid Spencera773bd52006-08-04 18:18:08 +000026966 { echo "$as_me:$LINENO: result: no" >&5
26967echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026968fi
26969
Reid Spencera773bd52006-08-04 18:18:08 +000026970
Reid Spencerc84492c2005-06-02 22:34:49 +000026971 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26972set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026973{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026975if test "${ac_cv_path_LLVMGXX+set}" = set; then
26976 echo $ECHO_N "(cached) $ECHO_C" >&6
26977else
26978 case $LLVMGXX in
26979 [\\/]* | ?:[\\/]*)
26980 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26981 ;;
26982 *)
26983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26984for as_dir in $PATH
26985do
26986 IFS=$as_save_IFS
26987 test -z "$as_dir" && as_dir=.
26988 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000026989 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 +000026990 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26992 break 2
26993 fi
26994done
26995done
Reid Spencera773bd52006-08-04 18:18:08 +000026996IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026997
Reid Spencer59473af2004-12-25 07:31:29 +000026998 ;;
26999esac
27000fi
27001LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027002if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027003 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27004echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027005else
Reid Spencera773bd52006-08-04 18:18:08 +000027006 { echo "$as_me:$LINENO: result: no" >&5
27007echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027008fi
27009
Reid Spencera773bd52006-08-04 18:18:08 +000027010
Reid Spencer59473af2004-12-25 07:31:29 +000027011else
Devang Patel5d28b882007-12-04 22:54:47 +000027012 if test -z "$LLVMGCC"; then
27013 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027014 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000027015 fi
27016 if test -z "$LLVMGXX"; then
27017 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027018 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000027019 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027020
Reid Spencer59473af2004-12-25 07:31:29 +000027021 LLVMGCC=$LLVMGCC
27022
27023 LLVMGXX=$LLVMGXX
27024
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027025 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27026
27027 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27028
Reid Spencer59473af2004-12-25 07:31:29 +000027029fi
27030
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027031
Reid Spencera773bd52006-08-04 18:18:08 +000027032{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27033echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027034
Reid Spencer86901802004-12-08 23:07:27 +000027035ICC=no
27036IXX=no
27037case $CC in
27038 icc*|icpc*)
27039 ICC=yes
27040 IXX=yes
27041 ;;
27042 *)
27043 ;;
27044esac
27045
Duraid Madina937c60a2006-02-15 07:57:42 +000027046if test "$GCC" != "yes" && test "$ICC" != "yes"
27047then
27048 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27049echo "$as_me: error: gcc|icc required but not found" >&2;}
27050 { (exit 1); exit 1; }; }
27051fi
27052
27053if test "$GXX" != "yes" && test "$IXX" != "yes"
27054then
27055 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27056echo "$as_me: error: g++|icc required but not found" >&2;}
27057 { (exit 1); exit 1; }; }
27058fi
27059
Reid Spencer86901802004-12-08 23:07:27 +000027060if test "$GCC" = "yes"
27061then
Chris Lattner399c7c72008-02-05 19:43:53 +000027062 cat >conftest.$ac_ext <<_ACEOF
27063#if !defined(__GNUC__) || __GNUC__ < 3
27064#error Unsupported GCC version
27065#endif
27066
27067_ACEOF
27068rm -f conftest.$ac_objext
27069if { (ac_try="$ac_compile"
27070case "(($ac_try" in
27071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072 *) ac_try_echo=$ac_try;;
27073esac
27074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075 (eval "$ac_compile") 2>conftest.er1
27076 ac_status=$?
27077 grep -v '^ *+' conftest.er1 >conftest.err
27078 rm -f conftest.er1
27079 cat conftest.err >&5
27080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027081 (exit $ac_status); } &&
27082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27083 { (case "(($ac_try" in
27084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085 *) ac_try_echo=$ac_try;;
27086esac
27087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088 (eval "$ac_try") 2>&5
27089 ac_status=$?
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); }; } &&
27092 { ac_try='test -s conftest.$ac_objext'
27093 { (case "(($ac_try" in
27094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095 *) ac_try_echo=$ac_try;;
27096esac
27097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27098 (eval "$ac_try") 2>&5
27099 ac_status=$?
27100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027102 :
27103else
27104 echo "$as_me: failed program was:" >&5
27105sed 's/^/| /' conftest.$ac_ext >&5
27106
27107 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027108echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27109 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027110fi
27111
27112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027113fi
27114
27115if test -z "$llvm_cv_gnu_make_command"
27116then
27117 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27118echo "$as_me: error: GNU Make required but not found" >&2;}
27119 { (exit 1); exit 1; }; }
27120fi
27121
Reid Spencera773bd52006-08-04 18:18:08 +000027122{ echo "$as_me:$LINENO: result: ok" >&5
27123echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027124
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027125
John Criswell7a73b802003-06-30 21:59:07 +000027126
Reid Spencera773bd52006-08-04 18:18:08 +000027127{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27128echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027129if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27130 echo $ECHO_N "(cached) $ECHO_C" >&6
27131else
27132 ac_check_lib_save_LIBS=$LIBS
27133LIBS="-lelf $LIBS"
27134cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027135/* confdefs.h. */
27136_ACEOF
27137cat confdefs.h >>conftest.$ac_ext
27138cat >>conftest.$ac_ext <<_ACEOF
27139/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027140
Reid Spencera773bd52006-08-04 18:18:08 +000027141/* Override any GCC internal prototype to avoid an error.
27142 Use char because int might match the return type of a GCC
27143 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027144#ifdef __cplusplus
27145extern "C"
27146#endif
John Criswell7a73b802003-06-30 21:59:07 +000027147char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027148int
27149main ()
27150{
Reid Spencera773bd52006-08-04 18:18:08 +000027151return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027152 ;
27153 return 0;
27154}
27155_ACEOF
27156rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027157if { (ac_try="$ac_link"
27158case "(($ac_try" in
27159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27160 *) ac_try_echo=$ac_try;;
27161esac
27162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27163 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027164 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027165 grep -v '^ *+' conftest.er1 >conftest.err
27166 rm -f conftest.er1
27167 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027169 (exit $ac_status); } &&
27170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27171 { (case "(($ac_try" in
27172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173 *) ac_try_echo=$ac_try;;
27174esac
27175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176 (eval "$ac_try") 2>&5
27177 ac_status=$?
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); }; } &&
27180 { ac_try='test -s conftest$ac_exeext'
27181 { (case "(($ac_try" in
27182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27183 *) ac_try_echo=$ac_try;;
27184esac
27185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27186 (eval "$ac_try") 2>&5
27187 ac_status=$?
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027190 ac_cv_lib_elf_elf_begin=yes
27191else
27192 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027193sed 's/^/| /' conftest.$ac_ext >&5
27194
Reid Spencera773bd52006-08-04 18:18:08 +000027195 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027196fi
Reid Spencera773bd52006-08-04 18:18:08 +000027197
Bill Wendlingebcceee2009-04-18 11:20:33 +000027198rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027199 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027200LIBS=$ac_check_lib_save_LIBS
27201fi
Reid Spencera773bd52006-08-04 18:18:08 +000027202{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27203echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027204if test $ac_cv_lib_elf_elf_begin = yes; then
27205 cat >>confdefs.h <<_ACEOF
27206#define HAVE_LIBELF 1
27207_ACEOF
27208
27209 LIBS="-lelf $LIBS"
27210
27211fi
27212
27213
Reid Spencera773bd52006-08-04 18:18:08 +000027214{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27215echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027216if test "${ac_cv_lib_m_sin+set}" = set; then
27217 echo $ECHO_N "(cached) $ECHO_C" >&6
27218else
27219 ac_check_lib_save_LIBS=$LIBS
27220LIBS="-lm $LIBS"
27221cat >conftest.$ac_ext <<_ACEOF
27222/* confdefs.h. */
27223_ACEOF
27224cat confdefs.h >>conftest.$ac_ext
27225cat >>conftest.$ac_ext <<_ACEOF
27226/* end confdefs.h. */
27227
Reid Spencera773bd52006-08-04 18:18:08 +000027228/* Override any GCC internal prototype to avoid an error.
27229 Use char because int might match the return type of a GCC
27230 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027231#ifdef __cplusplus
27232extern "C"
27233#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027234char sin ();
27235int
27236main ()
27237{
Reid Spencera773bd52006-08-04 18:18:08 +000027238return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027239 ;
27240 return 0;
27241}
27242_ACEOF
27243rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027244if { (ac_try="$ac_link"
27245case "(($ac_try" in
27246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27247 *) ac_try_echo=$ac_try;;
27248esac
27249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27250 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027251 ac_status=$?
27252 grep -v '^ *+' conftest.er1 >conftest.err
27253 rm -f conftest.er1
27254 cat conftest.err >&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027256 (exit $ac_status); } &&
27257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27258 { (case "(($ac_try" in
27259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27260 *) ac_try_echo=$ac_try;;
27261esac
27262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27263 (eval "$ac_try") 2>&5
27264 ac_status=$?
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); }; } &&
27267 { ac_try='test -s conftest$ac_exeext'
27268 { (case "(($ac_try" in
27269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27270 *) ac_try_echo=$ac_try;;
27271esac
27272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27273 (eval "$ac_try") 2>&5
27274 ac_status=$?
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027277 ac_cv_lib_m_sin=yes
27278else
27279 echo "$as_me: failed program was:" >&5
27280sed 's/^/| /' conftest.$ac_ext >&5
27281
Reid Spencera773bd52006-08-04 18:18:08 +000027282 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027283fi
Reid Spencera773bd52006-08-04 18:18:08 +000027284
Bill Wendlingebcceee2009-04-18 11:20:33 +000027285rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027286 conftest$ac_exeext conftest.$ac_ext
27287LIBS=$ac_check_lib_save_LIBS
27288fi
Reid Spencera773bd52006-08-04 18:18:08 +000027289{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27290echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027291if test $ac_cv_lib_m_sin = yes; then
27292 cat >>confdefs.h <<_ACEOF
27293#define HAVE_LIBM 1
27294_ACEOF
27295
27296 LIBS="-lm $LIBS"
27297
27298fi
27299
Jeff Cohen28783c32007-01-12 18:22:38 +000027300if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027301
Reid Spencera773bd52006-08-04 18:18:08 +000027302{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27303echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027304if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027305 echo $ECHO_N "(cached) $ECHO_C" >&6
27306else
27307 ac_check_lib_save_LIBS=$LIBS
27308LIBS="-limagehlp $LIBS"
27309cat >conftest.$ac_ext <<_ACEOF
27310/* confdefs.h. */
27311_ACEOF
27312cat confdefs.h >>conftest.$ac_ext
27313cat >>conftest.$ac_ext <<_ACEOF
27314/* end confdefs.h. */
27315
Reid Spencer48fdf912006-06-01 19:03:21 +000027316
Reid Spencer484fc8e2006-06-01 16:55:59 +000027317int
27318main ()
27319{
Reid Spencera773bd52006-08-04 18:18:08 +000027320return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027321 ;
27322 return 0;
27323}
27324_ACEOF
27325rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027326if { (ac_try="$ac_link"
27327case "(($ac_try" in
27328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27329 *) ac_try_echo=$ac_try;;
27330esac
27331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27332 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027333 ac_status=$?
27334 grep -v '^ *+' conftest.er1 >conftest.err
27335 rm -f conftest.er1
27336 cat conftest.err >&5
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027338 (exit $ac_status); } &&
27339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27340 { (case "(($ac_try" in
27341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27342 *) ac_try_echo=$ac_try;;
27343esac
27344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27345 (eval "$ac_try") 2>&5
27346 ac_status=$?
27347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348 (exit $ac_status); }; } &&
27349 { ac_try='test -s conftest$ac_exeext'
27350 { (case "(($ac_try" in
27351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27352 *) ac_try_echo=$ac_try;;
27353esac
27354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27355 (eval "$ac_try") 2>&5
27356 ac_status=$?
27357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027359 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027360else
27361 echo "$as_me: failed program was:" >&5
27362sed 's/^/| /' conftest.$ac_ext >&5
27363
Reid Spencera773bd52006-08-04 18:18:08 +000027364 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027365fi
Reid Spencera773bd52006-08-04 18:18:08 +000027366
Bill Wendlingebcceee2009-04-18 11:20:33 +000027367rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027368 conftest$ac_exeext conftest.$ac_ext
27369LIBS=$ac_check_lib_save_LIBS
27370fi
Reid Spencera773bd52006-08-04 18:18:08 +000027371{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27372echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027373if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027374 cat >>confdefs.h <<_ACEOF
27375#define HAVE_LIBIMAGEHLP 1
27376_ACEOF
27377
27378 LIBS="-limagehlp $LIBS"
27379
27380fi
27381
27382
Reid Spencera773bd52006-08-04 18:18:08 +000027383{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27384echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027385if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027386 echo $ECHO_N "(cached) $ECHO_C" >&6
27387else
27388 ac_check_lib_save_LIBS=$LIBS
27389LIBS="-lpsapi $LIBS"
27390cat >conftest.$ac_ext <<_ACEOF
27391/* confdefs.h. */
27392_ACEOF
27393cat confdefs.h >>conftest.$ac_ext
27394cat >>conftest.$ac_ext <<_ACEOF
27395/* end confdefs.h. */
27396
Reid Spencer48fdf912006-06-01 19:03:21 +000027397
Reid Spencer484fc8e2006-06-01 16:55:59 +000027398int
27399main ()
27400{
Reid Spencera773bd52006-08-04 18:18:08 +000027401return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027402 ;
27403 return 0;
27404}
27405_ACEOF
27406rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027407if { (ac_try="$ac_link"
27408case "(($ac_try" in
27409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27410 *) ac_try_echo=$ac_try;;
27411esac
27412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27413 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027414 ac_status=$?
27415 grep -v '^ *+' conftest.er1 >conftest.err
27416 rm -f conftest.er1
27417 cat conftest.err >&5
27418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027419 (exit $ac_status); } &&
27420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27421 { (case "(($ac_try" in
27422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27423 *) ac_try_echo=$ac_try;;
27424esac
27425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27426 (eval "$ac_try") 2>&5
27427 ac_status=$?
27428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429 (exit $ac_status); }; } &&
27430 { ac_try='test -s conftest$ac_exeext'
27431 { (case "(($ac_try" in
27432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27433 *) ac_try_echo=$ac_try;;
27434esac
27435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27436 (eval "$ac_try") 2>&5
27437 ac_status=$?
27438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027440 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027441else
27442 echo "$as_me: failed program was:" >&5
27443sed 's/^/| /' conftest.$ac_ext >&5
27444
Reid Spencera773bd52006-08-04 18:18:08 +000027445 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027446fi
Reid Spencera773bd52006-08-04 18:18:08 +000027447
Bill Wendlingebcceee2009-04-18 11:20:33 +000027448rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027449 conftest$ac_exeext conftest.$ac_ext
27450LIBS=$ac_check_lib_save_LIBS
27451fi
Reid Spencera773bd52006-08-04 18:18:08 +000027452{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27453echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027454if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027455 cat >>confdefs.h <<_ACEOF
27456#define HAVE_LIBPSAPI 1
27457_ACEOF
27458
27459 LIBS="-lpsapi $LIBS"
27460
27461fi
27462
27463fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027464
Reid Spencera773bd52006-08-04 18:18:08 +000027465{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27466echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027467if test "${ac_cv_search_dlopen+set}" = set; then
27468 echo $ECHO_N "(cached) $ECHO_C" >&6
27469else
27470 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027471cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027472/* confdefs.h. */
27473_ACEOF
27474cat confdefs.h >>conftest.$ac_ext
27475cat >>conftest.$ac_ext <<_ACEOF
27476/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027477
Reid Spencera773bd52006-08-04 18:18:08 +000027478/* Override any GCC internal prototype to avoid an error.
27479 Use char because int might match the return type of a GCC
27480 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027481#ifdef __cplusplus
27482extern "C"
27483#endif
John Criswell7a73b802003-06-30 21:59:07 +000027484char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027485int
27486main ()
27487{
Reid Spencera773bd52006-08-04 18:18:08 +000027488return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027489 ;
27490 return 0;
27491}
27492_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027493for ac_lib in '' dl; do
27494 if test -z "$ac_lib"; then
27495 ac_res="none required"
27496 else
27497 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027499 fi
27500 rm -f conftest.$ac_objext conftest$ac_exeext
27501if { (ac_try="$ac_link"
27502case "(($ac_try" in
27503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504 *) ac_try_echo=$ac_try;;
27505esac
27506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27507 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027508 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027509 grep -v '^ *+' conftest.er1 >conftest.err
27510 rm -f conftest.er1
27511 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027513 (exit $ac_status); } &&
27514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27515 { (case "(($ac_try" in
27516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27517 *) ac_try_echo=$ac_try;;
27518esac
27519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27520 (eval "$ac_try") 2>&5
27521 ac_status=$?
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); }; } &&
27524 { ac_try='test -s conftest$ac_exeext'
27525 { (case "(($ac_try" in
27526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27527 *) ac_try_echo=$ac_try;;
27528esac
27529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27530 (eval "$ac_try") 2>&5
27531 ac_status=$?
27532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027534 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027535else
27536 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027537sed 's/^/| /' conftest.$ac_ext >&5
27538
Reid Spencera773bd52006-08-04 18:18:08 +000027539
John Criswell7a73b802003-06-30 21:59:07 +000027540fi
Reid Spencera773bd52006-08-04 18:18:08 +000027541
Bill Wendlingebcceee2009-04-18 11:20:33 +000027542rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027543 conftest$ac_exeext
27544 if test "${ac_cv_search_dlopen+set}" = set; then
27545 break
John Criswell7a73b802003-06-30 21:59:07 +000027546fi
Reid Spencera773bd52006-08-04 18:18:08 +000027547done
27548if test "${ac_cv_search_dlopen+set}" = set; then
27549 :
27550else
27551 ac_cv_search_dlopen=no
27552fi
27553rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027554LIBS=$ac_func_search_save_LIBS
27555fi
Reid Spencera773bd52006-08-04 18:18:08 +000027556{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27557echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27558ac_res=$ac_cv_search_dlopen
27559if test "$ac_res" != no; then
27560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027561
27562cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027563#define HAVE_DLOPEN 1
27564_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027565
27566else
Brian Gaekec45be042003-10-07 06:01:34 +000027567 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27568echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027569fi
27570
27571
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027572if test "$llvm_cv_enable_libffi" = "yes" ; then
27573 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027574echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27575if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027576 echo $ECHO_N "(cached) $ECHO_C" >&6
27577else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027578 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027579cat >conftest.$ac_ext <<_ACEOF
27580/* confdefs.h. */
27581_ACEOF
27582cat confdefs.h >>conftest.$ac_ext
27583cat >>conftest.$ac_ext <<_ACEOF
27584/* end confdefs.h. */
27585
27586/* Override any GCC internal prototype to avoid an error.
27587 Use char because int might match the return type of a GCC
27588 builtin and then its argument prototype would still apply. */
27589#ifdef __cplusplus
27590extern "C"
27591#endif
27592char ffi_call ();
27593int
27594main ()
27595{
27596return ffi_call ();
27597 ;
27598 return 0;
27599}
27600_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027601for ac_lib in '' ffi; do
27602 if test -z "$ac_lib"; then
27603 ac_res="none required"
27604 else
27605 ac_res=-l$ac_lib
27606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27607 fi
27608 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +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
27616 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
Nick Lewycky267fddb2009-04-13 04:26:27 +000027642 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027643else
27644 echo "$as_me: failed program was:" >&5
27645sed 's/^/| /' conftest.$ac_ext >&5
27646
Nick Lewycky267fddb2009-04-13 04:26:27 +000027647
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027648fi
27649
Bill Wendlingebcceee2009-04-18 11:20:33 +000027650rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027651 conftest$ac_exeext
27652 if test "${ac_cv_search_ffi_call+set}" = set; then
27653 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027654fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027655done
27656if test "${ac_cv_search_ffi_call+set}" = set; then
27657 :
27658else
27659 ac_cv_search_ffi_call=no
27660fi
27661rm conftest.$ac_ext
27662LIBS=$ac_func_search_save_LIBS
27663fi
27664{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27665echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27666ac_res=$ac_cv_search_ffi_call
27667if test "$ac_res" != no; then
27668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27669
27670cat >>confdefs.h <<\_ACEOF
27671#define HAVE_FFI_CALL 1
27672_ACEOF
27673
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027674else
27675 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27676echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27677fi
27678
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027679fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027680
Reid Spencera773bd52006-08-04 18:18:08 +000027681{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27682echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027683if test "${ac_cv_search_mallinfo+set}" = set; then
27684 echo $ECHO_N "(cached) $ECHO_C" >&6
27685else
27686 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027687cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027688/* confdefs.h. */
27689_ACEOF
27690cat confdefs.h >>conftest.$ac_ext
27691cat >>conftest.$ac_ext <<_ACEOF
27692/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027693
Reid Spencera773bd52006-08-04 18:18:08 +000027694/* Override any GCC internal prototype to avoid an error.
27695 Use char because int might match the return type of a GCC
27696 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027697#ifdef __cplusplus
27698extern "C"
27699#endif
John Criswell7a73b802003-06-30 21:59:07 +000027700char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027701int
27702main ()
27703{
Reid Spencera773bd52006-08-04 18:18:08 +000027704return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027705 ;
27706 return 0;
27707}
27708_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027709for ac_lib in '' malloc; do
27710 if test -z "$ac_lib"; then
27711 ac_res="none required"
27712 else
27713 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027715 fi
27716 rm -f conftest.$ac_objext conftest$ac_exeext
27717if { (ac_try="$ac_link"
27718case "(($ac_try" in
27719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27720 *) ac_try_echo=$ac_try;;
27721esac
27722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27723 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027724 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027725 grep -v '^ *+' conftest.er1 >conftest.err
27726 rm -f conftest.er1
27727 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027729 (exit $ac_status); } &&
27730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27731 { (case "(($ac_try" in
27732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27733 *) ac_try_echo=$ac_try;;
27734esac
27735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27736 (eval "$ac_try") 2>&5
27737 ac_status=$?
27738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739 (exit $ac_status); }; } &&
27740 { ac_try='test -s conftest$ac_exeext'
27741 { (case "(($ac_try" in
27742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743 *) ac_try_echo=$ac_try;;
27744esac
27745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746 (eval "$ac_try") 2>&5
27747 ac_status=$?
27748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27749 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027750 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027751else
27752 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027753sed 's/^/| /' conftest.$ac_ext >&5
27754
Reid Spencera773bd52006-08-04 18:18:08 +000027755
John Criswell7a73b802003-06-30 21:59:07 +000027756fi
Reid Spencera773bd52006-08-04 18:18:08 +000027757
Bill Wendlingebcceee2009-04-18 11:20:33 +000027758rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027759 conftest$ac_exeext
27760 if test "${ac_cv_search_mallinfo+set}" = set; then
27761 break
John Criswell7a73b802003-06-30 21:59:07 +000027762fi
Reid Spencera773bd52006-08-04 18:18:08 +000027763done
27764if test "${ac_cv_search_mallinfo+set}" = set; then
27765 :
27766else
27767 ac_cv_search_mallinfo=no
27768fi
27769rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027770LIBS=$ac_func_search_save_LIBS
27771fi
Reid Spencera773bd52006-08-04 18:18:08 +000027772{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27773echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27774ac_res=$ac_cv_search_mallinfo
27775if test "$ac_res" != no; then
27776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027777
27778cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027779#define HAVE_MALLINFO 1
27780_ACEOF
27781
27782fi
27783
27784
Reid Spencer0a262ba2005-08-24 10:07:20 +000027785if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027786
Reid Spencera773bd52006-08-04 18:18:08 +000027787{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27788echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027789if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27790 echo $ECHO_N "(cached) $ECHO_C" >&6
27791else
27792 ac_check_lib_save_LIBS=$LIBS
27793LIBS="-lpthread $LIBS"
27794cat >conftest.$ac_ext <<_ACEOF
27795/* confdefs.h. */
27796_ACEOF
27797cat confdefs.h >>conftest.$ac_ext
27798cat >>conftest.$ac_ext <<_ACEOF
27799/* end confdefs.h. */
27800
Reid Spencera773bd52006-08-04 18:18:08 +000027801/* Override any GCC internal prototype to avoid an error.
27802 Use char because int might match the return type of a GCC
27803 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027804#ifdef __cplusplus
27805extern "C"
27806#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027807char pthread_mutex_init ();
27808int
27809main ()
27810{
Reid Spencera773bd52006-08-04 18:18:08 +000027811return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027812 ;
27813 return 0;
27814}
27815_ACEOF
27816rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027817if { (ac_try="$ac_link"
27818case "(($ac_try" in
27819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820 *) ac_try_echo=$ac_try;;
27821esac
27822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027824 ac_status=$?
27825 grep -v '^ *+' conftest.er1 >conftest.err
27826 rm -f conftest.er1
27827 cat conftest.err >&5
27828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027829 (exit $ac_status); } &&
27830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27831 { (case "(($ac_try" in
27832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27833 *) ac_try_echo=$ac_try;;
27834esac
27835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27836 (eval "$ac_try") 2>&5
27837 ac_status=$?
27838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27839 (exit $ac_status); }; } &&
27840 { ac_try='test -s conftest$ac_exeext'
27841 { (case "(($ac_try" in
27842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27843 *) ac_try_echo=$ac_try;;
27844esac
27845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27846 (eval "$ac_try") 2>&5
27847 ac_status=$?
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027850 ac_cv_lib_pthread_pthread_mutex_init=yes
27851else
27852 echo "$as_me: failed program was:" >&5
27853sed 's/^/| /' conftest.$ac_ext >&5
27854
Reid Spencera773bd52006-08-04 18:18:08 +000027855 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027856fi
Reid Spencera773bd52006-08-04 18:18:08 +000027857
Bill Wendlingebcceee2009-04-18 11:20:33 +000027858rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027859 conftest$ac_exeext conftest.$ac_ext
27860LIBS=$ac_check_lib_save_LIBS
27861fi
Reid Spencera773bd52006-08-04 18:18:08 +000027862{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27863echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027864if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27865 cat >>confdefs.h <<_ACEOF
27866#define HAVE_LIBPTHREAD 1
27867_ACEOF
27868
27869 LIBS="-lpthread $LIBS"
27870
27871fi
27872
Reid Spencera773bd52006-08-04 18:18:08 +000027873 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27874echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027875if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27876 echo $ECHO_N "(cached) $ECHO_C" >&6
27877else
27878 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027879cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027880/* confdefs.h. */
27881_ACEOF
27882cat confdefs.h >>conftest.$ac_ext
27883cat >>conftest.$ac_ext <<_ACEOF
27884/* end confdefs.h. */
27885
Reid Spencera773bd52006-08-04 18:18:08 +000027886/* Override any GCC internal prototype to avoid an error.
27887 Use char because int might match the return type of a GCC
27888 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027889#ifdef __cplusplus
27890extern "C"
27891#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027892char pthread_mutex_lock ();
27893int
27894main ()
27895{
Reid Spencera773bd52006-08-04 18:18:08 +000027896return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027897 ;
27898 return 0;
27899}
27900_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027901for ac_lib in '' pthread; do
27902 if test -z "$ac_lib"; then
27903 ac_res="none required"
27904 else
27905 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027907 fi
27908 rm -f conftest.$ac_objext conftest$ac_exeext
27909if { (ac_try="$ac_link"
27910case "(($ac_try" in
27911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27912 *) ac_try_echo=$ac_try;;
27913esac
27914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27915 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027916 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027917 grep -v '^ *+' conftest.er1 >conftest.err
27918 rm -f conftest.er1
27919 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027921 (exit $ac_status); } &&
27922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27923 { (case "(($ac_try" in
27924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27925 *) ac_try_echo=$ac_try;;
27926esac
27927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27928 (eval "$ac_try") 2>&5
27929 ac_status=$?
27930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931 (exit $ac_status); }; } &&
27932 { ac_try='test -s conftest$ac_exeext'
27933 { (case "(($ac_try" in
27934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27935 *) ac_try_echo=$ac_try;;
27936esac
27937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27938 (eval "$ac_try") 2>&5
27939 ac_status=$?
27940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027942 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027943else
27944 echo "$as_me: failed program was:" >&5
27945sed 's/^/| /' conftest.$ac_ext >&5
27946
Reid Spencera773bd52006-08-04 18:18:08 +000027947
Brian Gaeke5f268f72003-12-05 19:29:01 +000027948fi
Reid Spencera773bd52006-08-04 18:18:08 +000027949
Bill Wendlingebcceee2009-04-18 11:20:33 +000027950rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027951 conftest$ac_exeext
27952 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27953 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027954fi
Reid Spencera773bd52006-08-04 18:18:08 +000027955done
27956if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27957 :
27958else
27959 ac_cv_search_pthread_mutex_lock=no
27960fi
27961rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027962LIBS=$ac_func_search_save_LIBS
27963fi
Reid Spencera773bd52006-08-04 18:18:08 +000027964{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27965echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27966ac_res=$ac_cv_search_pthread_mutex_lock
27967if test "$ac_res" != no; then
27968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027969
John Criswell40468462004-09-24 21:19:06 +000027970cat >>confdefs.h <<\_ACEOF
27971#define HAVE_PTHREAD_MUTEX_LOCK 1
27972_ACEOF
27973
27974fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027975
Owen Andersonde8aed22009-06-16 18:20:20 +000027976 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
27977echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
27978if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27979 echo $ECHO_N "(cached) $ECHO_C" >&6
27980else
27981 ac_func_search_save_LIBS=$LIBS
27982cat >conftest.$ac_ext <<_ACEOF
27983/* confdefs.h. */
27984_ACEOF
27985cat confdefs.h >>conftest.$ac_ext
27986cat >>conftest.$ac_ext <<_ACEOF
27987/* end confdefs.h. */
27988
27989/* Override any GCC internal prototype to avoid an error.
27990 Use char because int might match the return type of a GCC
27991 builtin and then its argument prototype would still apply. */
27992#ifdef __cplusplus
27993extern "C"
27994#endif
27995char pthread_rwlock_init ();
27996int
27997main ()
27998{
27999return pthread_rwlock_init ();
28000 ;
28001 return 0;
28002}
28003_ACEOF
28004for ac_lib in '' pthread; do
28005 if test -z "$ac_lib"; then
28006 ac_res="none required"
28007 else
28008 ac_res=-l$ac_lib
28009 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28010 fi
28011 rm -f conftest.$ac_objext conftest$ac_exeext
28012if { (ac_try="$ac_link"
28013case "(($ac_try" in
28014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28015 *) ac_try_echo=$ac_try;;
28016esac
28017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28018 (eval "$ac_link") 2>conftest.er1
28019 ac_status=$?
28020 grep -v '^ *+' conftest.er1 >conftest.err
28021 rm -f conftest.er1
28022 cat conftest.err >&5
28023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024 (exit $ac_status); } &&
28025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28026 { (case "(($ac_try" in
28027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28028 *) ac_try_echo=$ac_try;;
28029esac
28030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28031 (eval "$ac_try") 2>&5
28032 ac_status=$?
28033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034 (exit $ac_status); }; } &&
28035 { ac_try='test -s conftest$ac_exeext'
28036 { (case "(($ac_try" in
28037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038 *) ac_try_echo=$ac_try;;
28039esac
28040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28041 (eval "$ac_try") 2>&5
28042 ac_status=$?
28043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); }; }; then
28045 ac_cv_search_pthread_rwlock_init=$ac_res
28046else
28047 echo "$as_me: failed program was:" >&5
28048sed 's/^/| /' conftest.$ac_ext >&5
28049
28050
28051fi
28052
28053rm -f core conftest.err conftest.$ac_objext \
28054 conftest$ac_exeext
28055 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28056 break
28057fi
28058done
28059if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28060 :
28061else
28062 ac_cv_search_pthread_rwlock_init=no
28063fi
28064rm conftest.$ac_ext
28065LIBS=$ac_func_search_save_LIBS
28066fi
28067{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28068echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28069ac_res=$ac_cv_search_pthread_rwlock_init
28070if test "$ac_res" != no; then
28071 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28072
28073cat >>confdefs.h <<\_ACEOF
28074#define HAVE_PTHREAD_RWLOCK_INIT 1
28075_ACEOF
28076
28077fi
28078
Owen Anderson27fcfe12009-06-25 23:10:26 +000028079 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28080echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28081if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28082 echo $ECHO_N "(cached) $ECHO_C" >&6
28083else
28084 ac_func_search_save_LIBS=$LIBS
28085cat >conftest.$ac_ext <<_ACEOF
28086/* confdefs.h. */
28087_ACEOF
28088cat confdefs.h >>conftest.$ac_ext
28089cat >>conftest.$ac_ext <<_ACEOF
28090/* end confdefs.h. */
28091
28092/* Override any GCC internal prototype to avoid an error.
28093 Use char because int might match the return type of a GCC
28094 builtin and then its argument prototype would still apply. */
28095#ifdef __cplusplus
28096extern "C"
28097#endif
28098char pthread_getspecific ();
28099int
28100main ()
28101{
28102return pthread_getspecific ();
28103 ;
28104 return 0;
28105}
28106_ACEOF
28107for ac_lib in '' pthread; do
28108 if test -z "$ac_lib"; then
28109 ac_res="none required"
28110 else
28111 ac_res=-l$ac_lib
28112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28113 fi
28114 rm -f conftest.$ac_objext conftest$ac_exeext
28115if { (ac_try="$ac_link"
28116case "(($ac_try" in
28117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28118 *) ac_try_echo=$ac_try;;
28119esac
28120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28121 (eval "$ac_link") 2>conftest.er1
28122 ac_status=$?
28123 grep -v '^ *+' conftest.er1 >conftest.err
28124 rm -f conftest.er1
28125 cat conftest.err >&5
28126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127 (exit $ac_status); } &&
28128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28129 { (case "(($ac_try" in
28130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28131 *) ac_try_echo=$ac_try;;
28132esac
28133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28134 (eval "$ac_try") 2>&5
28135 ac_status=$?
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); }; } &&
28138 { ac_try='test -s conftest$ac_exeext'
28139 { (case "(($ac_try" in
28140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28141 *) ac_try_echo=$ac_try;;
28142esac
28143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28144 (eval "$ac_try") 2>&5
28145 ac_status=$?
28146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147 (exit $ac_status); }; }; then
28148 ac_cv_search_pthread_getspecific=$ac_res
28149else
28150 echo "$as_me: failed program was:" >&5
28151sed 's/^/| /' conftest.$ac_ext >&5
28152
28153
28154fi
28155
28156rm -f core conftest.err conftest.$ac_objext \
28157 conftest$ac_exeext
28158 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28159 break
28160fi
28161done
28162if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28163 :
28164else
28165 ac_cv_search_pthread_getspecific=no
28166fi
28167rm conftest.$ac_ext
28168LIBS=$ac_func_search_save_LIBS
28169fi
28170{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28171echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28172ac_res=$ac_cv_search_pthread_getspecific
28173if test "$ac_res" != no; then
28174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28175
28176cat >>confdefs.h <<\_ACEOF
28177#define HAVE_PTHREAD_GETSPECIFIC 1
28178_ACEOF
28179
28180fi
28181
Reid Spencer0a262ba2005-08-24 10:07:20 +000028182fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028183
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028184
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028185# Check whether --with-udis86 was given.
28186if test "${with_udis86+set}" = set; then
28187 withval=$with_udis86;
28188 USE_UDIS86=1
28189
28190 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028191 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028192 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28193 esac
28194
28195{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28196echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28197if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28198 echo $ECHO_N "(cached) $ECHO_C" >&6
28199else
28200 ac_check_lib_save_LIBS=$LIBS
28201LIBS="-ludis86 $LIBS"
28202cat >conftest.$ac_ext <<_ACEOF
28203/* confdefs.h. */
28204_ACEOF
28205cat confdefs.h >>conftest.$ac_ext
28206cat >>conftest.$ac_ext <<_ACEOF
28207/* end confdefs.h. */
28208
28209/* Override any GCC internal prototype to avoid an error.
28210 Use char because int might match the return type of a GCC
28211 builtin and then its argument prototype would still apply. */
28212#ifdef __cplusplus
28213extern "C"
28214#endif
28215char ud_init ();
28216int
28217main ()
28218{
28219return ud_init ();
28220 ;
28221 return 0;
28222}
28223_ACEOF
28224rm -f conftest.$ac_objext conftest$ac_exeext
28225if { (ac_try="$ac_link"
28226case "(($ac_try" in
28227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28228 *) ac_try_echo=$ac_try;;
28229esac
28230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28231 (eval "$ac_link") 2>conftest.er1
28232 ac_status=$?
28233 grep -v '^ *+' conftest.er1 >conftest.err
28234 rm -f conftest.er1
28235 cat conftest.err >&5
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028237 (exit $ac_status); } &&
28238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28239 { (case "(($ac_try" in
28240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28241 *) ac_try_echo=$ac_try;;
28242esac
28243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28244 (eval "$ac_try") 2>&5
28245 ac_status=$?
28246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247 (exit $ac_status); }; } &&
28248 { ac_try='test -s conftest$ac_exeext'
28249 { (case "(($ac_try" in
28250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251 *) ac_try_echo=$ac_try;;
28252esac
28253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254 (eval "$ac_try") 2>&5
28255 ac_status=$?
28256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028258 ac_cv_lib_udis86_ud_init=yes
28259else
28260 echo "$as_me: failed program was:" >&5
28261sed 's/^/| /' conftest.$ac_ext >&5
28262
28263 ac_cv_lib_udis86_ud_init=no
28264fi
28265
Bill Wendlingebcceee2009-04-18 11:20:33 +000028266rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028267 conftest$ac_exeext conftest.$ac_ext
28268LIBS=$ac_check_lib_save_LIBS
28269fi
28270{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28271echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28272if test $ac_cv_lib_udis86_ud_init = yes; then
28273 cat >>confdefs.h <<_ACEOF
28274#define HAVE_LIBUDIS86 1
28275_ACEOF
28276
28277 LIBS="-ludis86 $LIBS"
28278
28279else
28280
28281 echo "Error! You need to have libudis86 around."
28282 exit -1
28283
28284fi
28285
28286
28287else
28288 USE_UDIS86=0
28289
28290fi
28291
28292
28293cat >>confdefs.h <<_ACEOF
28294#define USE_UDIS86 $USE_UDIS86
28295_ACEOF
28296
28297
28298
Reid Spencer59473af2004-12-25 07:31:29 +000028299
28300
28301
28302
28303
28304ac_header_dirent=no
28305for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28306 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028307{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28308echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028310 echo $ECHO_N "(cached) $ECHO_C" >&6
28311else
28312 cat >conftest.$ac_ext <<_ACEOF
28313/* confdefs.h. */
28314_ACEOF
28315cat confdefs.h >>conftest.$ac_ext
28316cat >>conftest.$ac_ext <<_ACEOF
28317/* end confdefs.h. */
28318#include <sys/types.h>
28319#include <$ac_hdr>
28320
28321int
28322main ()
28323{
28324if ((DIR *) 0)
28325return 0;
28326 ;
28327 return 0;
28328}
28329_ACEOF
28330rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028331if { (ac_try="$ac_compile"
28332case "(($ac_try" in
28333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28334 *) ac_try_echo=$ac_try;;
28335esac
28336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28337 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028338 ac_status=$?
28339 grep -v '^ *+' conftest.er1 >conftest.err
28340 rm -f conftest.er1
28341 cat conftest.err >&5
28342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028343 (exit $ac_status); } &&
28344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28345 { (case "(($ac_try" in
28346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28347 *) ac_try_echo=$ac_try;;
28348esac
28349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28350 (eval "$ac_try") 2>&5
28351 ac_status=$?
28352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353 (exit $ac_status); }; } &&
28354 { ac_try='test -s conftest.$ac_objext'
28355 { (case "(($ac_try" in
28356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28357 *) ac_try_echo=$ac_try;;
28358esac
28359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28360 (eval "$ac_try") 2>&5
28361 ac_status=$?
28362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028364 eval "$as_ac_Header=yes"
28365else
28366 echo "$as_me: failed program was:" >&5
28367sed 's/^/| /' conftest.$ac_ext >&5
28368
Reid Spencera773bd52006-08-04 18:18:08 +000028369 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028370fi
Reid Spencera773bd52006-08-04 18:18:08 +000028371
28372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028373fi
Reid Spencera773bd52006-08-04 18:18:08 +000028374ac_res=`eval echo '${'$as_ac_Header'}'`
28375 { echo "$as_me:$LINENO: result: $ac_res" >&5
28376echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028377if test `eval echo '${'$as_ac_Header'}'` = yes; then
28378 cat >>confdefs.h <<_ACEOF
28379#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28380_ACEOF
28381
28382ac_header_dirent=$ac_hdr; break
28383fi
28384
28385done
28386# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28387if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028388 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28389echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028390if test "${ac_cv_search_opendir+set}" = set; then
28391 echo $ECHO_N "(cached) $ECHO_C" >&6
28392else
28393 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028394cat >conftest.$ac_ext <<_ACEOF
28395/* confdefs.h. */
28396_ACEOF
28397cat confdefs.h >>conftest.$ac_ext
28398cat >>conftest.$ac_ext <<_ACEOF
28399/* end confdefs.h. */
28400
Reid Spencera773bd52006-08-04 18:18:08 +000028401/* Override any GCC internal prototype to avoid an error.
28402 Use char because int might match the return type of a GCC
28403 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028404#ifdef __cplusplus
28405extern "C"
28406#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028407char opendir ();
28408int
28409main ()
28410{
Reid Spencera773bd52006-08-04 18:18:08 +000028411return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028412 ;
28413 return 0;
28414}
28415_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028416for ac_lib in '' dir; do
28417 if test -z "$ac_lib"; then
28418 ac_res="none required"
28419 else
28420 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028422 fi
28423 rm -f conftest.$ac_objext conftest$ac_exeext
28424if { (ac_try="$ac_link"
28425case "(($ac_try" in
28426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28427 *) ac_try_echo=$ac_try;;
28428esac
28429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28430 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028431 ac_status=$?
28432 grep -v '^ *+' conftest.er1 >conftest.err
28433 rm -f conftest.er1
28434 cat conftest.err >&5
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028436 (exit $ac_status); } &&
28437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28438 { (case "(($ac_try" in
28439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28440 *) ac_try_echo=$ac_try;;
28441esac
28442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28443 (eval "$ac_try") 2>&5
28444 ac_status=$?
28445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446 (exit $ac_status); }; } &&
28447 { ac_try='test -s conftest$ac_exeext'
28448 { (case "(($ac_try" in
28449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28450 *) ac_try_echo=$ac_try;;
28451esac
28452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28453 (eval "$ac_try") 2>&5
28454 ac_status=$?
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028457 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028458else
28459 echo "$as_me: failed program was:" >&5
28460sed 's/^/| /' conftest.$ac_ext >&5
28461
Reid Spencera773bd52006-08-04 18:18:08 +000028462
Reid Spencer59473af2004-12-25 07:31:29 +000028463fi
Reid Spencera773bd52006-08-04 18:18:08 +000028464
Bill Wendlingebcceee2009-04-18 11:20:33 +000028465rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028466 conftest$ac_exeext
28467 if test "${ac_cv_search_opendir+set}" = set; then
28468 break
Reid Spencer59473af2004-12-25 07:31:29 +000028469fi
Reid Spencera773bd52006-08-04 18:18:08 +000028470done
28471if test "${ac_cv_search_opendir+set}" = set; then
28472 :
28473else
28474 ac_cv_search_opendir=no
28475fi
28476rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028477LIBS=$ac_func_search_save_LIBS
28478fi
Reid Spencera773bd52006-08-04 18:18:08 +000028479{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28480echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28481ac_res=$ac_cv_search_opendir
28482if test "$ac_res" != no; then
28483 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028484
28485fi
28486
28487else
Reid Spencera773bd52006-08-04 18:18:08 +000028488 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28489echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028490if test "${ac_cv_search_opendir+set}" = set; then
28491 echo $ECHO_N "(cached) $ECHO_C" >&6
28492else
28493 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028494cat >conftest.$ac_ext <<_ACEOF
28495/* confdefs.h. */
28496_ACEOF
28497cat confdefs.h >>conftest.$ac_ext
28498cat >>conftest.$ac_ext <<_ACEOF
28499/* end confdefs.h. */
28500
Reid Spencera773bd52006-08-04 18:18:08 +000028501/* Override any GCC internal prototype to avoid an error.
28502 Use char because int might match the return type of a GCC
28503 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028504#ifdef __cplusplus
28505extern "C"
28506#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028507char opendir ();
28508int
28509main ()
28510{
Reid Spencera773bd52006-08-04 18:18:08 +000028511return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028512 ;
28513 return 0;
28514}
28515_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028516for ac_lib in '' x; do
28517 if test -z "$ac_lib"; then
28518 ac_res="none required"
28519 else
28520 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028522 fi
28523 rm -f conftest.$ac_objext conftest$ac_exeext
28524if { (ac_try="$ac_link"
28525case "(($ac_try" in
28526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28527 *) ac_try_echo=$ac_try;;
28528esac
28529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28530 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028531 ac_status=$?
28532 grep -v '^ *+' conftest.er1 >conftest.err
28533 rm -f conftest.er1
28534 cat conftest.err >&5
28535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028536 (exit $ac_status); } &&
28537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28538 { (case "(($ac_try" in
28539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28540 *) ac_try_echo=$ac_try;;
28541esac
28542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28543 (eval "$ac_try") 2>&5
28544 ac_status=$?
28545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546 (exit $ac_status); }; } &&
28547 { ac_try='test -s conftest$ac_exeext'
28548 { (case "(($ac_try" in
28549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28550 *) ac_try_echo=$ac_try;;
28551esac
28552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28553 (eval "$ac_try") 2>&5
28554 ac_status=$?
28555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028557 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028558else
28559 echo "$as_me: failed program was:" >&5
28560sed 's/^/| /' conftest.$ac_ext >&5
28561
Reid Spencera773bd52006-08-04 18:18:08 +000028562
Reid Spencer59473af2004-12-25 07:31:29 +000028563fi
Reid Spencera773bd52006-08-04 18:18:08 +000028564
Bill Wendlingebcceee2009-04-18 11:20:33 +000028565rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028566 conftest$ac_exeext
28567 if test "${ac_cv_search_opendir+set}" = set; then
28568 break
Reid Spencer59473af2004-12-25 07:31:29 +000028569fi
Reid Spencera773bd52006-08-04 18:18:08 +000028570done
28571if test "${ac_cv_search_opendir+set}" = set; then
28572 :
28573else
28574 ac_cv_search_opendir=no
28575fi
28576rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028577LIBS=$ac_func_search_save_LIBS
28578fi
Reid Spencera773bd52006-08-04 18:18:08 +000028579{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28580echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28581ac_res=$ac_cv_search_opendir
28582if test "$ac_res" != no; then
28583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028584
28585fi
28586
28587fi
28588
Reid Spencera773bd52006-08-04 18:18:08 +000028589{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28590echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028591if test "${ac_cv_header_mmap_anon+set}" = set; then
28592 echo $ECHO_N "(cached) $ECHO_C" >&6
28593else
28594 ac_ext=c
28595ac_cpp='$CPP $CPPFLAGS'
28596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28598ac_compiler_gnu=$ac_cv_c_compiler_gnu
28599
28600 cat >conftest.$ac_ext <<_ACEOF
28601/* confdefs.h. */
28602_ACEOF
28603cat confdefs.h >>conftest.$ac_ext
28604cat >>conftest.$ac_ext <<_ACEOF
28605/* end confdefs.h. */
28606#include <sys/mman.h>
28607#include <unistd.h>
28608#include <fcntl.h>
28609int
28610main ()
28611{
28612mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28613 ;
28614 return 0;
28615}
28616_ACEOF
28617rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028618if { (ac_try="$ac_compile"
28619case "(($ac_try" in
28620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621 *) ac_try_echo=$ac_try;;
28622esac
28623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28624 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028625 ac_status=$?
28626 grep -v '^ *+' conftest.er1 >conftest.err
28627 rm -f conftest.er1
28628 cat conftest.err >&5
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028630 (exit $ac_status); } &&
28631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28632 { (case "(($ac_try" in
28633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28634 *) ac_try_echo=$ac_try;;
28635esac
28636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28637 (eval "$ac_try") 2>&5
28638 ac_status=$?
28639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640 (exit $ac_status); }; } &&
28641 { ac_try='test -s conftest.$ac_objext'
28642 { (case "(($ac_try" in
28643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28644 *) ac_try_echo=$ac_try;;
28645esac
28646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28647 (eval "$ac_try") 2>&5
28648 ac_status=$?
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028651 ac_cv_header_mmap_anon=yes
28652else
28653 echo "$as_me: failed program was:" >&5
28654sed 's/^/| /' conftest.$ac_ext >&5
28655
Reid Spencera773bd52006-08-04 18:18:08 +000028656 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028657fi
Reid Spencera773bd52006-08-04 18:18:08 +000028658
28659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028660 ac_ext=c
28661ac_cpp='$CPP $CPPFLAGS'
28662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28664ac_compiler_gnu=$ac_cv_c_compiler_gnu
28665
28666
28667fi
Reid Spencera773bd52006-08-04 18:18:08 +000028668{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28669echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028670if test "$ac_cv_header_mmap_anon" = yes; then
28671
28672cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028673#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028674_ACEOF
28675
28676fi
28677
Reid Spencera773bd52006-08-04 18:18:08 +000028678{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28679echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028680if test "${ac_cv_header_stat_broken+set}" = set; then
28681 echo $ECHO_N "(cached) $ECHO_C" >&6
28682else
28683 cat >conftest.$ac_ext <<_ACEOF
28684/* confdefs.h. */
28685_ACEOF
28686cat confdefs.h >>conftest.$ac_ext
28687cat >>conftest.$ac_ext <<_ACEOF
28688/* end confdefs.h. */
28689#include <sys/types.h>
28690#include <sys/stat.h>
28691
Reid Spencera773bd52006-08-04 18:18:08 +000028692#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000028693# if S_ISBLK (S_IFDIR)
28694You lose.
28695# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028696#endif
28697
Reid Spencera773bd52006-08-04 18:18:08 +000028698#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000028699# if S_ISBLK (S_IFCHR)
28700You lose.
28701# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028702#endif
28703
Reid Spencera773bd52006-08-04 18:18:08 +000028704#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000028705# if S_ISLNK (S_IFREG)
28706You lose.
28707# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028708#endif
28709
Reid Spencera773bd52006-08-04 18:18:08 +000028710#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000028711# if S_ISSOCK (S_IFREG)
28712You lose.
28713# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028714#endif
28715
28716_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000028717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28718 $EGREP "You lose" >/dev/null 2>&1; then
28719 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028720else
Bill Wendlingebcceee2009-04-18 11:20:33 +000028721 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028722fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028723rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028724
Reid Spencer59473af2004-12-25 07:31:29 +000028725fi
Reid Spencera773bd52006-08-04 18:18:08 +000028726{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28727echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028728if test $ac_cv_header_stat_broken = yes; then
28729
28730cat >>confdefs.h <<\_ACEOF
28731#define STAT_MACROS_BROKEN 1
28732_ACEOF
28733
28734fi
28735
Reid Spencera773bd52006-08-04 18:18:08 +000028736{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28737echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028738if test "${ac_cv_header_stdc+set}" = set; then
28739 echo $ECHO_N "(cached) $ECHO_C" >&6
28740else
28741 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028742/* confdefs.h. */
28743_ACEOF
28744cat confdefs.h >>conftest.$ac_ext
28745cat >>conftest.$ac_ext <<_ACEOF
28746/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028747#include <stdlib.h>
28748#include <stdarg.h>
28749#include <string.h>
28750#include <float.h>
28751
John Criswell0c38eaf2003-09-10 15:17:25 +000028752int
28753main ()
28754{
28755
28756 ;
28757 return 0;
28758}
John Criswell7a73b802003-06-30 21:59:07 +000028759_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028760rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028761if { (ac_try="$ac_compile"
28762case "(($ac_try" in
28763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764 *) ac_try_echo=$ac_try;;
28765esac
28766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028768 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028769 grep -v '^ *+' conftest.er1 >conftest.err
28770 rm -f conftest.er1
28771 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028773 (exit $ac_status); } &&
28774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28775 { (case "(($ac_try" in
28776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777 *) ac_try_echo=$ac_try;;
28778esac
28779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780 (eval "$ac_try") 2>&5
28781 ac_status=$?
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); }; } &&
28784 { ac_try='test -s conftest.$ac_objext'
28785 { (case "(($ac_try" in
28786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28787 *) ac_try_echo=$ac_try;;
28788esac
28789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28790 (eval "$ac_try") 2>&5
28791 ac_status=$?
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028794 ac_cv_header_stdc=yes
28795else
28796 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028797sed 's/^/| /' conftest.$ac_ext >&5
28798
Reid Spencera773bd52006-08-04 18:18:08 +000028799 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028800fi
Reid Spencera773bd52006-08-04 18:18:08 +000028801
28802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028803
28804if test $ac_cv_header_stdc = yes; then
28805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28806 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028807/* confdefs.h. */
28808_ACEOF
28809cat confdefs.h >>conftest.$ac_ext
28810cat >>conftest.$ac_ext <<_ACEOF
28811/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028812#include <string.h>
28813
28814_ACEOF
28815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028816 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028817 :
28818else
28819 ac_cv_header_stdc=no
28820fi
28821rm -f conftest*
28822
28823fi
28824
28825if test $ac_cv_header_stdc = yes; then
28826 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28827 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028828/* confdefs.h. */
28829_ACEOF
28830cat confdefs.h >>conftest.$ac_ext
28831cat >>conftest.$ac_ext <<_ACEOF
28832/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028833#include <stdlib.h>
28834
28835_ACEOF
28836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028837 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028838 :
28839else
28840 ac_cv_header_stdc=no
28841fi
28842rm -f conftest*
28843
28844fi
28845
28846if test $ac_cv_header_stdc = yes; then
28847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28848 if test "$cross_compiling" = yes; then
28849 :
28850else
28851 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028852/* confdefs.h. */
28853_ACEOF
28854cat confdefs.h >>conftest.$ac_ext
28855cat >>conftest.$ac_ext <<_ACEOF
28856/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028857#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028858#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028859#if ((' ' & 0x0FF) == 0x020)
28860# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28861# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28862#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028863# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028864 (('a' <= (c) && (c) <= 'i') \
28865 || ('j' <= (c) && (c) <= 'r') \
28866 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028867# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28868#endif
28869
28870#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28871int
28872main ()
28873{
28874 int i;
28875 for (i = 0; i < 256; i++)
28876 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028877 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028878 return 2;
28879 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028880}
28881_ACEOF
28882rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028883if { (ac_try="$ac_link"
28884case "(($ac_try" in
28885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28886 *) ac_try_echo=$ac_try;;
28887esac
28888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28889 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028890 ac_status=$?
28891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028893 { (case "(($ac_try" in
28894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28895 *) ac_try_echo=$ac_try;;
28896esac
28897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28898 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028899 ac_status=$?
28900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901 (exit $ac_status); }; }; then
28902 :
28903else
28904 echo "$as_me: program exited with status $ac_status" >&5
28905echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028906sed 's/^/| /' conftest.$ac_ext >&5
28907
John Criswell7a73b802003-06-30 21:59:07 +000028908( exit $ac_status )
28909ac_cv_header_stdc=no
28910fi
Reid Spencera773bd52006-08-04 18:18:08 +000028911rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28912fi
28913
28914
John Criswell7a73b802003-06-30 21:59:07 +000028915fi
28916fi
Reid Spencera773bd52006-08-04 18:18:08 +000028917{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28918echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028919if test $ac_cv_header_stdc = yes; then
28920
28921cat >>confdefs.h <<\_ACEOF
28922#define STDC_HEADERS 1
28923_ACEOF
28924
28925fi
28926
Reid Spencera773bd52006-08-04 18:18:08 +000028927{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28928echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028929if test "${ac_cv_header_sys_wait_h+set}" = set; then
28930 echo $ECHO_N "(cached) $ECHO_C" >&6
28931else
28932 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028933/* confdefs.h. */
28934_ACEOF
28935cat confdefs.h >>conftest.$ac_ext
28936cat >>conftest.$ac_ext <<_ACEOF
28937/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028938#include <sys/types.h>
28939#include <sys/wait.h>
28940#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028941# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028942#endif
28943#ifndef WIFEXITED
28944# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28945#endif
28946
John Criswell7a73b802003-06-30 21:59:07 +000028947int
28948main ()
28949{
28950 int s;
28951 wait (&s);
28952 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28953 ;
28954 return 0;
28955}
28956_ACEOF
28957rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028958if { (ac_try="$ac_compile"
28959case "(($ac_try" in
28960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28961 *) ac_try_echo=$ac_try;;
28962esac
28963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28964 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028965 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028966 grep -v '^ *+' conftest.er1 >conftest.err
28967 rm -f conftest.er1
28968 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028970 (exit $ac_status); } &&
28971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28972 { (case "(($ac_try" in
28973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974 *) ac_try_echo=$ac_try;;
28975esac
28976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28977 (eval "$ac_try") 2>&5
28978 ac_status=$?
28979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980 (exit $ac_status); }; } &&
28981 { ac_try='test -s conftest.$ac_objext'
28982 { (case "(($ac_try" in
28983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28984 *) ac_try_echo=$ac_try;;
28985esac
28986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28987 (eval "$ac_try") 2>&5
28988 ac_status=$?
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028991 ac_cv_header_sys_wait_h=yes
28992else
28993 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028994sed 's/^/| /' conftest.$ac_ext >&5
28995
Reid Spencera773bd52006-08-04 18:18:08 +000028996 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028997fi
Reid Spencera773bd52006-08-04 18:18:08 +000028998
28999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029000fi
Reid Spencera773bd52006-08-04 18:18:08 +000029001{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29002echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029003if test $ac_cv_header_sys_wait_h = yes; then
29004
29005cat >>confdefs.h <<\_ACEOF
29006#define HAVE_SYS_WAIT_H 1
29007_ACEOF
29008
29009fi
29010
Reid Spencera773bd52006-08-04 18:18:08 +000029011{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29012echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029013if test "${ac_cv_header_time+set}" = set; then
29014 echo $ECHO_N "(cached) $ECHO_C" >&6
29015else
29016 cat >conftest.$ac_ext <<_ACEOF
29017/* confdefs.h. */
29018_ACEOF
29019cat confdefs.h >>conftest.$ac_ext
29020cat >>conftest.$ac_ext <<_ACEOF
29021/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029022#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029023#include <sys/time.h>
29024#include <time.h>
29025
29026int
29027main ()
29028{
29029if ((struct tm *) 0)
29030return 0;
29031 ;
29032 return 0;
29033}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029034_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029035rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029036if { (ac_try="$ac_compile"
29037case "(($ac_try" in
29038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29039 *) ac_try_echo=$ac_try;;
29040esac
29041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29042 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029043 ac_status=$?
29044 grep -v '^ *+' conftest.er1 >conftest.err
29045 rm -f conftest.er1
29046 cat conftest.err >&5
29047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029048 (exit $ac_status); } &&
29049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29050 { (case "(($ac_try" in
29051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052 *) ac_try_echo=$ac_try;;
29053esac
29054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29055 (eval "$ac_try") 2>&5
29056 ac_status=$?
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); }; } &&
29059 { ac_try='test -s conftest.$ac_objext'
29060 { (case "(($ac_try" in
29061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29062 *) ac_try_echo=$ac_try;;
29063esac
29064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29065 (eval "$ac_try") 2>&5
29066 ac_status=$?
29067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029069 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029070else
29071 echo "$as_me: failed program was:" >&5
29072sed 's/^/| /' conftest.$ac_ext >&5
29073
Reid Spencera773bd52006-08-04 18:18:08 +000029074 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029075fi
Reid Spencera773bd52006-08-04 18:18:08 +000029076
29077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029078fi
Reid Spencera773bd52006-08-04 18:18:08 +000029079{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29080echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029081if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029082
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029083cat >>confdefs.h <<\_ACEOF
29084#define TIME_WITH_SYS_TIME 1
29085_ACEOF
29086
29087fi
29088
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029089
Reid Spencer59473af2004-12-25 07:31:29 +000029090
29091
29092
29093
29094
29095
29096for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29097do
29098as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029103 echo $ECHO_N "(cached) $ECHO_C" >&6
29104fi
Reid Spencera773bd52006-08-04 18:18:08 +000029105ac_res=`eval echo '${'$as_ac_Header'}'`
29106 { echo "$as_me:$LINENO: result: $ac_res" >&5
29107echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029108else
29109 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029110{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029112cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029113/* confdefs.h. */
29114_ACEOF
29115cat confdefs.h >>conftest.$ac_ext
29116cat >>conftest.$ac_ext <<_ACEOF
29117/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029118$ac_includes_default
29119#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029120_ACEOF
29121rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029122if { (ac_try="$ac_compile"
29123case "(($ac_try" in
29124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29125 *) ac_try_echo=$ac_try;;
29126esac
29127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029129 ac_status=$?
29130 grep -v '^ *+' conftest.er1 >conftest.err
29131 rm -f conftest.er1
29132 cat conftest.err >&5
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029134 (exit $ac_status); } &&
29135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29136 { (case "(($ac_try" in
29137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29138 *) ac_try_echo=$ac_try;;
29139esac
29140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141 (eval "$ac_try") 2>&5
29142 ac_status=$?
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); }; } &&
29145 { ac_try='test -s conftest.$ac_objext'
29146 { (case "(($ac_try" in
29147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29148 *) ac_try_echo=$ac_try;;
29149esac
29150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29151 (eval "$ac_try") 2>&5
29152 ac_status=$?
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029155 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029156else
29157 echo "$as_me: failed program was:" >&5
29158sed 's/^/| /' conftest.$ac_ext >&5
29159
Reid Spencera773bd52006-08-04 18:18:08 +000029160 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029161fi
Reid Spencera773bd52006-08-04 18:18:08 +000029162
29163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29164{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29165echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029166
Reid Spencer59473af2004-12-25 07:31:29 +000029167# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029168{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29169echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029170cat >conftest.$ac_ext <<_ACEOF
29171/* confdefs.h. */
29172_ACEOF
29173cat confdefs.h >>conftest.$ac_ext
29174cat >>conftest.$ac_ext <<_ACEOF
29175/* end confdefs.h. */
29176#include <$ac_header>
29177_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029178if { (ac_try="$ac_cpp conftest.$ac_ext"
29179case "(($ac_try" in
29180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29181 *) ac_try_echo=$ac_try;;
29182esac
29183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029185 ac_status=$?
29186 grep -v '^ *+' conftest.er1 >conftest.err
29187 rm -f conftest.er1
29188 cat conftest.err >&5
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029190 (exit $ac_status); } >/dev/null; then
29191 if test -s conftest.err; then
29192 ac_cpp_err=$ac_c_preproc_warn_flag
29193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29194 else
29195 ac_cpp_err=
29196 fi
29197else
29198 ac_cpp_err=yes
29199fi
29200if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029201 ac_header_preproc=yes
29202else
29203 echo "$as_me: failed program was:" >&5
29204sed 's/^/| /' conftest.$ac_ext >&5
29205
29206 ac_header_preproc=no
29207fi
Reid Spencera773bd52006-08-04 18:18:08 +000029208
Reid Spencer59473af2004-12-25 07:31:29 +000029209rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029210{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29211echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029212
29213# So? What about this header?
29214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29215 yes:no: )
29216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29220 ac_header_preproc=yes
29221 ;;
29222 no:yes:* )
29223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29226echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29230echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029235 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029236## ----------------------------------- ##
29237## Report this to llvmbugs@cs.uiuc.edu ##
29238## ----------------------------------- ##
29239_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029240 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029241 ;;
29242esac
Reid Spencera773bd52006-08-04 18:18:08 +000029243{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029246 echo $ECHO_N "(cached) $ECHO_C" >&6
29247else
29248 eval "$as_ac_Header=\$ac_header_preproc"
29249fi
Reid Spencera773bd52006-08-04 18:18:08 +000029250ac_res=`eval echo '${'$as_ac_Header'}'`
29251 { echo "$as_me:$LINENO: result: $ac_res" >&5
29252echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029253
29254fi
Reid Spencer59473af2004-12-25 07:31:29 +000029255if test `eval echo '${'$as_ac_Header'}'` = yes; then
29256 cat >>confdefs.h <<_ACEOF
29257#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029258_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029259
29260fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029261
Reid Spencer59473af2004-12-25 07:31:29 +000029262done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029263
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029264
29265
Reid Spencer59473af2004-12-25 07:31:29 +000029266
29267
29268
29269
Douglas Gregor071d73d2009-05-18 17:21:34 +000029270for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000029271do
29272as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029277 echo $ECHO_N "(cached) $ECHO_C" >&6
29278fi
Reid Spencera773bd52006-08-04 18:18:08 +000029279ac_res=`eval echo '${'$as_ac_Header'}'`
29280 { echo "$as_me:$LINENO: result: $ac_res" >&5
29281echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029282else
29283 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029284{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29285echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029286cat >conftest.$ac_ext <<_ACEOF
29287/* confdefs.h. */
29288_ACEOF
29289cat confdefs.h >>conftest.$ac_ext
29290cat >>conftest.$ac_ext <<_ACEOF
29291/* end confdefs.h. */
29292$ac_includes_default
29293#include <$ac_header>
29294_ACEOF
29295rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029296if { (ac_try="$ac_compile"
29297case "(($ac_try" in
29298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299 *) ac_try_echo=$ac_try;;
29300esac
29301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029303 ac_status=$?
29304 grep -v '^ *+' conftest.er1 >conftest.err
29305 rm -f conftest.er1
29306 cat conftest.err >&5
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029308 (exit $ac_status); } &&
29309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29310 { (case "(($ac_try" in
29311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29312 *) ac_try_echo=$ac_try;;
29313esac
29314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315 (eval "$ac_try") 2>&5
29316 ac_status=$?
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); }; } &&
29319 { ac_try='test -s conftest.$ac_objext'
29320 { (case "(($ac_try" in
29321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322 *) ac_try_echo=$ac_try;;
29323esac
29324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325 (eval "$ac_try") 2>&5
29326 ac_status=$?
29327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029329 ac_header_compiler=yes
29330else
29331 echo "$as_me: failed program was:" >&5
29332sed 's/^/| /' conftest.$ac_ext >&5
29333
Reid Spencera773bd52006-08-04 18:18:08 +000029334 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029335fi
Reid Spencera773bd52006-08-04 18:18:08 +000029336
29337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29338{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29339echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029340
29341# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029342{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29343echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029344cat >conftest.$ac_ext <<_ACEOF
29345/* confdefs.h. */
29346_ACEOF
29347cat confdefs.h >>conftest.$ac_ext
29348cat >>conftest.$ac_ext <<_ACEOF
29349/* end confdefs.h. */
29350#include <$ac_header>
29351_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029352if { (ac_try="$ac_cpp conftest.$ac_ext"
29353case "(($ac_try" in
29354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29355 *) ac_try_echo=$ac_try;;
29356esac
29357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029359 ac_status=$?
29360 grep -v '^ *+' conftest.er1 >conftest.err
29361 rm -f conftest.er1
29362 cat conftest.err >&5
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029364 (exit $ac_status); } >/dev/null; then
29365 if test -s conftest.err; then
29366 ac_cpp_err=$ac_c_preproc_warn_flag
29367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29368 else
29369 ac_cpp_err=
29370 fi
29371else
29372 ac_cpp_err=yes
29373fi
29374if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029375 ac_header_preproc=yes
29376else
29377 echo "$as_me: failed program was:" >&5
29378sed 's/^/| /' conftest.$ac_ext >&5
29379
29380 ac_header_preproc=no
29381fi
Reid Spencera773bd52006-08-04 18:18:08 +000029382
Reid Spencer59473af2004-12-25 07:31:29 +000029383rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029384{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29385echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029386
29387# So? What about this header?
29388case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29389 yes:no: )
29390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29391echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29393echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29394 ac_header_preproc=yes
29395 ;;
29396 no:yes:* )
29397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29398echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29400echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29402echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29404echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29406echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29408echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029409 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029410## ----------------------------------- ##
29411## Report this to llvmbugs@cs.uiuc.edu ##
29412## ----------------------------------- ##
29413_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029414 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029415 ;;
29416esac
Reid Spencera773bd52006-08-04 18:18:08 +000029417{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29419if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029420 echo $ECHO_N "(cached) $ECHO_C" >&6
29421else
29422 eval "$as_ac_Header=\$ac_header_preproc"
29423fi
Reid Spencera773bd52006-08-04 18:18:08 +000029424ac_res=`eval echo '${'$as_ac_Header'}'`
29425 { echo "$as_me:$LINENO: result: $ac_res" >&5
29426echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029427
29428fi
29429if test `eval echo '${'$as_ac_Header'}'` = yes; then
29430 cat >>confdefs.h <<_ACEOF
29431#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29432_ACEOF
29433
29434fi
29435
29436done
29437
29438
Douglas Gregor071d73d2009-05-18 17:21:34 +000029439
29440for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000029441do
29442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29447 echo $ECHO_N "(cached) $ECHO_C" >&6
29448fi
29449ac_res=`eval echo '${'$as_ac_Header'}'`
29450 { echo "$as_me:$LINENO: result: $ac_res" >&5
29451echo "${ECHO_T}$ac_res" >&6; }
29452else
29453 # Is the header compilable?
29454{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29455echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29456cat >conftest.$ac_ext <<_ACEOF
29457/* confdefs.h. */
29458_ACEOF
29459cat confdefs.h >>conftest.$ac_ext
29460cat >>conftest.$ac_ext <<_ACEOF
29461/* end confdefs.h. */
29462$ac_includes_default
29463#include <$ac_header>
29464_ACEOF
29465rm -f conftest.$ac_objext
29466if { (ac_try="$ac_compile"
29467case "(($ac_try" in
29468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469 *) ac_try_echo=$ac_try;;
29470esac
29471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29472 (eval "$ac_compile") 2>conftest.er1
29473 ac_status=$?
29474 grep -v '^ *+' conftest.er1 >conftest.err
29475 rm -f conftest.er1
29476 cat conftest.err >&5
29477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029478 (exit $ac_status); } &&
29479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29480 { (case "(($ac_try" in
29481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29482 *) ac_try_echo=$ac_try;;
29483esac
29484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29485 (eval "$ac_try") 2>&5
29486 ac_status=$?
29487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488 (exit $ac_status); }; } &&
29489 { ac_try='test -s conftest.$ac_objext'
29490 { (case "(($ac_try" in
29491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29492 *) ac_try_echo=$ac_try;;
29493esac
29494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29495 (eval "$ac_try") 2>&5
29496 ac_status=$?
29497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29498 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029499 ac_header_compiler=yes
29500else
29501 echo "$as_me: failed program was:" >&5
29502sed 's/^/| /' conftest.$ac_ext >&5
29503
29504 ac_header_compiler=no
29505fi
29506
29507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29508{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29509echo "${ECHO_T}$ac_header_compiler" >&6; }
29510
29511# Is the header present?
29512{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29513echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29514cat >conftest.$ac_ext <<_ACEOF
29515/* confdefs.h. */
29516_ACEOF
29517cat confdefs.h >>conftest.$ac_ext
29518cat >>conftest.$ac_ext <<_ACEOF
29519/* end confdefs.h. */
29520#include <$ac_header>
29521_ACEOF
29522if { (ac_try="$ac_cpp conftest.$ac_ext"
29523case "(($ac_try" in
29524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29525 *) ac_try_echo=$ac_try;;
29526esac
29527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29529 ac_status=$?
29530 grep -v '^ *+' conftest.er1 >conftest.err
29531 rm -f conftest.er1
29532 cat conftest.err >&5
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029534 (exit $ac_status); } >/dev/null; then
29535 if test -s conftest.err; then
29536 ac_cpp_err=$ac_c_preproc_warn_flag
29537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29538 else
29539 ac_cpp_err=
29540 fi
29541else
29542 ac_cpp_err=yes
29543fi
29544if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029545 ac_header_preproc=yes
29546else
29547 echo "$as_me: failed program was:" >&5
29548sed 's/^/| /' conftest.$ac_ext >&5
29549
29550 ac_header_preproc=no
29551fi
29552
29553rm -f conftest.err conftest.$ac_ext
29554{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29555echo "${ECHO_T}$ac_header_preproc" >&6; }
29556
29557# So? What about this header?
29558case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29559 yes:no: )
29560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29561echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29563echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29564 ac_header_preproc=yes
29565 ;;
29566 no:yes:* )
29567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29568echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29570echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29572echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29574echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29576echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29578echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29579 ( cat <<\_ASBOX
29580## ----------------------------------- ##
29581## Report this to llvmbugs@cs.uiuc.edu ##
29582## ----------------------------------- ##
29583_ASBOX
29584 ) | sed "s/^/$as_me: WARNING: /" >&2
29585 ;;
29586esac
29587{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29590 echo $ECHO_N "(cached) $ECHO_C" >&6
29591else
29592 eval "$as_ac_Header=\$ac_header_preproc"
29593fi
29594ac_res=`eval echo '${'$as_ac_Header'}'`
29595 { echo "$as_me:$LINENO: result: $ac_res" >&5
29596echo "${ECHO_T}$ac_res" >&6; }
29597
29598fi
29599if test `eval echo '${'$as_ac_Header'}'` = yes; then
29600 cat >>confdefs.h <<_ACEOF
29601#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29602_ACEOF
29603
29604fi
29605
29606done
Reid Spencer59473af2004-12-25 07:31:29 +000029607
29608
29609
29610
Reid Spencerbe3e4192007-08-17 05:45:26 +000029611
29612for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029613do
29614as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29618if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029619 echo $ECHO_N "(cached) $ECHO_C" >&6
29620fi
Reid Spencera773bd52006-08-04 18:18:08 +000029621ac_res=`eval echo '${'$as_ac_Header'}'`
29622 { echo "$as_me:$LINENO: result: $ac_res" >&5
29623echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029624else
29625 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029626{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29627echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029628cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029629/* confdefs.h. */
29630_ACEOF
29631cat confdefs.h >>conftest.$ac_ext
29632cat >>conftest.$ac_ext <<_ACEOF
29633/* end confdefs.h. */
29634$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029635#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029636_ACEOF
29637rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029638if { (ac_try="$ac_compile"
29639case "(($ac_try" in
29640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29641 *) ac_try_echo=$ac_try;;
29642esac
29643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29644 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029645 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029646 grep -v '^ *+' conftest.er1 >conftest.err
29647 rm -f conftest.er1
29648 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029650 (exit $ac_status); } &&
29651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29652 { (case "(($ac_try" in
29653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29654 *) ac_try_echo=$ac_try;;
29655esac
29656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29657 (eval "$ac_try") 2>&5
29658 ac_status=$?
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); }; } &&
29661 { ac_try='test -s conftest.$ac_objext'
29662 { (case "(($ac_try" in
29663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664 *) ac_try_echo=$ac_try;;
29665esac
29666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29667 (eval "$ac_try") 2>&5
29668 ac_status=$?
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029671 ac_header_compiler=yes
29672else
29673 echo "$as_me: failed program was:" >&5
29674sed 's/^/| /' conftest.$ac_ext >&5
29675
Reid Spencera773bd52006-08-04 18:18:08 +000029676 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029677fi
Reid Spencera773bd52006-08-04 18:18:08 +000029678
29679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29680{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29681echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029682
29683# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029684{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29685echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029686cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029687/* confdefs.h. */
29688_ACEOF
29689cat confdefs.h >>conftest.$ac_ext
29690cat >>conftest.$ac_ext <<_ACEOF
29691/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029692#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029693_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029694if { (ac_try="$ac_cpp conftest.$ac_ext"
29695case "(($ac_try" in
29696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29697 *) ac_try_echo=$ac_try;;
29698esac
29699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029701 ac_status=$?
29702 grep -v '^ *+' conftest.er1 >conftest.err
29703 rm -f conftest.er1
29704 cat conftest.err >&5
29705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029706 (exit $ac_status); } >/dev/null; then
29707 if test -s conftest.err; then
29708 ac_cpp_err=$ac_c_preproc_warn_flag
29709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29710 else
29711 ac_cpp_err=
29712 fi
29713else
29714 ac_cpp_err=yes
29715fi
29716if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029717 ac_header_preproc=yes
29718else
29719 echo "$as_me: failed program was:" >&5
29720sed 's/^/| /' conftest.$ac_ext >&5
29721
29722 ac_header_preproc=no
29723fi
Reid Spencera773bd52006-08-04 18:18:08 +000029724
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029725rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029726{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29727echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029728
29729# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029730case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29731 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29733echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29735echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029736 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029737 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029738 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29740echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29742echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29744echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29746echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29748echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29750echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029751 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029752## ----------------------------------- ##
29753## Report this to llvmbugs@cs.uiuc.edu ##
29754## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029755_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029756 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029757 ;;
29758esac
Reid Spencera773bd52006-08-04 18:18:08 +000029759{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029762 echo $ECHO_N "(cached) $ECHO_C" >&6
29763else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029764 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029765fi
Reid Spencera773bd52006-08-04 18:18:08 +000029766ac_res=`eval echo '${'$as_ac_Header'}'`
29767 { echo "$as_me:$LINENO: result: $ac_res" >&5
29768echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029769
29770fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029771if test `eval echo '${'$as_ac_Header'}'` = yes; then
29772 cat >>confdefs.h <<_ACEOF
29773#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029774_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029775
29776fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029777
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029778done
29779
John Criswell7ed43ad2004-07-19 16:12:29 +000029780
Reid Spencercdb08a32006-06-05 16:11:07 +000029781
Reid Spencera6d990a2006-09-14 06:17:21 +000029782
Douglas Gregor01746742009-05-11 18:05:52 +000029783
29784for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029785do
29786as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029791 echo $ECHO_N "(cached) $ECHO_C" >&6
29792fi
Reid Spencera773bd52006-08-04 18:18:08 +000029793ac_res=`eval echo '${'$as_ac_Header'}'`
29794 { echo "$as_me:$LINENO: result: $ac_res" >&5
29795echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029796else
29797 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029798{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029800cat >conftest.$ac_ext <<_ACEOF
29801/* confdefs.h. */
29802_ACEOF
29803cat confdefs.h >>conftest.$ac_ext
29804cat >>conftest.$ac_ext <<_ACEOF
29805/* end confdefs.h. */
29806$ac_includes_default
29807#include <$ac_header>
29808_ACEOF
29809rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029810if { (ac_try="$ac_compile"
29811case "(($ac_try" in
29812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29813 *) ac_try_echo=$ac_try;;
29814esac
29815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29816 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029817 ac_status=$?
29818 grep -v '^ *+' conftest.er1 >conftest.err
29819 rm -f conftest.er1
29820 cat conftest.err >&5
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029822 (exit $ac_status); } &&
29823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29824 { (case "(($ac_try" in
29825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826 *) ac_try_echo=$ac_try;;
29827esac
29828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829 (eval "$ac_try") 2>&5
29830 ac_status=$?
29831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832 (exit $ac_status); }; } &&
29833 { ac_try='test -s conftest.$ac_objext'
29834 { (case "(($ac_try" in
29835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29836 *) ac_try_echo=$ac_try;;
29837esac
29838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29839 (eval "$ac_try") 2>&5
29840 ac_status=$?
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029843 ac_header_compiler=yes
29844else
29845 echo "$as_me: failed program was:" >&5
29846sed 's/^/| /' conftest.$ac_ext >&5
29847
Reid Spencera773bd52006-08-04 18:18:08 +000029848 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029849fi
Reid Spencera773bd52006-08-04 18:18:08 +000029850
29851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29852{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29853echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029854
29855# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029856{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29857echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029858cat >conftest.$ac_ext <<_ACEOF
29859/* confdefs.h. */
29860_ACEOF
29861cat confdefs.h >>conftest.$ac_ext
29862cat >>conftest.$ac_ext <<_ACEOF
29863/* end confdefs.h. */
29864#include <$ac_header>
29865_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029866if { (ac_try="$ac_cpp conftest.$ac_ext"
29867case "(($ac_try" in
29868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29869 *) ac_try_echo=$ac_try;;
29870esac
29871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029873 ac_status=$?
29874 grep -v '^ *+' conftest.er1 >conftest.err
29875 rm -f conftest.er1
29876 cat conftest.err >&5
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029878 (exit $ac_status); } >/dev/null; then
29879 if test -s conftest.err; then
29880 ac_cpp_err=$ac_c_preproc_warn_flag
29881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29882 else
29883 ac_cpp_err=
29884 fi
29885else
29886 ac_cpp_err=yes
29887fi
29888if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029889 ac_header_preproc=yes
29890else
29891 echo "$as_me: failed program was:" >&5
29892sed 's/^/| /' conftest.$ac_ext >&5
29893
29894 ac_header_preproc=no
29895fi
Reid Spencera773bd52006-08-04 18:18:08 +000029896
Chris Lattner0b142592005-11-14 06:57:34 +000029897rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029898{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29899echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029900
29901# So? What about this header?
29902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29903 yes:no: )
29904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29907echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29908 ac_header_preproc=yes
29909 ;;
29910 no:yes:* )
29911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29914echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29916echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29918echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29922echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029923 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029924## ----------------------------------- ##
29925## Report this to llvmbugs@cs.uiuc.edu ##
29926## ----------------------------------- ##
29927_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029928 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029929 ;;
29930esac
Reid Spencera773bd52006-08-04 18:18:08 +000029931{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029934 echo $ECHO_N "(cached) $ECHO_C" >&6
29935else
29936 eval "$as_ac_Header=\$ac_header_preproc"
29937fi
Reid Spencera773bd52006-08-04 18:18:08 +000029938ac_res=`eval echo '${'$as_ac_Header'}'`
29939 { echo "$as_me:$LINENO: result: $ac_res" >&5
29940echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029941
29942fi
29943if test `eval echo '${'$as_ac_Header'}'` = yes; then
29944 cat >>confdefs.h <<_ACEOF
29945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29946_ACEOF
29947
29948fi
29949
29950done
29951
Reid Spencer0a262ba2005-08-24 10:07:20 +000029952if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029953
29954for ac_header in pthread.h
29955do
29956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029961 echo $ECHO_N "(cached) $ECHO_C" >&6
29962fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029963ac_res=`eval echo '${'$as_ac_Header'}'`
29964 { echo "$as_me:$LINENO: result: $ac_res" >&5
29965echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029966else
29967 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029968{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029970cat >conftest.$ac_ext <<_ACEOF
29971/* confdefs.h. */
29972_ACEOF
29973cat confdefs.h >>conftest.$ac_ext
29974cat >>conftest.$ac_ext <<_ACEOF
29975/* end confdefs.h. */
29976$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029977#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029978_ACEOF
29979rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029980if { (ac_try="$ac_compile"
29981case "(($ac_try" in
29982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29983 *) ac_try_echo=$ac_try;;
29984esac
29985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29986 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029987 ac_status=$?
29988 grep -v '^ *+' conftest.er1 >conftest.err
29989 rm -f conftest.er1
29990 cat conftest.err >&5
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029992 (exit $ac_status); } &&
29993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29994 { (case "(($ac_try" in
29995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29996 *) ac_try_echo=$ac_try;;
29997esac
29998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29999 (eval "$ac_try") 2>&5
30000 ac_status=$?
30001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); }; } &&
30003 { ac_try='test -s conftest.$ac_objext'
30004 { (case "(($ac_try" in
30005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30006 *) ac_try_echo=$ac_try;;
30007esac
30008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30009 (eval "$ac_try") 2>&5
30010 ac_status=$?
30011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030013 ac_header_compiler=yes
30014else
30015 echo "$as_me: failed program was:" >&5
30016sed 's/^/| /' conftest.$ac_ext >&5
30017
Reid Spencera773bd52006-08-04 18:18:08 +000030018 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000030019fi
Reid Spencera773bd52006-08-04 18:18:08 +000030020
30021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30022{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30023echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030024
30025# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030026{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30027echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030028cat >conftest.$ac_ext <<_ACEOF
30029/* confdefs.h. */
30030_ACEOF
30031cat confdefs.h >>conftest.$ac_ext
30032cat >>conftest.$ac_ext <<_ACEOF
30033/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000030034#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030035_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030036if { (ac_try="$ac_cpp conftest.$ac_ext"
30037case "(($ac_try" in
30038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039 *) ac_try_echo=$ac_try;;
30040esac
30041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030043 ac_status=$?
30044 grep -v '^ *+' conftest.er1 >conftest.err
30045 rm -f conftest.er1
30046 cat conftest.err >&5
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030048 (exit $ac_status); } >/dev/null; then
30049 if test -s conftest.err; then
30050 ac_cpp_err=$ac_c_preproc_warn_flag
30051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30052 else
30053 ac_cpp_err=
30054 fi
30055else
30056 ac_cpp_err=yes
30057fi
30058if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030059 ac_header_preproc=yes
30060else
30061 echo "$as_me: failed program was:" >&5
30062sed 's/^/| /' conftest.$ac_ext >&5
30063
30064 ac_header_preproc=no
30065fi
Reid Spencera773bd52006-08-04 18:18:08 +000030066
Reid Spencer0a262ba2005-08-24 10:07:20 +000030067rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030068{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30069echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030070
30071# So? What about this header?
30072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30073 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30075echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30077echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030078 ac_header_preproc=yes
30079 ;;
30080 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30082echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30084echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30086echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30088echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30090echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30092echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030093 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030094## ----------------------------------- ##
30095## Report this to llvmbugs@cs.uiuc.edu ##
30096## ----------------------------------- ##
30097_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030098 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030099 ;;
30100esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030101{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030104 echo $ECHO_N "(cached) $ECHO_C" >&6
30105else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030106 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030107fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030108ac_res=`eval echo '${'$as_ac_Header'}'`
30109 { echo "$as_me:$LINENO: result: $ac_res" >&5
30110echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030111
30112fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030113if test `eval echo '${'$as_ac_Header'}'` = yes; then
30114 cat >>confdefs.h <<_ACEOF
30115#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30116_ACEOF
30117 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030118
30119else
30120 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030121
30122fi
30123
Reid Spencerbe3e4192007-08-17 05:45:26 +000030124done
Reid Spencer1000b732006-12-01 00:37:14 +000030125
30126else
30127 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030128
30129fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030130
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030131if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030132
30133
30134for ac_header in ffi.h ffi/ffi.h
30135do
30136as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30141 echo $ECHO_N "(cached) $ECHO_C" >&6
30142fi
30143ac_res=`eval echo '${'$as_ac_Header'}'`
30144 { echo "$as_me:$LINENO: result: $ac_res" >&5
30145echo "${ECHO_T}$ac_res" >&6; }
30146else
30147 # Is the header compilable?
30148{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30149echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30150cat >conftest.$ac_ext <<_ACEOF
30151/* confdefs.h. */
30152_ACEOF
30153cat confdefs.h >>conftest.$ac_ext
30154cat >>conftest.$ac_ext <<_ACEOF
30155/* end confdefs.h. */
30156$ac_includes_default
30157#include <$ac_header>
30158_ACEOF
30159rm -f conftest.$ac_objext
30160if { (ac_try="$ac_compile"
30161case "(($ac_try" in
30162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163 *) ac_try_echo=$ac_try;;
30164esac
30165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30166 (eval "$ac_compile") 2>conftest.er1
30167 ac_status=$?
30168 grep -v '^ *+' conftest.er1 >conftest.err
30169 rm -f conftest.er1
30170 cat conftest.err >&5
30171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030172 (exit $ac_status); } &&
30173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30174 { (case "(($ac_try" in
30175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176 *) ac_try_echo=$ac_try;;
30177esac
30178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179 (eval "$ac_try") 2>&5
30180 ac_status=$?
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); }; } &&
30183 { ac_try='test -s conftest.$ac_objext'
30184 { (case "(($ac_try" in
30185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30186 *) ac_try_echo=$ac_try;;
30187esac
30188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30189 (eval "$ac_try") 2>&5
30190 ac_status=$?
30191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030193 ac_header_compiler=yes
30194else
30195 echo "$as_me: failed program was:" >&5
30196sed 's/^/| /' conftest.$ac_ext >&5
30197
30198 ac_header_compiler=no
30199fi
30200
30201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30202{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30203echo "${ECHO_T}$ac_header_compiler" >&6; }
30204
30205# Is the header present?
30206{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30207echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30208cat >conftest.$ac_ext <<_ACEOF
30209/* confdefs.h. */
30210_ACEOF
30211cat confdefs.h >>conftest.$ac_ext
30212cat >>conftest.$ac_ext <<_ACEOF
30213/* end confdefs.h. */
30214#include <$ac_header>
30215_ACEOF
30216if { (ac_try="$ac_cpp conftest.$ac_ext"
30217case "(($ac_try" in
30218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30219 *) ac_try_echo=$ac_try;;
30220esac
30221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30223 ac_status=$?
30224 grep -v '^ *+' conftest.er1 >conftest.err
30225 rm -f conftest.er1
30226 cat conftest.err >&5
30227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030228 (exit $ac_status); } >/dev/null; then
30229 if test -s conftest.err; then
30230 ac_cpp_err=$ac_c_preproc_warn_flag
30231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30232 else
30233 ac_cpp_err=
30234 fi
30235else
30236 ac_cpp_err=yes
30237fi
30238if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030239 ac_header_preproc=yes
30240else
30241 echo "$as_me: failed program was:" >&5
30242sed 's/^/| /' conftest.$ac_ext >&5
30243
30244 ac_header_preproc=no
30245fi
30246
30247rm -f conftest.err conftest.$ac_ext
30248{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30249echo "${ECHO_T}$ac_header_preproc" >&6; }
30250
30251# So? What about this header?
30252case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30253 yes:no: )
30254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30255echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30257echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30258 ac_header_preproc=yes
30259 ;;
30260 no:yes:* )
30261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30262echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30264echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30266echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30268echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30270echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30272echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30273 ( cat <<\_ASBOX
30274## ----------------------------------- ##
30275## Report this to llvmbugs@cs.uiuc.edu ##
30276## ----------------------------------- ##
30277_ASBOX
30278 ) | sed "s/^/$as_me: WARNING: /" >&2
30279 ;;
30280esac
30281{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30284 echo $ECHO_N "(cached) $ECHO_C" >&6
30285else
30286 eval "$as_ac_Header=\$ac_header_preproc"
30287fi
30288ac_res=`eval echo '${'$as_ac_Header'}'`
30289 { echo "$as_me:$LINENO: result: $ac_res" >&5
30290echo "${ECHO_T}$ac_res" >&6; }
30291
30292fi
30293if test `eval echo '${'$as_ac_Header'}'` = yes; then
30294 cat >>confdefs.h <<_ACEOF
30295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30296_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030297
30298fi
30299
30300done
30301
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030302fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030303
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030304
Reid Spencer8085cff2005-01-16 02:58:39 +000030305
Reid Spencerb2ed05262006-11-03 18:04:08 +000030306 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30307echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30308if test "${ac_cv_huge_val_sanity+set}" = set; then
30309 echo $ECHO_N "(cached) $ECHO_C" >&6
30310else
30311
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030312 ac_ext=cpp
30313ac_cpp='$CXXCPP $CPPFLAGS'
30314ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30315ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30316ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000030317
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030318 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000030319 if test "$cross_compiling" = yes; then
30320 ac_cv_huge_val_sanity=yes
30321else
30322 cat >conftest.$ac_ext <<_ACEOF
30323/* confdefs.h. */
30324_ACEOF
30325cat confdefs.h >>conftest.$ac_ext
30326cat >>conftest.$ac_ext <<_ACEOF
30327/* end confdefs.h. */
30328#include <math.h>
30329int
30330main ()
30331{
30332double x = HUGE_VAL; return x != x;
30333 ;
30334 return 0;
30335}
30336_ACEOF
30337rm -f conftest$ac_exeext
30338if { (ac_try="$ac_link"
30339case "(($ac_try" in
30340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30341 *) ac_try_echo=$ac_try;;
30342esac
30343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30344 (eval "$ac_link") 2>&5
30345 ac_status=$?
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30348 { (case "(($ac_try" in
30349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350 *) ac_try_echo=$ac_try;;
30351esac
30352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353 (eval "$ac_try") 2>&5
30354 ac_status=$?
30355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356 (exit $ac_status); }; }; then
30357 ac_cv_huge_val_sanity=yes
30358else
30359 echo "$as_me: program exited with status $ac_status" >&5
30360echo "$as_me: failed program was:" >&5
30361sed 's/^/| /' conftest.$ac_ext >&5
30362
30363( exit $ac_status )
30364ac_cv_huge_val_sanity=no
30365fi
30366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30367fi
30368
30369
30370 ac_ext=c
30371ac_cpp='$CPP $CPPFLAGS'
30372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30374ac_compiler_gnu=$ac_cv_c_compiler_gnu
30375
30376
30377fi
30378{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30379echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30380 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30381
30382
Reid Spencera773bd52006-08-04 18:18:08 +000030383{ echo "$as_me:$LINENO: checking for pid_t" >&5
30384echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030385if test "${ac_cv_type_pid_t+set}" = set; then
30386 echo $ECHO_N "(cached) $ECHO_C" >&6
30387else
30388 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030389/* confdefs.h. */
30390_ACEOF
30391cat confdefs.h >>conftest.$ac_ext
30392cat >>conftest.$ac_ext <<_ACEOF
30393/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030394$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030395typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030396int
30397main ()
30398{
Reid Spencera773bd52006-08-04 18:18:08 +000030399if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030400 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030401if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030402 return 0;
30403 ;
30404 return 0;
30405}
30406_ACEOF
30407rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030408if { (ac_try="$ac_compile"
30409case "(($ac_try" in
30410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30411 *) ac_try_echo=$ac_try;;
30412esac
30413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30414 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030415 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030416 grep -v '^ *+' conftest.er1 >conftest.err
30417 rm -f conftest.er1
30418 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030420 (exit $ac_status); } &&
30421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30422 { (case "(($ac_try" in
30423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30424 *) ac_try_echo=$ac_try;;
30425esac
30426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30427 (eval "$ac_try") 2>&5
30428 ac_status=$?
30429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430 (exit $ac_status); }; } &&
30431 { ac_try='test -s conftest.$ac_objext'
30432 { (case "(($ac_try" in
30433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30434 *) ac_try_echo=$ac_try;;
30435esac
30436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30437 (eval "$ac_try") 2>&5
30438 ac_status=$?
30439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030441 ac_cv_type_pid_t=yes
30442else
30443 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030444sed 's/^/| /' conftest.$ac_ext >&5
30445
Reid Spencera773bd52006-08-04 18:18:08 +000030446 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030447fi
Reid Spencera773bd52006-08-04 18:18:08 +000030448
30449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030450fi
Reid Spencera773bd52006-08-04 18:18:08 +000030451{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30452echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030453if test $ac_cv_type_pid_t = yes; then
30454 :
30455else
30456
30457cat >>confdefs.h <<_ACEOF
30458#define pid_t int
30459_ACEOF
30460
30461fi
30462
Reid Spencera773bd52006-08-04 18:18:08 +000030463{ echo "$as_me:$LINENO: checking for size_t" >&5
30464echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030465if test "${ac_cv_type_size_t+set}" = set; then
30466 echo $ECHO_N "(cached) $ECHO_C" >&6
30467else
30468 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030469/* confdefs.h. */
30470_ACEOF
30471cat confdefs.h >>conftest.$ac_ext
30472cat >>conftest.$ac_ext <<_ACEOF
30473/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030474$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030475typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030476int
30477main ()
30478{
Reid Spencera773bd52006-08-04 18:18:08 +000030479if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030480 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030481if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030482 return 0;
30483 ;
30484 return 0;
30485}
30486_ACEOF
30487rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030488if { (ac_try="$ac_compile"
30489case "(($ac_try" in
30490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491 *) ac_try_echo=$ac_try;;
30492esac
30493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030495 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030496 grep -v '^ *+' conftest.er1 >conftest.err
30497 rm -f conftest.er1
30498 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030500 (exit $ac_status); } &&
30501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30502 { (case "(($ac_try" in
30503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30504 *) ac_try_echo=$ac_try;;
30505esac
30506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30507 (eval "$ac_try") 2>&5
30508 ac_status=$?
30509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510 (exit $ac_status); }; } &&
30511 { ac_try='test -s conftest.$ac_objext'
30512 { (case "(($ac_try" in
30513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30514 *) ac_try_echo=$ac_try;;
30515esac
30516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30517 (eval "$ac_try") 2>&5
30518 ac_status=$?
30519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30520 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030521 ac_cv_type_size_t=yes
30522else
30523 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030524sed 's/^/| /' conftest.$ac_ext >&5
30525
Reid Spencera773bd52006-08-04 18:18:08 +000030526 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030527fi
Reid Spencera773bd52006-08-04 18:18:08 +000030528
30529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030530fi
Reid Spencera773bd52006-08-04 18:18:08 +000030531{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30532echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030533if test $ac_cv_type_size_t = yes; then
30534 :
30535else
30536
30537cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030538#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030539_ACEOF
30540
30541fi
30542
Reid Spencera773bd52006-08-04 18:18:08 +000030543{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30544echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030545if test "${ac_cv_type_signal+set}" = set; then
30546 echo $ECHO_N "(cached) $ECHO_C" >&6
30547else
30548 cat >conftest.$ac_ext <<_ACEOF
30549/* confdefs.h. */
30550_ACEOF
30551cat confdefs.h >>conftest.$ac_ext
30552cat >>conftest.$ac_ext <<_ACEOF
30553/* end confdefs.h. */
30554#include <sys/types.h>
30555#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030556
30557int
30558main ()
30559{
Reid Spencera773bd52006-08-04 18:18:08 +000030560return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030561 ;
30562 return 0;
30563}
30564_ACEOF
30565rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030566if { (ac_try="$ac_compile"
30567case "(($ac_try" in
30568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30569 *) ac_try_echo=$ac_try;;
30570esac
30571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30572 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030573 ac_status=$?
30574 grep -v '^ *+' conftest.er1 >conftest.err
30575 rm -f conftest.er1
30576 cat conftest.err >&5
30577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030578 (exit $ac_status); } &&
30579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30580 { (case "(($ac_try" in
30581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30582 *) ac_try_echo=$ac_try;;
30583esac
30584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30585 (eval "$ac_try") 2>&5
30586 ac_status=$?
30587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30588 (exit $ac_status); }; } &&
30589 { ac_try='test -s conftest.$ac_objext'
30590 { (case "(($ac_try" in
30591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30592 *) ac_try_echo=$ac_try;;
30593esac
30594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30595 (eval "$ac_try") 2>&5
30596 ac_status=$?
30597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30598 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030599 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030600else
30601 echo "$as_me: failed program was:" >&5
30602sed 's/^/| /' conftest.$ac_ext >&5
30603
Reid Spencera773bd52006-08-04 18:18:08 +000030604 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030605fi
Reid Spencera773bd52006-08-04 18:18:08 +000030606
30607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030608fi
Reid Spencera773bd52006-08-04 18:18:08 +000030609{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30610echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030611
30612cat >>confdefs.h <<_ACEOF
30613#define RETSIGTYPE $ac_cv_type_signal
30614_ACEOF
30615
30616
Reid Spencera773bd52006-08-04 18:18:08 +000030617{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30618echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030619if test "${ac_cv_struct_tm+set}" = set; then
30620 echo $ECHO_N "(cached) $ECHO_C" >&6
30621else
30622 cat >conftest.$ac_ext <<_ACEOF
30623/* confdefs.h. */
30624_ACEOF
30625cat confdefs.h >>conftest.$ac_ext
30626cat >>conftest.$ac_ext <<_ACEOF
30627/* end confdefs.h. */
30628#include <sys/types.h>
30629#include <time.h>
30630
30631int
30632main ()
30633{
Bill Wendlingebcceee2009-04-18 11:20:33 +000030634struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030635 ;
30636 return 0;
30637}
30638_ACEOF
30639rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030640if { (ac_try="$ac_compile"
30641case "(($ac_try" in
30642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30643 *) ac_try_echo=$ac_try;;
30644esac
30645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30646 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030647 ac_status=$?
30648 grep -v '^ *+' conftest.er1 >conftest.err
30649 rm -f conftest.er1
30650 cat conftest.err >&5
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030652 (exit $ac_status); } &&
30653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30654 { (case "(($ac_try" in
30655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30656 *) ac_try_echo=$ac_try;;
30657esac
30658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30659 (eval "$ac_try") 2>&5
30660 ac_status=$?
30661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662 (exit $ac_status); }; } &&
30663 { ac_try='test -s conftest.$ac_objext'
30664 { (case "(($ac_try" in
30665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30666 *) ac_try_echo=$ac_try;;
30667esac
30668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30669 (eval "$ac_try") 2>&5
30670 ac_status=$?
30671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030673 ac_cv_struct_tm=time.h
30674else
30675 echo "$as_me: failed program was:" >&5
30676sed 's/^/| /' conftest.$ac_ext >&5
30677
Reid Spencera773bd52006-08-04 18:18:08 +000030678 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030679fi
Reid Spencera773bd52006-08-04 18:18:08 +000030680
30681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030682fi
Reid Spencera773bd52006-08-04 18:18:08 +000030683{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30684echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030685if test $ac_cv_struct_tm = sys/time.h; then
30686
30687cat >>confdefs.h <<\_ACEOF
30688#define TM_IN_SYS_TIME 1
30689_ACEOF
30690
30691fi
30692
Reid Spencera773bd52006-08-04 18:18:08 +000030693{ echo "$as_me:$LINENO: checking for int64_t" >&5
30694echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030695if test "${ac_cv_type_int64_t+set}" = set; then
30696 echo $ECHO_N "(cached) $ECHO_C" >&6
30697else
30698 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030699/* confdefs.h. */
30700_ACEOF
30701cat confdefs.h >>conftest.$ac_ext
30702cat >>conftest.$ac_ext <<_ACEOF
30703/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030704$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030705typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030706int
30707main ()
30708{
Reid Spencera773bd52006-08-04 18:18:08 +000030709if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030710 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030711if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030712 return 0;
30713 ;
30714 return 0;
30715}
30716_ACEOF
30717rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030718if { (ac_try="$ac_compile"
30719case "(($ac_try" in
30720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30721 *) ac_try_echo=$ac_try;;
30722esac
30723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30724 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030725 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030726 grep -v '^ *+' conftest.er1 >conftest.err
30727 rm -f conftest.er1
30728 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030730 (exit $ac_status); } &&
30731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30732 { (case "(($ac_try" in
30733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30734 *) ac_try_echo=$ac_try;;
30735esac
30736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30737 (eval "$ac_try") 2>&5
30738 ac_status=$?
30739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740 (exit $ac_status); }; } &&
30741 { ac_try='test -s conftest.$ac_objext'
30742 { (case "(($ac_try" in
30743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30744 *) ac_try_echo=$ac_try;;
30745esac
30746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30747 (eval "$ac_try") 2>&5
30748 ac_status=$?
30749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030751 ac_cv_type_int64_t=yes
30752else
30753 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030754sed 's/^/| /' conftest.$ac_ext >&5
30755
Reid Spencera773bd52006-08-04 18:18:08 +000030756 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030757fi
Reid Spencera773bd52006-08-04 18:18:08 +000030758
30759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030760fi
Reid Spencera773bd52006-08-04 18:18:08 +000030761{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30762echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030763if test $ac_cv_type_int64_t = yes; then
30764
30765cat >>confdefs.h <<_ACEOF
30766#define HAVE_INT64_T 1
30767_ACEOF
30768
30769
30770else
30771 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30772echo "$as_me: error: Type int64_t required but not found" >&2;}
30773 { (exit 1); exit 1; }; }
30774fi
30775
Reid Spencera773bd52006-08-04 18:18:08 +000030776{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30777echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030778if test "${ac_cv_type_uint64_t+set}" = set; then
30779 echo $ECHO_N "(cached) $ECHO_C" >&6
30780else
30781 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030782/* confdefs.h. */
30783_ACEOF
30784cat confdefs.h >>conftest.$ac_ext
30785cat >>conftest.$ac_ext <<_ACEOF
30786/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030787$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030788typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030789int
30790main ()
30791{
Reid Spencera773bd52006-08-04 18:18:08 +000030792if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030793 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030794if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030795 return 0;
30796 ;
30797 return 0;
30798}
30799_ACEOF
30800rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030801if { (ac_try="$ac_compile"
30802case "(($ac_try" in
30803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30804 *) ac_try_echo=$ac_try;;
30805esac
30806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30807 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030808 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030809 grep -v '^ *+' conftest.er1 >conftest.err
30810 rm -f conftest.er1
30811 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030813 (exit $ac_status); } &&
30814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30815 { (case "(($ac_try" in
30816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30817 *) ac_try_echo=$ac_try;;
30818esac
30819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30820 (eval "$ac_try") 2>&5
30821 ac_status=$?
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); }; } &&
30824 { ac_try='test -s conftest.$ac_objext'
30825 { (case "(($ac_try" in
30826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30827 *) ac_try_echo=$ac_try;;
30828esac
30829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30830 (eval "$ac_try") 2>&5
30831 ac_status=$?
30832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030834 ac_cv_type_uint64_t=yes
30835else
30836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030837sed 's/^/| /' conftest.$ac_ext >&5
30838
Reid Spencera773bd52006-08-04 18:18:08 +000030839 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030840fi
Reid Spencera773bd52006-08-04 18:18:08 +000030841
30842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030843fi
Reid Spencera773bd52006-08-04 18:18:08 +000030844{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30845echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030846if test $ac_cv_type_uint64_t = yes; then
30847
30848cat >>confdefs.h <<_ACEOF
30849#define HAVE_UINT64_T 1
30850_ACEOF
30851
30852
30853else
Reid Spencera773bd52006-08-04 18:18:08 +000030854 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30855echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030856if test "${ac_cv_type_u_int64_t+set}" = set; then
30857 echo $ECHO_N "(cached) $ECHO_C" >&6
30858else
30859 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030860/* confdefs.h. */
30861_ACEOF
30862cat confdefs.h >>conftest.$ac_ext
30863cat >>conftest.$ac_ext <<_ACEOF
30864/* end confdefs.h. */
30865$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030866typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030867int
30868main ()
30869{
Reid Spencera773bd52006-08-04 18:18:08 +000030870if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030871 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030872if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030873 return 0;
30874 ;
30875 return 0;
30876}
30877_ACEOF
30878rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030879if { (ac_try="$ac_compile"
30880case "(($ac_try" in
30881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30882 *) ac_try_echo=$ac_try;;
30883esac
30884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30885 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030886 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030887 grep -v '^ *+' conftest.er1 >conftest.err
30888 rm -f conftest.er1
30889 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030891 (exit $ac_status); } &&
30892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30893 { (case "(($ac_try" in
30894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30895 *) ac_try_echo=$ac_try;;
30896esac
30897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30898 (eval "$ac_try") 2>&5
30899 ac_status=$?
30900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901 (exit $ac_status); }; } &&
30902 { ac_try='test -s conftest.$ac_objext'
30903 { (case "(($ac_try" in
30904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30905 *) ac_try_echo=$ac_try;;
30906esac
30907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30908 (eval "$ac_try") 2>&5
30909 ac_status=$?
30910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030912 ac_cv_type_u_int64_t=yes
30913else
30914 echo "$as_me: failed program was:" >&5
30915sed 's/^/| /' conftest.$ac_ext >&5
30916
Reid Spencera773bd52006-08-04 18:18:08 +000030917 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030918fi
Reid Spencera773bd52006-08-04 18:18:08 +000030919
30920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030921fi
Reid Spencera773bd52006-08-04 18:18:08 +000030922{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30923echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030924if test $ac_cv_type_u_int64_t = yes; then
30925
30926cat >>confdefs.h <<_ACEOF
30927#define HAVE_U_INT64_T 1
30928_ACEOF
30929
30930
Misha Brukmanceca9042004-09-02 23:02:30 +000030931else
30932 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30933echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30934 { (exit 1); exit 1; }; }
30935fi
30936
John Criswell679ff312004-09-02 18:44:44 +000030937fi
30938
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030939
30940
30941
30942
30943
30944
30945
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030946
30947
Reid Spencerdf3be822006-01-23 08:15:53 +000030948for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030949do
30950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030951{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30953if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030954 echo $ECHO_N "(cached) $ECHO_C" >&6
30955else
30956 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030957/* confdefs.h. */
30958_ACEOF
30959cat confdefs.h >>conftest.$ac_ext
30960cat >>conftest.$ac_ext <<_ACEOF
30961/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030962/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30964#define $ac_func innocuous_$ac_func
30965
30966/* System header to define __stub macros and hopefully few prototypes,
30967 which can conflict with char $ac_func (); below.
30968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30969 <limits.h> exists even on freestanding compilers. */
30970
30971#ifdef __STDC__
30972# include <limits.h>
30973#else
30974# include <assert.h>
30975#endif
30976
30977#undef $ac_func
30978
Reid Spencera773bd52006-08-04 18:18:08 +000030979/* Override any GCC internal prototype to avoid an error.
30980 Use char because int might match the return type of a GCC
30981 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030982#ifdef __cplusplus
30983extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030984#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030985char $ac_func ();
30986/* The GNU C library defines this for functions which it implements
30987 to always fail with ENOSYS. Some functions are actually named
30988 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030989#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030990choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030991#endif
John Criswell7a73b802003-06-30 21:59:07 +000030992
John Criswell7a73b802003-06-30 21:59:07 +000030993int
30994main ()
30995{
Reid Spencera773bd52006-08-04 18:18:08 +000030996return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030997 ;
30998 return 0;
30999}
31000_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031001rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031002if { (ac_try="$ac_link"
31003case "(($ac_try" in
31004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31005 *) ac_try_echo=$ac_try;;
31006esac
31007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31008 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031009 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031010 grep -v '^ *+' conftest.er1 >conftest.err
31011 rm -f conftest.er1
31012 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031014 (exit $ac_status); } &&
31015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31016 { (case "(($ac_try" in
31017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31018 *) ac_try_echo=$ac_try;;
31019esac
31020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31021 (eval "$ac_try") 2>&5
31022 ac_status=$?
31023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31024 (exit $ac_status); }; } &&
31025 { ac_try='test -s conftest$ac_exeext'
31026 { (case "(($ac_try" in
31027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31028 *) ac_try_echo=$ac_try;;
31029esac
31030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31031 (eval "$ac_try") 2>&5
31032 ac_status=$?
31033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031035 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031036else
31037 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031038sed 's/^/| /' conftest.$ac_ext >&5
31039
Reid Spencera773bd52006-08-04 18:18:08 +000031040 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031041fi
Reid Spencera773bd52006-08-04 18:18:08 +000031042
Bill Wendlingebcceee2009-04-18 11:20:33 +000031043rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031044 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031045fi
Reid Spencera773bd52006-08-04 18:18:08 +000031046ac_res=`eval echo '${'$as_ac_var'}'`
31047 { echo "$as_me:$LINENO: result: $ac_res" >&5
31048echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031049if test `eval echo '${'$as_ac_var'}'` = yes; then
31050 cat >>confdefs.h <<_ACEOF
31051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031052_ACEOF
31053
31054fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031055done
John Criswell7a73b802003-06-30 21:59:07 +000031056
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031057
31058
31059
Reid Spencer6af3d262004-12-15 04:01:48 +000031060
Reid Spencer96cf5872007-07-13 10:05:30 +000031061for ac_func in powf fmodf strtof round
31062do
31063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31064{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31066if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31067 echo $ECHO_N "(cached) $ECHO_C" >&6
31068else
31069 cat >conftest.$ac_ext <<_ACEOF
31070/* confdefs.h. */
31071_ACEOF
31072cat confdefs.h >>conftest.$ac_ext
31073cat >>conftest.$ac_ext <<_ACEOF
31074/* end confdefs.h. */
31075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31077#define $ac_func innocuous_$ac_func
31078
31079/* System header to define __stub macros and hopefully few prototypes,
31080 which can conflict with char $ac_func (); below.
31081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31082 <limits.h> exists even on freestanding compilers. */
31083
31084#ifdef __STDC__
31085# include <limits.h>
31086#else
31087# include <assert.h>
31088#endif
31089
31090#undef $ac_func
31091
31092/* Override any GCC internal prototype to avoid an error.
31093 Use char because int might match the return type of a GCC
31094 builtin and then its argument prototype would still apply. */
31095#ifdef __cplusplus
31096extern "C"
31097#endif
31098char $ac_func ();
31099/* The GNU C library defines this for functions which it implements
31100 to always fail with ENOSYS. Some functions are actually named
31101 something starting with __ and the normal name is an alias. */
31102#if defined __stub_$ac_func || defined __stub___$ac_func
31103choke me
31104#endif
31105
31106int
31107main ()
31108{
31109return $ac_func ();
31110 ;
31111 return 0;
31112}
31113_ACEOF
31114rm -f conftest.$ac_objext conftest$ac_exeext
31115if { (ac_try="$ac_link"
31116case "(($ac_try" in
31117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31118 *) ac_try_echo=$ac_try;;
31119esac
31120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31121 (eval "$ac_link") 2>conftest.er1
31122 ac_status=$?
31123 grep -v '^ *+' conftest.er1 >conftest.err
31124 rm -f conftest.er1
31125 cat conftest.err >&5
31126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031127 (exit $ac_status); } &&
31128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31129 { (case "(($ac_try" in
31130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31131 *) ac_try_echo=$ac_try;;
31132esac
31133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31134 (eval "$ac_try") 2>&5
31135 ac_status=$?
31136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137 (exit $ac_status); }; } &&
31138 { ac_try='test -s conftest$ac_exeext'
31139 { (case "(($ac_try" in
31140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31141 *) ac_try_echo=$ac_try;;
31142esac
31143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31144 (eval "$ac_try") 2>&5
31145 ac_status=$?
31146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031148 eval "$as_ac_var=yes"
31149else
31150 echo "$as_me: failed program was:" >&5
31151sed 's/^/| /' conftest.$ac_ext >&5
31152
31153 eval "$as_ac_var=no"
31154fi
31155
Bill Wendlingebcceee2009-04-18 11:20:33 +000031156rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031157 conftest$ac_exeext conftest.$ac_ext
31158fi
31159ac_res=`eval echo '${'$as_ac_var'}'`
31160 { echo "$as_me:$LINENO: result: $ac_res" >&5
31161echo "${ECHO_T}$ac_res" >&6; }
31162if test `eval echo '${'$as_ac_var'}'` = yes; then
31163 cat >>confdefs.h <<_ACEOF
31164#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31165_ACEOF
31166
31167fi
31168done
31169
31170
31171
31172
31173
Reid Spencer6af3d262004-12-15 04:01:48 +000031174
Reid Spencerb90645c2007-02-16 19:17:20 +000031175for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31176do
31177as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31178{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31179echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31180if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31181 echo $ECHO_N "(cached) $ECHO_C" >&6
31182else
31183 cat >conftest.$ac_ext <<_ACEOF
31184/* confdefs.h. */
31185_ACEOF
31186cat confdefs.h >>conftest.$ac_ext
31187cat >>conftest.$ac_ext <<_ACEOF
31188/* end confdefs.h. */
31189/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31191#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031192
Reid Spencerb90645c2007-02-16 19:17:20 +000031193/* System header to define __stub macros and hopefully few prototypes,
31194 which can conflict with char $ac_func (); below.
31195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31196 <limits.h> exists even on freestanding compilers. */
31197
31198#ifdef __STDC__
31199# include <limits.h>
31200#else
31201# include <assert.h>
31202#endif
31203
31204#undef $ac_func
31205
31206/* Override any GCC internal prototype to avoid an error.
31207 Use char because int might match the return type of a GCC
31208 builtin and then its argument prototype would still apply. */
31209#ifdef __cplusplus
31210extern "C"
31211#endif
31212char $ac_func ();
31213/* The GNU C library defines this for functions which it implements
31214 to always fail with ENOSYS. Some functions are actually named
31215 something starting with __ and the normal name is an alias. */
31216#if defined __stub_$ac_func || defined __stub___$ac_func
31217choke me
31218#endif
31219
31220int
31221main ()
31222{
31223return $ac_func ();
31224 ;
31225 return 0;
31226}
31227_ACEOF
31228rm -f conftest.$ac_objext conftest$ac_exeext
31229if { (ac_try="$ac_link"
31230case "(($ac_try" in
31231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31232 *) ac_try_echo=$ac_try;;
31233esac
31234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31235 (eval "$ac_link") 2>conftest.er1
31236 ac_status=$?
31237 grep -v '^ *+' conftest.er1 >conftest.err
31238 rm -f conftest.er1
31239 cat conftest.err >&5
31240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031241 (exit $ac_status); } &&
31242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31243 { (case "(($ac_try" in
31244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31245 *) ac_try_echo=$ac_try;;
31246esac
31247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31248 (eval "$ac_try") 2>&5
31249 ac_status=$?
31250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31251 (exit $ac_status); }; } &&
31252 { ac_try='test -s conftest$ac_exeext'
31253 { (case "(($ac_try" in
31254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31255 *) ac_try_echo=$ac_try;;
31256esac
31257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31258 (eval "$ac_try") 2>&5
31259 ac_status=$?
31260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31261 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000031262 eval "$as_ac_var=yes"
31263else
31264 echo "$as_me: failed program was:" >&5
31265sed 's/^/| /' conftest.$ac_ext >&5
31266
31267 eval "$as_ac_var=no"
31268fi
31269
Bill Wendlingebcceee2009-04-18 11:20:33 +000031270rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000031271 conftest$ac_exeext conftest.$ac_ext
31272fi
31273ac_res=`eval echo '${'$as_ac_var'}'`
31274 { echo "$as_me:$LINENO: result: $ac_res" >&5
31275echo "${ECHO_T}$ac_res" >&6; }
31276if test `eval echo '${'$as_ac_var'}'` = yes; then
31277 cat >>confdefs.h <<_ACEOF
31278#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31279_ACEOF
31280
31281fi
31282done
31283
31284
31285
31286
31287for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000031288do
31289as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031290{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31291echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31292if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031293 echo $ECHO_N "(cached) $ECHO_C" >&6
31294else
31295 cat >conftest.$ac_ext <<_ACEOF
31296/* confdefs.h. */
31297_ACEOF
31298cat confdefs.h >>conftest.$ac_ext
31299cat >>conftest.$ac_ext <<_ACEOF
31300/* end confdefs.h. */
31301/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31303#define $ac_func innocuous_$ac_func
31304
31305/* System header to define __stub macros and hopefully few prototypes,
31306 which can conflict with char $ac_func (); below.
31307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31308 <limits.h> exists even on freestanding compilers. */
31309
31310#ifdef __STDC__
31311# include <limits.h>
31312#else
31313# include <assert.h>
31314#endif
31315
31316#undef $ac_func
31317
Reid Spencera773bd52006-08-04 18:18:08 +000031318/* Override any GCC internal prototype to avoid an error.
31319 Use char because int might match the return type of a GCC
31320 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000031321#ifdef __cplusplus
31322extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000031323#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000031324char $ac_func ();
31325/* The GNU C library defines this for functions which it implements
31326 to always fail with ENOSYS. Some functions are actually named
31327 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031328#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000031329choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000031330#endif
31331
31332int
31333main ()
31334{
Reid Spencera773bd52006-08-04 18:18:08 +000031335return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000031336 ;
31337 return 0;
31338}
31339_ACEOF
31340rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031341if { (ac_try="$ac_link"
31342case "(($ac_try" in
31343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344 *) ac_try_echo=$ac_try;;
31345esac
31346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31347 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000031348 ac_status=$?
31349 grep -v '^ *+' conftest.er1 >conftest.err
31350 rm -f conftest.er1
31351 cat conftest.err >&5
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031353 (exit $ac_status); } &&
31354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31355 { (case "(($ac_try" in
31356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31357 *) ac_try_echo=$ac_try;;
31358esac
31359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31360 (eval "$ac_try") 2>&5
31361 ac_status=$?
31362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363 (exit $ac_status); }; } &&
31364 { ac_try='test -s conftest$ac_exeext'
31365 { (case "(($ac_try" in
31366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31367 *) ac_try_echo=$ac_try;;
31368esac
31369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31370 (eval "$ac_try") 2>&5
31371 ac_status=$?
31372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031374 eval "$as_ac_var=yes"
31375else
31376 echo "$as_me: failed program was:" >&5
31377sed 's/^/| /' conftest.$ac_ext >&5
31378
Reid Spencera773bd52006-08-04 18:18:08 +000031379 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000031380fi
Reid Spencera773bd52006-08-04 18:18:08 +000031381
Bill Wendlingebcceee2009-04-18 11:20:33 +000031382rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000031383 conftest$ac_exeext conftest.$ac_ext
31384fi
Reid Spencera773bd52006-08-04 18:18:08 +000031385ac_res=`eval echo '${'$as_ac_var'}'`
31386 { echo "$as_me:$LINENO: result: $ac_res" >&5
31387echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000031388if test `eval echo '${'$as_ac_var'}'` = yes; then
31389 cat >>confdefs.h <<_ACEOF
31390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31391_ACEOF
31392
31393fi
31394done
31395
31396
31397
31398
31399
31400
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000031401for ac_func in mktemp realpath sbrk setrlimit strdup
31402do
31403as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31404{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31405echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31406if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31407 echo $ECHO_N "(cached) $ECHO_C" >&6
31408else
31409 cat >conftest.$ac_ext <<_ACEOF
31410/* confdefs.h. */
31411_ACEOF
31412cat confdefs.h >>conftest.$ac_ext
31413cat >>conftest.$ac_ext <<_ACEOF
31414/* end confdefs.h. */
31415/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31417#define $ac_func innocuous_$ac_func
31418
31419/* System header to define __stub macros and hopefully few prototypes,
31420 which can conflict with char $ac_func (); below.
31421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31422 <limits.h> exists even on freestanding compilers. */
31423
31424#ifdef __STDC__
31425# include <limits.h>
31426#else
31427# include <assert.h>
31428#endif
31429
31430#undef $ac_func
31431
31432/* Override any GCC internal prototype to avoid an error.
31433 Use char because int might match the return type of a GCC
31434 builtin and then its argument prototype would still apply. */
31435#ifdef __cplusplus
31436extern "C"
31437#endif
31438char $ac_func ();
31439/* The GNU C library defines this for functions which it implements
31440 to always fail with ENOSYS. Some functions are actually named
31441 something starting with __ and the normal name is an alias. */
31442#if defined __stub_$ac_func || defined __stub___$ac_func
31443choke me
31444#endif
31445
31446int
31447main ()
31448{
31449return $ac_func ();
31450 ;
31451 return 0;
31452}
31453_ACEOF
31454rm -f conftest.$ac_objext conftest$ac_exeext
31455if { (ac_try="$ac_link"
31456case "(($ac_try" in
31457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31458 *) ac_try_echo=$ac_try;;
31459esac
31460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31461 (eval "$ac_link") 2>conftest.er1
31462 ac_status=$?
31463 grep -v '^ *+' conftest.er1 >conftest.err
31464 rm -f conftest.er1
31465 cat conftest.err >&5
31466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467 (exit $ac_status); } &&
31468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31469 { (case "(($ac_try" in
31470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31471 *) ac_try_echo=$ac_try;;
31472esac
31473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31474 (eval "$ac_try") 2>&5
31475 ac_status=$?
31476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477 (exit $ac_status); }; } &&
31478 { ac_try='test -s conftest$ac_exeext'
31479 { (case "(($ac_try" in
31480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31481 *) ac_try_echo=$ac_try;;
31482esac
31483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31484 (eval "$ac_try") 2>&5
31485 ac_status=$?
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); }; }; then
31488 eval "$as_ac_var=yes"
31489else
31490 echo "$as_me: failed program was:" >&5
31491sed 's/^/| /' conftest.$ac_ext >&5
31492
31493 eval "$as_ac_var=no"
31494fi
31495
31496rm -f core conftest.err conftest.$ac_objext \
31497 conftest$ac_exeext conftest.$ac_ext
31498fi
31499ac_res=`eval echo '${'$as_ac_var'}'`
31500 { echo "$as_me:$LINENO: result: $ac_res" >&5
31501echo "${ECHO_T}$ac_res" >&6; }
31502if test `eval echo '${'$as_ac_var'}'` = yes; then
31503 cat >>confdefs.h <<_ACEOF
31504#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31505_ACEOF
31506
31507fi
31508done
Reid Spencerdf3be822006-01-23 08:15:53 +000031509
31510
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000031511
31512
31513for ac_func in strerror strerror_r strerror_s
Reid Spencer7931a782004-12-27 06:15:02 +000031514do
31515as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031516{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31517echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31518if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031519 echo $ECHO_N "(cached) $ECHO_C" >&6
31520else
31521 cat >conftest.$ac_ext <<_ACEOF
31522/* confdefs.h. */
31523_ACEOF
31524cat confdefs.h >>conftest.$ac_ext
31525cat >>conftest.$ac_ext <<_ACEOF
31526/* end confdefs.h. */
31527/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31529#define $ac_func innocuous_$ac_func
31530
31531/* System header to define __stub macros and hopefully few prototypes,
31532 which can conflict with char $ac_func (); below.
31533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31534 <limits.h> exists even on freestanding compilers. */
31535
31536#ifdef __STDC__
31537# include <limits.h>
31538#else
31539# include <assert.h>
31540#endif
31541
31542#undef $ac_func
31543
Reid Spencera773bd52006-08-04 18:18:08 +000031544/* Override any GCC internal prototype to avoid an error.
31545 Use char because int might match the return type of a GCC
31546 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000031547#ifdef __cplusplus
31548extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000031549#endif
Reid Spencer7931a782004-12-27 06:15:02 +000031550char $ac_func ();
31551/* The GNU C library defines this for functions which it implements
31552 to always fail with ENOSYS. Some functions are actually named
31553 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031554#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000031555choke me
Reid Spencer7931a782004-12-27 06:15:02 +000031556#endif
31557
31558int
31559main ()
31560{
Reid Spencera773bd52006-08-04 18:18:08 +000031561return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000031562 ;
31563 return 0;
31564}
31565_ACEOF
31566rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031567if { (ac_try="$ac_link"
31568case "(($ac_try" in
31569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31570 *) ac_try_echo=$ac_try;;
31571esac
31572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31573 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000031574 ac_status=$?
31575 grep -v '^ *+' conftest.er1 >conftest.err
31576 rm -f conftest.er1
31577 cat conftest.err >&5
31578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031579 (exit $ac_status); } &&
31580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31581 { (case "(($ac_try" in
31582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583 *) ac_try_echo=$ac_try;;
31584esac
31585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586 (eval "$ac_try") 2>&5
31587 ac_status=$?
31588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); }; } &&
31590 { ac_try='test -s conftest$ac_exeext'
31591 { (case "(($ac_try" in
31592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31593 *) ac_try_echo=$ac_try;;
31594esac
31595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31596 (eval "$ac_try") 2>&5
31597 ac_status=$?
31598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031600 eval "$as_ac_var=yes"
31601else
31602 echo "$as_me: failed program was:" >&5
31603sed 's/^/| /' conftest.$ac_ext >&5
31604
Reid Spencera773bd52006-08-04 18:18:08 +000031605 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031606fi
Reid Spencera773bd52006-08-04 18:18:08 +000031607
Bill Wendlingebcceee2009-04-18 11:20:33 +000031608rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031609 conftest$ac_exeext conftest.$ac_ext
31610fi
Reid Spencera773bd52006-08-04 18:18:08 +000031611ac_res=`eval echo '${'$as_ac_var'}'`
31612 { echo "$as_me:$LINENO: result: $ac_res" >&5
31613echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031614if test `eval echo '${'$as_ac_var'}'` = yes; then
31615 cat >>confdefs.h <<_ACEOF
31616#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31617_ACEOF
31618
31619fi
31620done
31621
31622
Reid Spencerba46ca32004-12-31 05:49:15 +000031623
31624
Chris Lattner0b142592005-11-14 06:57:34 +000031625
Chris Lattner511f11d2005-11-14 07:25:50 +000031626for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031627do
31628as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031629{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31630echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31631if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031632 echo $ECHO_N "(cached) $ECHO_C" >&6
31633else
31634 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031635/* confdefs.h. */
31636_ACEOF
31637cat confdefs.h >>conftest.$ac_ext
31638cat >>conftest.$ac_ext <<_ACEOF
31639/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031640/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31642#define $ac_func innocuous_$ac_func
31643
31644/* System header to define __stub macros and hopefully few prototypes,
31645 which can conflict with char $ac_func (); below.
31646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31647 <limits.h> exists even on freestanding compilers. */
31648
31649#ifdef __STDC__
31650# include <limits.h>
31651#else
31652# include <assert.h>
31653#endif
31654
31655#undef $ac_func
31656
Reid Spencera773bd52006-08-04 18:18:08 +000031657/* Override any GCC internal prototype to avoid an error.
31658 Use char because int might match the return type of a GCC
31659 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031660#ifdef __cplusplus
31661extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031662#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031663char $ac_func ();
31664/* The GNU C library defines this for functions which it implements
31665 to always fail with ENOSYS. Some functions are actually named
31666 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031667#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031668choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031669#endif
John Criswell7a73b802003-06-30 21:59:07 +000031670
John Criswell7a73b802003-06-30 21:59:07 +000031671int
31672main ()
31673{
Reid Spencera773bd52006-08-04 18:18:08 +000031674return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031675 ;
31676 return 0;
31677}
31678_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031679rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031680if { (ac_try="$ac_link"
31681case "(($ac_try" in
31682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31683 *) ac_try_echo=$ac_try;;
31684esac
31685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31686 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031687 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031688 grep -v '^ *+' conftest.er1 >conftest.err
31689 rm -f conftest.er1
31690 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031692 (exit $ac_status); } &&
31693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31694 { (case "(($ac_try" in
31695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31696 *) ac_try_echo=$ac_try;;
31697esac
31698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31699 (eval "$ac_try") 2>&5
31700 ac_status=$?
31701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702 (exit $ac_status); }; } &&
31703 { ac_try='test -s conftest$ac_exeext'
31704 { (case "(($ac_try" in
31705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31706 *) ac_try_echo=$ac_try;;
31707esac
31708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31709 (eval "$ac_try") 2>&5
31710 ac_status=$?
31711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031713 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031714else
31715 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031716sed 's/^/| /' conftest.$ac_ext >&5
31717
Reid Spencera773bd52006-08-04 18:18:08 +000031718 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031719fi
Reid Spencera773bd52006-08-04 18:18:08 +000031720
Bill Wendlingebcceee2009-04-18 11:20:33 +000031721rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031722 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031723fi
Reid Spencera773bd52006-08-04 18:18:08 +000031724ac_res=`eval echo '${'$as_ac_var'}'`
31725 { echo "$as_me:$LINENO: result: $ac_res" >&5
31726echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031727if test `eval echo '${'$as_ac_var'}'` = yes; then
31728 cat >>confdefs.h <<_ACEOF
31729#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031730_ACEOF
31731
31732fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031733done
John Criswell7a73b802003-06-30 21:59:07 +000031734
Reid Spencercdb08a32006-06-05 16:11:07 +000031735
31736
31737
31738
Reid Spencerafa22e22006-12-10 23:29:19 +000031739for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031740do
31741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031742{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31744if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031745 echo $ECHO_N "(cached) $ECHO_C" >&6
31746else
31747 cat >conftest.$ac_ext <<_ACEOF
31748/* confdefs.h. */
31749_ACEOF
31750cat confdefs.h >>conftest.$ac_ext
31751cat >>conftest.$ac_ext <<_ACEOF
31752/* end confdefs.h. */
31753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31755#define $ac_func innocuous_$ac_func
31756
31757/* System header to define __stub macros and hopefully few prototypes,
31758 which can conflict with char $ac_func (); below.
31759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31760 <limits.h> exists even on freestanding compilers. */
31761
31762#ifdef __STDC__
31763# include <limits.h>
31764#else
31765# include <assert.h>
31766#endif
31767
31768#undef $ac_func
31769
Reid Spencera773bd52006-08-04 18:18:08 +000031770/* Override any GCC internal prototype to avoid an error.
31771 Use char because int might match the return type of a GCC
31772 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031773#ifdef __cplusplus
31774extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031775#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031776char $ac_func ();
31777/* The GNU C library defines this for functions which it implements
31778 to always fail with ENOSYS. Some functions are actually named
31779 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031780#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031781choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031782#endif
31783
31784int
31785main ()
31786{
Reid Spencera773bd52006-08-04 18:18:08 +000031787return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031788 ;
31789 return 0;
31790}
31791_ACEOF
31792rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031793if { (ac_try="$ac_link"
31794case "(($ac_try" in
31795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31796 *) ac_try_echo=$ac_try;;
31797esac
31798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31799 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031800 ac_status=$?
31801 grep -v '^ *+' conftest.er1 >conftest.err
31802 rm -f conftest.er1
31803 cat conftest.err >&5
31804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031805 (exit $ac_status); } &&
31806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31807 { (case "(($ac_try" in
31808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31809 *) ac_try_echo=$ac_try;;
31810esac
31811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31812 (eval "$ac_try") 2>&5
31813 ac_status=$?
31814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815 (exit $ac_status); }; } &&
31816 { ac_try='test -s conftest$ac_exeext'
31817 { (case "(($ac_try" in
31818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31819 *) ac_try_echo=$ac_try;;
31820esac
31821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31822 (eval "$ac_try") 2>&5
31823 ac_status=$?
31824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31825 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031826 eval "$as_ac_var=yes"
31827else
31828 echo "$as_me: failed program was:" >&5
31829sed 's/^/| /' conftest.$ac_ext >&5
31830
Reid Spencera773bd52006-08-04 18:18:08 +000031831 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031832fi
Reid Spencera773bd52006-08-04 18:18:08 +000031833
Bill Wendlingebcceee2009-04-18 11:20:33 +000031834rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031835 conftest$ac_exeext conftest.$ac_ext
31836fi
Reid Spencera773bd52006-08-04 18:18:08 +000031837ac_res=`eval echo '${'$as_ac_var'}'`
31838 { echo "$as_me:$LINENO: result: $ac_res" >&5
31839echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031840if test `eval echo '${'$as_ac_var'}'` = yes; then
31841 cat >>confdefs.h <<_ACEOF
31842#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31843_ACEOF
31844
31845fi
31846done
31847
Reid Spencera773bd52006-08-04 18:18:08 +000031848{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31849echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031850if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031851 echo $ECHO_N "(cached) $ECHO_C" >&6
31852else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031853 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031854ac_cpp='$CPP $CPPFLAGS'
31855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31857ac_compiler_gnu=$ac_cv_c_compiler_gnu
31858
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031859 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031860 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031861else
31862 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031863
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031864 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031865_ACEOF
31866cat confdefs.h >>conftest.$ac_ext
31867cat >>conftest.$ac_ext <<_ACEOF
31868/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031869
John Criswella0137d32003-10-13 16:22:01 +000031870#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031871#include <stdlib.h>
31872
John Criswella0137d32003-10-13 16:22:01 +000031873int
31874main ()
31875{
31876
Reid Spencer2706f8c2004-09-19 23:53:36 +000031877volatile double A, B;
31878char Buffer[100];
31879A = 1;
31880A /= 10.0;
31881sprintf(Buffer, "%a", A);
31882B = atof(Buffer);
31883if (A != B)
31884 return (1);
31885if (A != 0x1.999999999999ap-4)
31886 return (1);
31887return (0);
John Criswella0137d32003-10-13 16:22:01 +000031888 ;
31889 return 0;
31890}
31891_ACEOF
31892rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031893if { (ac_try="$ac_link"
31894case "(($ac_try" in
31895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31896 *) ac_try_echo=$ac_try;;
31897esac
31898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31899 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031900 ac_status=$?
31901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031903 { (case "(($ac_try" in
31904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31905 *) ac_try_echo=$ac_try;;
31906esac
31907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31908 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031909 ac_status=$?
31910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031912 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031913else
31914 echo "$as_me: program exited with status $ac_status" >&5
31915echo "$as_me: failed program was:" >&5
31916sed 's/^/| /' conftest.$ac_ext >&5
31917
31918( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031919llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031920fi
Reid Spencera773bd52006-08-04 18:18:08 +000031921rm -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 +000031922fi
Reid Spencera773bd52006-08-04 18:18:08 +000031923
31924
Reid Spencer2706f8c2004-09-19 23:53:36 +000031925 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031926ac_cpp='$CPP $CPPFLAGS'
31927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31929ac_compiler_gnu=$ac_cv_c_compiler_gnu
31930
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031931fi
Reid Spencera773bd52006-08-04 18:18:08 +000031932{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31933echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031934 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031935
31936cat >>confdefs.h <<\_ACEOF
31937#define HAVE_PRINTF_A 1
31938_ACEOF
31939
Reid Spencer2706f8c2004-09-19 23:53:36 +000031940 fi
John Criswella0137d32003-10-13 16:22:01 +000031941
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031942# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31943# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031944{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31945echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031946if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031947 echo $ECHO_N "(cached) $ECHO_C" >&6
31948else
John Criswell0021c312004-02-13 21:57:29 +000031949 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031950/* confdefs.h. */
31951_ACEOF
31952cat confdefs.h >>conftest.$ac_ext
31953cat >>conftest.$ac_ext <<_ACEOF
31954/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031955#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031956int
31957main ()
31958{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031959char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031960 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031961 ;
31962 return 0;
31963}
31964_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031965rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031966if { (ac_try="$ac_link"
31967case "(($ac_try" in
31968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31969 *) ac_try_echo=$ac_try;;
31970esac
31971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31972 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031973 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031974 grep -v '^ *+' conftest.er1 >conftest.err
31975 rm -f conftest.er1
31976 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031978 (exit $ac_status); } &&
31979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31980 { (case "(($ac_try" in
31981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982 *) ac_try_echo=$ac_try;;
31983esac
31984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985 (eval "$ac_try") 2>&5
31986 ac_status=$?
31987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988 (exit $ac_status); }; } &&
31989 { ac_try='test -s conftest$ac_exeext'
31990 { (case "(($ac_try" in
31991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31992 *) ac_try_echo=$ac_try;;
31993esac
31994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31995 (eval "$ac_try") 2>&5
31996 ac_status=$?
31997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031999 ac_cv_working_alloca_h=yes
32000else
32001 echo "$as_me: failed program was:" >&5
32002sed 's/^/| /' conftest.$ac_ext >&5
32003
Reid Spencera773bd52006-08-04 18:18:08 +000032004 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000032005fi
Reid Spencera773bd52006-08-04 18:18:08 +000032006
Bill Wendlingebcceee2009-04-18 11:20:33 +000032007rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032008 conftest$ac_exeext conftest.$ac_ext
32009fi
Reid Spencera773bd52006-08-04 18:18:08 +000032010{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32011echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032012if test $ac_cv_working_alloca_h = yes; then
32013
32014cat >>confdefs.h <<\_ACEOF
32015#define HAVE_ALLOCA_H 1
32016_ACEOF
32017
32018fi
32019
Reid Spencera773bd52006-08-04 18:18:08 +000032020{ echo "$as_me:$LINENO: checking for alloca" >&5
32021echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032022if test "${ac_cv_func_alloca_works+set}" = set; then
32023 echo $ECHO_N "(cached) $ECHO_C" >&6
32024else
32025 cat >conftest.$ac_ext <<_ACEOF
32026/* confdefs.h. */
32027_ACEOF
32028cat confdefs.h >>conftest.$ac_ext
32029cat >>conftest.$ac_ext <<_ACEOF
32030/* end confdefs.h. */
32031#ifdef __GNUC__
32032# define alloca __builtin_alloca
32033#else
32034# ifdef _MSC_VER
32035# include <malloc.h>
32036# define alloca _alloca
32037# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000032038# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032039# include <alloca.h>
32040# else
32041# ifdef _AIX
32042 #pragma alloca
32043# else
32044# ifndef alloca /* predefined by HP cc +Olibcalls */
32045char *alloca ();
32046# endif
32047# endif
32048# endif
32049# endif
32050#endif
32051
32052int
32053main ()
32054{
32055char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032056 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032057 ;
32058 return 0;
32059}
32060_ACEOF
32061rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032062if { (ac_try="$ac_link"
32063case "(($ac_try" in
32064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32065 *) ac_try_echo=$ac_try;;
32066esac
32067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32068 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032069 ac_status=$?
32070 grep -v '^ *+' conftest.er1 >conftest.err
32071 rm -f conftest.er1
32072 cat conftest.err >&5
32073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032074 (exit $ac_status); } &&
32075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32076 { (case "(($ac_try" in
32077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32078 *) ac_try_echo=$ac_try;;
32079esac
32080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32081 (eval "$ac_try") 2>&5
32082 ac_status=$?
32083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084 (exit $ac_status); }; } &&
32085 { ac_try='test -s conftest$ac_exeext'
32086 { (case "(($ac_try" in
32087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32088 *) ac_try_echo=$ac_try;;
32089esac
32090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32091 (eval "$ac_try") 2>&5
32092 ac_status=$?
32093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032095 ac_cv_func_alloca_works=yes
32096else
32097 echo "$as_me: failed program was:" >&5
32098sed 's/^/| /' conftest.$ac_ext >&5
32099
Reid Spencera773bd52006-08-04 18:18:08 +000032100 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032101fi
Reid Spencera773bd52006-08-04 18:18:08 +000032102
Bill Wendlingebcceee2009-04-18 11:20:33 +000032103rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032104 conftest$ac_exeext conftest.$ac_ext
32105fi
Reid Spencera773bd52006-08-04 18:18:08 +000032106{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32107echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032108
32109if test $ac_cv_func_alloca_works = yes; then
32110
32111cat >>confdefs.h <<\_ACEOF
32112#define HAVE_ALLOCA 1
32113_ACEOF
32114
32115else
32116 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32117# that cause trouble. Some versions do not even contain alloca or
32118# contain a buggy version. If you still want to use their alloca,
32119# use ar to extract alloca.o from them instead of compiling alloca.c.
32120
Reid Spencera773bd52006-08-04 18:18:08 +000032121ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032122
32123cat >>confdefs.h <<\_ACEOF
32124#define C_ALLOCA 1
32125_ACEOF
32126
32127
Reid Spencera773bd52006-08-04 18:18:08 +000032128{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32129echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032130if test "${ac_cv_os_cray+set}" = set; then
32131 echo $ECHO_N "(cached) $ECHO_C" >&6
32132else
32133 cat >conftest.$ac_ext <<_ACEOF
32134/* confdefs.h. */
32135_ACEOF
32136cat confdefs.h >>conftest.$ac_ext
32137cat >>conftest.$ac_ext <<_ACEOF
32138/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032139#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032140webecray
32141#else
32142wenotbecray
32143#endif
32144
32145_ACEOF
32146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32147 $EGREP "webecray" >/dev/null 2>&1; then
32148 ac_cv_os_cray=yes
32149else
32150 ac_cv_os_cray=no
32151fi
32152rm -f conftest*
32153
32154fi
Reid Spencera773bd52006-08-04 18:18:08 +000032155{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32156echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032157if test $ac_cv_os_cray = yes; then
32158 for ac_func in _getb67 GETB67 getb67; do
32159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032160{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32161echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32162if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032163 echo $ECHO_N "(cached) $ECHO_C" >&6
32164else
32165 cat >conftest.$ac_ext <<_ACEOF
32166/* confdefs.h. */
32167_ACEOF
32168cat confdefs.h >>conftest.$ac_ext
32169cat >>conftest.$ac_ext <<_ACEOF
32170/* end confdefs.h. */
32171/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32173#define $ac_func innocuous_$ac_func
32174
32175/* System header to define __stub macros and hopefully few prototypes,
32176 which can conflict with char $ac_func (); below.
32177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32178 <limits.h> exists even on freestanding compilers. */
32179
32180#ifdef __STDC__
32181# include <limits.h>
32182#else
32183# include <assert.h>
32184#endif
32185
32186#undef $ac_func
32187
Reid Spencera773bd52006-08-04 18:18:08 +000032188/* Override any GCC internal prototype to avoid an error.
32189 Use char because int might match the return type of a GCC
32190 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032191#ifdef __cplusplus
32192extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032193#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032194char $ac_func ();
32195/* The GNU C library defines this for functions which it implements
32196 to always fail with ENOSYS. Some functions are actually named
32197 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032198#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032199choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032200#endif
32201
32202int
32203main ()
32204{
Reid Spencera773bd52006-08-04 18:18:08 +000032205return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032206 ;
32207 return 0;
32208}
32209_ACEOF
32210rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032211if { (ac_try="$ac_link"
32212case "(($ac_try" in
32213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32214 *) ac_try_echo=$ac_try;;
32215esac
32216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32217 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032218 ac_status=$?
32219 grep -v '^ *+' conftest.er1 >conftest.err
32220 rm -f conftest.er1
32221 cat conftest.err >&5
32222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032223 (exit $ac_status); } &&
32224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32225 { (case "(($ac_try" in
32226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32227 *) ac_try_echo=$ac_try;;
32228esac
32229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32230 (eval "$ac_try") 2>&5
32231 ac_status=$?
32232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32233 (exit $ac_status); }; } &&
32234 { ac_try='test -s conftest$ac_exeext'
32235 { (case "(($ac_try" in
32236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32237 *) ac_try_echo=$ac_try;;
32238esac
32239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32240 (eval "$ac_try") 2>&5
32241 ac_status=$?
32242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32243 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032244 eval "$as_ac_var=yes"
32245else
32246 echo "$as_me: failed program was:" >&5
32247sed 's/^/| /' conftest.$ac_ext >&5
32248
Reid Spencera773bd52006-08-04 18:18:08 +000032249 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032250fi
Reid Spencera773bd52006-08-04 18:18:08 +000032251
Bill Wendlingebcceee2009-04-18 11:20:33 +000032252rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032253 conftest$ac_exeext conftest.$ac_ext
32254fi
Reid Spencera773bd52006-08-04 18:18:08 +000032255ac_res=`eval echo '${'$as_ac_var'}'`
32256 { echo "$as_me:$LINENO: result: $ac_res" >&5
32257echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032258if test `eval echo '${'$as_ac_var'}'` = yes; then
32259
32260cat >>confdefs.h <<_ACEOF
32261#define CRAY_STACKSEG_END $ac_func
32262_ACEOF
32263
32264 break
32265fi
32266
32267 done
32268fi
32269
Reid Spencera773bd52006-08-04 18:18:08 +000032270{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32271echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032272if test "${ac_cv_c_stack_direction+set}" = set; then
32273 echo $ECHO_N "(cached) $ECHO_C" >&6
32274else
32275 if test "$cross_compiling" = yes; then
32276 ac_cv_c_stack_direction=0
32277else
32278 cat >conftest.$ac_ext <<_ACEOF
32279/* confdefs.h. */
32280_ACEOF
32281cat confdefs.h >>conftest.$ac_ext
32282cat >>conftest.$ac_ext <<_ACEOF
32283/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032284$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032285int
32286find_stack_direction ()
32287{
32288 static char *addr = 0;
32289 auto char dummy;
32290 if (addr == 0)
32291 {
32292 addr = &dummy;
32293 return find_stack_direction ();
32294 }
John Criswell0021c312004-02-13 21:57:29 +000032295 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032296 return (&dummy > addr) ? 1 : -1;
32297}
John Criswell0021c312004-02-13 21:57:29 +000032298
John Criswell0021c312004-02-13 21:57:29 +000032299int
32300main ()
32301{
Reid Spencera773bd52006-08-04 18:18:08 +000032302 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000032303}
32304_ACEOF
32305rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032306if { (ac_try="$ac_link"
32307case "(($ac_try" in
32308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32309 *) ac_try_echo=$ac_try;;
32310esac
32311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32312 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032313 ac_status=$?
32314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032316 { (case "(($ac_try" in
32317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318 *) ac_try_echo=$ac_try;;
32319esac
32320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32321 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032322 ac_status=$?
32323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32324 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032325 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000032326else
32327 echo "$as_me: program exited with status $ac_status" >&5
32328echo "$as_me: failed program was:" >&5
32329sed 's/^/| /' conftest.$ac_ext >&5
32330
32331( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032332ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000032333fi
Reid Spencera773bd52006-08-04 18:18:08 +000032334rm -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 +000032335fi
Reid Spencera773bd52006-08-04 18:18:08 +000032336
32337
John Criswell0021c312004-02-13 21:57:29 +000032338fi
Reid Spencera773bd52006-08-04 18:18:08 +000032339{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32340echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032341
32342cat >>confdefs.h <<_ACEOF
32343#define STACK_DIRECTION $ac_cv_c_stack_direction
32344_ACEOF
32345
32346
John Criswell0021c312004-02-13 21:57:29 +000032347fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032348
32349
Reid Spencera773bd52006-08-04 18:18:08 +000032350{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32351echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032352if test "${ac_cv_func_rand48+set}" = set; then
32353 echo $ECHO_N "(cached) $ECHO_C" >&6
32354else
Reid Spencera773bd52006-08-04 18:18:08 +000032355 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032356ac_cpp='$CXXCPP $CPPFLAGS'
32357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32360
32361 cat >conftest.$ac_ext <<_ACEOF
32362/* confdefs.h. */
32363_ACEOF
32364cat confdefs.h >>conftest.$ac_ext
32365cat >>conftest.$ac_ext <<_ACEOF
32366/* end confdefs.h. */
32367#include <stdlib.h>
32368int
32369main ()
32370{
32371srand48(0);lrand48();drand48();
32372 ;
32373 return 0;
32374}
32375_ACEOF
32376rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032377if { (ac_try="$ac_compile"
32378case "(($ac_try" in
32379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32380 *) ac_try_echo=$ac_try;;
32381esac
32382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32383 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032384 ac_status=$?
32385 grep -v '^ *+' conftest.er1 >conftest.err
32386 rm -f conftest.er1
32387 cat conftest.err >&5
32388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032389 (exit $ac_status); } &&
32390 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32391 { (case "(($ac_try" in
32392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393 *) ac_try_echo=$ac_try;;
32394esac
32395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396 (eval "$ac_try") 2>&5
32397 ac_status=$?
32398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399 (exit $ac_status); }; } &&
32400 { ac_try='test -s conftest.$ac_objext'
32401 { (case "(($ac_try" in
32402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32403 *) ac_try_echo=$ac_try;;
32404esac
32405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32406 (eval "$ac_try") 2>&5
32407 ac_status=$?
32408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32409 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032410 ac_cv_func_rand48=yes
32411else
32412 echo "$as_me: failed program was:" >&5
32413sed 's/^/| /' conftest.$ac_ext >&5
32414
Reid Spencera773bd52006-08-04 18:18:08 +000032415 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032416fi
Reid Spencera773bd52006-08-04 18:18:08 +000032417
32418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032419 ac_ext=c
32420ac_cpp='$CPP $CPPFLAGS'
32421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32423ac_compiler_gnu=$ac_cv_c_compiler_gnu
32424
32425fi
Reid Spencera773bd52006-08-04 18:18:08 +000032426{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32427echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032428
32429if test "$ac_cv_func_rand48" = "yes" ; then
32430
32431cat >>confdefs.h <<\_ACEOF
32432#define HAVE_RAND48 1
32433_ACEOF
32434
32435fi
John Criswell0021c312004-02-13 21:57:29 +000032436
32437
Reid Spencera773bd52006-08-04 18:18:08 +000032438{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32439echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032440if test "${ac_cv_cxx_namespaces+set}" = set; then
32441 echo $ECHO_N "(cached) $ECHO_C" >&6
32442else
Reid Spencera773bd52006-08-04 18:18:08 +000032443 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032444ac_cpp='$CXXCPP $CPPFLAGS'
32445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32448
32449 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032450/* confdefs.h. */
32451_ACEOF
32452cat confdefs.h >>conftest.$ac_ext
32453cat >>conftest.$ac_ext <<_ACEOF
32454/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032455namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000032456int
32457main ()
32458{
32459using namespace Outer::Inner; return i;
32460 ;
32461 return 0;
32462}
32463_ACEOF
32464rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032465if { (ac_try="$ac_compile"
32466case "(($ac_try" in
32467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32468 *) ac_try_echo=$ac_try;;
32469esac
32470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32471 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032472 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032473 grep -v '^ *+' conftest.er1 >conftest.err
32474 rm -f conftest.er1
32475 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032477 (exit $ac_status); } &&
32478 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32479 { (case "(($ac_try" in
32480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32481 *) ac_try_echo=$ac_try;;
32482esac
32483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32484 (eval "$ac_try") 2>&5
32485 ac_status=$?
32486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487 (exit $ac_status); }; } &&
32488 { ac_try='test -s conftest.$ac_objext'
32489 { (case "(($ac_try" in
32490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32491 *) ac_try_echo=$ac_try;;
32492esac
32493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32494 (eval "$ac_try") 2>&5
32495 ac_status=$?
32496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32497 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032498 ac_cv_cxx_namespaces=yes
32499else
32500 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032501sed 's/^/| /' conftest.$ac_ext >&5
32502
Reid Spencera773bd52006-08-04 18:18:08 +000032503 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000032504fi
Reid Spencera773bd52006-08-04 18:18:08 +000032505
32506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032507 ac_ext=c
32508ac_cpp='$CPP $CPPFLAGS'
32509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32511ac_compiler_gnu=$ac_cv_c_compiler_gnu
32512
32513
32514fi
Reid Spencera773bd52006-08-04 18:18:08 +000032515{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32516echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032517if test "$ac_cv_cxx_namespaces" = yes; then
32518
32519cat >>confdefs.h <<\_ACEOF
32520#define HAVE_NAMESPACES
32521_ACEOF
32522
32523fi
32524
Reid Spencera773bd52006-08-04 18:18:08 +000032525{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32526echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032527if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32528 echo $ECHO_N "(cached) $ECHO_C" >&6
32529else
32530
Reid Spencera773bd52006-08-04 18:18:08 +000032531 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032532ac_cpp='$CXXCPP $CPPFLAGS'
32533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32536
32537 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032538/* confdefs.h. */
32539_ACEOF
32540cat confdefs.h >>conftest.$ac_ext
32541cat >>conftest.$ac_ext <<_ACEOF
32542/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032543#include <iterator>
32544#ifdef HAVE_NAMESPACES
32545using namespace std;
32546#endif
John Criswell7a73b802003-06-30 21:59:07 +000032547int
32548main ()
32549{
32550iterator<int,int,int> t; return 0;
32551 ;
32552 return 0;
32553}
32554_ACEOF
32555rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032556if { (ac_try="$ac_compile"
32557case "(($ac_try" in
32558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32559 *) ac_try_echo=$ac_try;;
32560esac
32561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32562 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032563 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032564 grep -v '^ *+' conftest.er1 >conftest.err
32565 rm -f conftest.er1
32566 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032568 (exit $ac_status); } &&
32569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32570 { (case "(($ac_try" in
32571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32572 *) ac_try_echo=$ac_try;;
32573esac
32574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32575 (eval "$ac_try") 2>&5
32576 ac_status=$?
32577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578 (exit $ac_status); }; } &&
32579 { ac_try='test -s conftest.$ac_objext'
32580 { (case "(($ac_try" in
32581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32582 *) ac_try_echo=$ac_try;;
32583esac
32584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32585 (eval "$ac_try") 2>&5
32586 ac_status=$?
32587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032589 ac_cv_cxx_have_std_iterator=yes
32590else
32591 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032592sed 's/^/| /' conftest.$ac_ext >&5
32593
Reid Spencera773bd52006-08-04 18:18:08 +000032594 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032595fi
Reid Spencera773bd52006-08-04 18:18:08 +000032596
32597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032598 ac_ext=c
32599ac_cpp='$CPP $CPPFLAGS'
32600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32602ac_compiler_gnu=$ac_cv_c_compiler_gnu
32603
32604
32605fi
Reid Spencera773bd52006-08-04 18:18:08 +000032606{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32607echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032608if test "$ac_cv_cxx_have_std_iterator" = yes
32609then
John Criswell40468462004-09-24 21:19:06 +000032610
32611cat >>confdefs.h <<\_ACEOF
32612#define HAVE_STD_ITERATOR 1
32613_ACEOF
32614
32615else
32616
32617cat >>confdefs.h <<\_ACEOF
32618#define HAVE_STD_ITERATOR 0
32619_ACEOF
32620
John Criswell7a73b802003-06-30 21:59:07 +000032621fi
32622
Reid Spencera773bd52006-08-04 18:18:08 +000032623{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32624echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032625if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32626 echo $ECHO_N "(cached) $ECHO_C" >&6
32627else
32628
Reid Spencera773bd52006-08-04 18:18:08 +000032629 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032630ac_cpp='$CXXCPP $CPPFLAGS'
32631ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32632ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32633ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32634
32635 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032636/* confdefs.h. */
32637_ACEOF
32638cat confdefs.h >>conftest.$ac_ext
32639cat >>conftest.$ac_ext <<_ACEOF
32640/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032641#include <iterator>
32642#ifdef HAVE_NAMESPACES
32643using namespace std;
32644#endif
John Criswell7a73b802003-06-30 21:59:07 +000032645int
32646main ()
32647{
John Criswellc78022e2003-07-29 19:11:58 +000032648bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032649 ;
32650 return 0;
32651}
32652_ACEOF
32653rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032654if { (ac_try="$ac_compile"
32655case "(($ac_try" in
32656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32657 *) ac_try_echo=$ac_try;;
32658esac
32659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32660 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032661 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032662 grep -v '^ *+' conftest.er1 >conftest.err
32663 rm -f conftest.er1
32664 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032666 (exit $ac_status); } &&
32667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32668 { (case "(($ac_try" in
32669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32670 *) ac_try_echo=$ac_try;;
32671esac
32672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32673 (eval "$ac_try") 2>&5
32674 ac_status=$?
32675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676 (exit $ac_status); }; } &&
32677 { ac_try='test -s conftest.$ac_objext'
32678 { (case "(($ac_try" in
32679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32680 *) ac_try_echo=$ac_try;;
32681esac
32682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32683 (eval "$ac_try") 2>&5
32684 ac_status=$?
32685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032687 ac_cv_cxx_have_bi_iterator=yes
32688else
32689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032690sed 's/^/| /' conftest.$ac_ext >&5
32691
Reid Spencera773bd52006-08-04 18:18:08 +000032692 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032693fi
Reid Spencera773bd52006-08-04 18:18:08 +000032694
32695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032696 ac_ext=c
32697ac_cpp='$CPP $CPPFLAGS'
32698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32700ac_compiler_gnu=$ac_cv_c_compiler_gnu
32701
32702
32703fi
Reid Spencera773bd52006-08-04 18:18:08 +000032704{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32705echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032706if test "$ac_cv_cxx_have_bi_iterator" = yes
32707then
John Criswell40468462004-09-24 21:19:06 +000032708
32709cat >>confdefs.h <<\_ACEOF
32710#define HAVE_BI_ITERATOR 1
32711_ACEOF
32712
32713else
32714
32715cat >>confdefs.h <<\_ACEOF
32716#define HAVE_BI_ITERATOR 0
32717_ACEOF
32718
John Criswell7a73b802003-06-30 21:59:07 +000032719fi
32720
Reid Spencera773bd52006-08-04 18:18:08 +000032721{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32722echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032723if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32724 echo $ECHO_N "(cached) $ECHO_C" >&6
32725else
32726
Reid Spencera773bd52006-08-04 18:18:08 +000032727 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032728ac_cpp='$CXXCPP $CPPFLAGS'
32729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32732
32733 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032734/* confdefs.h. */
32735_ACEOF
32736cat confdefs.h >>conftest.$ac_ext
32737cat >>conftest.$ac_ext <<_ACEOF
32738/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032739#include <iterator>
32740#ifdef HAVE_NAMESPACES
32741using namespace std;
32742#endif
John Criswell7a73b802003-06-30 21:59:07 +000032743int
32744main ()
32745{
John Criswellc78022e2003-07-29 19:11:58 +000032746forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032747 ;
32748 return 0;
32749}
32750_ACEOF
32751rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032752if { (ac_try="$ac_compile"
32753case "(($ac_try" in
32754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32755 *) ac_try_echo=$ac_try;;
32756esac
32757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32758 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032759 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032760 grep -v '^ *+' conftest.er1 >conftest.err
32761 rm -f conftest.er1
32762 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032764 (exit $ac_status); } &&
32765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32766 { (case "(($ac_try" in
32767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32768 *) ac_try_echo=$ac_try;;
32769esac
32770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32771 (eval "$ac_try") 2>&5
32772 ac_status=$?
32773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774 (exit $ac_status); }; } &&
32775 { ac_try='test -s conftest.$ac_objext'
32776 { (case "(($ac_try" in
32777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32778 *) ac_try_echo=$ac_try;;
32779esac
32780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32781 (eval "$ac_try") 2>&5
32782 ac_status=$?
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032785 ac_cv_cxx_have_fwd_iterator=yes
32786else
32787 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032788sed 's/^/| /' conftest.$ac_ext >&5
32789
Reid Spencera773bd52006-08-04 18:18:08 +000032790 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032791fi
Reid Spencera773bd52006-08-04 18:18:08 +000032792
32793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032794 ac_ext=c
32795ac_cpp='$CPP $CPPFLAGS'
32796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32798ac_compiler_gnu=$ac_cv_c_compiler_gnu
32799
32800
32801fi
Reid Spencera773bd52006-08-04 18:18:08 +000032802{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32803echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032804if test "$ac_cv_cxx_have_fwd_iterator" = yes
32805then
John Criswell40468462004-09-24 21:19:06 +000032806
32807cat >>confdefs.h <<\_ACEOF
32808#define HAVE_FWD_ITERATOR 1
32809_ACEOF
32810
32811else
32812
32813cat >>confdefs.h <<\_ACEOF
32814#define HAVE_FWD_ITERATOR 0
32815_ACEOF
32816
John Criswell7a73b802003-06-30 21:59:07 +000032817fi
32818
32819
Reid Spencera773bd52006-08-04 18:18:08 +000032820{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32821echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032822if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32823 echo $ECHO_N "(cached) $ECHO_C" >&6
32824else
Reid Spencera773bd52006-08-04 18:18:08 +000032825 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032826ac_cpp='$CXXCPP $CPPFLAGS'
32827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32830
Reid Spencerabec8f92004-10-27 23:03:44 +000032831 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032832/* confdefs.h. */
32833_ACEOF
32834cat confdefs.h >>conftest.$ac_ext
32835cat >>conftest.$ac_ext <<_ACEOF
32836/* end confdefs.h. */
32837#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032838int
32839main ()
32840{
32841float f; isnan(f);
32842 ;
32843 return 0;
32844}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032845_ACEOF
32846rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032847if { (ac_try="$ac_compile"
32848case "(($ac_try" in
32849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32850 *) ac_try_echo=$ac_try;;
32851esac
32852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32853 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032854 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032855 grep -v '^ *+' conftest.er1 >conftest.err
32856 rm -f conftest.er1
32857 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032859 (exit $ac_status); } &&
32860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32861 { (case "(($ac_try" in
32862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32863 *) ac_try_echo=$ac_try;;
32864esac
32865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32866 (eval "$ac_try") 2>&5
32867 ac_status=$?
32868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32869 (exit $ac_status); }; } &&
32870 { ac_try='test -s conftest.$ac_objext'
32871 { (case "(($ac_try" in
32872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32873 *) ac_try_echo=$ac_try;;
32874esac
32875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32876 (eval "$ac_try") 2>&5
32877 ac_status=$?
32878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032880 ac_cv_func_isnan_in_math_h=yes
32881else
32882 echo "$as_me: failed program was:" >&5
32883sed 's/^/| /' conftest.$ac_ext >&5
32884
Reid Spencera773bd52006-08-04 18:18:08 +000032885 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032886fi
Reid Spencera773bd52006-08-04 18:18:08 +000032887
32888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032889 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032890ac_cpp='$CPP $CPPFLAGS'
32891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32893ac_compiler_gnu=$ac_cv_c_compiler_gnu
32894
32895fi
Reid Spencera773bd52006-08-04 18:18:08 +000032896{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32897echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032898
32899
32900if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032901
32902cat >>confdefs.h <<\_ACEOF
32903#define HAVE_ISNAN_IN_MATH_H 1
32904_ACEOF
32905
Reid Spencerabec8f92004-10-27 23:03:44 +000032906fi
32907
Reid Spencera773bd52006-08-04 18:18:08 +000032908{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32909echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032910if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32911 echo $ECHO_N "(cached) $ECHO_C" >&6
32912else
Reid Spencera773bd52006-08-04 18:18:08 +000032913 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032914ac_cpp='$CXXCPP $CPPFLAGS'
32915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32918
Reid Spencerabec8f92004-10-27 23:03:44 +000032919 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032920/* confdefs.h. */
32921_ACEOF
32922cat confdefs.h >>conftest.$ac_ext
32923cat >>conftest.$ac_ext <<_ACEOF
32924/* end confdefs.h. */
32925#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032926int
32927main ()
32928{
32929float f; isnan(f);
32930 ;
32931 return 0;
32932}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032933_ACEOF
32934rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032935if { (ac_try="$ac_compile"
32936case "(($ac_try" in
32937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32938 *) ac_try_echo=$ac_try;;
32939esac
32940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32941 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032942 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032943 grep -v '^ *+' conftest.er1 >conftest.err
32944 rm -f conftest.er1
32945 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032947 (exit $ac_status); } &&
32948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32949 { (case "(($ac_try" in
32950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32951 *) ac_try_echo=$ac_try;;
32952esac
32953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32954 (eval "$ac_try") 2>&5
32955 ac_status=$?
32956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957 (exit $ac_status); }; } &&
32958 { ac_try='test -s conftest.$ac_objext'
32959 { (case "(($ac_try" in
32960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32961 *) ac_try_echo=$ac_try;;
32962esac
32963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32964 (eval "$ac_try") 2>&5
32965 ac_status=$?
32966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032968 ac_cv_func_isnan_in_cmath=yes
32969else
32970 echo "$as_me: failed program was:" >&5
32971sed 's/^/| /' conftest.$ac_ext >&5
32972
Reid Spencera773bd52006-08-04 18:18:08 +000032973 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032974fi
Reid Spencera773bd52006-08-04 18:18:08 +000032975
32976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032977 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032978ac_cpp='$CPP $CPPFLAGS'
32979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32981ac_compiler_gnu=$ac_cv_c_compiler_gnu
32982
32983fi
Reid Spencera773bd52006-08-04 18:18:08 +000032984{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32985echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032986
32987if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032988
32989cat >>confdefs.h <<\_ACEOF
32990#define HAVE_ISNAN_IN_CMATH 1
32991_ACEOF
32992
Reid Spencerabec8f92004-10-27 23:03:44 +000032993fi
32994
Reid Spencera773bd52006-08-04 18:18:08 +000032995{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32996echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032997if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32998 echo $ECHO_N "(cached) $ECHO_C" >&6
32999else
Reid Spencera773bd52006-08-04 18:18:08 +000033000 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033001ac_cpp='$CXXCPP $CPPFLAGS'
33002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33005
Reid Spencerabec8f92004-10-27 23:03:44 +000033006 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033007/* confdefs.h. */
33008_ACEOF
33009cat confdefs.h >>conftest.$ac_ext
33010cat >>conftest.$ac_ext <<_ACEOF
33011/* end confdefs.h. */
33012#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033013int
33014main ()
33015{
33016float f; std::isnan(f);
33017 ;
33018 return 0;
33019}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033020_ACEOF
33021rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033022if { (ac_try="$ac_compile"
33023case "(($ac_try" in
33024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33025 *) ac_try_echo=$ac_try;;
33026esac
33027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33028 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033029 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033030 grep -v '^ *+' conftest.er1 >conftest.err
33031 rm -f conftest.er1
33032 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033034 (exit $ac_status); } &&
33035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33036 { (case "(($ac_try" in
33037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038 *) ac_try_echo=$ac_try;;
33039esac
33040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041 (eval "$ac_try") 2>&5
33042 ac_status=$?
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); }; } &&
33045 { ac_try='test -s conftest.$ac_objext'
33046 { (case "(($ac_try" in
33047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33048 *) ac_try_echo=$ac_try;;
33049esac
33050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33051 (eval "$ac_try") 2>&5
33052 ac_status=$?
33053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033055 ac_cv_func_std_isnan_in_cmath=yes
33056else
33057 echo "$as_me: failed program was:" >&5
33058sed 's/^/| /' conftest.$ac_ext >&5
33059
Reid Spencera773bd52006-08-04 18:18:08 +000033060 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033061fi
Reid Spencera773bd52006-08-04 18:18:08 +000033062
33063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033064 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033065ac_cpp='$CPP $CPPFLAGS'
33066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33068ac_compiler_gnu=$ac_cv_c_compiler_gnu
33069
33070fi
Reid Spencera773bd52006-08-04 18:18:08 +000033071{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33072echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033073
33074if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033075
33076cat >>confdefs.h <<\_ACEOF
33077#define HAVE_STD_ISNAN_IN_CMATH 1
33078_ACEOF
33079
Reid Spencerabec8f92004-10-27 23:03:44 +000033080fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033081
33082
Reid Spencera773bd52006-08-04 18:18:08 +000033083{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33084echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033085if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33086 echo $ECHO_N "(cached) $ECHO_C" >&6
33087else
Reid Spencera773bd52006-08-04 18:18:08 +000033088 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033089ac_cpp='$CXXCPP $CPPFLAGS'
33090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33093
Reid Spencerabec8f92004-10-27 23:03:44 +000033094 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033095/* confdefs.h. */
33096_ACEOF
33097cat confdefs.h >>conftest.$ac_ext
33098cat >>conftest.$ac_ext <<_ACEOF
33099/* end confdefs.h. */
33100#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033101int
33102main ()
33103{
33104float f; isinf(f);
33105 ;
33106 return 0;
33107}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033108_ACEOF
33109rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033110if { (ac_try="$ac_compile"
33111case "(($ac_try" in
33112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33113 *) ac_try_echo=$ac_try;;
33114esac
33115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33116 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033117 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033118 grep -v '^ *+' conftest.er1 >conftest.err
33119 rm -f conftest.er1
33120 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033122 (exit $ac_status); } &&
33123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33124 { (case "(($ac_try" in
33125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126 *) ac_try_echo=$ac_try;;
33127esac
33128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129 (eval "$ac_try") 2>&5
33130 ac_status=$?
33131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132 (exit $ac_status); }; } &&
33133 { ac_try='test -s conftest.$ac_objext'
33134 { (case "(($ac_try" in
33135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33136 *) ac_try_echo=$ac_try;;
33137esac
33138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33139 (eval "$ac_try") 2>&5
33140 ac_status=$?
33141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033143 ac_cv_func_isinf_in_math_h=yes
33144else
33145 echo "$as_me: failed program was:" >&5
33146sed 's/^/| /' conftest.$ac_ext >&5
33147
Reid Spencera773bd52006-08-04 18:18:08 +000033148 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033149fi
Reid Spencera773bd52006-08-04 18:18:08 +000033150
33151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033152 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033153ac_cpp='$CPP $CPPFLAGS'
33154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33156ac_compiler_gnu=$ac_cv_c_compiler_gnu
33157
33158fi
Reid Spencera773bd52006-08-04 18:18:08 +000033159{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33160echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033161
33162if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033163
33164cat >>confdefs.h <<\_ACEOF
33165#define HAVE_ISINF_IN_MATH_H 1
33166_ACEOF
33167
Reid Spencerabec8f92004-10-27 23:03:44 +000033168fi
33169
Reid Spencera773bd52006-08-04 18:18:08 +000033170{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33171echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033172if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33173 echo $ECHO_N "(cached) $ECHO_C" >&6
33174else
Reid Spencera773bd52006-08-04 18:18:08 +000033175 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033176ac_cpp='$CXXCPP $CPPFLAGS'
33177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33180
Reid Spencerabec8f92004-10-27 23:03:44 +000033181 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033182/* confdefs.h. */
33183_ACEOF
33184cat confdefs.h >>conftest.$ac_ext
33185cat >>conftest.$ac_ext <<_ACEOF
33186/* end confdefs.h. */
33187#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033188int
33189main ()
33190{
33191float f; isinf(f);
33192 ;
33193 return 0;
33194}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033195_ACEOF
33196rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033197if { (ac_try="$ac_compile"
33198case "(($ac_try" in
33199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33200 *) ac_try_echo=$ac_try;;
33201esac
33202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33203 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033204 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033205 grep -v '^ *+' conftest.er1 >conftest.err
33206 rm -f conftest.er1
33207 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033209 (exit $ac_status); } &&
33210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33211 { (case "(($ac_try" in
33212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213 *) ac_try_echo=$ac_try;;
33214esac
33215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216 (eval "$ac_try") 2>&5
33217 ac_status=$?
33218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219 (exit $ac_status); }; } &&
33220 { ac_try='test -s conftest.$ac_objext'
33221 { (case "(($ac_try" in
33222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33223 *) ac_try_echo=$ac_try;;
33224esac
33225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33226 (eval "$ac_try") 2>&5
33227 ac_status=$?
33228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033230 ac_cv_func_isinf_in_cmath=yes
33231else
33232 echo "$as_me: failed program was:" >&5
33233sed 's/^/| /' conftest.$ac_ext >&5
33234
Reid Spencera773bd52006-08-04 18:18:08 +000033235 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033236fi
Reid Spencera773bd52006-08-04 18:18:08 +000033237
33238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033239 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033240ac_cpp='$CPP $CPPFLAGS'
33241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33243ac_compiler_gnu=$ac_cv_c_compiler_gnu
33244
33245fi
Reid Spencera773bd52006-08-04 18:18:08 +000033246{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33247echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033248
33249if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033250
33251cat >>confdefs.h <<\_ACEOF
33252#define HAVE_ISINF_IN_CMATH 1
33253_ACEOF
33254
Reid Spencerabec8f92004-10-27 23:03:44 +000033255fi
33256
Reid Spencera773bd52006-08-04 18:18:08 +000033257{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33258echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033259if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33260 echo $ECHO_N "(cached) $ECHO_C" >&6
33261else
Reid Spencera773bd52006-08-04 18:18:08 +000033262 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033263ac_cpp='$CXXCPP $CPPFLAGS'
33264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33267
Reid Spencerabec8f92004-10-27 23:03:44 +000033268 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033269/* confdefs.h. */
33270_ACEOF
33271cat confdefs.h >>conftest.$ac_ext
33272cat >>conftest.$ac_ext <<_ACEOF
33273/* end confdefs.h. */
33274#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033275int
33276main ()
33277{
33278float f; std::isinf(f)}
33279 ;
33280 return 0;
33281}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033282_ACEOF
33283rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033284if { (ac_try="$ac_compile"
33285case "(($ac_try" in
33286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33287 *) ac_try_echo=$ac_try;;
33288esac
33289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33290 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033291 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033292 grep -v '^ *+' conftest.er1 >conftest.err
33293 rm -f conftest.er1
33294 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033296 (exit $ac_status); } &&
33297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33298 { (case "(($ac_try" in
33299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33300 *) ac_try_echo=$ac_try;;
33301esac
33302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33303 (eval "$ac_try") 2>&5
33304 ac_status=$?
33305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33306 (exit $ac_status); }; } &&
33307 { ac_try='test -s conftest.$ac_objext'
33308 { (case "(($ac_try" in
33309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33310 *) ac_try_echo=$ac_try;;
33311esac
33312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33313 (eval "$ac_try") 2>&5
33314 ac_status=$?
33315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33316 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033317 ac_cv_func_std_isinf_in_cmath=yes
33318else
33319 echo "$as_me: failed program was:" >&5
33320sed 's/^/| /' conftest.$ac_ext >&5
33321
Reid Spencera773bd52006-08-04 18:18:08 +000033322 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033323fi
Reid Spencera773bd52006-08-04 18:18:08 +000033324
33325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033326 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033327ac_cpp='$CPP $CPPFLAGS'
33328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33330ac_compiler_gnu=$ac_cv_c_compiler_gnu
33331
33332fi
Reid Spencera773bd52006-08-04 18:18:08 +000033333{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33334echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033335
33336if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033337
33338cat >>confdefs.h <<\_ACEOF
33339#define HAVE_STD_ISINF_IN_CMATH 1
33340_ACEOF
33341
Reid Spencerabec8f92004-10-27 23:03:44 +000033342fi
33343
Reid Spencera773bd52006-08-04 18:18:08 +000033344{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33345echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033346if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33347 echo $ECHO_N "(cached) $ECHO_C" >&6
33348else
Reid Spencera773bd52006-08-04 18:18:08 +000033349 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033350ac_cpp='$CXXCPP $CPPFLAGS'
33351ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33352ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33353ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33354
Reid Spencerabec8f92004-10-27 23:03:44 +000033355 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033356/* confdefs.h. */
33357_ACEOF
33358cat confdefs.h >>conftest.$ac_ext
33359cat >>conftest.$ac_ext <<_ACEOF
33360/* end confdefs.h. */
33361#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033362int
33363main ()
33364{
33365float f; finite(f);
33366 ;
33367 return 0;
33368}
Brian Gaeked59a6472004-07-21 03:33:58 +000033369_ACEOF
33370rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033371if { (ac_try="$ac_compile"
33372case "(($ac_try" in
33373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33374 *) ac_try_echo=$ac_try;;
33375esac
33376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33377 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033378 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033379 grep -v '^ *+' conftest.er1 >conftest.err
33380 rm -f conftest.er1
33381 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033383 (exit $ac_status); } &&
33384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33385 { (case "(($ac_try" in
33386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33387 *) ac_try_echo=$ac_try;;
33388esac
33389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33390 (eval "$ac_try") 2>&5
33391 ac_status=$?
33392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393 (exit $ac_status); }; } &&
33394 { ac_try='test -s conftest.$ac_objext'
33395 { (case "(($ac_try" in
33396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33397 *) ac_try_echo=$ac_try;;
33398esac
33399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33400 (eval "$ac_try") 2>&5
33401 ac_status=$?
33402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033404 ac_cv_func_finite_in_ieeefp_h=yes
33405else
33406 echo "$as_me: failed program was:" >&5
33407sed 's/^/| /' conftest.$ac_ext >&5
33408
Reid Spencera773bd52006-08-04 18:18:08 +000033409 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033410fi
Reid Spencera773bd52006-08-04 18:18:08 +000033411
33412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033413 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033414ac_cpp='$CPP $CPPFLAGS'
33415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33417ac_compiler_gnu=$ac_cv_c_compiler_gnu
33418
33419fi
Reid Spencera773bd52006-08-04 18:18:08 +000033420{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33421echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033422
Brian Gaeke6802b552004-10-28 05:06:45 +000033423if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033424
33425cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033426#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033427_ACEOF
33428
Reid Spencerabec8f92004-10-27 23:03:44 +000033429fi
33430
33431
33432
Reid Spencer30fe5262007-01-20 07:48:49 +000033433if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033434
33435
33436for ac_header in stdlib.h unistd.h
33437do
33438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033439if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033443 echo $ECHO_N "(cached) $ECHO_C" >&6
33444fi
Reid Spencera773bd52006-08-04 18:18:08 +000033445ac_res=`eval echo '${'$as_ac_Header'}'`
33446 { echo "$as_me:$LINENO: result: $ac_res" >&5
33447echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033448else
33449 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033450{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33451echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033452cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033453/* confdefs.h. */
33454_ACEOF
33455cat confdefs.h >>conftest.$ac_ext
33456cat >>conftest.$ac_ext <<_ACEOF
33457/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033458$ac_includes_default
33459#include <$ac_header>
33460_ACEOF
33461rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033462if { (ac_try="$ac_compile"
33463case "(($ac_try" in
33464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33465 *) ac_try_echo=$ac_try;;
33466esac
33467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33468 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033469 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033470 grep -v '^ *+' conftest.er1 >conftest.err
33471 rm -f conftest.er1
33472 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033474 (exit $ac_status); } &&
33475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33476 { (case "(($ac_try" in
33477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33478 *) ac_try_echo=$ac_try;;
33479esac
33480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33481 (eval "$ac_try") 2>&5
33482 ac_status=$?
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); }; } &&
33485 { ac_try='test -s conftest.$ac_objext'
33486 { (case "(($ac_try" in
33487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33488 *) ac_try_echo=$ac_try;;
33489esac
33490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33491 (eval "$ac_try") 2>&5
33492 ac_status=$?
33493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033495 ac_header_compiler=yes
33496else
33497 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033498sed 's/^/| /' conftest.$ac_ext >&5
33499
Reid Spencera773bd52006-08-04 18:18:08 +000033500 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033501fi
Reid Spencera773bd52006-08-04 18:18:08 +000033502
33503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33504{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33505echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033506
33507# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033508{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33509echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033510cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033511/* confdefs.h. */
33512_ACEOF
33513cat confdefs.h >>conftest.$ac_ext
33514cat >>conftest.$ac_ext <<_ACEOF
33515/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033516#include <$ac_header>
33517_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033518if { (ac_try="$ac_cpp conftest.$ac_ext"
33519case "(($ac_try" in
33520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33521 *) ac_try_echo=$ac_try;;
33522esac
33523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033525 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033526 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033527 rm -f conftest.er1
33528 cat conftest.err >&5
33529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033530 (exit $ac_status); } >/dev/null; then
33531 if test -s conftest.err; then
33532 ac_cpp_err=$ac_c_preproc_warn_flag
33533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33534 else
33535 ac_cpp_err=
33536 fi
33537else
33538 ac_cpp_err=yes
33539fi
33540if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033541 ac_header_preproc=yes
33542else
33543 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033544sed 's/^/| /' conftest.$ac_ext >&5
33545
John Criswell7a73b802003-06-30 21:59:07 +000033546 ac_header_preproc=no
33547fi
Reid Spencera773bd52006-08-04 18:18:08 +000033548
John Criswell7a73b802003-06-30 21:59:07 +000033549rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033550{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33551echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033552
33553# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033554case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33555 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33557echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33559echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33560 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033561 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033562 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33564echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33566echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33568echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33570echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33572echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33574echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033575 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033576## ----------------------------------- ##
33577## Report this to llvmbugs@cs.uiuc.edu ##
33578## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033579_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033580 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033581 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033582esac
Reid Spencera773bd52006-08-04 18:18:08 +000033583{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033586 echo $ECHO_N "(cached) $ECHO_C" >&6
33587else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033588 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033589fi
Reid Spencera773bd52006-08-04 18:18:08 +000033590ac_res=`eval echo '${'$as_ac_Header'}'`
33591 { echo "$as_me:$LINENO: result: $ac_res" >&5
33592echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033593
33594fi
33595if test `eval echo '${'$as_ac_Header'}'` = yes; then
33596 cat >>confdefs.h <<_ACEOF
33597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33598_ACEOF
33599
33600fi
33601
33602done
33603
33604
33605for ac_func in getpagesize
33606do
33607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033608{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33610if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033611 echo $ECHO_N "(cached) $ECHO_C" >&6
33612else
33613 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033614/* confdefs.h. */
33615_ACEOF
33616cat confdefs.h >>conftest.$ac_ext
33617cat >>conftest.$ac_ext <<_ACEOF
33618/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33621#define $ac_func innocuous_$ac_func
33622
John Criswell7a73b802003-06-30 21:59:07 +000033623/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033624 which can conflict with char $ac_func (); below.
33625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33626 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033627
John Criswell0c38eaf2003-09-10 15:17:25 +000033628#ifdef __STDC__
33629# include <limits.h>
33630#else
33631# include <assert.h>
33632#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033633
33634#undef $ac_func
33635
Reid Spencera773bd52006-08-04 18:18:08 +000033636/* Override any GCC internal prototype to avoid an error.
33637 Use char because int might match the return type of a GCC
33638 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033639#ifdef __cplusplus
33640extern "C"
33641#endif
John Criswell7a73b802003-06-30 21:59:07 +000033642char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033643/* The GNU C library defines this for functions which it implements
33644 to always fail with ENOSYS. Some functions are actually named
33645 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033646#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033647choke me
John Criswell7a73b802003-06-30 21:59:07 +000033648#endif
33649
John Criswell0c38eaf2003-09-10 15:17:25 +000033650int
33651main ()
33652{
Reid Spencera773bd52006-08-04 18:18:08 +000033653return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033654 ;
33655 return 0;
33656}
33657_ACEOF
33658rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033659if { (ac_try="$ac_link"
33660case "(($ac_try" in
33661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33662 *) ac_try_echo=$ac_try;;
33663esac
33664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33665 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033666 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033667 grep -v '^ *+' conftest.er1 >conftest.err
33668 rm -f conftest.er1
33669 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033671 (exit $ac_status); } &&
33672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33673 { (case "(($ac_try" in
33674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33675 *) ac_try_echo=$ac_try;;
33676esac
33677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33678 (eval "$ac_try") 2>&5
33679 ac_status=$?
33680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33681 (exit $ac_status); }; } &&
33682 { ac_try='test -s conftest$ac_exeext'
33683 { (case "(($ac_try" in
33684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33685 *) ac_try_echo=$ac_try;;
33686esac
33687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33688 (eval "$ac_try") 2>&5
33689 ac_status=$?
33690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033692 eval "$as_ac_var=yes"
33693else
33694 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033695sed 's/^/| /' conftest.$ac_ext >&5
33696
Reid Spencera773bd52006-08-04 18:18:08 +000033697 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033698fi
Reid Spencera773bd52006-08-04 18:18:08 +000033699
Bill Wendlingebcceee2009-04-18 11:20:33 +000033700rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033701 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033702fi
Reid Spencera773bd52006-08-04 18:18:08 +000033703ac_res=`eval echo '${'$as_ac_var'}'`
33704 { echo "$as_me:$LINENO: result: $ac_res" >&5
33705echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033706if test `eval echo '${'$as_ac_var'}'` = yes; then
33707 cat >>confdefs.h <<_ACEOF
33708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33709_ACEOF
33710
33711fi
33712done
33713
Reid Spencera773bd52006-08-04 18:18:08 +000033714{ echo "$as_me:$LINENO: checking for working mmap" >&5
33715echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033716if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33717 echo $ECHO_N "(cached) $ECHO_C" >&6
33718else
33719 if test "$cross_compiling" = yes; then
33720 ac_cv_func_mmap_fixed_mapped=no
33721else
33722 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033723/* confdefs.h. */
33724_ACEOF
33725cat confdefs.h >>conftest.$ac_ext
33726cat >>conftest.$ac_ext <<_ACEOF
33727/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033728$ac_includes_default
33729/* malloc might have been renamed as rpl_malloc. */
33730#undef malloc
33731
33732/* Thanks to Mike Haertel and Jim Avera for this test.
33733 Here is a matrix of mmap possibilities:
33734 mmap private not fixed
33735 mmap private fixed at somewhere currently unmapped
33736 mmap private fixed at somewhere already mapped
33737 mmap shared not fixed
33738 mmap shared fixed at somewhere currently unmapped
33739 mmap shared fixed at somewhere already mapped
33740 For private mappings, we should verify that changes cannot be read()
33741 back from the file, nor mmap's back from the file at a different
33742 address. (There have been systems where private was not correctly
33743 implemented like the infamous i386 svr4.0, and systems where the
33744 VM page cache was not coherent with the file system buffer cache
33745 like early versions of FreeBSD and possibly contemporary NetBSD.)
33746 For shared mappings, we should conversely verify that changes get
33747 propagated back to all the places they're supposed to be.
33748
33749 Grep wants private fixed already mapped.
33750 The main things grep needs to know about mmap are:
33751 * does it exist and is it safe to write into the mmap'd area
33752 * how to use it (BSD variants) */
33753
33754#include <fcntl.h>
33755#include <sys/mman.h>
33756
Bill Wendlingebcceee2009-04-18 11:20:33 +000033757#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033758char *malloc ();
33759#endif
33760
33761/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033762#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033763/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033764# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033765# define HAVE_SYS_PARAM_H 1
33766# endif
33767
33768# ifdef _SC_PAGESIZE
33769# define getpagesize() sysconf(_SC_PAGESIZE)
33770# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033771# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033772# include <sys/param.h>
33773# ifdef EXEC_PAGESIZE
33774# define getpagesize() EXEC_PAGESIZE
33775# else /* no EXEC_PAGESIZE */
33776# ifdef NBPG
33777# define getpagesize() NBPG * CLSIZE
33778# ifndef CLSIZE
33779# define CLSIZE 1
33780# endif /* no CLSIZE */
33781# else /* no NBPG */
33782# ifdef NBPC
33783# define getpagesize() NBPC
33784# else /* no NBPC */
33785# ifdef PAGESIZE
33786# define getpagesize() PAGESIZE
33787# endif /* PAGESIZE */
33788# endif /* no NBPC */
33789# endif /* no NBPG */
33790# endif /* no EXEC_PAGESIZE */
33791# else /* no HAVE_SYS_PARAM_H */
33792# define getpagesize() 8192 /* punt totally */
33793# endif /* no HAVE_SYS_PARAM_H */
33794# endif /* no _SC_PAGESIZE */
33795
33796#endif /* no HAVE_GETPAGESIZE */
33797
33798int
33799main ()
33800{
33801 char *data, *data2, *data3;
33802 int i, pagesize;
33803 int fd;
33804
33805 pagesize = getpagesize ();
33806
33807 /* First, make a file with some known garbage in it. */
33808 data = (char *) malloc (pagesize);
33809 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033810 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033811 for (i = 0; i < pagesize; ++i)
33812 *(data + i) = rand ();
33813 umask (0);
33814 fd = creat ("conftest.mmap", 0600);
33815 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033816 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033817 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033818 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033819 close (fd);
33820
33821 /* Next, try to mmap the file at a fixed address which already has
33822 something else allocated at it. If we can, also make sure that
33823 we see the same garbage. */
33824 fd = open ("conftest.mmap", O_RDWR);
33825 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033826 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033827 data2 = (char *) malloc (2 * pagesize);
33828 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033829 return 1;
33830 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033831 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033832 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033833 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033834 for (i = 0; i < pagesize; ++i)
33835 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033836 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033837
33838 /* Finally, make sure that changes to the mapped area do not
33839 percolate back to the file as seen by read(). (This is a bug on
33840 some variants of i386 svr4.0.) */
33841 for (i = 0; i < pagesize; ++i)
33842 *(data2 + i) = *(data2 + i) + 1;
33843 data3 = (char *) malloc (pagesize);
33844 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033845 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033846 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033847 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033848 for (i = 0; i < pagesize; ++i)
33849 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033850 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033851 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033852 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033853}
33854_ACEOF
33855rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033856if { (ac_try="$ac_link"
33857case "(($ac_try" in
33858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33859 *) ac_try_echo=$ac_try;;
33860esac
33861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33862 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033863 ac_status=$?
33864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033866 { (case "(($ac_try" in
33867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33868 *) ac_try_echo=$ac_try;;
33869esac
33870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33871 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033872 ac_status=$?
33873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); }; }; then
33875 ac_cv_func_mmap_fixed_mapped=yes
33876else
33877 echo "$as_me: program exited with status $ac_status" >&5
33878echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033879sed 's/^/| /' conftest.$ac_ext >&5
33880
John Criswell7a73b802003-06-30 21:59:07 +000033881( exit $ac_status )
33882ac_cv_func_mmap_fixed_mapped=no
33883fi
Reid Spencera773bd52006-08-04 18:18:08 +000033884rm -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 +000033885fi
Reid Spencera773bd52006-08-04 18:18:08 +000033886
33887
John Criswell7a73b802003-06-30 21:59:07 +000033888fi
Reid Spencera773bd52006-08-04 18:18:08 +000033889{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33890echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033891if test $ac_cv_func_mmap_fixed_mapped = yes; then
33892
33893cat >>confdefs.h <<\_ACEOF
33894#define HAVE_MMAP 1
33895_ACEOF
33896
33897fi
33898rm -f conftest.mmap
33899
Reid Spencer30fe5262007-01-20 07:48:49 +000033900 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033901echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033902if test "${ac_cv_func_mmap_file+set}" = set; then
33903 echo $ECHO_N "(cached) $ECHO_C" >&6
33904else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033905 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033906ac_cpp='$CPP $CPPFLAGS'
33907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33909ac_compiler_gnu=$ac_cv_c_compiler_gnu
33910
33911 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033912 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033913else
33914 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033915
Reid Spencer777ce172004-09-20 04:09:56 +000033916 /* confdefs.h. */
33917_ACEOF
33918cat confdefs.h >>conftest.$ac_ext
33919cat >>conftest.$ac_ext <<_ACEOF
33920/* end confdefs.h. */
33921
John Criswell7a73b802003-06-30 21:59:07 +000033922#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033923#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033924#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033925
33926int
33927main ()
33928{
John Criswell7a73b802003-06-30 21:59:07 +000033929
33930 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033931 fd = creat ("foo",0777);
33932 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33933 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033934 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033935 ;
33936 return 0;
33937}
John Criswell7a73b802003-06-30 21:59:07 +000033938_ACEOF
33939rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033940if { (ac_try="$ac_link"
33941case "(($ac_try" in
33942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33943 *) ac_try_echo=$ac_try;;
33944esac
33945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33946 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033947 ac_status=$?
33948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033950 { (case "(($ac_try" in
33951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33952 *) ac_try_echo=$ac_try;;
33953esac
33954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33955 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033956 ac_status=$?
33957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 (exit $ac_status); }; }; then
33959 ac_cv_func_mmap_file=yes
33960else
33961 echo "$as_me: program exited with status $ac_status" >&5
33962echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033963sed 's/^/| /' conftest.$ac_ext >&5
33964
John Criswell7a73b802003-06-30 21:59:07 +000033965( exit $ac_status )
33966ac_cv_func_mmap_file=no
33967fi
Reid Spencera773bd52006-08-04 18:18:08 +000033968rm -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 +000033969fi
Reid Spencera773bd52006-08-04 18:18:08 +000033970
33971
John Criswell7a73b802003-06-30 21:59:07 +000033972 ac_ext=c
33973ac_cpp='$CPP $CPPFLAGS'
33974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33976ac_compiler_gnu=$ac_cv_c_compiler_gnu
33977
33978
33979fi
Reid Spencera773bd52006-08-04 18:18:08 +000033980{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33981echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033982if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033983
33984cat >>confdefs.h <<\_ACEOF
33985#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033986_ACEOF
33987
33988 MMAP_FILE=yes
33989
33990fi
33991
Reid Spencer30fe5262007-01-20 07:48:49 +000033992 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033993echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033994if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33995 echo $ECHO_N "(cached) $ECHO_C" >&6
33996else
Reid Spencer582a23c2004-12-29 07:07:57 +000033997 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033998 ac_cv_need_dev_zero_for_mmap=yes
33999 else
34000 ac_cv_need_dev_zero_for_mmap=no
34001 fi
34002
34003fi
Reid Spencera773bd52006-08-04 18:18:08 +000034004{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34005echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034006if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34007
34008cat >>confdefs.h <<\_ACEOF
34009#define NEED_DEV_ZERO_FOR_MMAP 1
34010_ACEOF
34011
34012fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034013
Reid Spencer30fe5262007-01-20 07:48:49 +000034014 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34015 then
34016 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034017echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034018 fi
34019 if test "$ac_cv_func_mmap_file" = "no"
34020 then
34021 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034022echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034023 fi
John Criswellb13092b2003-07-22 21:00:24 +000034024fi
John Criswell7a73b802003-06-30 21:59:07 +000034025
Owen Andersona8603702009-05-19 22:18:56 +000034026{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000034027echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034028cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000034029/* confdefs.h. */
34030_ACEOF
34031cat confdefs.h >>conftest.$ac_ext
34032cat >>conftest.$ac_ext <<_ACEOF
34033/* end confdefs.h. */
34034int main() {
Owen Andersona8603702009-05-19 22:18:56 +000034035 volatile unsigned long val = 1;
34036 __sync_synchronize();
34037 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000034038 __sync_add_and_fetch(&val, 1);
34039 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000034040 return 0;
34041 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034042
34043_ACEOF
34044rm -f conftest.$ac_objext conftest$ac_exeext
34045if { (ac_try="$ac_link"
34046case "(($ac_try" in
34047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34048 *) ac_try_echo=$ac_try;;
34049esac
34050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34051 (eval "$ac_link") 2>conftest.er1
34052 ac_status=$?
34053 grep -v '^ *+' conftest.er1 >conftest.err
34054 rm -f conftest.er1
34055 cat conftest.err >&5
34056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057 (exit $ac_status); } &&
34058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34059 { (case "(($ac_try" in
34060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34061 *) ac_try_echo=$ac_try;;
34062esac
34063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34064 (eval "$ac_try") 2>&5
34065 ac_status=$?
34066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34067 (exit $ac_status); }; } &&
34068 { ac_try='test -s conftest$ac_exeext'
34069 { (case "(($ac_try" in
34070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34071 *) ac_try_echo=$ac_try;;
34072esac
34073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34074 (eval "$ac_try") 2>&5
34075 ac_status=$?
34076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34077 (exit $ac_status); }; }; then
34078 { echo "$as_me:$LINENO: result: yes" >&5
34079echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034080
34081cat >>confdefs.h <<\_ACEOF
34082#define LLVM_MULTITHREADED 1
34083_ACEOF
34084
Owen Andersond4b272b2009-05-18 23:58:51 +000034085else
34086 echo "$as_me: failed program was:" >&5
34087sed 's/^/| /' conftest.$ac_ext >&5
34088
34089 { echo "$as_me:$LINENO: result: no" >&5
34090echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034091
Owen Andersona8603702009-05-19 22:18:56 +000034092cat >>confdefs.h <<\_ACEOF
34093#define LLVM_MULTITHREADED 0
34094_ACEOF
34095
34096 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34097echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034098fi
34099
34100rm -f core conftest.err conftest.$ac_objext \
34101 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034102
34103
John Criswell7a73b802003-06-30 21:59:07 +000034104
Reid Spencer9372f152007-07-30 20:13:24 +000034105
34106for ac_func in __dso_handle
34107do
34108as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34109{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34110echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34111if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34112 echo $ECHO_N "(cached) $ECHO_C" >&6
34113else
34114 cat >conftest.$ac_ext <<_ACEOF
34115/* confdefs.h. */
34116_ACEOF
34117cat confdefs.h >>conftest.$ac_ext
34118cat >>conftest.$ac_ext <<_ACEOF
34119/* end confdefs.h. */
34120/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34122#define $ac_func innocuous_$ac_func
34123
34124/* System header to define __stub macros and hopefully few prototypes,
34125 which can conflict with char $ac_func (); below.
34126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34127 <limits.h> exists even on freestanding compilers. */
34128
34129#ifdef __STDC__
34130# include <limits.h>
34131#else
34132# include <assert.h>
34133#endif
34134
34135#undef $ac_func
34136
34137/* Override any GCC internal prototype to avoid an error.
34138 Use char because int might match the return type of a GCC
34139 builtin and then its argument prototype would still apply. */
34140#ifdef __cplusplus
34141extern "C"
34142#endif
34143char $ac_func ();
34144/* The GNU C library defines this for functions which it implements
34145 to always fail with ENOSYS. Some functions are actually named
34146 something starting with __ and the normal name is an alias. */
34147#if defined __stub_$ac_func || defined __stub___$ac_func
34148choke me
34149#endif
34150
34151int
34152main ()
34153{
34154return $ac_func ();
34155 ;
34156 return 0;
34157}
34158_ACEOF
34159rm -f conftest.$ac_objext conftest$ac_exeext
34160if { (ac_try="$ac_link"
34161case "(($ac_try" in
34162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34163 *) ac_try_echo=$ac_try;;
34164esac
34165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34166 (eval "$ac_link") 2>conftest.er1
34167 ac_status=$?
34168 grep -v '^ *+' conftest.er1 >conftest.err
34169 rm -f conftest.er1
34170 cat conftest.err >&5
34171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034172 (exit $ac_status); } &&
34173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34174 { (case "(($ac_try" in
34175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34176 *) ac_try_echo=$ac_try;;
34177esac
34178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34179 (eval "$ac_try") 2>&5
34180 ac_status=$?
34181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34182 (exit $ac_status); }; } &&
34183 { ac_try='test -s conftest$ac_exeext'
34184 { (case "(($ac_try" in
34185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34186 *) ac_try_echo=$ac_try;;
34187esac
34188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34189 (eval "$ac_try") 2>&5
34190 ac_status=$?
34191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034193 eval "$as_ac_var=yes"
34194else
34195 echo "$as_me: failed program was:" >&5
34196sed 's/^/| /' conftest.$ac_ext >&5
34197
34198 eval "$as_ac_var=no"
34199fi
34200
Bill Wendlingebcceee2009-04-18 11:20:33 +000034201rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034202 conftest$ac_exeext conftest.$ac_ext
34203fi
34204ac_res=`eval echo '${'$as_ac_var'}'`
34205 { echo "$as_me:$LINENO: result: $ac_res" >&5
34206echo "${ECHO_T}$ac_res" >&6; }
34207if test `eval echo '${'$as_ac_var'}'` = yes; then
34208 cat >>confdefs.h <<_ACEOF
34209#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34210_ACEOF
34211
34212fi
34213done
34214
34215
Reid Spencera773bd52006-08-04 18:18:08 +000034216{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34217echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034218if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34219 echo $ECHO_N "(cached) $ECHO_C" >&6
34220else
34221 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034222if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034223 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034224 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34225 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034226 if test $? -eq 0 ; then
34227 llvm_cv_llvmgcc_sanity="yes"
34228 fi
34229 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034230fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034231fi
Reid Spencera773bd52006-08-04 18:18:08 +000034232{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34233echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034234
34235if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034236 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34237echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034238 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034239 LLVMCC1=$llvmcc1path
34240
Reid Spencer502935f2004-12-22 05:56:56 +000034241 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034242 LLVMCC1PLUS=$llvmcc1pluspath
34243
Reid Spencer502935f2004-12-22 05:56:56 +000034244 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34245 LLVMGCCDIR=$llvmgccdir
34246
Reid Spencer282d8c12006-12-21 22:55:41 +000034247 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34248 LLVMGCCLIBEXEC=$llvmgcclibexec
34249
Reid Spencerb5d75b82006-05-09 00:31:01 +000034250 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034251 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34252 LLVMGCC_VERSION=$llvmgccversion
34253
34254 LLVMGCC_MAJVERS=$llvmgccmajvers
34255
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000034256 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000034257 LLVMGCC_LANGS=$llvmgcclangs
34258
34259 { echo "$as_me:$LINENO: result: ok" >&5
34260echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034261fi
34262
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034263SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034264
34265
Reid Spencere9de0912004-08-20 09:03:57 +000034266# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034267# information into substitutions that will end up in Makefile.config.in
34268# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034269if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034270 prefix="/usr/local"
34271fi
Reid Spencere9de0912004-08-20 09:03:57 +000034272eval LLVM_PREFIX="${prefix}";
34273eval LLVM_BINDIR="${prefix}/bin";
34274eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034275eval LLVM_DATADIR="${prefix}/share/llvm";
34276eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34277eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034278eval LLVM_INCLUDEDIR="${prefix}/include";
34279eval LLVM_INFODIR="${prefix}/info";
34280eval LLVM_MANDIR="${prefix}/man";
34281LLVM_CONFIGTIME=`date`
34282
34283
34284
34285
34286
34287
34288
34289
34290
34291
34292
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034293# Place the various directores into the config.h file as #defines so that we
34294# can know about the installation paths within LLVM.
34295
Reid Spencere9de0912004-08-20 09:03:57 +000034296cat >>confdefs.h <<_ACEOF
34297#define LLVM_PREFIX "$LLVM_PREFIX"
34298_ACEOF
34299
34300
34301cat >>confdefs.h <<_ACEOF
34302#define LLVM_BINDIR "$LLVM_BINDIR"
34303_ACEOF
34304
34305
34306cat >>confdefs.h <<_ACEOF
34307#define LLVM_LIBDIR "$LLVM_LIBDIR"
34308_ACEOF
34309
34310
34311cat >>confdefs.h <<_ACEOF
34312#define LLVM_DATADIR "$LLVM_DATADIR"
34313_ACEOF
34314
34315
34316cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034317#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034318_ACEOF
34319
34320
34321cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034322#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034323_ACEOF
34324
34325
34326cat >>confdefs.h <<_ACEOF
34327#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34328_ACEOF
34329
34330
34331cat >>confdefs.h <<_ACEOF
34332#define LLVM_INFODIR "$LLVM_INFODIR"
34333_ACEOF
34334
34335
34336cat >>confdefs.h <<_ACEOF
34337#define LLVM_MANDIR "$LLVM_MANDIR"
34338_ACEOF
34339
34340
34341cat >>confdefs.h <<_ACEOF
34342#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34343_ACEOF
34344
34345
Eric Christopher790e11c2007-12-01 00:34:39 +000034346cat >>confdefs.h <<_ACEOF
34347#define LLVM_HOSTTRIPLE "$host"
34348_ACEOF
34349
34350
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034351# Determine which bindings to build.
34352if test "$BINDINGS_TO_BUILD" = auto ; then
34353 BINDINGS_TO_BUILD=""
34354 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34355 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34356 fi
34357fi
34358BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34359
34360
34361# This isn't really configurey, but it avoids having to repeat the list in
34362# other files.
34363ALL_BINDINGS=ocaml
34364
34365
Gordon Henriksenf0915682007-10-02 16:42:22 +000034366# Do any work necessary to ensure that bindings have what they need.
34367binding_prereqs_failed=0
34368for a_binding in $BINDINGS_TO_BUILD ; do
34369 case "$a_binding" in
34370 ocaml)
34371 if test "x$OCAMLC" = x ; then
34372 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34373echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34374 binding_prereqs_failed=1
34375 fi
34376 if test "x$OCAMLDEP" = x ; then
34377 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34378echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34379 binding_prereqs_failed=1
34380 fi
34381 if test "x$OCAMLOPT" = x ; then
34382 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34383echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34384 fi
34385 if test "x$with_ocaml_libdir" != xauto ; then
34386 OCAML_LIBDIR=$with_ocaml_libdir
34387
34388 else
34389 ocaml_stdlib="`"$OCAMLC" -where`"
34390 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34391 then
34392 # ocaml stdlib is beneath our prefix; use stdlib
34393 OCAML_LIBDIR=$ocaml_stdlib
34394
34395 else
34396 # ocaml stdlib is outside our prefix; use libdir/ocaml
34397 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34398
34399 fi
34400 fi
34401 ;;
34402 esac
34403done
34404if test "$binding_prereqs_failed" = 1 ; then
34405 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34406echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34407 { (exit 1); exit 1; }; }
34408fi
34409
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034410{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34411echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34412if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34413 echo $ECHO_N "(cached) $ECHO_C" >&6
34414else
34415 ac_ext=cpp
34416ac_cpp='$CXXCPP $CPPFLAGS'
34417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34420
34421 oldcxxflags="$CXXFLAGS"
34422 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34423 cat >conftest.$ac_ext <<_ACEOF
34424/* confdefs.h. */
34425_ACEOF
34426cat confdefs.h >>conftest.$ac_ext
34427cat >>conftest.$ac_ext <<_ACEOF
34428/* end confdefs.h. */
34429
34430int
34431main ()
34432{
34433
34434 ;
34435 return 0;
34436}
34437_ACEOF
34438rm -f conftest.$ac_objext
34439if { (ac_try="$ac_compile"
34440case "(($ac_try" in
34441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34442 *) ac_try_echo=$ac_try;;
34443esac
34444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34445 (eval "$ac_compile") 2>conftest.er1
34446 ac_status=$?
34447 grep -v '^ *+' conftest.er1 >conftest.err
34448 rm -f conftest.er1
34449 cat conftest.err >&5
34450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034451 (exit $ac_status); } &&
34452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34453 { (case "(($ac_try" in
34454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34455 *) ac_try_echo=$ac_try;;
34456esac
34457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34458 (eval "$ac_try") 2>&5
34459 ac_status=$?
34460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34461 (exit $ac_status); }; } &&
34462 { ac_try='test -s conftest.$ac_objext'
34463 { (case "(($ac_try" in
34464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34465 *) ac_try_echo=$ac_try;;
34466esac
34467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34468 (eval "$ac_try") 2>&5
34469 ac_status=$?
34470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034472 llvm_cv_cxx_visibility_inlines_hidden=yes
34473else
34474 echo "$as_me: failed program was:" >&5
34475sed 's/^/| /' conftest.$ac_ext >&5
34476
34477 llvm_cv_cxx_visibility_inlines_hidden=no
34478fi
34479
34480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34481 CXXFLAGS="$oldcxxflags"
34482 ac_ext=c
34483ac_cpp='$CPP $CPPFLAGS'
34484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34486ac_compiler_gnu=$ac_cv_c_compiler_gnu
34487
34488
34489fi
34490{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34491echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34492if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34493 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34494
34495else
34496 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34497
34498fi
34499
Gordon Henriksenf0915682007-10-02 16:42:22 +000034500
Nick Lewycky731c6ab2009-03-05 08:20:44 +000034501if test "$llvm_cv_link_use_r" = "yes" ; then
34502 RPATH="-Wl,-R"
34503else
34504 RPATH="-Wl,-rpath"
34505fi
34506
34507
34508if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34509 RDYNAMIC="-Wl,-export-dynamic"
34510else
34511 RDYNAMIC=""
34512fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000034513
34514
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034515
Reid Spencera773bd52006-08-04 18:18:08 +000034516ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034517
Douglas Gregor1555a232009-06-16 20:12:29 +000034518ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
34519
34520ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
34521
Reid Spencera773bd52006-08-04 18:18:08 +000034522ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034523
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034524ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034525
34526
Reid Spencera773bd52006-08-04 18:18:08 +000034527ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034528
34529
Reid Spencerea949cf2006-08-16 00:45:38 +000034530ac_config_files="$ac_config_files llvm.spec"
34531
34532
Reid Spencera773bd52006-08-04 18:18:08 +000034533ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034534
34535
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000034536ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34537
34538
Reid Spencera773bd52006-08-04 18:18:08 +000034539ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034540
34541
Reid Spencera773bd52006-08-04 18:18:08 +000034542ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034543
Reid Spencera773bd52006-08-04 18:18:08 +000034544ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034545
34546
Reid Spencera773bd52006-08-04 18:18:08 +000034547ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034548
34549
Reid Spencera773bd52006-08-04 18:18:08 +000034550ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034551
34552
Reid Spencera773bd52006-08-04 18:18:08 +000034553ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034554
34555
Reid Spencer8b2e1412006-11-17 03:32:33 +000034556ac_config_commands="$ac_config_commands runtime/Makefile"
34557
34558
Reid Spencera773bd52006-08-04 18:18:08 +000034559ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034560
34561
Reid Spencera773bd52006-08-04 18:18:08 +000034562ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034563
34564
Bill Wendlingf24eb392009-01-04 23:12:30 +000034565ac_config_commands="$ac_config_commands unittests/Makefile"
34566
34567
Reid Spencera773bd52006-08-04 18:18:08 +000034568ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034569
34570
Reid Spencera773bd52006-08-04 18:18:08 +000034571ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034572
34573
Reid Spencera773bd52006-08-04 18:18:08 +000034574ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034575
34576
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034577ac_config_commands="$ac_config_commands bindings/Makefile"
34578
34579
34580ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34581
34582
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034583
John Criswell7a73b802003-06-30 21:59:07 +000034584cat >confcache <<\_ACEOF
34585# This file is a shell script that caches the results of configure
34586# tests run on this system so they can be shared between configure
34587# scripts and configure runs, see configure's option --config-cache.
34588# It is not useful on other systems. If it contains results you don't
34589# want to keep, you may remove or edit it.
34590#
34591# config.status only pays attention to the cache file if you give it
34592# the --recheck option to rerun configure.
34593#
John Criswell0c38eaf2003-09-10 15:17:25 +000034594# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034595# loading this file, other *unset* `ac_cv_foo' will be assigned the
34596# following values.
34597
34598_ACEOF
34599
34600# The following way of writing the cache mishandles newlines in values,
34601# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034602# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034603# Ultrix sh set writes to stderr and can't be redirected directly,
34604# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034605(
34606 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34607 eval ac_val=\$$ac_var
34608 case $ac_val in #(
34609 *${as_nl}*)
34610 case $ac_var in #(
34611 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34612echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34613 esac
34614 case $ac_var in #(
34615 _ | IFS | as_nl) ;; #(
34616 *) $as_unset $ac_var ;;
34617 esac ;;
34618 esac
34619 done
34620
John Criswell7a73b802003-06-30 21:59:07 +000034621 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034622 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34623 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034624 # `set' does not quote correctly, so add quotes (double-quote
34625 # substitution turns \\\\ into \\, and sed turns \\ into \).
34626 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034627 "s/'/'\\\\''/g;
34628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034629 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034630 *)
34631 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034633 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034634 esac |
34635 sort
34636) |
John Criswell7a73b802003-06-30 21:59:07 +000034637 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034638 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034639 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034640 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034641 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34642 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034643 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34644 :end' >>confcache
34645if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34646 if test -w "$cache_file"; then
34647 test "x$cache_file" != "x/dev/null" &&
34648 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34649echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034650 cat confcache >$cache_file
34651 else
Reid Spencera773bd52006-08-04 18:18:08 +000034652 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34653echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034654 fi
34655fi
34656rm -f confcache
34657
34658test "x$prefix" = xNONE && prefix=$ac_default_prefix
34659# Let make expand exec_prefix.
34660test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34661
John Criswell7a73b802003-06-30 21:59:07 +000034662DEFS=-DHAVE_CONFIG_H
34663
John Criswell0c38eaf2003-09-10 15:17:25 +000034664ac_libobjs=
34665ac_ltlibobjs=
34666for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34667 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034668 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34669 ac_i=`echo "$ac_i" | sed "$ac_script"`
34670 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34671 # will be set to the directory where LIBOBJS objects are built.
34672 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34673 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034674done
34675LIBOBJS=$ac_libobjs
34676
34677LTLIBOBJS=$ac_ltlibobjs
34678
34679
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034680if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34681 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34682Usually this means the macro was only invoked conditionally." >&5
34683echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34684Usually this means the macro was only invoked conditionally." >&2;}
34685 { (exit 1); exit 1; }; }
34686fi
34687if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34688 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34689Usually this means the macro was only invoked conditionally." >&5
34690echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34691Usually this means the macro was only invoked conditionally." >&2;}
34692 { (exit 1); exit 1; }; }
34693fi
John Criswell7a73b802003-06-30 21:59:07 +000034694
34695: ${CONFIG_STATUS=./config.status}
34696ac_clean_files_save=$ac_clean_files
34697ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34698{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34699echo "$as_me: creating $CONFIG_STATUS" >&6;}
34700cat >$CONFIG_STATUS <<_ACEOF
34701#! $SHELL
34702# Generated by $as_me.
34703# Run this file to recreate the current configuration.
34704# Compiler output produced by configure, useful for debugging
34705# configure, is in config.log if it exists.
34706
34707debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034708ac_cs_recheck=false
34709ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034710SHELL=\${CONFIG_SHELL-$SHELL}
34711_ACEOF
34712
34713cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034714## --------------------- ##
34715## M4sh Initialization. ##
34716## --------------------- ##
34717
Bill Wendlingebcceee2009-04-18 11:20:33 +000034718# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034719if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34720 emulate sh
34721 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034722 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34723 # is contrary to our usage. Disable this feature.
34724 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034725 setopt NO_GLOB_SUBST
34726else
Bill Wendlingebcceee2009-04-18 11:20:33 +000034727 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034728fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000034729BIN_SH=xpg4; export BIN_SH # for Tru64
34730DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034731
John Criswell7a73b802003-06-30 21:59:07 +000034732
Reid Spencera773bd52006-08-04 18:18:08 +000034733# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034734# Avoid depending upon Character Ranges.
34735as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34736as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34737as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34738as_cr_digits='0123456789'
34739as_cr_alnum=$as_cr_Letters$as_cr_digits
34740
34741# The user is always right.
34742if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034743 echo "#! /bin/sh" >conf$$.sh
34744 echo "exit 0" >>conf$$.sh
34745 chmod +x conf$$.sh
34746 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034747 PATH_SEPARATOR=';'
34748 else
34749 PATH_SEPARATOR=:
34750 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034751 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034752fi
34753
Reid Spencera773bd52006-08-04 18:18:08 +000034754# Support unset when possible.
34755if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34756 as_unset=unset
34757else
34758 as_unset=false
34759fi
John Criswell7a73b802003-06-30 21:59:07 +000034760
Reid Spencera773bd52006-08-04 18:18:08 +000034761
34762# IFS
34763# We need space, tab and new line, in precisely that order. Quoting is
34764# there to prevent editors from complaining about space-tab.
34765# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34766# splitting by setting IFS to empty value.)
34767as_nl='
34768'
34769IFS=" "" $as_nl"
34770
34771# Find who we are. Look in the path if we contain no directory separator.
34772case $0 in
34773 *[\\/]* ) as_myself=$0 ;;
34774 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034775for as_dir in $PATH
34776do
34777 IFS=$as_save_IFS
34778 test -z "$as_dir" && as_dir=.
34779 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34780done
Reid Spencera773bd52006-08-04 18:18:08 +000034781IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034782
Reid Spencera773bd52006-08-04 18:18:08 +000034783 ;;
34784esac
34785# We did not find ourselves, most probably we were run as `sh COMMAND'
34786# in which case we are not to be found in the path.
34787if test "x$as_myself" = x; then
34788 as_myself=$0
34789fi
34790if test ! -f "$as_myself"; then
34791 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34792 { (exit 1); exit 1; }
34793fi
34794
34795# Work around bugs in pre-3.0 UWIN ksh.
34796for as_var in ENV MAIL MAILPATH
34797do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34798done
34799PS1='$ '
34800PS2='> '
34801PS4='+ '
34802
34803# NLS nuisances.
34804for as_var in \
34805 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34806 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34807 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034808do
Reid Spencera773bd52006-08-04 18:18:08 +000034809 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34810 eval $as_var=C; export $as_var
34811 else
34812 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34813 fi
34814done
34815
34816# Required to use basename.
34817if expr a : '\(a\)' >/dev/null 2>&1 &&
34818 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34819 as_expr=expr
34820else
34821 as_expr=false
34822fi
34823
34824if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34825 as_basename=basename
34826else
34827 as_basename=false
34828fi
34829
34830
34831# Name of the executable.
34832as_me=`$as_basename -- "$0" ||
34833$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34834 X"$0" : 'X\(//\)$' \| \
34835 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34836echo X/"$0" |
34837 sed '/^.*\/\([^/][^/]*\)\/*$/{
34838 s//\1/
34839 q
34840 }
34841 /^X\/\(\/\/\)$/{
34842 s//\1/
34843 q
34844 }
34845 /^X\/\(\/\).*/{
34846 s//\1/
34847 q
34848 }
34849 s/.*/./; q'`
34850
34851# CDPATH.
34852$as_unset CDPATH
34853
34854
34855
John Criswell7a73b802003-06-30 21:59:07 +000034856 as_lineno_1=$LINENO
34857 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034858 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034859 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034860
34861 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34862 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034863 # line-number line after each line using $LINENO; the second 'sed'
34864 # does the real work. The second script uses 'N' to pair each
34865 # line-number line with the line containing $LINENO, and appends
34866 # trailing '-' during substitution so that $LINENO is not a special
34867 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034868 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034869 # scripts with optimization help from Paolo Bonzini. Blame Lee
34870 # E. McMahon (1931-1989) for sed's syntax. :-)
34871 sed -n '
34872 p
34873 /[$]LINENO/=
34874 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034875 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034876 s/[$]LINENO.*/&-/
34877 t lineno
34878 b
34879 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034880 N
Reid Spencera773bd52006-08-04 18:18:08 +000034881 :loop
34882 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034883 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034884 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034885 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034886 chmod +x "$as_me.lineno" ||
34887 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034888 { (exit 1); exit 1; }; }
34889
34890 # Don't try to exec as it changes $[0], causing all sort of problems
34891 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034892 # original and so on. Autoconf is especially sensitive to this).
34893 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034894 # Exit status is that of the last command.
34895 exit
34896}
34897
34898
Reid Spencera773bd52006-08-04 18:18:08 +000034899if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34900 as_dirname=dirname
34901else
34902 as_dirname=false
34903fi
34904
34905ECHO_C= ECHO_N= ECHO_T=
34906case `echo -n x` in
34907-n*)
34908 case `echo 'x\c'` in
34909 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34910 *) ECHO_C='\c';;
34911 esac;;
34912*)
34913 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034914esac
34915
Reid Spencera773bd52006-08-04 18:18:08 +000034916if expr a : '\(a\)' >/dev/null 2>&1 &&
34917 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034918 as_expr=expr
34919else
34920 as_expr=false
34921fi
34922
34923rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034924if test -d conf$$.dir; then
34925 rm -f conf$$.dir/conf$$.file
34926else
34927 rm -f conf$$.dir
34928 mkdir conf$$.dir
34929fi
John Criswell7a73b802003-06-30 21:59:07 +000034930echo >conf$$.file
34931if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034932 as_ln_s='ln -s'
34933 # ... but there are two gotchas:
34934 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34935 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34936 # In both cases, we have to default to `cp -p'.
34937 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034938 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034939elif ln conf$$.file conf$$ 2>/dev/null; then
34940 as_ln_s=ln
34941else
34942 as_ln_s='cp -p'
34943fi
Reid Spencera773bd52006-08-04 18:18:08 +000034944rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34945rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034946
John Criswell0c38eaf2003-09-10 15:17:25 +000034947if mkdir -p . 2>/dev/null; then
34948 as_mkdir_p=:
34949else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034950 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034951 as_mkdir_p=false
34952fi
34953
Bill Wendlingebcceee2009-04-18 11:20:33 +000034954# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34955# systems may use methods other than mode bits to determine executability.
34956cat >conf$$.file <<_ASEOF
34957#! /bin/sh
34958exit 0
34959_ASEOF
34960chmod +x conf$$.file
34961if test -x conf$$.file >/dev/null 2>&1; then
34962 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034963else
Bill Wendlingebcceee2009-04-18 11:20:33 +000034964 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034965fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000034966rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034967
34968# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034969as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034970
34971# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034972as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034973
34974
John Criswell7a73b802003-06-30 21:59:07 +000034975exec 6>&1
34976
Reid Spencera773bd52006-08-04 18:18:08 +000034977# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034978# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034979# values after options handling.
34980ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034981This file was extended by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000034982generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034983
34984 CONFIG_FILES = $CONFIG_FILES
34985 CONFIG_HEADERS = $CONFIG_HEADERS
34986 CONFIG_LINKS = $CONFIG_LINKS
34987 CONFIG_COMMANDS = $CONFIG_COMMANDS
34988 $ $0 $@
34989
Reid Spencera773bd52006-08-04 18:18:08 +000034990on `(hostname || uname -n) 2>/dev/null | sed 1q`
34991"
34992
John Criswell7a73b802003-06-30 21:59:07 +000034993_ACEOF
34994
Reid Spencera773bd52006-08-04 18:18:08 +000034995cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034996# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034997config_files="$ac_config_files"
34998config_headers="$ac_config_headers"
34999config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035000
Reid Spencera773bd52006-08-04 18:18:08 +000035001_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035002
35003cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035004ac_cs_usage="\
35005\`$as_me' instantiates files from templates according to the
35006current configuration.
35007
35008Usage: $0 [OPTIONS] [FILE]...
35009
35010 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000035011 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035012 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035013 -d, --debug don't remove temporary files
35014 --recheck update $as_me by reconfiguring in the same conditions
35015 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035016 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035017 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035018 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035019
35020Configuration files:
35021$config_files
35022
35023Configuration headers:
35024$config_headers
35025
John Criswellc764fbc2003-09-06 15:17:13 +000035026Configuration commands:
35027$config_commands
35028
John Criswell7a73b802003-06-30 21:59:07 +000035029Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035030
Reid Spencera773bd52006-08-04 18:18:08 +000035031_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035032cat >>$CONFIG_STATUS <<_ACEOF
35033ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035034llvm config.status 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000035035configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035036 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035037
Reid Spencera773bd52006-08-04 18:18:08 +000035038Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035039This config.status script is free software; the Free Software Foundation
35040gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035041
35042ac_pwd='$ac_pwd'
35043srcdir='$srcdir'
35044INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035045_ACEOF
35046
35047cat >>$CONFIG_STATUS <<\_ACEOF
35048# If no file are specified by the user, then we need to provide default
35049# value. By we need to know if files were specified by the user.
35050ac_need_defaults=:
35051while test $# != 0
35052do
35053 case $1 in
35054 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035055 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35056 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035057 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035058 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035059 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035060 ac_option=$1
35061 ac_optarg=$2
35062 ac_shift=shift
35063 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035064 esac
35065
John Criswell0c38eaf2003-09-10 15:17:25 +000035066 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035067 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035068 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35069 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035070 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35071 echo "$ac_cs_version"; exit ;;
35072 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035073 debug=: ;;
35074 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035075 $ac_shift
35076 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035077 ac_need_defaults=false;;
35078 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035079 $ac_shift
35080 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035081 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035082 --he | --h)
35083 # Conflict between --help and --header
35084 { echo "$as_me: error: ambiguous option: $1
35085Try \`$0 --help' for more information." >&2
35086 { (exit 1); exit 1; }; };;
35087 --help | --hel | -h )
35088 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35090 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35091 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035092
35093 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035094 -*) { echo "$as_me: error: unrecognized option: $1
35095Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035096 { (exit 1); exit 1; }; } ;;
35097
Reid Spencera773bd52006-08-04 18:18:08 +000035098 *) ac_config_targets="$ac_config_targets $1"
35099 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035100
35101 esac
35102 shift
35103done
35104
John Criswell0c38eaf2003-09-10 15:17:25 +000035105ac_configure_extra_args=
35106
35107if $ac_cs_silent; then
35108 exec 6>/dev/null
35109 ac_configure_extra_args="$ac_configure_extra_args --silent"
35110fi
35111
35112_ACEOF
35113cat >>$CONFIG_STATUS <<_ACEOF
35114if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035115 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35116 CONFIG_SHELL=$SHELL
35117 export CONFIG_SHELL
35118 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035119fi
35120
John Criswell7a73b802003-06-30 21:59:07 +000035121_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035122cat >>$CONFIG_STATUS <<\_ACEOF
35123exec 5>>config.log
35124{
35125 echo
35126 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35127## Running $as_me. ##
35128_ASBOX
35129 echo "$ac_log"
35130} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035131
Reid Spencera773bd52006-08-04 18:18:08 +000035132_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035133cat >>$CONFIG_STATUS <<_ACEOF
35134#
Reid Spencera773bd52006-08-04 18:18:08 +000035135# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035136#
Reid Spencerc0682832005-02-24 19:05:19 +000035137llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035138
35139_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035140
John Criswell7a73b802003-06-30 21:59:07 +000035141cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035142
35143# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035144for ac_config_target in $ac_config_targets
35145do
Reid Spencera773bd52006-08-04 18:18:08 +000035146 case $ac_config_target in
35147 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000035148 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35149 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035150 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035151 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035152 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035153 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035154 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035155 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035156 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35157 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35158 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35159 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35160 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35161 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035162 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035163 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35164 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035165 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035166 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35167 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35168 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035169 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35170 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035171
John Criswell7a73b802003-06-30 21:59:07 +000035172 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35173echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35174 { (exit 1); exit 1; }; };;
35175 esac
35176done
35177
Reid Spencera773bd52006-08-04 18:18:08 +000035178
John Criswell7a73b802003-06-30 21:59:07 +000035179# If the user did not use the arguments to specify the items to instantiate,
35180# then the envvar interface is used. Set only those that are not.
35181# We use the long form for the default assignment because of an extremely
35182# bizarre bug on SunOS 4.1.3.
35183if $ac_need_defaults; then
35184 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35185 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035186 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035187fi
35188
John Criswell0c38eaf2003-09-10 15:17:25 +000035189# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035190# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035191# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035192# Hook for its removal unless debugging.
35193# Note that there is a small window in which the directory will not be cleaned:
35194# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035195$debug ||
35196{
Reid Spencera773bd52006-08-04 18:18:08 +000035197 tmp=
35198 trap 'exit_status=$?
35199 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35200' 0
John Criswell7a73b802003-06-30 21:59:07 +000035201 trap '{ (exit 1); exit 1; }' 1 2 13 15
35202}
John Criswell7a73b802003-06-30 21:59:07 +000035203# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035204
John Criswell7a73b802003-06-30 21:59:07 +000035205{
Reid Spencera773bd52006-08-04 18:18:08 +000035206 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035207 test -n "$tmp" && test -d "$tmp"
35208} ||
35209{
Reid Spencera773bd52006-08-04 18:18:08 +000035210 tmp=./conf$$-$RANDOM
35211 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035212} ||
35213{
John Criswell0c38eaf2003-09-10 15:17:25 +000035214 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035215 { (exit 1); exit 1; }
35216}
35217
John Criswell7a73b802003-06-30 21:59:07 +000035218#
Reid Spencera773bd52006-08-04 18:18:08 +000035219# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035220#
35221
35222# No need to generate the scripts if there are no CONFIG_FILES.
35223# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035224if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035225
35226_ACEOF
35227
Reid Spencera773bd52006-08-04 18:18:08 +000035228
35229
35230ac_delim='%!_!# '
35231for ac_last_try in false false false false false :; do
35232 cat >conf$$subs.sed <<_ACEOF
35233SHELL!$SHELL$ac_delim
35234PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35235PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35236PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35237PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35238PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35239PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35240exec_prefix!$exec_prefix$ac_delim
35241prefix!$prefix$ac_delim
35242program_transform_name!$program_transform_name$ac_delim
35243bindir!$bindir$ac_delim
35244sbindir!$sbindir$ac_delim
35245libexecdir!$libexecdir$ac_delim
35246datarootdir!$datarootdir$ac_delim
35247datadir!$datadir$ac_delim
35248sysconfdir!$sysconfdir$ac_delim
35249sharedstatedir!$sharedstatedir$ac_delim
35250localstatedir!$localstatedir$ac_delim
35251includedir!$includedir$ac_delim
35252oldincludedir!$oldincludedir$ac_delim
35253docdir!$docdir$ac_delim
35254infodir!$infodir$ac_delim
35255htmldir!$htmldir$ac_delim
35256dvidir!$dvidir$ac_delim
35257pdfdir!$pdfdir$ac_delim
35258psdir!$psdir$ac_delim
35259libdir!$libdir$ac_delim
35260localedir!$localedir$ac_delim
35261mandir!$mandir$ac_delim
35262DEFS!$DEFS$ac_delim
35263ECHO_C!$ECHO_C$ac_delim
35264ECHO_N!$ECHO_N$ac_delim
35265ECHO_T!$ECHO_T$ac_delim
35266LIBS!$LIBS$ac_delim
35267build_alias!$build_alias$ac_delim
35268host_alias!$host_alias$ac_delim
35269target_alias!$target_alias$ac_delim
35270LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35271subdirs!$subdirs$ac_delim
35272build!$build$ac_delim
35273build_cpu!$build_cpu$ac_delim
35274build_vendor!$build_vendor$ac_delim
35275build_os!$build_os$ac_delim
35276host!$host$ac_delim
35277host_cpu!$host_cpu$ac_delim
35278host_vendor!$host_vendor$ac_delim
35279host_os!$host_os$ac_delim
35280target!$target$ac_delim
35281target_cpu!$target_cpu$ac_delim
35282target_vendor!$target_vendor$ac_delim
35283target_os!$target_os$ac_delim
35284OS!$OS$ac_delim
35285LINKALL!$LINKALL$ac_delim
35286NOLINKALL!$NOLINKALL$ac_delim
35287LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35288LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000035289ARCH!$ARCH$ac_delim
35290ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035291CC!$CC$ac_delim
35292CFLAGS!$CFLAGS$ac_delim
35293LDFLAGS!$LDFLAGS$ac_delim
35294CPPFLAGS!$CPPFLAGS$ac_delim
35295ac_ct_CC!$ac_ct_CC$ac_delim
35296EXEEXT!$EXEEXT$ac_delim
35297OBJEXT!$OBJEXT$ac_delim
35298CPP!$CPP$ac_delim
35299GREP!$GREP$ac_delim
35300EGREP!$EGREP$ac_delim
35301LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35302BUILD_CC!$BUILD_CC$ac_delim
35303BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000035304BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035305CVSBUILD!$CVSBUILD$ac_delim
35306ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000035307ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035308DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035309ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35310EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035311DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035312JIT!$JIT$ac_delim
35313TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35314ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35315ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035316ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035317TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000035318LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
35319LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035320ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035321EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000035322BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000035323ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
35324ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035325CXX!$CXX$ac_delim
35326CXXFLAGS!$CXXFLAGS$ac_delim
35327ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000035328NM!$NM$ac_delim
35329ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035330_ACEOF
35331
35332 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35333 break
35334 elif $ac_last_try; then
35335 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35336echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35337 { (exit 1); exit 1; }; }
35338 else
35339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035340 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035341done
35342
35343ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35344if test -n "$ac_eof"; then
35345 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35346 ac_eof=`expr $ac_eof + 1`
35347fi
35348
35349cat >>$CONFIG_STATUS <<_ACEOF
35350cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35351/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35352_ACEOF
35353sed '
35354s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35355s/^/s,@/; s/!/@,|#_!!_#|/
35356:n
35357t n
35358s/'"$ac_delim"'$/,g/; t
35359s/$/\\/; p
35360N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35361' >>$CONFIG_STATUS <conf$$subs.sed
35362rm -f conf$$subs.sed
35363cat >>$CONFIG_STATUS <<_ACEOF
35364CEOF$ac_eof
35365_ACEOF
35366
35367
35368ac_delim='%!_!# '
35369for ac_last_try in false false false false false :; do
35370 cat >conf$$subs.sed <<_ACEOF
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000035371LN_S!$LN_S$ac_delim
35372CMP!$CMP$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000035373CP!$CP$ac_delim
35374DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000035375FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035376MKDIR!$MKDIR$ac_delim
35377MV!$MV$ac_delim
35378RANLIB!$RANLIB$ac_delim
35379RM!$RM$ac_delim
35380SED!$SED$ac_delim
35381TAR!$TAR$ac_delim
35382BINPWD!$BINPWD$ac_delim
35383GRAPHVIZ!$GRAPHVIZ$ac_delim
35384DOT!$DOT$ac_delim
35385GV!$GV$ac_delim
35386DOTTY!$DOTTY$ac_delim
35387PERL!$PERL$ac_delim
35388HAVE_PERL!$HAVE_PERL$ac_delim
35389INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35390INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35391INSTALL_DATA!$INSTALL_DATA$ac_delim
35392BZIP2!$BZIP2$ac_delim
35393DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035394GROFF!$GROFF$ac_delim
35395GZIP!$GZIP$ac_delim
35396POD2HTML!$POD2HTML$ac_delim
35397POD2MAN!$POD2MAN$ac_delim
35398RUNTEST!$RUNTEST$ac_delim
35399TCLSH!$TCLSH$ac_delim
35400ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035401OCAMLC!$OCAMLC$ac_delim
35402OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035403OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035404OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000035405GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035406INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35407INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35408CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35409CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35410LIBADD_DL!$LIBADD_DL$ac_delim
35411ECHO!$ECHO$ac_delim
35412AR!$AR$ac_delim
35413STRIP!$STRIP$ac_delim
35414CXXCPP!$CXXCPP$ac_delim
35415F77!$F77$ac_delim
35416FFLAGS!$FFLAGS$ac_delim
35417ac_ct_F77!$ac_ct_F77$ac_delim
35418LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035419LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
35420LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000035421LLVMGCC!$LLVMGCC$ac_delim
35422LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035423USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035424HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035425HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035426ALLOCA!$ALLOCA$ac_delim
35427MMAP_FILE!$MMAP_FILE$ac_delim
35428LLVMCC1!$LLVMCC1$ac_delim
35429LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35430LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035431LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035432LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35433LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035434LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035435SHLIBEXT!$SHLIBEXT$ac_delim
35436LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35437LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35438LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35439LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35440LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35441LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35442LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35443LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35444LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35445LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035446BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35447ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035448OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035449ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035450RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035451RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035452LIBOBJS!$LIBOBJS$ac_delim
35453LTLIBOBJS!$LTLIBOBJS$ac_delim
35454_ACEOF
35455
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000035456 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
Reid Spencera773bd52006-08-04 18:18:08 +000035457 break
35458 elif $ac_last_try; then
35459 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35460echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35461 { (exit 1); exit 1; }; }
35462 else
35463 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35464 fi
35465done
35466
35467ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35468if test -n "$ac_eof"; then
35469 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35470 ac_eof=`expr $ac_eof + 1`
35471fi
35472
35473cat >>$CONFIG_STATUS <<_ACEOF
35474cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35475/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35476_ACEOF
35477sed '
35478s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35479s/^/s,@/; s/!/@,|#_!!_#|/
35480:n
35481t n
35482s/'"$ac_delim"'$/,g/; t
35483s/$/\\/; p
35484N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35485' >>$CONFIG_STATUS <conf$$subs.sed
35486rm -f conf$$subs.sed
35487cat >>$CONFIG_STATUS <<_ACEOF
35488:end
35489s/|#_!!_#|//g
35490CEOF$ac_eof
35491_ACEOF
35492
35493
35494# VPATH may cause trouble with some makes, so we remove $(srcdir),
35495# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35496# trailing colons and then remove the whole line if VPATH becomes empty
35497# (actually we leave an empty line to preserve line numbers).
35498if test "x$srcdir" = x.; then
35499 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35500s/:*\$(srcdir):*/:/
35501s/:*\${srcdir}:*/:/
35502s/:*@srcdir@:*/:/
35503s/^\([^=]*=[ ]*\):*/\1/
35504s/:*$//
35505s/^[^=]*=[ ]*$//
35506}'
35507fi
35508
35509cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035510fi # test -n "$CONFIG_FILES"
35511
Reid Spencera773bd52006-08-04 18:18:08 +000035512
35513for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35514do
35515 case $ac_tag in
35516 :[FHLC]) ac_mode=$ac_tag; continue;;
35517 esac
35518 case $ac_mode$ac_tag in
35519 :[FHL]*:*);;
35520 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35521echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35522 { (exit 1); exit 1; }; };;
35523 :[FH]-) ac_tag=-:-;;
35524 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35525 esac
35526 ac_save_IFS=$IFS
35527 IFS=:
35528 set x $ac_tag
35529 IFS=$ac_save_IFS
35530 shift
35531 ac_file=$1
35532 shift
35533
35534 case $ac_mode in
35535 :L) ac_source=$1;;
35536 :[FH])
35537 ac_file_inputs=
35538 for ac_f
35539 do
35540 case $ac_f in
35541 -) ac_f="$tmp/stdin";;
35542 *) # Look for the file first in the build tree, then in the source tree
35543 # (if the path is not absolute). The absolute path cannot be DOS-style,
35544 # because $ac_f cannot contain `:'.
35545 test -f "$ac_f" ||
35546 case $ac_f in
35547 [\\/$]*) false;;
35548 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35549 esac ||
35550 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35551echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35552 { (exit 1); exit 1; }; };;
35553 esac
35554 ac_file_inputs="$ac_file_inputs $ac_f"
35555 done
35556
35557 # Let's still pretend it is `configure' which instantiates (i.e., don't
35558 # use $as_me), people would be surprised to read:
35559 # /* config.h. Generated by config.status. */
35560 configure_input="Generated from "`IFS=:
35561 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35562 if test x"$ac_file" != x-; then
35563 configure_input="$ac_file. $configure_input"
35564 { echo "$as_me:$LINENO: creating $ac_file" >&5
35565echo "$as_me: creating $ac_file" >&6;}
35566 fi
35567
35568 case $ac_tag in
35569 *:-:* | *:-) cat >"$tmp/stdin";;
35570 esac
35571 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035572 esac
35573
Reid Spencera773bd52006-08-04 18:18:08 +000035574 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035575$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035576 X"$ac_file" : 'X\(//\)[^/]' \| \
35577 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035578 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035579echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35581 s//\1/
35582 q
35583 }
35584 /^X\(\/\/\)[^/].*/{
35585 s//\1/
35586 q
35587 }
35588 /^X\(\/\/\)$/{
35589 s//\1/
35590 q
35591 }
35592 /^X\(\/\).*/{
35593 s//\1/
35594 q
35595 }
35596 s/.*/./; q'`
35597 { as_dir="$ac_dir"
35598 case $as_dir in #(
35599 -*) as_dir=./$as_dir;;
35600 esac
35601 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035602 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035603 while :; do
35604 case $as_dir in #(
35605 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35606 *) as_qdir=$as_dir;;
35607 esac
35608 as_dirs="'$as_qdir' $as_dirs"
35609 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035610$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035611 X"$as_dir" : 'X\(//\)[^/]' \| \
35612 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035613 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035614echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35616 s//\1/
35617 q
35618 }
35619 /^X\(\/\/\)[^/].*/{
35620 s//\1/
35621 q
35622 }
35623 /^X\(\/\/\)$/{
35624 s//\1/
35625 q
35626 }
35627 /^X\(\/\).*/{
35628 s//\1/
35629 q
35630 }
35631 s/.*/./; q'`
35632 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035633 done
Reid Spencera773bd52006-08-04 18:18:08 +000035634 test -z "$as_dirs" || eval "mkdir $as_dirs"
35635 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35636echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035637 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035638 ac_builddir=.
35639
Reid Spencera773bd52006-08-04 18:18:08 +000035640case "$ac_dir" in
35641.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35642*)
John Criswell7a73b802003-06-30 21:59:07 +000035643 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035644 # A ".." for each directory in $ac_dir_suffix.
35645 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35646 case $ac_top_builddir_sub in
35647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35649 esac ;;
35650esac
35651ac_abs_top_builddir=$ac_pwd
35652ac_abs_builddir=$ac_pwd$ac_dir_suffix
35653# for backward compatibility:
35654ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035655
35656case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035657 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035658 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035659 ac_top_srcdir=$ac_top_builddir_sub
35660 ac_abs_top_srcdir=$ac_pwd ;;
35661 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035662 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035663 ac_top_srcdir=$srcdir
35664 ac_abs_top_srcdir=$srcdir ;;
35665 *) # Relative name.
35666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35667 ac_top_srcdir=$ac_top_build_prefix$srcdir
35668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035669esac
Reid Spencera773bd52006-08-04 18:18:08 +000035670ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035671
John Criswell7a73b802003-06-30 21:59:07 +000035672
Reid Spencera773bd52006-08-04 18:18:08 +000035673 case $ac_mode in
35674 :F)
35675 #
35676 # CONFIG_FILE
35677 #
John Criswell7a73b802003-06-30 21:59:07 +000035678
35679 case $INSTALL in
35680 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035681 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035682 esac
John Criswell7a73b802003-06-30 21:59:07 +000035683_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035684
35685cat >>$CONFIG_STATUS <<\_ACEOF
35686# If the template does not know about datarootdir, expand it.
35687# FIXME: This hack should be removed a few years after 2.60.
35688ac_datarootdir_hack=; ac_datarootdir_seen=
35689
35690case `sed -n '/datarootdir/ {
35691 p
35692 q
35693}
35694/@datadir@/p
35695/@docdir@/p
35696/@infodir@/p
35697/@localedir@/p
35698/@mandir@/p
35699' $ac_file_inputs` in
35700*datarootdir*) ac_datarootdir_seen=yes;;
35701*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35702 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35703echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35704_ACEOF
35705cat >>$CONFIG_STATUS <<_ACEOF
35706 ac_datarootdir_hack='
35707 s&@datadir@&$datadir&g
35708 s&@docdir@&$docdir&g
35709 s&@infodir@&$infodir&g
35710 s&@localedir@&$localedir&g
35711 s&@mandir@&$mandir&g
35712 s&\\\${datarootdir}&$datarootdir&g' ;;
35713esac
35714_ACEOF
35715
35716# Neutralize VPATH when `$srcdir' = `.'.
35717# Shell code in configure.ac might set extrasub.
35718# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035719cat >>$CONFIG_STATUS <<_ACEOF
35720 sed "$ac_vpsub
35721$extrasub
35722_ACEOF
35723cat >>$CONFIG_STATUS <<\_ACEOF
35724:t
35725/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035726s&@configure_input@&$configure_input&;t t
35727s&@top_builddir@&$ac_top_builddir_sub&;t t
35728s&@srcdir@&$ac_srcdir&;t t
35729s&@abs_srcdir@&$ac_abs_srcdir&;t t
35730s&@top_srcdir@&$ac_top_srcdir&;t t
35731s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35732s&@builddir@&$ac_builddir&;t t
35733s&@abs_builddir@&$ac_abs_builddir&;t t
35734s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35735s&@INSTALL@&$ac_INSTALL&;t t
35736$ac_datarootdir_hack
35737" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035738
Reid Spencera773bd52006-08-04 18:18:08 +000035739test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35740 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35741 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35742 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35743which seems to be undefined. Please make sure it is defined." >&5
35744echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35745which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035746
Reid Spencera773bd52006-08-04 18:18:08 +000035747 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035748 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035749 -) cat "$tmp/out"; rm -f "$tmp/out";;
35750 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035751 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035752 ;;
35753 :H)
35754 #
35755 # CONFIG_HEADER
35756 #
John Criswell7a73b802003-06-30 21:59:07 +000035757_ACEOF
35758
Reid Spencera773bd52006-08-04 18:18:08 +000035759# Transform confdefs.h into a sed script `conftest.defines', that
35760# substitutes the proper values into config.h.in to produce config.h.
35761rm -f conftest.defines conftest.tail
35762# First, append a space to every undef/define line, to ease matching.
35763echo 's/$/ /' >conftest.defines
35764# Then, protect against being on the right side of a sed subst, or in
35765# an unquoted here document, in config.status. If some macros were
35766# called several times there might be several #defines for the same
35767# symbol, which is useless. But do not sort them, since the last
35768# AC_DEFINE must be honored.
35769ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35770# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35771# NAME is the cpp macro being defined, VALUE is the value it is being given.
35772# PARAMS is the parameter list in the macro definition--in most cases, it's
35773# just an empty string.
35774ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35775ac_dB='\\)[ (].*,\\1define\\2'
35776ac_dC=' '
35777ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035778
Reid Spencera773bd52006-08-04 18:18:08 +000035779uniq confdefs.h |
35780 sed -n '
35781 t rset
35782 :rset
35783 s/^[ ]*#[ ]*define[ ][ ]*//
35784 t ok
35785 d
35786 :ok
35787 s/[\\&,]/\\&/g
35788 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35789 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35790 ' >>conftest.defines
35791
35792# Remove the space that was appended to ease matching.
35793# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035794# example, in the case of _POSIX_SOURCE, which is predefined and required
35795# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035796# (The regexp can be short, since the line contains either #define or #undef.)
35797echo 's/ $//
35798s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035799
Reid Spencera773bd52006-08-04 18:18:08 +000035800# Break up conftest.defines:
35801ac_max_sed_lines=50
35802
35803# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35804# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35805# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35806# et cetera.
35807ac_in='$ac_file_inputs'
35808ac_out='"$tmp/out1"'
35809ac_nxt='"$tmp/out2"'
35810
35811while :
John Criswell7a73b802003-06-30 21:59:07 +000035812do
Reid Spencera773bd52006-08-04 18:18:08 +000035813 # Write a here document:
35814 cat >>$CONFIG_STATUS <<_ACEOF
35815 # First, check the format of the line:
35816 cat >"\$tmp/defines.sed" <<\\CEOF
35817/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35818/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35819b
35820:def
35821_ACEOF
35822 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035823 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035824 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35825 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35826 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35827 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035828 rm -f conftest.defines
35829 mv conftest.tail conftest.defines
35830done
Reid Spencera773bd52006-08-04 18:18:08 +000035831rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035832
Reid Spencera773bd52006-08-04 18:18:08 +000035833echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035834cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035835 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035836 echo "/* $configure_input */" >"$tmp/config.h"
35837 cat "$ac_result" >>"$tmp/config.h"
35838 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035839 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35840echo "$as_me: $ac_file is unchanged" >&6;}
35841 else
John Criswell7a73b802003-06-30 21:59:07 +000035842 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035843 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035844 fi
35845 else
Reid Spencera773bd52006-08-04 18:18:08 +000035846 echo "/* $configure_input */"
35847 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035848 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035849 rm -f "$tmp/out12"
35850 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035851
Reid Spencera773bd52006-08-04 18:18:08 +000035852 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35853echo "$as_me: executing $ac_file commands" >&6;}
35854 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035855 esac
John Criswell7a73b802003-06-30 21:59:07 +000035856
Reid Spencera773bd52006-08-04 18:18:08 +000035857
35858 case $ac_file$ac_mode in
35859 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35860 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35861 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35862 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35863 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35864 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35865 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35866 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035867 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35868 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035869 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35870 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35871 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35872 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035873 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35874 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035875 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35876 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35877 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35878 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35879 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35880 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035881 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35882 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35883 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35884 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035885
35886 esac
35887done # for ac_tag
35888
John Criswell7a73b802003-06-30 21:59:07 +000035889
35890{ (exit 0); exit 0; }
35891_ACEOF
35892chmod +x $CONFIG_STATUS
35893ac_clean_files=$ac_clean_files_save
35894
35895
35896# configure is writing to config.log, and then calls config.status.
35897# config.status does its own redirection, appending to config.log.
35898# Unfortunately, on DOS this fails, as config.log is still kept open
35899# by configure, so config.status won't be able to write to it; its
35900# output is simply discarded. So we exec the FD to /dev/null,
35901# effectively closing config.log, so it can be properly (re)opened and
35902# appended to by config.status. When coming back to configure, we
35903# need to make the FD available again.
35904if test "$no_create" != yes; then
35905 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035906 ac_config_status_args=
35907 test "$silent" = yes &&
35908 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035909 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035911 exec 5>>config.log
35912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35913 # would make configure fail if this is the last instruction.
35914 $ac_cs_success || { (exit 1); exit 1; }
35915fi
35916
John Criswell12399a12003-09-30 15:55:44 +000035917#
35918# CONFIG_SUBDIRS section.
35919#
35920if test "$no_recursion" != yes; then
35921
35922 # Remove --cache-file and --srcdir arguments so they do not pile up.
35923 ac_sub_configure_args=
35924 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035925 eval "set x $ac_configure_args"
35926 shift
35927 for ac_arg
35928 do
John Criswell12399a12003-09-30 15:55:44 +000035929 if test -n "$ac_prev"; then
35930 ac_prev=
35931 continue
35932 fi
35933 case $ac_arg in
35934 -cache-file | --cache-file | --cache-fil | --cache-fi \
35935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35936 ac_prev=cache_file ;;
35937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35939 | --c=*)
35940 ;;
35941 --config-cache | -C)
35942 ;;
35943 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35944 ac_prev=srcdir ;;
35945 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35946 ;;
35947 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35948 ac_prev=prefix ;;
35949 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35950 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035951 *)
35952 case $ac_arg in
35953 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35954 esac
35955 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035956 esac
35957 done
35958
35959 # Always prepend --prefix to ensure using the same prefix
35960 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035961 ac_arg="--prefix=$prefix"
35962 case $ac_arg in
35963 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35964 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000035965 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035966
35967 ac_popdir=`pwd`
35968 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35969
35970 # Do not complain, so a configure script can configure whichever
35971 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035972 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035973
Reid Spencera773bd52006-08-04 18:18:08 +000035974 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35975 echo "$as_me:$LINENO: $ac_msg" >&5
35976 echo "$ac_msg" >&6
35977 { as_dir="$ac_dir"
35978 case $as_dir in #(
35979 -*) as_dir=./$as_dir;;
35980 esac
35981 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035982 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035983 while :; do
35984 case $as_dir in #(
35985 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35986 *) as_qdir=$as_dir;;
35987 esac
35988 as_dirs="'$as_qdir' $as_dirs"
35989 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035990$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035991 X"$as_dir" : 'X\(//\)[^/]' \| \
35992 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035993 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035994echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35996 s//\1/
35997 q
35998 }
35999 /^X\(\/\/\)[^/].*/{
36000 s//\1/
36001 q
36002 }
36003 /^X\(\/\/\)$/{
36004 s//\1/
36005 q
36006 }
36007 /^X\(\/\).*/{
36008 s//\1/
36009 q
36010 }
36011 s/.*/./; q'`
36012 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036013 done
Reid Spencera773bd52006-08-04 18:18:08 +000036014 test -z "$as_dirs" || eval "mkdir $as_dirs"
36015 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36016echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036017 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036018 ac_builddir=.
36019
Reid Spencera773bd52006-08-04 18:18:08 +000036020case "$ac_dir" in
36021.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36022*)
John Criswell12399a12003-09-30 15:55:44 +000036023 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036024 # A ".." for each directory in $ac_dir_suffix.
36025 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36026 case $ac_top_builddir_sub in
36027 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36028 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36029 esac ;;
36030esac
36031ac_abs_top_builddir=$ac_pwd
36032ac_abs_builddir=$ac_pwd$ac_dir_suffix
36033# for backward compatibility:
36034ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036035
36036case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036037 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036038 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036039 ac_top_srcdir=$ac_top_builddir_sub
36040 ac_abs_top_srcdir=$ac_pwd ;;
36041 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036042 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036043 ac_top_srcdir=$srcdir
36044 ac_abs_top_srcdir=$srcdir ;;
36045 *) # Relative name.
36046 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36047 ac_top_srcdir=$ac_top_build_prefix$srcdir
36048 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036049esac
Reid Spencera773bd52006-08-04 18:18:08 +000036050ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036051
36052
Reid Spencera773bd52006-08-04 18:18:08 +000036053 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036054
36055 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036056 if test -f "$ac_srcdir/configure.gnu"; then
36057 ac_sub_configure=$ac_srcdir/configure.gnu
36058 elif test -f "$ac_srcdir/configure"; then
36059 ac_sub_configure=$ac_srcdir/configure
36060 elif test -f "$ac_srcdir/configure.in"; then
36061 # This should be Cygnus configure.
36062 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036063 else
36064 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36065echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36066 ac_sub_configure=
36067 fi
36068
36069 # The recursion is here.
36070 if test -n "$ac_sub_configure"; then
36071 # Make the cache file name correct relative to the subdirectory.
36072 case $cache_file in
36073 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036074 *) # Relative name.
36075 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036076 esac
36077
Reid Spencera773bd52006-08-04 18:18:08 +000036078 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36079echo "$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 +000036080 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036081 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36082 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036083 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036084echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36085 { (exit 1); exit 1; }; }
36086 fi
36087
Reid Spencera773bd52006-08-04 18:18:08 +000036088 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036089 done
36090fi
36091