blob: 659a307b957d924fba0300bbaae3f552a5f9d78b [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
Shantonu Sen7e836972009-08-11 13:39:52 +0000835LLVM_COMPACT_SENTINELS
David Greenea696d242007-06-28 19:36:08 +0000836ENABLE_EXPENSIVE_CHECKS
837EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000838DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000839JIT
840TARGET_HAS_JIT
841ENABLE_DOXYGEN
842ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000843ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000844TARGETS_TO_BUILD
Douglas Gregor1555a232009-06-16 20:12:29 +0000845LLVM_ENUM_TARGETS
846LLVM_ENUM_ASM_PRINTERS
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +0000847LLVM_ENUM_ASM_PARSERS
Reid Spencer65c5d752006-11-05 17:08:18 +0000848ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000849EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000850BINUTILS_INCDIR
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +0000851ENABLE_LLVMC_DYNAMIC
852ENABLE_LLVMC_DYNAMIC_PLUGINS
Reid Spencera773bd52006-08-04 18:18:08 +0000853CXX
854CXXFLAGS
855ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000856NM
857ifGNUmake
858LN_S
859CMP
860CP
861DATE
862FIND
863MKDIR
864MV
865RANLIB
866RM
867SED
868TAR
869BINPWD
870GRAPHVIZ
871DOT
David Greenef0b9eff2009-07-09 17:16:26 +0000872FDP
873NEATO
874TWOPI
875CIRCO
Reid Spencera773bd52006-08-04 18:18:08 +0000876GV
877DOTTY
878PERL
879HAVE_PERL
880INSTALL_PROGRAM
881INSTALL_SCRIPT
882INSTALL_DATA
883BZIP2
884DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000885GROFF
886GZIP
887POD2HTML
888POD2MAN
889RUNTEST
890TCLSH
891ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000892OCAMLC
893OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000894OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000895OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000896GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000897INSTALL_LTDL_TRUE
898INSTALL_LTDL_FALSE
899CONVENIENCE_LTDL_TRUE
900CONVENIENCE_LTDL_FALSE
901LIBADD_DL
902ECHO
903AR
904STRIP
905CXXCPP
906F77
907FFLAGS
908ac_ct_F77
909LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000910LLVMGCCCOMMAND
911LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000912LLVMGCC
913LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000914USE_UDIS86
Jeffrey Yasskina93e7702009-07-10 21:09:55 +0000915USE_OPROFILE
Reid Spencer1000b732006-12-01 00:37:14 +0000916HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000917HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000918ALLOCA
919MMAP_FILE
920LLVMCC1
921LLVMCC1PLUS
922LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000923LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000924LLVMGCC_VERSION
925LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000926LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000927SHLIBEXT
928LLVM_PREFIX
929LLVM_BINDIR
930LLVM_LIBDIR
931LLVM_DATADIR
932LLVM_DOCSDIR
933LLVM_ETCDIR
934LLVM_INCLUDEDIR
935LLVM_INFODIR
936LLVM_MANDIR
937LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000938BINDINGS_TO_BUILD
939ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000940OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000941ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000942RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000943RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000944LIBOBJS
945LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000946ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000947 ac_precious_vars='build_alias
948host_alias
949target_alias
950CC
951CFLAGS
952LDFLAGS
953CPPFLAGS
954CPP
955CXX
956CXXFLAGS
957CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000958CXXCPP
959F77
960FFLAGS'
961ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000962projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000963projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000964projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000965projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000966projects/llvm-reopt
967projects/llvm-gcc
968projects/llvm-java
969projects/llvm-tv
970projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000971projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000972projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000973
974# Initialize some variables set by options.
975ac_init_help=
976ac_init_version=false
977# The variables have the same names as the options, with
978# dashes changed to underlines.
979cache_file=/dev/null
980exec_prefix=NONE
981no_create=
982no_recursion=
983prefix=NONE
984program_prefix=NONE
985program_suffix=NONE
986program_transform_name=s,x,x,
987silent=
988site=
989srcdir=
990verbose=
991x_includes=NONE
992x_libraries=NONE
993
994# Installation directory options.
995# These are left unexpanded so users can "make install exec_prefix=/foo"
996# and all the variables that are supposed to be based on exec_prefix
997# by default will actually change.
998# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000999# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +00001000bindir='${exec_prefix}/bin'
1001sbindir='${exec_prefix}/sbin'
1002libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001003datarootdir='${prefix}/share'
1004datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001005sysconfdir='${prefix}/etc'
1006sharedstatedir='${prefix}/com'
1007localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001008includedir='${prefix}/include'
1009oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001010docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1011infodir='${datarootdir}/info'
1012htmldir='${docdir}'
1013dvidir='${docdir}'
1014pdfdir='${docdir}'
1015psdir='${docdir}'
1016libdir='${exec_prefix}/lib'
1017localedir='${datarootdir}/locale'
1018mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001019
1020ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001021ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001022for ac_option
1023do
1024 # If the previous option needs an argument, assign it.
1025 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001026 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001027 ac_prev=
1028 continue
1029 fi
1030
Reid Spencera773bd52006-08-04 18:18:08 +00001031 case $ac_option in
1032 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033 *) ac_optarg=yes ;;
1034 esac
John Criswell7a73b802003-06-30 21:59:07 +00001035
1036 # Accept the important Cygnus configure options, so we can diagnose typos.
1037
Reid Spencera773bd52006-08-04 18:18:08 +00001038 case $ac_dashdash$ac_option in
1039 --)
1040 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001041
1042 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1043 ac_prev=bindir ;;
1044 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1045 bindir=$ac_optarg ;;
1046
1047 -build | --build | --buil | --bui | --bu)
1048 ac_prev=build_alias ;;
1049 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1050 build_alias=$ac_optarg ;;
1051
1052 -cache-file | --cache-file | --cache-fil | --cache-fi \
1053 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1054 ac_prev=cache_file ;;
1055 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1056 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1057 cache_file=$ac_optarg ;;
1058
1059 --config-cache | -C)
1060 cache_file=config.cache ;;
1061
Reid Spencera773bd52006-08-04 18:18:08 +00001062 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001063 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001064 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001065 datadir=$ac_optarg ;;
1066
Reid Spencera773bd52006-08-04 18:18:08 +00001067 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1068 | --dataroo | --dataro | --datar)
1069 ac_prev=datarootdir ;;
1070 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1071 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1072 datarootdir=$ac_optarg ;;
1073
John Criswell7a73b802003-06-30 21:59:07 +00001074 -disable-* | --disable-*)
1075 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001077 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001078 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1079 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001080 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001081 eval enable_$ac_feature=no ;;
1082
1083 -docdir | --docdir | --docdi | --doc | --do)
1084 ac_prev=docdir ;;
1085 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086 docdir=$ac_optarg ;;
1087
1088 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089 ac_prev=dvidir ;;
1090 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001092
1093 -enable-* | --enable-*)
1094 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001096 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001097 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1098 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001099 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001100 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001101
1102 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104 | --exec | --exe | --ex)
1105 ac_prev=exec_prefix ;;
1106 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108 | --exec=* | --exe=* | --ex=*)
1109 exec_prefix=$ac_optarg ;;
1110
1111 -gas | --gas | --ga | --g)
1112 # Obsolete; use --with-gas.
1113 with_gas=yes ;;
1114
1115 -help | --help | --hel | --he | -h)
1116 ac_init_help=long ;;
1117 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118 ac_init_help=recursive ;;
1119 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120 ac_init_help=short ;;
1121
1122 -host | --host | --hos | --ho)
1123 ac_prev=host_alias ;;
1124 -host=* | --host=* | --hos=* | --ho=*)
1125 host_alias=$ac_optarg ;;
1126
Reid Spencera773bd52006-08-04 18:18:08 +00001127 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 ac_prev=htmldir ;;
1129 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 | --ht=*)
1131 htmldir=$ac_optarg ;;
1132
John Criswell7a73b802003-06-30 21:59:07 +00001133 -includedir | --includedir | --includedi | --included | --include \
1134 | --includ | --inclu | --incl | --inc)
1135 ac_prev=includedir ;;
1136 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137 | --includ=* | --inclu=* | --incl=* | --inc=*)
1138 includedir=$ac_optarg ;;
1139
1140 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 ac_prev=infodir ;;
1142 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143 infodir=$ac_optarg ;;
1144
1145 -libdir | --libdir | --libdi | --libd)
1146 ac_prev=libdir ;;
1147 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148 libdir=$ac_optarg ;;
1149
1150 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151 | --libexe | --libex | --libe)
1152 ac_prev=libexecdir ;;
1153 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154 | --libexe=* | --libex=* | --libe=*)
1155 libexecdir=$ac_optarg ;;
1156
Reid Spencera773bd52006-08-04 18:18:08 +00001157 -localedir | --localedir | --localedi | --localed | --locale)
1158 ac_prev=localedir ;;
1159 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160 localedir=$ac_optarg ;;
1161
John Criswell7a73b802003-06-30 21:59:07 +00001162 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001163 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001164 ac_prev=localstatedir ;;
1165 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001166 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001167 localstatedir=$ac_optarg ;;
1168
1169 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 ac_prev=mandir ;;
1171 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172 mandir=$ac_optarg ;;
1173
1174 -nfp | --nfp | --nf)
1175 # Obsolete; use --without-fp.
1176 with_fp=no ;;
1177
1178 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179 | --no-cr | --no-c | -n)
1180 no_create=yes ;;
1181
1182 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184 no_recursion=yes ;;
1185
1186 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188 | --oldin | --oldi | --old | --ol | --o)
1189 ac_prev=oldincludedir ;;
1190 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193 oldincludedir=$ac_optarg ;;
1194
1195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 ac_prev=prefix ;;
1197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198 prefix=$ac_optarg ;;
1199
1200 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201 | --program-pre | --program-pr | --program-p)
1202 ac_prev=program_prefix ;;
1203 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205 program_prefix=$ac_optarg ;;
1206
1207 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208 | --program-suf | --program-su | --program-s)
1209 ac_prev=program_suffix ;;
1210 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212 program_suffix=$ac_optarg ;;
1213
1214 -program-transform-name | --program-transform-name \
1215 | --program-transform-nam | --program-transform-na \
1216 | --program-transform-n | --program-transform- \
1217 | --program-transform | --program-transfor \
1218 | --program-transfo | --program-transf \
1219 | --program-trans | --program-tran \
1220 | --progr-tra | --program-tr | --program-t)
1221 ac_prev=program_transform_name ;;
1222 -program-transform-name=* | --program-transform-name=* \
1223 | --program-transform-nam=* | --program-transform-na=* \
1224 | --program-transform-n=* | --program-transform-=* \
1225 | --program-transform=* | --program-transfor=* \
1226 | --program-transfo=* | --program-transf=* \
1227 | --program-trans=* | --program-tran=* \
1228 | --progr-tra=* | --program-tr=* | --program-t=*)
1229 program_transform_name=$ac_optarg ;;
1230
Reid Spencera773bd52006-08-04 18:18:08 +00001231 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 ac_prev=pdfdir ;;
1233 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234 pdfdir=$ac_optarg ;;
1235
1236 -psdir | --psdir | --psdi | --psd | --ps)
1237 ac_prev=psdir ;;
1238 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239 psdir=$ac_optarg ;;
1240
John Criswell7a73b802003-06-30 21:59:07 +00001241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1243 silent=yes ;;
1244
1245 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 ac_prev=sbindir ;;
1247 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 | --sbi=* | --sb=*)
1249 sbindir=$ac_optarg ;;
1250
1251 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253 | --sharedst | --shareds | --shared | --share | --shar \
1254 | --sha | --sh)
1255 ac_prev=sharedstatedir ;;
1256 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 | --sha=* | --sh=*)
1260 sharedstatedir=$ac_optarg ;;
1261
1262 -site | --site | --sit)
1263 ac_prev=site ;;
1264 -site=* | --site=* | --sit=*)
1265 site=$ac_optarg ;;
1266
1267 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 ac_prev=srcdir ;;
1269 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270 srcdir=$ac_optarg ;;
1271
1272 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273 | --syscon | --sysco | --sysc | --sys | --sy)
1274 ac_prev=sysconfdir ;;
1275 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277 sysconfdir=$ac_optarg ;;
1278
1279 -target | --target | --targe | --targ | --tar | --ta | --t)
1280 ac_prev=target_alias ;;
1281 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282 target_alias=$ac_optarg ;;
1283
1284 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285 verbose=yes ;;
1286
1287 -version | --version | --versio | --versi | --vers | -V)
1288 ac_init_version=: ;;
1289
1290 -with-* | --with-*)
1291 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001293 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001294 { echo "$as_me: error: invalid package name: $ac_package" >&2
1295 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001296 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001297 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001298
1299 -without-* | --without-*)
1300 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001302 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001303 { echo "$as_me: error: invalid package name: $ac_package" >&2
1304 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001305 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001306 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001307
1308 --x)
1309 # Obsolete; use --with-x.
1310 with_x=yes ;;
1311
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317 x_includes=$ac_optarg ;;
1318
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324 x_libraries=$ac_optarg ;;
1325
1326 -*) { echo "$as_me: error: unrecognized option: $ac_option
1327Try \`$0 --help' for more information." >&2
1328 { (exit 1); exit 1; }; }
1329 ;;
1330
1331 *=*)
1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1335 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1336 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001337 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001338 export $ac_envvar ;;
1339
1340 *)
1341 # FIXME: should be removed in autoconf 3.0.
1342 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1346 ;;
1347
1348 esac
1349done
1350
1351if test -n "$ac_prev"; then
1352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353 { echo "$as_me: error: missing argument to $ac_option" >&2
1354 { (exit 1); exit 1; }; }
1355fi
1356
Reid Spencera773bd52006-08-04 18:18:08 +00001357# Be sure to have absolute directory names.
1358for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359 datadir sysconfdir sharedstatedir localstatedir includedir \
1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001362do
Reid Spencera773bd52006-08-04 18:18:08 +00001363 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001364 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001365 [\\/$]* | ?:[\\/]* ) continue;;
1366 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001367 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001368 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1369 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001370done
1371
1372# There might be people who depend on the old broken behavior: `$host'
1373# used to hold the argument of --host etc.
1374# FIXME: To remove some day.
1375build=$build_alias
1376host=$host_alias
1377target=$target_alias
1378
1379# FIXME: To remove some day.
1380if test "x$host_alias" != x; then
1381 if test "x$build_alias" = x; then
1382 cross_compiling=maybe
1383 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1384 If a cross compiler is detected then cross compile mode will be used." >&2
1385 elif test "x$build_alias" != "x$host_alias"; then
1386 cross_compiling=yes
1387 fi
1388fi
1389
1390ac_tool_prefix=
1391test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392
1393test "$silent" = yes && exec 6>/dev/null
1394
1395
Reid Spencera773bd52006-08-04 18:18:08 +00001396ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397ac_ls_di=`ls -di .` &&
1398ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1399 { echo "$as_me: error: Working directory cannot be determined" >&2
1400 { (exit 1); exit 1; }; }
1401test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1402 { echo "$as_me: error: pwd does not report name of working directory" >&2
1403 { (exit 1); exit 1; }; }
1404
1405
John Criswell7a73b802003-06-30 21:59:07 +00001406# Find the source files, if location was not specified.
1407if test -z "$srcdir"; then
1408 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001409 # Try the directory containing this script, then the parent directory.
1410 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001411$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001412 X"$0" : 'X\(//\)[^/]' \| \
1413 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001414 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001415echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417 s//\1/
1418 q
1419 }
1420 /^X\(\/\/\)[^/].*/{
1421 s//\1/
1422 q
1423 }
1424 /^X\(\/\/\)$/{
1425 s//\1/
1426 q
1427 }
1428 /^X\(\/\).*/{
1429 s//\1/
1430 q
1431 }
1432 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001433 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001434 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001435 srcdir=..
1436 fi
1437else
1438 ac_srcdir_defaulted=no
1439fi
Reid Spencera773bd52006-08-04 18:18:08 +00001440if test ! -r "$srcdir/$ac_unique_file"; then
1441 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1442 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001443 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001444fi
Reid Spencera773bd52006-08-04 18:18:08 +00001445ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446ac_abs_confdir=`(
1447 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001448 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001449 pwd)`
1450# When building in place, set srcdir=.
1451if test "$ac_abs_confdir" = "$ac_pwd"; then
1452 srcdir=.
1453fi
1454# Remove unnecessary trailing slashes from srcdir.
1455# Double slashes in file names in object file debugging info
1456# mess up M-x gdb in Emacs.
1457case $srcdir in
1458*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459esac
1460for ac_var in $ac_precious_vars; do
1461 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_env_${ac_var}_value=\$${ac_var}
1463 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1465done
John Criswell7a73b802003-06-30 21:59:07 +00001466
1467#
1468# Report the --help message.
1469#
1470if test "$ac_init_help" = "long"; then
1471 # Omit some internal or obsolete options to make the list less imposing.
1472 # This message is too long to be a string in the A/UX 3.1 sh.
1473 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001474\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001475
1476Usage: $0 [OPTION]... [VAR=VALUE]...
1477
1478To assign environment variables (e.g., CC, CFLAGS...), specify them as
1479VAR=VALUE. See below for descriptions of some of the useful variables.
1480
1481Defaults for the options are specified in brackets.
1482
1483Configuration:
1484 -h, --help display this help and exit
1485 --help=short display options specific to this package
1486 --help=recursive display the short help of all the included packages
1487 -V, --version display version information and exit
1488 -q, --quiet, --silent do not print \`checking...' messages
1489 --cache-file=FILE cache test results in FILE [disabled]
1490 -C, --config-cache alias for \`--cache-file=config.cache'
1491 -n, --no-create do not create output files
1492 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1493
John Criswell7a73b802003-06-30 21:59:07 +00001494Installation directories:
1495 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001496 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001497 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001498 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001499
1500By default, \`make install' will install all the files in
1501\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1502an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1503for instance \`--prefix=\$HOME'.
1504
1505For better control, use the options below.
1506
1507Fine tuning of the installation directories:
1508 --bindir=DIR user executables [EPREFIX/bin]
1509 --sbindir=DIR system admin executables [EPREFIX/sbin]
1510 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001511 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1512 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1513 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1514 --libdir=DIR object code libraries [EPREFIX/lib]
1515 --includedir=DIR C header files [PREFIX/include]
1516 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001517 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1518 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1519 --infodir=DIR info documentation [DATAROOTDIR/info]
1520 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1521 --mandir=DIR man documentation [DATAROOTDIR/man]
1522 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1523 --htmldir=DIR html documentation [DOCDIR]
1524 --dvidir=DIR dvi documentation [DOCDIR]
1525 --pdfdir=DIR pdf documentation [DOCDIR]
1526 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001527_ACEOF
1528
1529 cat <<\_ACEOF
1530
1531System types:
1532 --build=BUILD configure for building on BUILD [guessed]
1533 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1534 --target=TARGET configure for building compilers for TARGET [HOST]
1535_ACEOF
1536fi
1537
1538if test -n "$ac_init_help"; then
1539 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001540 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001541 esac
1542 cat <<\_ACEOF
1543
1544Optional Features:
1545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001547 --enable-optimized Compile with optimizations enabled (default is NO)
1548 --enable-profiling Compile with profiling enabled (default is NO)
1549 --enable-assertions Compile with assertion checks enabled (default is
1550 YES)
David Greenea696d242007-06-28 19:36:08 +00001551 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001552 Compile with expensive debug checks enabled (default
1553 is NO)
1554 --enable-debug-runtime Build runtime libs with debug symbols (default is
1555 NO)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001556 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001557 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001558 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001559 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001560 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001561 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001562 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001563 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1564 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001565 --enable-bindings Build specific language bindings:
1566 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001567 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001568 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1569 Win32)
1570 --enable-llvmc-dynamic-plugins
1571 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001572 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001573 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001574 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001575 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001576 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001577 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001578 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001579 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001580 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001581
1582Optional Packages:
1583 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1584 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001585 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1586 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001587 --with-llvmgcc Specify location of llvm-gcc driver (default
1588 searches PATH)
1589 --with-llvmgxx Specify location of llvm-g++ driver (default
1590 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001591 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001592 --with-ocaml-libdir Specify install location for ocaml bindings (default
1593 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001594 --with-binutils-include Specify path to binutils/include/ containing
1595 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001596 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001597 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1598 --with-pic try to use only PIC/non-PIC objects [default=use
1599 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001600 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001601 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001602 --with-oprofile=<prefix>
1603 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001604
1605Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001606 CC C compiler command
1607 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001608 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1609 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001610 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1611 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001612 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001613 CXX C++ compiler command
1614 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001615 CXXCPP C++ preprocessor
1616 F77 Fortran 77 compiler command
1617 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001618
1619Use these variables to override the choices made by `configure' or to help
1620it to find libraries and programs with nonstandard names/locations.
1621
1622Report bugs to <llvmbugs@cs.uiuc.edu>.
1623_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001624ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001625fi
1626
1627if test "$ac_init_help" = "recursive"; then
1628 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001629 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001630 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001631 ac_builddir=.
1632
Reid Spencera773bd52006-08-04 18:18:08 +00001633case "$ac_dir" in
1634.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635*)
John Criswell7a73b802003-06-30 21:59:07 +00001636 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001637 # A ".." for each directory in $ac_dir_suffix.
1638 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1639 case $ac_top_builddir_sub in
1640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 esac ;;
1643esac
1644ac_abs_top_builddir=$ac_pwd
1645ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646# for backward compatibility:
1647ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001648
1649case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001650 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001651 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001652 ac_top_srcdir=$ac_top_builddir_sub
1653 ac_abs_top_srcdir=$ac_pwd ;;
1654 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001655 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001656 ac_top_srcdir=$srcdir
1657 ac_abs_top_srcdir=$srcdir ;;
1658 *) # Relative name.
1659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660 ac_top_srcdir=$ac_top_build_prefix$srcdir
1661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001662esac
Reid Spencera773bd52006-08-04 18:18:08 +00001663ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001664
Reid Spencera773bd52006-08-04 18:18:08 +00001665 cd "$ac_dir" || { ac_status=$?; continue; }
1666 # Check for guested configure.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001673 else
1674 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001675 fi || ac_status=$?
1676 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001677 done
1678fi
1679
Reid Spencera773bd52006-08-04 18:18:08 +00001680test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001681if $ac_init_version; then
1682 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001683llvm configure 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001684generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001685
Reid Spencera773bd52006-08-04 18:18:08 +00001686Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16872002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001688This configure script is free software; the Free Software Foundation
1689gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001690
Tanya Lattnercf067672008-01-17 05:57:22 +00001691Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001692_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001693 exit
John Criswell7a73b802003-06-30 21:59:07 +00001694fi
Reid Spencera773bd52006-08-04 18:18:08 +00001695cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001696This file contains any messages produced by compilers while
1697running configure, to aid debugging if configure makes a mistake.
1698
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001699It was created by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001700generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001701
1702 $ $0 $@
1703
1704_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001705exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001706{
1707cat <<_ASUNAME
1708## --------- ##
1709## Platform. ##
1710## --------- ##
1711
1712hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1713uname -m = `(uname -m) 2>/dev/null || echo unknown`
1714uname -r = `(uname -r) 2>/dev/null || echo unknown`
1715uname -s = `(uname -s) 2>/dev/null || echo unknown`
1716uname -v = `(uname -v) 2>/dev/null || echo unknown`
1717
1718/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1719/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1720
1721/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1722/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1723/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001724/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001725/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1726/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1727/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1728
1729_ASUNAME
1730
1731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732for as_dir in $PATH
1733do
1734 IFS=$as_save_IFS
1735 test -z "$as_dir" && as_dir=.
1736 echo "PATH: $as_dir"
1737done
Reid Spencera773bd52006-08-04 18:18:08 +00001738IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001739
1740} >&5
1741
1742cat >&5 <<_ACEOF
1743
1744
1745## ----------- ##
1746## Core tests. ##
1747## ----------- ##
1748
1749_ACEOF
1750
1751
1752# Keep a trace of the command line.
1753# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001754# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001755# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001756# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001757ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001758ac_configure_args0=
1759ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001760ac_must_keep_next=false
1761for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001762do
John Criswell0c38eaf2003-09-10 15:17:25 +00001763 for ac_arg
1764 do
1765 case $ac_arg in
1766 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1767 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1768 | -silent | --silent | --silen | --sile | --sil)
1769 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001770 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001771 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1772 esac
1773 case $ac_pass in
1774 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1775 2)
1776 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1777 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001778 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001779 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001780 case $ac_arg in
1781 *=* | --config-cache | -C | -disable-* | --disable-* \
1782 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1783 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1784 | -with-* | --with-* | -without-* | --without-* | --x)
1785 case "$ac_configure_args0 " in
1786 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1787 esac
1788 ;;
1789 -* ) ac_must_keep_next=true ;;
1790 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001791 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001792 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001793 ;;
1794 esac
1795 done
John Criswell7a73b802003-06-30 21:59:07 +00001796done
John Criswell0c38eaf2003-09-10 15:17:25 +00001797$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1798$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 +00001799
1800# When interrupted or exit'd, cleanup temporary files, and complete
1801# config.log. We remove comments because anyway the quotes in there
1802# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001803# WARNING: Use '\'' to represent an apostrophe within the trap.
1804# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001805trap 'exit_status=$?
1806 # Save into config.log some information that might help in debugging.
1807 {
1808 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001809
John Criswell7a73b802003-06-30 21:59:07 +00001810 cat <<\_ASBOX
1811## ---------------- ##
1812## Cache variables. ##
1813## ---------------- ##
1814_ASBOX
1815 echo
1816 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001817(
1818 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1819 eval ac_val=\$$ac_var
1820 case $ac_val in #(
1821 *${as_nl}*)
1822 case $ac_var in #(
1823 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1824echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1825 esac
1826 case $ac_var in #(
1827 _ | IFS | as_nl) ;; #(
1828 *) $as_unset $ac_var ;;
1829 esac ;;
1830 esac
1831 done
John Criswell7a73b802003-06-30 21:59:07 +00001832 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001833 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1834 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001835 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001836 "s/'\''/'\''\\\\'\'''\''/g;
1837 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1838 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001839 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001840 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001841 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001842 esac |
1843 sort
1844)
John Criswell7a73b802003-06-30 21:59:07 +00001845 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001846
1847 cat <<\_ASBOX
1848## ----------------- ##
1849## Output variables. ##
1850## ----------------- ##
1851_ASBOX
1852 echo
1853 for ac_var in $ac_subst_vars
1854 do
Reid Spencera773bd52006-08-04 18:18:08 +00001855 eval ac_val=\$$ac_var
1856 case $ac_val in
1857 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858 esac
1859 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001860 done | sort
1861 echo
1862
1863 if test -n "$ac_subst_files"; then
1864 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001865## ------------------- ##
1866## File substitutions. ##
1867## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001868_ASBOX
1869 echo
1870 for ac_var in $ac_subst_files
1871 do
Reid Spencera773bd52006-08-04 18:18:08 +00001872 eval ac_val=\$$ac_var
1873 case $ac_val in
1874 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1875 esac
1876 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001877 done | sort
1878 echo
1879 fi
1880
John Criswell7a73b802003-06-30 21:59:07 +00001881 if test -s confdefs.h; then
1882 cat <<\_ASBOX
1883## ----------- ##
1884## confdefs.h. ##
1885## ----------- ##
1886_ASBOX
1887 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001888 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001889 echo
1890 fi
1891 test "$ac_signal" != 0 &&
1892 echo "$as_me: caught signal $ac_signal"
1893 echo "$as_me: exit $exit_status"
1894 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001895 rm -f core *.core core.conftest.* &&
1896 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001897 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001898' 0
John Criswell7a73b802003-06-30 21:59:07 +00001899for ac_signal in 1 2 13 15; do
1900 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1901done
1902ac_signal=0
1903
1904# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001905rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001906
1907# Predefined preprocessor variables.
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_NAME "$PACKAGE_NAME"
1911_ACEOF
1912
1913
1914cat >>confdefs.h <<_ACEOF
1915#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1916_ACEOF
1917
1918
1919cat >>confdefs.h <<_ACEOF
1920#define PACKAGE_VERSION "$PACKAGE_VERSION"
1921_ACEOF
1922
1923
1924cat >>confdefs.h <<_ACEOF
1925#define PACKAGE_STRING "$PACKAGE_STRING"
1926_ACEOF
1927
1928
1929cat >>confdefs.h <<_ACEOF
1930#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1931_ACEOF
1932
1933
1934# Let the site file select an alternate cache file if it wants to.
1935# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001936if test -n "$CONFIG_SITE"; then
1937 set x "$CONFIG_SITE"
1938elif test "x$prefix" != xNONE; then
1939 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1940else
1941 set x "$ac_default_prefix/share/config.site" \
1942 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001943fi
Reid Spencera773bd52006-08-04 18:18:08 +00001944shift
1945for ac_site_file
1946do
John Criswell7a73b802003-06-30 21:59:07 +00001947 if test -r "$ac_site_file"; then
1948 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1949echo "$as_me: loading site script $ac_site_file" >&6;}
1950 sed 's/^/| /' "$ac_site_file" >&5
1951 . "$ac_site_file"
1952 fi
1953done
1954
1955if test -r "$cache_file"; then
1956 # Some versions of bash will fail to source /dev/null (special
1957 # files actually), so we avoid doing that.
1958 if test -f "$cache_file"; then
1959 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1960echo "$as_me: loading cache $cache_file" >&6;}
1961 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001962 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1963 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001964 esac
1965 fi
1966else
1967 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1968echo "$as_me: creating cache $cache_file" >&6;}
1969 >$cache_file
1970fi
1971
1972# Check that the precious variables saved in the cache have kept the same
1973# value.
1974ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001975for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001976 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1977 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001978 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1979 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001980 case $ac_old_set,$ac_new_set in
1981 set,)
1982 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1983echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1984 ac_cache_corrupted=: ;;
1985 ,set)
1986 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1987echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1988 ac_cache_corrupted=: ;;
1989 ,);;
1990 *)
1991 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001992 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001993echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001994 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001995echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001996 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001997echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001998 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001999 fi;;
2000 esac
2001 # Pass precious variables to config.status.
2002 if test "$ac_new_set" = set; then
2003 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00002004 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002005 *) ac_arg=$ac_var=$ac_new_val ;;
2006 esac
2007 case " $ac_configure_args " in
2008 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2009 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2010 esac
2011 fi
2012done
2013if $ac_cache_corrupted; then
2014 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2015echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2016 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2017echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2018 { (exit 1); exit 1; }; }
2019fi
2020
Reid Spencera773bd52006-08-04 18:18:08 +00002021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
John Criswell7a73b802003-06-30 21:59:07 +00002045ac_ext=c
2046ac_cpp='$CPP $CPPFLAGS'
2047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049ac_compiler_gnu=$ac_cv_c_compiler_gnu
2050
2051
2052
Tanya Lattnercf067672008-01-17 05:57:22 +00002053LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002054
2055
2056
2057
2058
2059
2060
John Criswell7a73b802003-06-30 21:59:07 +00002061ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002062for ac_dir in autoconf "$srcdir"/autoconf; do
2063 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002064 ac_aux_dir=$ac_dir
2065 ac_install_sh="$ac_aux_dir/install-sh -c"
2066 break
Reid Spencera773bd52006-08-04 18:18:08 +00002067 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002068 ac_aux_dir=$ac_dir
2069 ac_install_sh="$ac_aux_dir/install.sh -c"
2070 break
Reid Spencera773bd52006-08-04 18:18:08 +00002071 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002072 ac_aux_dir=$ac_dir
2073 ac_install_sh="$ac_aux_dir/shtool install -c"
2074 break
2075 fi
2076done
2077if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002078 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2079echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002080 { (exit 1); exit 1; }; }
2081fi
Reid Spencera773bd52006-08-04 18:18:08 +00002082
2083# These three variables are undocumented and unsupported,
2084# and are intended to be withdrawn in a future Autoconf release.
2085# They can cause serious problems if a builder's source tree is in a directory
2086# whose full name contains unusual characters.
2087ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2088ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2089ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2090
John Criswell7a73b802003-06-30 21:59:07 +00002091
John Criswell392aaa32003-07-22 19:18:09 +00002092
Reid Spencer2706f8c2004-09-19 23:53:36 +00002093if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002094 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2095 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002096echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2097 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002098 fi
John Criswell93e1c722003-09-15 17:04:06 +00002099fi
2100
John Criswell33a911a2003-11-25 20:36:46 +00002101for i in `ls ${srcdir}/projects`
2102do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002103 if test -d ${srcdir}/projects/${i} ; then
2104 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002105 CVS) ;;
2106 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002107 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002108 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002109 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002110 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002111 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002112 # llvm-test is the old name of the test-suite, kept here for backwards
2113 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002114 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002115 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002116 test-suite) subdirs="$subdirs projects/test-suite"
2117 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002118 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002119;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002120 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002121 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002122 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002123 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002124 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002125 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002126 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002127 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002128 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002129 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002130 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002131 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002132 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002133 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2134echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002135 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002136 esac
John Criswell33a911a2003-11-25 20:36:46 +00002137 fi
2138done
John Criswell559a6c12003-09-30 16:31:48 +00002139
John Criswell7a73b802003-06-30 21:59:07 +00002140
2141# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002142$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2143 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2144echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002145 { (exit 1); exit 1; }; }
2146
Reid Spencera773bd52006-08-04 18:18:08 +00002147{ echo "$as_me:$LINENO: checking build system type" >&5
2148echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002149if test "${ac_cv_build+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151else
Reid Spencera773bd52006-08-04 18:18:08 +00002152 ac_build_alias=$build_alias
2153test "x$ac_build_alias" = x &&
2154 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2155test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002156 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2157echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2158 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002159ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2160 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2161echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002162 { (exit 1); exit 1; }; }
2163
2164fi
Reid Spencera773bd52006-08-04 18:18:08 +00002165{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2166echo "${ECHO_T}$ac_cv_build" >&6; }
2167case $ac_cv_build in
2168*-*-*) ;;
2169*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2170echo "$as_me: error: invalid value of canonical build" >&2;}
2171 { (exit 1); exit 1; }; };;
2172esac
John Criswell7a73b802003-06-30 21:59:07 +00002173build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002174ac_save_IFS=$IFS; IFS='-'
2175set x $ac_cv_build
2176shift
2177build_cpu=$1
2178build_vendor=$2
2179shift; shift
2180# Remember, the first character of IFS is used to create $*,
2181# except with old shells:
2182build_os=$*
2183IFS=$ac_save_IFS
2184case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002185
2186
Reid Spencera773bd52006-08-04 18:18:08 +00002187{ echo "$as_me:$LINENO: checking host system type" >&5
2188echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002189if test "${ac_cv_host+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2191else
Reid Spencera773bd52006-08-04 18:18:08 +00002192 if test "x$host_alias" = x; then
2193 ac_cv_host=$ac_cv_build
2194else
2195 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2196 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2197echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002198 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002199fi
John Criswell7a73b802003-06-30 21:59:07 +00002200
2201fi
Reid Spencera773bd52006-08-04 18:18:08 +00002202{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2203echo "${ECHO_T}$ac_cv_host" >&6; }
2204case $ac_cv_host in
2205*-*-*) ;;
2206*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2207echo "$as_me: error: invalid value of canonical host" >&2;}
2208 { (exit 1); exit 1; }; };;
2209esac
John Criswell7a73b802003-06-30 21:59:07 +00002210host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002211ac_save_IFS=$IFS; IFS='-'
2212set x $ac_cv_host
2213shift
2214host_cpu=$1
2215host_vendor=$2
2216shift; shift
2217# Remember, the first character of IFS is used to create $*,
2218# except with old shells:
2219host_os=$*
2220IFS=$ac_save_IFS
2221case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002222
2223
Reid Spencera773bd52006-08-04 18:18:08 +00002224{ echo "$as_me:$LINENO: checking target system type" >&5
2225echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002226if test "${ac_cv_target+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2228else
Reid Spencera773bd52006-08-04 18:18:08 +00002229 if test "x$target_alias" = x; then
2230 ac_cv_target=$ac_cv_host
2231else
2232 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2233 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2234echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002235 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002236fi
John Criswell7a73b802003-06-30 21:59:07 +00002237
2238fi
Reid Spencera773bd52006-08-04 18:18:08 +00002239{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2240echo "${ECHO_T}$ac_cv_target" >&6; }
2241case $ac_cv_target in
2242*-*-*) ;;
2243*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2244echo "$as_me: error: invalid value of canonical target" >&2;}
2245 { (exit 1); exit 1; }; };;
2246esac
John Criswell7a73b802003-06-30 21:59:07 +00002247target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002248ac_save_IFS=$IFS; IFS='-'
2249set x $ac_cv_target
2250shift
2251target_cpu=$1
2252target_vendor=$2
2253shift; shift
2254# Remember, the first character of IFS is used to create $*,
2255# except with old shells:
2256target_os=$*
2257IFS=$ac_save_IFS
2258case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002259
2260
2261# The aliases save the names the user supplied, while $host etc.
2262# will get canonicalized.
2263test -n "$target_alias" &&
2264 test "$program_prefix$program_suffix$program_transform_name" = \
2265 NONENONEs,x,x, &&
2266 program_prefix=${target_alias}-
2267
Reid Spencera773bd52006-08-04 18:18:08 +00002268{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2269echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002270if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002271 echo $ECHO_N "(cached) $ECHO_C" >&6
2272else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002273 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002274 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002277 llvm_cv_os_type="AIX"
2278 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002279 *-*-irix*)
2280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282 llvm_cv_os_type="IRIX"
2283 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002284 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002287 llvm_cv_os_type="Cygwin"
2288 llvm_cv_platform_type="Unix" ;;
2289 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002290 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002291 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002292 llvm_cv_os_type="Darwin"
2293 llvm_cv_platform_type="Unix" ;;
2294 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002297 llvm_cv_os_type="FreeBSD"
2298 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002299 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002300 llvm_cv_link_all_option="-Wl,--whole-archive"
2301 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002302 llvm_cv_os_type="OpenBSD"
2303 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002304 *-*-netbsd*)
2305 llvm_cv_link_all_option="-Wl,--whole-archive"
2306 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2307 llvm_cv_os_type="NetBSD"
2308 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002309 *-*-dragonfly*)
2310 llvm_cv_link_all_option="-Wl,--whole-archive"
2311 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2312 llvm_cv_os_type="DragonFly"
2313 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002314 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002315 llvm_cv_link_all_option="-Wl,--whole-archive"
2316 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002317 llvm_cv_os_type="HP-UX"
2318 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002319 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002320 llvm_cv_link_all_option="-Wl,--whole-archive"
2321 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002322 llvm_cv_os_type="Interix"
2323 llvm_cv_platform_type="Unix" ;;
2324 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002325 llvm_cv_link_all_option="-Wl,--whole-archive"
2326 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002327 llvm_cv_os_type="Linux"
2328 llvm_cv_platform_type="Unix" ;;
2329 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002330 llvm_cv_link_all_option="-Wl,-z,allextract"
2331 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002332 llvm_cv_os_type="SunOS"
2333 llvm_cv_platform_type="Unix" ;;
2334 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002335 llvm_cv_link_all_option="-Wl,--whole-archive"
2336 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002337 llvm_cv_os_type="Win32"
2338 llvm_cv_platform_type="Win32" ;;
2339 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002340 llvm_cv_link_all_option="-Wl,--whole-archive"
2341 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002342 llvm_cv_os_type="MingW"
2343 llvm_cv_platform_type="Win32" ;;
2344 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002345 llvm_cv_link_all_option=""
2346 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002347 llvm_cv_os_type="Unknown"
2348 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002349esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002350fi
Reid Spencera773bd52006-08-04 18:18:08 +00002351{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2352echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002353
Reid Spencer7b3e8512004-12-24 06:29:05 +00002354if test "$llvm_cv_os_type" = "Unknown" ; then
2355 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2356echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002357 { (exit 1); exit 1; }; }
2358fi
2359
Reid Spencer7b3e8512004-12-24 06:29:05 +00002360OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002361
2362
Reid Spencera773bd52006-08-04 18:18:08 +00002363LINKALL=$llvm_cv_link_all_option
2364
2365NOLINKALL=$llvm_cv_no_link_all_option
2366
2367
Reid Spencer7b3e8512004-12-24 06:29:05 +00002368case $llvm_cv_platform_type in
2369 Unix)
2370
2371cat >>confdefs.h <<\_ACEOF
2372#define LLVM_ON_UNIX 1
2373_ACEOF
2374
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002375 LLVM_ON_UNIX=1
2376
2377 LLVM_ON_WIN32=0
2378
Reid Spencer7b3e8512004-12-24 06:29:05 +00002379 ;;
2380 Win32)
2381
2382cat >>confdefs.h <<\_ACEOF
2383#define LLVM_ON_WIN32 1
2384_ACEOF
2385
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002386 LLVM_ON_UNIX=0
2387
2388 LLVM_ON_WIN32=1
2389
Reid Spencer7b3e8512004-12-24 06:29:05 +00002390 ;;
2391esac
2392
Reid Spencera773bd52006-08-04 18:18:08 +00002393{ echo "$as_me:$LINENO: checking target architecture" >&5
2394echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002395if test "${llvm_cv_target_arch+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2397else
2398 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002399 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002400 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002401 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2402 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002403 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002404 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002405 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002406 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002407 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002408 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002409 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002410 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002411 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002412esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002413fi
Reid Spencera773bd52006-08-04 18:18:08 +00002414{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2415echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002416
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417if test "$llvm_cv_target_arch" = "Unknown" ; then
2418 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2419echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2420fi
John Criswell76595452003-07-01 22:07:39 +00002421
Douglas Gregor0711c302009-06-17 00:43:20 +00002422# Determine the LLVM native architecture for the target
2423case "$llvm_cv_target_arch" in
2424 x86) LLVM_NATIVE_ARCH="X86" ;;
2425 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2426 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2427esac
2428
Bill Wendlinga0833352009-03-12 04:10:09 +00002429ARCH=$llvm_cv_target_arch
2430
2431
2432ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002433ac_cpp='$CPP $CPPFLAGS'
2434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2436ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002437if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2439set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002442if test "${ac_cv_prog_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444else
2445 if test -n "$CC"; then
2446 ac_cv_prog_CC="$CC" # Let the user override the test.
2447else
2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002454 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 +00002455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2458 fi
2459done
2460done
Reid Spencera773bd52006-08-04 18:18:08 +00002461IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002462
2463fi
2464fi
2465CC=$ac_cv_prog_CC
2466if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002467 { echo "$as_me:$LINENO: result: $CC" >&5
2468echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002469else
Reid Spencera773bd52006-08-04 18:18:08 +00002470 { echo "$as_me:$LINENO: result: no" >&5
2471echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002472fi
2473
Reid Spencera773bd52006-08-04 18:18:08 +00002474
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475fi
2476if test -z "$ac_cv_prog_CC"; then
2477 ac_ct_CC=$CC
2478 # Extract the first word of "gcc", so it can be a program name with args.
2479set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002482if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484else
2485 if test -n "$ac_ct_CC"; then
2486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2487else
2488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489for as_dir in $PATH
2490do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002494 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 +00002495 ac_cv_prog_ac_ct_CC="gcc"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 break 2
2498 fi
2499done
2500done
Reid Spencera773bd52006-08-04 18:18:08 +00002501IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002502
2503fi
2504fi
2505ac_ct_CC=$ac_cv_prog_ac_ct_CC
2506if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002507 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2508echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002509else
Reid Spencera773bd52006-08-04 18:18:08 +00002510 { echo "$as_me:$LINENO: result: no" >&5
2511echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002512fi
2513
Reid Spencera773bd52006-08-04 18:18:08 +00002514 if test "x$ac_ct_CC" = x; then
2515 CC=""
2516 else
2517 case $cross_compiling:$ac_tool_warned in
2518yes:)
2519{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2520whose name does not start with the host triplet. If you think this
2521configuration is useful to you, please write to autoconf@gnu.org." >&5
2522echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2523whose name does not start with the host triplet. If you think this
2524configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2525ac_tool_warned=yes ;;
2526esac
2527 CC=$ac_ct_CC
2528 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002529else
2530 CC="$ac_cv_prog_CC"
2531fi
2532
2533if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002534 if test -n "$ac_tool_prefix"; then
2535 # 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 +00002536set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002539if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541else
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2544else
2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002551 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 +00002552 ac_cv_prog_CC="${ac_tool_prefix}cc"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2555 fi
2556done
2557done
Reid Spencera773bd52006-08-04 18:18:08 +00002558IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002559
2560fi
2561fi
2562CC=$ac_cv_prog_CC
2563if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002564 { echo "$as_me:$LINENO: result: $CC" >&5
2565echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002566else
Reid Spencera773bd52006-08-04 18:18:08 +00002567 { echo "$as_me:$LINENO: result: no" >&5
2568echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002569fi
2570
Reid Spencera773bd52006-08-04 18:18:08 +00002571
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002572 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002573fi
2574if test -z "$CC"; then
2575 # Extract the first word of "cc", so it can be a program name with args.
2576set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002579if test "${ac_cv_prog_CC+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2581else
2582 if test -n "$CC"; then
2583 ac_cv_prog_CC="$CC" # Let the user override the test.
2584else
2585 ac_prog_rejected=no
2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002592 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 +00002593 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2594 ac_prog_rejected=yes
2595 continue
2596 fi
2597 ac_cv_prog_CC="cc"
2598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 break 2
2600 fi
2601done
2602done
Reid Spencera773bd52006-08-04 18:18:08 +00002603IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002604
2605if test $ac_prog_rejected = yes; then
2606 # We found a bogon in the path, so make sure we never use it.
2607 set dummy $ac_cv_prog_CC
2608 shift
2609 if test $# != 0; then
2610 # We chose a different compiler from the bogus one.
2611 # However, it has the same basename, so the bogon will be chosen
2612 # first if we set CC to just the basename; use the full file name.
2613 shift
2614 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2615 fi
2616fi
2617fi
2618fi
2619CC=$ac_cv_prog_CC
2620if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002621 { echo "$as_me:$LINENO: result: $CC" >&5
2622echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002623else
Reid Spencera773bd52006-08-04 18:18:08 +00002624 { echo "$as_me:$LINENO: result: no" >&5
2625echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626fi
2627
Reid Spencera773bd52006-08-04 18:18:08 +00002628
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629fi
2630if test -z "$CC"; then
2631 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002632 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002633 do
2634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2635set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002638if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002641 if test -n "$CC"; then
2642 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002643else
2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645for as_dir in $PATH
2646do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002650 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 +00002651 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2654 fi
2655done
2656done
Reid Spencera773bd52006-08-04 18:18:08 +00002657IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002658
2659fi
2660fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002661CC=$ac_cv_prog_CC
2662if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002663 { echo "$as_me:$LINENO: result: $CC" >&5
2664echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002665else
Reid Spencera773bd52006-08-04 18:18:08 +00002666 { echo "$as_me:$LINENO: result: no" >&5
2667echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002668fi
2669
Reid Spencera773bd52006-08-04 18:18:08 +00002670
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002671 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002672 done
2673fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002674if test -z "$CC"; then
2675 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002676 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002677do
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002680{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002682if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002685 if test -n "$ac_ct_CC"; then
2686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002687else
2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689for as_dir in $PATH
2690do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002694 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 +00002695 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699done
2700done
Reid Spencera773bd52006-08-04 18:18:08 +00002701IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002702
2703fi
2704fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002705ac_ct_CC=$ac_cv_prog_ac_ct_CC
2706if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002707 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2708echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002709else
Reid Spencera773bd52006-08-04 18:18:08 +00002710 { echo "$as_me:$LINENO: result: no" >&5
2711echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002712fi
2713
Reid Spencera773bd52006-08-04 18:18:08 +00002714
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002715 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002716done
John Criswell7a73b802003-06-30 21:59:07 +00002717
Reid Spencera773bd52006-08-04 18:18:08 +00002718 if test "x$ac_ct_CC" = x; then
2719 CC=""
2720 else
2721 case $cross_compiling:$ac_tool_warned in
2722yes:)
2723{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2724whose name does not start with the host triplet. If you think this
2725configuration is useful to you, please write to autoconf@gnu.org." >&5
2726echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2727whose name does not start with the host triplet. If you think this
2728configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2729ac_tool_warned=yes ;;
2730esac
2731 CC=$ac_ct_CC
2732 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002733fi
2734
John Criswell7a73b802003-06-30 21:59:07 +00002735fi
2736
2737
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002738test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2739See \`config.log' for more details." >&5
2740echo "$as_me: error: no acceptable C compiler found in \$PATH
2741See \`config.log' for more details." >&2;}
2742 { (exit 1); exit 1; }; }
2743
John Criswell7a73b802003-06-30 21:59:07 +00002744# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002745echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002746ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002747{ (ac_try="$ac_compiler --version >&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 --version >&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); }
Reid Spencera773bd52006-08-04 18:18:08 +00002767{ (ac_try="$ac_compiler -V >&5"
2768case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771esac
2772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }
2777
2778cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002779/* confdefs.h. */
2780_ACEOF
2781cat confdefs.h >>conftest.$ac_ext
2782cat >>conftest.$ac_ext <<_ACEOF
2783/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002784
John Criswell7a73b802003-06-30 21:59:07 +00002785int
2786main ()
2787{
2788
2789 ;
2790 return 0;
2791}
2792_ACEOF
2793ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002794ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002795# Try to create an executable without -o first, disregard a.out.
2796# It will help us diagnose broken compilers, and finding out an intuition
2797# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002798{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2799echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002800ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002801#
2802# List of possible output files, starting from the most likely.
2803# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2804# only as a last resort. b.out is created by i960 compilers.
2805ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2806#
2807# The IRIX 6 linker writes into existing files which may not be
2808# executable, retaining their permissions. Remove them first so a
2809# subsequent execution test works.
2810ac_rmfiles=
2811for ac_file in $ac_files
2812do
2813 case $ac_file in
2814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2815 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2816 esac
2817done
2818rm -f $ac_rmfiles
2819
2820if { (ac_try="$ac_link_default"
2821case "(($ac_try" in
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2824esac
2825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2826 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002830 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2831# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2832# in a Makefile. We should not override ac_cv_exeext if it was cached,
2833# so that the user can short-circuit this test for compilers unknown to
2834# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002835for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002836do
2837 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002838 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002840 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002841 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002842 # We found the default executable, but exeext='' is most
2843 # certainly right.
2844 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002845 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002846 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2847 then :; else
2848 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2849 fi
2850 # We set ac_cv_exeext here because the later test for it is not
2851 # safe: cross compilers may not add the suffix if given an `-o'
2852 # argument, so we may need to know it at that point already.
2853 # Even if this section looks crufty: it has the advantage of
2854 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002855 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002856 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002857 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002858 esac
2859done
Reid Spencera773bd52006-08-04 18:18:08 +00002860test "$ac_cv_exeext" = no && ac_cv_exeext=
2861
John Criswell7a73b802003-06-30 21:59:07 +00002862else
2863 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002864sed 's/^/| /' conftest.$ac_ext >&5
2865
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002866{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002867See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002868echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002869See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002870 { (exit 77); exit 77; }; }
2871fi
2872
2873ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002874{ echo "$as_me:$LINENO: result: $ac_file" >&5
2875echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002876
Reid Spencera773bd52006-08-04 18:18:08 +00002877# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002878# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002879{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2880echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002881# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2882# If not cross compiling, check that we can run a simple program.
2883if test "$cross_compiling" != yes; then
2884 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002885 { (case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888esac
2889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2894 cross_compiling=no
2895 else
2896 if test "$cross_compiling" = maybe; then
2897 cross_compiling=yes
2898 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002899 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002900If you meant to cross compile, use \`--host'.
2901See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002902echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002903If you meant to cross compile, use \`--host'.
2904See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002905 { (exit 1); exit 1; }; }
2906 fi
2907 fi
2908fi
Reid Spencera773bd52006-08-04 18:18:08 +00002909{ echo "$as_me:$LINENO: result: yes" >&5
2910echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002911
John Criswell0c38eaf2003-09-10 15:17:25 +00002912rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002913ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002914# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002915# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002916{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2917echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2918{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2919echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002920
Reid Spencera773bd52006-08-04 18:18:08 +00002921{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2922echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2923if { (ac_try="$ac_link"
2924case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927esac
2928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; then
2933 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2934# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2935# work properly (i.e., refer to `conftest.exe'), while it won't with
2936# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002937for ac_file in conftest.exe conftest conftest.*; do
2938 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002939 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002941 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002942 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002943 * ) break;;
2944 esac
2945done
2946else
John Criswell0c38eaf2003-09-10 15:17:25 +00002947 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2948See \`config.log' for more details." >&5
2949echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2950See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002951 { (exit 1); exit 1; }; }
2952fi
2953
2954rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002955{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2956echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002957
2958rm -f conftest.$ac_ext
2959EXEEXT=$ac_cv_exeext
2960ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002961{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2962echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002963if test "${ac_cv_objext+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965else
2966 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002967/* confdefs.h. */
2968_ACEOF
2969cat confdefs.h >>conftest.$ac_ext
2970cat >>conftest.$ac_ext <<_ACEOF
2971/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002972
John Criswell7a73b802003-06-30 21:59:07 +00002973int
2974main ()
2975{
2976
2977 ;
2978 return 0;
2979}
2980_ACEOF
2981rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002982if { (ac_try="$ac_compile"
2983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002992 for ac_file in conftest.o conftest.obj conftest.*; do
2993 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002994 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002996 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2997 break;;
2998 esac
2999done
3000else
3001 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003002sed 's/^/| /' conftest.$ac_ext >&5
3003
3004{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3005See \`config.log' for more details." >&5
3006echo "$as_me: error: cannot compute suffix of object files: cannot compile
3007See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003008 { (exit 1); exit 1; }; }
3009fi
3010
3011rm -f conftest.$ac_cv_objext conftest.$ac_ext
3012fi
Reid Spencera773bd52006-08-04 18:18:08 +00003013{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3014echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003015OBJEXT=$ac_cv_objext
3016ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003017{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3018echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003019if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003020 echo $ECHO_N "(cached) $ECHO_C" >&6
3021else
3022 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003023/* confdefs.h. */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
3027/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003028
John Criswell7a73b802003-06-30 21:59:07 +00003029int
3030main ()
3031{
3032#ifndef __GNUC__
3033 choke me
3034#endif
3035
3036 ;
3037 return 0;
3038}
3039_ACEOF
3040rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003041if { (ac_try="$ac_compile"
3042case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003048 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003049 grep -v '^ *+' conftest.er1 >conftest.err
3050 rm -f conftest.er1
3051 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003053 (exit $ac_status); } &&
3054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3064 { ac_try='test -s conftest.$ac_objext'
3065 { (case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068esac
3069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_try") 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003074 ac_compiler_gnu=yes
3075else
3076 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003077sed 's/^/| /' conftest.$ac_ext >&5
3078
Reid Spencera773bd52006-08-04 18:18:08 +00003079 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003080fi
Reid Spencera773bd52006-08-04 18:18:08 +00003081
3082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003083ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003084
3085fi
Reid Spencera773bd52006-08-04 18:18:08 +00003086{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3087echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003088GCC=`test $ac_compiler_gnu = yes && echo yes`
3089ac_test_CFLAGS=${CFLAGS+set}
3090ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003091{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3092echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003093if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003094 echo $ECHO_N "(cached) $ECHO_C" >&6
3095else
Reid Spencera773bd52006-08-04 18:18:08 +00003096 ac_save_c_werror_flag=$ac_c_werror_flag
3097 ac_c_werror_flag=yes
3098 ac_cv_prog_cc_g=no
3099 CFLAGS="-g"
3100 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003101/* confdefs.h. */
3102_ACEOF
3103cat confdefs.h >>conftest.$ac_ext
3104cat >>conftest.$ac_ext <<_ACEOF
3105/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003106
John Criswell7a73b802003-06-30 21:59:07 +00003107int
3108main ()
3109{
3110
3111 ;
3112 return 0;
3113}
3114_ACEOF
3115rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003116if { (ac_try="$ac_compile"
3117case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120esac
3121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003123 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003124 grep -v '^ *+' conftest.er1 >conftest.err
3125 rm -f conftest.er1
3126 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003128 (exit $ac_status); } &&
3129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3139 { ac_try='test -s conftest.$ac_objext'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003149 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003150else
3151 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003152sed 's/^/| /' conftest.$ac_ext >&5
3153
Reid Spencera773bd52006-08-04 18:18:08 +00003154 CFLAGS=""
3155 cat >conftest.$ac_ext <<_ACEOF
3156/* confdefs.h. */
3157_ACEOF
3158cat confdefs.h >>conftest.$ac_ext
3159cat >>conftest.$ac_ext <<_ACEOF
3160/* end confdefs.h. */
3161
3162int
3163main ()
3164{
3165
3166 ;
3167 return 0;
3168}
3169_ACEOF
3170rm -f conftest.$ac_objext
3171if { (ac_try="$ac_compile"
3172case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175esac
3176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3178 ac_status=$?
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003183 (exit $ac_status); } &&
3184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198esac
3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003204 :
3205else
3206 echo "$as_me: failed program was:" >&5
3207sed 's/^/| /' conftest.$ac_ext >&5
3208
3209 ac_c_werror_flag=$ac_save_c_werror_flag
3210 CFLAGS="-g"
3211 cat >conftest.$ac_ext <<_ACEOF
3212/* confdefs.h. */
3213_ACEOF
3214cat confdefs.h >>conftest.$ac_ext
3215cat >>conftest.$ac_ext <<_ACEOF
3216/* end confdefs.h. */
3217
3218int
3219main ()
3220{
3221
3222 ;
3223 return 0;
3224}
3225_ACEOF
3226rm -f conftest.$ac_objext
3227if { (ac_try="$ac_compile"
3228case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231esac
3232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003239 (exit $ac_status); } &&
3240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
3255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_try") 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003260 ac_cv_prog_cc_g=yes
3261else
3262 echo "$as_me: failed program was:" >&5
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
3265
John Criswell7a73b802003-06-30 21:59:07 +00003266fi
Reid Spencera773bd52006-08-04 18:18:08 +00003267
3268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003269fi
Reid Spencera773bd52006-08-04 18:18:08 +00003270
3271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272fi
3273
3274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 ac_c_werror_flag=$ac_save_c_werror_flag
3276fi
3277{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3278echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003279if test "$ac_test_CFLAGS" = set; then
3280 CFLAGS=$ac_save_CFLAGS
3281elif test $ac_cv_prog_cc_g = yes; then
3282 if test "$GCC" = yes; then
3283 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003284 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003285 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003286 fi
3287else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003288 if test "$GCC" = yes; then
3289 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003290 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003291 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003292 fi
3293fi
Reid Spencera773bd52006-08-04 18:18:08 +00003294{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3295echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3296if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298else
Reid Spencera773bd52006-08-04 18:18:08 +00003299 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003300ac_save_CC=$CC
3301cat >conftest.$ac_ext <<_ACEOF
3302/* confdefs.h. */
3303_ACEOF
3304cat confdefs.h >>conftest.$ac_ext
3305cat >>conftest.$ac_ext <<_ACEOF
3306/* end confdefs.h. */
3307#include <stdarg.h>
3308#include <stdio.h>
3309#include <sys/types.h>
3310#include <sys/stat.h>
3311/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3312struct buf { int x; };
3313FILE * (*rcsopen) (struct buf *, struct stat *, int);
3314static char *e (p, i)
3315 char **p;
3316 int i;
3317{
3318 return p[i];
3319}
3320static char *f (char * (*g) (char **, int), char **p, ...)
3321{
3322 char *s;
3323 va_list v;
3324 va_start (v,p);
3325 s = g (p, va_arg (v,int));
3326 va_end (v);
3327 return s;
3328}
3329
3330/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3331 function prototypes and stuff, but not '\xHH' hex character constants.
3332 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003333 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003334 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3335 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003336 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003337int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3338
Reid Spencera773bd52006-08-04 18:18:08 +00003339/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3340 inside strings and character constants. */
3341#define FOO(x) 'x'
3342int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3343
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003344int test (int i, double x);
3345struct s1 {int (*f) (int a);};
3346struct s2 {int (*f) (double a);};
3347int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3348int argc;
3349char **argv;
3350int
3351main ()
3352{
3353return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3354 ;
3355 return 0;
3356}
3357_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003358for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3359 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003360do
3361 CC="$ac_save_CC $ac_arg"
3362 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003363if { (ac_try="$ac_compile"
3364case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367esac
3368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003370 ac_status=$?
3371 grep -v '^ *+' conftest.er1 >conftest.err
3372 rm -f conftest.er1
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003375 (exit $ac_status); } &&
3376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390esac
3391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_try") 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003396 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003397else
3398 echo "$as_me: failed program was:" >&5
3399sed 's/^/| /' conftest.$ac_ext >&5
3400
Reid Spencera773bd52006-08-04 18:18:08 +00003401
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003402fi
Reid Spencera773bd52006-08-04 18:18:08 +00003403
3404rm -f core conftest.err conftest.$ac_objext
3405 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003406done
Reid Spencera773bd52006-08-04 18:18:08 +00003407rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003408CC=$ac_save_CC
3409
3410fi
Reid Spencera773bd52006-08-04 18:18:08 +00003411# AC_CACHE_VAL
3412case "x$ac_cv_prog_cc_c89" in
3413 x)
3414 { echo "$as_me:$LINENO: result: none needed" >&5
3415echo "${ECHO_T}none needed" >&6; } ;;
3416 xno)
3417 { echo "$as_me:$LINENO: result: unsupported" >&5
3418echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003419 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003420 CC="$CC $ac_cv_prog_cc_c89"
3421 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3422echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003423esac
3424
John Criswell0c38eaf2003-09-10 15:17:25 +00003425
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003426ac_ext=c
3427ac_cpp='$CPP $CPPFLAGS'
3428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431
3432
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003433ac_ext=c
3434ac_cpp='$CPP $CPPFLAGS'
3435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003438{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3439echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003440# On Suns, sometimes $CPP names a directory.
3441if test -n "$CPP" && test -d "$CPP"; then
3442 CPP=
3443fi
3444if test -z "$CPP"; then
3445 if test "${ac_cv_prog_CPP+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447else
3448 # Double quotes because CPP needs to be expanded
3449 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3450 do
3451 ac_preproc_ok=false
3452for ac_c_preproc_warn_flag in '' yes
3453do
3454 # Use a header file that comes with gcc, so configuring glibc
3455 # with a fresh cross-compiler works.
3456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3457 # <limits.h> exists even on freestanding compilers.
3458 # On the NeXT, cc -E runs the code through the compiler's parser,
3459 # not just through cpp. "Syntax error" is here to catch this case.
3460 cat >conftest.$ac_ext <<_ACEOF
3461/* confdefs.h. */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h. */
3466#ifdef __STDC__
3467# include <limits.h>
3468#else
3469# include <assert.h>
3470#endif
3471 Syntax error
3472_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003473if { (ac_try="$ac_cpp conftest.$ac_ext"
3474case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477esac
3478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003485 (exit $ac_status); } >/dev/null; then
3486 if test -s conftest.err; then
3487 ac_cpp_err=$ac_c_preproc_warn_flag
3488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3489 else
3490 ac_cpp_err=
3491 fi
3492else
3493 ac_cpp_err=yes
3494fi
3495if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003496 :
3497else
3498 echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501 # Broken: fails on valid input.
3502continue
3503fi
Reid Spencera773bd52006-08-04 18:18:08 +00003504
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003505rm -f conftest.err conftest.$ac_ext
3506
Reid Spencera773bd52006-08-04 18:18:08 +00003507 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003508 # can be detected and how.
3509 cat >conftest.$ac_ext <<_ACEOF
3510/* confdefs.h. */
3511_ACEOF
3512cat confdefs.h >>conftest.$ac_ext
3513cat >>conftest.$ac_ext <<_ACEOF
3514/* end confdefs.h. */
3515#include <ac_nonexistent.h>
3516_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003517if { (ac_try="$ac_cpp conftest.$ac_ext"
3518case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521esac
3522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003529 (exit $ac_status); } >/dev/null; then
3530 if test -s conftest.err; then
3531 ac_cpp_err=$ac_c_preproc_warn_flag
3532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3533 else
3534 ac_cpp_err=
3535 fi
3536else
3537 ac_cpp_err=yes
3538fi
3539if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003540 # Broken: success on invalid input.
3541continue
3542else
3543 echo "$as_me: failed program was:" >&5
3544sed 's/^/| /' conftest.$ac_ext >&5
3545
3546 # Passes both tests.
3547ac_preproc_ok=:
3548break
3549fi
Reid Spencera773bd52006-08-04 18:18:08 +00003550
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003551rm -f conftest.err conftest.$ac_ext
3552
3553done
3554# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3555rm -f conftest.err conftest.$ac_ext
3556if $ac_preproc_ok; then
3557 break
3558fi
3559
3560 done
3561 ac_cv_prog_CPP=$CPP
3562
3563fi
3564 CPP=$ac_cv_prog_CPP
3565else
3566 ac_cv_prog_CPP=$CPP
3567fi
Reid Spencera773bd52006-08-04 18:18:08 +00003568{ echo "$as_me:$LINENO: result: $CPP" >&5
3569echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003570ac_preproc_ok=false
3571for ac_c_preproc_warn_flag in '' yes
3572do
3573 # Use a header file that comes with gcc, so configuring glibc
3574 # with a fresh cross-compiler works.
3575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3576 # <limits.h> exists even on freestanding compilers.
3577 # On the NeXT, cc -E runs the code through the compiler's parser,
3578 # not just through cpp. "Syntax error" is here to catch this case.
3579 cat >conftest.$ac_ext <<_ACEOF
3580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h. */
3585#ifdef __STDC__
3586# include <limits.h>
3587#else
3588# include <assert.h>
3589#endif
3590 Syntax error
3591_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003592if { (ac_try="$ac_cpp conftest.$ac_ext"
3593case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596esac
3597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003599 ac_status=$?
3600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003604 (exit $ac_status); } >/dev/null; then
3605 if test -s conftest.err; then
3606 ac_cpp_err=$ac_c_preproc_warn_flag
3607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3608 else
3609 ac_cpp_err=
3610 fi
3611else
3612 ac_cpp_err=yes
3613fi
3614if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003615 :
3616else
3617 echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
3620 # Broken: fails on valid input.
3621continue
3622fi
Reid Spencera773bd52006-08-04 18:18:08 +00003623
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003624rm -f conftest.err conftest.$ac_ext
3625
Reid Spencera773bd52006-08-04 18:18:08 +00003626 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003627 # can be detected and how.
3628 cat >conftest.$ac_ext <<_ACEOF
3629/* confdefs.h. */
3630_ACEOF
3631cat confdefs.h >>conftest.$ac_ext
3632cat >>conftest.$ac_ext <<_ACEOF
3633/* end confdefs.h. */
3634#include <ac_nonexistent.h>
3635_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003636if { (ac_try="$ac_cpp conftest.$ac_ext"
3637case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640esac
3641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003643 ac_status=$?
3644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003648 (exit $ac_status); } >/dev/null; then
3649 if test -s conftest.err; then
3650 ac_cpp_err=$ac_c_preproc_warn_flag
3651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3652 else
3653 ac_cpp_err=
3654 fi
3655else
3656 ac_cpp_err=yes
3657fi
3658if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003659 # Broken: success on invalid input.
3660continue
3661else
3662 echo "$as_me: failed program was:" >&5
3663sed 's/^/| /' conftest.$ac_ext >&5
3664
3665 # Passes both tests.
3666ac_preproc_ok=:
3667break
3668fi
Reid Spencera773bd52006-08-04 18:18:08 +00003669
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003670rm -f conftest.err conftest.$ac_ext
3671
3672done
3673# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3674rm -f conftest.err conftest.$ac_ext
3675if $ac_preproc_ok; then
3676 :
3677else
3678 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3679See \`config.log' for more details." >&5
3680echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3681See \`config.log' for more details." >&2;}
3682 { (exit 1); exit 1; }; }
3683fi
3684
John Criswell7a73b802003-06-30 21:59:07 +00003685ac_ext=c
3686ac_cpp='$CPP $CPPFLAGS'
3687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690
John Criswell7a73b802003-06-30 21:59:07 +00003691
Reid Spencera773bd52006-08-04 18:18:08 +00003692{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3693echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003694if test "${ac_cv_path_GREP+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696else
Reid Spencera773bd52006-08-04 18:18:08 +00003697 # Extract the first word of "grep ggrep" to use in msg output
3698if test -z "$GREP"; then
3699set dummy grep ggrep; ac_prog_name=$2
3700if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702else
Reid Spencera773bd52006-08-04 18:18:08 +00003703 ac_path_GREP_found=false
3704# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003706for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003707do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003710 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003711 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003712 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003713 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003714 # Check for GNU ac_path_GREP and select it if it is found.
3715 # Check for GNU $ac_path_GREP
3716case `"$ac_path_GREP" --version 2>&1` in
3717*GNU*)
3718 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3719*)
3720 ac_count=0
3721 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3722 while :
3723 do
3724 cat "conftest.in" "conftest.in" >"conftest.tmp"
3725 mv "conftest.tmp" "conftest.in"
3726 cp "conftest.in" "conftest.nl"
3727 echo 'GREP' >> "conftest.nl"
3728 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3729 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3730 ac_count=`expr $ac_count + 1`
3731 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3732 # Best one so far, save it but keep looking for a better one
3733 ac_cv_path_GREP="$ac_path_GREP"
3734 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003735 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003736 # 10*(2^10) chars as input seems more than enough
3737 test $ac_count -gt 10 && break
3738 done
3739 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3740esac
3741
3742
3743 $ac_path_GREP_found && break 3
3744 done
3745done
3746
3747done
3748IFS=$as_save_IFS
3749
3750
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003751fi
Reid Spencera773bd52006-08-04 18:18:08 +00003752
3753GREP="$ac_cv_path_GREP"
3754if test -z "$GREP"; then
3755 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3756echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3757 { (exit 1); exit 1; }; }
3758fi
3759
3760else
3761 ac_cv_path_GREP=$GREP
3762fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003763
John Criswell7a73b802003-06-30 21:59:07 +00003764
Reid Spencera773bd52006-08-04 18:18:08 +00003765fi
3766{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3767echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3768 GREP="$ac_cv_path_GREP"
3769
3770
3771{ echo "$as_me:$LINENO: checking for egrep" >&5
3772echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3773if test "${ac_cv_path_EGREP+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775else
3776 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3777 then ac_cv_path_EGREP="$GREP -E"
3778 else
3779 # Extract the first word of "egrep" to use in msg output
3780if test -z "$EGREP"; then
3781set dummy egrep; ac_prog_name=$2
3782if test "${ac_cv_path_EGREP+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784else
3785 ac_path_EGREP_found=false
3786# Loop through the user's path and test for each of PROGNAME-LIST
3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3789do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_prog in egrep; do
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003795 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003796 # Check for GNU ac_path_EGREP and select it if it is found.
3797 # Check for GNU $ac_path_EGREP
3798case `"$ac_path_EGREP" --version 2>&1` in
3799*GNU*)
3800 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3801*)
3802 ac_count=0
3803 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3804 while :
3805 do
3806 cat "conftest.in" "conftest.in" >"conftest.tmp"
3807 mv "conftest.tmp" "conftest.in"
3808 cp "conftest.in" "conftest.nl"
3809 echo 'EGREP' >> "conftest.nl"
3810 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3812 ac_count=`expr $ac_count + 1`
3813 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3814 # Best one so far, save it but keep looking for a better one
3815 ac_cv_path_EGREP="$ac_path_EGREP"
3816 ac_path_EGREP_max=$ac_count
3817 fi
3818 # 10*(2^10) chars as input seems more than enough
3819 test $ac_count -gt 10 && break
3820 done
3821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3822esac
3823
3824
3825 $ac_path_EGREP_found && break 3
3826 done
3827done
3828
3829done
3830IFS=$as_save_IFS
3831
3832
3833fi
3834
3835EGREP="$ac_cv_path_EGREP"
3836if test -z "$EGREP"; then
3837 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3838echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3839 { (exit 1); exit 1; }; }
3840fi
3841
3842else
3843 ac_cv_path_EGREP=$EGREP
3844fi
3845
3846
3847 fi
3848fi
3849{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3850echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3851 EGREP="$ac_cv_path_EGREP"
3852
3853
3854{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3855echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003856if test "${ac_cv_header_stdc+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858else
3859 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003860/* confdefs.h. */
3861_ACEOF
3862cat confdefs.h >>conftest.$ac_ext
3863cat >>conftest.$ac_ext <<_ACEOF
3864/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003865#include <stdlib.h>
3866#include <stdarg.h>
3867#include <string.h>
3868#include <float.h>
3869
John Criswell0c38eaf2003-09-10 15:17:25 +00003870int
3871main ()
3872{
3873
3874 ;
3875 return 0;
3876}
John Criswell7a73b802003-06-30 21:59:07 +00003877_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003878rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003879if { (ac_try="$ac_compile"
3880case "(($ac_try" in
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3883esac
3884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003886 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003887 grep -v '^ *+' conftest.er1 >conftest.err
3888 rm -f conftest.er1
3889 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003891 (exit $ac_status); } &&
3892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3902 { ac_try='test -s conftest.$ac_objext'
3903 { (case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906esac
3907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3908 (eval "$ac_try") 2>&5
3909 ac_status=$?
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003912 ac_cv_header_stdc=yes
3913else
3914 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003915sed 's/^/| /' conftest.$ac_ext >&5
3916
Reid Spencera773bd52006-08-04 18:18:08 +00003917 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003918fi
Reid Spencera773bd52006-08-04 18:18:08 +00003919
3920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003921
3922if test $ac_cv_header_stdc = yes; then
3923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3924 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003925/* confdefs.h. */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003930#include <string.h>
3931
3932_ACEOF
3933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003934 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003935 :
3936else
3937 ac_cv_header_stdc=no
3938fi
3939rm -f conftest*
3940
3941fi
3942
3943if test $ac_cv_header_stdc = yes; then
3944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3945 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003946/* confdefs.h. */
3947_ACEOF
3948cat confdefs.h >>conftest.$ac_ext
3949cat >>conftest.$ac_ext <<_ACEOF
3950/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003951#include <stdlib.h>
3952
3953_ACEOF
3954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003955 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003956 :
3957else
3958 ac_cv_header_stdc=no
3959fi
3960rm -f conftest*
3961
3962fi
3963
3964if test $ac_cv_header_stdc = yes; then
3965 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3966 if test "$cross_compiling" = yes; then
3967 :
3968else
3969 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003970/* confdefs.h. */
3971_ACEOF
3972cat confdefs.h >>conftest.$ac_ext
3973cat >>conftest.$ac_ext <<_ACEOF
3974/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003975#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003976#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003977#if ((' ' & 0x0FF) == 0x020)
3978# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3979# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3980#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003981# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003982 (('a' <= (c) && (c) <= 'i') \
3983 || ('j' <= (c) && (c) <= 'r') \
3984 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003985# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3986#endif
3987
3988#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3989int
3990main ()
3991{
3992 int i;
3993 for (i = 0; i < 256; i++)
3994 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003995 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003996 return 2;
3997 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003998}
3999_ACEOF
4000rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00004001if { (ac_try="$ac_link"
4002case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005esac
4006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00004011 { (case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014esac
4015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
4020 :
4021else
4022 echo "$as_me: program exited with status $ac_status" >&5
4023echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004024sed 's/^/| /' conftest.$ac_ext >&5
4025
John Criswell7a73b802003-06-30 21:59:07 +00004026( exit $ac_status )
4027ac_cv_header_stdc=no
4028fi
Reid Spencera773bd52006-08-04 18:18:08 +00004029rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4030fi
4031
4032
John Criswell7a73b802003-06-30 21:59:07 +00004033fi
4034fi
Reid Spencera773bd52006-08-04 18:18:08 +00004035{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4036echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004037if test $ac_cv_header_stdc = yes; then
4038
4039cat >>confdefs.h <<\_ACEOF
4040#define STDC_HEADERS 1
4041_ACEOF
4042
4043fi
4044
Reid Spencera773bd52006-08-04 18:18:08 +00004045# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4056 inttypes.h stdint.h unistd.h
4057do
4058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4059{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4063else
4064 cat >conftest.$ac_ext <<_ACEOF
4065/* confdefs.h. */
4066_ACEOF
4067cat confdefs.h >>conftest.$ac_ext
4068cat >>conftest.$ac_ext <<_ACEOF
4069/* end confdefs.h. */
4070$ac_includes_default
4071
4072#include <$ac_header>
4073_ACEOF
4074rm -f conftest.$ac_objext
4075if { (ac_try="$ac_compile"
4076case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079esac
4080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_compile") 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004087 (exit $ac_status); } &&
4088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4098 { ac_try='test -s conftest.$ac_objext'
4099 { (case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102esac
4103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4104 (eval "$ac_try") 2>&5
4105 ac_status=$?
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004108 eval "$as_ac_Header=yes"
4109else
4110 echo "$as_me: failed program was:" >&5
4111sed 's/^/| /' conftest.$ac_ext >&5
4112
4113 eval "$as_ac_Header=no"
4114fi
4115
4116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117fi
4118ac_res=`eval echo '${'$as_ac_Header'}'`
4119 { echo "$as_me:$LINENO: result: $ac_res" >&5
4120echo "${ECHO_T}$ac_res" >&6; }
4121if test `eval echo '${'$as_ac_Header'}'` = yes; then
4122 cat >>confdefs.h <<_ACEOF
4123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4124_ACEOF
4125
4126fi
4127
4128done
4129
4130
4131{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4132echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4133if test "${ac_cv_c_bigendian+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135else
4136 # See if sys/param.h defines the BYTE_ORDER macro.
4137cat >conftest.$ac_ext <<_ACEOF
4138/* confdefs.h. */
4139_ACEOF
4140cat confdefs.h >>conftest.$ac_ext
4141cat >>conftest.$ac_ext <<_ACEOF
4142/* end confdefs.h. */
4143#include <sys/types.h>
4144#include <sys/param.h>
4145
4146int
4147main ()
4148{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004149#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004150 bogus endian macros
4151#endif
4152
4153 ;
4154 return 0;
4155}
4156_ACEOF
4157rm -f conftest.$ac_objext
4158if { (ac_try="$ac_compile"
4159case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4162esac
4163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_compile") 2>conftest.er1
4165 ac_status=$?
4166 grep -v '^ *+' conftest.er1 >conftest.err
4167 rm -f conftest.er1
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004170 (exit $ac_status); } &&
4171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4181 { ac_try='test -s conftest.$ac_objext'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004191 # It does; now see whether it defined to BIG_ENDIAN or not.
4192cat >conftest.$ac_ext <<_ACEOF
4193/* confdefs.h. */
4194_ACEOF
4195cat confdefs.h >>conftest.$ac_ext
4196cat >>conftest.$ac_ext <<_ACEOF
4197/* end confdefs.h. */
4198#include <sys/types.h>
4199#include <sys/param.h>
4200
4201int
4202main ()
4203{
4204#if BYTE_ORDER != BIG_ENDIAN
4205 not big endian
4206#endif
4207
4208 ;
4209 return 0;
4210}
4211_ACEOF
4212rm -f conftest.$ac_objext
4213if { (ac_try="$ac_compile"
4214case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217esac
4218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004225 (exit $ac_status); } &&
4226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4236 { ac_try='test -s conftest.$ac_objext'
4237 { (case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240esac
4241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_try") 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004246 ac_cv_c_bigendian=yes
4247else
4248 echo "$as_me: failed program was:" >&5
4249sed 's/^/| /' conftest.$ac_ext >&5
4250
4251 ac_cv_c_bigendian=no
4252fi
4253
4254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255else
4256 echo "$as_me: failed program was:" >&5
4257sed 's/^/| /' conftest.$ac_ext >&5
4258
4259 # It does not; compile a test program.
4260if test "$cross_compiling" = yes; then
4261 # try to guess the endianness by grepping values into an object file
4262 ac_cv_c_bigendian=unknown
4263 cat >conftest.$ac_ext <<_ACEOF
4264/* confdefs.h. */
4265_ACEOF
4266cat confdefs.h >>conftest.$ac_ext
4267cat >>conftest.$ac_ext <<_ACEOF
4268/* end confdefs.h. */
4269short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4270short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4271void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4272short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4273short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4274void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4275int
4276main ()
4277{
4278 _ascii (); _ebcdic ();
4279 ;
4280 return 0;
4281}
4282_ACEOF
4283rm -f conftest.$ac_objext
4284if { (ac_try="$ac_compile"
4285case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288esac
4289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_compile") 2>conftest.er1
4291 ac_status=$?
4292 grep -v '^ *+' conftest.er1 >conftest.err
4293 rm -f conftest.er1
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004296 (exit $ac_status); } &&
4297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4307 { ac_try='test -s conftest.$ac_objext'
4308 { (case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4311esac
4312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_try") 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004317 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4318 ac_cv_c_bigendian=yes
4319fi
4320if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4321 if test "$ac_cv_c_bigendian" = unknown; then
4322 ac_cv_c_bigendian=no
4323 else
4324 # finding both strings is unlikely to happen, but who knows?
4325 ac_cv_c_bigendian=unknown
4326 fi
4327fi
4328else
4329 echo "$as_me: failed program was:" >&5
4330sed 's/^/| /' conftest.$ac_ext >&5
4331
4332
4333fi
4334
4335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336else
4337 cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h. */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h. */
4343$ac_includes_default
4344int
4345main ()
4346{
4347
4348 /* Are we little or big endian? From Harbison&Steele. */
4349 union
4350 {
4351 long int l;
4352 char c[sizeof (long int)];
4353 } u;
4354 u.l = 1;
4355 return u.c[sizeof (long int) - 1] == 1;
4356
4357 ;
4358 return 0;
4359}
4360_ACEOF
4361rm -f conftest$ac_exeext
4362if { (ac_try="$ac_link"
4363case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366esac
4367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_link") 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4372 { (case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375esac
4376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_try") 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
4381 ac_cv_c_bigendian=no
4382else
4383 echo "$as_me: program exited with status $ac_status" >&5
4384echo "$as_me: failed program was:" >&5
4385sed 's/^/| /' conftest.$ac_ext >&5
4386
4387( exit $ac_status )
4388ac_cv_c_bigendian=yes
4389fi
4390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4391fi
4392
4393
4394fi
4395
4396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397fi
4398{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4399echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4400case $ac_cv_c_bigendian in
4401 yes)
4402 ENDIAN=big
4403 ;;
4404 no)
4405 ENDIAN=little
4406 ;;
4407 *)
4408 { { echo "$as_me:$LINENO: error: unknown endianness
4409presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4410echo "$as_me: error: unknown endianness
4411presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4412 { (exit 1); exit 1; }; } ;;
4413esac
4414
4415
4416if test "$cross_compiling" = yes; then
4417 LLVM_CROSS_COMPILING=1
4418
4419
4420{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4421echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4422if test "${ac_cv_build_exeext+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424else
4425 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4426 ac_cv_build_exeext=.exe
4427else
4428 ac_build_prefix=${build_alias}-
4429
4430 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4431set dummy ${ac_build_prefix}gcc; ac_word=$2
4432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436else
4437 if test -n "$BUILD_CC"; then
4438 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4439else
4440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441for as_dir in $PATH
4442do
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004446 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 +00004447 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4450 fi
4451done
4452done
4453IFS=$as_save_IFS
4454
4455fi
4456fi
4457BUILD_CC=$ac_cv_prog_BUILD_CC
4458if test -n "$BUILD_CC"; then
4459 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4460echo "${ECHO_T}$BUILD_CC" >&6; }
4461else
4462 { echo "$as_me:$LINENO: result: no" >&5
4463echo "${ECHO_T}no" >&6; }
4464fi
4465
4466
4467 if test -z "$BUILD_CC"; then
4468 # Extract the first word of "gcc", so it can be a program name with args.
4469set dummy gcc; ac_word=$2
4470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474else
4475 if test -n "$BUILD_CC"; then
4476 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4477else
4478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479for as_dir in $PATH
4480do
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004484 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 +00004485 ac_cv_prog_BUILD_CC="gcc"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 break 2
4488 fi
4489done
4490done
4491IFS=$as_save_IFS
4492
4493fi
4494fi
4495BUILD_CC=$ac_cv_prog_BUILD_CC
4496if test -n "$BUILD_CC"; then
4497 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4498echo "${ECHO_T}$BUILD_CC" >&6; }
4499else
4500 { echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6; }
4502fi
4503
4504
4505 if test -z "$BUILD_CC"; then
4506 # Extract the first word of "cc", so it can be a program name with args.
4507set dummy cc; ac_word=$2
4508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4510if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512else
4513 if test -n "$BUILD_CC"; then
4514 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4515else
4516 ac_prog_rejected=no
4517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518for as_dir in $PATH
4519do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004523 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 +00004524 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4525 ac_prog_rejected=yes
4526 continue
4527 fi
4528 ac_cv_prog_BUILD_CC="cc"
4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4531 fi
4532done
4533done
4534IFS=$as_save_IFS
4535
4536if test $ac_prog_rejected = yes; then
4537 # We found a bogon in the path, so make sure we never use it.
4538 set dummy $ac_cv_prog_BUILD_CC
4539 shift
4540 if test $# != 0; then
4541 # We chose a different compiler from the bogus one.
4542 # However, it has the same basename, so the bogon will be chosen
4543 # first if we set BUILD_CC to just the basename; use the full file name.
4544 shift
4545 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4546 fi
4547fi
4548fi
4549fi
4550BUILD_CC=$ac_cv_prog_BUILD_CC
4551if test -n "$BUILD_CC"; then
4552 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4553echo "${ECHO_T}$BUILD_CC" >&6; }
4554else
4555 { echo "$as_me:$LINENO: result: no" >&5
4556echo "${ECHO_T}no" >&6; }
4557fi
4558
4559
4560 fi
4561 fi
4562 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4563echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4564 { (exit 1); exit 1; }; }
4565 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4566 rm -f conftest*
4567 echo 'int main () { return 0; }' > conftest.$ac_ext
4568 ac_cv_build_exeext=
4569 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4570 (eval $ac_build_link) 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; then
4574 for file in conftest.*; do
4575 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004576 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004577 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4578 esac
4579 done
4580 else
4581 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4582echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4583 { (exit 1); exit 1; }; }
4584 fi
4585 rm -f conftest*
4586 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4587fi
4588fi
4589
4590BUILD_EXEEXT=""
4591test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4592{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4593echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4594ac_build_exeext=$BUILD_EXEEXT
4595
Jim Grosbach673612e2008-10-02 22:56:44 +00004596 ac_build_prefix=${build_alias}-
4597 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4598set dummy ${ac_build_prefix}g++; ac_word=$2
4599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4601if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603else
4604 if test -n "$BUILD_CXX"; then
4605 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4606else
4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004613 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 +00004614 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618done
4619done
4620IFS=$as_save_IFS
4621
4622fi
4623fi
4624BUILD_CXX=$ac_cv_prog_BUILD_CXX
4625if test -n "$BUILD_CXX"; then
4626 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4627echo "${ECHO_T}$BUILD_CXX" >&6; }
4628else
4629 { echo "$as_me:$LINENO: result: no" >&5
4630echo "${ECHO_T}no" >&6; }
4631fi
4632
4633
4634 if test -z "$BUILD_CXX"; then
4635 # Extract the first word of "g++", so it can be a program name with args.
4636set dummy g++; ac_word=$2
4637{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4639if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4641else
4642 if test -n "$BUILD_CXX"; then
4643 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4644else
4645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004651 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 +00004652 ac_cv_prog_BUILD_CXX="g++"
4653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4655 fi
4656done
4657done
4658IFS=$as_save_IFS
4659
4660fi
4661fi
4662BUILD_CXX=$ac_cv_prog_BUILD_CXX
4663if test -n "$BUILD_CXX"; then
4664 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4665echo "${ECHO_T}$BUILD_CXX" >&6; }
4666else
4667 { echo "$as_me:$LINENO: result: no" >&5
4668echo "${ECHO_T}no" >&6; }
4669fi
4670
4671
4672 if test -z "$BUILD_CXX"; then
4673 # Extract the first word of "c++", so it can be a program name with args.
4674set dummy c++; ac_word=$2
4675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4679else
4680 if test -n "$BUILD_CXX"; then
4681 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4682else
4683 ac_prog_rejected=no
4684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685for as_dir in $PATH
4686do
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004690 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 +00004691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4692 ac_prog_rejected=yes
4693 continue
4694 fi
4695 ac_cv_prog_BUILD_CXX="c++"
4696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 break 2
4698 fi
4699done
4700done
4701IFS=$as_save_IFS
4702
4703if test $ac_prog_rejected = yes; then
4704 # We found a bogon in the path, so make sure we never use it.
4705 set dummy $ac_cv_prog_BUILD_CXX
4706 shift
4707 if test $# != 0; then
4708 # We chose a different compiler from the bogus one.
4709 # However, it has the same basename, so the bogon will be chosen
4710 # first if we set BUILD_CXX to just the basename; use the full file name.
4711 shift
4712 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4713 fi
4714fi
4715fi
4716fi
4717BUILD_CXX=$ac_cv_prog_BUILD_CXX
4718if test -n "$BUILD_CXX"; then
4719 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4720echo "${ECHO_T}$BUILD_CXX" >&6; }
4721else
4722 { echo "$as_me:$LINENO: result: no" >&5
4723echo "${ECHO_T}no" >&6; }
4724fi
4725
4726
4727 fi
4728 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004729else
4730 LLVM_CROSS_COMPILING=0
4731
4732fi
4733
Nick Lewycky5b28f862009-04-10 05:18:27 +00004734if 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 +00004735 cvsbuild="yes"
4736 optimize="no"
4737 CVSBUILD=CVSBUILD=1
4738
4739else
4740 cvsbuild="no"
4741 optimize="yes"
4742fi
4743
4744
4745# Check whether --enable-optimized was given.
4746if test "${enable_optimized+set}" = set; then
4747 enableval=$enable_optimized;
4748else
4749 enableval=$optimize
4750fi
4751
4752if test ${enableval} = "no" ; then
4753 ENABLE_OPTIMIZED=
4754
4755else
4756 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4757
4758fi
4759
David Greene2a5a12c2009-04-17 14:50:39 +00004760# Check whether --enable-profiling was given.
4761if test "${enable_profiling+set}" = set; then
4762 enableval=$enable_profiling;
4763else
4764 enableval="no"
4765fi
4766
4767if test ${enableval} = "no" ; then
4768 ENABLE_PROFILING=
4769
4770else
4771 ENABLE_PROFILING=ENABLE_PROFILING=1
4772
4773fi
4774
Reid Spencera773bd52006-08-04 18:18:08 +00004775# Check whether --enable-assertions was given.
4776if test "${enable_assertions+set}" = set; then
4777 enableval=$enable_assertions;
4778else
4779 enableval="yes"
4780fi
4781
4782if test ${enableval} = "yes" ; then
4783 DISABLE_ASSERTIONS=
4784
4785else
4786 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4787
4788fi
4789
Shantonu Sen7e836972009-08-11 13:39:52 +00004790if test ${ENABLE_OPTIMIZED},${DISABLE_ASSERTIONS} = "ENABLE_OPTIMIZED=1,DISABLE_ASSERTIONS=1" ; then
4791 LLVM_COMPACT_SENTINELS=1
4792
4793else
4794 LLVM_COMPACT_SENTINELS=0
4795
4796fi
4797
4798
4799cat >>confdefs.h <<_ACEOF
4800#define LLVM_COMPACT_SENTINELS $LLVM_COMPACT_SENTINELS
4801_ACEOF
4802
4803
4804
David Greenea696d242007-06-28 19:36:08 +00004805# Check whether --enable-expensive-checks was given.
4806if test "${enable_expensive_checks+set}" = set; then
4807 enableval=$enable_expensive_checks;
4808else
4809 enableval="no"
4810fi
4811
4812if test ${enableval} = "yes" ; then
4813 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4814
4815 EXPENSIVE_CHECKS=yes
4816
4817else
4818 ENABLE_EXPENSIVE_CHECKS=
4819
4820 EXPENSIVE_CHECKS=no
4821
4822fi
4823
Reid Spencer8b2e1412006-11-17 03:32:33 +00004824# Check whether --enable-debug-runtime was given.
4825if test "${enable_debug_runtime+set}" = set; then
4826 enableval=$enable_debug_runtime;
4827else
4828 enableval=no
4829fi
4830
4831if test ${enableval} = "no" ; then
4832 DEBUG_RUNTIME=
4833
4834else
4835 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4836
4837fi
4838
Reid Spencera773bd52006-08-04 18:18:08 +00004839# Check whether --enable-jit was given.
4840if test "${enable_jit+set}" = set; then
4841 enableval=$enable_jit;
4842else
4843 enableval=default
4844fi
4845
4846if test ${enableval} = "no"
4847then
4848 JIT=
4849
4850else
4851 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004852 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004853 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004854 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004855 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004856 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004857 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004858 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004859 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004860 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004861 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004862 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004863 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004864 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004865 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004866 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004867 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004868 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004869 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004870 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004871 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004872 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004873 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004874 Blackfin) TARGET_HAS_JIT=0
4875 ;;
4876 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004877 ;;
4878 esac
4879fi
4880
4881# Check whether --enable-doxygen was given.
4882if test "${enable_doxygen+set}" = set; then
4883 enableval=$enable_doxygen;
4884else
4885 enableval=default
4886fi
4887
4888case "$enableval" in
4889 yes) ENABLE_DOXYGEN=1
4890 ;;
4891 no) ENABLE_DOXYGEN=0
4892 ;;
4893 default) ENABLE_DOXYGEN=0
4894 ;;
4895 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4896echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4898esac
4899
4900# Check whether --enable-threads was given.
4901if test "${enable_threads+set}" = set; then
4902 enableval=$enable_threads;
4903else
Reid Spencer65c5d752006-11-05 17:08:18 +00004904 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004905fi
4906
4907case "$enableval" in
4908 yes) ENABLE_THREADS=1
4909 ;;
4910 no) ENABLE_THREADS=0
4911 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004912 default) ENABLE_THREADS=1
4913 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004914 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4915echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4916 { (exit 1); exit 1; }; } ;;
4917esac
4918
Owen Andersona8603702009-05-19 22:18:56 +00004919cat >>confdefs.h <<_ACEOF
4920#define ENABLE_THREADS $ENABLE_THREADS
4921_ACEOF
4922
4923
Reid Spencer89b0d992006-12-16 22:07:52 +00004924# Check whether --enable-pic was given.
4925if test "${enable_pic+set}" = set; then
4926 enableval=$enable_pic;
4927else
4928 enableval=default
4929fi
4930
4931case "$enableval" in
4932 yes) ENABLE_PIC=1
4933 ;;
4934 no) ENABLE_PIC=0
4935 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004936 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004937 ;;
4938 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4939echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4940 { (exit 1); exit 1; }; } ;;
4941esac
4942
4943cat >>confdefs.h <<_ACEOF
4944#define ENABLE_PIC $ENABLE_PIC
4945_ACEOF
4946
4947
Reid Spencera773bd52006-08-04 18:18:08 +00004948TARGETS_TO_BUILD=""
4949# Check whether --enable-targets was given.
4950if test "${enable_targets+set}" = set; then
4951 enableval=$enable_targets;
4952else
4953 enableval=all
4954fi
4955
4956case "$enableval" in
Jakob Stoklund Olesen73b7bb72009-08-02 17:32:37 +00004957 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004958 host-only)
4959 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004960 x86) TARGETS_TO_BUILD="X86" ;;
4961 x86_64) TARGETS_TO_BUILD="X86" ;;
4962 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4963 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4964 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4965 ARM) TARGETS_TO_BUILD="ARM" ;;
4966 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004967 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004968 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4969 XCore) TARGETS_TO_BUILD="XCore" ;;
4970 MSP430) TARGETS_TO_BUILD="MSP430" ;;
4971 SystemZ) TARGETS_TO_BUILD="SystemZ" ;;
4972 Blackfin) TARGETS_TO_BUILD="Blackfin" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004973 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4974echo "$as_me: error: Can not set target to build" >&2;}
4975 { (exit 1); exit 1; }; } ;;
4976 esac
4977 ;;
4978 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4979 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004980 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4981 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4982 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4983 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4984 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4985 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4986 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4987 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4988 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4989 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4990 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4991 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4992 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4993 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4994 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4995 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004996 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4997echo "$as_me: error: Unrecognized target $a_target" >&2;}
4998 { (exit 1); exit 1; }; } ;;
4999 esac
5000 done
5001 ;;
5002esac
Reid Spencera773bd52006-08-04 18:18:08 +00005003TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5004
5005
Douglas Gregor0711c302009-06-17 00:43:20 +00005006# Determine whether we are building LLVM support for the native architecture.
5007# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5008for a_target in $TARGETS_TO_BUILD; do
5009 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00005010 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00005011
5012cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00005013#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00005014_ACEOF
5015
5016 fi
5017done
5018
Douglas Gregor1555a232009-06-16 20:12:29 +00005019# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005020# Targets.def, AsmPrinters.def, and AsmParsers.def.
Douglas Gregor1555a232009-06-16 20:12:29 +00005021LLVM_ENUM_TARGETS=""
5022LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005023LLVM_ENUM_ASM_PARSERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005024for target_to_build in $TARGETS_TO_BUILD; do
5025 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5026 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5027 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5028 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005029 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5030 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5031 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005032done
5033
5034
5035
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005036
Reid Spencer65c5d752006-11-05 17:08:18 +00005037# Check whether --enable-cbe-printf-a was given.
5038if test "${enable_cbe_printf_a+set}" = set; then
5039 enableval=$enable_cbe_printf_a;
5040else
5041 enableval=default
5042fi
5043
5044case "$enableval" in
5045 yes) ENABLE_CBE_PRINTF_A=1
5046 ;;
5047 no) ENABLE_CBE_PRINTF_A=0
5048 ;;
5049 default) ENABLE_CBE_PRINTF_A=1
5050 ;;
5051 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5052echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5053 { (exit 1); exit 1; }; } ;;
5054esac
5055
5056cat >>confdefs.h <<_ACEOF
5057#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5058_ACEOF
5059
5060
Reid Spencera773bd52006-08-04 18:18:08 +00005061
5062# Check whether --with-llvmgccdir was given.
5063if test "${with_llvmgccdir+set}" = set; then
5064 withval=$with_llvmgccdir;
5065else
5066 withval=default
5067fi
5068
5069case "$withval" in
5070 default) WITH_LLVMGCCDIR=default ;;
5071 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5072 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5073echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5074 { (exit 1); exit 1; }; } ;;
5075esac
5076
5077
Devang Patel5d28b882007-12-04 22:54:47 +00005078# Check whether --with-llvmgcc was given.
5079if test "${with_llvmgcc+set}" = set; then
5080 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5081 WITH_LLVMGCCDIR=""
5082fi
5083
5084
5085
5086# Check whether --with-llvmgxx was given.
5087if test "${with_llvmgxx+set}" = set; then
5088 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5089 WITH_LLVMGCCDIR=""
5090fi
5091
Douglas Gregor01746742009-05-11 18:05:52 +00005092
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005093if test -n "$LLVMGCC"; then
5094 LLVMGCCCOMMAND="$LLVMGCC"
5095fi
5096
5097if test -n "$LLVMGXX"; then
5098 LLVMGXXCOMMAND="$LLVMGXX"
5099fi
Devang Patel5d28b882007-12-04 22:54:47 +00005100
5101if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5102 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5103echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5104 { (exit 1); exit 1; }; };
5105fi
5106
5107if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5108 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5109echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5110 { (exit 1); exit 1; }; };
5111fi
5112
5113
Reid Spencera773bd52006-08-04 18:18:08 +00005114# Check whether --with-extra-options was given.
5115if test "${with_extra_options+set}" = set; then
5116 withval=$with_extra_options;
5117else
5118 withval=default
5119fi
5120
5121case "$withval" in
5122 default) EXTRA_OPTIONS= ;;
5123 *) EXTRA_OPTIONS=$withval ;;
5124esac
5125EXTRA_OPTIONS=$EXTRA_OPTIONS
5126
5127
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005128# Check whether --enable-bindings was given.
5129if test "${enable_bindings+set}" = set; then
5130 enableval=$enable_bindings;
5131else
5132 enableval=default
5133fi
5134
5135BINDINGS_TO_BUILD=""
5136case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005137 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005138 all ) BINDINGS_TO_BUILD="ocaml" ;;
5139 none | no) BINDINGS_TO_BUILD="" ;;
5140 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5141 case "$a_binding" in
5142 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5143 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5144echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5145 { (exit 1); exit 1; }; } ;;
5146 esac
5147 done
5148 ;;
5149esac
5150
Reid Spencera773bd52006-08-04 18:18:08 +00005151
Gordon Henriksenf0915682007-10-02 16:42:22 +00005152# Check whether --with-ocaml-libdir was given.
5153if test "${with_ocaml_libdir+set}" = set; then
5154 withval=$with_ocaml_libdir;
5155else
5156 withval=auto
5157fi
5158
5159case "$withval" in
5160 auto) with_ocaml_libdir="$withval" ;;
5161 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5162 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5163echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5164 { (exit 1); exit 1; }; } ;;
5165esac
5166
5167
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005168# Check whether --with-binutils-include was given.
5169if test "${with_binutils_include+set}" = set; then
5170 withval=$with_binutils_include;
5171else
5172 withval=default
5173fi
5174
5175case "$withval" in
5176 default) WITH_BINUTILS_INCDIR=default ;;
5177 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5178 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5179echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5180 { (exit 1); exit 1; }; } ;;
5181esac
5182if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5183 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5184
5185 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5186 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5187 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5188echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5189 { (exit 1); exit 1; }; };
5190 fi
5191fi
5192
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005193# Check whether --enable-libffi was given.
5194if test "${enable_libffi+set}" = set; then
5195 enableval=$enable_libffi;
5196else
5197 enableval=yes
5198fi
5199
5200case "$enableval" in
5201 yes) llvm_cv_enable_libffi="yes" ;;
5202 no) llvm_cv_enable_libffi="no" ;;
5203 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5204echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5205 { (exit 1); exit 1; }; } ;;
5206esac
5207
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005208if test "$llvm_cv_os_type" = "Win32" ; then
5209 llvmc_dynamic="yes"
5210else
5211 llvmc_dynamic="no"
5212fi
5213
5214# Check whether --enable-llvmc-dynamic was given.
5215if test "${enable_llvmc_dynamic+set}" = set; then
5216 enableval=$enable_llvmc_dynamic;
5217else
5218 enableval=$llvmc_dynamic
5219fi
5220
5221if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5222 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5223
5224else
5225 ENABLE_LLVMC_DYNAMIC=
5226
5227fi
5228
5229# Check whether --enable-llvmc-dynamic-plugins was given.
5230if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5231 enableval=$enable_llvmc_dynamic_plugins;
5232else
5233 enableval=yes
5234fi
5235
5236if test ${enableval} = "yes" ; then
5237 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5238
5239else
5240 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5241
5242fi
5243
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005244
Reid Spencera773bd52006-08-04 18:18:08 +00005245ac_ext=c
5246ac_cpp='$CPP $CPPFLAGS'
5247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249ac_compiler_gnu=$ac_cv_c_compiler_gnu
5250{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5251echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5252# On Suns, sometimes $CPP names a directory.
5253if test -n "$CPP" && test -d "$CPP"; then
5254 CPP=
5255fi
5256if test -z "$CPP"; then
5257 if test "${ac_cv_prog_CPP+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5259else
5260 # Double quotes because CPP needs to be expanded
5261 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5262 do
5263 ac_preproc_ok=false
5264for ac_c_preproc_warn_flag in '' yes
5265do
5266 # Use a header file that comes with gcc, so configuring glibc
5267 # with a fresh cross-compiler works.
5268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5269 # <limits.h> exists even on freestanding compilers.
5270 # On the NeXT, cc -E runs the code through the compiler's parser,
5271 # not just through cpp. "Syntax error" is here to catch this case.
5272 cat >conftest.$ac_ext <<_ACEOF
5273/* confdefs.h. */
5274_ACEOF
5275cat confdefs.h >>conftest.$ac_ext
5276cat >>conftest.$ac_ext <<_ACEOF
5277/* end confdefs.h. */
5278#ifdef __STDC__
5279# include <limits.h>
5280#else
5281# include <assert.h>
5282#endif
5283 Syntax error
5284_ACEOF
5285if { (ac_try="$ac_cpp conftest.$ac_ext"
5286case "(($ac_try" in
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5289esac
5290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5292 ac_status=$?
5293 grep -v '^ *+' conftest.er1 >conftest.err
5294 rm -f conftest.er1
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005297 (exit $ac_status); } >/dev/null; then
5298 if test -s conftest.err; then
5299 ac_cpp_err=$ac_c_preproc_warn_flag
5300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5301 else
5302 ac_cpp_err=
5303 fi
5304else
5305 ac_cpp_err=yes
5306fi
5307if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005308 :
5309else
5310 echo "$as_me: failed program was:" >&5
5311sed 's/^/| /' conftest.$ac_ext >&5
5312
5313 # Broken: fails on valid input.
5314continue
5315fi
5316
5317rm -f conftest.err conftest.$ac_ext
5318
5319 # OK, works on sane cases. Now check whether nonexistent headers
5320 # can be detected and how.
5321 cat >conftest.$ac_ext <<_ACEOF
5322/* confdefs.h. */
5323_ACEOF
5324cat confdefs.h >>conftest.$ac_ext
5325cat >>conftest.$ac_ext <<_ACEOF
5326/* end confdefs.h. */
5327#include <ac_nonexistent.h>
5328_ACEOF
5329if { (ac_try="$ac_cpp conftest.$ac_ext"
5330case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333esac
5334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005341 (exit $ac_status); } >/dev/null; then
5342 if test -s conftest.err; then
5343 ac_cpp_err=$ac_c_preproc_warn_flag
5344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5345 else
5346 ac_cpp_err=
5347 fi
5348else
5349 ac_cpp_err=yes
5350fi
5351if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005352 # Broken: success on invalid input.
5353continue
5354else
5355 echo "$as_me: failed program was:" >&5
5356sed 's/^/| /' conftest.$ac_ext >&5
5357
5358 # Passes both tests.
5359ac_preproc_ok=:
5360break
5361fi
5362
5363rm -f conftest.err conftest.$ac_ext
5364
5365done
5366# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5367rm -f conftest.err conftest.$ac_ext
5368if $ac_preproc_ok; then
5369 break
5370fi
5371
5372 done
5373 ac_cv_prog_CPP=$CPP
5374
5375fi
5376 CPP=$ac_cv_prog_CPP
5377else
5378 ac_cv_prog_CPP=$CPP
5379fi
5380{ echo "$as_me:$LINENO: result: $CPP" >&5
5381echo "${ECHO_T}$CPP" >&6; }
5382ac_preproc_ok=false
5383for ac_c_preproc_warn_flag in '' yes
5384do
5385 # Use a header file that comes with gcc, so configuring glibc
5386 # with a fresh cross-compiler works.
5387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5388 # <limits.h> exists even on freestanding compilers.
5389 # On the NeXT, cc -E runs the code through the compiler's parser,
5390 # not just through cpp. "Syntax error" is here to catch this case.
5391 cat >conftest.$ac_ext <<_ACEOF
5392/* confdefs.h. */
5393_ACEOF
5394cat confdefs.h >>conftest.$ac_ext
5395cat >>conftest.$ac_ext <<_ACEOF
5396/* end confdefs.h. */
5397#ifdef __STDC__
5398# include <limits.h>
5399#else
5400# include <assert.h>
5401#endif
5402 Syntax error
5403_ACEOF
5404if { (ac_try="$ac_cpp conftest.$ac_ext"
5405case "(($ac_try" in
5406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5408esac
5409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5411 ac_status=$?
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005416 (exit $ac_status); } >/dev/null; then
5417 if test -s conftest.err; then
5418 ac_cpp_err=$ac_c_preproc_warn_flag
5419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5420 else
5421 ac_cpp_err=
5422 fi
5423else
5424 ac_cpp_err=yes
5425fi
5426if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005427 :
5428else
5429 echo "$as_me: failed program was:" >&5
5430sed 's/^/| /' conftest.$ac_ext >&5
5431
5432 # Broken: fails on valid input.
5433continue
5434fi
5435
5436rm -f conftest.err conftest.$ac_ext
5437
5438 # OK, works on sane cases. Now check whether nonexistent headers
5439 # can be detected and how.
5440 cat >conftest.$ac_ext <<_ACEOF
5441/* confdefs.h. */
5442_ACEOF
5443cat confdefs.h >>conftest.$ac_ext
5444cat >>conftest.$ac_ext <<_ACEOF
5445/* end confdefs.h. */
5446#include <ac_nonexistent.h>
5447_ACEOF
5448if { (ac_try="$ac_cpp conftest.$ac_ext"
5449case "(($ac_try" in
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5452esac
5453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5455 ac_status=$?
5456 grep -v '^ *+' conftest.er1 >conftest.err
5457 rm -f conftest.er1
5458 cat conftest.err >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005460 (exit $ac_status); } >/dev/null; then
5461 if test -s conftest.err; then
5462 ac_cpp_err=$ac_c_preproc_warn_flag
5463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5464 else
5465 ac_cpp_err=
5466 fi
5467else
5468 ac_cpp_err=yes
5469fi
5470if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005471 # Broken: success on invalid input.
5472continue
5473else
5474 echo "$as_me: failed program was:" >&5
5475sed 's/^/| /' conftest.$ac_ext >&5
5476
5477 # Passes both tests.
5478ac_preproc_ok=:
5479break
5480fi
5481
5482rm -f conftest.err conftest.$ac_ext
5483
5484done
5485# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5486rm -f conftest.err conftest.$ac_ext
5487if $ac_preproc_ok; then
5488 :
5489else
5490 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5491See \`config.log' for more details." >&5
5492echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5493See \`config.log' for more details." >&2;}
5494 { (exit 1); exit 1; }; }
5495fi
5496
5497ac_ext=c
5498ac_cpp='$CPP $CPPFLAGS'
5499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5501ac_compiler_gnu=$ac_cv_c_compiler_gnu
5502
5503ac_ext=c
5504ac_cpp='$CPP $CPPFLAGS'
5505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508if test -n "$ac_tool_prefix"; then
5509 for ac_prog in gcc
5510 do
5511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5512set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5515if test "${ac_cv_prog_CC+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517else
5518 if test -n "$CC"; then
5519 ac_cv_prog_CC="$CC" # Let the user override the test.
5520else
5521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522for as_dir in $PATH
5523do
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005527 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 +00005528 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 break 2
5531 fi
5532done
5533done
5534IFS=$as_save_IFS
5535
5536fi
5537fi
5538CC=$ac_cv_prog_CC
5539if test -n "$CC"; then
5540 { echo "$as_me:$LINENO: result: $CC" >&5
5541echo "${ECHO_T}$CC" >&6; }
5542else
5543 { echo "$as_me:$LINENO: result: no" >&5
5544echo "${ECHO_T}no" >&6; }
5545fi
5546
5547
5548 test -n "$CC" && break
5549 done
5550fi
5551if test -z "$CC"; then
5552 ac_ct_CC=$CC
5553 for ac_prog in gcc
5554do
5555 # Extract the first word of "$ac_prog", so it can be a program name with args.
5556set dummy $ac_prog; ac_word=$2
5557{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5559if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561else
5562 if test -n "$ac_ct_CC"; then
5563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5564else
5565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566for as_dir in $PATH
5567do
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005571 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 +00005572 ac_cv_prog_ac_ct_CC="$ac_prog"
5573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 break 2
5575 fi
5576done
5577done
5578IFS=$as_save_IFS
5579
5580fi
5581fi
5582ac_ct_CC=$ac_cv_prog_ac_ct_CC
5583if test -n "$ac_ct_CC"; then
5584 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5585echo "${ECHO_T}$ac_ct_CC" >&6; }
5586else
5587 { echo "$as_me:$LINENO: result: no" >&5
5588echo "${ECHO_T}no" >&6; }
5589fi
5590
5591
5592 test -n "$ac_ct_CC" && break
5593done
5594
5595 if test "x$ac_ct_CC" = x; then
5596 CC=""
5597 else
5598 case $cross_compiling:$ac_tool_warned in
5599yes:)
5600{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5601whose name does not start with the host triplet. If you think this
5602configuration is useful to you, please write to autoconf@gnu.org." >&5
5603echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5604whose name does not start with the host triplet. If you think this
5605configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5606ac_tool_warned=yes ;;
5607esac
5608 CC=$ac_ct_CC
5609 fi
5610fi
5611
5612
5613test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5614See \`config.log' for more details." >&5
5615echo "$as_me: error: no acceptable C compiler found in \$PATH
5616See \`config.log' for more details." >&2;}
5617 { (exit 1); exit 1; }; }
5618
5619# Provide some information about the compiler.
5620echo "$as_me:$LINENO: checking for C compiler version" >&5
5621ac_compiler=`set X $ac_compile; echo $2`
5622{ (ac_try="$ac_compiler --version >&5"
5623case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626esac
5627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_compiler --version >&5") 2>&5
5629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }
5632{ (ac_try="$ac_compiler -v >&5"
5633case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636esac
5637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_compiler -v >&5") 2>&5
5639 ac_status=$?
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }
5642{ (ac_try="$ac_compiler -V >&5"
5643case "(($ac_try" in
5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5646esac
5647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5648 (eval "$ac_compiler -V >&5") 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }
5652
5653{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5654echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5655if test "${ac_cv_c_compiler_gnu+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5657else
5658 cat >conftest.$ac_ext <<_ACEOF
5659/* confdefs.h. */
5660_ACEOF
5661cat confdefs.h >>conftest.$ac_ext
5662cat >>conftest.$ac_ext <<_ACEOF
5663/* end confdefs.h. */
5664
5665int
5666main ()
5667{
5668#ifndef __GNUC__
5669 choke me
5670#endif
5671
5672 ;
5673 return 0;
5674}
5675_ACEOF
5676rm -f conftest.$ac_objext
5677if { (ac_try="$ac_compile"
5678case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5681esac
5682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_compile") 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005689 (exit $ac_status); } &&
5690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5691 { (case "(($ac_try" in
5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5694esac
5695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696 (eval "$ac_try") 2>&5
5697 ac_status=$?
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; } &&
5700 { ac_try='test -s conftest.$ac_objext'
5701 { (case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704esac
5705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_try") 2>&5
5707 ac_status=$?
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005710 ac_compiler_gnu=yes
5711else
5712 echo "$as_me: failed program was:" >&5
5713sed 's/^/| /' conftest.$ac_ext >&5
5714
5715 ac_compiler_gnu=no
5716fi
5717
5718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719ac_cv_c_compiler_gnu=$ac_compiler_gnu
5720
5721fi
5722{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5723echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5724GCC=`test $ac_compiler_gnu = yes && echo yes`
5725ac_test_CFLAGS=${CFLAGS+set}
5726ac_save_CFLAGS=$CFLAGS
5727{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5728echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5729if test "${ac_cv_prog_cc_g+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5731else
5732 ac_save_c_werror_flag=$ac_c_werror_flag
5733 ac_c_werror_flag=yes
5734 ac_cv_prog_cc_g=no
5735 CFLAGS="-g"
5736 cat >conftest.$ac_ext <<_ACEOF
5737/* confdefs.h. */
5738_ACEOF
5739cat confdefs.h >>conftest.$ac_ext
5740cat >>conftest.$ac_ext <<_ACEOF
5741/* end confdefs.h. */
5742
5743int
5744main ()
5745{
5746
5747 ;
5748 return 0;
5749}
5750_ACEOF
5751rm -f conftest.$ac_objext
5752if { (ac_try="$ac_compile"
5753case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756esac
5757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compile") 2>conftest.er1
5759 ac_status=$?
5760 grep -v '^ *+' conftest.er1 >conftest.err
5761 rm -f conftest.er1
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005764 (exit $ac_status); } &&
5765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5766 { (case "(($ac_try" in
5767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768 *) ac_try_echo=$ac_try;;
5769esac
5770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771 (eval "$ac_try") 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; } &&
5775 { ac_try='test -s conftest.$ac_objext'
5776 { (case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5779esac
5780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_try") 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005785 ac_cv_prog_cc_g=yes
5786else
5787 echo "$as_me: failed program was:" >&5
5788sed 's/^/| /' conftest.$ac_ext >&5
5789
5790 CFLAGS=""
5791 cat >conftest.$ac_ext <<_ACEOF
5792/* confdefs.h. */
5793_ACEOF
5794cat confdefs.h >>conftest.$ac_ext
5795cat >>conftest.$ac_ext <<_ACEOF
5796/* end confdefs.h. */
5797
5798int
5799main ()
5800{
5801
5802 ;
5803 return 0;
5804}
5805_ACEOF
5806rm -f conftest.$ac_objext
5807if { (ac_try="$ac_compile"
5808case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811esac
5812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005819 (exit $ac_status); } &&
5820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5821 { (case "(($ac_try" in
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5824esac
5825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_try") 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; } &&
5830 { ac_try='test -s conftest.$ac_objext'
5831 { (case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834esac
5835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_try") 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005840 :
5841else
5842 echo "$as_me: failed program was:" >&5
5843sed 's/^/| /' conftest.$ac_ext >&5
5844
5845 ac_c_werror_flag=$ac_save_c_werror_flag
5846 CFLAGS="-g"
5847 cat >conftest.$ac_ext <<_ACEOF
5848/* confdefs.h. */
5849_ACEOF
5850cat confdefs.h >>conftest.$ac_ext
5851cat >>conftest.$ac_ext <<_ACEOF
5852/* end confdefs.h. */
5853
5854int
5855main ()
5856{
5857
5858 ;
5859 return 0;
5860}
5861_ACEOF
5862rm -f conftest.$ac_objext
5863if { (ac_try="$ac_compile"
5864case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5867esac
5868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_compile") 2>conftest.er1
5870 ac_status=$?
5871 grep -v '^ *+' conftest.er1 >conftest.err
5872 rm -f conftest.er1
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005875 (exit $ac_status); } &&
5876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5877 { (case "(($ac_try" in
5878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879 *) ac_try_echo=$ac_try;;
5880esac
5881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882 (eval "$ac_try") 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; } &&
5886 { ac_try='test -s conftest.$ac_objext'
5887 { (case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890esac
5891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_try") 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005896 ac_cv_prog_cc_g=yes
5897else
5898 echo "$as_me: failed program was:" >&5
5899sed 's/^/| /' conftest.$ac_ext >&5
5900
5901
5902fi
5903
5904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905fi
5906
5907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908fi
5909
5910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911 ac_c_werror_flag=$ac_save_c_werror_flag
5912fi
5913{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5914echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5915if test "$ac_test_CFLAGS" = set; then
5916 CFLAGS=$ac_save_CFLAGS
5917elif test $ac_cv_prog_cc_g = yes; then
5918 if test "$GCC" = yes; then
5919 CFLAGS="-g -O2"
5920 else
5921 CFLAGS="-g"
5922 fi
5923else
5924 if test "$GCC" = yes; then
5925 CFLAGS="-O2"
5926 else
5927 CFLAGS=
5928 fi
5929fi
5930{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5931echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5932if test "${ac_cv_prog_cc_c89+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5934else
5935 ac_cv_prog_cc_c89=no
5936ac_save_CC=$CC
5937cat >conftest.$ac_ext <<_ACEOF
5938/* confdefs.h. */
5939_ACEOF
5940cat confdefs.h >>conftest.$ac_ext
5941cat >>conftest.$ac_ext <<_ACEOF
5942/* end confdefs.h. */
5943#include <stdarg.h>
5944#include <stdio.h>
5945#include <sys/types.h>
5946#include <sys/stat.h>
5947/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5948struct buf { int x; };
5949FILE * (*rcsopen) (struct buf *, struct stat *, int);
5950static char *e (p, i)
5951 char **p;
5952 int i;
5953{
5954 return p[i];
5955}
5956static char *f (char * (*g) (char **, int), char **p, ...)
5957{
5958 char *s;
5959 va_list v;
5960 va_start (v,p);
5961 s = g (p, va_arg (v,int));
5962 va_end (v);
5963 return s;
5964}
5965
5966/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5967 function prototypes and stuff, but not '\xHH' hex character constants.
5968 These don't provoke an error unfortunately, instead are silently treated
5969 as 'x'. The following induces an error, until -std is added to get
5970 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5971 array size at least. It's necessary to write '\x00'==0 to get something
5972 that's true only with -std. */
5973int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5974
5975/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5976 inside strings and character constants. */
5977#define FOO(x) 'x'
5978int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5979
5980int test (int i, double x);
5981struct s1 {int (*f) (int a);};
5982struct s2 {int (*f) (double a);};
5983int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5984int argc;
5985char **argv;
5986int
5987main ()
5988{
5989return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5990 ;
5991 return 0;
5992}
5993_ACEOF
5994for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5995 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5996do
5997 CC="$ac_save_CC $ac_arg"
5998 rm -f conftest.$ac_objext
5999if { (ac_try="$ac_compile"
6000case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003esac
6004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_compile") 2>conftest.er1
6006 ac_status=$?
6007 grep -v '^ *+' conftest.er1 >conftest.err
6008 rm -f conftest.er1
6009 cat conftest.err >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006011 (exit $ac_status); } &&
6012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6013 { (case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016esac
6017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_try") 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; } &&
6022 { ac_try='test -s conftest.$ac_objext'
6023 { (case "(($ac_try" in
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6026esac
6027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_try") 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006032 ac_cv_prog_cc_c89=$ac_arg
6033else
6034 echo "$as_me: failed program was:" >&5
6035sed 's/^/| /' conftest.$ac_ext >&5
6036
6037
6038fi
6039
6040rm -f core conftest.err conftest.$ac_objext
6041 test "x$ac_cv_prog_cc_c89" != "xno" && break
6042done
6043rm -f conftest.$ac_ext
6044CC=$ac_save_CC
6045
6046fi
6047# AC_CACHE_VAL
6048case "x$ac_cv_prog_cc_c89" in
6049 x)
6050 { echo "$as_me:$LINENO: result: none needed" >&5
6051echo "${ECHO_T}none needed" >&6; } ;;
6052 xno)
6053 { echo "$as_me:$LINENO: result: unsupported" >&5
6054echo "${ECHO_T}unsupported" >&6; } ;;
6055 *)
6056 CC="$CC $ac_cv_prog_cc_c89"
6057 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6058echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6059esac
6060
6061
6062ac_ext=c
6063ac_cpp='$CPP $CPPFLAGS'
6064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6066ac_compiler_gnu=$ac_cv_c_compiler_gnu
6067
6068ac_ext=cpp
6069ac_cpp='$CXXCPP $CPPFLAGS'
6070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6073if test -z "$CXX"; then
6074 if test -n "$CCC"; then
6075 CXX=$CCC
6076 else
6077 if test -n "$ac_tool_prefix"; then
6078 for ac_prog in g++
6079 do
6080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6081set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6084if test "${ac_cv_prog_CXX+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086else
6087 if test -n "$CXX"; then
6088 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6089else
6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091for as_dir in $PATH
6092do
6093 IFS=$as_save_IFS
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006096 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 +00006097 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 break 2
6100 fi
6101done
6102done
6103IFS=$as_save_IFS
6104
6105fi
6106fi
6107CXX=$ac_cv_prog_CXX
6108if test -n "$CXX"; then
6109 { echo "$as_me:$LINENO: result: $CXX" >&5
6110echo "${ECHO_T}$CXX" >&6; }
6111else
6112 { echo "$as_me:$LINENO: result: no" >&5
6113echo "${ECHO_T}no" >&6; }
6114fi
6115
6116
6117 test -n "$CXX" && break
6118 done
6119fi
6120if test -z "$CXX"; then
6121 ac_ct_CXX=$CXX
6122 for ac_prog in g++
6123do
6124 # Extract the first word of "$ac_prog", so it can be a program name with args.
6125set dummy $ac_prog; ac_word=$2
6126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6128if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6130else
6131 if test -n "$ac_ct_CXX"; then
6132 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6133else
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006140 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 +00006141 ac_cv_prog_ac_ct_CXX="$ac_prog"
6142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 break 2
6144 fi
6145done
6146done
6147IFS=$as_save_IFS
6148
6149fi
6150fi
6151ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6152if test -n "$ac_ct_CXX"; then
6153 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6154echo "${ECHO_T}$ac_ct_CXX" >&6; }
6155else
6156 { echo "$as_me:$LINENO: result: no" >&5
6157echo "${ECHO_T}no" >&6; }
6158fi
6159
6160
6161 test -n "$ac_ct_CXX" && break
6162done
6163
6164 if test "x$ac_ct_CXX" = x; then
6165 CXX="g++"
6166 else
6167 case $cross_compiling:$ac_tool_warned in
6168yes:)
6169{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6170whose name does not start with the host triplet. If you think this
6171configuration is useful to you, please write to autoconf@gnu.org." >&5
6172echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6173whose name does not start with the host triplet. If you think this
6174configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6175ac_tool_warned=yes ;;
6176esac
6177 CXX=$ac_ct_CXX
6178 fi
6179fi
6180
6181 fi
6182fi
6183# Provide some information about the compiler.
6184echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6185ac_compiler=`set X $ac_compile; echo $2`
6186{ (ac_try="$ac_compiler --version >&5"
6187case "(($ac_try" in
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6190esac
6191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_compiler --version >&5") 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }
6196{ (ac_try="$ac_compiler -v >&5"
6197case "(($ac_try" in
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6200esac
6201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_compiler -v >&5") 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }
6206{ (ac_try="$ac_compiler -V >&5"
6207case "(($ac_try" in
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6210esac
6211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212 (eval "$ac_compiler -V >&5") 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }
6216
6217{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6218echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6219if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221else
6222 cat >conftest.$ac_ext <<_ACEOF
6223/* confdefs.h. */
6224_ACEOF
6225cat confdefs.h >>conftest.$ac_ext
6226cat >>conftest.$ac_ext <<_ACEOF
6227/* end confdefs.h. */
6228
6229int
6230main ()
6231{
6232#ifndef __GNUC__
6233 choke me
6234#endif
6235
6236 ;
6237 return 0;
6238}
6239_ACEOF
6240rm -f conftest.$ac_objext
6241if { (ac_try="$ac_compile"
6242case "(($ac_try" in
6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244 *) ac_try_echo=$ac_try;;
6245esac
6246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247 (eval "$ac_compile") 2>conftest.er1
6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006253 (exit $ac_status); } &&
6254 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6255 { (case "(($ac_try" in
6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257 *) ac_try_echo=$ac_try;;
6258esac
6259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260 (eval "$ac_try") 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest.$ac_objext'
6265 { (case "(($ac_try" in
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6268esac
6269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_try") 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006274 ac_compiler_gnu=yes
6275else
6276 echo "$as_me: failed program was:" >&5
6277sed 's/^/| /' conftest.$ac_ext >&5
6278
6279 ac_compiler_gnu=no
6280fi
6281
6282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6283ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6284
6285fi
6286{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6287echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6288GXX=`test $ac_compiler_gnu = yes && echo yes`
6289ac_test_CXXFLAGS=${CXXFLAGS+set}
6290ac_save_CXXFLAGS=$CXXFLAGS
6291{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6292echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6293if test "${ac_cv_prog_cxx_g+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6295else
6296 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6297 ac_cxx_werror_flag=yes
6298 ac_cv_prog_cxx_g=no
6299 CXXFLAGS="-g"
6300 cat >conftest.$ac_ext <<_ACEOF
6301/* confdefs.h. */
6302_ACEOF
6303cat confdefs.h >>conftest.$ac_ext
6304cat >>conftest.$ac_ext <<_ACEOF
6305/* end confdefs.h. */
6306
6307int
6308main ()
6309{
6310
6311 ;
6312 return 0;
6313}
6314_ACEOF
6315rm -f conftest.$ac_objext
6316if { (ac_try="$ac_compile"
6317case "(($ac_try" in
6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
6320esac
6321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322 (eval "$ac_compile") 2>conftest.er1
6323 ac_status=$?
6324 grep -v '^ *+' conftest.er1 >conftest.err
6325 rm -f conftest.er1
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006328 (exit $ac_status); } &&
6329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6330 { (case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333esac
6334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_try") 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; } &&
6339 { ac_try='test -s conftest.$ac_objext'
6340 { (case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6343esac
6344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_try") 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006349 ac_cv_prog_cxx_g=yes
6350else
6351 echo "$as_me: failed program was:" >&5
6352sed 's/^/| /' conftest.$ac_ext >&5
6353
6354 CXXFLAGS=""
6355 cat >conftest.$ac_ext <<_ACEOF
6356/* confdefs.h. */
6357_ACEOF
6358cat confdefs.h >>conftest.$ac_ext
6359cat >>conftest.$ac_ext <<_ACEOF
6360/* end confdefs.h. */
6361
6362int
6363main ()
6364{
6365
6366 ;
6367 return 0;
6368}
6369_ACEOF
6370rm -f conftest.$ac_objext
6371if { (ac_try="$ac_compile"
6372case "(($ac_try" in
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6375esac
6376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377 (eval "$ac_compile") 2>conftest.er1
6378 ac_status=$?
6379 grep -v '^ *+' conftest.er1 >conftest.err
6380 rm -f conftest.er1
6381 cat conftest.err >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006383 (exit $ac_status); } &&
6384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6385 { (case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388esac
6389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_try") 2>&5
6391 ac_status=$?
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; } &&
6394 { ac_try='test -s conftest.$ac_objext'
6395 { (case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6398esac
6399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_try") 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006404 :
6405else
6406 echo "$as_me: failed program was:" >&5
6407sed 's/^/| /' conftest.$ac_ext >&5
6408
6409 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6410 CXXFLAGS="-g"
6411 cat >conftest.$ac_ext <<_ACEOF
6412/* confdefs.h. */
6413_ACEOF
6414cat confdefs.h >>conftest.$ac_ext
6415cat >>conftest.$ac_ext <<_ACEOF
6416/* end confdefs.h. */
6417
6418int
6419main ()
6420{
6421
6422 ;
6423 return 0;
6424}
6425_ACEOF
6426rm -f conftest.$ac_objext
6427if { (ac_try="$ac_compile"
6428case "(($ac_try" in
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6431esac
6432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433 (eval "$ac_compile") 2>conftest.er1
6434 ac_status=$?
6435 grep -v '^ *+' conftest.er1 >conftest.err
6436 rm -f conftest.er1
6437 cat conftest.err >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006439 (exit $ac_status); } &&
6440 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6441 { (case "(($ac_try" in
6442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6443 *) ac_try_echo=$ac_try;;
6444esac
6445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6446 (eval "$ac_try") 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; } &&
6450 { ac_try='test -s conftest.$ac_objext'
6451 { (case "(($ac_try" in
6452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453 *) ac_try_echo=$ac_try;;
6454esac
6455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6456 (eval "$ac_try") 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006460 ac_cv_prog_cxx_g=yes
6461else
6462 echo "$as_me: failed program was:" >&5
6463sed 's/^/| /' conftest.$ac_ext >&5
6464
6465
6466fi
6467
6468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6469fi
6470
6471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6472fi
6473
6474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6476fi
6477{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6478echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6479if test "$ac_test_CXXFLAGS" = set; then
6480 CXXFLAGS=$ac_save_CXXFLAGS
6481elif test $ac_cv_prog_cxx_g = yes; then
6482 if test "$GXX" = yes; then
6483 CXXFLAGS="-g -O2"
6484 else
6485 CXXFLAGS="-g"
6486 fi
6487else
6488 if test "$GXX" = yes; then
6489 CXXFLAGS="-O2"
6490 else
6491 CXXFLAGS=
6492 fi
6493fi
6494ac_ext=c
6495ac_cpp='$CPP $CPPFLAGS'
6496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6498ac_compiler_gnu=$ac_cv_c_compiler_gnu
6499
Reid Spencera773bd52006-08-04 18:18:08 +00006500
6501{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6502echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6503if test "${lt_cv_path_NM+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506 if test -n "$NM"; then
6507 # Let the user override the test.
6508 lt_cv_path_NM="$NM"
6509else
6510 lt_nm_to_check="${ac_tool_prefix}nm"
6511 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6512 lt_nm_to_check="$lt_nm_to_check nm"
6513 fi
6514 for lt_tmp_nm in $lt_nm_to_check; do
6515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6516 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6517 IFS="$lt_save_ifs"
6518 test -z "$ac_dir" && ac_dir=.
6519 tmp_nm="$ac_dir/$lt_tmp_nm"
6520 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6521 # Check to see if the nm accepts a BSD-compat flag.
6522 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6523 # nm: unknown option "B" ignored
6524 # Tru64's nm complains that /dev/null is an invalid object file
6525 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6526 */dev/null* | *'Invalid file or object type'*)
6527 lt_cv_path_NM="$tmp_nm -B"
6528 break
6529 ;;
6530 *)
6531 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6532 */dev/null*)
6533 lt_cv_path_NM="$tmp_nm -p"
6534 break
6535 ;;
6536 *)
6537 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6538 continue # so that we can try to find one that supports BSD flags
6539 ;;
6540 esac
6541 ;;
6542 esac
6543 fi
6544 done
6545 IFS="$lt_save_ifs"
6546 done
6547 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6548fi
6549fi
6550{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6551echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6552NM="$lt_cv_path_NM"
6553
6554
6555
6556{ echo "$as_me:$LINENO: checking for GNU make" >&5
6557echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6558if test "${llvm_cv_gnu_make_command+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6560else
6561 llvm_cv_gnu_make_command=''
6562 for a in "$MAKE" make gmake gnumake ; do
6563 if test -z "$a" ; then continue ; fi ;
6564 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6565 then
6566 llvm_cv_gnu_make_command=$a ;
6567 break;
6568 fi
6569 done
6570fi
6571{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6572echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6573 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6574 ifGNUmake='' ;
6575 else
6576 ifGNUmake='#' ;
6577 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6578echo "${ECHO_T}\"Not found\"" >&6; };
6579 fi
6580
6581
6582{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6583echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6584LN_S=$as_ln_s
6585if test "$LN_S" = "ln -s"; then
6586 { echo "$as_me:$LINENO: result: yes" >&5
6587echo "${ECHO_T}yes" >&6; }
6588else
6589 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6590echo "${ECHO_T}no, using $LN_S" >&6; }
6591fi
6592
6593# Extract the first word of "cmp", so it can be a program name with args.
6594set dummy cmp; ac_word=$2
6595{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6597if test "${ac_cv_path_CMP+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599else
6600 case $CMP in
6601 [\\/]* | ?:[\\/]*)
6602 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6603 ;;
6604 *)
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606for as_dir in $PATH
6607do
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006611 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 +00006612 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6615 fi
6616done
6617done
6618IFS=$as_save_IFS
6619
6620 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6621 ;;
6622esac
6623fi
6624CMP=$ac_cv_path_CMP
6625if test -n "$CMP"; then
6626 { echo "$as_me:$LINENO: result: $CMP" >&5
6627echo "${ECHO_T}$CMP" >&6; }
6628else
6629 { echo "$as_me:$LINENO: result: no" >&5
6630echo "${ECHO_T}no" >&6; }
6631fi
6632
6633
6634# Extract the first word of "cp", so it can be a program name with args.
6635set dummy cp; ac_word=$2
6636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638if test "${ac_cv_path_CP+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6640else
6641 case $CP in
6642 [\\/]* | ?:[\\/]*)
6643 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6644 ;;
6645 *)
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006652 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 +00006653 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 break 2
6656 fi
6657done
6658done
6659IFS=$as_save_IFS
6660
6661 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6662 ;;
6663esac
6664fi
6665CP=$ac_cv_path_CP
6666if test -n "$CP"; then
6667 { echo "$as_me:$LINENO: result: $CP" >&5
6668echo "${ECHO_T}$CP" >&6; }
6669else
6670 { echo "$as_me:$LINENO: result: no" >&5
6671echo "${ECHO_T}no" >&6; }
6672fi
6673
6674
6675# Extract the first word of "date", so it can be a program name with args.
6676set dummy date; ac_word=$2
6677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6679if test "${ac_cv_path_DATE+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6681else
6682 case $DATE in
6683 [\\/]* | ?:[\\/]*)
6684 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6685 ;;
6686 *)
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688for as_dir in $PATH
6689do
6690 IFS=$as_save_IFS
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006693 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 +00006694 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 break 2
6697 fi
6698done
6699done
6700IFS=$as_save_IFS
6701
6702 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6703 ;;
6704esac
6705fi
6706DATE=$ac_cv_path_DATE
6707if test -n "$DATE"; then
6708 { echo "$as_me:$LINENO: result: $DATE" >&5
6709echo "${ECHO_T}$DATE" >&6; }
6710else
6711 { echo "$as_me:$LINENO: result: no" >&5
6712echo "${ECHO_T}no" >&6; }
6713fi
6714
6715
6716# Extract the first word of "find", so it can be a program name with args.
6717set dummy find; ac_word=$2
6718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720if test "${ac_cv_path_FIND+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722else
6723 case $FIND in
6724 [\\/]* | ?:[\\/]*)
6725 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6726 ;;
6727 *)
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729for as_dir in $PATH
6730do
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006734 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 +00006735 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6738 fi
6739done
6740done
6741IFS=$as_save_IFS
6742
6743 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6744 ;;
6745esac
6746fi
6747FIND=$ac_cv_path_FIND
6748if test -n "$FIND"; then
6749 { echo "$as_me:$LINENO: result: $FIND" >&5
6750echo "${ECHO_T}$FIND" >&6; }
6751else
6752 { echo "$as_me:$LINENO: result: no" >&5
6753echo "${ECHO_T}no" >&6; }
6754fi
6755
6756
6757# Extract the first word of "grep", so it can be a program name with args.
6758set dummy grep; ac_word=$2
6759{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761if test "${ac_cv_path_GREP+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763else
6764 case $GREP in
6765 [\\/]* | ?:[\\/]*)
6766 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6767 ;;
6768 *)
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006775 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 +00006776 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780done
6781done
6782IFS=$as_save_IFS
6783
6784 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6785 ;;
6786esac
6787fi
6788GREP=$ac_cv_path_GREP
6789if test -n "$GREP"; then
6790 { echo "$as_me:$LINENO: result: $GREP" >&5
6791echo "${ECHO_T}$GREP" >&6; }
6792else
6793 { echo "$as_me:$LINENO: result: no" >&5
6794echo "${ECHO_T}no" >&6; }
6795fi
6796
6797
6798# Extract the first word of "mkdir", so it can be a program name with args.
6799set dummy mkdir; ac_word=$2
6800{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802if test "${ac_cv_path_MKDIR+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804else
6805 case $MKDIR in
6806 [\\/]* | ?:[\\/]*)
6807 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6808 ;;
6809 *)
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811for as_dir in $PATH
6812do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006816 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 +00006817 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821done
6822done
6823IFS=$as_save_IFS
6824
6825 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6826 ;;
6827esac
6828fi
6829MKDIR=$ac_cv_path_MKDIR
6830if test -n "$MKDIR"; then
6831 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6832echo "${ECHO_T}$MKDIR" >&6; }
6833else
6834 { echo "$as_me:$LINENO: result: no" >&5
6835echo "${ECHO_T}no" >&6; }
6836fi
6837
6838
6839# Extract the first word of "mv", so it can be a program name with args.
6840set dummy mv; ac_word=$2
6841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843if test "${ac_cv_path_MV+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6845else
6846 case $MV in
6847 [\\/]* | ?:[\\/]*)
6848 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6849 ;;
6850 *)
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006857 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 +00006858 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 break 2
6861 fi
6862done
6863done
6864IFS=$as_save_IFS
6865
6866 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6867 ;;
6868esac
6869fi
6870MV=$ac_cv_path_MV
6871if test -n "$MV"; then
6872 { echo "$as_me:$LINENO: result: $MV" >&5
6873echo "${ECHO_T}$MV" >&6; }
6874else
6875 { echo "$as_me:$LINENO: result: no" >&5
6876echo "${ECHO_T}no" >&6; }
6877fi
6878
6879
6880if test -n "$ac_tool_prefix"; then
6881 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6882set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6883{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6885if test "${ac_cv_prog_RANLIB+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887else
6888 if test -n "$RANLIB"; then
6889 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6890else
6891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892for as_dir in $PATH
6893do
6894 IFS=$as_save_IFS
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006897 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 +00006898 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 break 2
6901 fi
6902done
6903done
6904IFS=$as_save_IFS
6905
6906fi
6907fi
6908RANLIB=$ac_cv_prog_RANLIB
6909if test -n "$RANLIB"; then
6910 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6911echo "${ECHO_T}$RANLIB" >&6; }
6912else
6913 { echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6; }
6915fi
6916
6917
6918fi
6919if test -z "$ac_cv_prog_RANLIB"; then
6920 ac_ct_RANLIB=$RANLIB
6921 # Extract the first word of "ranlib", so it can be a program name with args.
6922set dummy ranlib; ac_word=$2
6923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927else
6928 if test -n "$ac_ct_RANLIB"; then
6929 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6930else
6931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH
6933do
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006937 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 +00006938 ac_cv_prog_ac_ct_RANLIB="ranlib"
6939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6941 fi
6942done
6943done
6944IFS=$as_save_IFS
6945
6946fi
6947fi
6948ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6949if test -n "$ac_ct_RANLIB"; then
6950 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6951echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6952else
6953 { echo "$as_me:$LINENO: result: no" >&5
6954echo "${ECHO_T}no" >&6; }
6955fi
6956
6957 if test "x$ac_ct_RANLIB" = x; then
6958 RANLIB=":"
6959 else
6960 case $cross_compiling:$ac_tool_warned in
6961yes:)
6962{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6963whose name does not start with the host triplet. If you think this
6964configuration is useful to you, please write to autoconf@gnu.org." >&5
6965echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6966whose name does not start with the host triplet. If you think this
6967configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6968ac_tool_warned=yes ;;
6969esac
6970 RANLIB=$ac_ct_RANLIB
6971 fi
6972else
6973 RANLIB="$ac_cv_prog_RANLIB"
6974fi
6975
6976# Extract the first word of "rm", so it can be a program name with args.
6977set dummy rm; ac_word=$2
6978{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980if test "${ac_cv_path_RM+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982else
6983 case $RM in
6984 [\\/]* | ?:[\\/]*)
6985 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6986 ;;
6987 *)
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006994 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 +00006995 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999done
7000done
7001IFS=$as_save_IFS
7002
7003 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7004 ;;
7005esac
7006fi
7007RM=$ac_cv_path_RM
7008if test -n "$RM"; then
7009 { echo "$as_me:$LINENO: result: $RM" >&5
7010echo "${ECHO_T}$RM" >&6; }
7011else
7012 { echo "$as_me:$LINENO: result: no" >&5
7013echo "${ECHO_T}no" >&6; }
7014fi
7015
7016
7017# Extract the first word of "sed", so it can be a program name with args.
7018set dummy sed; ac_word=$2
7019{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021if test "${ac_cv_path_SED+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023else
7024 case $SED in
7025 [\\/]* | ?:[\\/]*)
7026 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7027 ;;
7028 *)
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007035 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 +00007036 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7039 fi
7040done
7041done
7042IFS=$as_save_IFS
7043
7044 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7045 ;;
7046esac
7047fi
7048SED=$ac_cv_path_SED
7049if test -n "$SED"; then
7050 { echo "$as_me:$LINENO: result: $SED" >&5
7051echo "${ECHO_T}$SED" >&6; }
7052else
7053 { echo "$as_me:$LINENO: result: no" >&5
7054echo "${ECHO_T}no" >&6; }
7055fi
7056
7057
7058# Extract the first word of "tar", so it can be a program name with args.
7059set dummy tar; ac_word=$2
7060{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062if test "${ac_cv_path_TAR+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064else
7065 case $TAR in
7066 [\\/]* | ?:[\\/]*)
7067 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7068 ;;
7069 *)
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH
7072do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007076 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 +00007077 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7080 fi
7081done
7082done
7083IFS=$as_save_IFS
7084
7085 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7086 ;;
7087esac
7088fi
7089TAR=$ac_cv_path_TAR
7090if test -n "$TAR"; then
7091 { echo "$as_me:$LINENO: result: $TAR" >&5
7092echo "${ECHO_T}$TAR" >&6; }
7093else
7094 { echo "$as_me:$LINENO: result: no" >&5
7095echo "${ECHO_T}no" >&6; }
7096fi
7097
7098
7099# Extract the first word of "pwd", so it can be a program name with args.
7100set dummy pwd; ac_word=$2
7101{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103if test "${ac_cv_path_BINPWD+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105else
7106 case $BINPWD in
7107 [\\/]* | ?:[\\/]*)
7108 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7109 ;;
7110 *)
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112for as_dir in $PATH
7113do
7114 IFS=$as_save_IFS
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007117 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 +00007118 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 break 2
7121 fi
7122done
7123done
7124IFS=$as_save_IFS
7125
7126 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7127 ;;
7128esac
7129fi
7130BINPWD=$ac_cv_path_BINPWD
7131if test -n "$BINPWD"; then
7132 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7133echo "${ECHO_T}$BINPWD" >&6; }
7134else
7135 { echo "$as_me:$LINENO: result: no" >&5
7136echo "${ECHO_T}no" >&6; }
7137fi
7138
7139
7140
7141# Extract the first word of "Graphviz", so it can be a program name with args.
7142set dummy Graphviz; ac_word=$2
7143{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147else
7148 case $GRAPHVIZ in
7149 [\\/]* | ?:[\\/]*)
7150 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7151 ;;
7152 *)
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154for as_dir in $PATH
7155do
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007159 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 +00007160 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 break 2
7163 fi
7164done
7165done
7166IFS=$as_save_IFS
7167
7168 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7169 ;;
7170esac
7171fi
7172GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7173if test -n "$GRAPHVIZ"; then
7174 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7175echo "${ECHO_T}$GRAPHVIZ" >&6; }
7176else
7177 { echo "$as_me:$LINENO: result: no" >&5
7178echo "${ECHO_T}no" >&6; }
7179fi
7180
7181
7182if test "$GRAPHVIZ" != "echo Graphviz" ; then
7183
7184cat >>confdefs.h <<\_ACEOF
7185#define HAVE_GRAPHVIZ 1
7186_ACEOF
7187
Jeff Cohen28783c32007-01-12 18:22:38 +00007188 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007189 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7190 fi
7191
7192cat >>confdefs.h <<_ACEOF
7193#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7194_ACEOF
7195
7196fi
7197# Extract the first word of "dot", so it can be a program name with args.
7198set dummy dot; ac_word=$2
7199{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201if test "${ac_cv_path_DOT+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7203else
7204 case $DOT in
7205 [\\/]* | ?:[\\/]*)
7206 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7207 ;;
7208 *)
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210for as_dir in $PATH
7211do
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007215 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 +00007216 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 break 2
7219 fi
7220done
7221done
7222IFS=$as_save_IFS
7223
7224 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7225 ;;
7226esac
7227fi
7228DOT=$ac_cv_path_DOT
7229if test -n "$DOT"; then
7230 { echo "$as_me:$LINENO: result: $DOT" >&5
7231echo "${ECHO_T}$DOT" >&6; }
7232else
7233 { echo "$as_me:$LINENO: result: no" >&5
7234echo "${ECHO_T}no" >&6; }
7235fi
7236
7237
7238if test "$DOT" != "echo dot" ; then
7239
7240cat >>confdefs.h <<\_ACEOF
7241#define HAVE_DOT 1
7242_ACEOF
7243
Jeff Cohen28783c32007-01-12 18:22:38 +00007244 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007245 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7246 fi
7247
7248cat >>confdefs.h <<_ACEOF
7249#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7250_ACEOF
7251
7252fi
David Greenef0b9eff2009-07-09 17:16:26 +00007253# Extract the first word of "fdp", so it can be a program name with args.
7254set dummy fdp; ac_word=$2
7255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257if test "${ac_cv_path_FDP+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7259else
7260 case $FDP in
7261 [\\/]* | ?:[\\/]*)
7262 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7263 ;;
7264 *)
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266for as_dir in $PATH
7267do
7268 IFS=$as_save_IFS
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7272 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 break 2
7275 fi
7276done
7277done
7278IFS=$as_save_IFS
7279
7280 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7281 ;;
7282esac
7283fi
7284FDP=$ac_cv_path_FDP
7285if test -n "$FDP"; then
7286 { echo "$as_me:$LINENO: result: $FDP" >&5
7287echo "${ECHO_T}$FDP" >&6; }
7288else
7289 { echo "$as_me:$LINENO: result: no" >&5
7290echo "${ECHO_T}no" >&6; }
7291fi
7292
7293
7294if test "$FDP" != "echo fdp" ; then
7295
7296cat >>confdefs.h <<\_ACEOF
7297#define HAVE_FDP 1
7298_ACEOF
7299
7300 if test "$llvm_cv_os_type" = "MingW" ; then
7301 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7302 fi
7303
7304cat >>confdefs.h <<_ACEOF
7305#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7306_ACEOF
7307
7308fi
7309# Extract the first word of "neato", so it can be a program name with args.
7310set dummy neato; ac_word=$2
7311{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7313if test "${ac_cv_path_NEATO+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7315else
7316 case $NEATO in
7317 [\\/]* | ?:[\\/]*)
7318 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7319 ;;
7320 *)
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322for as_dir in $PATH
7323do
7324 IFS=$as_save_IFS
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7328 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 break 2
7331 fi
7332done
7333done
7334IFS=$as_save_IFS
7335
7336 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7337 ;;
7338esac
7339fi
7340NEATO=$ac_cv_path_NEATO
7341if test -n "$NEATO"; then
7342 { echo "$as_me:$LINENO: result: $NEATO" >&5
7343echo "${ECHO_T}$NEATO" >&6; }
7344else
7345 { echo "$as_me:$LINENO: result: no" >&5
7346echo "${ECHO_T}no" >&6; }
7347fi
7348
7349
7350if test "$NEATO" != "echo neato" ; then
7351
7352cat >>confdefs.h <<\_ACEOF
7353#define HAVE_NEATO 1
7354_ACEOF
7355
7356 if test "$llvm_cv_os_type" = "MingW" ; then
7357 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7358 fi
7359
7360cat >>confdefs.h <<_ACEOF
7361#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7362_ACEOF
7363
7364fi
7365# Extract the first word of "twopi", so it can be a program name with args.
7366set dummy twopi; ac_word=$2
7367{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7369if test "${ac_cv_path_TWOPI+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7371else
7372 case $TWOPI in
7373 [\\/]* | ?:[\\/]*)
7374 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7375 ;;
7376 *)
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378for as_dir in $PATH
7379do
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7384 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 break 2
7387 fi
7388done
7389done
7390IFS=$as_save_IFS
7391
7392 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7393 ;;
7394esac
7395fi
7396TWOPI=$ac_cv_path_TWOPI
7397if test -n "$TWOPI"; then
7398 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7399echo "${ECHO_T}$TWOPI" >&6; }
7400else
7401 { echo "$as_me:$LINENO: result: no" >&5
7402echo "${ECHO_T}no" >&6; }
7403fi
7404
7405
7406if test "$TWOPI" != "echo twopi" ; then
7407
7408cat >>confdefs.h <<\_ACEOF
7409#define HAVE_TWOPI 1
7410_ACEOF
7411
7412 if test "$llvm_cv_os_type" = "MingW" ; then
7413 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7414 fi
7415
7416cat >>confdefs.h <<_ACEOF
7417#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7418_ACEOF
7419
7420fi
7421# Extract the first word of "circo", so it can be a program name with args.
7422set dummy circo; ac_word=$2
7423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7425if test "${ac_cv_path_CIRCO+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7427else
7428 case $CIRCO in
7429 [\\/]* | ?:[\\/]*)
7430 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7431 ;;
7432 *)
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434for as_dir in $PATH
7435do
7436 IFS=$as_save_IFS
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7440 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 break 2
7443 fi
7444done
7445done
7446IFS=$as_save_IFS
7447
7448 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7449 ;;
7450esac
7451fi
7452CIRCO=$ac_cv_path_CIRCO
7453if test -n "$CIRCO"; then
7454 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7455echo "${ECHO_T}$CIRCO" >&6; }
7456else
7457 { echo "$as_me:$LINENO: result: no" >&5
7458echo "${ECHO_T}no" >&6; }
7459fi
7460
7461
7462if test "$CIRCO" != "echo circo" ; then
7463
7464cat >>confdefs.h <<\_ACEOF
7465#define HAVE_CIRCO 1
7466_ACEOF
7467
7468 if test "$llvm_cv_os_type" = "MingW" ; then
7469 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7470 fi
7471
7472cat >>confdefs.h <<_ACEOF
7473#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7474_ACEOF
7475
7476fi
Reid Spencera773bd52006-08-04 18:18:08 +00007477for ac_prog in gv gsview32
7478do
7479 # Extract the first word of "$ac_prog", so it can be a program name with args.
7480set dummy $ac_prog; ac_word=$2
7481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7483if test "${ac_cv_path_GV+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7485else
7486 case $GV in
7487 [\\/]* | ?:[\\/]*)
7488 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7489 ;;
7490 *)
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007497 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 +00007498 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7501 fi
7502done
7503done
7504IFS=$as_save_IFS
7505
7506 ;;
7507esac
7508fi
7509GV=$ac_cv_path_GV
7510if test -n "$GV"; then
7511 { echo "$as_me:$LINENO: result: $GV" >&5
7512echo "${ECHO_T}$GV" >&6; }
7513else
7514 { echo "$as_me:$LINENO: result: no" >&5
7515echo "${ECHO_T}no" >&6; }
7516fi
7517
7518
7519 test -n "$GV" && break
7520done
7521test -n "$GV" || GV="echo gv"
7522
7523if test "$GV" != "echo gv" ; then
7524
7525cat >>confdefs.h <<\_ACEOF
7526#define HAVE_GV 1
7527_ACEOF
7528
Jeff Cohen28783c32007-01-12 18:22:38 +00007529 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007530 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7531 fi
7532
7533cat >>confdefs.h <<_ACEOF
7534#define LLVM_PATH_GV "$GV${EXEEXT}"
7535_ACEOF
7536
7537fi
7538# Extract the first word of "dotty", so it can be a program name with args.
7539set dummy dotty; ac_word=$2
7540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7542if test "${ac_cv_path_DOTTY+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7544else
7545 case $DOTTY in
7546 [\\/]* | ?:[\\/]*)
7547 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7548 ;;
7549 *)
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551for as_dir in $PATH
7552do
7553 IFS=$as_save_IFS
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007556 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 +00007557 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 break 2
7560 fi
7561done
7562done
7563IFS=$as_save_IFS
7564
7565 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7566 ;;
7567esac
7568fi
7569DOTTY=$ac_cv_path_DOTTY
7570if test -n "$DOTTY"; then
7571 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7572echo "${ECHO_T}$DOTTY" >&6; }
7573else
7574 { echo "$as_me:$LINENO: result: no" >&5
7575echo "${ECHO_T}no" >&6; }
7576fi
7577
7578
7579if test "$DOTTY" != "echo dotty" ; then
7580
7581cat >>confdefs.h <<\_ACEOF
7582#define HAVE_DOTTY 1
7583_ACEOF
7584
Jeff Cohen28783c32007-01-12 18:22:38 +00007585 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007586 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7587 fi
7588
7589cat >>confdefs.h <<_ACEOF
7590#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7591_ACEOF
7592
7593fi
7594
7595
7596# Extract the first word of "perl", so it can be a program name with args.
7597set dummy perl; ac_word=$2
7598{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7600if test "${ac_cv_path_PERL+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7602else
7603 case $PERL in
7604 [\\/]* | ?:[\\/]*)
7605 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7606 ;;
7607 *)
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609for as_dir in $PATH
7610do
7611 IFS=$as_save_IFS
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007614 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 +00007615 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 break 2
7618 fi
7619done
7620done
7621IFS=$as_save_IFS
7622
7623 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7624 ;;
7625esac
7626fi
7627PERL=$ac_cv_path_PERL
7628if test -n "$PERL"; then
7629 { echo "$as_me:$LINENO: result: $PERL" >&5
7630echo "${ECHO_T}$PERL" >&6; }
7631else
7632 { echo "$as_me:$LINENO: result: no" >&5
7633echo "${ECHO_T}no" >&6; }
7634fi
7635
7636
7637if test "$PERL" != "none"; then
7638 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7639echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7640 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7641 { echo "$as_me:$LINENO: result: yes" >&5
7642echo "${ECHO_T}yes" >&6; }
7643 else
7644 PERL=none
7645 { echo "$as_me:$LINENO: result: not found" >&5
7646echo "${ECHO_T}not found" >&6; }
7647 fi
7648fi
7649
7650
7651if test x"$PERL" = xnone; then
7652 HAVE_PERL=0
7653
Reid Spencer59807fa2007-05-17 18:11:03 +00007654 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7655echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7656 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007657else
7658 HAVE_PERL=1
7659
7660fi
7661
7662# Find a good install program. We prefer a C program (faster),
7663# so one script is as good as another. But avoid the broken or
7664# incompatible versions:
7665# SysV /etc/install, /usr/sbin/install
7666# SunOS /usr/etc/install
7667# IRIX /sbin/install
7668# AIX /bin/install
7669# AmigaOS /C/install, which installs bootblocks on floppy discs
7670# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7671# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7672# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7673# OS/2's system install, which has a completely different semantic
7674# ./install, which can be erroneously created by make from ./install.sh.
7675{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7676echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7677if test -z "$INSTALL"; then
7678if test "${ac_cv_path_install+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7680else
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682for as_dir in $PATH
7683do
7684 IFS=$as_save_IFS
7685 test -z "$as_dir" && as_dir=.
7686 # Account for people who put trailing slashes in PATH elements.
7687case $as_dir/ in
7688 ./ | .// | /cC/* | \
7689 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7690 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7691 /usr/ucb/* ) ;;
7692 *)
7693 # OSF1 and SCO ODT 3.0 have their own names for install.
7694 # Don't use installbsd from OSF since it installs stuff as root
7695 # by default.
7696 for ac_prog in ginstall scoinst install; do
7697 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007698 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 +00007699 if test $ac_prog = install &&
7700 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7701 # AIX install. It has an incompatible calling convention.
7702 :
7703 elif test $ac_prog = install &&
7704 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7705 # program-specific install script used by HP pwplus--don't use.
7706 :
7707 else
7708 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7709 break 3
7710 fi
7711 fi
7712 done
7713 done
7714 ;;
7715esac
7716done
7717IFS=$as_save_IFS
7718
7719
7720fi
7721 if test "${ac_cv_path_install+set}" = set; then
7722 INSTALL=$ac_cv_path_install
7723 else
7724 # As a last resort, use the slow shell script. Don't cache a
7725 # value for INSTALL within a source directory, because that will
7726 # break other packages using the cache if that directory is
7727 # removed, or if the value is a relative name.
7728 INSTALL=$ac_install_sh
7729 fi
7730fi
7731{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7732echo "${ECHO_T}$INSTALL" >&6; }
7733
7734# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7735# It thinks the first close brace ends the variable substitution.
7736test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7737
7738test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7739
7740test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7741
7742
7743# Extract the first word of "bzip2", so it can be a program name with args.
7744set dummy bzip2; ac_word=$2
7745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7747if test "${ac_cv_path_BZIP2+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7749else
7750 case $BZIP2 in
7751 [\\/]* | ?:[\\/]*)
7752 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7753 ;;
7754 *)
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756for as_dir in $PATH
7757do
7758 IFS=$as_save_IFS
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007761 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 +00007762 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 break 2
7765 fi
7766done
7767done
7768IFS=$as_save_IFS
7769
Reid Spencera773bd52006-08-04 18:18:08 +00007770 ;;
7771esac
7772fi
7773BZIP2=$ac_cv_path_BZIP2
7774if test -n "$BZIP2"; then
7775 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7776echo "${ECHO_T}$BZIP2" >&6; }
7777else
7778 { echo "$as_me:$LINENO: result: no" >&5
7779echo "${ECHO_T}no" >&6; }
7780fi
7781
7782
7783# Extract the first word of "doxygen", so it can be a program name with args.
7784set dummy doxygen; ac_word=$2
7785{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7787if test "${ac_cv_path_DOXYGEN+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7789else
7790 case $DOXYGEN in
7791 [\\/]* | ?:[\\/]*)
7792 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7793 ;;
7794 *)
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796for as_dir in $PATH
7797do
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007801 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 +00007802 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 break 2
7805 fi
7806done
7807done
7808IFS=$as_save_IFS
7809
Reid Spencera773bd52006-08-04 18:18:08 +00007810 ;;
7811esac
7812fi
7813DOXYGEN=$ac_cv_path_DOXYGEN
7814if test -n "$DOXYGEN"; then
7815 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7816echo "${ECHO_T}$DOXYGEN" >&6; }
7817else
7818 { echo "$as_me:$LINENO: result: no" >&5
7819echo "${ECHO_T}no" >&6; }
7820fi
7821
7822
Reid Spencera773bd52006-08-04 18:18:08 +00007823# Extract the first word of "groff", so it can be a program name with args.
7824set dummy groff; ac_word=$2
7825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827if test "${ac_cv_path_GROFF+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7829else
7830 case $GROFF in
7831 [\\/]* | ?:[\\/]*)
7832 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7833 ;;
7834 *)
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in $PATH
7837do
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007841 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 +00007842 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7845 fi
7846done
7847done
7848IFS=$as_save_IFS
7849
Reid Spencera773bd52006-08-04 18:18:08 +00007850 ;;
7851esac
7852fi
7853GROFF=$ac_cv_path_GROFF
7854if test -n "$GROFF"; then
7855 { echo "$as_me:$LINENO: result: $GROFF" >&5
7856echo "${ECHO_T}$GROFF" >&6; }
7857else
7858 { echo "$as_me:$LINENO: result: no" >&5
7859echo "${ECHO_T}no" >&6; }
7860fi
7861
7862
7863# Extract the first word of "gzip", so it can be a program name with args.
7864set dummy gzip; ac_word=$2
7865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7867if test "${ac_cv_path_GZIP+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7869else
7870 case $GZIP in
7871 [\\/]* | ?:[\\/]*)
7872 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7873 ;;
7874 *)
7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876for as_dir in $PATH
7877do
7878 IFS=$as_save_IFS
7879 test -z "$as_dir" && as_dir=.
7880 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007881 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 +00007882 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 break 2
7885 fi
7886done
7887done
7888IFS=$as_save_IFS
7889
Reid Spencera773bd52006-08-04 18:18:08 +00007890 ;;
7891esac
7892fi
7893GZIP=$ac_cv_path_GZIP
7894if test -n "$GZIP"; then
7895 { echo "$as_me:$LINENO: result: $GZIP" >&5
7896echo "${ECHO_T}$GZIP" >&6; }
7897else
7898 { echo "$as_me:$LINENO: result: no" >&5
7899echo "${ECHO_T}no" >&6; }
7900fi
7901
7902
7903# Extract the first word of "pod2html", so it can be a program name with args.
7904set dummy pod2html; ac_word=$2
7905{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7907if test "${ac_cv_path_POD2HTML+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7909else
7910 case $POD2HTML in
7911 [\\/]* | ?:[\\/]*)
7912 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7913 ;;
7914 *)
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916for as_dir in $PATH
7917do
7918 IFS=$as_save_IFS
7919 test -z "$as_dir" && as_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007921 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 +00007922 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 break 2
7925 fi
7926done
7927done
7928IFS=$as_save_IFS
7929
Reid Spencera773bd52006-08-04 18:18:08 +00007930 ;;
7931esac
7932fi
7933POD2HTML=$ac_cv_path_POD2HTML
7934if test -n "$POD2HTML"; then
7935 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7936echo "${ECHO_T}$POD2HTML" >&6; }
7937else
7938 { echo "$as_me:$LINENO: result: no" >&5
7939echo "${ECHO_T}no" >&6; }
7940fi
7941
7942
7943# Extract the first word of "pod2man", so it can be a program name with args.
7944set dummy pod2man; ac_word=$2
7945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7947if test "${ac_cv_path_POD2MAN+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949else
7950 case $POD2MAN in
7951 [\\/]* | ?:[\\/]*)
7952 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7953 ;;
7954 *)
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956for as_dir in $PATH
7957do
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007961 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 +00007962 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 break 2
7965 fi
7966done
7967done
7968IFS=$as_save_IFS
7969
Reid Spencera773bd52006-08-04 18:18:08 +00007970 ;;
7971esac
7972fi
7973POD2MAN=$ac_cv_path_POD2MAN
7974if test -n "$POD2MAN"; then
7975 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7976echo "${ECHO_T}$POD2MAN" >&6; }
7977else
7978 { echo "$as_me:$LINENO: result: no" >&5
7979echo "${ECHO_T}no" >&6; }
7980fi
7981
7982
7983# Extract the first word of "runtest", so it can be a program name with args.
7984set dummy runtest; ac_word=$2
7985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7987if test "${ac_cv_path_RUNTEST+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7989else
7990 case $RUNTEST in
7991 [\\/]* | ?:[\\/]*)
7992 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7993 ;;
7994 *)
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996for as_dir in $PATH
7997do
7998 IFS=$as_save_IFS
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008001 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 +00008002 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8004 break 2
8005 fi
8006done
8007done
8008IFS=$as_save_IFS
8009
Reid Spencera773bd52006-08-04 18:18:08 +00008010 ;;
8011esac
8012fi
8013RUNTEST=$ac_cv_path_RUNTEST
8014if test -n "$RUNTEST"; then
8015 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8016echo "${ECHO_T}$RUNTEST" >&6; }
8017else
8018 { echo "$as_me:$LINENO: result: no" >&5
8019echo "${ECHO_T}no" >&6; }
8020fi
8021
8022
8023
8024no_itcl=true
8025{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8026echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8027
8028# Check whether --with-tclinclude was given.
8029if test "${with_tclinclude+set}" = set; then
8030 withval=$with_tclinclude; with_tclinclude=${withval}
8031else
8032 with_tclinclude=''
8033fi
8034
8035if test "${ac_cv_path_tclsh+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8037else
8038
8039if test x"${with_tclinclude}" != x ; then
8040 if test -f ${with_tclinclude}/tclsh ; then
8041 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8042 elif test -f ${with_tclinclude}/src/tclsh ; then
8043 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8044 else
8045 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8046echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8047 { (exit 1); exit 1; }; }
8048 fi
8049fi
8050
8051if test x"${ac_cv_path_tclsh}" = x ; then
8052 { echo "$as_me:$LINENO: result: none" >&5
8053echo "${ECHO_T}none" >&6; }
8054 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
8055do
8056 # Extract the first word of "$ac_prog", so it can be a program name with args.
8057set dummy $ac_prog; ac_word=$2
8058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8060if test "${ac_cv_path_TCLSH+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062else
8063 case $TCLSH in
8064 [\\/]* | ?:[\\/]*)
8065 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8066 ;;
8067 *)
8068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069for as_dir in $PATH
8070do
8071 IFS=$as_save_IFS
8072 test -z "$as_dir" && as_dir=.
8073 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008074 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 +00008075 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 break 2
8078 fi
8079done
8080done
8081IFS=$as_save_IFS
8082
8083 ;;
8084esac
8085fi
8086TCLSH=$ac_cv_path_TCLSH
8087if test -n "$TCLSH"; then
8088 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8089echo "${ECHO_T}$TCLSH" >&6; }
8090else
8091 { echo "$as_me:$LINENO: result: no" >&5
8092echo "${ECHO_T}no" >&6; }
8093fi
8094
8095
8096 test -n "$TCLSH" && break
8097done
8098
8099 if test x"${TCLSH}" = x ; then
8100 ac_cv_path_tclsh='';
8101 else
8102 ac_cv_path_tclsh="${TCLSH}";
8103 fi
8104else
8105 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8106echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8107 TCLSH="${ac_cv_path_tclsh}"
8108
8109fi
8110
8111fi
8112
8113# Extract the first word of "zip", so it can be a program name with args.
8114set dummy zip; ac_word=$2
8115{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8117if test "${ac_cv_path_ZIP+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8119else
8120 case $ZIP in
8121 [\\/]* | ?:[\\/]*)
8122 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8123 ;;
8124 *)
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126for as_dir in $PATH
8127do
8128 IFS=$as_save_IFS
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008131 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 +00008132 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 break 2
8135 fi
8136done
8137done
8138IFS=$as_save_IFS
8139
Reid Spencera773bd52006-08-04 18:18:08 +00008140 ;;
8141esac
8142fi
8143ZIP=$ac_cv_path_ZIP
8144if test -n "$ZIP"; then
8145 { echo "$as_me:$LINENO: result: $ZIP" >&5
8146echo "${ECHO_T}$ZIP" >&6; }
8147else
8148 { echo "$as_me:$LINENO: result: no" >&5
8149echo "${ECHO_T}no" >&6; }
8150fi
8151
8152
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008153for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008154do
8155 # Extract the first word of "$ac_prog", so it can be a program name with args.
8156set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8159if test "${ac_cv_path_OCAMLC+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161else
8162 case $OCAMLC in
8163 [\\/]* | ?:[\\/]*)
8164 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8165 ;;
8166 *)
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168for as_dir in $PATH
8169do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008173 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 +00008174 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8177 fi
8178done
8179done
8180IFS=$as_save_IFS
8181
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008182 ;;
8183esac
8184fi
8185OCAMLC=$ac_cv_path_OCAMLC
8186if test -n "$OCAMLC"; then
8187 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8188echo "${ECHO_T}$OCAMLC" >&6; }
8189else
8190 { echo "$as_me:$LINENO: result: no" >&5
8191echo "${ECHO_T}no" >&6; }
8192fi
8193
8194
Gordon Henriksene7072162008-03-07 18:20:01 +00008195 test -n "$OCAMLC" && break
8196done
8197
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008198for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008199do
8200 # Extract the first word of "$ac_prog", so it can be a program name with args.
8201set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008202{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8204if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8206else
8207 case $OCAMLOPT in
8208 [\\/]* | ?:[\\/]*)
8209 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8210 ;;
8211 *)
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213for as_dir in $PATH
8214do
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008218 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 +00008219 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8222 fi
8223done
8224done
8225IFS=$as_save_IFS
8226
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008227 ;;
8228esac
8229fi
8230OCAMLOPT=$ac_cv_path_OCAMLOPT
8231if test -n "$OCAMLOPT"; then
8232 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8233echo "${ECHO_T}$OCAMLOPT" >&6; }
8234else
8235 { echo "$as_me:$LINENO: result: no" >&5
8236echo "${ECHO_T}no" >&6; }
8237fi
8238
8239
Gordon Henriksene7072162008-03-07 18:20:01 +00008240 test -n "$OCAMLOPT" && break
8241done
8242
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008243for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008244do
8245 # Extract the first word of "$ac_prog", so it can be a program name with args.
8246set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008247{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8249if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8251else
8252 case $OCAMLDEP in
8253 [\\/]* | ?:[\\/]*)
8254 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8255 ;;
8256 *)
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258for as_dir in $PATH
8259do
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008263 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 +00008264 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8267 fi
8268done
8269done
8270IFS=$as_save_IFS
8271
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008272 ;;
8273esac
8274fi
8275OCAMLDEP=$ac_cv_path_OCAMLDEP
8276if test -n "$OCAMLDEP"; then
8277 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8278echo "${ECHO_T}$OCAMLDEP" >&6; }
8279else
8280 { echo "$as_me:$LINENO: result: no" >&5
8281echo "${ECHO_T}no" >&6; }
8282fi
8283
8284
Gordon Henriksene7072162008-03-07 18:20:01 +00008285 test -n "$OCAMLDEP" && break
8286done
8287
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008288for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008289do
8290 # Extract the first word of "$ac_prog", so it can be a program name with args.
8291set dummy $ac_prog; ac_word=$2
8292{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8294if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8296else
8297 case $OCAMLDOC in
8298 [\\/]* | ?:[\\/]*)
8299 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8300 ;;
8301 *)
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303for as_dir in $PATH
8304do
8305 IFS=$as_save_IFS
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008308 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 +00008309 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8311 break 2
8312 fi
8313done
8314done
8315IFS=$as_save_IFS
8316
8317 ;;
8318esac
8319fi
8320OCAMLDOC=$ac_cv_path_OCAMLDOC
8321if test -n "$OCAMLDOC"; then
8322 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8323echo "${ECHO_T}$OCAMLDOC" >&6; }
8324else
8325 { echo "$as_me:$LINENO: result: no" >&5
8326echo "${ECHO_T}no" >&6; }
8327fi
8328
8329
8330 test -n "$OCAMLDOC" && break
8331done
8332
Torok Edwincc499a42008-10-22 09:56:27 +00008333for ac_prog in gas as
8334do
8335 # Extract the first word of "$ac_prog", so it can be a program name with args.
8336set dummy $ac_prog; ac_word=$2
8337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8339if test "${ac_cv_path_GAS+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341else
8342 case $GAS in
8343 [\\/]* | ?:[\\/]*)
8344 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8345 ;;
8346 *)
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348for as_dir in $PATH
8349do
8350 IFS=$as_save_IFS
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008353 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 +00008354 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 break 2
8357 fi
8358done
8359done
8360IFS=$as_save_IFS
8361
8362 ;;
8363esac
8364fi
8365GAS=$ac_cv_path_GAS
8366if test -n "$GAS"; then
8367 { echo "$as_me:$LINENO: result: $GAS" >&5
8368echo "${ECHO_T}$GAS" >&6; }
8369else
8370 { echo "$as_me:$LINENO: result: no" >&5
8371echo "${ECHO_T}no" >&6; }
8372fi
8373
8374
8375 test -n "$GAS" && break
8376done
8377
Reid Spencera773bd52006-08-04 18:18:08 +00008378
8379{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8380echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8381if test "${llvm_cv_link_use_r+set}" = set; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8383else
8384 ac_ext=c
8385ac_cpp='$CPP $CPPFLAGS'
8386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8388ac_compiler_gnu=$ac_cv_c_compiler_gnu
8389
8390 oldcflags="$CFLAGS"
8391 CFLAGS="$CFLAGS -Wl,-R."
8392 cat >conftest.$ac_ext <<_ACEOF
8393/* confdefs.h. */
8394_ACEOF
8395cat confdefs.h >>conftest.$ac_ext
8396cat >>conftest.$ac_ext <<_ACEOF
8397/* end confdefs.h. */
8398
8399int
8400main ()
8401{
8402int main() { return 0; }
8403 ;
8404 return 0;
8405}
8406_ACEOF
8407rm -f conftest.$ac_objext conftest$ac_exeext
8408if { (ac_try="$ac_link"
8409case "(($ac_try" in
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8412esac
8413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414 (eval "$ac_link") 2>conftest.er1
8415 ac_status=$?
8416 grep -v '^ *+' conftest.er1 >conftest.err
8417 rm -f conftest.er1
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008420 (exit $ac_status); } &&
8421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8422 { (case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8425esac
8426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_try") 2>&5
8428 ac_status=$?
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; } &&
8431 { ac_try='test -s conftest$ac_exeext'
8432 { (case "(($ac_try" in
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8435esac
8436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_try") 2>&5
8438 ac_status=$?
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008441 llvm_cv_link_use_r=yes
8442else
8443 echo "$as_me: failed program was:" >&5
8444sed 's/^/| /' conftest.$ac_ext >&5
8445
8446 llvm_cv_link_use_r=no
8447fi
8448
Bill Wendlingebcceee2009-04-18 11:20:33 +00008449rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008450 conftest$ac_exeext conftest.$ac_ext
8451 CFLAGS="$oldcflags"
8452 ac_ext=c
8453ac_cpp='$CPP $CPPFLAGS'
8454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8456ac_compiler_gnu=$ac_cv_c_compiler_gnu
8457
8458
8459fi
8460{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8461echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8462if test "$llvm_cv_link_use_r" = yes ; then
8463
8464cat >>confdefs.h <<\_ACEOF
8465#define HAVE_LINK_R 1
8466_ACEOF
8467
8468 fi
8469
8470
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008471{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8472echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8473if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
8475else
8476 ac_ext=c
8477ac_cpp='$CPP $CPPFLAGS'
8478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8480ac_compiler_gnu=$ac_cv_c_compiler_gnu
8481
8482 oldcflags="$CFLAGS"
8483 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8484 cat >conftest.$ac_ext <<_ACEOF
8485/* confdefs.h. */
8486_ACEOF
8487cat confdefs.h >>conftest.$ac_ext
8488cat >>conftest.$ac_ext <<_ACEOF
8489/* end confdefs.h. */
8490
8491int
8492main ()
8493{
8494int main() { return 0; }
8495 ;
8496 return 0;
8497}
8498_ACEOF
8499rm -f conftest.$ac_objext conftest$ac_exeext
8500if { (ac_try="$ac_link"
8501case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8504esac
8505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_link") 2>conftest.er1
8507 ac_status=$?
8508 grep -v '^ *+' conftest.er1 >conftest.err
8509 rm -f conftest.er1
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008512 (exit $ac_status); } &&
8513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8514 { (case "(($ac_try" in
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8517esac
8518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519 (eval "$ac_try") 2>&5
8520 ac_status=$?
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); }; } &&
8523 { ac_try='test -s conftest$ac_exeext'
8524 { (case "(($ac_try" in
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8527esac
8528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529 (eval "$ac_try") 2>&5
8530 ac_status=$?
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008533 llvm_cv_link_use_export_dynamic=yes
8534else
8535 echo "$as_me: failed program was:" >&5
8536sed 's/^/| /' conftest.$ac_ext >&5
8537
8538 llvm_cv_link_use_export_dynamic=no
8539fi
8540
Bill Wendlingebcceee2009-04-18 11:20:33 +00008541rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008542 conftest$ac_exeext conftest.$ac_ext
8543 CFLAGS="$oldcflags"
8544 ac_ext=c
8545ac_cpp='$CPP $CPPFLAGS'
8546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8548ac_compiler_gnu=$ac_cv_c_compiler_gnu
8549
8550
8551fi
8552{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8553echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8554if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8555
8556cat >>confdefs.h <<\_ACEOF
8557#define HAVE_LINK_EXPORT_DYNAMIC 1
8558_ACEOF
8559
8560 fi
8561
8562
Reid Spencera773bd52006-08-04 18:18:08 +00008563
8564
8565{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8566echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8567if test "${ac_cv_c_const+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8569else
8570 cat >conftest.$ac_ext <<_ACEOF
8571/* confdefs.h. */
8572_ACEOF
8573cat confdefs.h >>conftest.$ac_ext
8574cat >>conftest.$ac_ext <<_ACEOF
8575/* end confdefs.h. */
8576
8577int
8578main ()
8579{
8580/* FIXME: Include the comments suggested by Paul. */
8581#ifndef __cplusplus
8582 /* Ultrix mips cc rejects this. */
8583 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008584 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008585 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008586 char const *const *ccp;
8587 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008588 /* NEC SVR4.0.2 mips cc rejects this. */
8589 struct point {int x, y;};
8590 static struct point const zero = {0,0};
8591 /* AIX XL C 1.02.0.0 rejects this.
8592 It does not let you subtract one const X* pointer from another in
8593 an arm of an if-expression whose if-part is not a constant
8594 expression */
8595 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008596 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008597 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008598 ++ccp;
8599 p = (char**) ccp;
8600 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008601 { /* SCO 3.2v4 cc rejects this. */
8602 char *t;
8603 char const *s = 0 ? (char *) 0 : (char const *) 0;
8604
8605 *t++ = 0;
8606 if (s) return 0;
8607 }
8608 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8609 int x[] = {25, 17};
8610 const int *foo = &x[0];
8611 ++foo;
8612 }
8613 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8614 typedef const int *iptr;
8615 iptr p = 0;
8616 ++p;
8617 }
8618 { /* AIX XL C 1.02.0.0 rejects this saying
8619 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8620 struct s { int j; const int *ap[3]; };
8621 struct s *b; b->j = 5;
8622 }
8623 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8624 const int foo = 10;
8625 if (!foo) return 0;
8626 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008627 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008628#endif
8629
8630 ;
8631 return 0;
8632}
8633_ACEOF
8634rm -f conftest.$ac_objext
8635if { (ac_try="$ac_compile"
8636case "(($ac_try" in
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8639esac
8640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641 (eval "$ac_compile") 2>conftest.er1
8642 ac_status=$?
8643 grep -v '^ *+' conftest.er1 >conftest.err
8644 rm -f conftest.er1
8645 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008647 (exit $ac_status); } &&
8648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8649 { (case "(($ac_try" in
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8652esac
8653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654 (eval "$ac_try") 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try='test -s conftest.$ac_objext'
8659 { (case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8662esac
8663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_try") 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008668 ac_cv_c_const=yes
8669else
8670 echo "$as_me: failed program was:" >&5
8671sed 's/^/| /' conftest.$ac_ext >&5
8672
8673 ac_cv_c_const=no
8674fi
8675
8676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677fi
8678{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8679echo "${ECHO_T}$ac_cv_c_const" >&6; }
8680if test $ac_cv_c_const = no; then
8681
8682cat >>confdefs.h <<\_ACEOF
8683#define const
8684_ACEOF
8685
8686fi
8687
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008688
8689
8690
8691
8692
8693ac_header_dirent=no
8694for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8695 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008696{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8697echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8698if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008699 echo $ECHO_N "(cached) $ECHO_C" >&6
8700else
8701 cat >conftest.$ac_ext <<_ACEOF
8702/* confdefs.h. */
8703_ACEOF
8704cat confdefs.h >>conftest.$ac_ext
8705cat >>conftest.$ac_ext <<_ACEOF
8706/* end confdefs.h. */
8707#include <sys/types.h>
8708#include <$ac_hdr>
8709
8710int
8711main ()
8712{
8713if ((DIR *) 0)
8714return 0;
8715 ;
8716 return 0;
8717}
8718_ACEOF
8719rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008720if { (ac_try="$ac_compile"
8721case "(($ac_try" in
8722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723 *) ac_try_echo=$ac_try;;
8724esac
8725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008727 ac_status=$?
8728 grep -v '^ *+' conftest.er1 >conftest.err
8729 rm -f conftest.er1
8730 cat conftest.err >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008732 (exit $ac_status); } &&
8733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8734 { (case "(($ac_try" in
8735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736 *) ac_try_echo=$ac_try;;
8737esac
8738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739 (eval "$ac_try") 2>&5
8740 ac_status=$?
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; } &&
8743 { ac_try='test -s conftest.$ac_objext'
8744 { (case "(($ac_try" in
8745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746 *) ac_try_echo=$ac_try;;
8747esac
8748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8749 (eval "$ac_try") 2>&5
8750 ac_status=$?
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008753 eval "$as_ac_Header=yes"
8754else
8755 echo "$as_me: failed program was:" >&5
8756sed 's/^/| /' conftest.$ac_ext >&5
8757
Reid Spencera773bd52006-08-04 18:18:08 +00008758 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008759fi
Reid Spencera773bd52006-08-04 18:18:08 +00008760
8761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008762fi
Reid Spencera773bd52006-08-04 18:18:08 +00008763ac_res=`eval echo '${'$as_ac_Header'}'`
8764 { echo "$as_me:$LINENO: result: $ac_res" >&5
8765echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008766if test `eval echo '${'$as_ac_Header'}'` = yes; then
8767 cat >>confdefs.h <<_ACEOF
8768#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8769_ACEOF
8770
8771ac_header_dirent=$ac_hdr; break
8772fi
8773
8774done
8775# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8776if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008777 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8778echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008779if test "${ac_cv_search_opendir+set}" = set; then
8780 echo $ECHO_N "(cached) $ECHO_C" >&6
8781else
8782 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008783cat >conftest.$ac_ext <<_ACEOF
8784/* confdefs.h. */
8785_ACEOF
8786cat confdefs.h >>conftest.$ac_ext
8787cat >>conftest.$ac_ext <<_ACEOF
8788/* end confdefs.h. */
8789
Reid Spencera773bd52006-08-04 18:18:08 +00008790/* Override any GCC internal prototype to avoid an error.
8791 Use char because int might match the return type of a GCC
8792 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008793#ifdef __cplusplus
8794extern "C"
8795#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008796char opendir ();
8797int
8798main ()
8799{
Reid Spencera773bd52006-08-04 18:18:08 +00008800return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008801 ;
8802 return 0;
8803}
8804_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008805for ac_lib in '' dir; do
8806 if test -z "$ac_lib"; then
8807 ac_res="none required"
8808 else
8809 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008811 fi
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813if { (ac_try="$ac_link"
8814case "(($ac_try" in
8815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8816 *) ac_try_echo=$ac_try;;
8817esac
8818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8819 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008820 ac_status=$?
8821 grep -v '^ *+' conftest.er1 >conftest.err
8822 rm -f conftest.er1
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008825 (exit $ac_status); } &&
8826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8827 { (case "(($ac_try" in
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8830esac
8831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_try") 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; } &&
8836 { ac_try='test -s conftest$ac_exeext'
8837 { (case "(($ac_try" in
8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8840esac
8841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842 (eval "$ac_try") 2>&5
8843 ac_status=$?
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008846 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008847else
8848 echo "$as_me: failed program was:" >&5
8849sed 's/^/| /' conftest.$ac_ext >&5
8850
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008851
8852fi
8853
Bill Wendlingebcceee2009-04-18 11:20:33 +00008854rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008855 conftest$ac_exeext
8856 if test "${ac_cv_search_opendir+set}" = set; then
8857 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008858fi
John Criswell7a73b802003-06-30 21:59:07 +00008859done
Reid Spencera773bd52006-08-04 18:18:08 +00008860if test "${ac_cv_search_opendir+set}" = set; then
8861 :
8862else
8863 ac_cv_search_opendir=no
8864fi
8865rm conftest.$ac_ext
8866LIBS=$ac_func_search_save_LIBS
8867fi
8868{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8869echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8870ac_res=$ac_cv_search_opendir
8871if test "$ac_res" != no; then
8872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008873
Reid Spencera773bd52006-08-04 18:18:08 +00008874fi
8875
8876else
8877 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8878echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8879if test "${ac_cv_search_opendir+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8881else
8882 ac_func_search_save_LIBS=$LIBS
8883cat >conftest.$ac_ext <<_ACEOF
8884/* confdefs.h. */
8885_ACEOF
8886cat confdefs.h >>conftest.$ac_ext
8887cat >>conftest.$ac_ext <<_ACEOF
8888/* end confdefs.h. */
8889
8890/* Override any GCC internal prototype to avoid an error.
8891 Use char because int might match the return type of a GCC
8892 builtin and then its argument prototype would still apply. */
8893#ifdef __cplusplus
8894extern "C"
8895#endif
8896char opendir ();
8897int
8898main ()
8899{
8900return opendir ();
8901 ;
8902 return 0;
8903}
8904_ACEOF
8905for ac_lib in '' x; do
8906 if test -z "$ac_lib"; then
8907 ac_res="none required"
8908 else
8909 ac_res=-l$ac_lib
8910 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8911 fi
8912 rm -f conftest.$ac_objext conftest$ac_exeext
8913if { (ac_try="$ac_link"
8914case "(($ac_try" in
8915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8917esac
8918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919 (eval "$ac_link") 2>conftest.er1
8920 ac_status=$?
8921 grep -v '^ *+' conftest.er1 >conftest.err
8922 rm -f conftest.er1
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008925 (exit $ac_status); } &&
8926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8927 { (case "(($ac_try" in
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8930esac
8931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932 (eval "$ac_try") 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try='test -s conftest$ac_exeext'
8937 { (case "(($ac_try" in
8938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939 *) ac_try_echo=$ac_try;;
8940esac
8941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942 (eval "$ac_try") 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008946 ac_cv_search_opendir=$ac_res
8947else
8948 echo "$as_me: failed program was:" >&5
8949sed 's/^/| /' conftest.$ac_ext >&5
8950
8951
8952fi
8953
Bill Wendlingebcceee2009-04-18 11:20:33 +00008954rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008955 conftest$ac_exeext
8956 if test "${ac_cv_search_opendir+set}" = set; then
8957 break
8958fi
8959done
8960if test "${ac_cv_search_opendir+set}" = set; then
8961 :
8962else
8963 ac_cv_search_opendir=no
8964fi
8965rm conftest.$ac_ext
8966LIBS=$ac_func_search_save_LIBS
8967fi
8968{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8969echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8970ac_res=$ac_cv_search_opendir
8971if test "$ac_res" != no; then
8972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8973
8974fi
8975
8976fi
John Criswell7a73b802003-06-30 21:59:07 +00008977
8978
8979for ac_header in dlfcn.h
8980do
8981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8985if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008986 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008987fi
Reid Spencera773bd52006-08-04 18:18:08 +00008988ac_res=`eval echo '${'$as_ac_Header'}'`
8989 { echo "$as_me:$LINENO: result: $ac_res" >&5
8990echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008991else
Brian Gaeke0a621332004-09-08 20:38:05 +00008992 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008993{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8994echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008995cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008996/* confdefs.h. */
8997_ACEOF
8998cat confdefs.h >>conftest.$ac_ext
8999cat >>conftest.$ac_ext <<_ACEOF
9000/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009001$ac_includes_default
9002#include <$ac_header>
9003_ACEOF
9004rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00009005if { (ac_try="$ac_compile"
9006case "(($ac_try" in
9007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9008 *) ac_try_echo=$ac_try;;
9009esac
9010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9011 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009012 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009013 grep -v '^ *+' conftest.er1 >conftest.err
9014 rm -f conftest.er1
9015 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009017 (exit $ac_status); } &&
9018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9019 { (case "(($ac_try" in
9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9022esac
9023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9024 (eval "$ac_try") 2>&5
9025 ac_status=$?
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }; } &&
9028 { ac_try='test -s conftest.$ac_objext'
9029 { (case "(($ac_try" in
9030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031 *) ac_try_echo=$ac_try;;
9032esac
9033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9034 (eval "$ac_try") 2>&5
9035 ac_status=$?
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009038 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00009039else
9040 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009041sed 's/^/| /' conftest.$ac_ext >&5
9042
Reid Spencera773bd52006-08-04 18:18:08 +00009043 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00009044fi
Reid Spencera773bd52006-08-04 18:18:08 +00009045
9046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9048echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009049
9050# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00009051{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9052echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009053cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009054/* confdefs.h. */
9055_ACEOF
9056cat confdefs.h >>conftest.$ac_ext
9057cat >>conftest.$ac_ext <<_ACEOF
9058/* end confdefs.h. */
9059#include <$ac_header>
9060_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009061if { (ac_try="$ac_cpp conftest.$ac_ext"
9062case "(($ac_try" in
9063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064 *) ac_try_echo=$ac_try;;
9065esac
9066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009068 ac_status=$?
9069 grep -v '^ *+' conftest.er1 >conftest.err
9070 rm -f conftest.er1
9071 cat conftest.err >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009073 (exit $ac_status); } >/dev/null; then
9074 if test -s conftest.err; then
9075 ac_cpp_err=$ac_c_preproc_warn_flag
9076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9077 else
9078 ac_cpp_err=
9079 fi
9080else
9081 ac_cpp_err=yes
9082fi
9083if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009084 ac_header_preproc=yes
9085else
9086 echo "$as_me: failed program was:" >&5
9087sed 's/^/| /' conftest.$ac_ext >&5
9088
9089 ac_header_preproc=no
9090fi
Reid Spencera773bd52006-08-04 18:18:08 +00009091
Brian Gaeke0a621332004-09-08 20:38:05 +00009092rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009093{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9094echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009095
9096# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9098 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9100echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9102echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9103 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009104 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009105 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9107echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9109echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9111echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9113echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9115echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9117echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009118 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009119## ----------------------------------- ##
9120## Report this to llvmbugs@cs.uiuc.edu ##
9121## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009122_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009123 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009124 ;;
9125esac
Reid Spencera773bd52006-08-04 18:18:08 +00009126{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009129 echo $ECHO_N "(cached) $ECHO_C" >&6
9130else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009131 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009132fi
Reid Spencera773bd52006-08-04 18:18:08 +00009133ac_res=`eval echo '${'$as_ac_Header'}'`
9134 { echo "$as_me:$LINENO: result: $ac_res" >&5
9135echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009136
9137fi
John Criswell7a73b802003-06-30 21:59:07 +00009138if test `eval echo '${'$as_ac_Header'}'` = yes; then
9139 cat >>confdefs.h <<_ACEOF
9140#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9141_ACEOF
9142
9143fi
9144
9145done
9146
Reid Spencera773bd52006-08-04 18:18:08 +00009147# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009148if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009149 enableval=$enable_ltdl_install;
9150fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009151
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009152
Bill Wendlingebcceee2009-04-18 11:20:33 +00009153
9154
9155if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009156 INSTALL_LTDL_TRUE=
9157 INSTALL_LTDL_FALSE='#'
9158else
9159 INSTALL_LTDL_TRUE='#'
9160 INSTALL_LTDL_FALSE=
9161fi
9162
Bill Wendlingebcceee2009-04-18 11:20:33 +00009163
9164
9165if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009166 CONVENIENCE_LTDL_TRUE=
9167 CONVENIENCE_LTDL_FALSE='#'
9168else
9169 CONVENIENCE_LTDL_TRUE='#'
9170 CONVENIENCE_LTDL_FALSE=
9171fi
9172
9173
Reid Spencera773bd52006-08-04 18:18:08 +00009174{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9175echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009176library_names_spec=
9177libname_spec='lib$name'
9178soname_spec=
9179shrext_cmds=".so"
9180postinstall_cmds=
9181postuninstall_cmds=
9182finish_cmds=
9183finish_eval=
9184shlibpath_var=
9185shlibpath_overrides_runpath=unknown
9186version_type=none
9187dynamic_linker="$host_os ld.so"
9188sys_lib_dlsearch_path_spec="/lib /usr/lib"
9189if test "$GCC" = yes; then
9190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9191 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9192 # if the path contains ";" then we assume it to be the separator
9193 # otherwise default to the standard path separator (i.e. ":") - it is
9194 # assumed that no part of a normal pathname contains ";" but that should
9195 # okay in the real world where ";" in dirpaths is itself problematic.
9196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9197 else
9198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9199 fi
9200else
9201 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9202fi
9203need_lib_prefix=unknown
9204hardcode_into_libs=no
9205
9206# when you set need_version to no, make sure it does not cause -set_version
9207# flags to be left without arguments
9208need_version=unknown
9209
9210case $host_os in
9211aix3*)
9212 version_type=linux
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9214 shlibpath_var=LIBPATH
9215
9216 # AIX 3 has no versioning support, so we append a major version to the name.
9217 soname_spec='${libname}${release}${shared_ext}$major'
9218 ;;
9219
9220aix4* | aix5*)
9221 version_type=linux
9222 need_lib_prefix=no
9223 need_version=no
9224 hardcode_into_libs=yes
9225 if test "$host_cpu" = ia64; then
9226 # AIX 5 supports IA64
9227 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9228 shlibpath_var=LD_LIBRARY_PATH
9229 else
9230 # With GCC up to 2.95.x, collect2 would create an import file
9231 # for dependence libraries. The import file would start with
9232 # the line `#! .'. This would cause the generated library to
9233 # depend on `.', always an invalid library. This was fixed in
9234 # development snapshots of GCC prior to 3.0.
9235 case $host_os in
9236 aix4 | aix4.[01] | aix4.[01].*)
9237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9238 echo ' yes '
9239 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9240 :
9241 else
9242 can_build_shared=no
9243 fi
9244 ;;
9245 esac
9246 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9247 # soname into executable. Probably we can add versioning support to
9248 # collect2, so additional links can be useful in future.
9249 if test "$aix_use_runtimelinking" = yes; then
9250 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9251 # instead of lib<name>.a to let people know that these are not
9252 # typical AIX shared libraries.
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9254 else
9255 # We preserve .a as extension for shared libraries through AIX4.2
9256 # and later when we are not doing run time linking.
9257 library_names_spec='${libname}${release}.a $libname.a'
9258 soname_spec='${libname}${release}${shared_ext}$major'
9259 fi
9260 shlibpath_var=LIBPATH
9261 fi
9262 ;;
9263
9264amigaos*)
9265 library_names_spec='$libname.ixlibrary $libname.a'
9266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9267 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'
9268 ;;
9269
9270beos*)
9271 library_names_spec='${libname}${shared_ext}'
9272 dynamic_linker="$host_os ld.so"
9273 shlibpath_var=LIBRARY_PATH
9274 ;;
9275
9276bsdi[45]*)
9277 version_type=linux
9278 need_version=no
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280 soname_spec='${libname}${release}${shared_ext}$major'
9281 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9282 shlibpath_var=LD_LIBRARY_PATH
9283 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9284 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9285 # the default ld.so.conf also contains /usr/contrib/lib and
9286 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9287 # libtool to hard-code these into programs
9288 ;;
9289
9290cygwin* | mingw* | pw32*)
9291 version_type=windows
9292 shrext_cmds=".dll"
9293 need_version=no
9294 need_lib_prefix=no
9295
9296 case $GCC,$host_os in
9297 yes,cygwin* | yes,mingw* | yes,pw32*)
9298 library_names_spec='$libname.dll.a'
9299 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9300 postinstall_cmds='base_file=`basename \${file}`~
9301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9302 dldir=$destdir/`dirname \$dlpath`~
9303 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009304 $install_prog $dir/$dlname \$dldir/$dlname~
9305 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9307 dlpath=$dir/\$dldll~
9308 $rm \$dlpath'
9309 shlibpath_overrides_runpath=yes
9310
9311 case $host_os in
9312 cygwin*)
9313 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9314 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9315 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9316 ;;
9317 mingw*)
9318 # MinGW DLLs use traditional 'lib' prefix
9319 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9320 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9321 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9322 # It is most probably a Windows format PATH printed by
9323 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9324 # path with ; separators, and with drive letters. We can handle the
9325 # drive letters (cygwin fileutils understands them), so leave them,
9326 # especially as we might pass files found there to a mingw objdump,
9327 # which wouldn't understand a cygwinified path. Ahh.
9328 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9329 else
9330 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9331 fi
9332 ;;
9333 pw32*)
9334 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009335 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 +00009336 ;;
9337 esac
9338 ;;
9339
9340 *)
9341 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9342 ;;
9343 esac
9344 dynamic_linker='Win32 ld.exe'
9345 # FIXME: first we should search . and the directory the executable is in
9346 shlibpath_var=PATH
9347 ;;
9348
9349darwin* | rhapsody*)
9350 dynamic_linker="$host_os dyld"
9351 version_type=darwin
9352 need_lib_prefix=no
9353 need_version=no
9354 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9355 soname_spec='${libname}${release}${major}$shared_ext'
9356 shlibpath_overrides_runpath=yes
9357 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009358 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009359 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9360 if test "$GCC" = yes; then
9361 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"`
9362 else
9363 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9364 fi
9365 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9366 ;;
9367
9368dgux*)
9369 version_type=linux
9370 need_lib_prefix=no
9371 need_version=no
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 shlibpath_var=LD_LIBRARY_PATH
9375 ;;
9376
9377freebsd1*)
9378 dynamic_linker=no
9379 ;;
9380
9381kfreebsd*-gnu)
9382 version_type=linux
9383 need_lib_prefix=no
9384 need_version=no
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9386 soname_spec='${libname}${release}${shared_ext}$major'
9387 shlibpath_var=LD_LIBRARY_PATH
9388 shlibpath_overrides_runpath=no
9389 hardcode_into_libs=yes
9390 dynamic_linker='GNU ld.so'
9391 ;;
9392
Reid Spencera773bd52006-08-04 18:18:08 +00009393freebsd* | dragonfly*)
9394 # DragonFly does not have aout. When/if they implement a new
9395 # versioning mechanism, adjust this.
9396 if test -x /usr/bin/objformat; then
9397 objformat=`/usr/bin/objformat`
9398 else
9399 case $host_os in
9400 freebsd[123]*) objformat=aout ;;
9401 *) objformat=elf ;;
9402 esac
9403 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009404 version_type=freebsd-$objformat
9405 case $version_type in
9406 freebsd-elf*)
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9408 need_version=no
9409 need_lib_prefix=no
9410 ;;
9411 freebsd-*)
9412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9413 need_version=yes
9414 ;;
9415 esac
9416 shlibpath_var=LD_LIBRARY_PATH
9417 case $host_os in
9418 freebsd2*)
9419 shlibpath_overrides_runpath=yes
9420 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009421 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009422 shlibpath_overrides_runpath=yes
9423 hardcode_into_libs=yes
9424 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009425 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9426 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009427 shlibpath_overrides_runpath=no
9428 hardcode_into_libs=yes
9429 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009430 freebsd*) # from 4.6 on
9431 shlibpath_overrides_runpath=yes
9432 hardcode_into_libs=yes
9433 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009434 esac
9435 ;;
9436
9437gnu*)
9438 version_type=linux
9439 need_lib_prefix=no
9440 need_version=no
9441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9442 soname_spec='${libname}${release}${shared_ext}$major'
9443 shlibpath_var=LD_LIBRARY_PATH
9444 hardcode_into_libs=yes
9445 ;;
9446
9447hpux9* | hpux10* | hpux11*)
9448 # Give a soname corresponding to the major version so that dld.sl refuses to
9449 # link against other versions.
9450 version_type=sunos
9451 need_lib_prefix=no
9452 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009453 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009454 ia64*)
9455 shrext_cmds='.so'
9456 hardcode_into_libs=yes
9457 dynamic_linker="$host_os dld.so"
9458 shlibpath_var=LD_LIBRARY_PATH
9459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461 soname_spec='${libname}${release}${shared_ext}$major'
9462 if test "X$HPUX_IA64_MODE" = X32; then
9463 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9464 else
9465 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9466 fi
9467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9468 ;;
9469 hppa*64*)
9470 shrext_cmds='.sl'
9471 hardcode_into_libs=yes
9472 dynamic_linker="$host_os dld.sl"
9473 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9476 soname_spec='${libname}${release}${shared_ext}$major'
9477 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9479 ;;
9480 *)
9481 shrext_cmds='.sl'
9482 dynamic_linker="$host_os dld.sl"
9483 shlibpath_var=SHLIB_PATH
9484 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486 soname_spec='${libname}${release}${shared_ext}$major'
9487 ;;
9488 esac
9489 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9490 postinstall_cmds='chmod 555 $lib'
9491 ;;
9492
Reid Spencera773bd52006-08-04 18:18:08 +00009493interix3*)
9494 version_type=linux
9495 need_lib_prefix=no
9496 need_version=no
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9498 soname_spec='${libname}${release}${shared_ext}$major'
9499 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9500 shlibpath_var=LD_LIBRARY_PATH
9501 shlibpath_overrides_runpath=no
9502 hardcode_into_libs=yes
9503 ;;
9504
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009505irix5* | irix6* | nonstopux*)
9506 case $host_os in
9507 nonstopux*) version_type=nonstopux ;;
9508 *)
9509 if test "$lt_cv_prog_gnu_ld" = yes; then
9510 version_type=linux
9511 else
9512 version_type=irix
9513 fi ;;
9514 esac
9515 need_lib_prefix=no
9516 need_version=no
9517 soname_spec='${libname}${release}${shared_ext}$major'
9518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9519 case $host_os in
9520 irix5* | nonstopux*)
9521 libsuff= shlibsuff=
9522 ;;
9523 *)
9524 case $LD in # libtool.m4 will add one of these switches to LD
9525 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9526 libsuff= shlibsuff= libmagic=32-bit;;
9527 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9528 libsuff=32 shlibsuff=N32 libmagic=N32;;
9529 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9530 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9531 *) libsuff= shlibsuff= libmagic=never-match;;
9532 esac
9533 ;;
9534 esac
9535 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9536 shlibpath_overrides_runpath=no
9537 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9538 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9539 hardcode_into_libs=yes
9540 ;;
9541
9542# No shared lib support for Linux oldld, aout, or coff.
9543linux*oldld* | linux*aout* | linux*coff*)
9544 dynamic_linker=no
9545 ;;
9546
9547# This must be Linux ELF.
9548linux*)
9549 version_type=linux
9550 need_lib_prefix=no
9551 need_version=no
9552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553 soname_spec='${libname}${release}${shared_ext}$major'
9554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9555 shlibpath_var=LD_LIBRARY_PATH
9556 shlibpath_overrides_runpath=no
9557 # This implies no fast_install, which is unacceptable.
9558 # Some rework will be needed to allow for fast_install
9559 # before this can be enabled.
9560 hardcode_into_libs=yes
9561
9562 # Append ld.so.conf contents to the search path
9563 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009564 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 +00009565 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9566 fi
9567
9568 # We used to test for /lib/ld.so.1 and disable shared libraries on
9569 # powerpc, because MkLinux only supported shared libraries with the
9570 # GNU dynamic linker. Since this was broken with cross compilers,
9571 # most powerpc-linux boxes support dynamic linking these days and
9572 # people can always --disable-shared, the test was removed, and we
9573 # assume the GNU/Linux dynamic linker is in use.
9574 dynamic_linker='GNU/Linux ld.so'
9575 ;;
9576
9577knetbsd*-gnu)
9578 version_type=linux
9579 need_lib_prefix=no
9580 need_version=no
9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9582 soname_spec='${libname}${release}${shared_ext}$major'
9583 shlibpath_var=LD_LIBRARY_PATH
9584 shlibpath_overrides_runpath=no
9585 hardcode_into_libs=yes
9586 dynamic_linker='GNU ld.so'
9587 ;;
9588
9589netbsd*)
9590 version_type=sunos
9591 need_lib_prefix=no
9592 need_version=no
9593 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9596 dynamic_linker='NetBSD (a.out) ld.so'
9597 else
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9599 soname_spec='${libname}${release}${shared_ext}$major'
9600 dynamic_linker='NetBSD ld.elf_so'
9601 fi
9602 shlibpath_var=LD_LIBRARY_PATH
9603 shlibpath_overrides_runpath=yes
9604 hardcode_into_libs=yes
9605 ;;
9606
9607newsos6)
9608 version_type=linux
9609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9610 shlibpath_var=LD_LIBRARY_PATH
9611 shlibpath_overrides_runpath=yes
9612 ;;
9613
9614nto-qnx*)
9615 version_type=linux
9616 need_lib_prefix=no
9617 need_version=no
9618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9619 soname_spec='${libname}${release}${shared_ext}$major'
9620 shlibpath_var=LD_LIBRARY_PATH
9621 shlibpath_overrides_runpath=yes
9622 ;;
9623
9624openbsd*)
9625 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009626 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009627 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009628 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9629 case $host_os in
9630 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9631 *) need_version=no ;;
9632 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9635 shlibpath_var=LD_LIBRARY_PATH
9636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9637 case $host_os in
9638 openbsd2.[89] | openbsd2.[89].*)
9639 shlibpath_overrides_runpath=no
9640 ;;
9641 *)
9642 shlibpath_overrides_runpath=yes
9643 ;;
9644 esac
9645 else
9646 shlibpath_overrides_runpath=yes
9647 fi
9648 ;;
9649
9650os2*)
9651 libname_spec='$name'
9652 shrext_cmds=".dll"
9653 need_lib_prefix=no
9654 library_names_spec='$libname${shared_ext} $libname.a'
9655 dynamic_linker='OS/2 ld.exe'
9656 shlibpath_var=LIBPATH
9657 ;;
9658
9659osf3* | osf4* | osf5*)
9660 version_type=osf
9661 need_lib_prefix=no
9662 need_version=no
9663 soname_spec='${libname}${release}${shared_ext}$major'
9664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9665 shlibpath_var=LD_LIBRARY_PATH
9666 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9667 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9668 ;;
9669
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009670solaris*)
9671 version_type=linux
9672 need_lib_prefix=no
9673 need_version=no
9674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675 soname_spec='${libname}${release}${shared_ext}$major'
9676 shlibpath_var=LD_LIBRARY_PATH
9677 shlibpath_overrides_runpath=yes
9678 hardcode_into_libs=yes
9679 # ldd complains unless libraries are executable
9680 postinstall_cmds='chmod +x $lib'
9681 ;;
9682
9683sunos4*)
9684 version_type=sunos
9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9686 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9687 shlibpath_var=LD_LIBRARY_PATH
9688 shlibpath_overrides_runpath=yes
9689 if test "$with_gnu_ld" = yes; then
9690 need_lib_prefix=no
9691 fi
9692 need_version=yes
9693 ;;
9694
Reid Spencera773bd52006-08-04 18:18:08 +00009695sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009696 version_type=linux
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 shlibpath_var=LD_LIBRARY_PATH
9700 case $host_vendor in
9701 sni)
9702 shlibpath_overrides_runpath=no
9703 need_lib_prefix=no
9704 export_dynamic_flag_spec='${wl}-Blargedynsym'
9705 runpath_var=LD_RUN_PATH
9706 ;;
9707 siemens)
9708 need_lib_prefix=no
9709 ;;
9710 motorola)
9711 need_lib_prefix=no
9712 need_version=no
9713 shlibpath_overrides_runpath=no
9714 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9715 ;;
9716 esac
9717 ;;
9718
9719sysv4*MP*)
9720 if test -d /usr/nec ;then
9721 version_type=linux
9722 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9723 soname_spec='$libname${shared_ext}.$major'
9724 shlibpath_var=LD_LIBRARY_PATH
9725 fi
9726 ;;
9727
Reid Spencera773bd52006-08-04 18:18:08 +00009728sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9729 version_type=freebsd-elf
9730 need_lib_prefix=no
9731 need_version=no
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9733 soname_spec='${libname}${release}${shared_ext}$major'
9734 shlibpath_var=LD_LIBRARY_PATH
9735 hardcode_into_libs=yes
9736 if test "$with_gnu_ld" = yes; then
9737 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9738 shlibpath_overrides_runpath=no
9739 else
9740 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9741 shlibpath_overrides_runpath=yes
9742 case $host_os in
9743 sco3.2v5*)
9744 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9745 ;;
9746 esac
9747 fi
9748 sys_lib_dlsearch_path_spec='/usr/lib'
9749 ;;
9750
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009751uts4*)
9752 version_type=linux
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9754 soname_spec='${libname}${release}${shared_ext}$major'
9755 shlibpath_var=LD_LIBRARY_PATH
9756 ;;
9757
9758*)
9759 dynamic_linker=no
9760 ;;
9761esac
Reid Spencera773bd52006-08-04 18:18:08 +00009762{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9763echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009764test "$dynamic_linker" = no && can_build_shared=no
9765
Reid Spencera773bd52006-08-04 18:18:08 +00009766variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9767if test "$GCC" = yes; then
9768 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9769fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009770
Reid Spencera773bd52006-08-04 18:18:08 +00009771
9772{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9773echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009774if test "${libltdl_cv_shlibext+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9776else
9777
9778module=yes
9779eval libltdl_cv_shlibext=$shrext_cmds
9780
9781fi
Reid Spencera773bd52006-08-04 18:18:08 +00009782{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9783echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009784if test -n "$libltdl_cv_shlibext"; then
9785
9786cat >>confdefs.h <<_ACEOF
9787#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9788_ACEOF
9789
9790fi
9791
9792
Reid Spencera773bd52006-08-04 18:18:08 +00009793{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9794echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009795if test "${libltdl_cv_shlibpath_var+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797else
9798 libltdl_cv_shlibpath_var="$shlibpath_var"
9799fi
Reid Spencera773bd52006-08-04 18:18:08 +00009800{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9801echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009802if test -n "$libltdl_cv_shlibpath_var"; then
9803
9804cat >>confdefs.h <<_ACEOF
9805#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9806_ACEOF
9807
9808fi
9809
9810
Reid Spencera773bd52006-08-04 18:18:08 +00009811{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9812echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009813if test "${libltdl_cv_sys_search_path+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815else
9816 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9817fi
Reid Spencera773bd52006-08-04 18:18:08 +00009818{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9819echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009820if test -n "$libltdl_cv_sys_search_path"; then
9821 sys_search_path=
9822 for dir in $libltdl_cv_sys_search_path; do
9823 if test -z "$sys_search_path"; then
9824 sys_search_path="$dir"
9825 else
9826 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9827 fi
9828 done
9829
9830cat >>confdefs.h <<_ACEOF
9831#define LTDL_SYSSEARCHPATH "$sys_search_path"
9832_ACEOF
9833
9834fi
9835
Reid Spencera773bd52006-08-04 18:18:08 +00009836{ echo "$as_me:$LINENO: checking for objdir" >&5
9837echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838if test "${libltdl_cv_objdir+set}" = set; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9840else
9841 libltdl_cv_objdir="$objdir"
9842 if test -n "$objdir"; then
9843 :
9844 else
9845 rm -f .libs 2>/dev/null
9846 mkdir .libs 2>/dev/null
9847 if test -d .libs; then
9848 libltdl_cv_objdir=.libs
9849 else
9850 # MS-DOS does not allow filenames that begin with a dot.
9851 libltdl_cv_objdir=_libs
9852 fi
9853 rmdir .libs 2>/dev/null
9854 fi
9855
9856fi
Reid Spencera773bd52006-08-04 18:18:08 +00009857{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9858echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009859
9860cat >>confdefs.h <<_ACEOF
9861#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9862_ACEOF
9863
9864
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009865
9866
9867
9868
9869# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009870{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9871echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009872if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874else
9875
9876# These are sane defaults that work on at least a few old systems.
9877# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9878
9879# Character class describing NM global symbol codes.
9880symcode='[BCDEGRST]'
9881
9882# Regexp to match symbols that can be accessed directly from C.
9883sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9884
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009885# Transform an extracted symbol line into a proper C declaration
9886lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9887
9888# Transform an extracted symbol line into symbol name and symbol address
9889lt_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'"
9890
9891# Define system-specific variables.
9892case $host_os in
9893aix*)
9894 symcode='[BCDT]'
9895 ;;
9896cygwin* | mingw* | pw32*)
9897 symcode='[ABCDGISTW]'
9898 ;;
9899hpux*) # Its linker distinguishes data from code symbols
9900 if test "$host_cpu" = ia64; then
9901 symcode='[ABCDEGRST]'
9902 fi
9903 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9904 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'"
9905 ;;
9906linux*)
9907 if test "$host_cpu" = ia64; then
9908 symcode='[ABCDGIRSTW]'
9909 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9910 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'"
9911 fi
9912 ;;
9913irix* | nonstopux*)
9914 symcode='[BCDEGRST]'
9915 ;;
9916osf*)
9917 symcode='[BCDEGQRST]'
9918 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009919solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009920 symcode='[BDRT]'
9921 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009922sco3.2v5*)
9923 symcode='[DT]'
9924 ;;
9925sysv4.2uw2*)
9926 symcode='[DT]'
9927 ;;
9928sysv5* | sco5v6* | unixware* | OpenUNIX*)
9929 symcode='[ABDT]'
9930 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009931sysv4)
9932 symcode='[DFNSTU]'
9933 ;;
9934esac
9935
9936# Handle CRLF in mingw tool chain
9937opt_cr=
9938case $build_os in
9939mingw*)
9940 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9941 ;;
9942esac
9943
9944# If we're using GNU nm, then use its standard symbol codes.
9945case `$NM -V 2>&1` in
9946*GNU* | *'with BFD'*)
9947 symcode='[ABCDGIRSTW]' ;;
9948esac
9949
9950# Try without a prefix undercore, then with it.
9951for ac_symprfx in "" "_"; do
9952
Reid Spencera773bd52006-08-04 18:18:08 +00009953 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9954 symxfrm="\\1 $ac_symprfx\\2 \\2"
9955
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009956 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009957 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 +00009958
9959 # Check to see that the pipe works correctly.
9960 pipe_works=no
9961
9962 rm -f conftest*
9963 cat > conftest.$ac_ext <<EOF
9964#ifdef __cplusplus
9965extern "C" {
9966#endif
9967char nm_test_var;
9968void nm_test_func(){}
9969#ifdef __cplusplus
9970}
9971#endif
9972int main(){nm_test_var='a';nm_test_func();return(0);}
9973EOF
9974
9975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9976 (eval $ac_compile) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; then
9980 # Now try to grab the symbols.
9981 nlist=conftest.nm
9982 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9983 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9984 ac_status=$?
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } && test -s "$nlist"; then
9987 # Try sorting and uniquifying the output.
9988 if sort "$nlist" | uniq > "$nlist"T; then
9989 mv -f "$nlist"T "$nlist"
9990 else
9991 rm -f "$nlist"T
9992 fi
9993
9994 # Make sure that we snagged all the symbols we need.
9995 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9996 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9997 cat <<EOF > conftest.$ac_ext
9998#ifdef __cplusplus
9999extern "C" {
10000#endif
10001
10002EOF
10003 # Now generate the symbol file.
10004 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10005
10006 cat <<EOF >> conftest.$ac_ext
10007#if defined (__STDC__) && __STDC__
10008# define lt_ptr_t void *
10009#else
10010# define lt_ptr_t char *
10011# define const
10012#endif
10013
10014/* The mapping between symbol names and symbols. */
10015const struct {
10016 const char *name;
10017 lt_ptr_t address;
10018}
10019lt_preloaded_symbols[] =
10020{
10021EOF
10022 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10023 cat <<\EOF >> conftest.$ac_ext
10024 {0, (lt_ptr_t) 0}
10025};
10026
10027#ifdef __cplusplus
10028}
10029#endif
10030EOF
10031 # Now try linking the two files.
10032 mv conftest.$ac_objext conftstm.$ac_objext
10033 lt_save_LIBS="$LIBS"
10034 lt_save_CFLAGS="$CFLAGS"
10035 LIBS="conftstm.$ac_objext"
10036 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10038 (eval $ac_link) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10042 pipe_works=yes
10043 fi
10044 LIBS="$lt_save_LIBS"
10045 CFLAGS="$lt_save_CFLAGS"
10046 else
10047 echo "cannot find nm_test_func in $nlist" >&5
10048 fi
10049 else
10050 echo "cannot find nm_test_var in $nlist" >&5
10051 fi
10052 else
10053 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10054 fi
10055 else
10056 echo "$progname: failed program was:" >&5
10057 cat conftest.$ac_ext >&5
10058 fi
10059 rm -f conftest* conftst*
10060
10061 # Do not use the global_symbol_pipe unless it works.
10062 if test "$pipe_works" = yes; then
10063 break
10064 else
10065 lt_cv_sys_global_symbol_pipe=
10066 fi
10067done
10068
10069fi
10070
10071if test -z "$lt_cv_sys_global_symbol_pipe"; then
10072 lt_cv_sys_global_symbol_to_cdecl=
10073fi
10074if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010075 { echo "$as_me:$LINENO: result: failed" >&5
10076echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010077else
Reid Spencera773bd52006-08-04 18:18:08 +000010078 { echo "$as_me:$LINENO: result: ok" >&5
10079echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010080fi
10081
10082
Reid Spencera773bd52006-08-04 18:18:08 +000010083{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10084echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010085if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10087else
10088 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10089 libltdl_cv_preloaded_symbols=yes
10090 else
10091 libltdl_cv_preloaded_symbols=no
10092 fi
10093
10094fi
Reid Spencera773bd52006-08-04 18:18:08 +000010095{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10096echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010097if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10098
10099cat >>confdefs.h <<\_ACEOF
10100#define HAVE_PRELOADED_SYMBOLS 1
10101_ACEOF
10102
10103fi
10104
10105LIBADD_DL=
10106
10107ac_ext=c
10108ac_cpp='$CPP $CPPFLAGS'
10109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10111ac_compiler_gnu=$ac_cv_c_compiler_gnu
10112
10113
Reid Spencera773bd52006-08-04 18:18:08 +000010114{ echo "$as_me:$LINENO: checking for shl_load" >&5
10115echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010116if test "${ac_cv_func_shl_load+set}" = set; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118else
10119 cat >conftest.$ac_ext <<_ACEOF
10120/* confdefs.h. */
10121_ACEOF
10122cat confdefs.h >>conftest.$ac_ext
10123cat >>conftest.$ac_ext <<_ACEOF
10124/* end confdefs.h. */
10125/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10127#define shl_load innocuous_shl_load
10128
10129/* System header to define __stub macros and hopefully few prototypes,
10130 which can conflict with char shl_load (); below.
10131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10132 <limits.h> exists even on freestanding compilers. */
10133
10134#ifdef __STDC__
10135# include <limits.h>
10136#else
10137# include <assert.h>
10138#endif
10139
10140#undef shl_load
10141
Reid Spencera773bd52006-08-04 18:18:08 +000010142/* Override any GCC internal prototype to avoid an error.
10143 Use char because int might match the return type of a GCC
10144 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010145#ifdef __cplusplus
10146extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010147#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010148char shl_load ();
10149/* The GNU C library defines this for functions which it implements
10150 to always fail with ENOSYS. Some functions are actually named
10151 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010152#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010153choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010154#endif
10155
10156int
10157main ()
10158{
Reid Spencera773bd52006-08-04 18:18:08 +000010159return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010160 ;
10161 return 0;
10162}
10163_ACEOF
10164rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010165if { (ac_try="$ac_link"
10166case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10169esac
10170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010172 ac_status=$?
10173 grep -v '^ *+' conftest.er1 >conftest.err
10174 rm -f conftest.er1
10175 cat conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010177 (exit $ac_status); } &&
10178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10179 { (case "(($ac_try" in
10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181 *) ac_try_echo=$ac_try;;
10182esac
10183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10184 (eval "$ac_try") 2>&5
10185 ac_status=$?
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }; } &&
10188 { ac_try='test -s conftest$ac_exeext'
10189 { (case "(($ac_try" in
10190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191 *) ac_try_echo=$ac_try;;
10192esac
10193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_try") 2>&5
10195 ac_status=$?
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010198 ac_cv_func_shl_load=yes
10199else
10200 echo "$as_me: failed program was:" >&5
10201sed 's/^/| /' conftest.$ac_ext >&5
10202
Reid Spencera773bd52006-08-04 18:18:08 +000010203 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010204fi
Reid Spencera773bd52006-08-04 18:18:08 +000010205
Bill Wendlingebcceee2009-04-18 11:20:33 +000010206rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010207 conftest$ac_exeext conftest.$ac_ext
10208fi
Reid Spencera773bd52006-08-04 18:18:08 +000010209{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10210echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010211if test $ac_cv_func_shl_load = yes; then
10212
10213cat >>confdefs.h <<\_ACEOF
10214#define HAVE_SHL_LOAD 1
10215_ACEOF
10216
10217else
Reid Spencera773bd52006-08-04 18:18:08 +000010218 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10219echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010220if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10222else
10223 ac_check_lib_save_LIBS=$LIBS
10224LIBS="-ldld $LIBS"
10225cat >conftest.$ac_ext <<_ACEOF
10226/* confdefs.h. */
10227_ACEOF
10228cat confdefs.h >>conftest.$ac_ext
10229cat >>conftest.$ac_ext <<_ACEOF
10230/* end confdefs.h. */
10231
Reid Spencera773bd52006-08-04 18:18:08 +000010232/* Override any GCC internal prototype to avoid an error.
10233 Use char because int might match the return type of a GCC
10234 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010235#ifdef __cplusplus
10236extern "C"
10237#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010238char shl_load ();
10239int
10240main ()
10241{
Reid Spencera773bd52006-08-04 18:18:08 +000010242return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010243 ;
10244 return 0;
10245}
10246_ACEOF
10247rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010248if { (ac_try="$ac_link"
10249case "(($ac_try" in
10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251 *) ac_try_echo=$ac_try;;
10252esac
10253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010255 ac_status=$?
10256 grep -v '^ *+' conftest.er1 >conftest.err
10257 rm -f conftest.er1
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010260 (exit $ac_status); } &&
10261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10262 { (case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10265esac
10266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_try") 2>&5
10268 ac_status=$?
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; } &&
10271 { ac_try='test -s conftest$ac_exeext'
10272 { (case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10275esac
10276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_try") 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010281 ac_cv_lib_dld_shl_load=yes
10282else
10283 echo "$as_me: failed program was:" >&5
10284sed 's/^/| /' conftest.$ac_ext >&5
10285
Reid Spencera773bd52006-08-04 18:18:08 +000010286 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010287fi
Reid Spencera773bd52006-08-04 18:18:08 +000010288
Bill Wendlingebcceee2009-04-18 11:20:33 +000010289rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010290 conftest$ac_exeext conftest.$ac_ext
10291LIBS=$ac_check_lib_save_LIBS
10292fi
Reid Spencera773bd52006-08-04 18:18:08 +000010293{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10294echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010295if test $ac_cv_lib_dld_shl_load = yes; then
10296
10297cat >>confdefs.h <<\_ACEOF
10298#define HAVE_SHL_LOAD 1
10299_ACEOF
10300
10301 LIBADD_DL="$LIBADD_DL -ldld"
10302else
Reid Spencera773bd52006-08-04 18:18:08 +000010303 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10304echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010305if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10307else
10308 ac_check_lib_save_LIBS=$LIBS
10309LIBS="-ldl $LIBS"
10310cat >conftest.$ac_ext <<_ACEOF
10311/* confdefs.h. */
10312_ACEOF
10313cat confdefs.h >>conftest.$ac_ext
10314cat >>conftest.$ac_ext <<_ACEOF
10315/* end confdefs.h. */
10316
Reid Spencera773bd52006-08-04 18:18:08 +000010317/* Override any GCC internal prototype to avoid an error.
10318 Use char because int might match the return type of a GCC
10319 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010320#ifdef __cplusplus
10321extern "C"
10322#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010323char dlopen ();
10324int
10325main ()
10326{
Reid Spencera773bd52006-08-04 18:18:08 +000010327return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010328 ;
10329 return 0;
10330}
10331_ACEOF
10332rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010333if { (ac_try="$ac_link"
10334case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10337esac
10338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010340 ac_status=$?
10341 grep -v '^ *+' conftest.er1 >conftest.err
10342 rm -f conftest.er1
10343 cat conftest.err >&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010345 (exit $ac_status); } &&
10346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10347 { (case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10350esac
10351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352 (eval "$ac_try") 2>&5
10353 ac_status=$?
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); }; } &&
10356 { ac_try='test -s conftest$ac_exeext'
10357 { (case "(($ac_try" in
10358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10359 *) ac_try_echo=$ac_try;;
10360esac
10361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10362 (eval "$ac_try") 2>&5
10363 ac_status=$?
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010366 ac_cv_lib_dl_dlopen=yes
10367else
10368 echo "$as_me: failed program was:" >&5
10369sed 's/^/| /' conftest.$ac_ext >&5
10370
Reid Spencera773bd52006-08-04 18:18:08 +000010371 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010372fi
Reid Spencera773bd52006-08-04 18:18:08 +000010373
Bill Wendlingebcceee2009-04-18 11:20:33 +000010374rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010375 conftest$ac_exeext conftest.$ac_ext
10376LIBS=$ac_check_lib_save_LIBS
10377fi
Reid Spencera773bd52006-08-04 18:18:08 +000010378{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10379echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010380if test $ac_cv_lib_dl_dlopen = yes; then
10381
10382cat >>confdefs.h <<\_ACEOF
10383#define HAVE_LIBDL 1
10384_ACEOF
10385
10386 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10387else
10388 cat >conftest.$ac_ext <<_ACEOF
10389/* confdefs.h. */
10390_ACEOF
10391cat confdefs.h >>conftest.$ac_ext
10392cat >>conftest.$ac_ext <<_ACEOF
10393/* end confdefs.h. */
10394#if HAVE_DLFCN_H
10395# include <dlfcn.h>
10396#endif
10397
10398int
10399main ()
10400{
10401dlopen(0, 0);
10402 ;
10403 return 0;
10404}
10405_ACEOF
10406rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010407if { (ac_try="$ac_link"
10408case "(($ac_try" in
10409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410 *) ac_try_echo=$ac_try;;
10411esac
10412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10413 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010414 ac_status=$?
10415 grep -v '^ *+' conftest.er1 >conftest.err
10416 rm -f conftest.er1
10417 cat conftest.err >&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010419 (exit $ac_status); } &&
10420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10421 { (case "(($ac_try" in
10422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423 *) ac_try_echo=$ac_try;;
10424esac
10425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426 (eval "$ac_try") 2>&5
10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; } &&
10430 { ac_try='test -s conftest$ac_exeext'
10431 { (case "(($ac_try" in
10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10434esac
10435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_try") 2>&5
10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010440
10441cat >>confdefs.h <<\_ACEOF
10442#define HAVE_LIBDL 1
10443_ACEOF
10444 libltdl_cv_func_dlopen="yes"
10445else
10446 echo "$as_me: failed program was:" >&5
10447sed 's/^/| /' conftest.$ac_ext >&5
10448
Reid Spencera773bd52006-08-04 18:18:08 +000010449 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10450echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10453else
10454 ac_check_lib_save_LIBS=$LIBS
10455LIBS="-lsvld $LIBS"
10456cat >conftest.$ac_ext <<_ACEOF
10457/* confdefs.h. */
10458_ACEOF
10459cat confdefs.h >>conftest.$ac_ext
10460cat >>conftest.$ac_ext <<_ACEOF
10461/* end confdefs.h. */
10462
Reid Spencera773bd52006-08-04 18:18:08 +000010463/* Override any GCC internal prototype to avoid an error.
10464 Use char because int might match the return type of a GCC
10465 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010466#ifdef __cplusplus
10467extern "C"
10468#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010469char dlopen ();
10470int
10471main ()
10472{
Reid Spencera773bd52006-08-04 18:18:08 +000010473return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010474 ;
10475 return 0;
10476}
10477_ACEOF
10478rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010479if { (ac_try="$ac_link"
10480case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483esac
10484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010486 ac_status=$?
10487 grep -v '^ *+' conftest.er1 >conftest.err
10488 rm -f conftest.er1
10489 cat conftest.err >&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010491 (exit $ac_status); } &&
10492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10493 { (case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10496esac
10497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_try") 2>&5
10499 ac_status=$?
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; } &&
10502 { ac_try='test -s conftest$ac_exeext'
10503 { (case "(($ac_try" in
10504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505 *) ac_try_echo=$ac_try;;
10506esac
10507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10508 (eval "$ac_try") 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010512 ac_cv_lib_svld_dlopen=yes
10513else
10514 echo "$as_me: failed program was:" >&5
10515sed 's/^/| /' conftest.$ac_ext >&5
10516
Reid Spencera773bd52006-08-04 18:18:08 +000010517 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010518fi
Reid Spencera773bd52006-08-04 18:18:08 +000010519
Bill Wendlingebcceee2009-04-18 11:20:33 +000010520rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010521 conftest$ac_exeext conftest.$ac_ext
10522LIBS=$ac_check_lib_save_LIBS
10523fi
Reid Spencera773bd52006-08-04 18:18:08 +000010524{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10525echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010526if test $ac_cv_lib_svld_dlopen = yes; then
10527
10528cat >>confdefs.h <<\_ACEOF
10529#define HAVE_LIBDL 1
10530_ACEOF
10531
10532 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10533else
Reid Spencera773bd52006-08-04 18:18:08 +000010534 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10535echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010536if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538else
10539 ac_check_lib_save_LIBS=$LIBS
10540LIBS="-ldld $LIBS"
10541cat >conftest.$ac_ext <<_ACEOF
10542/* confdefs.h. */
10543_ACEOF
10544cat confdefs.h >>conftest.$ac_ext
10545cat >>conftest.$ac_ext <<_ACEOF
10546/* end confdefs.h. */
10547
Reid Spencera773bd52006-08-04 18:18:08 +000010548/* Override any GCC internal prototype to avoid an error.
10549 Use char because int might match the return type of a GCC
10550 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551#ifdef __cplusplus
10552extern "C"
10553#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010554char dld_link ();
10555int
10556main ()
10557{
Reid Spencera773bd52006-08-04 18:18:08 +000010558return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010559 ;
10560 return 0;
10561}
10562_ACEOF
10563rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010564if { (ac_try="$ac_link"
10565case "(($ac_try" in
10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10568esac
10569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10570 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010571 ac_status=$?
10572 grep -v '^ *+' conftest.er1 >conftest.err
10573 rm -f conftest.er1
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010576 (exit $ac_status); } &&
10577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10578 { (case "(($ac_try" in
10579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10580 *) ac_try_echo=$ac_try;;
10581esac
10582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10583 (eval "$ac_try") 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; } &&
10587 { ac_try='test -s conftest$ac_exeext'
10588 { (case "(($ac_try" in
10589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590 *) ac_try_echo=$ac_try;;
10591esac
10592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10593 (eval "$ac_try") 2>&5
10594 ac_status=$?
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010597 ac_cv_lib_dld_dld_link=yes
10598else
10599 echo "$as_me: failed program was:" >&5
10600sed 's/^/| /' conftest.$ac_ext >&5
10601
Reid Spencera773bd52006-08-04 18:18:08 +000010602 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010603fi
Reid Spencera773bd52006-08-04 18:18:08 +000010604
Bill Wendlingebcceee2009-04-18 11:20:33 +000010605rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010606 conftest$ac_exeext conftest.$ac_ext
10607LIBS=$ac_check_lib_save_LIBS
10608fi
Reid Spencera773bd52006-08-04 18:18:08 +000010609{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10610echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010611if test $ac_cv_lib_dld_dld_link = yes; then
10612
10613cat >>confdefs.h <<\_ACEOF
10614#define HAVE_DLD 1
10615_ACEOF
10616
10617 LIBADD_DL="$LIBADD_DL -ldld"
10618else
Reid Spencera773bd52006-08-04 18:18:08 +000010619 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10620echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010621if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10623else
10624 cat >conftest.$ac_ext <<_ACEOF
10625/* confdefs.h. */
10626_ACEOF
10627cat confdefs.h >>conftest.$ac_ext
10628cat >>conftest.$ac_ext <<_ACEOF
10629/* end confdefs.h. */
10630/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10632#define _dyld_func_lookup innocuous__dyld_func_lookup
10633
10634/* System header to define __stub macros and hopefully few prototypes,
10635 which can conflict with char _dyld_func_lookup (); below.
10636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10637 <limits.h> exists even on freestanding compilers. */
10638
10639#ifdef __STDC__
10640# include <limits.h>
10641#else
10642# include <assert.h>
10643#endif
10644
10645#undef _dyld_func_lookup
10646
Reid Spencera773bd52006-08-04 18:18:08 +000010647/* Override any GCC internal prototype to avoid an error.
10648 Use char because int might match the return type of a GCC
10649 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010650#ifdef __cplusplus
10651extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010652#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010653char _dyld_func_lookup ();
10654/* The GNU C library defines this for functions which it implements
10655 to always fail with ENOSYS. Some functions are actually named
10656 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010657#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010658choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010659#endif
10660
10661int
10662main ()
10663{
Reid Spencera773bd52006-08-04 18:18:08 +000010664return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010665 ;
10666 return 0;
10667}
10668_ACEOF
10669rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010670if { (ac_try="$ac_link"
10671case "(($ac_try" in
10672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673 *) ac_try_echo=$ac_try;;
10674esac
10675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010677 ac_status=$?
10678 grep -v '^ *+' conftest.er1 >conftest.err
10679 rm -f conftest.er1
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010682 (exit $ac_status); } &&
10683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687esac
10688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
10690 ac_status=$?
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; } &&
10693 { ac_try='test -s conftest$ac_exeext'
10694 { (case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10697esac
10698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_try") 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010703 ac_cv_func__dyld_func_lookup=yes
10704else
10705 echo "$as_me: failed program was:" >&5
10706sed 's/^/| /' conftest.$ac_ext >&5
10707
Reid Spencera773bd52006-08-04 18:18:08 +000010708 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010709fi
Reid Spencera773bd52006-08-04 18:18:08 +000010710
Bill Wendlingebcceee2009-04-18 11:20:33 +000010711rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010712 conftest$ac_exeext conftest.$ac_ext
10713fi
Reid Spencera773bd52006-08-04 18:18:08 +000010714{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10715echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010716if test $ac_cv_func__dyld_func_lookup = yes; then
10717
10718cat >>confdefs.h <<\_ACEOF
10719#define HAVE_DYLD 1
10720_ACEOF
10721
10722fi
10723
10724
10725fi
10726
10727
10728fi
10729
10730
10731fi
Reid Spencera773bd52006-08-04 18:18:08 +000010732
Bill Wendlingebcceee2009-04-18 11:20:33 +000010733rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010734 conftest$ac_exeext conftest.$ac_ext
10735
10736fi
10737
10738
10739fi
10740
10741
10742fi
10743
10744
10745if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10746then
10747 lt_save_LIBS="$LIBS"
10748 LIBS="$LIBS $LIBADD_DL"
10749
10750for ac_func in dlerror
10751do
10752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010753{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10755if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010756 echo $ECHO_N "(cached) $ECHO_C" >&6
10757else
10758 cat >conftest.$ac_ext <<_ACEOF
10759/* confdefs.h. */
10760_ACEOF
10761cat confdefs.h >>conftest.$ac_ext
10762cat >>conftest.$ac_ext <<_ACEOF
10763/* end confdefs.h. */
10764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10766#define $ac_func innocuous_$ac_func
10767
10768/* System header to define __stub macros and hopefully few prototypes,
10769 which can conflict with char $ac_func (); below.
10770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10771 <limits.h> exists even on freestanding compilers. */
10772
10773#ifdef __STDC__
10774# include <limits.h>
10775#else
10776# include <assert.h>
10777#endif
10778
10779#undef $ac_func
10780
Reid Spencera773bd52006-08-04 18:18:08 +000010781/* Override any GCC internal prototype to avoid an error.
10782 Use char because int might match the return type of a GCC
10783 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010784#ifdef __cplusplus
10785extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010786#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010787char $ac_func ();
10788/* The GNU C library defines this for functions which it implements
10789 to always fail with ENOSYS. Some functions are actually named
10790 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010791#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010792choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010793#endif
10794
10795int
10796main ()
10797{
Reid Spencera773bd52006-08-04 18:18:08 +000010798return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010799 ;
10800 return 0;
10801}
10802_ACEOF
10803rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010804if { (ac_try="$ac_link"
10805case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10808esac
10809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010811 ac_status=$?
10812 grep -v '^ *+' conftest.er1 >conftest.err
10813 rm -f conftest.er1
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010816 (exit $ac_status); } &&
10817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10818 { (case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10821esac
10822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_try") 2>&5
10824 ac_status=$?
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; } &&
10827 { ac_try='test -s conftest$ac_exeext'
10828 { (case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10831esac
10832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_try") 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010837 eval "$as_ac_var=yes"
10838else
10839 echo "$as_me: failed program was:" >&5
10840sed 's/^/| /' conftest.$ac_ext >&5
10841
Reid Spencera773bd52006-08-04 18:18:08 +000010842 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010843fi
Reid Spencera773bd52006-08-04 18:18:08 +000010844
Bill Wendlingebcceee2009-04-18 11:20:33 +000010845rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010846 conftest$ac_exeext conftest.$ac_ext
10847fi
Reid Spencera773bd52006-08-04 18:18:08 +000010848ac_res=`eval echo '${'$as_ac_var'}'`
10849 { echo "$as_me:$LINENO: result: $ac_res" >&5
10850echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010851if test `eval echo '${'$as_ac_var'}'` = yes; then
10852 cat >>confdefs.h <<_ACEOF
10853#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10854_ACEOF
10855
10856fi
10857done
10858
10859 LIBS="$lt_save_LIBS"
10860fi
10861ac_ext=c
10862ac_cpp='$CPP $CPPFLAGS'
10863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10865ac_compiler_gnu=$ac_cv_c_compiler_gnu
10866
10867
10868
Reid Spencera773bd52006-08-04 18:18:08 +000010869{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10870echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010871if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873else
10874 ac_cv_sys_symbol_underscore=no
10875 cat > conftest.$ac_ext <<EOF
10876void nm_test_func(){}
10877int main(){nm_test_func;return 0;}
10878EOF
10879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10880 (eval $ac_compile) 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; then
10884 # Now try to grab the symbols.
10885 ac_nlist=conftest.nm
10886 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10887 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } && test -s "$ac_nlist"; then
10891 # See whether the symbols have a leading underscore.
10892 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10893 ac_cv_sys_symbol_underscore=yes
10894 else
10895 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10896 :
10897 else
10898 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10899 fi
10900 fi
10901 else
10902 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10903 fi
10904 else
10905 echo "configure: failed program was:" >&5
10906 cat conftest.c >&5
10907 fi
10908 rm -rf conftest*
10909
10910fi
Reid Spencera773bd52006-08-04 18:18:08 +000010911{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10912echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010913
10914
10915if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10916 if test x"$libltdl_cv_func_dlopen" = xyes ||
10917 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010918 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10919echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010920if test "${libltdl_cv_need_uscore+set}" = set; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10922else
10923 libltdl_cv_need_uscore=unknown
10924 save_LIBS="$LIBS"
10925 LIBS="$LIBS $LIBADD_DL"
10926 if test "$cross_compiling" = yes; then :
10927 libltdl_cv_need_uscore=cross
10928else
10929 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10930 lt_status=$lt_dlunknown
10931 cat > conftest.$ac_ext <<EOF
Shantonu Sen7e836972009-08-11 13:39:52 +000010932#line 10932 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010933#include "confdefs.h"
10934
10935#if HAVE_DLFCN_H
10936#include <dlfcn.h>
10937#endif
10938
10939#include <stdio.h>
10940
10941#ifdef RTLD_GLOBAL
10942# define LT_DLGLOBAL RTLD_GLOBAL
10943#else
10944# ifdef DL_GLOBAL
10945# define LT_DLGLOBAL DL_GLOBAL
10946# else
10947# define LT_DLGLOBAL 0
10948# endif
10949#endif
10950
10951/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10952 find out it does not work in some platform. */
10953#ifndef LT_DLLAZY_OR_NOW
10954# ifdef RTLD_LAZY
10955# define LT_DLLAZY_OR_NOW RTLD_LAZY
10956# else
10957# ifdef DL_LAZY
10958# define LT_DLLAZY_OR_NOW DL_LAZY
10959# else
10960# ifdef RTLD_NOW
10961# define LT_DLLAZY_OR_NOW RTLD_NOW
10962# else
10963# ifdef DL_NOW
10964# define LT_DLLAZY_OR_NOW DL_NOW
10965# else
10966# define LT_DLLAZY_OR_NOW 0
10967# endif
10968# endif
10969# endif
10970# endif
10971#endif
10972
10973#ifdef __cplusplus
10974extern "C" void exit (int);
10975#endif
10976
10977void fnord() { int i=42;}
10978int main ()
10979{
10980 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10981 int status = $lt_dlunknown;
10982
10983 if (self)
10984 {
10985 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10986 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10987 /* dlclose (self); */
10988 }
Reid Spencera773bd52006-08-04 18:18:08 +000010989 else
10990 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010991
10992 exit (status);
10993}
10994EOF
10995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10996 (eval $ac_link) 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011000 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011001 lt_status=$?
11002 case x$lt_status in
11003 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11004 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011005 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011006 esac
11007 else :
11008 # compilation failed
11009
11010 fi
11011fi
11012rm -fr conftest*
11013
11014 LIBS="$save_LIBS"
11015
11016fi
Reid Spencera773bd52006-08-04 18:18:08 +000011017{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11018echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011019 fi
11020fi
11021
11022if test x"$libltdl_cv_need_uscore" = xyes; then
11023
11024cat >>confdefs.h <<\_ACEOF
11025#define NEED_USCORE 1
11026_ACEOF
11027
11028fi
11029
11030
Reid Spencera773bd52006-08-04 18:18:08 +000011031{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11032echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011033if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11035else
11036 # PORTME does your system automatically load deplibs for dlopen?
11037 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11038 # For now, we just catch OSes we know something about -- in the
11039 # future, we'll try test this programmatically.
11040 libltdl_cv_sys_dlopen_deplibs=unknown
11041 case "$host_os" in
11042 aix3*|aix4.1.*|aix4.2.*)
11043 # Unknown whether this is true for these versions of AIX, but
11044 # we want this `case' here to explicitly catch those versions.
11045 libltdl_cv_sys_dlopen_deplibs=unknown
11046 ;;
11047 aix[45]*)
11048 libltdl_cv_sys_dlopen_deplibs=yes
11049 ;;
11050 darwin*)
11051 # Assuming the user has installed a libdl from somewhere, this is true
11052 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11053 libltdl_cv_sys_dlopen_deplibs=yes
11054 ;;
11055 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11056 # GNU and its variants, using gnu ld.so (Glibc)
11057 libltdl_cv_sys_dlopen_deplibs=yes
11058 ;;
11059 hpux10*|hpux11*)
11060 libltdl_cv_sys_dlopen_deplibs=yes
11061 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011062 interix*)
11063 libltdl_cv_sys_dlopen_deplibs=yes
11064 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011065 irix[12345]*|irix6.[01]*)
11066 # Catch all versions of IRIX before 6.2, and indicate that we don't
11067 # know how it worked for any of those versions.
11068 libltdl_cv_sys_dlopen_deplibs=unknown
11069 ;;
11070 irix*)
11071 # The case above catches anything before 6.2, and it's known that
11072 # at 6.2 and later dlopen does load deplibs.
11073 libltdl_cv_sys_dlopen_deplibs=yes
11074 ;;
11075 netbsd*)
11076 libltdl_cv_sys_dlopen_deplibs=yes
11077 ;;
11078 openbsd*)
11079 libltdl_cv_sys_dlopen_deplibs=yes
11080 ;;
11081 osf[1234]*)
11082 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11083 # it did *not* use an RPATH in a shared library to find objects the
11084 # library depends on, so we explictly say `no'.
11085 libltdl_cv_sys_dlopen_deplibs=no
11086 ;;
11087 osf5.0|osf5.0a|osf5.1)
11088 # dlopen *does* load deplibs and with the right loader patch applied
11089 # it even uses RPATH in a shared library to search for shared objects
11090 # that the library depends on, but there's no easy way to know if that
11091 # patch is installed. Since this is the case, all we can really
11092 # say is unknown -- it depends on the patch being installed. If
11093 # it is, this changes to `yes'. Without it, it would be `no'.
11094 libltdl_cv_sys_dlopen_deplibs=unknown
11095 ;;
11096 osf*)
11097 # the two cases above should catch all versions of osf <= 5.1. Read
11098 # the comments above for what we know about them.
11099 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11100 # is used to find them so we can finally say `yes'.
11101 libltdl_cv_sys_dlopen_deplibs=yes
11102 ;;
11103 solaris*)
11104 libltdl_cv_sys_dlopen_deplibs=yes
11105 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11107 libltdl_cv_sys_dlopen_deplibs=yes
11108 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011109 esac
11110
11111fi
Reid Spencera773bd52006-08-04 18:18:08 +000011112{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11113echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011114if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11115
11116cat >>confdefs.h <<\_ACEOF
11117#define LTDL_DLOPEN_DEPLIBS 1
11118_ACEOF
11119
11120fi
11121
11122
11123for ac_header in argz.h
11124do
11125as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131fi
Reid Spencera773bd52006-08-04 18:18:08 +000011132ac_res=`eval echo '${'$as_ac_Header'}'`
11133 { echo "$as_me:$LINENO: result: $ac_res" >&5
11134echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011135else
11136 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011137{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11138echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011139cat >conftest.$ac_ext <<_ACEOF
11140/* confdefs.h. */
11141_ACEOF
11142cat confdefs.h >>conftest.$ac_ext
11143cat >>conftest.$ac_ext <<_ACEOF
11144/* end confdefs.h. */
11145$ac_includes_default
11146#include <$ac_header>
11147_ACEOF
11148rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011149if { (ac_try="$ac_compile"
11150case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11153esac
11154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011156 ac_status=$?
11157 grep -v '^ *+' conftest.er1 >conftest.err
11158 rm -f conftest.er1
11159 cat conftest.err >&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011161 (exit $ac_status); } &&
11162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11163 { (case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11166esac
11167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_try") 2>&5
11169 ac_status=$?
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; } &&
11172 { ac_try='test -s conftest.$ac_objext'
11173 { (case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11176esac
11177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_try") 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011182 ac_header_compiler=yes
11183else
11184 echo "$as_me: failed program was:" >&5
11185sed 's/^/| /' conftest.$ac_ext >&5
11186
Reid Spencera773bd52006-08-04 18:18:08 +000011187 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011188fi
Reid Spencera773bd52006-08-04 18:18:08 +000011189
11190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11191{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11192echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011193
11194# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011195{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11196echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011197cat >conftest.$ac_ext <<_ACEOF
11198/* confdefs.h. */
11199_ACEOF
11200cat confdefs.h >>conftest.$ac_ext
11201cat >>conftest.$ac_ext <<_ACEOF
11202/* end confdefs.h. */
11203#include <$ac_header>
11204_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011205if { (ac_try="$ac_cpp conftest.$ac_ext"
11206case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011212 ac_status=$?
11213 grep -v '^ *+' conftest.er1 >conftest.err
11214 rm -f conftest.er1
11215 cat conftest.err >&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011217 (exit $ac_status); } >/dev/null; then
11218 if test -s conftest.err; then
11219 ac_cpp_err=$ac_c_preproc_warn_flag
11220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11221 else
11222 ac_cpp_err=
11223 fi
11224else
11225 ac_cpp_err=yes
11226fi
11227if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011228 ac_header_preproc=yes
11229else
11230 echo "$as_me: failed program was:" >&5
11231sed 's/^/| /' conftest.$ac_ext >&5
11232
11233 ac_header_preproc=no
11234fi
Reid Spencera773bd52006-08-04 18:18:08 +000011235
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011236rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011237{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11238echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011239
11240# So? What about this header?
11241case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11242 yes:no: )
11243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11244echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11246echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11247 ac_header_preproc=yes
11248 ;;
11249 no:yes:* )
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11251echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11253echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11255echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11257echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11259echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11261echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011262 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011263## ----------------------------------- ##
11264## Report this to llvmbugs@cs.uiuc.edu ##
11265## ----------------------------------- ##
11266_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011267 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011268 ;;
11269esac
Reid Spencera773bd52006-08-04 18:18:08 +000011270{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274else
11275 eval "$as_ac_Header=\$ac_header_preproc"
11276fi
Reid Spencera773bd52006-08-04 18:18:08 +000011277ac_res=`eval echo '${'$as_ac_Header'}'`
11278 { echo "$as_me:$LINENO: result: $ac_res" >&5
11279echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011280
11281fi
11282if test `eval echo '${'$as_ac_Header'}'` = yes; then
11283 cat >>confdefs.h <<_ACEOF
11284#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11285_ACEOF
11286
11287fi
11288
11289done
11290
11291
Reid Spencera773bd52006-08-04 18:18:08 +000011292{ echo "$as_me:$LINENO: checking for error_t" >&5
11293echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011294if test "${ac_cv_type_error_t+set}" = set; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11296else
11297 cat >conftest.$ac_ext <<_ACEOF
11298/* confdefs.h. */
11299_ACEOF
11300cat confdefs.h >>conftest.$ac_ext
11301cat >>conftest.$ac_ext <<_ACEOF
11302/* end confdefs.h. */
11303#if HAVE_ARGZ_H
11304# include <argz.h>
11305#endif
11306
Reid Spencera773bd52006-08-04 18:18:08 +000011307typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011308int
11309main ()
11310{
Reid Spencera773bd52006-08-04 18:18:08 +000011311if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011312 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011313if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011314 return 0;
11315 ;
11316 return 0;
11317}
11318_ACEOF
11319rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011320if { (ac_try="$ac_compile"
11321case "(($ac_try" in
11322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11323 *) ac_try_echo=$ac_try;;
11324esac
11325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11326 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011327 ac_status=$?
11328 grep -v '^ *+' conftest.er1 >conftest.err
11329 rm -f conftest.er1
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011332 (exit $ac_status); } &&
11333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11334 { (case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11337esac
11338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_try") 2>&5
11340 ac_status=$?
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; } &&
11343 { ac_try='test -s conftest.$ac_objext'
11344 { (case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11347esac
11348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_try") 2>&5
11350 ac_status=$?
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011353 ac_cv_type_error_t=yes
11354else
11355 echo "$as_me: failed program was:" >&5
11356sed 's/^/| /' conftest.$ac_ext >&5
11357
Reid Spencera773bd52006-08-04 18:18:08 +000011358 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011359fi
Reid Spencera773bd52006-08-04 18:18:08 +000011360
11361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011362fi
Reid Spencera773bd52006-08-04 18:18:08 +000011363{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11364echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011365if test $ac_cv_type_error_t = yes; then
11366
11367cat >>confdefs.h <<_ACEOF
11368#define HAVE_ERROR_T 1
11369_ACEOF
11370
11371
11372else
11373
11374cat >>confdefs.h <<\_ACEOF
11375#define error_t int
11376_ACEOF
11377
11378fi
11379
11380
11381
11382
11383
11384
11385
11386for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11387do
11388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011389{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11391if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011392 echo $ECHO_N "(cached) $ECHO_C" >&6
11393else
11394 cat >conftest.$ac_ext <<_ACEOF
11395/* confdefs.h. */
11396_ACEOF
11397cat confdefs.h >>conftest.$ac_ext
11398cat >>conftest.$ac_ext <<_ACEOF
11399/* end confdefs.h. */
11400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11402#define $ac_func innocuous_$ac_func
11403
11404/* System header to define __stub macros and hopefully few prototypes,
11405 which can conflict with char $ac_func (); below.
11406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11407 <limits.h> exists even on freestanding compilers. */
11408
11409#ifdef __STDC__
11410# include <limits.h>
11411#else
11412# include <assert.h>
11413#endif
11414
11415#undef $ac_func
11416
Reid Spencera773bd52006-08-04 18:18:08 +000011417/* Override any GCC internal prototype to avoid an error.
11418 Use char because int might match the return type of a GCC
11419 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011420#ifdef __cplusplus
11421extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011422#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011423char $ac_func ();
11424/* The GNU C library defines this for functions which it implements
11425 to always fail with ENOSYS. Some functions are actually named
11426 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011427#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011428choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011429#endif
11430
11431int
11432main ()
11433{
Reid Spencera773bd52006-08-04 18:18:08 +000011434return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011435 ;
11436 return 0;
11437}
11438_ACEOF
11439rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011440if { (ac_try="$ac_link"
11441case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11444esac
11445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011447 ac_status=$?
11448 grep -v '^ *+' conftest.er1 >conftest.err
11449 rm -f conftest.er1
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011452 (exit $ac_status); } &&
11453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11454 { (case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11457esac
11458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_try") 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; } &&
11463 { ac_try='test -s conftest$ac_exeext'
11464 { (case "(($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_try") 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011473 eval "$as_ac_var=yes"
11474else
11475 echo "$as_me: failed program was:" >&5
11476sed 's/^/| /' conftest.$ac_ext >&5
11477
Reid Spencera773bd52006-08-04 18:18:08 +000011478 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011479fi
Reid Spencera773bd52006-08-04 18:18:08 +000011480
Bill Wendlingebcceee2009-04-18 11:20:33 +000011481rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011482 conftest$ac_exeext conftest.$ac_ext
11483fi
Reid Spencera773bd52006-08-04 18:18:08 +000011484ac_res=`eval echo '${'$as_ac_var'}'`
11485 { echo "$as_me:$LINENO: result: $ac_res" >&5
11486echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011487if test `eval echo '${'$as_ac_var'}'` = yes; then
11488 cat >>confdefs.h <<_ACEOF
11489#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11490_ACEOF
11491
11492fi
11493done
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11523 stdio.h unistd.h
11524do
11525as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011530 echo $ECHO_N "(cached) $ECHO_C" >&6
11531fi
Reid Spencera773bd52006-08-04 18:18:08 +000011532ac_res=`eval echo '${'$as_ac_Header'}'`
11533 { echo "$as_me:$LINENO: result: $ac_res" >&5
11534echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011535else
11536 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011537{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11538echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011539cat >conftest.$ac_ext <<_ACEOF
11540/* confdefs.h. */
11541_ACEOF
11542cat confdefs.h >>conftest.$ac_ext
11543cat >>conftest.$ac_ext <<_ACEOF
11544/* end confdefs.h. */
11545$ac_includes_default
11546#include <$ac_header>
11547_ACEOF
11548rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011549if { (ac_try="$ac_compile"
11550case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11553esac
11554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011561 (exit $ac_status); } &&
11562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11563 { (case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11566esac
11567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_try") 2>&5
11569 ac_status=$?
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; } &&
11572 { ac_try='test -s conftest.$ac_objext'
11573 { (case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11576esac
11577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578 (eval "$ac_try") 2>&5
11579 ac_status=$?
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011582 ac_header_compiler=yes
11583else
11584 echo "$as_me: failed program was:" >&5
11585sed 's/^/| /' conftest.$ac_ext >&5
11586
Reid Spencera773bd52006-08-04 18:18:08 +000011587 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011588fi
Reid Spencera773bd52006-08-04 18:18:08 +000011589
11590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11591{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11592echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011593
11594# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011595{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11596echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011597cat >conftest.$ac_ext <<_ACEOF
11598/* confdefs.h. */
11599_ACEOF
11600cat confdefs.h >>conftest.$ac_ext
11601cat >>conftest.$ac_ext <<_ACEOF
11602/* end confdefs.h. */
11603#include <$ac_header>
11604_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011605if { (ac_try="$ac_cpp conftest.$ac_ext"
11606case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11609esac
11610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011612 ac_status=$?
11613 grep -v '^ *+' conftest.er1 >conftest.err
11614 rm -f conftest.er1
11615 cat conftest.err >&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011617 (exit $ac_status); } >/dev/null; then
11618 if test -s conftest.err; then
11619 ac_cpp_err=$ac_c_preproc_warn_flag
11620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11621 else
11622 ac_cpp_err=
11623 fi
11624else
11625 ac_cpp_err=yes
11626fi
11627if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011628 ac_header_preproc=yes
11629else
11630 echo "$as_me: failed program was:" >&5
11631sed 's/^/| /' conftest.$ac_ext >&5
11632
11633 ac_header_preproc=no
11634fi
Reid Spencera773bd52006-08-04 18:18:08 +000011635
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011636rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011637{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11638echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011639
11640# So? What about this header?
11641case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11642 yes:no: )
11643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11644echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11646echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11647 ac_header_preproc=yes
11648 ;;
11649 no:yes:* )
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11651echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11653echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11655echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11657echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11659echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11661echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011662 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011663## ----------------------------------- ##
11664## Report this to llvmbugs@cs.uiuc.edu ##
11665## ----------------------------------- ##
11666_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011667 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011668 ;;
11669esac
Reid Spencera773bd52006-08-04 18:18:08 +000011670{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11672if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011673 echo $ECHO_N "(cached) $ECHO_C" >&6
11674else
11675 eval "$as_ac_Header=\$ac_header_preproc"
11676fi
Reid Spencera773bd52006-08-04 18:18:08 +000011677ac_res=`eval echo '${'$as_ac_Header'}'`
11678 { echo "$as_me:$LINENO: result: $ac_res" >&5
11679echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011680
11681fi
11682if test `eval echo '${'$as_ac_Header'}'` = yes; then
11683 cat >>confdefs.h <<_ACEOF
11684#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11685_ACEOF
11686
11687fi
11688
11689done
11690
11691
11692
11693
11694
11695for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11696do
11697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011698if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011702 echo $ECHO_N "(cached) $ECHO_C" >&6
11703fi
Reid Spencera773bd52006-08-04 18:18:08 +000011704ac_res=`eval echo '${'$as_ac_Header'}'`
11705 { echo "$as_me:$LINENO: result: $ac_res" >&5
11706echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011707else
11708 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011709{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11710echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011711cat >conftest.$ac_ext <<_ACEOF
11712/* confdefs.h. */
11713_ACEOF
11714cat confdefs.h >>conftest.$ac_ext
11715cat >>conftest.$ac_ext <<_ACEOF
11716/* end confdefs.h. */
11717$ac_includes_default
11718#include <$ac_header>
11719_ACEOF
11720rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011721if { (ac_try="$ac_compile"
11722case "(($ac_try" in
11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724 *) ac_try_echo=$ac_try;;
11725esac
11726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011728 ac_status=$?
11729 grep -v '^ *+' conftest.er1 >conftest.err
11730 rm -f conftest.er1
11731 cat conftest.err >&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011733 (exit $ac_status); } &&
11734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11735 { (case "(($ac_try" in
11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737 *) ac_try_echo=$ac_try;;
11738esac
11739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740 (eval "$ac_try") 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; } &&
11744 { ac_try='test -s conftest.$ac_objext'
11745 { (case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11748esac
11749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_try") 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011754 ac_header_compiler=yes
11755else
11756 echo "$as_me: failed program was:" >&5
11757sed 's/^/| /' conftest.$ac_ext >&5
11758
Reid Spencera773bd52006-08-04 18:18:08 +000011759 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011760fi
Reid Spencera773bd52006-08-04 18:18:08 +000011761
11762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11764echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011765
11766# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011767{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11768echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011769cat >conftest.$ac_ext <<_ACEOF
11770/* confdefs.h. */
11771_ACEOF
11772cat confdefs.h >>conftest.$ac_ext
11773cat >>conftest.$ac_ext <<_ACEOF
11774/* end confdefs.h. */
11775#include <$ac_header>
11776_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011777if { (ac_try="$ac_cpp conftest.$ac_ext"
11778case "(($ac_try" in
11779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780 *) ac_try_echo=$ac_try;;
11781esac
11782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011784 ac_status=$?
11785 grep -v '^ *+' conftest.er1 >conftest.err
11786 rm -f conftest.er1
11787 cat conftest.err >&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011789 (exit $ac_status); } >/dev/null; then
11790 if test -s conftest.err; then
11791 ac_cpp_err=$ac_c_preproc_warn_flag
11792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11793 else
11794 ac_cpp_err=
11795 fi
11796else
11797 ac_cpp_err=yes
11798fi
11799if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011800 ac_header_preproc=yes
11801else
11802 echo "$as_me: failed program was:" >&5
11803sed 's/^/| /' conftest.$ac_ext >&5
11804
11805 ac_header_preproc=no
11806fi
Reid Spencera773bd52006-08-04 18:18:08 +000011807
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011808rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011809{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11810echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011811
11812# So? What about this header?
11813case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11814 yes:no: )
11815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11816echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11818echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11819 ac_header_preproc=yes
11820 ;;
11821 no:yes:* )
11822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11823echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11825echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11827echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11829echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11831echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11833echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011834 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011835## ----------------------------------- ##
11836## Report this to llvmbugs@cs.uiuc.edu ##
11837## ----------------------------------- ##
11838_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011839 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011840 ;;
11841esac
Reid Spencera773bd52006-08-04 18:18:08 +000011842{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011845 echo $ECHO_N "(cached) $ECHO_C" >&6
11846else
11847 eval "$as_ac_Header=\$ac_header_preproc"
11848fi
Reid Spencera773bd52006-08-04 18:18:08 +000011849ac_res=`eval echo '${'$as_ac_Header'}'`
11850 { echo "$as_me:$LINENO: result: $ac_res" >&5
11851echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011852
11853fi
11854if test `eval echo '${'$as_ac_Header'}'` = yes; then
11855 cat >>confdefs.h <<_ACEOF
11856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11857_ACEOF
11858
11859fi
11860
11861done
11862
11863
11864
11865for ac_header in string.h strings.h
11866do
11867as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011872 echo $ECHO_N "(cached) $ECHO_C" >&6
11873fi
Reid Spencera773bd52006-08-04 18:18:08 +000011874ac_res=`eval echo '${'$as_ac_Header'}'`
11875 { echo "$as_me:$LINENO: result: $ac_res" >&5
11876echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011877else
11878 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011879{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11880echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011881cat >conftest.$ac_ext <<_ACEOF
11882/* confdefs.h. */
11883_ACEOF
11884cat confdefs.h >>conftest.$ac_ext
11885cat >>conftest.$ac_ext <<_ACEOF
11886/* end confdefs.h. */
11887$ac_includes_default
11888#include <$ac_header>
11889_ACEOF
11890rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011891if { (ac_try="$ac_compile"
11892case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11895esac
11896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011898 ac_status=$?
11899 grep -v '^ *+' conftest.er1 >conftest.err
11900 rm -f conftest.er1
11901 cat conftest.err >&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011903 (exit $ac_status); } &&
11904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11905 { (case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11908esac
11909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_try") 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } &&
11914 { ac_try='test -s conftest.$ac_objext'
11915 { (case "(($ac_try" in
11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11918esac
11919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11920 (eval "$ac_try") 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011924 ac_header_compiler=yes
11925else
11926 echo "$as_me: failed program was:" >&5
11927sed 's/^/| /' conftest.$ac_ext >&5
11928
Reid Spencera773bd52006-08-04 18:18:08 +000011929 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011930fi
Reid Spencera773bd52006-08-04 18:18:08 +000011931
11932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11933{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11934echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011935
11936# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011937{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11938echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011939cat >conftest.$ac_ext <<_ACEOF
11940/* confdefs.h. */
11941_ACEOF
11942cat confdefs.h >>conftest.$ac_ext
11943cat >>conftest.$ac_ext <<_ACEOF
11944/* end confdefs.h. */
11945#include <$ac_header>
11946_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011947if { (ac_try="$ac_cpp conftest.$ac_ext"
11948case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11951esac
11952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011954 ac_status=$?
11955 grep -v '^ *+' conftest.er1 >conftest.err
11956 rm -f conftest.er1
11957 cat conftest.err >&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011959 (exit $ac_status); } >/dev/null; then
11960 if test -s conftest.err; then
11961 ac_cpp_err=$ac_c_preproc_warn_flag
11962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11963 else
11964 ac_cpp_err=
11965 fi
11966else
11967 ac_cpp_err=yes
11968fi
11969if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011970 ac_header_preproc=yes
11971else
11972 echo "$as_me: failed program was:" >&5
11973sed 's/^/| /' conftest.$ac_ext >&5
11974
11975 ac_header_preproc=no
11976fi
Reid Spencera773bd52006-08-04 18:18:08 +000011977
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011978rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011979{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11980echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011981
11982# So? What about this header?
11983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11984 yes:no: )
11985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11986echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11988echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11989 ac_header_preproc=yes
11990 ;;
11991 no:yes:* )
11992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11993echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11995echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11997echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11999echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12001echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12003echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000012004 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012005## ----------------------------------- ##
12006## Report this to llvmbugs@cs.uiuc.edu ##
12007## ----------------------------------- ##
12008_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000012009 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012010 ;;
12011esac
Reid Spencera773bd52006-08-04 18:18:08 +000012012{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012015 echo $ECHO_N "(cached) $ECHO_C" >&6
12016else
12017 eval "$as_ac_Header=\$ac_header_preproc"
12018fi
Reid Spencera773bd52006-08-04 18:18:08 +000012019ac_res=`eval echo '${'$as_ac_Header'}'`
12020 { echo "$as_me:$LINENO: result: $ac_res" >&5
12021echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012022
12023fi
12024if test `eval echo '${'$as_ac_Header'}'` = yes; then
12025 cat >>confdefs.h <<_ACEOF
12026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12027_ACEOF
12028 break
12029fi
12030
12031done
12032
12033
12034
12035
12036for ac_func in strchr index
12037do
12038as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012039{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12040echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12041if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012042 echo $ECHO_N "(cached) $ECHO_C" >&6
12043else
12044 cat >conftest.$ac_ext <<_ACEOF
12045/* confdefs.h. */
12046_ACEOF
12047cat confdefs.h >>conftest.$ac_ext
12048cat >>conftest.$ac_ext <<_ACEOF
12049/* end confdefs.h. */
12050/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12052#define $ac_func innocuous_$ac_func
12053
12054/* System header to define __stub macros and hopefully few prototypes,
12055 which can conflict with char $ac_func (); below.
12056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12057 <limits.h> exists even on freestanding compilers. */
12058
12059#ifdef __STDC__
12060# include <limits.h>
12061#else
12062# include <assert.h>
12063#endif
12064
12065#undef $ac_func
12066
Reid Spencera773bd52006-08-04 18:18:08 +000012067/* Override any GCC internal prototype to avoid an error.
12068 Use char because int might match the return type of a GCC
12069 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012070#ifdef __cplusplus
12071extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012072#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012073char $ac_func ();
12074/* The GNU C library defines this for functions which it implements
12075 to always fail with ENOSYS. Some functions are actually named
12076 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012077#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012078choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012079#endif
12080
12081int
12082main ()
12083{
Reid Spencera773bd52006-08-04 18:18:08 +000012084return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012085 ;
12086 return 0;
12087}
12088_ACEOF
12089rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012090if { (ac_try="$ac_link"
12091case "(($ac_try" in
12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093 *) ac_try_echo=$ac_try;;
12094esac
12095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12096 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012097 ac_status=$?
12098 grep -v '^ *+' conftest.er1 >conftest.err
12099 rm -f conftest.er1
12100 cat conftest.err >&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012102 (exit $ac_status); } &&
12103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12104 { (case "(($ac_try" in
12105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106 *) ac_try_echo=$ac_try;;
12107esac
12108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109 (eval "$ac_try") 2>&5
12110 ac_status=$?
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; } &&
12113 { ac_try='test -s conftest$ac_exeext'
12114 { (case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12117esac
12118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_try") 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012123 eval "$as_ac_var=yes"
12124else
12125 echo "$as_me: failed program was:" >&5
12126sed 's/^/| /' conftest.$ac_ext >&5
12127
Reid Spencera773bd52006-08-04 18:18:08 +000012128 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012129fi
Reid Spencera773bd52006-08-04 18:18:08 +000012130
Bill Wendlingebcceee2009-04-18 11:20:33 +000012131rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012132 conftest$ac_exeext conftest.$ac_ext
12133fi
Reid Spencera773bd52006-08-04 18:18:08 +000012134ac_res=`eval echo '${'$as_ac_var'}'`
12135 { echo "$as_me:$LINENO: result: $ac_res" >&5
12136echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012137if test `eval echo '${'$as_ac_var'}'` = yes; then
12138 cat >>confdefs.h <<_ACEOF
12139#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12140_ACEOF
12141 break
12142fi
12143done
12144
12145
12146
12147for ac_func in strrchr rindex
12148do
12149as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012150{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12151echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12152if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154else
12155 cat >conftest.$ac_ext <<_ACEOF
12156/* confdefs.h. */
12157_ACEOF
12158cat confdefs.h >>conftest.$ac_ext
12159cat >>conftest.$ac_ext <<_ACEOF
12160/* end confdefs.h. */
12161/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12163#define $ac_func innocuous_$ac_func
12164
12165/* System header to define __stub macros and hopefully few prototypes,
12166 which can conflict with char $ac_func (); below.
12167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12168 <limits.h> exists even on freestanding compilers. */
12169
12170#ifdef __STDC__
12171# include <limits.h>
12172#else
12173# include <assert.h>
12174#endif
12175
12176#undef $ac_func
12177
Reid Spencera773bd52006-08-04 18:18:08 +000012178/* Override any GCC internal prototype to avoid an error.
12179 Use char because int might match the return type of a GCC
12180 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012181#ifdef __cplusplus
12182extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012183#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012184char $ac_func ();
12185/* The GNU C library defines this for functions which it implements
12186 to always fail with ENOSYS. Some functions are actually named
12187 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012188#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012189choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012190#endif
12191
12192int
12193main ()
12194{
Reid Spencera773bd52006-08-04 18:18:08 +000012195return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012196 ;
12197 return 0;
12198}
12199_ACEOF
12200rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012201if { (ac_try="$ac_link"
12202case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12205esac
12206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012213 (exit $ac_status); } &&
12214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12215 { (case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12218esac
12219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_try") 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; } &&
12224 { ac_try='test -s conftest$ac_exeext'
12225 { (case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12228esac
12229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_try") 2>&5
12231 ac_status=$?
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012234 eval "$as_ac_var=yes"
12235else
12236 echo "$as_me: failed program was:" >&5
12237sed 's/^/| /' conftest.$ac_ext >&5
12238
Reid Spencera773bd52006-08-04 18:18:08 +000012239 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012240fi
Reid Spencera773bd52006-08-04 18:18:08 +000012241
Bill Wendlingebcceee2009-04-18 11:20:33 +000012242rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012243 conftest$ac_exeext conftest.$ac_ext
12244fi
Reid Spencera773bd52006-08-04 18:18:08 +000012245ac_res=`eval echo '${'$as_ac_var'}'`
12246 { echo "$as_me:$LINENO: result: $ac_res" >&5
12247echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012248if test `eval echo '${'$as_ac_var'}'` = yes; then
12249 cat >>confdefs.h <<_ACEOF
12250#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12251_ACEOF
12252 break
12253fi
12254done
12255
12256
12257
12258for ac_func in memcpy bcopy
12259do
12260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012261{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12263if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012264 echo $ECHO_N "(cached) $ECHO_C" >&6
12265else
12266 cat >conftest.$ac_ext <<_ACEOF
12267/* confdefs.h. */
12268_ACEOF
12269cat confdefs.h >>conftest.$ac_ext
12270cat >>conftest.$ac_ext <<_ACEOF
12271/* end confdefs.h. */
12272/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12274#define $ac_func innocuous_$ac_func
12275
12276/* System header to define __stub macros and hopefully few prototypes,
12277 which can conflict with char $ac_func (); below.
12278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12279 <limits.h> exists even on freestanding compilers. */
12280
12281#ifdef __STDC__
12282# include <limits.h>
12283#else
12284# include <assert.h>
12285#endif
12286
12287#undef $ac_func
12288
Reid Spencera773bd52006-08-04 18:18:08 +000012289/* Override any GCC internal prototype to avoid an error.
12290 Use char because int might match the return type of a GCC
12291 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012292#ifdef __cplusplus
12293extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012294#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012295char $ac_func ();
12296/* The GNU C library defines this for functions which it implements
12297 to always fail with ENOSYS. Some functions are actually named
12298 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012299#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012300choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012301#endif
12302
12303int
12304main ()
12305{
Reid Spencera773bd52006-08-04 18:18:08 +000012306return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012307 ;
12308 return 0;
12309}
12310_ACEOF
12311rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012312if { (ac_try="$ac_link"
12313case "(($ac_try" in
12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315 *) ac_try_echo=$ac_try;;
12316esac
12317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012319 ac_status=$?
12320 grep -v '^ *+' conftest.er1 >conftest.err
12321 rm -f conftest.er1
12322 cat conftest.err >&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012324 (exit $ac_status); } &&
12325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12326 { (case "(($ac_try" in
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12329esac
12330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_try") 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; } &&
12335 { ac_try='test -s conftest$ac_exeext'
12336 { (case "(($ac_try" in
12337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338 *) ac_try_echo=$ac_try;;
12339esac
12340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341 (eval "$ac_try") 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012345 eval "$as_ac_var=yes"
12346else
12347 echo "$as_me: failed program was:" >&5
12348sed 's/^/| /' conftest.$ac_ext >&5
12349
Reid Spencera773bd52006-08-04 18:18:08 +000012350 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012351fi
Reid Spencera773bd52006-08-04 18:18:08 +000012352
Bill Wendlingebcceee2009-04-18 11:20:33 +000012353rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012354 conftest$ac_exeext conftest.$ac_ext
12355fi
Reid Spencera773bd52006-08-04 18:18:08 +000012356ac_res=`eval echo '${'$as_ac_var'}'`
12357 { echo "$as_me:$LINENO: result: $ac_res" >&5
12358echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012359if test `eval echo '${'$as_ac_var'}'` = yes; then
12360 cat >>confdefs.h <<_ACEOF
12361#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12362_ACEOF
12363 break
12364fi
12365done
12366
12367
12368
12369for ac_func in memmove strcmp
12370do
12371as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012372{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12374if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376else
12377 cat >conftest.$ac_ext <<_ACEOF
12378/* confdefs.h. */
12379_ACEOF
12380cat confdefs.h >>conftest.$ac_ext
12381cat >>conftest.$ac_ext <<_ACEOF
12382/* end confdefs.h. */
12383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12385#define $ac_func innocuous_$ac_func
12386
12387/* System header to define __stub macros and hopefully few prototypes,
12388 which can conflict with char $ac_func (); below.
12389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12390 <limits.h> exists even on freestanding compilers. */
12391
12392#ifdef __STDC__
12393# include <limits.h>
12394#else
12395# include <assert.h>
12396#endif
12397
12398#undef $ac_func
12399
Reid Spencera773bd52006-08-04 18:18:08 +000012400/* Override any GCC internal prototype to avoid an error.
12401 Use char because int might match the return type of a GCC
12402 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012403#ifdef __cplusplus
12404extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012405#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012406char $ac_func ();
12407/* The GNU C library defines this for functions which it implements
12408 to always fail with ENOSYS. Some functions are actually named
12409 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012410#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012411choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012412#endif
12413
12414int
12415main ()
12416{
Reid Spencera773bd52006-08-04 18:18:08 +000012417return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012418 ;
12419 return 0;
12420}
12421_ACEOF
12422rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012423if { (ac_try="$ac_link"
12424case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12427esac
12428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012435 (exit $ac_status); } &&
12436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12437 { (case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12440esac
12441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_try") 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; } &&
12446 { ac_try='test -s conftest$ac_exeext'
12447 { (case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12450esac
12451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452 (eval "$ac_try") 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012456 eval "$as_ac_var=yes"
12457else
12458 echo "$as_me: failed program was:" >&5
12459sed 's/^/| /' conftest.$ac_ext >&5
12460
Reid Spencera773bd52006-08-04 18:18:08 +000012461 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012462fi
Reid Spencera773bd52006-08-04 18:18:08 +000012463
Bill Wendlingebcceee2009-04-18 11:20:33 +000012464rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012465 conftest$ac_exeext conftest.$ac_ext
12466fi
Reid Spencera773bd52006-08-04 18:18:08 +000012467ac_res=`eval echo '${'$as_ac_var'}'`
12468 { echo "$as_me:$LINENO: result: $ac_res" >&5
12469echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012470if test `eval echo '${'$as_ac_var'}'` = yes; then
12471 cat >>confdefs.h <<_ACEOF
12472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12473_ACEOF
12474
12475fi
12476done
12477
12478
12479
12480
12481for ac_func in closedir opendir readdir
12482do
12483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012484{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12486if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012487 echo $ECHO_N "(cached) $ECHO_C" >&6
12488else
12489 cat >conftest.$ac_ext <<_ACEOF
12490/* confdefs.h. */
12491_ACEOF
12492cat confdefs.h >>conftest.$ac_ext
12493cat >>conftest.$ac_ext <<_ACEOF
12494/* end confdefs.h. */
12495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12497#define $ac_func innocuous_$ac_func
12498
12499/* System header to define __stub macros and hopefully few prototypes,
12500 which can conflict with char $ac_func (); below.
12501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12502 <limits.h> exists even on freestanding compilers. */
12503
12504#ifdef __STDC__
12505# include <limits.h>
12506#else
12507# include <assert.h>
12508#endif
12509
12510#undef $ac_func
12511
Reid Spencera773bd52006-08-04 18:18:08 +000012512/* Override any GCC internal prototype to avoid an error.
12513 Use char because int might match the return type of a GCC
12514 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012515#ifdef __cplusplus
12516extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012517#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012518char $ac_func ();
12519/* The GNU C library defines this for functions which it implements
12520 to always fail with ENOSYS. Some functions are actually named
12521 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012522#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012523choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012524#endif
12525
12526int
12527main ()
12528{
Reid Spencera773bd52006-08-04 18:18:08 +000012529return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012530 ;
12531 return 0;
12532}
12533_ACEOF
12534rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012535if { (ac_try="$ac_link"
12536case "(($ac_try" in
12537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12539esac
12540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012542 ac_status=$?
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012547 (exit $ac_status); } &&
12548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12549 { (case "(($ac_try" in
12550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12552esac
12553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554 (eval "$ac_try") 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; } &&
12558 { ac_try='test -s conftest$ac_exeext'
12559 { (case "(($ac_try" in
12560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12562esac
12563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564 (eval "$ac_try") 2>&5
12565 ac_status=$?
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012568 eval "$as_ac_var=yes"
12569else
12570 echo "$as_me: failed program was:" >&5
12571sed 's/^/| /' conftest.$ac_ext >&5
12572
Reid Spencera773bd52006-08-04 18:18:08 +000012573 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012574fi
Reid Spencera773bd52006-08-04 18:18:08 +000012575
Bill Wendlingebcceee2009-04-18 11:20:33 +000012576rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012577 conftest$ac_exeext conftest.$ac_ext
12578fi
Reid Spencera773bd52006-08-04 18:18:08 +000012579ac_res=`eval echo '${'$as_ac_var'}'`
12580 { echo "$as_me:$LINENO: result: $ac_res" >&5
12581echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012582if test `eval echo '${'$as_ac_var'}'` = yes; then
12583 cat >>confdefs.h <<_ACEOF
12584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12585_ACEOF
12586
12587fi
12588done
12589
12590
Reid Spencera773bd52006-08-04 18:18:08 +000012591# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012592if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012593 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012594 case $enableval in
12595 yes) enable_shared=yes ;;
12596 no) enable_shared=no ;;
12597 *)
12598 enable_shared=no
12599 # Look at the argument we got. We use all the common list separators.
12600 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12601 for pkg in $enableval; do
12602 IFS="$lt_save_ifs"
12603 if test "X$pkg" = "X$p"; then
12604 enable_shared=yes
12605 fi
12606 done
12607 IFS="$lt_save_ifs"
12608 ;;
12609 esac
12610else
12611 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012612fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012613
Reid Spencera773bd52006-08-04 18:18:08 +000012614
12615# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012616if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012617 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012618 case $enableval in
12619 yes) enable_static=yes ;;
12620 no) enable_static=no ;;
12621 *)
12622 enable_static=no
12623 # Look at the argument we got. We use all the common list separators.
12624 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12625 for pkg in $enableval; do
12626 IFS="$lt_save_ifs"
12627 if test "X$pkg" = "X$p"; then
12628 enable_static=yes
12629 fi
12630 done
12631 IFS="$lt_save_ifs"
12632 ;;
12633 esac
12634else
12635 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012636fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012637
Reid Spencera773bd52006-08-04 18:18:08 +000012638
12639# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012640if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012641 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012642 case $enableval in
12643 yes) enable_fast_install=yes ;;
12644 no) enable_fast_install=no ;;
12645 *)
12646 enable_fast_install=no
12647 # Look at the argument we got. We use all the common list separators.
12648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12649 for pkg in $enableval; do
12650 IFS="$lt_save_ifs"
12651 if test "X$pkg" = "X$p"; then
12652 enable_fast_install=yes
12653 fi
12654 done
12655 IFS="$lt_save_ifs"
12656 ;;
12657 esac
12658else
12659 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012660fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012661
Reid Spencera773bd52006-08-04 18:18:08 +000012662
12663{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12664echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012665if test "${lt_cv_path_SED+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12667else
12668 # Loop through the user's path and test for sed and gsed.
12669# Then use that list of sed's as ones to test for truncation.
12670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12671for as_dir in $PATH
12672do
12673 IFS=$as_save_IFS
12674 test -z "$as_dir" && as_dir=.
12675 for lt_ac_prog in sed gsed; do
12676 for ac_exec_ext in '' $ac_executable_extensions; do
12677 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12678 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12679 fi
12680 done
12681 done
12682done
12683lt_ac_max=0
12684lt_ac_count=0
12685# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12686# along with /bin/sed that truncates output.
12687for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012688 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012689 cat /dev/null > conftest.in
12690 lt_ac_count=0
12691 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12692 # Check for GNU sed and select it if it is found.
12693 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12694 lt_cv_path_SED=$lt_ac_sed
12695 break
12696 fi
12697 while true; do
12698 cat conftest.in conftest.in >conftest.tmp
12699 mv conftest.tmp conftest.in
12700 cp conftest.in conftest.nl
12701 echo >>conftest.nl
12702 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12703 cmp -s conftest.out conftest.nl || break
12704 # 10000 chars as input seems more than enough
12705 test $lt_ac_count -gt 10 && break
12706 lt_ac_count=`expr $lt_ac_count + 1`
12707 if test $lt_ac_count -gt $lt_ac_max; then
12708 lt_ac_max=$lt_ac_count
12709 lt_cv_path_SED=$lt_ac_sed
12710 fi
12711 done
12712done
12713
12714fi
12715
12716SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012717{ echo "$as_me:$LINENO: result: $SED" >&5
12718echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012719
12720
Reid Spencera773bd52006-08-04 18:18:08 +000012721# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012722if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012723 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012724else
12725 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012726fi
12727
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012728ac_prog=ld
12729if test "$GCC" = yes; then
12730 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012731 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12732echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012733 case $host in
12734 *-*-mingw*)
12735 # gcc leaves a trailing carriage return which upsets mingw
12736 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12737 *)
12738 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12739 esac
12740 case $ac_prog in
12741 # Accept absolute paths.
12742 [\\/]* | ?:[\\/]*)
12743 re_direlt='/[^/][^/]*/\.\./'
12744 # Canonicalize the pathname of ld
12745 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12746 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12747 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12748 done
12749 test -z "$LD" && LD="$ac_prog"
12750 ;;
12751 "")
12752 # If it fails, then pretend we aren't using GCC.
12753 ac_prog=ld
12754 ;;
12755 *)
12756 # If it is relative, then search for the first ld in PATH.
12757 with_gnu_ld=unknown
12758 ;;
12759 esac
12760elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012761 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12762echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012763else
Reid Spencera773bd52006-08-04 18:18:08 +000012764 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12765echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012766fi
12767if test "${lt_cv_path_LD+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12769else
12770 if test -z "$LD"; then
12771 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12772 for ac_dir in $PATH; do
12773 IFS="$lt_save_ifs"
12774 test -z "$ac_dir" && ac_dir=.
12775 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12776 lt_cv_path_LD="$ac_dir/$ac_prog"
12777 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012778 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012779 # Break only if it was the GNU/non-GNU ld that we prefer.
12780 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12781 *GNU* | *'with BFD'*)
12782 test "$with_gnu_ld" != no && break
12783 ;;
12784 *)
12785 test "$with_gnu_ld" != yes && break
12786 ;;
12787 esac
12788 fi
12789 done
12790 IFS="$lt_save_ifs"
12791else
12792 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12793fi
12794fi
12795
12796LD="$lt_cv_path_LD"
12797if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012798 { echo "$as_me:$LINENO: result: $LD" >&5
12799echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012800else
Reid Spencera773bd52006-08-04 18:18:08 +000012801 { echo "$as_me:$LINENO: result: no" >&5
12802echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012803fi
12804test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12805echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12806 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012807{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12808echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012809if test "${lt_cv_prog_gnu_ld+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12811else
Reid Spencera773bd52006-08-04 18:18:08 +000012812 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012813case `$LD -v 2>&1 </dev/null` in
12814*GNU* | *'with BFD'*)
12815 lt_cv_prog_gnu_ld=yes
12816 ;;
12817*)
12818 lt_cv_prog_gnu_ld=no
12819 ;;
12820esac
12821fi
Reid Spencera773bd52006-08-04 18:18:08 +000012822{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12823echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012824with_gnu_ld=$lt_cv_prog_gnu_ld
12825
12826
Reid Spencera773bd52006-08-04 18:18:08 +000012827{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12828echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012829if test "${lt_cv_ld_reload_flag+set}" = set; then
12830 echo $ECHO_N "(cached) $ECHO_C" >&6
12831else
12832 lt_cv_ld_reload_flag='-r'
12833fi
Reid Spencera773bd52006-08-04 18:18:08 +000012834{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12835echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012836reload_flag=$lt_cv_ld_reload_flag
12837case $reload_flag in
12838"" | " "*) ;;
12839*) reload_flag=" $reload_flag" ;;
12840esac
12841reload_cmds='$LD$reload_flag -o $output$reload_objs'
12842case $host_os in
12843 darwin*)
12844 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012845 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012846 else
12847 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12848 fi
12849 ;;
12850esac
12851
Reid Spencera773bd52006-08-04 18:18:08 +000012852{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12853echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012854if test "${lt_cv_deplibs_check_method+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12856else
12857 lt_cv_file_magic_cmd='$MAGIC_CMD'
12858lt_cv_file_magic_test_file=
12859lt_cv_deplibs_check_method='unknown'
12860# Need to set the preceding variable on all platforms that support
12861# interlibrary dependencies.
12862# 'none' -- dependencies not supported.
12863# `unknown' -- same as none, but documents that we really don't know.
12864# 'pass_all' -- all dependencies passed with no checks.
12865# 'test_compile' -- check by making test program.
12866# 'file_magic [[regex]]' -- check by looking for files in library path
12867# which responds to the $file_magic_cmd with a given extended regex.
12868# If you have `file' or equivalent on your system and you're not sure
12869# whether `pass_all' will *always* work, you probably want this one.
12870
12871case $host_os in
12872aix4* | aix5*)
12873 lt_cv_deplibs_check_method=pass_all
12874 ;;
12875
12876beos*)
12877 lt_cv_deplibs_check_method=pass_all
12878 ;;
12879
12880bsdi[45]*)
12881 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12882 lt_cv_file_magic_cmd='/usr/bin/file -L'
12883 lt_cv_file_magic_test_file=/shlib/libc.so
12884 ;;
12885
12886cygwin*)
12887 # func_win32_libid is a shell function defined in ltmain.sh
12888 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12889 lt_cv_file_magic_cmd='func_win32_libid'
12890 ;;
12891
12892mingw* | pw32*)
12893 # Base MSYS/MinGW do not provide the 'file' command needed by
12894 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12895 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12896 lt_cv_file_magic_cmd='$OBJDUMP -f'
12897 ;;
12898
12899darwin* | rhapsody*)
12900 lt_cv_deplibs_check_method=pass_all
12901 ;;
12902
Reid Spencera773bd52006-08-04 18:18:08 +000012903freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012904 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12905 case $host_cpu in
12906 i*86 )
12907 # Not sure whether the presence of OpenBSD here was a mistake.
12908 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012909 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 +000012910 lt_cv_file_magic_cmd=/usr/bin/file
12911 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12912 ;;
12913 esac
12914 else
12915 lt_cv_deplibs_check_method=pass_all
12916 fi
12917 ;;
12918
12919gnu*)
12920 lt_cv_deplibs_check_method=pass_all
12921 ;;
12922
12923hpux10.20* | hpux11*)
12924 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012925 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012926 ia64*)
12927 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12928 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12929 ;;
12930 hppa*64*)
12931 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]'
12932 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12933 ;;
12934 *)
12935 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12936 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12937 ;;
12938 esac
12939 ;;
12940
Reid Spencera773bd52006-08-04 18:18:08 +000012941interix3*)
12942 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12943 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12944 ;;
12945
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012946irix5* | irix6* | nonstopux*)
12947 case $LD in
12948 *-32|*"-32 ") libmagic=32-bit;;
12949 *-n32|*"-n32 ") libmagic=N32;;
12950 *-64|*"-64 ") libmagic=64-bit;;
12951 *) libmagic=never-match;;
12952 esac
12953 lt_cv_deplibs_check_method=pass_all
12954 ;;
12955
12956# This must be Linux ELF.
12957linux*)
12958 lt_cv_deplibs_check_method=pass_all
12959 ;;
12960
12961netbsd*)
12962 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12963 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12964 else
12965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12966 fi
12967 ;;
12968
12969newos6*)
12970 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12971 lt_cv_file_magic_cmd=/usr/bin/file
12972 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12973 ;;
12974
12975nto-qnx*)
12976 lt_cv_deplibs_check_method=unknown
12977 ;;
12978
12979openbsd*)
12980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12982 else
12983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12984 fi
12985 ;;
12986
12987osf3* | osf4* | osf5*)
12988 lt_cv_deplibs_check_method=pass_all
12989 ;;
12990
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012991solaris*)
12992 lt_cv_deplibs_check_method=pass_all
12993 ;;
12994
Reid Spencera773bd52006-08-04 18:18:08 +000012995sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012996 case $host_vendor in
12997 motorola)
12998 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]'
12999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13000 ;;
13001 ncr)
13002 lt_cv_deplibs_check_method=pass_all
13003 ;;
13004 sequent)
13005 lt_cv_file_magic_cmd='/bin/file'
13006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13007 ;;
13008 sni)
13009 lt_cv_file_magic_cmd='/bin/file'
13010 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13011 lt_cv_file_magic_test_file=/lib/libc.so
13012 ;;
13013 siemens)
13014 lt_cv_deplibs_check_method=pass_all
13015 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013016 pc)
13017 lt_cv_deplibs_check_method=pass_all
13018 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013019 esac
13020 ;;
13021
Reid Spencera773bd52006-08-04 18:18:08 +000013022sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013023 lt_cv_deplibs_check_method=pass_all
13024 ;;
13025esac
13026
13027fi
Reid Spencera773bd52006-08-04 18:18:08 +000013028{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13029echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013030file_magic_cmd=$lt_cv_file_magic_cmd
13031deplibs_check_method=$lt_cv_deplibs_check_method
13032test -z "$deplibs_check_method" && deplibs_check_method=unknown
13033
13034
13035
13036# If no C compiler was specified, use CC.
13037LTCC=${LTCC-"$CC"}
13038
Reid Spencera773bd52006-08-04 18:18:08 +000013039# If no C compiler flags were specified, use CFLAGS.
13040LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13041
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013042# Allow CC to be a program name with arguments.
13043compiler=$CC
13044
Reid Spencera773bd52006-08-04 18:18:08 +000013045# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013046if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013047 enableval=$enable_libtool_lock;
13048fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013049
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013050test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13051
13052# Some flags need to be propagated to the compiler or linker for good
13053# libtool support.
13054case $host in
13055ia64-*-hpux*)
13056 # Find out which ABI we are using.
13057 echo 'int i;' > conftest.$ac_ext
13058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13059 (eval $ac_compile) 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; then
13063 case `/usr/bin/file conftest.$ac_objext` in
13064 *ELF-32*)
13065 HPUX_IA64_MODE="32"
13066 ;;
13067 *ELF-64*)
13068 HPUX_IA64_MODE="64"
13069 ;;
13070 esac
13071 fi
13072 rm -rf conftest*
13073 ;;
13074*-*-irix6*)
13075 # Find out which ABI we are using.
Shantonu Sen7e836972009-08-11 13:39:52 +000013076 echo '#line 13076 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13078 (eval $ac_compile) 2>&5
13079 ac_status=$?
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); }; then
13082 if test "$lt_cv_prog_gnu_ld" = yes; then
13083 case `/usr/bin/file conftest.$ac_objext` in
13084 *32-bit*)
13085 LD="${LD-ld} -melf32bsmip"
13086 ;;
13087 *N32*)
13088 LD="${LD-ld} -melf32bmipn32"
13089 ;;
13090 *64-bit*)
13091 LD="${LD-ld} -melf64bmip"
13092 ;;
13093 esac
13094 else
13095 case `/usr/bin/file conftest.$ac_objext` in
13096 *32-bit*)
13097 LD="${LD-ld} -32"
13098 ;;
13099 *N32*)
13100 LD="${LD-ld} -n32"
13101 ;;
13102 *64-bit*)
13103 LD="${LD-ld} -64"
13104 ;;
13105 esac
13106 fi
13107 fi
13108 rm -rf conftest*
13109 ;;
13110
13111x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13112 # Find out which ABI we are using.
13113 echo 'int i;' > conftest.$ac_ext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13115 (eval $ac_compile) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013119 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013120 *32-bit*)
13121 case $host in
13122 x86_64-*linux*)
13123 LD="${LD-ld} -m elf_i386"
13124 ;;
13125 ppc64-*linux*|powerpc64-*linux*)
13126 LD="${LD-ld} -m elf32ppclinux"
13127 ;;
13128 s390x-*linux*)
13129 LD="${LD-ld} -m elf_s390"
13130 ;;
13131 sparc64-*linux*)
13132 LD="${LD-ld} -m elf32_sparc"
13133 ;;
13134 esac
13135 ;;
13136 *64-bit*)
13137 case $host in
13138 x86_64-*linux*)
13139 LD="${LD-ld} -m elf_x86_64"
13140 ;;
13141 ppc*-*linux*|powerpc*-*linux*)
13142 LD="${LD-ld} -m elf64ppc"
13143 ;;
13144 s390*-*linux*)
13145 LD="${LD-ld} -m elf64_s390"
13146 ;;
13147 sparc*-*linux*)
13148 LD="${LD-ld} -m elf64_sparc"
13149 ;;
13150 esac
13151 ;;
13152 esac
13153 fi
13154 rm -rf conftest*
13155 ;;
13156
13157*-*-sco3.2v5*)
13158 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13159 SAVE_CFLAGS="$CFLAGS"
13160 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013161 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13162echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013163if test "${lt_cv_cc_needs_belf+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13165else
13166 ac_ext=c
13167ac_cpp='$CPP $CPPFLAGS'
13168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13170ac_compiler_gnu=$ac_cv_c_compiler_gnu
13171
13172 cat >conftest.$ac_ext <<_ACEOF
13173/* confdefs.h. */
13174_ACEOF
13175cat confdefs.h >>conftest.$ac_ext
13176cat >>conftest.$ac_ext <<_ACEOF
13177/* end confdefs.h. */
13178
Reid Spencera773bd52006-08-04 18:18:08 +000013179int
13180main ()
13181{
13182
13183 ;
13184 return 0;
13185}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013186_ACEOF
13187rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013188if { (ac_try="$ac_link"
13189case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13192esac
13193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013195 ac_status=$?
13196 grep -v '^ *+' conftest.er1 >conftest.err
13197 rm -f conftest.er1
13198 cat conftest.err >&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013200 (exit $ac_status); } &&
13201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13202 { (case "(($ac_try" in
13203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204 *) ac_try_echo=$ac_try;;
13205esac
13206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207 (eval "$ac_try") 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try='test -s conftest$ac_exeext'
13212 { (case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13215esac
13216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_try") 2>&5
13218 ac_status=$?
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013221 lt_cv_cc_needs_belf=yes
13222else
13223 echo "$as_me: failed program was:" >&5
13224sed 's/^/| /' conftest.$ac_ext >&5
13225
Reid Spencera773bd52006-08-04 18:18:08 +000013226 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013227fi
Reid Spencera773bd52006-08-04 18:18:08 +000013228
Bill Wendlingebcceee2009-04-18 11:20:33 +000013229rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013230 conftest$ac_exeext conftest.$ac_ext
13231 ac_ext=c
13232ac_cpp='$CPP $CPPFLAGS'
13233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13235ac_compiler_gnu=$ac_cv_c_compiler_gnu
13236
13237fi
Reid Spencera773bd52006-08-04 18:18:08 +000013238{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13239echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013240 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13241 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13242 CFLAGS="$SAVE_CFLAGS"
13243 fi
13244 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013245sparc*-*solaris*)
13246 # Find out which ABI we are using.
13247 echo 'int i;' > conftest.$ac_ext
13248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13249 (eval $ac_compile) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; then
13253 case `/usr/bin/file conftest.o` in
13254 *64-bit*)
13255 case $lt_cv_prog_gnu_ld in
13256 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13257 *) LD="${LD-ld} -64" ;;
13258 esac
13259 ;;
13260 esac
13261 fi
13262 rm -rf conftest*
13263 ;;
13264
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013265
13266esac
13267
13268need_locks="$enable_libtool_lock"
13269
13270
Reid Spencer2706f8c2004-09-19 23:53:36 +000013271
13272
13273if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13274 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13275 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013276 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013277ac_cpp='$CXXCPP $CPPFLAGS'
13278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013281{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13282echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013283if test -z "$CXXCPP"; then
13284 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013285 echo $ECHO_N "(cached) $ECHO_C" >&6
13286else
John Criswell47fdd832003-07-14 16:52:07 +000013287 # Double quotes because CXXCPP needs to be expanded
13288 for CXXCPP in "$CXX -E" "/lib/cpp"
13289 do
13290 ac_preproc_ok=false
13291for ac_cxx_preproc_warn_flag in '' yes
13292do
13293 # Use a header file that comes with gcc, so configuring glibc
13294 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13296 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013297 # On the NeXT, cc -E runs the code through the compiler's parser,
13298 # not just through cpp. "Syntax error" is here to catch this case.
13299 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013300/* confdefs.h. */
13301_ACEOF
13302cat confdefs.h >>conftest.$ac_ext
13303cat >>conftest.$ac_ext <<_ACEOF
13304/* end confdefs.h. */
13305#ifdef __STDC__
13306# include <limits.h>
13307#else
13308# include <assert.h>
13309#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013310 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013311_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013312if { (ac_try="$ac_cpp conftest.$ac_ext"
13313case "(($ac_try" in
13314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315 *) ac_try_echo=$ac_try;;
13316esac
13317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013319 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013320 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013321 rm -f conftest.er1
13322 cat conftest.err >&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013324 (exit $ac_status); } >/dev/null; then
13325 if test -s conftest.err; then
13326 ac_cpp_err=$ac_cxx_preproc_warn_flag
13327 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13328 else
13329 ac_cpp_err=
13330 fi
13331else
13332 ac_cpp_err=yes
13333fi
13334if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013335 :
13336else
13337 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013338sed 's/^/| /' conftest.$ac_ext >&5
13339
John Criswell47fdd832003-07-14 16:52:07 +000013340 # Broken: fails on valid input.
13341continue
13342fi
Reid Spencera773bd52006-08-04 18:18:08 +000013343
John Criswell47fdd832003-07-14 16:52:07 +000013344rm -f conftest.err conftest.$ac_ext
13345
Reid Spencera773bd52006-08-04 18:18:08 +000013346 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013347 # can be detected and how.
13348 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013349/* confdefs.h. */
13350_ACEOF
13351cat confdefs.h >>conftest.$ac_ext
13352cat >>conftest.$ac_ext <<_ACEOF
13353/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013354#include <ac_nonexistent.h>
13355_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013356if { (ac_try="$ac_cpp conftest.$ac_ext"
13357case "(($ac_try" in
13358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359 *) ac_try_echo=$ac_try;;
13360esac
13361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013363 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013364 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013365 rm -f conftest.er1
13366 cat conftest.err >&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013368 (exit $ac_status); } >/dev/null; then
13369 if test -s conftest.err; then
13370 ac_cpp_err=$ac_cxx_preproc_warn_flag
13371 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13372 else
13373 ac_cpp_err=
13374 fi
13375else
13376 ac_cpp_err=yes
13377fi
13378if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013379 # Broken: success on invalid input.
13380continue
13381else
13382 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013383sed 's/^/| /' conftest.$ac_ext >&5
13384
John Criswell47fdd832003-07-14 16:52:07 +000013385 # Passes both tests.
13386ac_preproc_ok=:
13387break
13388fi
Reid Spencera773bd52006-08-04 18:18:08 +000013389
John Criswell47fdd832003-07-14 16:52:07 +000013390rm -f conftest.err conftest.$ac_ext
13391
13392done
13393# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13394rm -f conftest.err conftest.$ac_ext
13395if $ac_preproc_ok; then
13396 break
John Criswell7a73b802003-06-30 21:59:07 +000013397fi
13398
John Criswell47fdd832003-07-14 16:52:07 +000013399 done
13400 ac_cv_prog_CXXCPP=$CXXCPP
13401
13402fi
13403 CXXCPP=$ac_cv_prog_CXXCPP
13404else
13405 ac_cv_prog_CXXCPP=$CXXCPP
13406fi
Reid Spencera773bd52006-08-04 18:18:08 +000013407{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13408echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013409ac_preproc_ok=false
13410for ac_cxx_preproc_warn_flag in '' yes
13411do
13412 # Use a header file that comes with gcc, so configuring glibc
13413 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13415 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013416 # On the NeXT, cc -E runs the code through the compiler's parser,
13417 # not just through cpp. "Syntax error" is here to catch this case.
13418 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013419/* confdefs.h. */
13420_ACEOF
13421cat confdefs.h >>conftest.$ac_ext
13422cat >>conftest.$ac_ext <<_ACEOF
13423/* end confdefs.h. */
13424#ifdef __STDC__
13425# include <limits.h>
13426#else
13427# include <assert.h>
13428#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013429 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013430_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013431if { (ac_try="$ac_cpp conftest.$ac_ext"
13432case "(($ac_try" in
13433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434 *) ac_try_echo=$ac_try;;
13435esac
13436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013438 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013439 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013440 rm -f conftest.er1
13441 cat conftest.err >&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013443 (exit $ac_status); } >/dev/null; then
13444 if test -s conftest.err; then
13445 ac_cpp_err=$ac_cxx_preproc_warn_flag
13446 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13447 else
13448 ac_cpp_err=
13449 fi
13450else
13451 ac_cpp_err=yes
13452fi
13453if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013454 :
13455else
13456 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013457sed 's/^/| /' conftest.$ac_ext >&5
13458
John Criswell47fdd832003-07-14 16:52:07 +000013459 # Broken: fails on valid input.
13460continue
13461fi
Reid Spencera773bd52006-08-04 18:18:08 +000013462
John Criswell47fdd832003-07-14 16:52:07 +000013463rm -f conftest.err conftest.$ac_ext
13464
Reid Spencera773bd52006-08-04 18:18:08 +000013465 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013466 # can be detected and how.
13467 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013468/* confdefs.h. */
13469_ACEOF
13470cat confdefs.h >>conftest.$ac_ext
13471cat >>conftest.$ac_ext <<_ACEOF
13472/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013473#include <ac_nonexistent.h>
13474_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013475if { (ac_try="$ac_cpp conftest.$ac_ext"
13476case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13479esac
13480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013482 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013483 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013484 rm -f conftest.er1
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013487 (exit $ac_status); } >/dev/null; then
13488 if test -s conftest.err; then
13489 ac_cpp_err=$ac_cxx_preproc_warn_flag
13490 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13491 else
13492 ac_cpp_err=
13493 fi
13494else
13495 ac_cpp_err=yes
13496fi
13497if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013498 # Broken: success on invalid input.
13499continue
13500else
13501 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013502sed 's/^/| /' conftest.$ac_ext >&5
13503
John Criswell47fdd832003-07-14 16:52:07 +000013504 # Passes both tests.
13505ac_preproc_ok=:
13506break
13507fi
Reid Spencera773bd52006-08-04 18:18:08 +000013508
John Criswell47fdd832003-07-14 16:52:07 +000013509rm -f conftest.err conftest.$ac_ext
13510
13511done
13512# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13513rm -f conftest.err conftest.$ac_ext
13514if $ac_preproc_ok; then
13515 :
13516else
John Criswell0c38eaf2003-09-10 15:17:25 +000013517 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13518See \`config.log' for more details." >&5
13519echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13520See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013521 { (exit 1); exit 1; }; }
13522fi
13523
Reid Spencera773bd52006-08-04 18:18:08 +000013524ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013525ac_cpp='$CXXCPP $CPPFLAGS'
13526ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13527ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13528ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13529
Reid Spencer2706f8c2004-09-19 23:53:36 +000013530fi
13531
John Criswell47fdd832003-07-14 16:52:07 +000013532
13533ac_ext=f
13534ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13535ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13536ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13537if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013538 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 +000013539 do
13540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13541set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013544if test "${ac_cv_prog_F77+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13546else
13547 if test -n "$F77"; then
13548 ac_cv_prog_F77="$F77" # Let the user override the test.
13549else
13550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13551for as_dir in $PATH
13552do
13553 IFS=$as_save_IFS
13554 test -z "$as_dir" && as_dir=.
13555 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013556 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 +000013557 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13559 break 2
13560 fi
13561done
13562done
Reid Spencera773bd52006-08-04 18:18:08 +000013563IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013564
13565fi
13566fi
13567F77=$ac_cv_prog_F77
13568if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013569 { echo "$as_me:$LINENO: result: $F77" >&5
13570echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013571else
Reid Spencera773bd52006-08-04 18:18:08 +000013572 { echo "$as_me:$LINENO: result: no" >&5
13573echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013574fi
13575
Reid Spencera773bd52006-08-04 18:18:08 +000013576
John Criswell47fdd832003-07-14 16:52:07 +000013577 test -n "$F77" && break
13578 done
13579fi
13580if test -z "$F77"; then
13581 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013582 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 +000013583do
13584 # Extract the first word of "$ac_prog", so it can be a program name with args.
13585set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013586{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013588if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13590else
13591 if test -n "$ac_ct_F77"; then
13592 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13593else
13594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13595for as_dir in $PATH
13596do
13597 IFS=$as_save_IFS
13598 test -z "$as_dir" && as_dir=.
13599 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013600 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 +000013601 ac_cv_prog_ac_ct_F77="$ac_prog"
13602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13603 break 2
13604 fi
13605done
13606done
Reid Spencera773bd52006-08-04 18:18:08 +000013607IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013608
13609fi
13610fi
13611ac_ct_F77=$ac_cv_prog_ac_ct_F77
13612if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013613 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13614echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013615else
Reid Spencera773bd52006-08-04 18:18:08 +000013616 { echo "$as_me:$LINENO: result: no" >&5
13617echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013618fi
13619
Reid Spencera773bd52006-08-04 18:18:08 +000013620
John Criswell47fdd832003-07-14 16:52:07 +000013621 test -n "$ac_ct_F77" && break
13622done
13623
Reid Spencera773bd52006-08-04 18:18:08 +000013624 if test "x$ac_ct_F77" = x; then
13625 F77=""
13626 else
13627 case $cross_compiling:$ac_tool_warned in
13628yes:)
13629{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13630whose name does not start with the host triplet. If you think this
13631configuration is useful to you, please write to autoconf@gnu.org." >&5
13632echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13633whose name does not start with the host triplet. If you think this
13634configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13635ac_tool_warned=yes ;;
13636esac
13637 F77=$ac_ct_F77
13638 fi
John Criswell47fdd832003-07-14 16:52:07 +000013639fi
13640
13641
13642# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013643echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013644ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013645{ (ac_try="$ac_compiler --version >&5"
13646case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13649esac
13650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013655{ (ac_try="$ac_compiler -v >&5"
13656case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13659esac
13660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013665{ (ac_try="$ac_compiler -V >&5"
13666case "(($ac_try" in
13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668 *) ac_try_echo=$ac_try;;
13669esac
13670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013675rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013676
13677# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013678# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013679ac_save_ext=$ac_ext
13680ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013681{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13682echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013683if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13685else
13686 cat >conftest.$ac_ext <<_ACEOF
13687 program main
13688#ifndef __GNUC__
13689 choke me
13690#endif
13691
13692 end
13693_ACEOF
13694rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013695if { (ac_try="$ac_compile"
13696case "(($ac_try" in
13697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698 *) ac_try_echo=$ac_try;;
13699esac
13700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013702 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013703 grep -v '^ *+' conftest.er1 >conftest.err
13704 rm -f conftest.er1
13705 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013707 (exit $ac_status); } &&
13708 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13709 { (case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13712esac
13713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_try") 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; } &&
13718 { ac_try='test -s conftest.$ac_objext'
13719 { (case "(($ac_try" in
13720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721 *) ac_try_echo=$ac_try;;
13722esac
13723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724 (eval "$ac_try") 2>&5
13725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013728 ac_compiler_gnu=yes
13729else
13730 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013731sed 's/^/| /' conftest.$ac_ext >&5
13732
Reid Spencera773bd52006-08-04 18:18:08 +000013733 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013734fi
Reid Spencera773bd52006-08-04 18:18:08 +000013735
13736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013737ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13738
13739fi
Reid Spencera773bd52006-08-04 18:18:08 +000013740{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13741echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013742ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013743ac_test_FFLAGS=${FFLAGS+set}
13744ac_save_FFLAGS=$FFLAGS
13745FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013746{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13747echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013748if test "${ac_cv_prog_f77_g+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13750else
13751 FFLAGS=-g
13752cat >conftest.$ac_ext <<_ACEOF
13753 program main
13754
13755 end
13756_ACEOF
13757rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013758if { (ac_try="$ac_compile"
13759case "(($ac_try" in
13760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13761 *) ac_try_echo=$ac_try;;
13762esac
13763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013765 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013766 grep -v '^ *+' conftest.er1 >conftest.err
13767 rm -f conftest.er1
13768 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013770 (exit $ac_status); } &&
13771 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13772 { (case "(($ac_try" in
13773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13774 *) ac_try_echo=$ac_try;;
13775esac
13776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13777 (eval "$ac_try") 2>&5
13778 ac_status=$?
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; } &&
13781 { ac_try='test -s conftest.$ac_objext'
13782 { (case "(($ac_try" in
13783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784 *) ac_try_echo=$ac_try;;
13785esac
13786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787 (eval "$ac_try") 2>&5
13788 ac_status=$?
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013791 ac_cv_prog_f77_g=yes
13792else
13793 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013794sed 's/^/| /' conftest.$ac_ext >&5
13795
Reid Spencera773bd52006-08-04 18:18:08 +000013796 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013797fi
Reid Spencera773bd52006-08-04 18:18:08 +000013798
13799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013800
13801fi
Reid Spencera773bd52006-08-04 18:18:08 +000013802{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13803echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013804if test "$ac_test_FFLAGS" = set; then
13805 FFLAGS=$ac_save_FFLAGS
13806elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013807 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013808 FFLAGS="-g -O2"
13809 else
13810 FFLAGS="-g"
13811 fi
13812else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013813 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013814 FFLAGS="-O2"
13815 else
13816 FFLAGS=
13817 fi
13818fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013819
13820G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013821ac_ext=c
13822ac_cpp='$CPP $CPPFLAGS'
13823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13825ac_compiler_gnu=$ac_cv_c_compiler_gnu
13826
13827
13828
13829# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13830
13831# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013832{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13833echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013834if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13836else
13837 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013838 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013839
13840 case $build_os in
13841 msdosdjgpp*)
13842 # On DJGPP, this test can blow up pretty badly due to problems in libc
13843 # (any single argument exceeding 2000 bytes causes a buffer overrun
13844 # during glob expansion). Even if it were fixed, the result of this
13845 # check would be larger than it should be.
13846 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13847 ;;
13848
13849 gnu*)
13850 # Under GNU Hurd, this test is not required because there is
13851 # no limit to the length of command line arguments.
13852 # Libtool will interpret -1 as no limit whatsoever
13853 lt_cv_sys_max_cmd_len=-1;
13854 ;;
13855
13856 cygwin* | mingw*)
13857 # On Win9x/ME, this test blows up -- it succeeds, but takes
13858 # about 5 minutes as the teststring grows exponentially.
13859 # Worse, since 9x/ME are not pre-emptively multitasking,
13860 # you end up with a "frozen" computer, even though with patience
13861 # the test eventually succeeds (with a max line length of 256k).
13862 # Instead, let's just punt: use the minimum linelength reported by
13863 # all of the supported platforms: 8192 (on NT/2K/XP).
13864 lt_cv_sys_max_cmd_len=8192;
13865 ;;
13866
Reid Spencer2706f8c2004-09-19 23:53:36 +000013867 amigaos*)
13868 # On AmigaOS with pdksh, this test takes hours, literally.
13869 # So we just punt and use a minimum line length of 8192.
13870 lt_cv_sys_max_cmd_len=8192;
13871 ;;
13872
Reid Spencera773bd52006-08-04 18:18:08 +000013873 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013874 # This has been around since 386BSD, at least. Likely further.
13875 if test -x /sbin/sysctl; then
13876 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13877 elif test -x /usr/sbin/sysctl; then
13878 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13879 else
Reid Spencera773bd52006-08-04 18:18:08 +000013880 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013881 fi
13882 # And add a safety zone
13883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013884 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013885 ;;
13886
Reid Spencera773bd52006-08-04 18:18:08 +000013887 interix*)
13888 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13889 lt_cv_sys_max_cmd_len=196608
13890 ;;
13891
13892 osf*)
13893 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13894 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13895 # nice to cause kernel panics so lets avoid the loop below.
13896 # First set a reasonable default.
13897 lt_cv_sys_max_cmd_len=16384
13898 #
13899 if test -x /sbin/sysconfig; then
13900 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13901 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13902 esac
13903 fi
13904 ;;
13905 sco3.2v5*)
13906 lt_cv_sys_max_cmd_len=102400
13907 ;;
13908 sysv5* | sco5v6* | sysv4.2uw2*)
13909 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13910 if test -n "$kargmax"; then
13911 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13912 else
13913 lt_cv_sys_max_cmd_len=32768
13914 fi
13915 ;;
13916 *)
John Criswell47fdd832003-07-14 16:52:07 +000013917 # If test is not a shell built-in, we'll probably end up computing a
13918 # maximum length that is only half of the actual maximum length, but
13919 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013920 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13921 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13922 = "XX$teststring") >/dev/null 2>&1 &&
13923 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013924 lt_cv_sys_max_cmd_len=$new_result &&
13925 test $i != 17 # 1/2 MB should be enough
13926 do
13927 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013928 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013929 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013930 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013931 # Add a significant safety factor because C++ compilers can tack on massive
13932 # amounts of additional arguments before passing them to the linker.
13933 # It appears as though 1/2 is a usable value.
13934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13935 ;;
13936 esac
13937
13938fi
13939
13940if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013941 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13942echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013943else
Reid Spencera773bd52006-08-04 18:18:08 +000013944 { echo "$as_me:$LINENO: result: none" >&5
13945echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013946fi
13947
13948
13949
13950
13951# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013952{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13953echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013954if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13956else
13957
13958# These are sane defaults that work on at least a few old systems.
13959# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13960
13961# Character class describing NM global symbol codes.
13962symcode='[BCDEGRST]'
13963
13964# Regexp to match symbols that can be accessed directly from C.
13965sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13966
John Criswell47fdd832003-07-14 16:52:07 +000013967# Transform an extracted symbol line into a proper C declaration
13968lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13969
13970# Transform an extracted symbol line into symbol name and symbol address
13971lt_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'"
13972
13973# Define system-specific variables.
13974case $host_os in
13975aix*)
13976 symcode='[BCDT]'
13977 ;;
13978cygwin* | mingw* | pw32*)
13979 symcode='[ABCDGISTW]'
13980 ;;
13981hpux*) # Its linker distinguishes data from code symbols
13982 if test "$host_cpu" = ia64; then
13983 symcode='[ABCDEGRST]'
13984 fi
13985 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13986 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'"
13987 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013988linux*)
13989 if test "$host_cpu" = ia64; then
13990 symcode='[ABCDGIRSTW]'
13991 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13992 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'"
13993 fi
13994 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013995irix* | nonstopux*)
13996 symcode='[BCDEGRST]'
13997 ;;
13998osf*)
13999 symcode='[BCDEGQRST]'
14000 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014001solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014002 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000014003 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014004sco3.2v5*)
14005 symcode='[DT]'
14006 ;;
14007sysv4.2uw2*)
14008 symcode='[DT]'
14009 ;;
14010sysv5* | sco5v6* | unixware* | OpenUNIX*)
14011 symcode='[ABDT]'
14012 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014013sysv4)
14014 symcode='[DFNSTU]'
14015 ;;
14016esac
14017
14018# Handle CRLF in mingw tool chain
14019opt_cr=
14020case $build_os in
14021mingw*)
14022 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14023 ;;
14024esac
14025
14026# If we're using GNU nm, then use its standard symbol codes.
14027case `$NM -V 2>&1` in
14028*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014029 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000014030esac
14031
14032# Try without a prefix undercore, then with it.
14033for ac_symprfx in "" "_"; do
14034
Reid Spencera773bd52006-08-04 18:18:08 +000014035 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14036 symxfrm="\\1 $ac_symprfx\\2 \\2"
14037
John Criswell47fdd832003-07-14 16:52:07 +000014038 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000014039 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 +000014040
14041 # Check to see that the pipe works correctly.
14042 pipe_works=no
14043
14044 rm -f conftest*
14045 cat > conftest.$ac_ext <<EOF
14046#ifdef __cplusplus
14047extern "C" {
14048#endif
14049char nm_test_var;
14050void nm_test_func(){}
14051#ifdef __cplusplus
14052}
14053#endif
14054int main(){nm_test_var='a';nm_test_func();return(0);}
14055EOF
14056
14057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14058 (eval $ac_compile) 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; then
14062 # Now try to grab the symbols.
14063 nlist=conftest.nm
14064 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14065 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14066 ac_status=$?
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } && test -s "$nlist"; then
14069 # Try sorting and uniquifying the output.
14070 if sort "$nlist" | uniq > "$nlist"T; then
14071 mv -f "$nlist"T "$nlist"
14072 else
14073 rm -f "$nlist"T
14074 fi
14075
14076 # Make sure that we snagged all the symbols we need.
14077 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14078 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14079 cat <<EOF > conftest.$ac_ext
14080#ifdef __cplusplus
14081extern "C" {
14082#endif
14083
14084EOF
14085 # Now generate the symbol file.
14086 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14087
14088 cat <<EOF >> conftest.$ac_ext
14089#if defined (__STDC__) && __STDC__
14090# define lt_ptr_t void *
14091#else
14092# define lt_ptr_t char *
14093# define const
14094#endif
14095
14096/* The mapping between symbol names and symbols. */
14097const struct {
14098 const char *name;
14099 lt_ptr_t address;
14100}
14101lt_preloaded_symbols[] =
14102{
14103EOF
14104 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14105 cat <<\EOF >> conftest.$ac_ext
14106 {0, (lt_ptr_t) 0}
14107};
14108
14109#ifdef __cplusplus
14110}
14111#endif
14112EOF
14113 # Now try linking the two files.
14114 mv conftest.$ac_objext conftstm.$ac_objext
14115 lt_save_LIBS="$LIBS"
14116 lt_save_CFLAGS="$CFLAGS"
14117 LIBS="conftstm.$ac_objext"
14118 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14120 (eval $ac_link) 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14124 pipe_works=yes
14125 fi
14126 LIBS="$lt_save_LIBS"
14127 CFLAGS="$lt_save_CFLAGS"
14128 else
14129 echo "cannot find nm_test_func in $nlist" >&5
14130 fi
14131 else
14132 echo "cannot find nm_test_var in $nlist" >&5
14133 fi
14134 else
14135 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14136 fi
14137 else
14138 echo "$progname: failed program was:" >&5
14139 cat conftest.$ac_ext >&5
14140 fi
14141 rm -f conftest* conftst*
14142
14143 # Do not use the global_symbol_pipe unless it works.
14144 if test "$pipe_works" = yes; then
14145 break
14146 else
14147 lt_cv_sys_global_symbol_pipe=
14148 fi
14149done
14150
14151fi
14152
14153if test -z "$lt_cv_sys_global_symbol_pipe"; then
14154 lt_cv_sys_global_symbol_to_cdecl=
14155fi
14156if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014157 { echo "$as_me:$LINENO: result: failed" >&5
14158echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014159else
Reid Spencera773bd52006-08-04 18:18:08 +000014160 { echo "$as_me:$LINENO: result: ok" >&5
14161echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014162fi
14163
Reid Spencera773bd52006-08-04 18:18:08 +000014164{ echo "$as_me:$LINENO: checking for objdir" >&5
14165echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014166if test "${lt_cv_objdir+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14168else
14169 rm -f .libs 2>/dev/null
14170mkdir .libs 2>/dev/null
14171if test -d .libs; then
14172 lt_cv_objdir=.libs
14173else
14174 # MS-DOS does not allow filenames that begin with a dot.
14175 lt_cv_objdir=_libs
14176fi
14177rmdir .libs 2>/dev/null
14178fi
Reid Spencera773bd52006-08-04 18:18:08 +000014179{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14180echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014181objdir=$lt_cv_objdir
14182
14183
14184
14185
14186
14187case $host_os in
14188aix3*)
14189 # AIX sometimes has problems with the GCC collect2 program. For some
14190 # reason, if we set the COLLECT_NAMES environment variable, the problems
14191 # vanish in a puff of smoke.
14192 if test "X${COLLECT_NAMES+set}" != Xset; then
14193 COLLECT_NAMES=
14194 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014195 fi
14196 ;;
14197esac
14198
John Criswell47fdd832003-07-14 16:52:07 +000014199# Sed substitution that helps us do robust quoting. It backslashifies
14200# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014201Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014202sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14203
14204# Same as above, but do not quote variable references.
14205double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14206
14207# Sed substitution to delay expansion of an escaped shell variable in a
14208# double_quote_subst'ed string.
14209delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14210
14211# Sed substitution to avoid accidental globbing in evaled expressions
14212no_glob_subst='s/\*/\\\*/g'
14213
14214# Constants:
14215rm="rm -f"
14216
14217# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014218default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014219can_build_shared=yes
14220
Reid Spencera773bd52006-08-04 18:18:08 +000014221# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014222# which needs '.lib').
14223libext=a
14224ltmain="$ac_aux_dir/ltmain.sh"
14225ofile="$default_ofile"
14226with_gnu_ld="$lt_cv_prog_gnu_ld"
14227
14228if test -n "$ac_tool_prefix"; then
14229 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14230set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014231{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014233if test "${ac_cv_prog_AR+set}" = set; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14235else
14236 if test -n "$AR"; then
14237 ac_cv_prog_AR="$AR" # Let the user override the test.
14238else
14239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14240for as_dir in $PATH
14241do
14242 IFS=$as_save_IFS
14243 test -z "$as_dir" && as_dir=.
14244 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014245 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 +000014246 ac_cv_prog_AR="${ac_tool_prefix}ar"
14247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14248 break 2
14249 fi
14250done
14251done
Reid Spencera773bd52006-08-04 18:18:08 +000014252IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014253
14254fi
14255fi
14256AR=$ac_cv_prog_AR
14257if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014258 { echo "$as_me:$LINENO: result: $AR" >&5
14259echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014260else
Reid Spencera773bd52006-08-04 18:18:08 +000014261 { echo "$as_me:$LINENO: result: no" >&5
14262echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014263fi
14264
Reid Spencera773bd52006-08-04 18:18:08 +000014265
John Criswell47fdd832003-07-14 16:52:07 +000014266fi
14267if test -z "$ac_cv_prog_AR"; then
14268 ac_ct_AR=$AR
14269 # Extract the first word of "ar", so it can be a program name with args.
14270set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014273if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14275else
14276 if test -n "$ac_ct_AR"; then
14277 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14278else
14279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280for as_dir in $PATH
14281do
14282 IFS=$as_save_IFS
14283 test -z "$as_dir" && as_dir=.
14284 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014285 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 +000014286 ac_cv_prog_ac_ct_AR="ar"
14287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14288 break 2
14289 fi
14290done
14291done
Reid Spencera773bd52006-08-04 18:18:08 +000014292IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014293
John Criswell47fdd832003-07-14 16:52:07 +000014294fi
14295fi
14296ac_ct_AR=$ac_cv_prog_ac_ct_AR
14297if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014298 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14299echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014300else
Reid Spencera773bd52006-08-04 18:18:08 +000014301 { echo "$as_me:$LINENO: result: no" >&5
14302echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014303fi
14304
Reid Spencera773bd52006-08-04 18:18:08 +000014305 if test "x$ac_ct_AR" = x; then
14306 AR="false"
14307 else
14308 case $cross_compiling:$ac_tool_warned in
14309yes:)
14310{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14311whose name does not start with the host triplet. If you think this
14312configuration is useful to you, please write to autoconf@gnu.org." >&5
14313echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14314whose name does not start with the host triplet. If you think this
14315configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14316ac_tool_warned=yes ;;
14317esac
14318 AR=$ac_ct_AR
14319 fi
John Criswell47fdd832003-07-14 16:52:07 +000014320else
14321 AR="$ac_cv_prog_AR"
14322fi
14323
John Criswell7a73b802003-06-30 21:59:07 +000014324if test -n "$ac_tool_prefix"; then
14325 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14326set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014327{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014329if test "${ac_cv_prog_RANLIB+set}" = set; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14331else
14332 if test -n "$RANLIB"; then
14333 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14334else
14335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14336for as_dir in $PATH
14337do
14338 IFS=$as_save_IFS
14339 test -z "$as_dir" && as_dir=.
14340 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014341 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 +000014342 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14344 break 2
14345 fi
14346done
14347done
Reid Spencera773bd52006-08-04 18:18:08 +000014348IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014349
14350fi
14351fi
14352RANLIB=$ac_cv_prog_RANLIB
14353if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014354 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14355echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014356else
Reid Spencera773bd52006-08-04 18:18:08 +000014357 { echo "$as_me:$LINENO: result: no" >&5
14358echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014359fi
14360
Reid Spencera773bd52006-08-04 18:18:08 +000014361
John Criswell7a73b802003-06-30 21:59:07 +000014362fi
14363if test -z "$ac_cv_prog_RANLIB"; then
14364 ac_ct_RANLIB=$RANLIB
14365 # Extract the first word of "ranlib", so it can be a program name with args.
14366set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014367{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014369if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14371else
14372 if test -n "$ac_ct_RANLIB"; then
14373 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14374else
14375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14376for as_dir in $PATH
14377do
14378 IFS=$as_save_IFS
14379 test -z "$as_dir" && as_dir=.
14380 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014381 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 +000014382 ac_cv_prog_ac_ct_RANLIB="ranlib"
14383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14384 break 2
14385 fi
14386done
14387done
Reid Spencera773bd52006-08-04 18:18:08 +000014388IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014389
John Criswell7a73b802003-06-30 21:59:07 +000014390fi
14391fi
14392ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14393if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014394 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14395echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014396else
Reid Spencera773bd52006-08-04 18:18:08 +000014397 { echo "$as_me:$LINENO: result: no" >&5
14398echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014399fi
14400
Reid Spencera773bd52006-08-04 18:18:08 +000014401 if test "x$ac_ct_RANLIB" = x; then
14402 RANLIB=":"
14403 else
14404 case $cross_compiling:$ac_tool_warned in
14405yes:)
14406{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14407whose name does not start with the host triplet. If you think this
14408configuration is useful to you, please write to autoconf@gnu.org." >&5
14409echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14410whose name does not start with the host triplet. If you think this
14411configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14412ac_tool_warned=yes ;;
14413esac
14414 RANLIB=$ac_ct_RANLIB
14415 fi
John Criswell7a73b802003-06-30 21:59:07 +000014416else
14417 RANLIB="$ac_cv_prog_RANLIB"
14418fi
14419
14420if test -n "$ac_tool_prefix"; then
14421 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14422set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014425if test "${ac_cv_prog_STRIP+set}" = set; then
14426 echo $ECHO_N "(cached) $ECHO_C" >&6
14427else
14428 if test -n "$STRIP"; then
14429 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14430else
14431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14432for as_dir in $PATH
14433do
14434 IFS=$as_save_IFS
14435 test -z "$as_dir" && as_dir=.
14436 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014437 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 +000014438 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14440 break 2
14441 fi
14442done
14443done
Reid Spencera773bd52006-08-04 18:18:08 +000014444IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014445
14446fi
14447fi
14448STRIP=$ac_cv_prog_STRIP
14449if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014450 { echo "$as_me:$LINENO: result: $STRIP" >&5
14451echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014452else
Reid Spencera773bd52006-08-04 18:18:08 +000014453 { echo "$as_me:$LINENO: result: no" >&5
14454echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014455fi
14456
Reid Spencera773bd52006-08-04 18:18:08 +000014457
John Criswell7a73b802003-06-30 21:59:07 +000014458fi
14459if test -z "$ac_cv_prog_STRIP"; then
14460 ac_ct_STRIP=$STRIP
14461 # Extract the first word of "strip", so it can be a program name with args.
14462set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014465if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14466 echo $ECHO_N "(cached) $ECHO_C" >&6
14467else
14468 if test -n "$ac_ct_STRIP"; then
14469 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14470else
14471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14472for as_dir in $PATH
14473do
14474 IFS=$as_save_IFS
14475 test -z "$as_dir" && as_dir=.
14476 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014477 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 +000014478 ac_cv_prog_ac_ct_STRIP="strip"
14479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14480 break 2
14481 fi
14482done
14483done
Reid Spencera773bd52006-08-04 18:18:08 +000014484IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014485
John Criswell7a73b802003-06-30 21:59:07 +000014486fi
14487fi
14488ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14489if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014490 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14491echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014492else
Reid Spencera773bd52006-08-04 18:18:08 +000014493 { echo "$as_me:$LINENO: result: no" >&5
14494echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014495fi
14496
Reid Spencera773bd52006-08-04 18:18:08 +000014497 if test "x$ac_ct_STRIP" = x; then
14498 STRIP=":"
14499 else
14500 case $cross_compiling:$ac_tool_warned in
14501yes:)
14502{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14503whose name does not start with the host triplet. If you think this
14504configuration is useful to you, please write to autoconf@gnu.org." >&5
14505echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14506whose name does not start with the host triplet. If you think this
14507configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14508ac_tool_warned=yes ;;
14509esac
14510 STRIP=$ac_ct_STRIP
14511 fi
John Criswell7a73b802003-06-30 21:59:07 +000014512else
14513 STRIP="$ac_cv_prog_STRIP"
14514fi
14515
14516
John Criswell7a73b802003-06-30 21:59:07 +000014517old_CC="$CC"
14518old_CFLAGS="$CFLAGS"
14519
14520# Set sane defaults for various variables
14521test -z "$AR" && AR=ar
14522test -z "$AR_FLAGS" && AR_FLAGS=cru
14523test -z "$AS" && AS=as
14524test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014525test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014526test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014527test -z "$DLLTOOL" && DLLTOOL=dlltool
14528test -z "$LD" && LD=ld
14529test -z "$LN_S" && LN_S="ln -s"
14530test -z "$MAGIC_CMD" && MAGIC_CMD=file
14531test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014532test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014533test -z "$OBJDUMP" && OBJDUMP=objdump
14534test -z "$RANLIB" && RANLIB=:
14535test -z "$STRIP" && STRIP=:
14536test -z "$ac_objext" && ac_objext=o
14537
John Criswell7a73b802003-06-30 21:59:07 +000014538# Determine commands to create old-style static archives.
14539old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14540old_postinstall_cmds='chmod 644 $oldlib'
14541old_postuninstall_cmds=
14542
14543if test -n "$RANLIB"; then
14544 case $host_os in
14545 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014546 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014547 ;;
14548 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014549 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014550 ;;
14551 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014552 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014553fi
14554
Reid Spencera773bd52006-08-04 18:18:08 +000014555for cc_temp in $compiler""; do
14556 case $cc_temp in
14557 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14558 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14559 \-*) ;;
14560 *) break;;
14561 esac
14562done
14563cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14564
Reid Spencer2706f8c2004-09-19 23:53:36 +000014565
John Criswell47fdd832003-07-14 16:52:07 +000014566# Only perform the check for file, if the check method requires it
14567case $deplibs_check_method in
14568file_magic*)
14569 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014570 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14571echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014572if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14573 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014574else
John Criswell47fdd832003-07-14 16:52:07 +000014575 case $MAGIC_CMD in
14576[\\/*] | ?:[\\/]*)
14577 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14578 ;;
14579*)
14580 lt_save_MAGIC_CMD="$MAGIC_CMD"
14581 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14582 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14583 for ac_dir in $ac_dummy; do
14584 IFS="$lt_save_ifs"
14585 test -z "$ac_dir" && ac_dir=.
14586 if test -f $ac_dir/${ac_tool_prefix}file; then
14587 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14588 if test -n "$file_magic_test_file"; then
14589 case $deplibs_check_method in
14590 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014591 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014592 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14593 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14594 $EGREP "$file_magic_regex" > /dev/null; then
14595 :
14596 else
14597 cat <<EOF 1>&2
14598
14599*** Warning: the command libtool uses to detect shared libraries,
14600*** $file_magic_cmd, produces output that libtool cannot recognize.
14601*** The result is that libtool may fail to recognize shared libraries
14602*** as such. This will affect the creation of libtool libraries that
14603*** depend on shared libraries, but programs linked with such libtool
14604*** libraries will work regardless of this problem. Nevertheless, you
14605*** may want to report the problem to your system manager and/or to
14606*** bug-libtool@gnu.org
14607
14608EOF
14609 fi ;;
14610 esac
14611 fi
14612 break
14613 fi
14614 done
14615 IFS="$lt_save_ifs"
14616 MAGIC_CMD="$lt_save_MAGIC_CMD"
14617 ;;
14618esac
John Criswell7a73b802003-06-30 21:59:07 +000014619fi
John Criswell7a73b802003-06-30 21:59:07 +000014620
John Criswell47fdd832003-07-14 16:52:07 +000014621MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14622if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014623 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14624echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014625else
Reid Spencera773bd52006-08-04 18:18:08 +000014626 { echo "$as_me:$LINENO: result: no" >&5
14627echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014628fi
John Criswell7a73b802003-06-30 21:59:07 +000014629
John Criswell47fdd832003-07-14 16:52:07 +000014630if test -z "$lt_cv_path_MAGIC_CMD"; then
14631 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014632 { echo "$as_me:$LINENO: checking for file" >&5
14633echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014634if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14635 echo $ECHO_N "(cached) $ECHO_C" >&6
14636else
14637 case $MAGIC_CMD in
14638[\\/*] | ?:[\\/]*)
14639 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14640 ;;
14641*)
14642 lt_save_MAGIC_CMD="$MAGIC_CMD"
14643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14644 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14645 for ac_dir in $ac_dummy; do
14646 IFS="$lt_save_ifs"
14647 test -z "$ac_dir" && ac_dir=.
14648 if test -f $ac_dir/file; then
14649 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14650 if test -n "$file_magic_test_file"; then
14651 case $deplibs_check_method in
14652 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014653 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014654 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14655 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14656 $EGREP "$file_magic_regex" > /dev/null; then
14657 :
14658 else
14659 cat <<EOF 1>&2
14660
14661*** Warning: the command libtool uses to detect shared libraries,
14662*** $file_magic_cmd, produces output that libtool cannot recognize.
14663*** The result is that libtool may fail to recognize shared libraries
14664*** as such. This will affect the creation of libtool libraries that
14665*** depend on shared libraries, but programs linked with such libtool
14666*** libraries will work regardless of this problem. Nevertheless, you
14667*** may want to report the problem to your system manager and/or to
14668*** bug-libtool@gnu.org
14669
14670EOF
14671 fi ;;
14672 esac
14673 fi
14674 break
14675 fi
14676 done
14677 IFS="$lt_save_ifs"
14678 MAGIC_CMD="$lt_save_MAGIC_CMD"
14679 ;;
14680esac
14681fi
14682
14683MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14684if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014685 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14686echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014687else
Reid Spencera773bd52006-08-04 18:18:08 +000014688 { echo "$as_me:$LINENO: result: no" >&5
14689echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014690fi
14691
14692 else
14693 MAGIC_CMD=:
14694 fi
14695fi
14696
14697 fi
14698 ;;
14699esac
14700
Reid Spencer17795972004-11-18 09:47:37 +000014701enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014702enable_win32_dll=no
14703
Reid Spencera773bd52006-08-04 18:18:08 +000014704# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014705if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014706 enableval=$enable_libtool_lock;
14707fi
John Criswell47fdd832003-07-14 16:52:07 +000014708
John Criswell47fdd832003-07-14 16:52:07 +000014709test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14710
John Criswell7a73b802003-06-30 21:59:07 +000014711
Reid Spencera773bd52006-08-04 18:18:08 +000014712# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014713if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014714 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014715else
14716 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014717fi
14718
John Criswell7a73b802003-06-30 21:59:07 +000014719test -z "$pic_mode" && pic_mode=default
14720
John Criswell47fdd832003-07-14 16:52:07 +000014721# Use C for the default configuration in the libtool script
14722tagname=
14723lt_save_CC="$CC"
14724ac_ext=c
14725ac_cpp='$CPP $CPPFLAGS'
14726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14728ac_compiler_gnu=$ac_cv_c_compiler_gnu
14729
14730
14731# Source file extension for C test sources.
14732ac_ext=c
14733
14734# Object file extension for compiled C test sources.
14735objext=o
14736objext=$objext
14737
14738# Code to be used in simple compile tests
14739lt_simple_compile_test_code="int some_variable = 0;\n"
14740
14741# Code to be used in simple link tests
14742lt_simple_link_test_code='int main(){return(0);}\n'
14743
14744
14745# If no C compiler was specified, use CC.
14746LTCC=${LTCC-"$CC"}
14747
Reid Spencera773bd52006-08-04 18:18:08 +000014748# If no C compiler flags were specified, use CFLAGS.
14749LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14750
John Criswell47fdd832003-07-14 16:52:07 +000014751# Allow CC to be a program name with arguments.
14752compiler=$CC
14753
14754
Reid Spencera773bd52006-08-04 18:18:08 +000014755# save warnings/boilerplate of simple test code
14756ac_outfile=conftest.$ac_objext
14757printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14758eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14759_lt_compiler_boilerplate=`cat conftest.err`
14760$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014761
Reid Spencera773bd52006-08-04 18:18:08 +000014762ac_outfile=conftest.$ac_objext
14763printf "$lt_simple_link_test_code" >conftest.$ac_ext
14764eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14765_lt_linker_boilerplate=`cat conftest.err`
14766$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014767
14768
John Criswell47fdd832003-07-14 16:52:07 +000014769
14770lt_prog_compiler_no_builtin_flag=
14771
14772if test "$GCC" = yes; then
14773 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14774
Reid Spencer2706f8c2004-09-19 23:53:36 +000014775
Reid Spencera773bd52006-08-04 18:18:08 +000014776{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14777echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014778if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14780else
14781 lt_cv_prog_compiler_rtti_exceptions=no
14782 ac_outfile=conftest.$ac_objext
14783 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14784 lt_compiler_flag="-fno-rtti -fno-exceptions"
14785 # Insert the option either (1) after the last *FLAGS variable, or
14786 # (2) before a word containing "conftest.", or (3) at the end.
14787 # Note that $ac_compile itself does not contain backslashes and begins
14788 # with a dollar sign (not a hyphen), so the echo should work correctly.
14789 # The option is referenced via a variable to avoid confusing sed.
14790 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14793 -e 's:$: $lt_compiler_flag:'`
Shantonu Sen7e836972009-08-11 13:39:52 +000014794 (eval echo "\"\$as_me:14794: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014795 (eval "$lt_compile" 2>conftest.err)
14796 ac_status=$?
14797 cat conftest.err >&5
Shantonu Sen7e836972009-08-11 13:39:52 +000014798 echo "$as_me:14798: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014799 if (exit $ac_status) && test -s "$ac_outfile"; then
14800 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014801 # So say no if there are warnings other than the usual output.
14802 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14804 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014805 lt_cv_prog_compiler_rtti_exceptions=yes
14806 fi
14807 fi
14808 $rm conftest*
14809
14810fi
Reid Spencera773bd52006-08-04 18:18:08 +000014811{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14812echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014813
14814if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14815 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14816else
14817 :
14818fi
14819
14820fi
14821
14822lt_prog_compiler_wl=
14823lt_prog_compiler_pic=
14824lt_prog_compiler_static=
14825
Reid Spencera773bd52006-08-04 18:18:08 +000014826{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14827echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014828
14829 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014830 lt_prog_compiler_wl='-Wl,'
14831 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014832
14833 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014834 aix*)
14835 # All AIX code is PIC.
14836 if test "$host_cpu" = ia64; then
14837 # AIX 5 now supports IA64 processor
14838 lt_prog_compiler_static='-Bstatic'
14839 fi
John Criswell7a73b802003-06-30 21:59:07 +000014840 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014841
John Criswell7a73b802003-06-30 21:59:07 +000014842 amigaos*)
14843 # FIXME: we need at least 68020 code to build shared libraries, but
14844 # adding the `-m68020' flag to GCC prevents building anything better,
14845 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014846 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014847 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014848
14849 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014850 # PIC is the default for these OSes.
14851 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014852
14853 mingw* | pw32* | os2*)
14854 # This hack is so that the source file can tell whether it is being
14855 # built for inclusion in a dll (and should export symbols for example).
14856 lt_prog_compiler_pic='-DDLL_EXPORT'
14857 ;;
14858
John Criswell7a73b802003-06-30 21:59:07 +000014859 darwin* | rhapsody*)
14860 # PIC is the default on this platform
14861 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014862 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014863 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014864
Reid Spencera773bd52006-08-04 18:18:08 +000014865 interix3*)
14866 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14867 # Instead, we relocate shared libraries at runtime.
14868 ;;
14869
John Criswell47fdd832003-07-14 16:52:07 +000014870 msdosdjgpp*)
14871 # Just because we use GCC doesn't mean we suddenly get shared libraries
14872 # on systems that don't support them.
14873 lt_prog_compiler_can_build_shared=no
14874 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014875 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014876
John Criswell7a73b802003-06-30 21:59:07 +000014877 sysv4*MP*)
14878 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014879 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014880 fi
14881 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014882
14883 hpux*)
14884 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14885 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014886 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014887 hppa*64*|ia64*)
14888 # +Z the default
14889 ;;
14890 *)
14891 lt_prog_compiler_pic='-fPIC'
14892 ;;
14893 esac
14894 ;;
14895
John Criswell7a73b802003-06-30 21:59:07 +000014896 *)
John Criswell47fdd832003-07-14 16:52:07 +000014897 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014898 ;;
14899 esac
14900 else
John Criswell47fdd832003-07-14 16:52:07 +000014901 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014902 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014903 aix*)
14904 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014905 if test "$host_cpu" = ia64; then
14906 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014907 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014908 else
John Criswell47fdd832003-07-14 16:52:07 +000014909 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014910 fi
14911 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014912 darwin*)
14913 # PIC is the default on this platform
14914 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014915 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014916 xlc*)
14917 lt_prog_compiler_pic='-qnocommon'
14918 lt_prog_compiler_wl='-Wl,'
14919 ;;
14920 esac
14921 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014922
John Criswell47fdd832003-07-14 16:52:07 +000014923 mingw* | pw32* | os2*)
14924 # This hack is so that the source file can tell whether it is being
14925 # built for inclusion in a dll (and should export symbols for example).
14926 lt_prog_compiler_pic='-DDLL_EXPORT'
14927 ;;
14928
John Criswell7a73b802003-06-30 21:59:07 +000014929 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014930 lt_prog_compiler_wl='-Wl,'
14931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14932 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014933 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014934 hppa*64*|ia64*)
14935 # +Z the default
14936 ;;
14937 *)
14938 lt_prog_compiler_pic='+Z'
14939 ;;
14940 esac
14941 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14942 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014943 ;;
14944
John Criswell47fdd832003-07-14 16:52:07 +000014945 irix5* | irix6* | nonstopux*)
14946 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014947 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014948 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014949 ;;
14950
14951 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014952 lt_prog_compiler_pic='-KPIC'
14953 lt_prog_compiler_static='-Bstatic'
14954 ;;
14955
14956 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014957 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014958 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014959 lt_prog_compiler_wl='-Wl,'
14960 lt_prog_compiler_pic='-KPIC'
14961 lt_prog_compiler_static='-static'
14962 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014963 pgcc* | pgf77* | pgf90* | pgf95*)
14964 # Portland Group compilers (*not* the Pentium gcc compiler,
14965 # which looks to be a dead project)
14966 lt_prog_compiler_wl='-Wl,'
14967 lt_prog_compiler_pic='-fpic'
14968 lt_prog_compiler_static='-Bstatic'
14969 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014970 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014971 lt_prog_compiler_wl='-Wl,'
14972 # All Alpha code is PIC.
14973 lt_prog_compiler_static='-non_shared'
14974 ;;
14975 esac
John Criswell7a73b802003-06-30 21:59:07 +000014976 ;;
14977
14978 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014979 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014980 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014981 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014982 ;;
14983
John Criswell7a73b802003-06-30 21:59:07 +000014984 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014985 lt_prog_compiler_pic='-KPIC'
14986 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014987 case $cc_basename in
14988 f77* | f90* | f95*)
14989 lt_prog_compiler_wl='-Qoption ld ';;
14990 *)
14991 lt_prog_compiler_wl='-Wl,';;
14992 esac
John Criswell7a73b802003-06-30 21:59:07 +000014993 ;;
14994
14995 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014996 lt_prog_compiler_wl='-Qoption ld '
14997 lt_prog_compiler_pic='-PIC'
14998 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014999 ;;
15000
Reid Spencera773bd52006-08-04 18:18:08 +000015001 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000015002 lt_prog_compiler_wl='-Wl,'
15003 lt_prog_compiler_pic='-KPIC'
15004 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015005 ;;
15006
15007 sysv4*MP*)
15008 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000015009 lt_prog_compiler_pic='-Kconform_pic'
15010 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015011 fi
15012 ;;
15013
Reid Spencera773bd52006-08-04 18:18:08 +000015014 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15015 lt_prog_compiler_wl='-Wl,'
15016 lt_prog_compiler_pic='-KPIC'
15017 lt_prog_compiler_static='-Bstatic'
15018 ;;
15019
15020 unicos*)
15021 lt_prog_compiler_wl='-Wl,'
15022 lt_prog_compiler_can_build_shared=no
15023 ;;
15024
John Criswell47fdd832003-07-14 16:52:07 +000015025 uts4*)
15026 lt_prog_compiler_pic='-pic'
15027 lt_prog_compiler_static='-Bstatic'
15028 ;;
15029
John Criswell7a73b802003-06-30 21:59:07 +000015030 *)
John Criswell47fdd832003-07-14 16:52:07 +000015031 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015032 ;;
15033 esac
15034 fi
15035
Reid Spencera773bd52006-08-04 18:18:08 +000015036{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15037echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015038
John Criswell47fdd832003-07-14 16:52:07 +000015039#
15040# Check to make sure the PIC flag actually works.
15041#
15042if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015043
Reid Spencera773bd52006-08-04 18:18:08 +000015044{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15045echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015046if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015047 echo $ECHO_N "(cached) $ECHO_C" >&6
15048else
John Criswell47fdd832003-07-14 16:52:07 +000015049 lt_prog_compiler_pic_works=no
15050 ac_outfile=conftest.$ac_objext
15051 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15052 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15053 # Insert the option either (1) after the last *FLAGS variable, or
15054 # (2) before a word containing "conftest.", or (3) at the end.
15055 # Note that $ac_compile itself does not contain backslashes and begins
15056 # with a dollar sign (not a hyphen), so the echo should work correctly.
15057 # The option is referenced via a variable to avoid confusing sed.
15058 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15061 -e 's:$: $lt_compiler_flag:'`
Shantonu Sen7e836972009-08-11 13:39:52 +000015062 (eval echo "\"\$as_me:15062: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015063 (eval "$lt_compile" 2>conftest.err)
15064 ac_status=$?
15065 cat conftest.err >&5
Shantonu Sen7e836972009-08-11 13:39:52 +000015066 echo "$as_me:15066: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015067 if (exit $ac_status) && test -s "$ac_outfile"; then
15068 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015069 # So say no if there are warnings other than the usual output.
15070 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15071 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15072 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015073 lt_prog_compiler_pic_works=yes
15074 fi
15075 fi
15076 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015077
John Criswell47fdd832003-07-14 16:52:07 +000015078fi
Reid Spencera773bd52006-08-04 18:18:08 +000015079{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15080echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015081
John Criswell47fdd832003-07-14 16:52:07 +000015082if test x"$lt_prog_compiler_pic_works" = xyes; then
15083 case $lt_prog_compiler_pic in
15084 "" | " "*) ;;
15085 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15086 esac
John Criswell7a73b802003-06-30 21:59:07 +000015087else
John Criswell47fdd832003-07-14 16:52:07 +000015088 lt_prog_compiler_pic=
15089 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015090fi
15091
John Criswell7a73b802003-06-30 21:59:07 +000015092fi
Reid Spencera773bd52006-08-04 18:18:08 +000015093case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015094 # For platforms which do not support PIC, -DPIC is meaningless:
15095 *djgpp*)
15096 lt_prog_compiler_pic=
15097 ;;
15098 *)
15099 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15100 ;;
15101esac
John Criswell7a73b802003-06-30 21:59:07 +000015102
Reid Spencera773bd52006-08-04 18:18:08 +000015103#
15104# Check to make sure the static flag actually works.
15105#
15106wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15107{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15108echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15109if test "${lt_prog_compiler_static_works+set}" = set; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15111else
15112 lt_prog_compiler_static_works=no
15113 save_LDFLAGS="$LDFLAGS"
15114 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15115 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15116 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15117 # The linker can only warn and ignore the option if not recognized
15118 # So say no if there are warnings
15119 if test -s conftest.err; then
15120 # Append any errors to the config.log.
15121 cat conftest.err 1>&5
15122 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15123 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15124 if diff conftest.exp conftest.er2 >/dev/null; then
15125 lt_prog_compiler_static_works=yes
15126 fi
15127 else
15128 lt_prog_compiler_static_works=yes
15129 fi
15130 fi
15131 $rm conftest*
15132 LDFLAGS="$save_LDFLAGS"
15133
15134fi
15135{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15136echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15137
15138if test x"$lt_prog_compiler_static_works" = xyes; then
15139 :
15140else
15141 lt_prog_compiler_static=
15142fi
15143
15144
15145{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15146echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015147if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015148 echo $ECHO_N "(cached) $ECHO_C" >&6
15149else
John Criswell47fdd832003-07-14 16:52:07 +000015150 lt_cv_prog_compiler_c_o=no
15151 $rm -r conftest 2>/dev/null
15152 mkdir conftest
15153 cd conftest
15154 mkdir out
15155 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015156
John Criswell47fdd832003-07-14 16:52:07 +000015157 lt_compiler_flag="-o out/conftest2.$ac_objext"
15158 # Insert the option either (1) after the last *FLAGS variable, or
15159 # (2) before a word containing "conftest.", or (3) at the end.
15160 # Note that $ac_compile itself does not contain backslashes and begins
15161 # with a dollar sign (not a hyphen), so the echo should work correctly.
15162 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15165 -e 's:$: $lt_compiler_flag:'`
Shantonu Sen7e836972009-08-11 13:39:52 +000015166 (eval echo "\"\$as_me:15166: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015167 (eval "$lt_compile" 2>out/conftest.err)
15168 ac_status=$?
15169 cat out/conftest.err >&5
Shantonu Sen7e836972009-08-11 13:39:52 +000015170 echo "$as_me:15170: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015171 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15172 then
15173 # The compiler can only warn and ignore the option if not recognized
15174 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015175 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15176 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15177 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015178 lt_cv_prog_compiler_c_o=yes
15179 fi
15180 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015181 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015182 $rm conftest*
15183 # SGI C++ compiler will create directory out/ii_files/ for
15184 # template instantiation
15185 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15186 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015187 cd ..
15188 rmdir conftest
15189 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015190
15191fi
Reid Spencera773bd52006-08-04 18:18:08 +000015192{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15193echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015194
John Criswell7a73b802003-06-30 21:59:07 +000015195
John Criswell7a73b802003-06-30 21:59:07 +000015196hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015197if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015198 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015199 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15200echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015201 hard_links=yes
15202 $rm conftest*
15203 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15204 touch conftest.a
15205 ln conftest.a conftest.b 2>&5 || hard_links=no
15206 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015207 { echo "$as_me:$LINENO: result: $hard_links" >&5
15208echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015209 if test "$hard_links" = no; then
15210 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15211echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15212 need_locks=warn
15213 fi
15214else
15215 need_locks=no
15216fi
John Criswell7a73b802003-06-30 21:59:07 +000015217
Reid Spencera773bd52006-08-04 18:18:08 +000015218{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15219echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015220
15221 runpath_var=
15222 allow_undefined_flag=
15223 enable_shared_with_static_runtimes=no
15224 archive_cmds=
15225 archive_expsym_cmds=
15226 old_archive_From_new_cmds=
15227 old_archive_from_expsyms_cmds=
15228 export_dynamic_flag_spec=
15229 whole_archive_flag_spec=
15230 thread_safe_flag_spec=
15231 hardcode_libdir_flag_spec=
15232 hardcode_libdir_flag_spec_ld=
15233 hardcode_libdir_separator=
15234 hardcode_direct=no
15235 hardcode_minus_L=no
15236 hardcode_shlibpath_var=unsupported
15237 link_all_deplibs=unknown
15238 hardcode_automatic=no
15239 module_cmds=
15240 module_expsym_cmds=
15241 always_export_symbols=no
15242 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15243 # include_expsyms should be a list of space-separated symbols to be *always*
15244 # included in the symbol list
15245 include_expsyms=
15246 # exclude_expsyms can be an extended regexp of symbols to exclude
15247 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15248 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15249 # as well as any symbol that contains `d'.
15250 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15251 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15252 # platforms (ab)use it in PIC code, but their linkers get confused if
15253 # the symbol is explicitly referenced. Since portable code cannot
15254 # rely on this symbol name, it's probably fine to never include it in
15255 # preloaded symbol tables.
15256 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015257 # Just being paranoid about ensuring that cc_basename is set.
15258 for cc_temp in $compiler""; do
15259 case $cc_temp in
15260 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15261 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15262 \-*) ;;
15263 *) break;;
15264 esac
15265done
15266cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015267
15268 case $host_os in
15269 cygwin* | mingw* | pw32*)
15270 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15271 # When not using gcc, we currently assume that we are using
15272 # Microsoft Visual C++.
15273 if test "$GCC" != yes; then
15274 with_gnu_ld=no
15275 fi
15276 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015277 interix*)
15278 # we just hope/assume this is gcc and not c89 (= MSVC++)
15279 with_gnu_ld=yes
15280 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015281 openbsd*)
15282 with_gnu_ld=no
15283 ;;
15284 esac
15285
15286 ld_shlibs=yes
15287 if test "$with_gnu_ld" = yes; then
15288 # If archive_cmds runs LD, not CC, wlarc should be empty
15289 wlarc='${wl}'
15290
Reid Spencera773bd52006-08-04 18:18:08 +000015291 # Set some defaults for GNU ld with shared library support. These
15292 # are reset later if shared libraries are not supported. Putting them
15293 # here allows them to be overridden if necessary.
15294 runpath_var=LD_RUN_PATH
15295 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15296 export_dynamic_flag_spec='${wl}--export-dynamic'
15297 # ancient GNU ld didn't support --whole-archive et. al.
15298 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15299 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15300 else
15301 whole_archive_flag_spec=
15302 fi
15303 supports_anon_versioning=no
15304 case `$LD -v 2>/dev/null` in
15305 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15306 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15307 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15308 *\ 2.11.*) ;; # other 2.11 versions
15309 *) supports_anon_versioning=yes ;;
15310 esac
15311
John Criswell47fdd832003-07-14 16:52:07 +000015312 # See if GNU ld supports shared libraries.
15313 case $host_os in
15314 aix3* | aix4* | aix5*)
15315 # On AIX/PPC, the GNU linker is very broken
15316 if test "$host_cpu" != ia64; then
15317 ld_shlibs=no
15318 cat <<EOF 1>&2
15319
15320*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15321*** to be unable to reliably create shared libraries on AIX.
15322*** Therefore, libtool is disabling shared libraries support. If you
15323*** really care for shared libraries, you may want to modify your PATH
15324*** so that a non-GNU linker is found, and then restart.
15325
15326EOF
15327 fi
15328 ;;
15329
15330 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015331 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 +000015332 hardcode_libdir_flag_spec='-L$libdir'
15333 hardcode_minus_L=yes
15334
15335 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15336 # that the semantics of dynamic libraries on AmigaOS, at least up
15337 # to version 4, is to share data among multiple programs linked
15338 # with the same dynamic library. Since this doesn't match the
15339 # behavior of shared libraries on other platforms, we can't use
15340 # them.
15341 ld_shlibs=no
15342 ;;
15343
15344 beos*)
15345 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15346 allow_undefined_flag=unsupported
15347 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15348 # support --undefined. This deserves some investigation. FIXME
15349 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15350 else
15351 ld_shlibs=no
15352 fi
15353 ;;
15354
15355 cygwin* | mingw* | pw32*)
15356 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15357 # as there is no search path for DLLs.
15358 hardcode_libdir_flag_spec='-L$libdir'
15359 allow_undefined_flag=unsupported
15360 always_export_symbols=no
15361 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015362 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 +000015363
15364 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015365 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 +000015366 # If the export-symbols file already is a .def file (1st line
15367 # is EXPORTS), use it as is; otherwise, prepend...
15368 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15369 cp $export_symbols $output_objdir/$soname.def;
15370 else
15371 echo EXPORTS > $output_objdir/$soname.def;
15372 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015373 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015374 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15375 else
15376 ld_shlibs=no
15377 fi
15378 ;;
15379
15380 interix3*)
15381 hardcode_direct=no
15382 hardcode_shlibpath_var=no
15383 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15384 export_dynamic_flag_spec='${wl}-E'
15385 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15386 # Instead, shared libraries are loaded at an image base (0x10000000 by
15387 # default) and relocated if they conflict, which is a slow very memory
15388 # consuming and fragmenting process. To avoid this, we pick a random,
15389 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15390 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15391 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15392 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'
15393 ;;
15394
15395 linux*)
15396 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15397 tmp_addflag=
15398 case $cc_basename,$host_cpu in
15399 pgcc*) # Portland Group C compiler
15400 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'
15401 tmp_addflag=' $pic_flag'
15402 ;;
15403 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15404 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'
15405 tmp_addflag=' $pic_flag -Mnomain' ;;
15406 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15407 tmp_addflag=' -i_dynamic' ;;
15408 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15409 tmp_addflag=' -i_dynamic -nofor_main' ;;
15410 ifc* | ifort*) # Intel Fortran compiler
15411 tmp_addflag=' -nofor_main' ;;
15412 esac
15413 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15414
15415 if test $supports_anon_versioning = yes; then
15416 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15417 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15418 $echo "local: *; };" >> $output_objdir/$libname.ver~
15419 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15420 fi
John Criswell47fdd832003-07-14 16:52:07 +000015421 else
15422 ld_shlibs=no
15423 fi
15424 ;;
15425
15426 netbsd*)
15427 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15428 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15429 wlarc=
15430 else
15431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15432 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15433 fi
15434 ;;
15435
Reid Spencera773bd52006-08-04 18:18:08 +000015436 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015437 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15438 ld_shlibs=no
15439 cat <<EOF 1>&2
15440
15441*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15442*** create shared libraries on Solaris systems. Therefore, libtool
15443*** is disabling shared libraries support. We urge you to upgrade GNU
15444*** binutils to release 2.9.1 or newer. Another option is to modify
15445*** your PATH or compiler configuration so that the native linker is
15446*** used, and then restart.
15447
15448EOF
15449 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15451 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15452 else
15453 ld_shlibs=no
15454 fi
15455 ;;
15456
Reid Spencera773bd52006-08-04 18:18:08 +000015457 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15458 case `$LD -v 2>&1` in
15459 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15460 ld_shlibs=no
15461 cat <<_LT_EOF 1>&2
15462
15463*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15464*** reliably create shared libraries on SCO systems. Therefore, libtool
15465*** is disabling shared libraries support. We urge you to upgrade GNU
15466*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15467*** your PATH or compiler configuration so that the native linker is
15468*** used, and then restart.
15469
15470_LT_EOF
15471 ;;
15472 *)
15473 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15474 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15476 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15477 else
15478 ld_shlibs=no
15479 fi
15480 ;;
15481 esac
15482 ;;
15483
John Criswell47fdd832003-07-14 16:52:07 +000015484 sunos4*)
15485 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15486 wlarc=
15487 hardcode_direct=yes
15488 hardcode_shlibpath_var=no
15489 ;;
15490
15491 *)
15492 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15494 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15495 else
15496 ld_shlibs=no
15497 fi
15498 ;;
15499 esac
15500
Reid Spencera773bd52006-08-04 18:18:08 +000015501 if test "$ld_shlibs" = no; then
15502 runpath_var=
15503 hardcode_libdir_flag_spec=
15504 export_dynamic_flag_spec=
15505 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015506 fi
15507 else
15508 # PORTME fill in a description of your system's linker (not GNU ld)
15509 case $host_os in
15510 aix3*)
15511 allow_undefined_flag=unsupported
15512 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015513 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 +000015514 # Note: this linker hardcodes the directories in LIBPATH if there
15515 # are no directories specified by -L.
15516 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015517 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015518 # Neither direct hardcoding nor static linking is supported with a
15519 # broken collect2.
15520 hardcode_direct=unsupported
15521 fi
15522 ;;
15523
15524 aix4* | aix5*)
15525 if test "$host_cpu" = ia64; then
15526 # On IA64, the linker does run time linking by default, so we don't
15527 # have to do anything special.
15528 aix_use_runtimelinking=no
15529 exp_sym_flag='-Bexport'
15530 no_entry_flag=""
15531 else
15532 # If we're using GNU nm, then we don't want the "-C" option.
15533 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15534 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15535 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'
15536 else
15537 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'
15538 fi
15539 aix_use_runtimelinking=no
15540
15541 # Test if we are trying to use run time linking or normal
15542 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15543 # need to do runtime linking.
15544 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15545 for ld_flag in $LDFLAGS; do
15546 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15547 aix_use_runtimelinking=yes
15548 break
15549 fi
15550 done
Reid Spencera773bd52006-08-04 18:18:08 +000015551 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015552 esac
15553
15554 exp_sym_flag='-bexport'
15555 no_entry_flag='-bnoentry'
15556 fi
15557
15558 # When large executables or shared objects are built, AIX ld can
15559 # have problems creating the table of contents. If linking a library
15560 # or program results in "error TOC overflow" add -mminimal-toc to
15561 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15562 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15563
15564 archive_cmds=''
15565 hardcode_direct=yes
15566 hardcode_libdir_separator=':'
15567 link_all_deplibs=yes
15568
15569 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015570 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015571 # We only want to do this on AIX 4.2 and lower, the check
15572 # below for broken collect2 doesn't work under 4.3+
15573 collect2name=`${CC} -print-prog-name=collect2`
15574 if test -f "$collect2name" && \
15575 strings "$collect2name" | grep resolve_lib_name >/dev/null
15576 then
15577 # We have reworked collect2
15578 hardcode_direct=yes
15579 else
15580 # We have old collect2
15581 hardcode_direct=unsupported
15582 # It fails to find uninstalled libraries when the uninstalled
15583 # path is not listed in the libpath. Setting hardcode_minus_L
15584 # to unsupported forces relinking
15585 hardcode_minus_L=yes
15586 hardcode_libdir_flag_spec='-L$libdir'
15587 hardcode_libdir_separator=
15588 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015589 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015590 esac
15591 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015592 if test "$aix_use_runtimelinking" = yes; then
15593 shared_flag="$shared_flag "'${wl}-G'
15594 fi
John Criswell47fdd832003-07-14 16:52:07 +000015595 else
15596 # not using gcc
15597 if test "$host_cpu" = ia64; then
15598 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15599 # chokes on -Wl,-G. The following line is correct:
15600 shared_flag='-G'
15601 else
Reid Spencera773bd52006-08-04 18:18:08 +000015602 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015603 shared_flag='${wl}-G'
15604 else
15605 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015606 fi
John Criswell47fdd832003-07-14 16:52:07 +000015607 fi
15608 fi
15609
15610 # It seems that -bexpall does not export symbols beginning with
15611 # underscore (_), so it is better to generate a list of symbols to export.
15612 always_export_symbols=yes
15613 if test "$aix_use_runtimelinking" = yes; then
15614 # Warning - without using the other runtime loading flags (-brtl),
15615 # -berok will link without error, but may produce a broken library.
15616 allow_undefined_flag='-berok'
15617 # Determine the default libpath from the value encoded in an empty executable.
15618 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015619/* confdefs.h. */
15620_ACEOF
15621cat confdefs.h >>conftest.$ac_ext
15622cat >>conftest.$ac_ext <<_ACEOF
15623/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015624
John Criswell7a73b802003-06-30 21:59:07 +000015625int
15626main ()
15627{
John Criswell47fdd832003-07-14 16:52:07 +000015628
John Criswell7a73b802003-06-30 21:59:07 +000015629 ;
15630 return 0;
15631}
15632_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015633rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015634if { (ac_try="$ac_link"
15635case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15638esac
15639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015641 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015642 grep -v '^ *+' conftest.er1 >conftest.err
15643 rm -f conftest.er1
15644 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015646 (exit $ac_status); } &&
15647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15648 { (case "(($ac_try" in
15649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650 *) ac_try_echo=$ac_try;;
15651esac
15652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653 (eval "$ac_try") 2>&5
15654 ac_status=$?
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; } &&
15657 { ac_try='test -s conftest$ac_exeext'
15658 { (case "(($ac_try" in
15659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660 *) ac_try_echo=$ac_try;;
15661esac
15662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663 (eval "$ac_try") 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015667
John Criswell47fdd832003-07-14 16:52:07 +000015668aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15669}'`
15670# Check for a 64-bit object if we didn't find anything.
15671if 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; }
15672}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015673else
15674 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015675sed 's/^/| /' conftest.$ac_ext >&5
15676
Reid Spencera773bd52006-08-04 18:18:08 +000015677
John Criswell7a73b802003-06-30 21:59:07 +000015678fi
Reid Spencera773bd52006-08-04 18:18:08 +000015679
Bill Wendlingebcceee2009-04-18 11:20:33 +000015680rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015681 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015682if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015683
John Criswell47fdd832003-07-14 16:52:07 +000015684 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015685 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 +000015686 else
15687 if test "$host_cpu" = ia64; then
15688 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15689 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015690 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 +000015691 else
15692 # Determine the default libpath from the value encoded in an empty executable.
15693 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015694/* confdefs.h. */
15695_ACEOF
15696cat confdefs.h >>conftest.$ac_ext
15697cat >>conftest.$ac_ext <<_ACEOF
15698/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015699
John Criswell47fdd832003-07-14 16:52:07 +000015700int
15701main ()
15702{
John Criswell7a73b802003-06-30 21:59:07 +000015703
John Criswell47fdd832003-07-14 16:52:07 +000015704 ;
15705 return 0;
15706}
15707_ACEOF
15708rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015709if { (ac_try="$ac_link"
15710case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15713esac
15714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015716 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015717 grep -v '^ *+' conftest.er1 >conftest.err
15718 rm -f conftest.er1
15719 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015721 (exit $ac_status); } &&
15722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15723 { (case "(($ac_try" in
15724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725 *) ac_try_echo=$ac_try;;
15726esac
15727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15728 (eval "$ac_try") 2>&5
15729 ac_status=$?
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; } &&
15732 { ac_try='test -s conftest$ac_exeext'
15733 { (case "(($ac_try" in
15734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735 *) ac_try_echo=$ac_try;;
15736esac
15737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738 (eval "$ac_try") 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015742
John Criswell47fdd832003-07-14 16:52:07 +000015743aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15744}'`
15745# Check for a 64-bit object if we didn't find anything.
15746if 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; }
15747}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015748else
John Criswell47fdd832003-07-14 16:52:07 +000015749 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015750sed 's/^/| /' conftest.$ac_ext >&5
15751
Reid Spencera773bd52006-08-04 18:18:08 +000015752
John Criswell47fdd832003-07-14 16:52:07 +000015753fi
Reid Spencera773bd52006-08-04 18:18:08 +000015754
Bill Wendlingebcceee2009-04-18 11:20:33 +000015755rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015756 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015757if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015758
John Criswell47fdd832003-07-14 16:52:07 +000015759 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15760 # Warning - without using the other run time loading flags,
15761 # -berok will link without error, but may produce a broken library.
15762 no_undefined_flag=' ${wl}-bernotok'
15763 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015764 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015765 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015766 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015767 # This is similar to how AIX traditionally builds its shared libraries.
15768 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 +000015769 fi
15770 fi
John Criswell7a73b802003-06-30 21:59:07 +000015771 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015772
15773 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015774 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 +000015775 hardcode_libdir_flag_spec='-L$libdir'
15776 hardcode_minus_L=yes
15777 # see comment about different semantics on the GNU ld section
15778 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015779 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015780
Reid Spencer2706f8c2004-09-19 23:53:36 +000015781 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015782 export_dynamic_flag_spec=-rdynamic
15783 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015784
John Criswell47fdd832003-07-14 16:52:07 +000015785 cygwin* | mingw* | pw32*)
15786 # When not using gcc, we currently assume that we are using
15787 # Microsoft Visual C++.
15788 # hardcode_libdir_flag_spec is actually meaningless, as there is
15789 # no search path for DLLs.
15790 hardcode_libdir_flag_spec=' '
15791 allow_undefined_flag=unsupported
15792 # Tell ltmain to make .lib files, not .a files.
15793 libext=lib
15794 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015795 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015796 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015797 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015798 # The linker will automatically build a .lib file if we build a DLL.
15799 old_archive_From_new_cmds='true'
15800 # FIXME: Should let the user specify the lib program.
15801 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15802 fix_srcfile_path='`cygpath -w "$srcfile"`'
15803 enable_shared_with_static_runtimes=yes
15804 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015805
John Criswell47fdd832003-07-14 16:52:07 +000015806 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015807 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015808 rhapsody* | darwin1.[012])
15809 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15810 ;;
15811 *) # Darwin 1.3 on
15812 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15813 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15814 else
15815 case ${MACOSX_DEPLOYMENT_TARGET} in
15816 10.[012])
15817 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15818 ;;
15819 10.*)
15820 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15821 ;;
15822 esac
15823 fi
15824 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015825 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015826 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015827 hardcode_direct=no
15828 hardcode_automatic=yes
15829 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015830 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015831 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015832 if test "$GCC" = yes ; then
15833 output_verbose_link_cmd='echo'
15834 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15835 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015836 # 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 +000015837 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}'
15838 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 +000015839 else
Reid Spencera773bd52006-08-04 18:18:08 +000015840 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015841 xlc*)
15842 output_verbose_link_cmd='echo'
15843 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15844 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015845 # 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 +000015846 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}'
15847 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 +000015848 ;;
15849 *)
15850 ld_shlibs=no
15851 ;;
15852 esac
John Criswell7a73b802003-06-30 21:59:07 +000015853 fi
John Criswell47fdd832003-07-14 16:52:07 +000015854 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015855
John Criswell47fdd832003-07-14 16:52:07 +000015856 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015858 hardcode_libdir_flag_spec='-L$libdir'
15859 hardcode_shlibpath_var=no
15860 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015861
John Criswell47fdd832003-07-14 16:52:07 +000015862 freebsd1*)
15863 ld_shlibs=no
15864 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015865
John Criswell47fdd832003-07-14 16:52:07 +000015866 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15867 # support. Future versions do this automatically, but an explicit c++rt0.o
15868 # does not break anything, and helps significantly (at the cost of a little
15869 # extra space).
15870 freebsd2.2*)
15871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15872 hardcode_libdir_flag_spec='-R$libdir'
15873 hardcode_direct=yes
15874 hardcode_shlibpath_var=no
15875 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015876
John Criswell47fdd832003-07-14 16:52:07 +000015877 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15878 freebsd2*)
15879 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15880 hardcode_direct=yes
15881 hardcode_minus_L=yes
15882 hardcode_shlibpath_var=no
15883 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015884
John Criswell47fdd832003-07-14 16:52:07 +000015885 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015886 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015887 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15888 hardcode_libdir_flag_spec='-R$libdir'
15889 hardcode_direct=yes
15890 hardcode_shlibpath_var=no
15891 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015892
John Criswell47fdd832003-07-14 16:52:07 +000015893 hpux9*)
15894 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015895 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 +000015896 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015897 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 +000015898 fi
15899 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15900 hardcode_libdir_separator=:
15901 hardcode_direct=yes
15902
15903 # hardcode_minus_L: Not really in the search PATH,
15904 # but as the default location of the library.
15905 hardcode_minus_L=yes
15906 export_dynamic_flag_spec='${wl}-E'
15907 ;;
15908
Reid Spencera773bd52006-08-04 18:18:08 +000015909 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015910 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015911 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15912 else
15913 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15914 fi
15915 if test "$with_gnu_ld" = no; then
15916 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15917 hardcode_libdir_separator=:
15918
15919 hardcode_direct=yes
15920 export_dynamic_flag_spec='${wl}-E'
15921
15922 # hardcode_minus_L: Not really in the search PATH,
15923 # but as the default location of the library.
15924 hardcode_minus_L=yes
15925 fi
15926 ;;
15927
15928 hpux11*)
15929 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15930 case $host_cpu in
15931 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015932 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15933 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015934 ia64*)
15935 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15936 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015937 *)
15938 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15939 ;;
15940 esac
15941 else
Reid Spencera773bd52006-08-04 18:18:08 +000015942 case $host_cpu in
15943 hppa*64*)
15944 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15945 ;;
15946 ia64*)
15947 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015948 ;;
15949 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015950 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 +000015951 ;;
15952 esac
15953 fi
15954 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015955 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15956 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015957
Reid Spencera773bd52006-08-04 18:18:08 +000015958 case $host_cpu in
15959 hppa*64*|ia64*)
15960 hardcode_libdir_flag_spec_ld='+b $libdir'
15961 hardcode_direct=no
15962 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015963 ;;
15964 *)
John Criswell47fdd832003-07-14 16:52:07 +000015965 hardcode_direct=yes
15966 export_dynamic_flag_spec='${wl}-E'
15967
15968 # hardcode_minus_L: Not really in the search PATH,
15969 # but as the default location of the library.
15970 hardcode_minus_L=yes
15971 ;;
15972 esac
15973 fi
15974 ;;
15975
15976 irix5* | irix6* | nonstopux*)
15977 if test "$GCC" = yes; then
15978 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'
15979 else
15980 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'
15981 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15982 fi
15983 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15984 hardcode_libdir_separator=:
15985 link_all_deplibs=yes
15986 ;;
15987
15988 netbsd*)
15989 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15990 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15991 else
15992 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15993 fi
15994 hardcode_libdir_flag_spec='-R$libdir'
15995 hardcode_direct=yes
15996 hardcode_shlibpath_var=no
15997 ;;
15998
15999 newsos6)
16000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16001 hardcode_direct=yes
16002 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16003 hardcode_libdir_separator=:
16004 hardcode_shlibpath_var=no
16005 ;;
16006
16007 openbsd*)
16008 hardcode_direct=yes
16009 hardcode_shlibpath_var=no
16010 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016012 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 +000016013 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16014 export_dynamic_flag_spec='${wl}-E'
16015 else
16016 case $host_os in
16017 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16018 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16019 hardcode_libdir_flag_spec='-R$libdir'
16020 ;;
16021 *)
16022 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16023 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16024 ;;
16025 esac
16026 fi
16027 ;;
16028
16029 os2*)
16030 hardcode_libdir_flag_spec='-L$libdir'
16031 hardcode_minus_L=yes
16032 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016033 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 +000016034 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16035 ;;
16036
16037 osf3*)
16038 if test "$GCC" = yes; then
16039 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16040 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'
16041 else
16042 allow_undefined_flag=' -expect_unresolved \*'
16043 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'
16044 fi
16045 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16046 hardcode_libdir_separator=:
16047 ;;
16048
16049 osf4* | osf5*) # as osf3* with the addition of -msym flag
16050 if test "$GCC" = yes; then
16051 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16052 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'
16053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16054 else
16055 allow_undefined_flag=' -expect_unresolved \*'
16056 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 +000016057 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 +000016058 $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 +000016059
John Criswell47fdd832003-07-14 16:52:07 +000016060 # Both c and cxx compiler support -rpath directly
16061 hardcode_libdir_flag_spec='-rpath $libdir'
16062 fi
16063 hardcode_libdir_separator=:
16064 ;;
16065
John Criswell47fdd832003-07-14 16:52:07 +000016066 solaris*)
16067 no_undefined_flag=' -z text'
16068 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016069 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016070 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016071 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16072 $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 +000016073 else
Reid Spencera773bd52006-08-04 18:18:08 +000016074 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016075 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016076 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16077 $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 +000016078 fi
16079 hardcode_libdir_flag_spec='-R$libdir'
16080 hardcode_shlibpath_var=no
16081 case $host_os in
16082 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016083 *)
16084 # The compiler driver will combine linker options so we
16085 # cannot just pass the convience library names through
16086 # without $wl, iff we do not link with $LD.
16087 # Luckily, gcc supports the same syntax we need for Sun Studio.
16088 # Supported since Solaris 2.6 (maybe 2.5.1?)
16089 case $wlarc in
16090 '')
16091 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16092 *)
16093 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' ;;
16094 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016095 esac
16096 link_all_deplibs=yes
16097 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016098
John Criswell47fdd832003-07-14 16:52:07 +000016099 sunos4*)
16100 if test "x$host_vendor" = xsequent; then
16101 # Use $CC to link under sequent, because it throws in some extra .o
16102 # files that make .init and .fini sections work.
16103 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16104 else
16105 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16106 fi
16107 hardcode_libdir_flag_spec='-L$libdir'
16108 hardcode_direct=yes
16109 hardcode_minus_L=yes
16110 hardcode_shlibpath_var=no
16111 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016112
John Criswell47fdd832003-07-14 16:52:07 +000016113 sysv4)
16114 case $host_vendor in
16115 sni)
16116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16117 hardcode_direct=yes # is this really true???
16118 ;;
16119 siemens)
16120 ## LD is ld it makes a PLAMLIB
16121 ## CC just makes a GrossModule.
16122 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16123 reload_cmds='$CC -r -o $output$reload_objs'
16124 hardcode_direct=no
16125 ;;
16126 motorola)
16127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16128 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16129 ;;
16130 esac
16131 runpath_var='LD_RUN_PATH'
16132 hardcode_shlibpath_var=no
16133 ;;
16134
16135 sysv4.3*)
16136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16137 hardcode_shlibpath_var=no
16138 export_dynamic_flag_spec='-Bexport'
16139 ;;
16140
16141 sysv4*MP*)
16142 if test -d /usr/nec; then
16143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16144 hardcode_shlibpath_var=no
16145 runpath_var=LD_RUN_PATH
16146 hardcode_runpath_var=yes
16147 ld_shlibs=yes
16148 fi
16149 ;;
16150
Reid Spencera773bd52006-08-04 18:18:08 +000016151 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16152 no_undefined_flag='${wl}-z,text'
16153 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016154 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016155 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016156
John Criswell47fdd832003-07-14 16:52:07 +000016157 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016158 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16159 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 +000016160 else
Reid Spencera773bd52006-08-04 18:18:08 +000016161 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16162 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 +000016163 fi
John Criswell47fdd832003-07-14 16:52:07 +000016164 ;;
16165
Reid Spencera773bd52006-08-04 18:18:08 +000016166 sysv5* | sco3.2v5* | sco5v6*)
16167 # Note: We can NOT use -z defs as we might desire, because we do not
16168 # link with -lc, and that would cause any symbols used from libc to
16169 # always be unresolved, which means just about no library would
16170 # ever link correctly. If we're not using GNU ld we use -z text
16171 # though, which does catch some bad symbols but isn't as heavy-handed
16172 # as -z defs.
16173 no_undefined_flag='${wl}-z,text'
16174 allow_undefined_flag='${wl}-z,nodefs'
16175 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016176 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016177 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16178 hardcode_libdir_separator=':'
16179 link_all_deplibs=yes
16180 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016181 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016182
16183 if test "$GCC" = yes; then
16184 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16185 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16186 else
16187 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16188 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16189 fi
John Criswell47fdd832003-07-14 16:52:07 +000016190 ;;
16191
16192 uts4*)
16193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16194 hardcode_libdir_flag_spec='-L$libdir'
16195 hardcode_shlibpath_var=no
16196 ;;
16197
16198 *)
16199 ld_shlibs=no
16200 ;;
16201 esac
16202 fi
16203
Reid Spencera773bd52006-08-04 18:18:08 +000016204{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16205echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016206test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016207
John Criswell47fdd832003-07-14 16:52:07 +000016208#
16209# Do we need to explicitly link libc?
16210#
16211case "x$archive_cmds_need_lc" in
16212x|xyes)
16213 # Assume -lc should be added
16214 archive_cmds_need_lc=yes
16215
16216 if test "$enable_shared" = yes && test "$GCC" = yes; then
16217 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016218 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016219 # FIXME: we may have to deal with multi-command sequences.
16220 ;;
16221 '$CC '*)
16222 # Test whether the compiler implicitly links with -lc since on some
16223 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16224 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016225 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16226echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016227 $rm conftest*
16228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16229
16230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16231 (eval $ac_compile) 2>&5
16232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } 2>conftest.err; then
16235 soname=conftest
16236 lib=conftest
16237 libobjs=conftest.$ac_objext
16238 deplibs=
16239 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016240 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016241 compiler_flags=-v
16242 linker_flags=-v
16243 verstring=
16244 output_objdir=.
16245 libname=conftest
16246 lt_save_allow_undefined_flag=$allow_undefined_flag
16247 allow_undefined_flag=
16248 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16249 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }
16253 then
16254 archive_cmds_need_lc=no
16255 else
16256 archive_cmds_need_lc=yes
16257 fi
16258 allow_undefined_flag=$lt_save_allow_undefined_flag
16259 else
16260 cat conftest.err 1>&5
16261 fi
16262 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016263 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16264echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016265 ;;
16266 esac
16267 fi
16268 ;;
16269esac
16270
Reid Spencera773bd52006-08-04 18:18:08 +000016271{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16272echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016273library_names_spec=
16274libname_spec='lib$name'
16275soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016276shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016277postinstall_cmds=
16278postuninstall_cmds=
16279finish_cmds=
16280finish_eval=
16281shlibpath_var=
16282shlibpath_overrides_runpath=unknown
16283version_type=none
16284dynamic_linker="$host_os ld.so"
16285sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016286if test "$GCC" = yes; then
16287 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16288 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16289 # if the path contains ";" then we assume it to be the separator
16290 # otherwise default to the standard path separator (i.e. ":") - it is
16291 # assumed that no part of a normal pathname contains ";" but that should
16292 # okay in the real world where ";" in dirpaths is itself problematic.
16293 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16294 else
16295 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16296 fi
16297else
16298 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16299fi
16300need_lib_prefix=unknown
16301hardcode_into_libs=no
16302
16303# when you set need_version to no, make sure it does not cause -set_version
16304# flags to be left without arguments
16305need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016306
16307case $host_os in
16308aix3*)
16309 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016310 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016311 shlibpath_var=LIBPATH
16312
John Criswell47fdd832003-07-14 16:52:07 +000016313 # AIX 3 has no versioning support, so we append a major version to the name.
16314 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016315 ;;
16316
16317aix4* | aix5*)
16318 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016319 need_lib_prefix=no
16320 need_version=no
16321 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016322 if test "$host_cpu" = ia64; then
16323 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016324 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016325 shlibpath_var=LD_LIBRARY_PATH
16326 else
16327 # With GCC up to 2.95.x, collect2 would create an import file
16328 # for dependence libraries. The import file would start with
16329 # the line `#! .'. This would cause the generated library to
16330 # depend on `.', always an invalid library. This was fixed in
16331 # development snapshots of GCC prior to 3.0.
16332 case $host_os in
16333 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016334 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16335 echo ' yes '
16336 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16337 :
16338 else
16339 can_build_shared=no
16340 fi
16341 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016342 esac
John Criswell47fdd832003-07-14 16:52:07 +000016343 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16344 # soname into executable. Probably we can add versioning support to
16345 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016346 if test "$aix_use_runtimelinking" = yes; then
16347 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16348 # instead of lib<name>.a to let people know that these are not
16349 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016351 else
16352 # We preserve .a as extension for shared libraries through AIX4.2
16353 # and later when we are not doing run time linking.
16354 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016355 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016356 fi
16357 shlibpath_var=LIBPATH
16358 fi
16359 ;;
16360
16361amigaos*)
16362 library_names_spec='$libname.ixlibrary $libname.a'
16363 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016364 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 +000016365 ;;
16366
16367beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016368 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016369 dynamic_linker="$host_os ld.so"
16370 shlibpath_var=LIBRARY_PATH
16371 ;;
16372
Reid Spencer2706f8c2004-09-19 23:53:36 +000016373bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016374 version_type=linux
16375 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16377 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016378 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16379 shlibpath_var=LD_LIBRARY_PATH
16380 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16381 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016382 # the default ld.so.conf also contains /usr/contrib/lib and
16383 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16384 # libtool to hard-code these into programs
16385 ;;
16386
16387cygwin* | mingw* | pw32*)
16388 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016389 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016390 need_version=no
16391 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016392
John Criswell7a73b802003-06-30 21:59:07 +000016393 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016394 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016395 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016396 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016397 postinstall_cmds='base_file=`basename \${file}`~
16398 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16399 dldir=$destdir/`dirname \$dlpath`~
16400 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016401 $install_prog $dir/$dlname \$dldir/$dlname~
16402 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016403 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16404 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016405 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016406 shlibpath_overrides_runpath=yes
16407
16408 case $host_os in
16409 cygwin*)
16410 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16411 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 +000016412 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016413 ;;
16414 mingw*)
16415 # MinGW DLLs use traditional 'lib' prefix
16416 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16417 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16418 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16419 # It is most probably a Windows format PATH printed by
16420 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16421 # path with ; separators, and with drive letters. We can handle the
16422 # drive letters (cygwin fileutils understands them), so leave them,
16423 # especially as we might pass files found there to a mingw objdump,
16424 # which wouldn't understand a cygwinified path. Ahh.
16425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16426 else
16427 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16428 fi
16429 ;;
16430 pw32*)
16431 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016432 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 +000016433 ;;
16434 esac
John Criswell7a73b802003-06-30 21:59:07 +000016435 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016436
John Criswell7a73b802003-06-30 21:59:07 +000016437 *)
John Criswell47fdd832003-07-14 16:52:07 +000016438 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016439 ;;
16440 esac
16441 dynamic_linker='Win32 ld.exe'
16442 # FIXME: first we should search . and the directory the executable is in
16443 shlibpath_var=PATH
16444 ;;
16445
16446darwin* | rhapsody*)
16447 dynamic_linker="$host_os dyld"
16448 version_type=darwin
16449 need_lib_prefix=no
16450 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016451 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016452 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016453 shlibpath_overrides_runpath=yes
16454 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016455 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016456 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016457 if test "$GCC" = yes; then
16458 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"`
16459 else
16460 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016461 fi
16462 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16463 ;;
16464
16465dgux*)
16466 version_type=linux
16467 need_lib_prefix=no
16468 need_version=no
16469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16470 soname_spec='${libname}${release}${shared_ext}$major'
16471 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016472 ;;
16473
16474freebsd1*)
16475 dynamic_linker=no
16476 ;;
16477
Reid Spencer2706f8c2004-09-19 23:53:36 +000016478kfreebsd*-gnu)
16479 version_type=linux
16480 need_lib_prefix=no
16481 need_version=no
16482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16483 soname_spec='${libname}${release}${shared_ext}$major'
16484 shlibpath_var=LD_LIBRARY_PATH
16485 shlibpath_overrides_runpath=no
16486 hardcode_into_libs=yes
16487 dynamic_linker='GNU ld.so'
16488 ;;
16489
Reid Spencera773bd52006-08-04 18:18:08 +000016490freebsd* | dragonfly*)
16491 # DragonFly does not have aout. When/if they implement a new
16492 # versioning mechanism, adjust this.
16493 if test -x /usr/bin/objformat; then
16494 objformat=`/usr/bin/objformat`
16495 else
16496 case $host_os in
16497 freebsd[123]*) objformat=aout ;;
16498 *) objformat=elf ;;
16499 esac
16500 fi
John Criswell7a73b802003-06-30 21:59:07 +000016501 version_type=freebsd-$objformat
16502 case $version_type in
16503 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016505 need_version=no
16506 need_lib_prefix=no
16507 ;;
16508 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016509 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016510 need_version=yes
16511 ;;
16512 esac
16513 shlibpath_var=LD_LIBRARY_PATH
16514 case $host_os in
16515 freebsd2*)
16516 shlibpath_overrides_runpath=yes
16517 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016518 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016519 shlibpath_overrides_runpath=yes
16520 hardcode_into_libs=yes
16521 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016522 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16523 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016524 shlibpath_overrides_runpath=no
16525 hardcode_into_libs=yes
16526 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016527 freebsd*) # from 4.6 on
16528 shlibpath_overrides_runpath=yes
16529 hardcode_into_libs=yes
16530 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016531 esac
16532 ;;
16533
16534gnu*)
16535 version_type=linux
16536 need_lib_prefix=no
16537 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16539 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016540 shlibpath_var=LD_LIBRARY_PATH
16541 hardcode_into_libs=yes
16542 ;;
16543
16544hpux9* | hpux10* | hpux11*)
16545 # Give a soname corresponding to the major version so that dld.sl refuses to
16546 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016547 version_type=sunos
16548 need_lib_prefix=no
16549 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016550 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016551 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016552 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016553 hardcode_into_libs=yes
16554 dynamic_linker="$host_os dld.so"
16555 shlibpath_var=LD_LIBRARY_PATH
16556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16558 soname_spec='${libname}${release}${shared_ext}$major'
16559 if test "X$HPUX_IA64_MODE" = X32; then
16560 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16561 else
16562 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16563 fi
16564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16565 ;;
16566 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016567 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016568 hardcode_into_libs=yes
16569 dynamic_linker="$host_os dld.sl"
16570 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16573 soname_spec='${libname}${release}${shared_ext}$major'
16574 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16576 ;;
16577 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016578 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016579 dynamic_linker="$host_os dld.sl"
16580 shlibpath_var=SHLIB_PATH
16581 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16583 soname_spec='${libname}${release}${shared_ext}$major'
16584 ;;
16585 esac
John Criswell7a73b802003-06-30 21:59:07 +000016586 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16587 postinstall_cmds='chmod 555 $lib'
16588 ;;
16589
Reid Spencera773bd52006-08-04 18:18:08 +000016590interix3*)
16591 version_type=linux
16592 need_lib_prefix=no
16593 need_version=no
16594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16595 soname_spec='${libname}${release}${shared_ext}$major'
16596 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16597 shlibpath_var=LD_LIBRARY_PATH
16598 shlibpath_overrides_runpath=no
16599 hardcode_into_libs=yes
16600 ;;
16601
John Criswell47fdd832003-07-14 16:52:07 +000016602irix5* | irix6* | nonstopux*)
16603 case $host_os in
16604 nonstopux*) version_type=nonstopux ;;
16605 *)
16606 if test "$lt_cv_prog_gnu_ld" = yes; then
16607 version_type=linux
16608 else
16609 version_type=irix
16610 fi ;;
16611 esac
John Criswell7a73b802003-06-30 21:59:07 +000016612 need_lib_prefix=no
16613 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016614 soname_spec='${libname}${release}${shared_ext}$major'
16615 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 +000016616 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016617 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016618 libsuff= shlibsuff=
16619 ;;
16620 *)
16621 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016622 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16623 libsuff= shlibsuff= libmagic=32-bit;;
16624 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16625 libsuff=32 shlibsuff=N32 libmagic=N32;;
16626 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16627 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016628 *) libsuff= shlibsuff= libmagic=never-match;;
16629 esac
16630 ;;
16631 esac
16632 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16633 shlibpath_overrides_runpath=no
16634 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16635 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016636 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016637 ;;
16638
16639# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016640linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016641 dynamic_linker=no
16642 ;;
16643
16644# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016645linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016646 version_type=linux
16647 need_lib_prefix=no
16648 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16650 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16652 shlibpath_var=LD_LIBRARY_PATH
16653 shlibpath_overrides_runpath=no
16654 # This implies no fast_install, which is unacceptable.
16655 # Some rework will be needed to allow for fast_install
16656 # before this can be enabled.
16657 hardcode_into_libs=yes
16658
Reid Spencer2706f8c2004-09-19 23:53:36 +000016659 # Append ld.so.conf contents to the search path
16660 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016661 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 +000016662 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16663 fi
16664
John Criswell7a73b802003-06-30 21:59:07 +000016665 # We used to test for /lib/ld.so.1 and disable shared libraries on
16666 # powerpc, because MkLinux only supported shared libraries with the
16667 # GNU dynamic linker. Since this was broken with cross compilers,
16668 # most powerpc-linux boxes support dynamic linking these days and
16669 # people can always --disable-shared, the test was removed, and we
16670 # assume the GNU/Linux dynamic linker is in use.
16671 dynamic_linker='GNU/Linux ld.so'
16672 ;;
16673
Reid Spencer2706f8c2004-09-19 23:53:36 +000016674knetbsd*-gnu)
16675 version_type=linux
16676 need_lib_prefix=no
16677 need_version=no
16678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16679 soname_spec='${libname}${release}${shared_ext}$major'
16680 shlibpath_var=LD_LIBRARY_PATH
16681 shlibpath_overrides_runpath=no
16682 hardcode_into_libs=yes
16683 dynamic_linker='GNU ld.so'
16684 ;;
16685
John Criswell7a73b802003-06-30 21:59:07 +000016686netbsd*)
16687 version_type=sunos
16688 need_lib_prefix=no
16689 need_version=no
16690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16693 dynamic_linker='NetBSD (a.out) ld.so'
16694 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016696 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016697 dynamic_linker='NetBSD ld.elf_so'
16698 fi
16699 shlibpath_var=LD_LIBRARY_PATH
16700 shlibpath_overrides_runpath=yes
16701 hardcode_into_libs=yes
16702 ;;
16703
16704newsos6)
16705 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707 shlibpath_var=LD_LIBRARY_PATH
16708 shlibpath_overrides_runpath=yes
16709 ;;
16710
Reid Spencer2706f8c2004-09-19 23:53:36 +000016711nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016712 version_type=linux
16713 need_lib_prefix=no
16714 need_version=no
16715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16716 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016717 shlibpath_var=LD_LIBRARY_PATH
16718 shlibpath_overrides_runpath=yes
16719 ;;
16720
16721openbsd*)
16722 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016723 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016724 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016725 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16726 case $host_os in
16727 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16728 *) need_version=no ;;
16729 esac
John Criswell47fdd832003-07-14 16:52:07 +000016730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16732 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016733 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 +000016734 case $host_os in
16735 openbsd2.[89] | openbsd2.[89].*)
16736 shlibpath_overrides_runpath=no
16737 ;;
16738 *)
16739 shlibpath_overrides_runpath=yes
16740 ;;
16741 esac
John Criswell7a73b802003-06-30 21:59:07 +000016742 else
16743 shlibpath_overrides_runpath=yes
16744 fi
John Criswell7a73b802003-06-30 21:59:07 +000016745 ;;
16746
16747os2*)
16748 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016749 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016750 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016751 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016752 dynamic_linker='OS/2 ld.exe'
16753 shlibpath_var=LIBPATH
16754 ;;
16755
16756osf3* | osf4* | osf5*)
16757 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016758 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016759 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016760 soname_spec='${libname}${release}${shared_ext}$major'
16761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016762 shlibpath_var=LD_LIBRARY_PATH
16763 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16764 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16765 ;;
16766
John Criswell7a73b802003-06-30 21:59:07 +000016767solaris*)
16768 version_type=linux
16769 need_lib_prefix=no
16770 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016773 shlibpath_var=LD_LIBRARY_PATH
16774 shlibpath_overrides_runpath=yes
16775 hardcode_into_libs=yes
16776 # ldd complains unless libraries are executable
16777 postinstall_cmds='chmod +x $lib'
16778 ;;
16779
16780sunos4*)
16781 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016783 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16784 shlibpath_var=LD_LIBRARY_PATH
16785 shlibpath_overrides_runpath=yes
16786 if test "$with_gnu_ld" = yes; then
16787 need_lib_prefix=no
16788 fi
16789 need_version=yes
16790 ;;
16791
Reid Spencera773bd52006-08-04 18:18:08 +000016792sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016793 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16795 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016796 shlibpath_var=LD_LIBRARY_PATH
16797 case $host_vendor in
16798 sni)
16799 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016800 need_lib_prefix=no
16801 export_dynamic_flag_spec='${wl}-Blargedynsym'
16802 runpath_var=LD_RUN_PATH
16803 ;;
16804 siemens)
16805 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016806 ;;
16807 motorola)
16808 need_lib_prefix=no
16809 need_version=no
16810 shlibpath_overrides_runpath=no
16811 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16812 ;;
16813 esac
16814 ;;
16815
John Criswell7a73b802003-06-30 21:59:07 +000016816sysv4*MP*)
16817 if test -d /usr/nec ;then
16818 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016819 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16820 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016821 shlibpath_var=LD_LIBRARY_PATH
16822 fi
16823 ;;
16824
Reid Spencera773bd52006-08-04 18:18:08 +000016825sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16826 version_type=freebsd-elf
16827 need_lib_prefix=no
16828 need_version=no
16829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16830 soname_spec='${libname}${release}${shared_ext}$major'
16831 shlibpath_var=LD_LIBRARY_PATH
16832 hardcode_into_libs=yes
16833 if test "$with_gnu_ld" = yes; then
16834 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16835 shlibpath_overrides_runpath=no
16836 else
16837 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16838 shlibpath_overrides_runpath=yes
16839 case $host_os in
16840 sco3.2v5*)
16841 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16842 ;;
16843 esac
16844 fi
16845 sys_lib_dlsearch_path_spec='/usr/lib'
16846 ;;
16847
John Criswell47fdd832003-07-14 16:52:07 +000016848uts4*)
16849 version_type=linux
16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851 soname_spec='${libname}${release}${shared_ext}$major'
16852 shlibpath_var=LD_LIBRARY_PATH
16853 ;;
16854
John Criswell7a73b802003-06-30 21:59:07 +000016855*)
16856 dynamic_linker=no
16857 ;;
16858esac
Reid Spencera773bd52006-08-04 18:18:08 +000016859{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16860echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016861test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016862
Reid Spencera773bd52006-08-04 18:18:08 +000016863variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16864if test "$GCC" = yes; then
16865 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16866fi
16867
16868{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16869echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016870hardcode_action=
16871if test -n "$hardcode_libdir_flag_spec" || \
16872 test -n "$runpath_var" || \
16873 test "X$hardcode_automatic" = "Xyes" ; then
16874
16875 # We can hardcode non-existant directories.
16876 if test "$hardcode_direct" != no &&
16877 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16878 # have to relink, otherwise we might link with an installed library
16879 # when we should be linking with a yet-to-be-installed one
16880 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16881 test "$hardcode_minus_L" != no; then
16882 # Linking always hardcodes the temporary library directory.
16883 hardcode_action=relink
16884 else
16885 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16886 hardcode_action=immediate
16887 fi
16888else
16889 # We cannot hardcode anything, or else we can only hardcode existing
16890 # directories.
16891 hardcode_action=unsupported
16892fi
Reid Spencera773bd52006-08-04 18:18:08 +000016893{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16894echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016895
16896if test "$hardcode_action" = relink; then
16897 # Fast installation is not supported
16898 enable_fast_install=no
16899elif test "$shlibpath_overrides_runpath" = yes ||
16900 test "$enable_shared" = no; then
16901 # Fast installation is not necessary
16902 enable_fast_install=needless
16903fi
16904
16905striplib=
16906old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016907{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16908echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016909if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16910 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16911 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016912 { echo "$as_me:$LINENO: result: yes" >&5
16913echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016914else
16915# FIXME - insert some real tests, host_os isn't really good enough
16916 case $host_os in
16917 darwin*)
16918 if test -n "$STRIP" ; then
16919 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016920 { echo "$as_me:$LINENO: result: yes" >&5
16921echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016922 else
Reid Spencera773bd52006-08-04 18:18:08 +000016923 { echo "$as_me:$LINENO: result: no" >&5
16924echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016925fi
16926 ;;
16927 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016928 { echo "$as_me:$LINENO: result: no" >&5
16929echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016930 ;;
16931 esac
16932fi
16933
John Criswell7a73b802003-06-30 21:59:07 +000016934if test "x$enable_dlopen" != xyes; then
16935 enable_dlopen=unknown
16936 enable_dlopen_self=unknown
16937 enable_dlopen_self_static=unknown
16938else
16939 lt_cv_dlopen=no
16940 lt_cv_dlopen_libs=
16941
16942 case $host_os in
16943 beos*)
16944 lt_cv_dlopen="load_add_on"
16945 lt_cv_dlopen_libs=
16946 lt_cv_dlopen_self=yes
16947 ;;
16948
John Criswell47fdd832003-07-14 16:52:07 +000016949 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016950 lt_cv_dlopen="LoadLibrary"
16951 lt_cv_dlopen_libs=
16952 ;;
16953
John Criswell47fdd832003-07-14 16:52:07 +000016954 cygwin*)
16955 lt_cv_dlopen="dlopen"
16956 lt_cv_dlopen_libs=
16957 ;;
16958
16959 darwin*)
16960 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016961 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16962echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016963if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16965else
16966 ac_check_lib_save_LIBS=$LIBS
16967LIBS="-ldl $LIBS"
16968cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016969/* confdefs.h. */
16970_ACEOF
16971cat confdefs.h >>conftest.$ac_ext
16972cat >>conftest.$ac_ext <<_ACEOF
16973/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016974
Reid Spencera773bd52006-08-04 18:18:08 +000016975/* Override any GCC internal prototype to avoid an error.
16976 Use char because int might match the return type of a GCC
16977 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016978#ifdef __cplusplus
16979extern "C"
16980#endif
John Criswell47fdd832003-07-14 16:52:07 +000016981char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016982int
16983main ()
16984{
Reid Spencera773bd52006-08-04 18:18:08 +000016985return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016986 ;
16987 return 0;
16988}
16989_ACEOF
16990rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016991if { (ac_try="$ac_link"
16992case "(($ac_try" in
16993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994 *) ac_try_echo=$ac_try;;
16995esac
16996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016998 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016999 grep -v '^ *+' conftest.er1 >conftest.err
17000 rm -f conftest.er1
17001 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017003 (exit $ac_status); } &&
17004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17005 { (case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17008esac
17009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_try") 2>&5
17011 ac_status=$?
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; } &&
17014 { ac_try='test -s conftest$ac_exeext'
17015 { (case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17018esac
17019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020 (eval "$ac_try") 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000017024 ac_cv_lib_dl_dlopen=yes
17025else
17026 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017027sed 's/^/| /' conftest.$ac_ext >&5
17028
Reid Spencera773bd52006-08-04 18:18:08 +000017029 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000017030fi
Reid Spencera773bd52006-08-04 18:18:08 +000017031
Bill Wendlingebcceee2009-04-18 11:20:33 +000017032rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017033 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017034LIBS=$ac_check_lib_save_LIBS
17035fi
Reid Spencera773bd52006-08-04 18:18:08 +000017036{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17037echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017038if test $ac_cv_lib_dl_dlopen = yes; then
17039 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17040else
17041
17042 lt_cv_dlopen="dyld"
17043 lt_cv_dlopen_libs=
17044 lt_cv_dlopen_self=yes
17045
17046fi
17047
17048 ;;
17049
John Criswell7a73b802003-06-30 21:59:07 +000017050 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017051 { echo "$as_me:$LINENO: checking for shl_load" >&5
17052echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017053if test "${ac_cv_func_shl_load+set}" = set; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17055else
17056 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017057/* confdefs.h. */
17058_ACEOF
17059cat confdefs.h >>conftest.$ac_ext
17060cat >>conftest.$ac_ext <<_ACEOF
17061/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017062/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17064#define shl_load innocuous_shl_load
17065
John Criswell7a73b802003-06-30 21:59:07 +000017066/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017067 which can conflict with char shl_load (); below.
17068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17069 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017070
John Criswell0c38eaf2003-09-10 15:17:25 +000017071#ifdef __STDC__
17072# include <limits.h>
17073#else
17074# include <assert.h>
17075#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017076
17077#undef shl_load
17078
Reid Spencera773bd52006-08-04 18:18:08 +000017079/* Override any GCC internal prototype to avoid an error.
17080 Use char because int might match the return type of a GCC
17081 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017082#ifdef __cplusplus
17083extern "C"
17084#endif
John Criswell7a73b802003-06-30 21:59:07 +000017085char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017086/* The GNU C library defines this for functions which it implements
17087 to always fail with ENOSYS. Some functions are actually named
17088 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017089#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017090choke me
John Criswell7a73b802003-06-30 21:59:07 +000017091#endif
17092
John Criswell0c38eaf2003-09-10 15:17:25 +000017093int
17094main ()
17095{
Reid Spencera773bd52006-08-04 18:18:08 +000017096return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017097 ;
17098 return 0;
17099}
17100_ACEOF
17101rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017102if { (ac_try="$ac_link"
17103case "(($ac_try" in
17104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105 *) ac_try_echo=$ac_try;;
17106esac
17107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017109 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017110 grep -v '^ *+' conftest.er1 >conftest.err
17111 rm -f conftest.er1
17112 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017114 (exit $ac_status); } &&
17115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17116 { (case "(($ac_try" in
17117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118 *) ac_try_echo=$ac_try;;
17119esac
17120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121 (eval "$ac_try") 2>&5
17122 ac_status=$?
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; } &&
17125 { ac_try='test -s conftest$ac_exeext'
17126 { (case "(($ac_try" in
17127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128 *) ac_try_echo=$ac_try;;
17129esac
17130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131 (eval "$ac_try") 2>&5
17132 ac_status=$?
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017135 ac_cv_func_shl_load=yes
17136else
17137 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017138sed 's/^/| /' conftest.$ac_ext >&5
17139
Reid Spencera773bd52006-08-04 18:18:08 +000017140 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017141fi
Reid Spencera773bd52006-08-04 18:18:08 +000017142
Bill Wendlingebcceee2009-04-18 11:20:33 +000017143rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017144 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017145fi
Reid Spencera773bd52006-08-04 18:18:08 +000017146{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17147echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017148if test $ac_cv_func_shl_load = yes; then
17149 lt_cv_dlopen="shl_load"
17150else
Reid Spencera773bd52006-08-04 18:18:08 +000017151 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17152echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017153if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17154 echo $ECHO_N "(cached) $ECHO_C" >&6
17155else
17156 ac_check_lib_save_LIBS=$LIBS
17157LIBS="-ldld $LIBS"
17158cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017159/* confdefs.h. */
17160_ACEOF
17161cat confdefs.h >>conftest.$ac_ext
17162cat >>conftest.$ac_ext <<_ACEOF
17163/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017164
Reid Spencera773bd52006-08-04 18:18:08 +000017165/* Override any GCC internal prototype to avoid an error.
17166 Use char because int might match the return type of a GCC
17167 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017168#ifdef __cplusplus
17169extern "C"
17170#endif
John Criswell7a73b802003-06-30 21:59:07 +000017171char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017172int
17173main ()
17174{
Reid Spencera773bd52006-08-04 18:18:08 +000017175return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017176 ;
17177 return 0;
17178}
17179_ACEOF
17180rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017181if { (ac_try="$ac_link"
17182case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17185esac
17186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017188 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017189 grep -v '^ *+' conftest.er1 >conftest.err
17190 rm -f conftest.er1
17191 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017193 (exit $ac_status); } &&
17194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17195 { (case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17198esac
17199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_try") 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; } &&
17204 { ac_try='test -s conftest$ac_exeext'
17205 { (case "(($ac_try" in
17206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17208esac
17209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210 (eval "$ac_try") 2>&5
17211 ac_status=$?
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017214 ac_cv_lib_dld_shl_load=yes
17215else
17216 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017217sed 's/^/| /' conftest.$ac_ext >&5
17218
Reid Spencera773bd52006-08-04 18:18:08 +000017219 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017220fi
Reid Spencera773bd52006-08-04 18:18:08 +000017221
Bill Wendlingebcceee2009-04-18 11:20:33 +000017222rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017223 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017224LIBS=$ac_check_lib_save_LIBS
17225fi
Reid Spencera773bd52006-08-04 18:18:08 +000017226{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17227echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017228if test $ac_cv_lib_dld_shl_load = yes; then
17229 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17230else
Reid Spencera773bd52006-08-04 18:18:08 +000017231 { echo "$as_me:$LINENO: checking for dlopen" >&5
17232echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017233if test "${ac_cv_func_dlopen+set}" = set; then
17234 echo $ECHO_N "(cached) $ECHO_C" >&6
17235else
17236 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017237/* confdefs.h. */
17238_ACEOF
17239cat confdefs.h >>conftest.$ac_ext
17240cat >>conftest.$ac_ext <<_ACEOF
17241/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017242/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17244#define dlopen innocuous_dlopen
17245
John Criswell7a73b802003-06-30 21:59:07 +000017246/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017247 which can conflict with char dlopen (); below.
17248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17249 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017250
John Criswell0c38eaf2003-09-10 15:17:25 +000017251#ifdef __STDC__
17252# include <limits.h>
17253#else
17254# include <assert.h>
17255#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017256
17257#undef dlopen
17258
Reid Spencera773bd52006-08-04 18:18:08 +000017259/* Override any GCC internal prototype to avoid an error.
17260 Use char because int might match the return type of a GCC
17261 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017262#ifdef __cplusplus
17263extern "C"
17264#endif
John Criswell7a73b802003-06-30 21:59:07 +000017265char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017266/* The GNU C library defines this for functions which it implements
17267 to always fail with ENOSYS. Some functions are actually named
17268 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017269#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017270choke me
John Criswell7a73b802003-06-30 21:59:07 +000017271#endif
17272
John Criswell0c38eaf2003-09-10 15:17:25 +000017273int
17274main ()
17275{
Reid Spencera773bd52006-08-04 18:18:08 +000017276return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017277 ;
17278 return 0;
17279}
17280_ACEOF
17281rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017282if { (ac_try="$ac_link"
17283case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17286esac
17287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017289 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017290 grep -v '^ *+' conftest.er1 >conftest.err
17291 rm -f conftest.er1
17292 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017294 (exit $ac_status); } &&
17295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17296 { (case "(($ac_try" in
17297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298 *) ac_try_echo=$ac_try;;
17299esac
17300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301 (eval "$ac_try") 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; } &&
17305 { ac_try='test -s conftest$ac_exeext'
17306 { (case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17309esac
17310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_try") 2>&5
17312 ac_status=$?
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017315 ac_cv_func_dlopen=yes
17316else
17317 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017318sed 's/^/| /' conftest.$ac_ext >&5
17319
Reid Spencera773bd52006-08-04 18:18:08 +000017320 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017321fi
Reid Spencera773bd52006-08-04 18:18:08 +000017322
Bill Wendlingebcceee2009-04-18 11:20:33 +000017323rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017324 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017325fi
Reid Spencera773bd52006-08-04 18:18:08 +000017326{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17327echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017328if test $ac_cv_func_dlopen = yes; then
17329 lt_cv_dlopen="dlopen"
17330else
Reid Spencera773bd52006-08-04 18:18:08 +000017331 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17332echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017333if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17334 echo $ECHO_N "(cached) $ECHO_C" >&6
17335else
17336 ac_check_lib_save_LIBS=$LIBS
17337LIBS="-ldl $LIBS"
17338cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017339/* confdefs.h. */
17340_ACEOF
17341cat confdefs.h >>conftest.$ac_ext
17342cat >>conftest.$ac_ext <<_ACEOF
17343/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017344
Reid Spencera773bd52006-08-04 18:18:08 +000017345/* Override any GCC internal prototype to avoid an error.
17346 Use char because int might match the return type of a GCC
17347 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017348#ifdef __cplusplus
17349extern "C"
17350#endif
John Criswell7a73b802003-06-30 21:59:07 +000017351char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017352int
17353main ()
17354{
Reid Spencera773bd52006-08-04 18:18:08 +000017355return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017356 ;
17357 return 0;
17358}
17359_ACEOF
17360rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017361if { (ac_try="$ac_link"
17362case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17365esac
17366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017368 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017369 grep -v '^ *+' conftest.er1 >conftest.err
17370 rm -f conftest.er1
17371 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017373 (exit $ac_status); } &&
17374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17375 { (case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17378esac
17379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_try") 2>&5
17381 ac_status=$?
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; } &&
17384 { ac_try='test -s conftest$ac_exeext'
17385 { (case "(($ac_try" in
17386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387 *) ac_try_echo=$ac_try;;
17388esac
17389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390 (eval "$ac_try") 2>&5
17391 ac_status=$?
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017394 ac_cv_lib_dl_dlopen=yes
17395else
17396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017397sed 's/^/| /' conftest.$ac_ext >&5
17398
Reid Spencera773bd52006-08-04 18:18:08 +000017399 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017400fi
Reid Spencera773bd52006-08-04 18:18:08 +000017401
Bill Wendlingebcceee2009-04-18 11:20:33 +000017402rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017403 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017404LIBS=$ac_check_lib_save_LIBS
17405fi
Reid Spencera773bd52006-08-04 18:18:08 +000017406{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17407echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017408if test $ac_cv_lib_dl_dlopen = yes; then
17409 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17410else
Reid Spencera773bd52006-08-04 18:18:08 +000017411 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17412echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017413if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17414 echo $ECHO_N "(cached) $ECHO_C" >&6
17415else
17416 ac_check_lib_save_LIBS=$LIBS
17417LIBS="-lsvld $LIBS"
17418cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017419/* confdefs.h. */
17420_ACEOF
17421cat confdefs.h >>conftest.$ac_ext
17422cat >>conftest.$ac_ext <<_ACEOF
17423/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017424
Reid Spencera773bd52006-08-04 18:18:08 +000017425/* Override any GCC internal prototype to avoid an error.
17426 Use char because int might match the return type of a GCC
17427 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017428#ifdef __cplusplus
17429extern "C"
17430#endif
John Criswell7a73b802003-06-30 21:59:07 +000017431char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017432int
17433main ()
17434{
Reid Spencera773bd52006-08-04 18:18:08 +000017435return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017436 ;
17437 return 0;
17438}
17439_ACEOF
17440rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017441if { (ac_try="$ac_link"
17442case "(($ac_try" in
17443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444 *) ac_try_echo=$ac_try;;
17445esac
17446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017448 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017449 grep -v '^ *+' conftest.er1 >conftest.err
17450 rm -f conftest.er1
17451 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017453 (exit $ac_status); } &&
17454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17455 { (case "(($ac_try" in
17456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457 *) ac_try_echo=$ac_try;;
17458esac
17459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460 (eval "$ac_try") 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; } &&
17464 { ac_try='test -s conftest$ac_exeext'
17465 { (case "(($ac_try" in
17466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17467 *) ac_try_echo=$ac_try;;
17468esac
17469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17470 (eval "$ac_try") 2>&5
17471 ac_status=$?
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017474 ac_cv_lib_svld_dlopen=yes
17475else
17476 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017477sed 's/^/| /' conftest.$ac_ext >&5
17478
Reid Spencera773bd52006-08-04 18:18:08 +000017479 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017480fi
Reid Spencera773bd52006-08-04 18:18:08 +000017481
Bill Wendlingebcceee2009-04-18 11:20:33 +000017482rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017483 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017484LIBS=$ac_check_lib_save_LIBS
17485fi
Reid Spencera773bd52006-08-04 18:18:08 +000017486{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17487echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017488if test $ac_cv_lib_svld_dlopen = yes; then
17489 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17490else
Reid Spencera773bd52006-08-04 18:18:08 +000017491 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17492echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017493if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17494 echo $ECHO_N "(cached) $ECHO_C" >&6
17495else
17496 ac_check_lib_save_LIBS=$LIBS
17497LIBS="-ldld $LIBS"
17498cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017499/* confdefs.h. */
17500_ACEOF
17501cat confdefs.h >>conftest.$ac_ext
17502cat >>conftest.$ac_ext <<_ACEOF
17503/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017504
Reid Spencera773bd52006-08-04 18:18:08 +000017505/* Override any GCC internal prototype to avoid an error.
17506 Use char because int might match the return type of a GCC
17507 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017508#ifdef __cplusplus
17509extern "C"
17510#endif
John Criswell7a73b802003-06-30 21:59:07 +000017511char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017512int
17513main ()
17514{
Reid Spencera773bd52006-08-04 18:18:08 +000017515return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017516 ;
17517 return 0;
17518}
17519_ACEOF
17520rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017521if { (ac_try="$ac_link"
17522case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17525esac
17526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017528 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017529 grep -v '^ *+' conftest.er1 >conftest.err
17530 rm -f conftest.er1
17531 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017533 (exit $ac_status); } &&
17534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17535 { (case "(($ac_try" in
17536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17537 *) ac_try_echo=$ac_try;;
17538esac
17539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17540 (eval "$ac_try") 2>&5
17541 ac_status=$?
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; } &&
17544 { ac_try='test -s conftest$ac_exeext'
17545 { (case "(($ac_try" in
17546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17548esac
17549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550 (eval "$ac_try") 2>&5
17551 ac_status=$?
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017554 ac_cv_lib_dld_dld_link=yes
17555else
17556 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017557sed 's/^/| /' conftest.$ac_ext >&5
17558
Reid Spencera773bd52006-08-04 18:18:08 +000017559 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017560fi
Reid Spencera773bd52006-08-04 18:18:08 +000017561
Bill Wendlingebcceee2009-04-18 11:20:33 +000017562rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017563 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017564LIBS=$ac_check_lib_save_LIBS
17565fi
Reid Spencera773bd52006-08-04 18:18:08 +000017566{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17567echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017568if test $ac_cv_lib_dld_dld_link = yes; then
17569 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17570fi
17571
17572
17573fi
17574
17575
17576fi
17577
17578
17579fi
17580
17581
17582fi
17583
17584
17585fi
17586
17587 ;;
17588 esac
17589
17590 if test "x$lt_cv_dlopen" != xno; then
17591 enable_dlopen=yes
17592 else
17593 enable_dlopen=no
17594 fi
17595
17596 case $lt_cv_dlopen in
17597 dlopen)
17598 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017599 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017600
17601 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017602 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017603
17604 save_LIBS="$LIBS"
17605 LIBS="$lt_cv_dlopen_libs $LIBS"
17606
Reid Spencera773bd52006-08-04 18:18:08 +000017607 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17608echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017609if test "${lt_cv_dlopen_self+set}" = set; then
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
17611else
17612 if test "$cross_compiling" = yes; then :
17613 lt_cv_dlopen_self=cross
17614else
John Criswell47fdd832003-07-14 16:52:07 +000017615 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017616 lt_status=$lt_dlunknown
17617 cat > conftest.$ac_ext <<EOF
Shantonu Sen7e836972009-08-11 13:39:52 +000017618#line 17618 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017619#include "confdefs.h"
17620
17621#if HAVE_DLFCN_H
17622#include <dlfcn.h>
17623#endif
17624
17625#include <stdio.h>
17626
17627#ifdef RTLD_GLOBAL
17628# define LT_DLGLOBAL RTLD_GLOBAL
17629#else
17630# ifdef DL_GLOBAL
17631# define LT_DLGLOBAL DL_GLOBAL
17632# else
17633# define LT_DLGLOBAL 0
17634# endif
17635#endif
17636
17637/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17638 find out it does not work in some platform. */
17639#ifndef LT_DLLAZY_OR_NOW
17640# ifdef RTLD_LAZY
17641# define LT_DLLAZY_OR_NOW RTLD_LAZY
17642# else
17643# ifdef DL_LAZY
17644# define LT_DLLAZY_OR_NOW DL_LAZY
17645# else
17646# ifdef RTLD_NOW
17647# define LT_DLLAZY_OR_NOW RTLD_NOW
17648# else
17649# ifdef DL_NOW
17650# define LT_DLLAZY_OR_NOW DL_NOW
17651# else
17652# define LT_DLLAZY_OR_NOW 0
17653# endif
17654# endif
17655# endif
17656# endif
17657#endif
17658
17659#ifdef __cplusplus
17660extern "C" void exit (int);
17661#endif
17662
17663void fnord() { int i=42;}
17664int main ()
17665{
17666 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17667 int status = $lt_dlunknown;
17668
17669 if (self)
17670 {
17671 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17672 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17673 /* dlclose (self); */
17674 }
Reid Spencera773bd52006-08-04 18:18:08 +000017675 else
17676 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017677
17678 exit (status);
17679}
17680EOF
17681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17682 (eval $ac_link) 2>&5
17683 ac_status=$?
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017686 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017687 lt_status=$?
17688 case x$lt_status in
17689 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17690 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017691 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017692 esac
17693 else :
17694 # compilation failed
17695 lt_cv_dlopen_self=no
17696 fi
17697fi
17698rm -fr conftest*
17699
17700
17701fi
Reid Spencera773bd52006-08-04 18:18:08 +000017702{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17703echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017704
17705 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017706 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17707 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17708echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017709if test "${lt_cv_dlopen_self_static+set}" = set; then
17710 echo $ECHO_N "(cached) $ECHO_C" >&6
17711else
17712 if test "$cross_compiling" = yes; then :
17713 lt_cv_dlopen_self_static=cross
17714else
John Criswell47fdd832003-07-14 16:52:07 +000017715 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017716 lt_status=$lt_dlunknown
17717 cat > conftest.$ac_ext <<EOF
Shantonu Sen7e836972009-08-11 13:39:52 +000017718#line 17718 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017719#include "confdefs.h"
17720
17721#if HAVE_DLFCN_H
17722#include <dlfcn.h>
17723#endif
17724
17725#include <stdio.h>
17726
17727#ifdef RTLD_GLOBAL
17728# define LT_DLGLOBAL RTLD_GLOBAL
17729#else
17730# ifdef DL_GLOBAL
17731# define LT_DLGLOBAL DL_GLOBAL
17732# else
17733# define LT_DLGLOBAL 0
17734# endif
17735#endif
17736
17737/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17738 find out it does not work in some platform. */
17739#ifndef LT_DLLAZY_OR_NOW
17740# ifdef RTLD_LAZY
17741# define LT_DLLAZY_OR_NOW RTLD_LAZY
17742# else
17743# ifdef DL_LAZY
17744# define LT_DLLAZY_OR_NOW DL_LAZY
17745# else
17746# ifdef RTLD_NOW
17747# define LT_DLLAZY_OR_NOW RTLD_NOW
17748# else
17749# ifdef DL_NOW
17750# define LT_DLLAZY_OR_NOW DL_NOW
17751# else
17752# define LT_DLLAZY_OR_NOW 0
17753# endif
17754# endif
17755# endif
17756# endif
17757#endif
17758
17759#ifdef __cplusplus
17760extern "C" void exit (int);
17761#endif
17762
17763void fnord() { int i=42;}
17764int main ()
17765{
17766 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17767 int status = $lt_dlunknown;
17768
17769 if (self)
17770 {
17771 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17772 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17773 /* dlclose (self); */
17774 }
Reid Spencera773bd52006-08-04 18:18:08 +000017775 else
17776 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017777
17778 exit (status);
17779}
17780EOF
17781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17782 (eval $ac_link) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017786 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017787 lt_status=$?
17788 case x$lt_status in
17789 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17790 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017791 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017792 esac
17793 else :
17794 # compilation failed
17795 lt_cv_dlopen_self_static=no
17796 fi
17797fi
17798rm -fr conftest*
17799
17800
17801fi
Reid Spencera773bd52006-08-04 18:18:08 +000017802{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17803echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017804 fi
17805
17806 CPPFLAGS="$save_CPPFLAGS"
17807 LDFLAGS="$save_LDFLAGS"
17808 LIBS="$save_LIBS"
17809 ;;
17810 esac
17811
17812 case $lt_cv_dlopen_self in
17813 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17814 *) enable_dlopen_self=unknown ;;
17815 esac
17816
17817 case $lt_cv_dlopen_self_static in
17818 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17819 *) enable_dlopen_self_static=unknown ;;
17820 esac
17821fi
17822
17823
Reid Spencera773bd52006-08-04 18:18:08 +000017824# Report which library types will actually be built
17825{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17826echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17827{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17828echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017829
Reid Spencera773bd52006-08-04 18:18:08 +000017830{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17831echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017832test "$can_build_shared" = "no" && enable_shared=no
17833
17834# On AIX, shared libraries and static libraries use the same namespace, and
17835# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017836case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017837aix3*)
17838 test "$enable_shared" = yes && enable_static=no
17839 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017840 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017841 postinstall_cmds='$RANLIB $lib'
17842 fi
17843 ;;
17844
Reid Spencer2706f8c2004-09-19 23:53:36 +000017845aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017846 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17847 test "$enable_shared" = yes && enable_static=no
17848 fi
John Criswell7a73b802003-06-30 21:59:07 +000017849 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017850esac
Reid Spencera773bd52006-08-04 18:18:08 +000017851{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17852echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017853
Reid Spencera773bd52006-08-04 18:18:08 +000017854{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17855echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017856# Make sure either enable_shared or enable_static is yes.
17857test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017858{ echo "$as_me:$LINENO: result: $enable_static" >&5
17859echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017860
17861# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017862# libtool distribution, otherwise you forgot to ship ltmain.sh
17863# with your package, and you will get complaints that there are
17864# no rules to generate ltmain.sh.
17865if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017866 # See if we are running on zsh, and set the options which allow our commands through
17867 # without removal of \ escapes.
17868 if test -n "${ZSH_VERSION+set}" ; then
17869 setopt NO_GLOB_SUBST
17870 fi
John Criswell7a73b802003-06-30 21:59:07 +000017871 # Now quote all the things that may contain metacharacters while being
17872 # careful not to overquote the AC_SUBSTed values. We take copies of the
17873 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017874 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 +000017875 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017876 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17877 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17878 deplibs_check_method reload_flag reload_cmds need_locks \
17879 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17880 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017881 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017882 old_postinstall_cmds old_postuninstall_cmds \
17883 compiler \
17884 CC \
17885 LD \
17886 lt_prog_compiler_wl \
17887 lt_prog_compiler_pic \
17888 lt_prog_compiler_static \
17889 lt_prog_compiler_no_builtin_flag \
17890 export_dynamic_flag_spec \
17891 thread_safe_flag_spec \
17892 whole_archive_flag_spec \
17893 enable_shared_with_static_runtimes \
17894 old_archive_cmds \
17895 old_archive_from_new_cmds \
17896 predep_objects \
17897 postdep_objects \
17898 predeps \
17899 postdeps \
17900 compiler_lib_search_path \
17901 archive_cmds \
17902 archive_expsym_cmds \
17903 postinstall_cmds \
17904 postuninstall_cmds \
17905 old_archive_from_expsyms_cmds \
17906 allow_undefined_flag \
17907 no_undefined_flag \
17908 export_symbols_cmds \
17909 hardcode_libdir_flag_spec \
17910 hardcode_libdir_flag_spec_ld \
17911 hardcode_libdir_separator \
17912 hardcode_automatic \
17913 module_cmds \
17914 module_expsym_cmds \
17915 lt_cv_prog_compiler_c_o \
17916 exclude_expsyms \
17917 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017918
17919 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017920 old_archive_cmds | \
17921 old_archive_from_new_cmds | \
17922 archive_cmds | \
17923 archive_expsym_cmds | \
17924 module_cmds | \
17925 module_expsym_cmds | \
17926 old_archive_from_expsyms_cmds | \
17927 export_symbols_cmds | \
17928 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017929 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017930 old_postinstall_cmds | old_postuninstall_cmds | \
17931 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017932 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017933 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 +000017934 ;;
17935 *)
17936 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17937 ;;
17938 esac
17939 done
17940
John Criswell47fdd832003-07-14 16:52:07 +000017941 case $lt_echo in
17942 *'\$0 --fallback-echo"')
17943 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17944 ;;
17945 esac
17946
17947cfgfile="${ofile}T"
17948 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17949 $rm -f "$cfgfile"
17950 { echo "$as_me:$LINENO: creating $ofile" >&5
17951echo "$as_me: creating $ofile" >&6;}
17952
17953 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017954#! $SHELL
17955
John Criswell47fdd832003-07-14 16:52:07 +000017956# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017957# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17958# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17959#
John Criswell47fdd832003-07-14 16:52:07 +000017960# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17961# Free Software Foundation, Inc.
17962#
17963# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017964# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17965#
17966# This program is free software; you can redistribute it and/or modify
17967# it under the terms of the GNU General Public License as published by
17968# the Free Software Foundation; either version 2 of the License, or
17969# (at your option) any later version.
17970#
17971# This program is distributed in the hope that it will be useful, but
17972# WITHOUT ANY WARRANTY; without even the implied warranty of
17973# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17974# General Public License for more details.
17975#
17976# You should have received a copy of the GNU General Public License
17977# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017978# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017979#
17980# As a special exception to the GNU General Public License, if you
17981# distribute this file as part of a program that contains a
17982# configuration script generated by Autoconf, you may include it under
17983# the same distribution terms that you use for the rest of that program.
17984
John Criswell47fdd832003-07-14 16:52:07 +000017985# A sed program that does not truncate output.
17986SED=$lt_SED
17987
John Criswell7a73b802003-06-30 21:59:07 +000017988# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017989Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017990
17991# The HP-UX ksh and POSIX shell print the target directory to stdout
17992# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017993(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017994
John Criswell47fdd832003-07-14 16:52:07 +000017995# The names of the tagged configurations supported by this script.
17996available_tags=
17997
John Criswell7a73b802003-06-30 21:59:07 +000017998# ### BEGIN LIBTOOL CONFIG
17999
18000# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18001
18002# Shell to use when invoking shell scripts.
18003SHELL=$lt_SHELL
18004
18005# Whether or not to build shared libraries.
18006build_libtool_libs=$enable_shared
18007
18008# Whether or not to build static libraries.
18009build_old_libs=$enable_static
18010
18011# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000018012build_libtool_need_lc=$archive_cmds_need_lc
18013
18014# Whether or not to disallow shared libs when runtime libs are static
18015allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000018016
18017# Whether or not to optimize for fast installation.
18018fast_install=$enable_fast_install
18019
18020# The host system.
18021host_alias=$host_alias
18022host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000018023host_os=$host_os
18024
18025# The build system.
18026build_alias=$build_alias
18027build=$build
18028build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000018029
18030# An echo program that does not interpret backslashes.
18031echo=$lt_echo
18032
18033# The archiver.
18034AR=$lt_AR
18035AR_FLAGS=$lt_AR_FLAGS
18036
John Criswell47fdd832003-07-14 16:52:07 +000018037# A C compiler.
18038LTCC=$lt_LTCC
18039
Reid Spencera773bd52006-08-04 18:18:08 +000018040# LTCC compiler flags.
18041LTCFLAGS=$lt_LTCFLAGS
18042
John Criswell47fdd832003-07-14 16:52:07 +000018043# A language-specific compiler.
18044CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000018045
18046# Is the compiler the GNU C compiler?
18047with_gcc=$GCC
18048
John Criswell47fdd832003-07-14 16:52:07 +000018049# An ERE matcher.
18050EGREP=$lt_EGREP
18051
John Criswell7a73b802003-06-30 21:59:07 +000018052# The linker used to build libraries.
18053LD=$lt_LD
18054
18055# Whether we need hard or soft links.
18056LN_S=$lt_LN_S
18057
18058# A BSD-compatible nm program.
18059NM=$lt_NM
18060
18061# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018062STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000018063
18064# Used to examine libraries when file_magic_cmd begins "file"
18065MAGIC_CMD=$MAGIC_CMD
18066
18067# Used on cygwin: DLL creation program.
18068DLLTOOL="$DLLTOOL"
18069
18070# Used on cygwin: object dumper.
18071OBJDUMP="$OBJDUMP"
18072
18073# Used on cygwin: assembler.
18074AS="$AS"
18075
18076# The name of the directory that contains temporary libtool files.
18077objdir=$objdir
18078
18079# How to create reloadable object files.
18080reload_flag=$lt_reload_flag
18081reload_cmds=$lt_reload_cmds
18082
18083# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018084wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018085
18086# Object file suffix (normally "o").
18087objext="$ac_objext"
18088
18089# Old archive suffix (normally "a").
18090libext="$libext"
18091
John Criswell47fdd832003-07-14 16:52:07 +000018092# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018093shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018094
John Criswell7a73b802003-06-30 21:59:07 +000018095# Executable file suffix (normally "").
18096exeext="$exeext"
18097
18098# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018099pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018100pic_mode=$pic_mode
18101
John Criswell47fdd832003-07-14 16:52:07 +000018102# What is the maximum length of a command?
18103max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018104
John Criswell47fdd832003-07-14 16:52:07 +000018105# Does compiler simultaneously support -c and -o options?
18106compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018107
Reid Spencera773bd52006-08-04 18:18:08 +000018108# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018109need_locks=$lt_need_locks
18110
18111# Do we need the lib prefix for modules?
18112need_lib_prefix=$need_lib_prefix
18113
18114# Do we need a version for libraries?
18115need_version=$need_version
18116
18117# Whether dlopen is supported.
18118dlopen_support=$enable_dlopen
18119
18120# Whether dlopen of programs is supported.
18121dlopen_self=$enable_dlopen_self
18122
18123# Whether dlopen of statically linked programs is supported.
18124dlopen_self_static=$enable_dlopen_self_static
18125
18126# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018127link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018128
18129# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018130no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018131
18132# Compiler flag to allow reflexive dlopens.
18133export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18134
18135# Compiler flag to generate shared objects directly from archives.
18136whole_archive_flag_spec=$lt_whole_archive_flag_spec
18137
18138# Compiler flag to generate thread-safe objects.
18139thread_safe_flag_spec=$lt_thread_safe_flag_spec
18140
18141# Library versioning type.
18142version_type=$version_type
18143
18144# Format of library name prefix.
18145libname_spec=$lt_libname_spec
18146
18147# List of archive names. First name is the real one, the rest are links.
18148# The last name is the one that the linker finds with -lNAME.
18149library_names_spec=$lt_library_names_spec
18150
18151# The coded name of the library, if different from the real name.
18152soname_spec=$lt_soname_spec
18153
18154# Commands used to build and install an old-style archive.
18155RANLIB=$lt_RANLIB
18156old_archive_cmds=$lt_old_archive_cmds
18157old_postinstall_cmds=$lt_old_postinstall_cmds
18158old_postuninstall_cmds=$lt_old_postuninstall_cmds
18159
18160# Create an old-style archive from a shared archive.
18161old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18162
18163# Create a temporary old-style archive to link instead of a shared archive.
18164old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18165
18166# Commands used to build and install a shared archive.
18167archive_cmds=$lt_archive_cmds
18168archive_expsym_cmds=$lt_archive_expsym_cmds
18169postinstall_cmds=$lt_postinstall_cmds
18170postuninstall_cmds=$lt_postuninstall_cmds
18171
John Criswell47fdd832003-07-14 16:52:07 +000018172# Commands used to build a loadable module (assumed same as above if empty)
18173module_cmds=$lt_module_cmds
18174module_expsym_cmds=$lt_module_expsym_cmds
18175
John Criswell7a73b802003-06-30 21:59:07 +000018176# Commands to strip libraries.
18177old_striplib=$lt_old_striplib
18178striplib=$lt_striplib
18179
John Criswell47fdd832003-07-14 16:52:07 +000018180# Dependencies to place before the objects being linked to create a
18181# shared library.
18182predep_objects=$lt_predep_objects
18183
18184# Dependencies to place after the objects being linked to create a
18185# shared library.
18186postdep_objects=$lt_postdep_objects
18187
18188# Dependencies to place before the objects being linked to create a
18189# shared library.
18190predeps=$lt_predeps
18191
18192# Dependencies to place after the objects being linked to create a
18193# shared library.
18194postdeps=$lt_postdeps
18195
18196# The library search path used internally by the compiler when linking
18197# a shared library.
18198compiler_lib_search_path=$lt_compiler_lib_search_path
18199
John Criswell7a73b802003-06-30 21:59:07 +000018200# Method to check whether dependent libraries are shared objects.
18201deplibs_check_method=$lt_deplibs_check_method
18202
18203# Command to use when deplibs_check_method == file_magic.
18204file_magic_cmd=$lt_file_magic_cmd
18205
18206# Flag that allows shared libraries with undefined symbols to be built.
18207allow_undefined_flag=$lt_allow_undefined_flag
18208
18209# Flag that forces no undefined symbols.
18210no_undefined_flag=$lt_no_undefined_flag
18211
18212# Commands used to finish a libtool library installation in a directory.
18213finish_cmds=$lt_finish_cmds
18214
18215# Same as above, but a single script fragment to be evaled but not shown.
18216finish_eval=$lt_finish_eval
18217
18218# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018219global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018220
18221# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018222global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018223
18224# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018225global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018226
18227# This is the shared library runtime path variable.
18228runpath_var=$runpath_var
18229
18230# This is the shared library path variable.
18231shlibpath_var=$shlibpath_var
18232
18233# Is shlibpath searched before the hard-coded library search path?
18234shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18235
18236# How to hardcode a shared library path into an executable.
18237hardcode_action=$hardcode_action
18238
18239# Whether we should hardcode library paths into libraries.
18240hardcode_into_libs=$hardcode_into_libs
18241
18242# Flag to hardcode \$libdir into a binary during linking.
18243# This must work even if \$libdir does not exist.
18244hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18245
John Criswell47fdd832003-07-14 16:52:07 +000018246# If ld is used when linking, flag to hardcode \$libdir into
18247# a binary during linking. This must work even if \$libdir does
18248# not exist.
18249hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18250
John Criswell7a73b802003-06-30 21:59:07 +000018251# Whether we need a single -rpath flag with a separated argument.
18252hardcode_libdir_separator=$lt_hardcode_libdir_separator
18253
John Criswell47fdd832003-07-14 16:52:07 +000018254# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018255# resulting binary.
18256hardcode_direct=$hardcode_direct
18257
18258# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18259# resulting binary.
18260hardcode_minus_L=$hardcode_minus_L
18261
18262# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18263# the resulting binary.
18264hardcode_shlibpath_var=$hardcode_shlibpath_var
18265
John Criswell47fdd832003-07-14 16:52:07 +000018266# Set to yes if building a shared library automatically hardcodes DIR into the library
18267# and all subsequent libraries and executables linked against it.
18268hardcode_automatic=$hardcode_automatic
18269
John Criswell7a73b802003-06-30 21:59:07 +000018270# Variables whose values should be saved in libtool wrapper scripts and
18271# restored at relink time.
18272variables_saved_for_relink="$variables_saved_for_relink"
18273
18274# Whether libtool must link a program against all its dependency libraries.
18275link_all_deplibs=$link_all_deplibs
18276
18277# Compile-time system search path for libraries
18278sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18279
18280# Run-time system search path for libraries
18281sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18282
18283# Fix the shell variable \$srcfile for the compiler.
18284fix_srcfile_path="$fix_srcfile_path"
18285
18286# Set to yes if exported symbols are required.
18287always_export_symbols=$always_export_symbols
18288
18289# The commands to list exported symbols.
18290export_symbols_cmds=$lt_export_symbols_cmds
18291
18292# The commands to extract the exported symbol list from a shared archive.
18293extract_expsyms_cmds=$lt_extract_expsyms_cmds
18294
18295# Symbols that should not be listed in the preloaded symbols.
18296exclude_expsyms=$lt_exclude_expsyms
18297
18298# Symbols that must always be exported.
18299include_expsyms=$lt_include_expsyms
18300
18301# ### END LIBTOOL CONFIG
18302
18303__EOF__
18304
John Criswell47fdd832003-07-14 16:52:07 +000018305
John Criswell7a73b802003-06-30 21:59:07 +000018306 case $host_os in
18307 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018308 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018309
18310# AIX sometimes has problems with the GCC collect2 program. For some
18311# reason, if we set the COLLECT_NAMES environment variable, the problems
18312# vanish in a puff of smoke.
18313if test "X${COLLECT_NAMES+set}" != Xset; then
18314 COLLECT_NAMES=
18315 export COLLECT_NAMES
18316fi
18317EOF
18318 ;;
18319 esac
18320
John Criswell7a73b802003-06-30 21:59:07 +000018321 # We use sed instead of cat because bash on DJGPP gets confused if
18322 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18323 # text mode, it properly converts lines to CR/LF. This bash problem
18324 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018325 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018326
John Criswell47fdd832003-07-14 16:52:07 +000018327 mv -f "$cfgfile" "$ofile" || \
18328 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018329 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018330
18331else
18332 # If there is no Makefile yet, we rely on a make rule to execute
18333 # `config.status --recheck' to rerun these tests and create the
18334 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018335 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18336 if test -f "$ltmain_in"; then
18337 test -f Makefile && make "$ltmain"
18338 fi
John Criswell7a73b802003-06-30 21:59:07 +000018339fi
John Criswell7a73b802003-06-30 21:59:07 +000018340
18341
John Criswell47fdd832003-07-14 16:52:07 +000018342ac_ext=c
18343ac_cpp='$CPP $CPPFLAGS'
18344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18346ac_compiler_gnu=$ac_cv_c_compiler_gnu
18347
18348CC="$lt_save_CC"
18349
18350
Reid Spencera773bd52006-08-04 18:18:08 +000018351# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018352if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018353 withval=$with_tags; tagnames="$withval"
18354fi
18355
John Criswell47fdd832003-07-14 16:52:07 +000018356
18357if test -f "$ltmain" && test -n "$tagnames"; then
18358 if test ! -f "${ofile}"; then
18359 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18360echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18361 fi
18362
18363 if test -z "$LTCC"; then
18364 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18365 if test -z "$LTCC"; then
18366 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18367echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18368 else
18369 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18370echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18371 fi
18372 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018373 if test -z "$LTCFLAGS"; then
18374 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18375 fi
John Criswell47fdd832003-07-14 16:52:07 +000018376
18377 # Extract list of available tagged configurations in $ofile.
18378 # Note that this assumes the entire list is on one line.
18379 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18380
18381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18382 for tagname in $tagnames; do
18383 IFS="$lt_save_ifs"
18384 # Check whether tagname contains only valid characters
18385 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18386 "") ;;
18387 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18388echo "$as_me: error: invalid tag name: $tagname" >&2;}
18389 { (exit 1); exit 1; }; }
18390 ;;
18391 esac
18392
18393 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18394 then
18395 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18396echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18397 { (exit 1); exit 1; }; }
18398 fi
18399
18400 # Update the list of available tags.
18401 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018402 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018403
18404 case $tagname in
18405 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018406 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18407 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18408 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018409 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018410ac_cpp='$CXXCPP $CPPFLAGS'
18411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18414
18415
18416
18417
18418archive_cmds_need_lc_CXX=no
18419allow_undefined_flag_CXX=
18420always_export_symbols_CXX=no
18421archive_expsym_cmds_CXX=
18422export_dynamic_flag_spec_CXX=
18423hardcode_direct_CXX=no
18424hardcode_libdir_flag_spec_CXX=
18425hardcode_libdir_flag_spec_ld_CXX=
18426hardcode_libdir_separator_CXX=
18427hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018428hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018429hardcode_automatic_CXX=no
18430module_cmds_CXX=
18431module_expsym_cmds_CXX=
18432link_all_deplibs_CXX=unknown
18433old_archive_cmds_CXX=$old_archive_cmds
18434no_undefined_flag_CXX=
18435whole_archive_flag_spec_CXX=
18436enable_shared_with_static_runtimes_CXX=no
18437
18438# Dependencies to place before and after the object being linked:
18439predep_objects_CXX=
18440postdep_objects_CXX=
18441predeps_CXX=
18442postdeps_CXX=
18443compiler_lib_search_path_CXX=
18444
18445# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018446ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018447
18448# Object file extension for compiled C++ test sources.
18449objext=o
18450objext_CXX=$objext
18451
18452# Code to be used in simple compile tests
18453lt_simple_compile_test_code="int some_variable = 0;\n"
18454
18455# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018456lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018457
18458# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18459
18460# If no C compiler was specified, use CC.
18461LTCC=${LTCC-"$CC"}
18462
Reid Spencera773bd52006-08-04 18:18:08 +000018463# If no C compiler flags were specified, use CFLAGS.
18464LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18465
John Criswell47fdd832003-07-14 16:52:07 +000018466# Allow CC to be a program name with arguments.
18467compiler=$CC
18468
18469
Reid Spencera773bd52006-08-04 18:18:08 +000018470# save warnings/boilerplate of simple test code
18471ac_outfile=conftest.$ac_objext
18472printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18473eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18474_lt_compiler_boilerplate=`cat conftest.err`
18475$rm conftest*
18476
18477ac_outfile=conftest.$ac_objext
18478printf "$lt_simple_link_test_code" >conftest.$ac_ext
18479eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18480_lt_linker_boilerplate=`cat conftest.err`
18481$rm conftest*
18482
18483
John Criswell47fdd832003-07-14 16:52:07 +000018484# Allow CC to be a program name with arguments.
18485lt_save_CC=$CC
18486lt_save_LD=$LD
18487lt_save_GCC=$GCC
18488GCC=$GXX
18489lt_save_with_gnu_ld=$with_gnu_ld
18490lt_save_path_LD=$lt_cv_path_LD
18491if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18492 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18493else
Reid Spencera773bd52006-08-04 18:18:08 +000018494 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018495fi
18496if test -n "${lt_cv_path_LDCXX+set}"; then
18497 lt_cv_path_LD=$lt_cv_path_LDCXX
18498else
Reid Spencera773bd52006-08-04 18:18:08 +000018499 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018500fi
18501test -z "${LDCXX+set}" || LD=$LDCXX
18502CC=${CXX-"c++"}
18503compiler=$CC
18504compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018505for cc_temp in $compiler""; do
18506 case $cc_temp in
18507 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18508 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18509 \-*) ;;
18510 *) break;;
18511 esac
18512done
18513cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18514
John Criswell47fdd832003-07-14 16:52:07 +000018515
18516# We don't want -fno-exception wen compiling C++ code, so set the
18517# no_builtin_flag separately
18518if test "$GXX" = yes; then
18519 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18520else
18521 lt_prog_compiler_no_builtin_flag_CXX=
18522fi
18523
18524if test "$GXX" = yes; then
18525 # Set up default GNU C++ configuration
18526
18527
Reid Spencera773bd52006-08-04 18:18:08 +000018528# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018529if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018530 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018531else
18532 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018533fi
18534
John Criswell47fdd832003-07-14 16:52:07 +000018535ac_prog=ld
18536if test "$GCC" = yes; then
18537 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018538 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18539echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018540 case $host in
18541 *-*-mingw*)
18542 # gcc leaves a trailing carriage return which upsets mingw
18543 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18544 *)
18545 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18546 esac
18547 case $ac_prog in
18548 # Accept absolute paths.
18549 [\\/]* | ?:[\\/]*)
18550 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018551 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018552 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18553 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18554 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18555 done
18556 test -z "$LD" && LD="$ac_prog"
18557 ;;
18558 "")
18559 # If it fails, then pretend we aren't using GCC.
18560 ac_prog=ld
18561 ;;
18562 *)
18563 # If it is relative, then search for the first ld in PATH.
18564 with_gnu_ld=unknown
18565 ;;
18566 esac
18567elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018568 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18569echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018570else
Reid Spencera773bd52006-08-04 18:18:08 +000018571 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18572echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018573fi
18574if test "${lt_cv_path_LD+set}" = set; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18576else
18577 if test -z "$LD"; then
18578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18579 for ac_dir in $PATH; do
18580 IFS="$lt_save_ifs"
18581 test -z "$ac_dir" && ac_dir=.
18582 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18583 lt_cv_path_LD="$ac_dir/$ac_prog"
18584 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018585 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018586 # Break only if it was the GNU/non-GNU ld that we prefer.
18587 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18588 *GNU* | *'with BFD'*)
18589 test "$with_gnu_ld" != no && break
18590 ;;
18591 *)
18592 test "$with_gnu_ld" != yes && break
18593 ;;
18594 esac
18595 fi
18596 done
18597 IFS="$lt_save_ifs"
18598else
18599 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18600fi
18601fi
18602
18603LD="$lt_cv_path_LD"
18604if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018605 { echo "$as_me:$LINENO: result: $LD" >&5
18606echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018607else
Reid Spencera773bd52006-08-04 18:18:08 +000018608 { echo "$as_me:$LINENO: result: no" >&5
18609echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018610fi
18611test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18612echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18613 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018614{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18615echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018616if test "${lt_cv_prog_gnu_ld+set}" = set; then
18617 echo $ECHO_N "(cached) $ECHO_C" >&6
18618else
Reid Spencera773bd52006-08-04 18:18:08 +000018619 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018620case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018621*GNU* | *'with BFD'*)
18622 lt_cv_prog_gnu_ld=yes
18623 ;;
18624*)
18625 lt_cv_prog_gnu_ld=no
18626 ;;
18627esac
18628fi
Reid Spencera773bd52006-08-04 18:18:08 +000018629{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18630echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018631with_gnu_ld=$lt_cv_prog_gnu_ld
18632
18633
18634
18635 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18636 # archiving commands below assume that GNU ld is being used.
18637 if test "$with_gnu_ld" = yes; then
18638 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18639 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'
18640
18641 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18642 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18643
18644 # If archive_cmds runs LD, not CC, wlarc should be empty
18645 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18646 # investigate it a little bit more. (MM)
18647 wlarc='${wl}'
18648
18649 # ancient GNU ld didn't support --whole-archive et. al.
18650 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18651 grep 'no-whole-archive' > /dev/null; then
18652 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18653 else
18654 whole_archive_flag_spec_CXX=
18655 fi
18656 else
18657 with_gnu_ld=no
18658 wlarc=
18659
18660 # A generic and very simple default shared library creation
18661 # command for GNU C++ for the case where it uses the native
18662 # linker, instead of GNU ld. If possible, this setting should
18663 # overridden to take advantage of the native linker features on
18664 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018665 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018666 fi
18667
18668 # Commands to make compiler produce verbose output that lists
18669 # what "hidden" libraries, object files and flags are used when
18670 # linking a shared library.
18671 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18672
18673else
18674 GXX=no
18675 with_gnu_ld=no
18676 wlarc=
18677fi
18678
18679# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018680{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18681echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018682ld_shlibs_CXX=yes
18683case $host_os in
18684 aix3*)
18685 # FIXME: insert proper C++ library support
18686 ld_shlibs_CXX=no
18687 ;;
18688 aix4* | aix5*)
18689 if test "$host_cpu" = ia64; then
18690 # On IA64, the linker does run time linking by default, so we don't
18691 # have to do anything special.
18692 aix_use_runtimelinking=no
18693 exp_sym_flag='-Bexport'
18694 no_entry_flag=""
18695 else
18696 aix_use_runtimelinking=no
18697
18698 # Test if we are trying to use run time linking or normal
18699 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18700 # need to do runtime linking.
18701 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18702 for ld_flag in $LDFLAGS; do
18703 case $ld_flag in
18704 *-brtl*)
18705 aix_use_runtimelinking=yes
18706 break
18707 ;;
18708 esac
18709 done
Reid Spencera773bd52006-08-04 18:18:08 +000018710 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018711 esac
18712
18713 exp_sym_flag='-bexport'
18714 no_entry_flag='-bnoentry'
18715 fi
18716
18717 # When large executables or shared objects are built, AIX ld can
18718 # have problems creating the table of contents. If linking a library
18719 # or program results in "error TOC overflow" add -mminimal-toc to
18720 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18721 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18722
18723 archive_cmds_CXX=''
18724 hardcode_direct_CXX=yes
18725 hardcode_libdir_separator_CXX=':'
18726 link_all_deplibs_CXX=yes
18727
18728 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018729 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018730 # We only want to do this on AIX 4.2 and lower, the check
18731 # below for broken collect2 doesn't work under 4.3+
18732 collect2name=`${CC} -print-prog-name=collect2`
18733 if test -f "$collect2name" && \
18734 strings "$collect2name" | grep resolve_lib_name >/dev/null
18735 then
18736 # We have reworked collect2
18737 hardcode_direct_CXX=yes
18738 else
18739 # We have old collect2
18740 hardcode_direct_CXX=unsupported
18741 # It fails to find uninstalled libraries when the uninstalled
18742 # path is not listed in the libpath. Setting hardcode_minus_L
18743 # to unsupported forces relinking
18744 hardcode_minus_L_CXX=yes
18745 hardcode_libdir_flag_spec_CXX='-L$libdir'
18746 hardcode_libdir_separator_CXX=
18747 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018748 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018749 esac
18750 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018751 if test "$aix_use_runtimelinking" = yes; then
18752 shared_flag="$shared_flag "'${wl}-G'
18753 fi
John Criswell47fdd832003-07-14 16:52:07 +000018754 else
18755 # not using gcc
18756 if test "$host_cpu" = ia64; then
18757 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18758 # chokes on -Wl,-G. The following line is correct:
18759 shared_flag='-G'
18760 else
18761 if test "$aix_use_runtimelinking" = yes; then
18762 shared_flag='${wl}-G'
18763 else
18764 shared_flag='${wl}-bM:SRE'
18765 fi
18766 fi
18767 fi
18768
18769 # It seems that -bexpall does not export symbols beginning with
18770 # underscore (_), so it is better to generate a list of symbols to export.
18771 always_export_symbols_CXX=yes
18772 if test "$aix_use_runtimelinking" = yes; then
18773 # Warning - without using the other runtime loading flags (-brtl),
18774 # -berok will link without error, but may produce a broken library.
18775 allow_undefined_flag_CXX='-berok'
18776 # Determine the default libpath from the value encoded in an empty executable.
18777 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018778/* confdefs.h. */
18779_ACEOF
18780cat confdefs.h >>conftest.$ac_ext
18781cat >>conftest.$ac_ext <<_ACEOF
18782/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018783
John Criswell47fdd832003-07-14 16:52:07 +000018784int
18785main ()
18786{
18787
18788 ;
18789 return 0;
18790}
18791_ACEOF
18792rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018793if { (ac_try="$ac_link"
18794case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18797esac
18798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018800 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018801 grep -v '^ *+' conftest.er1 >conftest.err
18802 rm -f conftest.er1
18803 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018805 (exit $ac_status); } &&
18806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18807 { (case "(($ac_try" in
18808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809 *) ac_try_echo=$ac_try;;
18810esac
18811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812 (eval "$ac_try") 2>&5
18813 ac_status=$?
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); }; } &&
18816 { ac_try='test -s conftest$ac_exeext'
18817 { (case "(($ac_try" in
18818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819 *) ac_try_echo=$ac_try;;
18820esac
18821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822 (eval "$ac_try") 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018826
18827aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18828}'`
18829# Check for a 64-bit object if we didn't find anything.
18830if 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; }
18831}'`; fi
18832else
18833 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018834sed 's/^/| /' conftest.$ac_ext >&5
18835
Reid Spencera773bd52006-08-04 18:18:08 +000018836
John Criswell47fdd832003-07-14 16:52:07 +000018837fi
Reid Spencera773bd52006-08-04 18:18:08 +000018838
Bill Wendlingebcceee2009-04-18 11:20:33 +000018839rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018840 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018841if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18842
18843 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18844
Reid Spencera773bd52006-08-04 18:18:08 +000018845 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 +000018846 else
18847 if test "$host_cpu" = ia64; then
18848 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18849 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018850 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 +000018851 else
18852 # Determine the default libpath from the value encoded in an empty executable.
18853 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018854/* confdefs.h. */
18855_ACEOF
18856cat confdefs.h >>conftest.$ac_ext
18857cat >>conftest.$ac_ext <<_ACEOF
18858/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018859
John Criswell47fdd832003-07-14 16:52:07 +000018860int
18861main ()
18862{
18863
18864 ;
18865 return 0;
18866}
18867_ACEOF
18868rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018869if { (ac_try="$ac_link"
18870case "(($ac_try" in
18871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18872 *) ac_try_echo=$ac_try;;
18873esac
18874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18875 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018876 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018877 grep -v '^ *+' conftest.er1 >conftest.err
18878 rm -f conftest.er1
18879 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018881 (exit $ac_status); } &&
18882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18883 { (case "(($ac_try" in
18884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885 *) ac_try_echo=$ac_try;;
18886esac
18887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888 (eval "$ac_try") 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; } &&
18892 { ac_try='test -s conftest$ac_exeext'
18893 { (case "(($ac_try" in
18894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895 *) ac_try_echo=$ac_try;;
18896esac
18897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18898 (eval "$ac_try") 2>&5
18899 ac_status=$?
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018902
18903aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18904}'`
18905# Check for a 64-bit object if we didn't find anything.
18906if 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; }
18907}'`; fi
18908else
18909 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018910sed 's/^/| /' conftest.$ac_ext >&5
18911
Reid Spencera773bd52006-08-04 18:18:08 +000018912
John Criswell47fdd832003-07-14 16:52:07 +000018913fi
Reid Spencera773bd52006-08-04 18:18:08 +000018914
Bill Wendlingebcceee2009-04-18 11:20:33 +000018915rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018916 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018917if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18918
18919 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18920 # Warning - without using the other run time loading flags,
18921 # -berok will link without error, but may produce a broken library.
18922 no_undefined_flag_CXX=' ${wl}-bernotok'
18923 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018924 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018925 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018926 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018927 # This is similar to how AIX traditionally builds its shared libraries.
18928 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 +000018929 fi
18930 fi
18931 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018932
18933 beos*)
18934 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18935 allow_undefined_flag_CXX=unsupported
18936 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18937 # support --undefined. This deserves some investigation. FIXME
18938 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18939 else
18940 ld_shlibs_CXX=no
18941 fi
18942 ;;
18943
John Criswell47fdd832003-07-14 16:52:07 +000018944 chorus*)
18945 case $cc_basename in
18946 *)
18947 # FIXME: insert proper C++ library support
18948 ld_shlibs_CXX=no
18949 ;;
18950 esac
18951 ;;
18952
18953 cygwin* | mingw* | pw32*)
18954 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18955 # as there is no search path for DLLs.
18956 hardcode_libdir_flag_spec_CXX='-L$libdir'
18957 allow_undefined_flag_CXX=unsupported
18958 always_export_symbols_CXX=no
18959 enable_shared_with_static_runtimes_CXX=yes
18960
18961 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018962 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 +000018963 # If the export-symbols file already is a .def file (1st line
18964 # is EXPORTS), use it as is; otherwise, prepend...
18965 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18966 cp $export_symbols $output_objdir/$soname.def;
18967 else
18968 echo EXPORTS > $output_objdir/$soname.def;
18969 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018970 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018971 $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 +000018972 else
18973 ld_shlibs_CXX=no
18974 fi
18975 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018976 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018977 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018978 rhapsody* | darwin1.[012])
18979 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18980 ;;
18981 *) # Darwin 1.3 on
18982 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18983 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18984 else
18985 case ${MACOSX_DEPLOYMENT_TARGET} in
18986 10.[012])
18987 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18988 ;;
18989 10.*)
18990 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18991 ;;
18992 esac
18993 fi
18994 ;;
18995 esac
18996 archive_cmds_need_lc_CXX=no
18997 hardcode_direct_CXX=no
18998 hardcode_automatic_CXX=yes
18999 hardcode_shlibpath_var_CXX=unsupported
19000 whole_archive_flag_spec_CXX=''
19001 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019002
Reid Spencer2706f8c2004-09-19 23:53:36 +000019003 if test "$GXX" = yes ; then
19004 lt_int_apple_cc_single_mod=no
19005 output_verbose_link_cmd='echo'
19006 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19007 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000019008 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019009 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019010 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 +000019011 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019012 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 +000019013 fi
19014 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019015 # 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 +000019016 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019017 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 +000019018 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019019 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 +000019020 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000019021 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 +000019022 else
Reid Spencera773bd52006-08-04 18:18:08 +000019023 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019024 xlc*)
19025 output_verbose_link_cmd='echo'
19026 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'
19027 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019028 # 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 +000019029 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}'
19030 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 +000019031 ;;
19032 *)
19033 ld_shlibs_CXX=no
19034 ;;
19035 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000019036 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019037 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019038
19039 dgux*)
19040 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019041 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019042 # FIXME: insert proper C++ library support
19043 ld_shlibs_CXX=no
19044 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019045 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019046 # Green Hills C++ Compiler
19047 # FIXME: insert proper C++ library support
19048 ld_shlibs_CXX=no
19049 ;;
19050 *)
19051 # FIXME: insert proper C++ library support
19052 ld_shlibs_CXX=no
19053 ;;
19054 esac
19055 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019056 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000019057 # C++ shared libraries reported to be fairly broken before switch to ELF
19058 ld_shlibs_CXX=no
19059 ;;
19060 freebsd-elf*)
19061 archive_cmds_need_lc_CXX=no
19062 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019063 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019064 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19065 # conventions
19066 ld_shlibs_CXX=yes
19067 ;;
19068 gnu*)
19069 ;;
19070 hpux9*)
19071 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19072 hardcode_libdir_separator_CXX=:
19073 export_dynamic_flag_spec_CXX='${wl}-E'
19074 hardcode_direct_CXX=yes
19075 hardcode_minus_L_CXX=yes # Not in the search PATH,
19076 # but as the default
19077 # location of the library.
19078
19079 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019080 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019081 # FIXME: insert proper C++ library support
19082 ld_shlibs_CXX=no
19083 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019084 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019085 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 +000019086 # Commands to make compiler produce verbose output that lists
19087 # what "hidden" libraries, object files and flags are used when
19088 # linking a shared library.
19089 #
19090 # There doesn't appear to be a way to prevent this compiler from
19091 # explicitly linking system object files so we need to strip them
19092 # from the output so that they don't get included in the library
19093 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019094 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 +000019095 ;;
19096 *)
19097 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019098 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 +000019099 else
19100 # FIXME: insert proper C++ library support
19101 ld_shlibs_CXX=no
19102 fi
19103 ;;
19104 esac
19105 ;;
19106 hpux10*|hpux11*)
19107 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019108 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19109 hardcode_libdir_separator_CXX=:
19110
19111 case $host_cpu in
19112 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019113 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019114 ;;
19115 *)
John Criswell47fdd832003-07-14 16:52:07 +000019116 export_dynamic_flag_spec_CXX='${wl}-E'
19117 ;;
19118 esac
19119 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019120 case $host_cpu in
19121 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019122 hardcode_direct_CXX=no
19123 hardcode_shlibpath_var_CXX=no
19124 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019125 *)
19126 hardcode_direct_CXX=yes
19127 hardcode_minus_L_CXX=yes # Not in the search PATH,
19128 # but as the default
19129 # location of the library.
19130 ;;
19131 esac
19132
19133 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019134 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019135 # FIXME: insert proper C++ library support
19136 ld_shlibs_CXX=no
19137 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019138 aCC*)
19139 case $host_cpu in
19140 hppa*64*)
19141 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19142 ;;
19143 ia64*)
19144 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 +000019145 ;;
19146 *)
19147 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19148 ;;
19149 esac
19150 # Commands to make compiler produce verbose output that lists
19151 # what "hidden" libraries, object files and flags are used when
19152 # linking a shared library.
19153 #
19154 # There doesn't appear to be a way to prevent this compiler from
19155 # explicitly linking system object files so we need to strip them
19156 # from the output so that they don't get included in the library
19157 # dependencies.
19158 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'
19159 ;;
19160 *)
19161 if test "$GXX" = yes; then
19162 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019163 case $host_cpu in
19164 hppa*64*)
19165 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19166 ;;
19167 ia64*)
19168 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 +000019169 ;;
19170 *)
19171 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'
19172 ;;
19173 esac
19174 fi
19175 else
19176 # FIXME: insert proper C++ library support
19177 ld_shlibs_CXX=no
19178 fi
19179 ;;
19180 esac
19181 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019182 interix3*)
19183 hardcode_direct_CXX=no
19184 hardcode_shlibpath_var_CXX=no
19185 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19186 export_dynamic_flag_spec_CXX='${wl}-E'
19187 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19188 # Instead, shared libraries are loaded at an image base (0x10000000 by
19189 # default) and relocated if they conflict, which is a slow very memory
19190 # consuming and fragmenting process. To avoid this, we pick a random,
19191 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19192 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19193 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'
19194 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'
19195 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019196 irix5* | irix6*)
19197 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019198 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019199 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019200 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 +000019201
19202 # Archives containing C++ object files must be created using
19203 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19204 # necessary to make sure instantiated templates are included
19205 # in the archive.
19206 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19207 ;;
19208 *)
19209 if test "$GXX" = yes; then
19210 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019211 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 +000019212 else
19213 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'
19214 fi
19215 fi
19216 link_all_deplibs_CXX=yes
19217 ;;
19218 esac
19219 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19220 hardcode_libdir_separator_CXX=:
19221 ;;
19222 linux*)
19223 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019224 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019225 # Kuck and Associates, Inc. (KAI) C++ Compiler
19226
19227 # KCC will only create a shared library if the output file
19228 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19229 # to its proper name (with version) after linking.
19230 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'
19231 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'
19232 # Commands to make compiler produce verbose output that lists
19233 # what "hidden" libraries, object files and flags are used when
19234 # linking a shared library.
19235 #
19236 # There doesn't appear to be a way to prevent this compiler from
19237 # explicitly linking system object files so we need to strip them
19238 # from the output so that they don't get included in the library
19239 # dependencies.
19240 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'
19241
19242 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19243 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19244
19245 # Archives containing C++ object files must be created using
19246 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19247 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19248 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019249 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019250 # Intel C++
19251 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019252 # version 8.0 and above of icpc choke on multiply defined symbols
19253 # if we add $predep_objects and $postdep_objects, however 7.1 and
19254 # earlier do not add the objects themselves.
19255 case `$CC -V 2>&1` in
19256 *"Version 7."*)
19257 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19258 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'
19259 ;;
19260 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019261 tmp_idyn=
19262 case $host_cpu in
19263 ia64*) tmp_idyn=' -i_dynamic';;
19264 esac
19265 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19266 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 +000019267 ;;
19268 esac
John Criswell47fdd832003-07-14 16:52:07 +000019269 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019270 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19271 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19272 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19273 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019274 pgCC*)
19275 # Portland Group C++ compiler
19276 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19277 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'
19278
19279 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19280 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19281 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'
19282 ;;
19283 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019284 # Compaq C++
19285 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19286 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'
19287
19288 runpath_var=LD_RUN_PATH
19289 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19290 hardcode_libdir_separator_CXX=:
19291
19292 # Commands to make compiler produce verbose output that lists
19293 # what "hidden" libraries, object files and flags are used when
19294 # linking a shared library.
19295 #
19296 # There doesn't appear to be a way to prevent this compiler from
19297 # explicitly linking system object files so we need to strip them
19298 # from the output so that they don't get included in the library
19299 # dependencies.
19300 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'
19301 ;;
19302 esac
19303 ;;
19304 lynxos*)
19305 # FIXME: insert proper C++ library support
19306 ld_shlibs_CXX=no
19307 ;;
19308 m88k*)
19309 # FIXME: insert proper C++ library support
19310 ld_shlibs_CXX=no
19311 ;;
19312 mvs*)
19313 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019314 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019315 # FIXME: insert proper C++ library support
19316 ld_shlibs_CXX=no
19317 ;;
19318 *)
19319 # FIXME: insert proper C++ library support
19320 ld_shlibs_CXX=no
19321 ;;
19322 esac
19323 ;;
19324 netbsd*)
19325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19326 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19327 wlarc=
19328 hardcode_libdir_flag_spec_CXX='-R$libdir'
19329 hardcode_direct_CXX=yes
19330 hardcode_shlibpath_var_CXX=no
19331 fi
19332 # Workaround some broken pre-1.5 toolchains
19333 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19334 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019335 openbsd2*)
19336 # C++ shared libraries are fairly broken
19337 ld_shlibs_CXX=no
19338 ;;
19339 openbsd*)
19340 hardcode_direct_CXX=yes
19341 hardcode_shlibpath_var_CXX=no
19342 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19343 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19344 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19345 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19346 export_dynamic_flag_spec_CXX='${wl}-E'
19347 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19348 fi
19349 output_verbose_link_cmd='echo'
19350 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019351 osf3*)
19352 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019353 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019354 # Kuck and Associates, Inc. (KAI) C++ Compiler
19355
19356 # KCC will only create a shared library if the output file
19357 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19358 # to its proper name (with version) after linking.
19359 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'
19360
19361 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19362 hardcode_libdir_separator_CXX=:
19363
19364 # Archives containing C++ object files must be created using
19365 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19366 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19367
19368 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019369 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019370 # Rational C++ 2.4.1
19371 # FIXME: insert proper C++ library support
19372 ld_shlibs_CXX=no
19373 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019374 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019375 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019376 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 +000019377
19378 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19379 hardcode_libdir_separator_CXX=:
19380
19381 # Commands to make compiler produce verbose output that lists
19382 # what "hidden" libraries, object files and flags are used when
19383 # linking a shared library.
19384 #
19385 # There doesn't appear to be a way to prevent this compiler from
19386 # explicitly linking system object files so we need to strip them
19387 # from the output so that they don't get included in the library
19388 # dependencies.
19389 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'
19390 ;;
19391 *)
19392 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19393 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019394 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 +000019395
19396 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19397 hardcode_libdir_separator_CXX=:
19398
19399 # Commands to make compiler produce verbose output that lists
19400 # what "hidden" libraries, object files and flags are used when
19401 # linking a shared library.
19402 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19403
19404 else
19405 # FIXME: insert proper C++ library support
19406 ld_shlibs_CXX=no
19407 fi
19408 ;;
19409 esac
19410 ;;
19411 osf4* | osf5*)
19412 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019413 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019414 # Kuck and Associates, Inc. (KAI) C++ Compiler
19415
19416 # KCC will only create a shared library if the output file
19417 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19418 # to its proper name (with version) after linking.
19419 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'
19420
19421 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19422 hardcode_libdir_separator_CXX=:
19423
19424 # Archives containing C++ object files must be created using
19425 # the KAI C++ compiler.
19426 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19427 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019428 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019429 # Rational C++ 2.4.1
19430 # FIXME: insert proper C++ library support
19431 ld_shlibs_CXX=no
19432 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019433 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019434 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019435 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 +000019436 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19437 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019438 $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 +000019439 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019440
19441 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19442 hardcode_libdir_separator_CXX=:
19443
19444 # Commands to make compiler produce verbose output that lists
19445 # what "hidden" libraries, object files and flags are used when
19446 # linking a shared library.
19447 #
19448 # There doesn't appear to be a way to prevent this compiler from
19449 # explicitly linking system object files so we need to strip them
19450 # from the output so that they don't get included in the library
19451 # dependencies.
19452 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'
19453 ;;
19454 *)
19455 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19456 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019457 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 +000019458
19459 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19460 hardcode_libdir_separator_CXX=:
19461
19462 # Commands to make compiler produce verbose output that lists
19463 # what "hidden" libraries, object files and flags are used when
19464 # linking a shared library.
19465 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19466
19467 else
19468 # FIXME: insert proper C++ library support
19469 ld_shlibs_CXX=no
19470 fi
19471 ;;
19472 esac
19473 ;;
19474 psos*)
19475 # FIXME: insert proper C++ library support
19476 ld_shlibs_CXX=no
19477 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019478 sunos4*)
19479 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019480 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019481 # Sun C++ 4.x
19482 # FIXME: insert proper C++ library support
19483 ld_shlibs_CXX=no
19484 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019485 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019486 # Lucid
19487 # FIXME: insert proper C++ library support
19488 ld_shlibs_CXX=no
19489 ;;
19490 *)
19491 # FIXME: insert proper C++ library support
19492 ld_shlibs_CXX=no
19493 ;;
19494 esac
19495 ;;
19496 solaris*)
19497 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019498 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019499 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019500 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019501 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019502 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 +000019503 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 +000019504 $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 +000019505
19506 hardcode_libdir_flag_spec_CXX='-R$libdir'
19507 hardcode_shlibpath_var_CXX=no
19508 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019509 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019510 *)
19511 # The C++ compiler is used as linker so we must use $wl
19512 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019513 # linker. We must also pass each convience library through
19514 # to the system linker between allextract/defaultextract.
19515 # The C++ compiler will combine linker options so we
19516 # cannot just pass the convience library names through
19517 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019518 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019519 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 +000019520 ;;
19521 esac
19522 link_all_deplibs_CXX=yes
19523
Reid Spencera773bd52006-08-04 18:18:08 +000019524 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019525
19526 # Archives containing C++ object files must be created using
19527 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19528 # necessary to make sure instantiated templates are included
19529 # in the archive.
19530 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19531 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019532 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019533 # Green Hills C++ Compiler
19534 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19535
19536 # The C++ compiler must be used to create the archive.
19537 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19538 ;;
19539 *)
19540 # GNU C++ compiler with Solaris linker
19541 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19542 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19543 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019544 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 +000019545 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19546 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19547
John Criswell47fdd832003-07-14 16:52:07 +000019548 # Commands to make compiler produce verbose output that lists
19549 # what "hidden" libraries, object files and flags are used when
19550 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019551 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019552 else
19553 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19554 # platform.
19555 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 +000019556 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19557 $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 +000019558
19559 # Commands to make compiler produce verbose output that lists
19560 # what "hidden" libraries, object files and flags are used when
19561 # linking a shared library.
19562 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19563 fi
19564
19565 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19566 fi
19567 ;;
19568 esac
19569 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019570 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19571 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019572 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019573 hardcode_shlibpath_var_CXX=no
19574 runpath_var='LD_RUN_PATH'
19575
19576 case $cc_basename in
19577 CC*)
19578 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19579 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19580 ;;
19581 *)
19582 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19583 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19584 ;;
19585 esac
19586 ;;
19587 sysv5* | sco3.2v5* | sco5v6*)
19588 # Note: We can NOT use -z defs as we might desire, because we do not
19589 # link with -lc, and that would cause any symbols used from libc to
19590 # always be unresolved, which means just about no library would
19591 # ever link correctly. If we're not using GNU ld we use -z text
19592 # though, which does catch some bad symbols but isn't as heavy-handed
19593 # as -z defs.
19594 # For security reasons, it is highly recommended that you always
19595 # use absolute paths for naming shared libraries, and exclude the
19596 # DT_RUNPATH tag from executables and libraries. But doing so
19597 # requires that you compile everything twice, which is a pain.
19598 # So that behaviour is only enabled if SCOABSPATH is set to a
19599 # non-empty value in the environment. Most likely only useful for
19600 # creating official distributions of packages.
19601 # This is a hack until libtool officially supports absolute path
19602 # names for shared libraries.
19603 no_undefined_flag_CXX='${wl}-z,text'
19604 allow_undefined_flag_CXX='${wl}-z,nodefs'
19605 archive_cmds_need_lc_CXX=no
19606 hardcode_shlibpath_var_CXX=no
19607 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19608 hardcode_libdir_separator_CXX=':'
19609 link_all_deplibs_CXX=yes
19610 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19611 runpath_var='LD_RUN_PATH'
19612
19613 case $cc_basename in
19614 CC*)
19615 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19616 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19617 ;;
19618 *)
19619 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19620 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19621 ;;
19622 esac
John Criswell47fdd832003-07-14 16:52:07 +000019623 ;;
19624 tandem*)
19625 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019626 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019627 # NonStop-UX NCC 3.20
19628 # FIXME: insert proper C++ library support
19629 ld_shlibs_CXX=no
19630 ;;
19631 *)
19632 # FIXME: insert proper C++ library support
19633 ld_shlibs_CXX=no
19634 ;;
19635 esac
19636 ;;
19637 vxworks*)
19638 # FIXME: insert proper C++ library support
19639 ld_shlibs_CXX=no
19640 ;;
19641 *)
19642 # FIXME: insert proper C++ library support
19643 ld_shlibs_CXX=no
19644 ;;
19645esac
Reid Spencera773bd52006-08-04 18:18:08 +000019646{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19647echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019648test "$ld_shlibs_CXX" = no && can_build_shared=no
19649
19650GCC_CXX="$GXX"
19651LD_CXX="$LD"
19652
John Criswell47fdd832003-07-14 16:52:07 +000019653
19654cat > conftest.$ac_ext <<EOF
19655class Foo
19656{
19657public:
19658 Foo (void) { a = 0; }
19659private:
19660 int a;
19661};
19662EOF
19663
19664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19665 (eval $ac_compile) 2>&5
19666 ac_status=$?
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; then
19669 # Parse the compiler output and extract the necessary
19670 # objects, libraries and library flags.
19671
19672 # Sentinel used to keep track of whether or not we are before
19673 # the conftest object file.
19674 pre_test_object_deps_done=no
19675
19676 # The `*' in the case matches for architectures that use `case' in
19677 # $output_verbose_cmd can trigger glob expansion during the loop
19678 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019679 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019680
19681 for p in `eval $output_verbose_link_cmd`; do
19682 case $p in
19683
19684 -L* | -R* | -l*)
19685 # Some compilers place space between "-{L,R}" and the path.
19686 # Remove the space.
19687 if test $p = "-L" \
19688 || test $p = "-R"; then
19689 prev=$p
19690 continue
19691 else
19692 prev=
19693 fi
19694
19695 if test "$pre_test_object_deps_done" = no; then
19696 case $p in
19697 -L* | -R*)
19698 # Internal compiler library paths should come after those
19699 # provided the user. The postdeps already come after the
19700 # user supplied libs so there is no need to process them.
19701 if test -z "$compiler_lib_search_path_CXX"; then
19702 compiler_lib_search_path_CXX="${prev}${p}"
19703 else
19704 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19705 fi
19706 ;;
19707 # The "-l" case would never come before the object being
19708 # linked, so don't bother handling this case.
19709 esac
19710 else
19711 if test -z "$postdeps_CXX"; then
19712 postdeps_CXX="${prev}${p}"
19713 else
19714 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19715 fi
19716 fi
19717 ;;
19718
19719 *.$objext)
19720 # This assumes that the test object file only shows up
19721 # once in the compiler output.
19722 if test "$p" = "conftest.$objext"; then
19723 pre_test_object_deps_done=yes
19724 continue
19725 fi
19726
19727 if test "$pre_test_object_deps_done" = no; then
19728 if test -z "$predep_objects_CXX"; then
19729 predep_objects_CXX="$p"
19730 else
19731 predep_objects_CXX="$predep_objects_CXX $p"
19732 fi
19733 else
19734 if test -z "$postdep_objects_CXX"; then
19735 postdep_objects_CXX="$p"
19736 else
19737 postdep_objects_CXX="$postdep_objects_CXX $p"
19738 fi
19739 fi
19740 ;;
19741
19742 *) ;; # Ignore the rest.
19743
19744 esac
19745 done
19746
19747 # Clean up.
19748 rm -f a.out a.exe
19749else
19750 echo "libtool.m4: error: problem compiling CXX test program"
19751fi
19752
19753$rm -f confest.$objext
19754
Reid Spencera773bd52006-08-04 18:18:08 +000019755# PORTME: override above test on systems where it is broken
19756case $host_os in
19757interix3*)
19758 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19759 # hack all around it, let's just trust "g++" to DTRT.
19760 predep_objects_CXX=
19761 postdep_objects_CXX=
19762 postdeps_CXX=
19763 ;;
19764
19765solaris*)
19766 case $cc_basename in
19767 CC*)
19768 # Adding this requires a known-good setup of shared libraries for
19769 # Sun compiler versions before 5.6, else PIC objects from an old
19770 # archive will be linked into the output, leading to subtle bugs.
19771 postdeps_CXX='-lCstd -lCrun'
19772 ;;
19773 esac
19774 ;;
19775esac
19776
19777
John Criswell47fdd832003-07-14 16:52:07 +000019778case " $postdeps_CXX " in
19779*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19780esac
19781
19782lt_prog_compiler_wl_CXX=
19783lt_prog_compiler_pic_CXX=
19784lt_prog_compiler_static_CXX=
19785
Reid Spencera773bd52006-08-04 18:18:08 +000019786{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19787echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019788
19789 # C++ specific cases for pic, static, wl, etc.
19790 if test "$GXX" = yes; then
19791 lt_prog_compiler_wl_CXX='-Wl,'
19792 lt_prog_compiler_static_CXX='-static'
19793
19794 case $host_os in
19795 aix*)
19796 # All AIX code is PIC.
19797 if test "$host_cpu" = ia64; then
19798 # AIX 5 now supports IA64 processor
19799 lt_prog_compiler_static_CXX='-Bstatic'
19800 fi
19801 ;;
19802 amigaos*)
19803 # FIXME: we need at least 68020 code to build shared libraries, but
19804 # adding the `-m68020' flag to GCC prevents building anything better,
19805 # like `-m68040'.
19806 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19807 ;;
19808 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19809 # PIC is the default for these OSes.
19810 ;;
19811 mingw* | os2* | pw32*)
19812 # This hack is so that the source file can tell whether it is being
19813 # built for inclusion in a dll (and should export symbols for example).
19814 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19815 ;;
19816 darwin* | rhapsody*)
19817 # PIC is the default on this platform
19818 # Common symbols not allowed in MH_DYLIB files
19819 lt_prog_compiler_pic_CXX='-fno-common'
19820 ;;
19821 *djgpp*)
19822 # DJGPP does not support shared libraries at all
19823 lt_prog_compiler_pic_CXX=
19824 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019825 interix3*)
19826 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19827 # Instead, we relocate shared libraries at runtime.
19828 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019829 sysv4*MP*)
19830 if test -d /usr/nec; then
19831 lt_prog_compiler_pic_CXX=-Kconform_pic
19832 fi
19833 ;;
19834 hpux*)
19835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19836 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019837 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019838 hppa*64*|ia64*)
19839 ;;
19840 *)
19841 lt_prog_compiler_pic_CXX='-fPIC'
19842 ;;
19843 esac
19844 ;;
19845 *)
19846 lt_prog_compiler_pic_CXX='-fPIC'
19847 ;;
19848 esac
19849 else
19850 case $host_os in
19851 aix4* | aix5*)
19852 # All AIX code is PIC.
19853 if test "$host_cpu" = ia64; then
19854 # AIX 5 now supports IA64 processor
19855 lt_prog_compiler_static_CXX='-Bstatic'
19856 else
19857 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19858 fi
19859 ;;
19860 chorus*)
19861 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019862 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019863 # Green Hills C++ Compiler
19864 # _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"
19865 ;;
19866 esac
19867 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019868 darwin*)
19869 # PIC is the default on this platform
19870 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019871 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019872 xlc*)
19873 lt_prog_compiler_pic_CXX='-qnocommon'
19874 lt_prog_compiler_wl_CXX='-Wl,'
19875 ;;
19876 esac
19877 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019878 dgux*)
19879 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019880 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019881 lt_prog_compiler_pic_CXX='-KPIC'
19882 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019883 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019884 # Green Hills C++ Compiler
19885 lt_prog_compiler_pic_CXX='-pic'
19886 ;;
19887 *)
19888 ;;
19889 esac
19890 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019891 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019892 # FreeBSD uses GNU C++
19893 ;;
19894 hpux9* | hpux10* | hpux11*)
19895 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019896 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019897 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019898 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019899 if test "$host_cpu" != ia64; then
19900 lt_prog_compiler_pic_CXX='+Z'
19901 fi
19902 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019903 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019904 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019905 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19906 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019907 hppa*64*|ia64*)
19908 # +Z the default
19909 ;;
19910 *)
19911 lt_prog_compiler_pic_CXX='+Z'
19912 ;;
19913 esac
19914 ;;
19915 *)
19916 ;;
19917 esac
19918 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019919 interix*)
19920 # This is c89, which is MS Visual C++ (no shared libs)
19921 # Anyone wants to do a port?
19922 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019923 irix5* | irix6* | nonstopux*)
19924 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019925 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019926 lt_prog_compiler_wl_CXX='-Wl,'
19927 lt_prog_compiler_static_CXX='-non_shared'
19928 # CC pic flag -KPIC is the default.
19929 ;;
19930 *)
19931 ;;
19932 esac
19933 ;;
19934 linux*)
19935 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019936 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019937 # KAI C++ Compiler
19938 lt_prog_compiler_wl_CXX='--backend -Wl,'
19939 lt_prog_compiler_pic_CXX='-fPIC'
19940 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019941 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019942 # Intel C++
19943 lt_prog_compiler_wl_CXX='-Wl,'
19944 lt_prog_compiler_pic_CXX='-KPIC'
19945 lt_prog_compiler_static_CXX='-static'
19946 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019947 pgCC*)
19948 # Portland Group C++ compiler.
19949 lt_prog_compiler_wl_CXX='-Wl,'
19950 lt_prog_compiler_pic_CXX='-fpic'
19951 lt_prog_compiler_static_CXX='-Bstatic'
19952 ;;
19953 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019954 # Compaq C++
19955 # Make sure the PIC flag is empty. It appears that all Alpha
19956 # Linux and Compaq Tru64 Unix objects are PIC.
19957 lt_prog_compiler_pic_CXX=
19958 lt_prog_compiler_static_CXX='-non_shared'
19959 ;;
19960 *)
19961 ;;
19962 esac
19963 ;;
19964 lynxos*)
19965 ;;
19966 m88k*)
19967 ;;
19968 mvs*)
19969 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019970 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019971 lt_prog_compiler_pic_CXX='-W c,exportall'
19972 ;;
19973 *)
19974 ;;
19975 esac
19976 ;;
19977 netbsd*)
19978 ;;
19979 osf3* | osf4* | osf5*)
19980 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019981 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019982 lt_prog_compiler_wl_CXX='--backend -Wl,'
19983 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019984 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019985 # Rational C++ 2.4.1
19986 lt_prog_compiler_pic_CXX='-pic'
19987 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019988 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019989 # Digital/Compaq C++
19990 lt_prog_compiler_wl_CXX='-Wl,'
19991 # Make sure the PIC flag is empty. It appears that all Alpha
19992 # Linux and Compaq Tru64 Unix objects are PIC.
19993 lt_prog_compiler_pic_CXX=
19994 lt_prog_compiler_static_CXX='-non_shared'
19995 ;;
19996 *)
19997 ;;
19998 esac
19999 ;;
20000 psos*)
20001 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020002 solaris*)
20003 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020004 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020005 # Sun C++ 4.2, 5.x and Centerline C++
20006 lt_prog_compiler_pic_CXX='-KPIC'
20007 lt_prog_compiler_static_CXX='-Bstatic'
20008 lt_prog_compiler_wl_CXX='-Qoption ld '
20009 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020010 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000020011 # Green Hills C++ Compiler
20012 lt_prog_compiler_pic_CXX='-PIC'
20013 ;;
20014 *)
20015 ;;
20016 esac
20017 ;;
20018 sunos4*)
20019 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020020 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020021 # Sun C++ 4.x
20022 lt_prog_compiler_pic_CXX='-pic'
20023 lt_prog_compiler_static_CXX='-Bstatic'
20024 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020025 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000020026 # Lucid
20027 lt_prog_compiler_pic_CXX='-pic'
20028 ;;
20029 *)
20030 ;;
20031 esac
20032 ;;
20033 tandem*)
20034 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020035 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020036 # NonStop-UX NCC 3.20
20037 lt_prog_compiler_pic_CXX='-KPIC'
20038 ;;
20039 *)
20040 ;;
20041 esac
20042 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020043 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20044 case $cc_basename in
20045 CC*)
20046 lt_prog_compiler_wl_CXX='-Wl,'
20047 lt_prog_compiler_pic_CXX='-KPIC'
20048 lt_prog_compiler_static_CXX='-Bstatic'
20049 ;;
20050 esac
John Criswell47fdd832003-07-14 16:52:07 +000020051 ;;
20052 vxworks*)
20053 ;;
20054 *)
20055 lt_prog_compiler_can_build_shared_CXX=no
20056 ;;
20057 esac
20058 fi
20059
Reid Spencera773bd52006-08-04 18:18:08 +000020060{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20061echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020062
20063#
20064# Check to make sure the PIC flag actually works.
20065#
20066if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020067
Reid Spencera773bd52006-08-04 18:18:08 +000020068{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20069echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020070if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20072else
20073 lt_prog_compiler_pic_works_CXX=no
20074 ac_outfile=conftest.$ac_objext
20075 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20076 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20077 # Insert the option either (1) after the last *FLAGS variable, or
20078 # (2) before a word containing "conftest.", or (3) at the end.
20079 # Note that $ac_compile itself does not contain backslashes and begins
20080 # with a dollar sign (not a hyphen), so the echo should work correctly.
20081 # The option is referenced via a variable to avoid confusing sed.
20082 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20085 -e 's:$: $lt_compiler_flag:'`
Shantonu Sen7e836972009-08-11 13:39:52 +000020086 (eval echo "\"\$as_me:20086: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020087 (eval "$lt_compile" 2>conftest.err)
20088 ac_status=$?
20089 cat conftest.err >&5
Shantonu Sen7e836972009-08-11 13:39:52 +000020090 echo "$as_me:20090: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020091 if (exit $ac_status) && test -s "$ac_outfile"; then
20092 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020093 # So say no if there are warnings other than the usual output.
20094 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20096 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020097 lt_prog_compiler_pic_works_CXX=yes
20098 fi
20099 fi
20100 $rm conftest*
20101
20102fi
Reid Spencera773bd52006-08-04 18:18:08 +000020103{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20104echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020105
20106if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20107 case $lt_prog_compiler_pic_CXX in
20108 "" | " "*) ;;
20109 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20110 esac
20111else
20112 lt_prog_compiler_pic_CXX=
20113 lt_prog_compiler_can_build_shared_CXX=no
20114fi
20115
20116fi
Reid Spencera773bd52006-08-04 18:18:08 +000020117case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020118 # For platforms which do not support PIC, -DPIC is meaningless:
20119 *djgpp*)
20120 lt_prog_compiler_pic_CXX=
20121 ;;
20122 *)
20123 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20124 ;;
20125esac
20126
Reid Spencera773bd52006-08-04 18:18:08 +000020127#
20128# Check to make sure the static flag actually works.
20129#
20130wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20131{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20132echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20133if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20134 echo $ECHO_N "(cached) $ECHO_C" >&6
20135else
20136 lt_prog_compiler_static_works_CXX=no
20137 save_LDFLAGS="$LDFLAGS"
20138 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20139 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20140 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20141 # The linker can only warn and ignore the option if not recognized
20142 # So say no if there are warnings
20143 if test -s conftest.err; then
20144 # Append any errors to the config.log.
20145 cat conftest.err 1>&5
20146 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20148 if diff conftest.exp conftest.er2 >/dev/null; then
20149 lt_prog_compiler_static_works_CXX=yes
20150 fi
20151 else
20152 lt_prog_compiler_static_works_CXX=yes
20153 fi
20154 fi
20155 $rm conftest*
20156 LDFLAGS="$save_LDFLAGS"
20157
20158fi
20159{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20160echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20161
20162if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20163 :
20164else
20165 lt_prog_compiler_static_CXX=
20166fi
20167
20168
20169{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20170echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020171if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20172 echo $ECHO_N "(cached) $ECHO_C" >&6
20173else
20174 lt_cv_prog_compiler_c_o_CXX=no
20175 $rm -r conftest 2>/dev/null
20176 mkdir conftest
20177 cd conftest
20178 mkdir out
20179 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20180
John Criswell47fdd832003-07-14 16:52:07 +000020181 lt_compiler_flag="-o out/conftest2.$ac_objext"
20182 # Insert the option either (1) after the last *FLAGS variable, or
20183 # (2) before a word containing "conftest.", or (3) at the end.
20184 # Note that $ac_compile itself does not contain backslashes and begins
20185 # with a dollar sign (not a hyphen), so the echo should work correctly.
20186 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20189 -e 's:$: $lt_compiler_flag:'`
Shantonu Sen7e836972009-08-11 13:39:52 +000020190 (eval echo "\"\$as_me:20190: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020191 (eval "$lt_compile" 2>out/conftest.err)
20192 ac_status=$?
20193 cat out/conftest.err >&5
Shantonu Sen7e836972009-08-11 13:39:52 +000020194 echo "$as_me:20194: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020195 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20196 then
20197 # The compiler can only warn and ignore the option if not recognized
20198 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020199 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20200 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20201 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020202 lt_cv_prog_compiler_c_o_CXX=yes
20203 fi
20204 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020205 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020206 $rm conftest*
20207 # SGI C++ compiler will create directory out/ii_files/ for
20208 # template instantiation
20209 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20210 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020211 cd ..
20212 rmdir conftest
20213 $rm conftest*
20214
20215fi
Reid Spencera773bd52006-08-04 18:18:08 +000020216{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20217echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020218
20219
20220hard_links="nottested"
20221if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20222 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020223 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20224echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020225 hard_links=yes
20226 $rm conftest*
20227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20228 touch conftest.a
20229 ln conftest.a conftest.b 2>&5 || hard_links=no
20230 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020231 { echo "$as_me:$LINENO: result: $hard_links" >&5
20232echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020233 if test "$hard_links" = no; then
20234 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20235echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20236 need_locks=warn
20237 fi
20238else
20239 need_locks=no
20240fi
20241
Reid Spencera773bd52006-08-04 18:18:08 +000020242{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20243echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020244
20245 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20246 case $host_os in
20247 aix4* | aix5*)
20248 # If we're using GNU nm, then we don't want the "-C" option.
20249 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20250 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20251 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'
20252 else
20253 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'
20254 fi
20255 ;;
20256 pw32*)
20257 export_symbols_cmds_CXX="$ltdll_cmds"
20258 ;;
20259 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020260 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 +000020261 ;;
20262 *)
20263 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20264 ;;
20265 esac
20266
Reid Spencera773bd52006-08-04 18:18:08 +000020267{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20268echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020269test "$ld_shlibs_CXX" = no && can_build_shared=no
20270
John Criswell47fdd832003-07-14 16:52:07 +000020271#
20272# Do we need to explicitly link libc?
20273#
20274case "x$archive_cmds_need_lc_CXX" in
20275x|xyes)
20276 # Assume -lc should be added
20277 archive_cmds_need_lc_CXX=yes
20278
20279 if test "$enable_shared" = yes && test "$GCC" = yes; then
20280 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020281 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020282 # FIXME: we may have to deal with multi-command sequences.
20283 ;;
20284 '$CC '*)
20285 # Test whether the compiler implicitly links with -lc since on some
20286 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20287 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020288 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20289echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020290 $rm conftest*
20291 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20292
20293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20294 (eval $ac_compile) 2>&5
20295 ac_status=$?
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); } 2>conftest.err; then
20298 soname=conftest
20299 lib=conftest
20300 libobjs=conftest.$ac_objext
20301 deplibs=
20302 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020303 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020304 compiler_flags=-v
20305 linker_flags=-v
20306 verstring=
20307 output_objdir=.
20308 libname=conftest
20309 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20310 allow_undefined_flag_CXX=
20311 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20312 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20313 ac_status=$?
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); }
20316 then
20317 archive_cmds_need_lc_CXX=no
20318 else
20319 archive_cmds_need_lc_CXX=yes
20320 fi
20321 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20322 else
20323 cat conftest.err 1>&5
20324 fi
20325 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020326 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20327echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020328 ;;
20329 esac
20330 fi
20331 ;;
20332esac
20333
Reid Spencera773bd52006-08-04 18:18:08 +000020334{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20335echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020336library_names_spec=
20337libname_spec='lib$name'
20338soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020339shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020340postinstall_cmds=
20341postuninstall_cmds=
20342finish_cmds=
20343finish_eval=
20344shlibpath_var=
20345shlibpath_overrides_runpath=unknown
20346version_type=none
20347dynamic_linker="$host_os ld.so"
20348sys_lib_dlsearch_path_spec="/lib /usr/lib"
20349if test "$GCC" = yes; then
20350 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20351 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20352 # if the path contains ";" then we assume it to be the separator
20353 # otherwise default to the standard path separator (i.e. ":") - it is
20354 # assumed that no part of a normal pathname contains ";" but that should
20355 # okay in the real world where ";" in dirpaths is itself problematic.
20356 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20357 else
20358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20359 fi
20360else
20361 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20362fi
20363need_lib_prefix=unknown
20364hardcode_into_libs=no
20365
20366# when you set need_version to no, make sure it does not cause -set_version
20367# flags to be left without arguments
20368need_version=unknown
20369
20370case $host_os in
20371aix3*)
20372 version_type=linux
20373 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20374 shlibpath_var=LIBPATH
20375
20376 # AIX 3 has no versioning support, so we append a major version to the name.
20377 soname_spec='${libname}${release}${shared_ext}$major'
20378 ;;
20379
20380aix4* | aix5*)
20381 version_type=linux
20382 need_lib_prefix=no
20383 need_version=no
20384 hardcode_into_libs=yes
20385 if test "$host_cpu" = ia64; then
20386 # AIX 5 supports IA64
20387 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20388 shlibpath_var=LD_LIBRARY_PATH
20389 else
20390 # With GCC up to 2.95.x, collect2 would create an import file
20391 # for dependence libraries. The import file would start with
20392 # the line `#! .'. This would cause the generated library to
20393 # depend on `.', always an invalid library. This was fixed in
20394 # development snapshots of GCC prior to 3.0.
20395 case $host_os in
20396 aix4 | aix4.[01] | aix4.[01].*)
20397 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20398 echo ' yes '
20399 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20400 :
20401 else
20402 can_build_shared=no
20403 fi
20404 ;;
20405 esac
20406 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20407 # soname into executable. Probably we can add versioning support to
20408 # collect2, so additional links can be useful in future.
20409 if test "$aix_use_runtimelinking" = yes; then
20410 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20411 # instead of lib<name>.a to let people know that these are not
20412 # typical AIX shared libraries.
20413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20414 else
20415 # We preserve .a as extension for shared libraries through AIX4.2
20416 # and later when we are not doing run time linking.
20417 library_names_spec='${libname}${release}.a $libname.a'
20418 soname_spec='${libname}${release}${shared_ext}$major'
20419 fi
20420 shlibpath_var=LIBPATH
20421 fi
20422 ;;
20423
20424amigaos*)
20425 library_names_spec='$libname.ixlibrary $libname.a'
20426 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020427 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 +000020428 ;;
20429
20430beos*)
20431 library_names_spec='${libname}${shared_ext}'
20432 dynamic_linker="$host_os ld.so"
20433 shlibpath_var=LIBRARY_PATH
20434 ;;
20435
Reid Spencer2706f8c2004-09-19 23:53:36 +000020436bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020437 version_type=linux
20438 need_version=no
20439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20440 soname_spec='${libname}${release}${shared_ext}$major'
20441 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20442 shlibpath_var=LD_LIBRARY_PATH
20443 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20444 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20445 # the default ld.so.conf also contains /usr/contrib/lib and
20446 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20447 # libtool to hard-code these into programs
20448 ;;
20449
20450cygwin* | mingw* | pw32*)
20451 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020452 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020453 need_version=no
20454 need_lib_prefix=no
20455
20456 case $GCC,$host_os in
20457 yes,cygwin* | yes,mingw* | yes,pw32*)
20458 library_names_spec='$libname.dll.a'
20459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020460 postinstall_cmds='base_file=`basename \${file}`~
20461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20462 dldir=$destdir/`dirname \$dlpath`~
20463 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020464 $install_prog $dir/$dlname \$dldir/$dlname~
20465 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020466 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20467 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020468 $rm \$dlpath'
20469 shlibpath_overrides_runpath=yes
20470
20471 case $host_os in
20472 cygwin*)
20473 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20474 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 +000020475 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020476 ;;
20477 mingw*)
20478 # MinGW DLLs use traditional 'lib' prefix
20479 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20480 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20481 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20482 # It is most probably a Windows format PATH printed by
20483 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20484 # path with ; separators, and with drive letters. We can handle the
20485 # drive letters (cygwin fileutils understands them), so leave them,
20486 # especially as we might pass files found there to a mingw objdump,
20487 # which wouldn't understand a cygwinified path. Ahh.
20488 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20489 else
20490 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20491 fi
20492 ;;
20493 pw32*)
20494 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020495 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 +000020496 ;;
20497 esac
20498 ;;
20499
20500 *)
20501 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20502 ;;
20503 esac
20504 dynamic_linker='Win32 ld.exe'
20505 # FIXME: first we should search . and the directory the executable is in
20506 shlibpath_var=PATH
20507 ;;
20508
20509darwin* | rhapsody*)
20510 dynamic_linker="$host_os dyld"
20511 version_type=darwin
20512 need_lib_prefix=no
20513 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020514 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020515 soname_spec='${libname}${release}${major}$shared_ext'
20516 shlibpath_overrides_runpath=yes
20517 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020518 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020519 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020520 if test "$GCC" = yes; then
20521 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"`
20522 else
20523 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020524 fi
20525 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20526 ;;
20527
20528dgux*)
20529 version_type=linux
20530 need_lib_prefix=no
20531 need_version=no
20532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20533 soname_spec='${libname}${release}${shared_ext}$major'
20534 shlibpath_var=LD_LIBRARY_PATH
20535 ;;
20536
20537freebsd1*)
20538 dynamic_linker=no
20539 ;;
20540
Reid Spencer2706f8c2004-09-19 23:53:36 +000020541kfreebsd*-gnu)
20542 version_type=linux
20543 need_lib_prefix=no
20544 need_version=no
20545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20546 soname_spec='${libname}${release}${shared_ext}$major'
20547 shlibpath_var=LD_LIBRARY_PATH
20548 shlibpath_overrides_runpath=no
20549 hardcode_into_libs=yes
20550 dynamic_linker='GNU ld.so'
20551 ;;
20552
Reid Spencera773bd52006-08-04 18:18:08 +000020553freebsd* | dragonfly*)
20554 # DragonFly does not have aout. When/if they implement a new
20555 # versioning mechanism, adjust this.
20556 if test -x /usr/bin/objformat; then
20557 objformat=`/usr/bin/objformat`
20558 else
20559 case $host_os in
20560 freebsd[123]*) objformat=aout ;;
20561 *) objformat=elf ;;
20562 esac
20563 fi
John Criswell47fdd832003-07-14 16:52:07 +000020564 version_type=freebsd-$objformat
20565 case $version_type in
20566 freebsd-elf*)
20567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20568 need_version=no
20569 need_lib_prefix=no
20570 ;;
20571 freebsd-*)
20572 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20573 need_version=yes
20574 ;;
20575 esac
20576 shlibpath_var=LD_LIBRARY_PATH
20577 case $host_os in
20578 freebsd2*)
20579 shlibpath_overrides_runpath=yes
20580 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020581 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020582 shlibpath_overrides_runpath=yes
20583 hardcode_into_libs=yes
20584 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020585 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20586 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020587 shlibpath_overrides_runpath=no
20588 hardcode_into_libs=yes
20589 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020590 freebsd*) # from 4.6 on
20591 shlibpath_overrides_runpath=yes
20592 hardcode_into_libs=yes
20593 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020594 esac
20595 ;;
20596
20597gnu*)
20598 version_type=linux
20599 need_lib_prefix=no
20600 need_version=no
20601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20602 soname_spec='${libname}${release}${shared_ext}$major'
20603 shlibpath_var=LD_LIBRARY_PATH
20604 hardcode_into_libs=yes
20605 ;;
20606
20607hpux9* | hpux10* | hpux11*)
20608 # Give a soname corresponding to the major version so that dld.sl refuses to
20609 # link against other versions.
20610 version_type=sunos
20611 need_lib_prefix=no
20612 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020613 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020614 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020615 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020616 hardcode_into_libs=yes
20617 dynamic_linker="$host_os dld.so"
20618 shlibpath_var=LD_LIBRARY_PATH
20619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20621 soname_spec='${libname}${release}${shared_ext}$major'
20622 if test "X$HPUX_IA64_MODE" = X32; then
20623 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20624 else
20625 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20626 fi
20627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20628 ;;
20629 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020630 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020631 hardcode_into_libs=yes
20632 dynamic_linker="$host_os dld.sl"
20633 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20634 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20636 soname_spec='${libname}${release}${shared_ext}$major'
20637 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20638 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20639 ;;
20640 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020641 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020642 dynamic_linker="$host_os dld.sl"
20643 shlibpath_var=SHLIB_PATH
20644 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20646 soname_spec='${libname}${release}${shared_ext}$major'
20647 ;;
20648 esac
20649 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20650 postinstall_cmds='chmod 555 $lib'
20651 ;;
20652
Reid Spencera773bd52006-08-04 18:18:08 +000020653interix3*)
20654 version_type=linux
20655 need_lib_prefix=no
20656 need_version=no
20657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20658 soname_spec='${libname}${release}${shared_ext}$major'
20659 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20660 shlibpath_var=LD_LIBRARY_PATH
20661 shlibpath_overrides_runpath=no
20662 hardcode_into_libs=yes
20663 ;;
20664
John Criswell47fdd832003-07-14 16:52:07 +000020665irix5* | irix6* | nonstopux*)
20666 case $host_os in
20667 nonstopux*) version_type=nonstopux ;;
20668 *)
20669 if test "$lt_cv_prog_gnu_ld" = yes; then
20670 version_type=linux
20671 else
20672 version_type=irix
20673 fi ;;
20674 esac
20675 need_lib_prefix=no
20676 need_version=no
20677 soname_spec='${libname}${release}${shared_ext}$major'
20678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20679 case $host_os in
20680 irix5* | nonstopux*)
20681 libsuff= shlibsuff=
20682 ;;
20683 *)
20684 case $LD in # libtool.m4 will add one of these switches to LD
20685 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20686 libsuff= shlibsuff= libmagic=32-bit;;
20687 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20688 libsuff=32 shlibsuff=N32 libmagic=N32;;
20689 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20690 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20691 *) libsuff= shlibsuff= libmagic=never-match;;
20692 esac
20693 ;;
20694 esac
20695 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20696 shlibpath_overrides_runpath=no
20697 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20698 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20699 hardcode_into_libs=yes
20700 ;;
20701
20702# No shared lib support for Linux oldld, aout, or coff.
20703linux*oldld* | linux*aout* | linux*coff*)
20704 dynamic_linker=no
20705 ;;
20706
20707# This must be Linux ELF.
20708linux*)
20709 version_type=linux
20710 need_lib_prefix=no
20711 need_version=no
20712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20713 soname_spec='${libname}${release}${shared_ext}$major'
20714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20715 shlibpath_var=LD_LIBRARY_PATH
20716 shlibpath_overrides_runpath=no
20717 # This implies no fast_install, which is unacceptable.
20718 # Some rework will be needed to allow for fast_install
20719 # before this can be enabled.
20720 hardcode_into_libs=yes
20721
Reid Spencer2706f8c2004-09-19 23:53:36 +000020722 # Append ld.so.conf contents to the search path
20723 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020724 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 +000020725 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20726 fi
20727
John Criswell47fdd832003-07-14 16:52:07 +000020728 # We used to test for /lib/ld.so.1 and disable shared libraries on
20729 # powerpc, because MkLinux only supported shared libraries with the
20730 # GNU dynamic linker. Since this was broken with cross compilers,
20731 # most powerpc-linux boxes support dynamic linking these days and
20732 # people can always --disable-shared, the test was removed, and we
20733 # assume the GNU/Linux dynamic linker is in use.
20734 dynamic_linker='GNU/Linux ld.so'
20735 ;;
20736
Reid Spencer2706f8c2004-09-19 23:53:36 +000020737knetbsd*-gnu)
20738 version_type=linux
20739 need_lib_prefix=no
20740 need_version=no
20741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20742 soname_spec='${libname}${release}${shared_ext}$major'
20743 shlibpath_var=LD_LIBRARY_PATH
20744 shlibpath_overrides_runpath=no
20745 hardcode_into_libs=yes
20746 dynamic_linker='GNU ld.so'
20747 ;;
20748
John Criswell47fdd832003-07-14 16:52:07 +000020749netbsd*)
20750 version_type=sunos
20751 need_lib_prefix=no
20752 need_version=no
20753 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20756 dynamic_linker='NetBSD (a.out) ld.so'
20757 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020759 soname_spec='${libname}${release}${shared_ext}$major'
20760 dynamic_linker='NetBSD ld.elf_so'
20761 fi
20762 shlibpath_var=LD_LIBRARY_PATH
20763 shlibpath_overrides_runpath=yes
20764 hardcode_into_libs=yes
20765 ;;
20766
20767newsos6)
20768 version_type=linux
20769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20770 shlibpath_var=LD_LIBRARY_PATH
20771 shlibpath_overrides_runpath=yes
20772 ;;
20773
Reid Spencer2706f8c2004-09-19 23:53:36 +000020774nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020775 version_type=linux
20776 need_lib_prefix=no
20777 need_version=no
20778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20779 soname_spec='${libname}${release}${shared_ext}$major'
20780 shlibpath_var=LD_LIBRARY_PATH
20781 shlibpath_overrides_runpath=yes
20782 ;;
20783
20784openbsd*)
20785 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020786 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020787 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020788 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20789 case $host_os in
20790 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20791 *) need_version=no ;;
20792 esac
John Criswell47fdd832003-07-14 16:52:07 +000020793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20795 shlibpath_var=LD_LIBRARY_PATH
20796 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20797 case $host_os in
20798 openbsd2.[89] | openbsd2.[89].*)
20799 shlibpath_overrides_runpath=no
20800 ;;
20801 *)
20802 shlibpath_overrides_runpath=yes
20803 ;;
20804 esac
20805 else
20806 shlibpath_overrides_runpath=yes
20807 fi
20808 ;;
20809
20810os2*)
20811 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020812 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020813 need_lib_prefix=no
20814 library_names_spec='$libname${shared_ext} $libname.a'
20815 dynamic_linker='OS/2 ld.exe'
20816 shlibpath_var=LIBPATH
20817 ;;
20818
20819osf3* | osf4* | osf5*)
20820 version_type=osf
20821 need_lib_prefix=no
20822 need_version=no
20823 soname_spec='${libname}${release}${shared_ext}$major'
20824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20825 shlibpath_var=LD_LIBRARY_PATH
20826 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20827 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20828 ;;
20829
John Criswell47fdd832003-07-14 16:52:07 +000020830solaris*)
20831 version_type=linux
20832 need_lib_prefix=no
20833 need_version=no
20834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20835 soname_spec='${libname}${release}${shared_ext}$major'
20836 shlibpath_var=LD_LIBRARY_PATH
20837 shlibpath_overrides_runpath=yes
20838 hardcode_into_libs=yes
20839 # ldd complains unless libraries are executable
20840 postinstall_cmds='chmod +x $lib'
20841 ;;
20842
20843sunos4*)
20844 version_type=sunos
20845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20846 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20847 shlibpath_var=LD_LIBRARY_PATH
20848 shlibpath_overrides_runpath=yes
20849 if test "$with_gnu_ld" = yes; then
20850 need_lib_prefix=no
20851 fi
20852 need_version=yes
20853 ;;
20854
Reid Spencera773bd52006-08-04 18:18:08 +000020855sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020856 version_type=linux
20857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20858 soname_spec='${libname}${release}${shared_ext}$major'
20859 shlibpath_var=LD_LIBRARY_PATH
20860 case $host_vendor in
20861 sni)
20862 shlibpath_overrides_runpath=no
20863 need_lib_prefix=no
20864 export_dynamic_flag_spec='${wl}-Blargedynsym'
20865 runpath_var=LD_RUN_PATH
20866 ;;
20867 siemens)
20868 need_lib_prefix=no
20869 ;;
20870 motorola)
20871 need_lib_prefix=no
20872 need_version=no
20873 shlibpath_overrides_runpath=no
20874 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20875 ;;
20876 esac
20877 ;;
20878
20879sysv4*MP*)
20880 if test -d /usr/nec ;then
20881 version_type=linux
20882 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20883 soname_spec='$libname${shared_ext}.$major'
20884 shlibpath_var=LD_LIBRARY_PATH
20885 fi
20886 ;;
20887
Reid Spencera773bd52006-08-04 18:18:08 +000020888sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20889 version_type=freebsd-elf
20890 need_lib_prefix=no
20891 need_version=no
20892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20893 soname_spec='${libname}${release}${shared_ext}$major'
20894 shlibpath_var=LD_LIBRARY_PATH
20895 hardcode_into_libs=yes
20896 if test "$with_gnu_ld" = yes; then
20897 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20898 shlibpath_overrides_runpath=no
20899 else
20900 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20901 shlibpath_overrides_runpath=yes
20902 case $host_os in
20903 sco3.2v5*)
20904 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20905 ;;
20906 esac
20907 fi
20908 sys_lib_dlsearch_path_spec='/usr/lib'
20909 ;;
20910
John Criswell47fdd832003-07-14 16:52:07 +000020911uts4*)
20912 version_type=linux
20913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20914 soname_spec='${libname}${release}${shared_ext}$major'
20915 shlibpath_var=LD_LIBRARY_PATH
20916 ;;
20917
20918*)
20919 dynamic_linker=no
20920 ;;
20921esac
Reid Spencera773bd52006-08-04 18:18:08 +000020922{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20923echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020924test "$dynamic_linker" = no && can_build_shared=no
20925
Reid Spencera773bd52006-08-04 18:18:08 +000020926variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20927if test "$GCC" = yes; then
20928 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20929fi
20930
20931{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20932echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020933hardcode_action_CXX=
20934if test -n "$hardcode_libdir_flag_spec_CXX" || \
20935 test -n "$runpath_var_CXX" || \
20936 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20937
20938 # We can hardcode non-existant directories.
20939 if test "$hardcode_direct_CXX" != no &&
20940 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20941 # have to relink, otherwise we might link with an installed library
20942 # when we should be linking with a yet-to-be-installed one
20943 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20944 test "$hardcode_minus_L_CXX" != no; then
20945 # Linking always hardcodes the temporary library directory.
20946 hardcode_action_CXX=relink
20947 else
20948 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20949 hardcode_action_CXX=immediate
20950 fi
20951else
20952 # We cannot hardcode anything, or else we can only hardcode existing
20953 # directories.
20954 hardcode_action_CXX=unsupported
20955fi
Reid Spencera773bd52006-08-04 18:18:08 +000020956{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20957echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020958
20959if test "$hardcode_action_CXX" = relink; then
20960 # Fast installation is not supported
20961 enable_fast_install=no
20962elif test "$shlibpath_overrides_runpath" = yes ||
20963 test "$enable_shared" = no; then
20964 # Fast installation is not necessary
20965 enable_fast_install=needless
20966fi
20967
John Criswell47fdd832003-07-14 16:52:07 +000020968
20969# The else clause should only fire when bootstrapping the
20970# libtool distribution, otherwise you forgot to ship ltmain.sh
20971# with your package, and you will get complaints that there are
20972# no rules to generate ltmain.sh.
20973if test -f "$ltmain"; then
20974 # See if we are running on zsh, and set the options which allow our commands through
20975 # without removal of \ escapes.
20976 if test -n "${ZSH_VERSION+set}" ; then
20977 setopt NO_GLOB_SUBST
20978 fi
20979 # Now quote all the things that may contain metacharacters while being
20980 # careful not to overquote the AC_SUBSTed values. We take copies of the
20981 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020982 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 +000020983 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020984 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20985 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20986 deplibs_check_method reload_flag reload_cmds need_locks \
20987 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20988 lt_cv_sys_global_symbol_to_c_name_address \
20989 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20990 old_postinstall_cmds old_postuninstall_cmds \
20991 compiler_CXX \
20992 CC_CXX \
20993 LD_CXX \
20994 lt_prog_compiler_wl_CXX \
20995 lt_prog_compiler_pic_CXX \
20996 lt_prog_compiler_static_CXX \
20997 lt_prog_compiler_no_builtin_flag_CXX \
20998 export_dynamic_flag_spec_CXX \
20999 thread_safe_flag_spec_CXX \
21000 whole_archive_flag_spec_CXX \
21001 enable_shared_with_static_runtimes_CXX \
21002 old_archive_cmds_CXX \
21003 old_archive_from_new_cmds_CXX \
21004 predep_objects_CXX \
21005 postdep_objects_CXX \
21006 predeps_CXX \
21007 postdeps_CXX \
21008 compiler_lib_search_path_CXX \
21009 archive_cmds_CXX \
21010 archive_expsym_cmds_CXX \
21011 postinstall_cmds_CXX \
21012 postuninstall_cmds_CXX \
21013 old_archive_from_expsyms_cmds_CXX \
21014 allow_undefined_flag_CXX \
21015 no_undefined_flag_CXX \
21016 export_symbols_cmds_CXX \
21017 hardcode_libdir_flag_spec_CXX \
21018 hardcode_libdir_flag_spec_ld_CXX \
21019 hardcode_libdir_separator_CXX \
21020 hardcode_automatic_CXX \
21021 module_cmds_CXX \
21022 module_expsym_cmds_CXX \
21023 lt_cv_prog_compiler_c_o_CXX \
21024 exclude_expsyms_CXX \
21025 include_expsyms_CXX; do
21026
21027 case $var in
21028 old_archive_cmds_CXX | \
21029 old_archive_from_new_cmds_CXX | \
21030 archive_cmds_CXX | \
21031 archive_expsym_cmds_CXX | \
21032 module_cmds_CXX | \
21033 module_expsym_cmds_CXX | \
21034 old_archive_from_expsyms_cmds_CXX | \
21035 export_symbols_cmds_CXX | \
21036 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21037 postinstall_cmds | postuninstall_cmds | \
21038 old_postinstall_cmds | old_postuninstall_cmds | \
21039 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21040 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021041 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 +000021042 ;;
21043 *)
21044 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21045 ;;
21046 esac
21047 done
21048
21049 case $lt_echo in
21050 *'\$0 --fallback-echo"')
21051 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21052 ;;
21053 esac
21054
21055cfgfile="$ofile"
21056
21057 cat <<__EOF__ >> "$cfgfile"
21058# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21059
21060# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21061
21062# Shell to use when invoking shell scripts.
21063SHELL=$lt_SHELL
21064
21065# Whether or not to build shared libraries.
21066build_libtool_libs=$enable_shared
21067
21068# Whether or not to build static libraries.
21069build_old_libs=$enable_static
21070
21071# Whether or not to add -lc for building shared libraries.
21072build_libtool_need_lc=$archive_cmds_need_lc_CXX
21073
21074# Whether or not to disallow shared libs when runtime libs are static
21075allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21076
21077# Whether or not to optimize for fast installation.
21078fast_install=$enable_fast_install
21079
21080# The host system.
21081host_alias=$host_alias
21082host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021083host_os=$host_os
21084
21085# The build system.
21086build_alias=$build_alias
21087build=$build
21088build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021089
21090# An echo program that does not interpret backslashes.
21091echo=$lt_echo
21092
21093# The archiver.
21094AR=$lt_AR
21095AR_FLAGS=$lt_AR_FLAGS
21096
21097# A C compiler.
21098LTCC=$lt_LTCC
21099
Reid Spencera773bd52006-08-04 18:18:08 +000021100# LTCC compiler flags.
21101LTCFLAGS=$lt_LTCFLAGS
21102
John Criswell47fdd832003-07-14 16:52:07 +000021103# A language-specific compiler.
21104CC=$lt_compiler_CXX
21105
21106# Is the compiler the GNU C compiler?
21107with_gcc=$GCC_CXX
21108
21109# An ERE matcher.
21110EGREP=$lt_EGREP
21111
21112# The linker used to build libraries.
21113LD=$lt_LD_CXX
21114
21115# Whether we need hard or soft links.
21116LN_S=$lt_LN_S
21117
21118# A BSD-compatible nm program.
21119NM=$lt_NM
21120
21121# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021122STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021123
21124# Used to examine libraries when file_magic_cmd begins "file"
21125MAGIC_CMD=$MAGIC_CMD
21126
21127# Used on cygwin: DLL creation program.
21128DLLTOOL="$DLLTOOL"
21129
21130# Used on cygwin: object dumper.
21131OBJDUMP="$OBJDUMP"
21132
21133# Used on cygwin: assembler.
21134AS="$AS"
21135
21136# The name of the directory that contains temporary libtool files.
21137objdir=$objdir
21138
21139# How to create reloadable object files.
21140reload_flag=$lt_reload_flag
21141reload_cmds=$lt_reload_cmds
21142
21143# How to pass a linker flag through the compiler.
21144wl=$lt_lt_prog_compiler_wl_CXX
21145
21146# Object file suffix (normally "o").
21147objext="$ac_objext"
21148
21149# Old archive suffix (normally "a").
21150libext="$libext"
21151
21152# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021153shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021154
21155# Executable file suffix (normally "").
21156exeext="$exeext"
21157
21158# Additional compiler flags for building library objects.
21159pic_flag=$lt_lt_prog_compiler_pic_CXX
21160pic_mode=$pic_mode
21161
21162# What is the maximum length of a command?
21163max_cmd_len=$lt_cv_sys_max_cmd_len
21164
21165# Does compiler simultaneously support -c and -o options?
21166compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21167
Reid Spencera773bd52006-08-04 18:18:08 +000021168# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021169need_locks=$lt_need_locks
21170
21171# Do we need the lib prefix for modules?
21172need_lib_prefix=$need_lib_prefix
21173
21174# Do we need a version for libraries?
21175need_version=$need_version
21176
21177# Whether dlopen is supported.
21178dlopen_support=$enable_dlopen
21179
21180# Whether dlopen of programs is supported.
21181dlopen_self=$enable_dlopen_self
21182
21183# Whether dlopen of statically linked programs is supported.
21184dlopen_self_static=$enable_dlopen_self_static
21185
21186# Compiler flag to prevent dynamic linking.
21187link_static_flag=$lt_lt_prog_compiler_static_CXX
21188
21189# Compiler flag to turn off builtin functions.
21190no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21191
21192# Compiler flag to allow reflexive dlopens.
21193export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21194
21195# Compiler flag to generate shared objects directly from archives.
21196whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21197
21198# Compiler flag to generate thread-safe objects.
21199thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21200
21201# Library versioning type.
21202version_type=$version_type
21203
21204# Format of library name prefix.
21205libname_spec=$lt_libname_spec
21206
21207# List of archive names. First name is the real one, the rest are links.
21208# The last name is the one that the linker finds with -lNAME.
21209library_names_spec=$lt_library_names_spec
21210
21211# The coded name of the library, if different from the real name.
21212soname_spec=$lt_soname_spec
21213
21214# Commands used to build and install an old-style archive.
21215RANLIB=$lt_RANLIB
21216old_archive_cmds=$lt_old_archive_cmds_CXX
21217old_postinstall_cmds=$lt_old_postinstall_cmds
21218old_postuninstall_cmds=$lt_old_postuninstall_cmds
21219
21220# Create an old-style archive from a shared archive.
21221old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21222
21223# Create a temporary old-style archive to link instead of a shared archive.
21224old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21225
21226# Commands used to build and install a shared archive.
21227archive_cmds=$lt_archive_cmds_CXX
21228archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21229postinstall_cmds=$lt_postinstall_cmds
21230postuninstall_cmds=$lt_postuninstall_cmds
21231
21232# Commands used to build a loadable module (assumed same as above if empty)
21233module_cmds=$lt_module_cmds_CXX
21234module_expsym_cmds=$lt_module_expsym_cmds_CXX
21235
21236# Commands to strip libraries.
21237old_striplib=$lt_old_striplib
21238striplib=$lt_striplib
21239
21240# Dependencies to place before the objects being linked to create a
21241# shared library.
21242predep_objects=$lt_predep_objects_CXX
21243
21244# Dependencies to place after the objects being linked to create a
21245# shared library.
21246postdep_objects=$lt_postdep_objects_CXX
21247
21248# Dependencies to place before the objects being linked to create a
21249# shared library.
21250predeps=$lt_predeps_CXX
21251
21252# Dependencies to place after the objects being linked to create a
21253# shared library.
21254postdeps=$lt_postdeps_CXX
21255
21256# The library search path used internally by the compiler when linking
21257# a shared library.
21258compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21259
21260# Method to check whether dependent libraries are shared objects.
21261deplibs_check_method=$lt_deplibs_check_method
21262
21263# Command to use when deplibs_check_method == file_magic.
21264file_magic_cmd=$lt_file_magic_cmd
21265
21266# Flag that allows shared libraries with undefined symbols to be built.
21267allow_undefined_flag=$lt_allow_undefined_flag_CXX
21268
21269# Flag that forces no undefined symbols.
21270no_undefined_flag=$lt_no_undefined_flag_CXX
21271
21272# Commands used to finish a libtool library installation in a directory.
21273finish_cmds=$lt_finish_cmds
21274
21275# Same as above, but a single script fragment to be evaled but not shown.
21276finish_eval=$lt_finish_eval
21277
21278# Take the output of nm and produce a listing of raw symbols and C names.
21279global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21280
21281# Transform the output of nm in a proper C declaration
21282global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21283
21284# Transform the output of nm in a C name address pair
21285global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21286
21287# This is the shared library runtime path variable.
21288runpath_var=$runpath_var
21289
21290# This is the shared library path variable.
21291shlibpath_var=$shlibpath_var
21292
21293# Is shlibpath searched before the hard-coded library search path?
21294shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21295
21296# How to hardcode a shared library path into an executable.
21297hardcode_action=$hardcode_action_CXX
21298
21299# Whether we should hardcode library paths into libraries.
21300hardcode_into_libs=$hardcode_into_libs
21301
21302# Flag to hardcode \$libdir into a binary during linking.
21303# This must work even if \$libdir does not exist.
21304hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21305
21306# If ld is used when linking, flag to hardcode \$libdir into
21307# a binary during linking. This must work even if \$libdir does
21308# not exist.
21309hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21310
21311# Whether we need a single -rpath flag with a separated argument.
21312hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21313
21314# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21315# resulting binary.
21316hardcode_direct=$hardcode_direct_CXX
21317
21318# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21319# resulting binary.
21320hardcode_minus_L=$hardcode_minus_L_CXX
21321
21322# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21323# the resulting binary.
21324hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21325
21326# Set to yes if building a shared library automatically hardcodes DIR into the library
21327# and all subsequent libraries and executables linked against it.
21328hardcode_automatic=$hardcode_automatic_CXX
21329
21330# Variables whose values should be saved in libtool wrapper scripts and
21331# restored at relink time.
21332variables_saved_for_relink="$variables_saved_for_relink"
21333
21334# Whether libtool must link a program against all its dependency libraries.
21335link_all_deplibs=$link_all_deplibs_CXX
21336
21337# Compile-time system search path for libraries
21338sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21339
21340# Run-time system search path for libraries
21341sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21342
21343# Fix the shell variable \$srcfile for the compiler.
21344fix_srcfile_path="$fix_srcfile_path_CXX"
21345
21346# Set to yes if exported symbols are required.
21347always_export_symbols=$always_export_symbols_CXX
21348
21349# The commands to list exported symbols.
21350export_symbols_cmds=$lt_export_symbols_cmds_CXX
21351
21352# The commands to extract the exported symbol list from a shared archive.
21353extract_expsyms_cmds=$lt_extract_expsyms_cmds
21354
21355# Symbols that should not be listed in the preloaded symbols.
21356exclude_expsyms=$lt_exclude_expsyms_CXX
21357
21358# Symbols that must always be exported.
21359include_expsyms=$lt_include_expsyms_CXX
21360
21361# ### END LIBTOOL TAG CONFIG: $tagname
21362
21363__EOF__
21364
21365
21366else
21367 # If there is no Makefile yet, we rely on a make rule to execute
21368 # `config.status --recheck' to rerun these tests and create the
21369 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021370 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21371 if test -f "$ltmain_in"; then
21372 test -f Makefile && make "$ltmain"
21373 fi
John Criswell47fdd832003-07-14 16:52:07 +000021374fi
21375
21376
21377ac_ext=c
21378ac_cpp='$CPP $CPPFLAGS'
21379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21381ac_compiler_gnu=$ac_cv_c_compiler_gnu
21382
21383CC=$lt_save_CC
21384LDCXX=$LD
21385LD=$lt_save_LD
21386GCC=$lt_save_GCC
21387with_gnu_ldcxx=$with_gnu_ld
21388with_gnu_ld=$lt_save_with_gnu_ld
21389lt_cv_path_LDCXX=$lt_cv_path_LD
21390lt_cv_path_LD=$lt_save_path_LD
21391lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21392lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21393
21394 else
21395 tagname=""
21396 fi
21397 ;;
21398
21399 F77)
21400 if test -n "$F77" && test "X$F77" != "Xno"; then
21401
21402ac_ext=f
21403ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21404ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21405ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21406
21407
21408archive_cmds_need_lc_F77=no
21409allow_undefined_flag_F77=
21410always_export_symbols_F77=no
21411archive_expsym_cmds_F77=
21412export_dynamic_flag_spec_F77=
21413hardcode_direct_F77=no
21414hardcode_libdir_flag_spec_F77=
21415hardcode_libdir_flag_spec_ld_F77=
21416hardcode_libdir_separator_F77=
21417hardcode_minus_L_F77=no
21418hardcode_automatic_F77=no
21419module_cmds_F77=
21420module_expsym_cmds_F77=
21421link_all_deplibs_F77=unknown
21422old_archive_cmds_F77=$old_archive_cmds
21423no_undefined_flag_F77=
21424whole_archive_flag_spec_F77=
21425enable_shared_with_static_runtimes_F77=no
21426
21427# Source file extension for f77 test sources.
21428ac_ext=f
21429
21430# Object file extension for compiled f77 test sources.
21431objext=o
21432objext_F77=$objext
21433
21434# Code to be used in simple compile tests
21435lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21436
21437# Code to be used in simple link tests
21438lt_simple_link_test_code=" program t\n end\n"
21439
21440# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21441
21442# If no C compiler was specified, use CC.
21443LTCC=${LTCC-"$CC"}
21444
Reid Spencera773bd52006-08-04 18:18:08 +000021445# If no C compiler flags were specified, use CFLAGS.
21446LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21447
John Criswell47fdd832003-07-14 16:52:07 +000021448# Allow CC to be a program name with arguments.
21449compiler=$CC
21450
21451
Reid Spencera773bd52006-08-04 18:18:08 +000021452# save warnings/boilerplate of simple test code
21453ac_outfile=conftest.$ac_objext
21454printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21455eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21456_lt_compiler_boilerplate=`cat conftest.err`
21457$rm conftest*
21458
21459ac_outfile=conftest.$ac_objext
21460printf "$lt_simple_link_test_code" >conftest.$ac_ext
21461eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21462_lt_linker_boilerplate=`cat conftest.err`
21463$rm conftest*
21464
21465
John Criswell47fdd832003-07-14 16:52:07 +000021466# Allow CC to be a program name with arguments.
21467lt_save_CC="$CC"
21468CC=${F77-"f77"}
21469compiler=$CC
21470compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021471for cc_temp in $compiler""; do
21472 case $cc_temp in
21473 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21474 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21475 \-*) ;;
21476 *) break;;
21477 esac
21478done
21479cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021480
John Criswell47fdd832003-07-14 16:52:07 +000021481
Reid Spencera773bd52006-08-04 18:18:08 +000021482{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21483echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21484{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21485echo "${ECHO_T}$can_build_shared" >&6; }
21486
21487{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21488echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021489test "$can_build_shared" = "no" && enable_shared=no
21490
21491# On AIX, shared libraries and static libraries use the same namespace, and
21492# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021493case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021494aix3*)
21495 test "$enable_shared" = yes && enable_static=no
21496 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021497 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021498 postinstall_cmds='$RANLIB $lib'
21499 fi
21500 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021501aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021502 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21503 test "$enable_shared" = yes && enable_static=no
21504 fi
John Criswell47fdd832003-07-14 16:52:07 +000021505 ;;
21506esac
Reid Spencera773bd52006-08-04 18:18:08 +000021507{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21508echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021509
Reid Spencera773bd52006-08-04 18:18:08 +000021510{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21511echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021512# Make sure either enable_shared or enable_static is yes.
21513test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021514{ echo "$as_me:$LINENO: result: $enable_static" >&5
21515echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021516
21517GCC_F77="$G77"
21518LD_F77="$LD"
21519
21520lt_prog_compiler_wl_F77=
21521lt_prog_compiler_pic_F77=
21522lt_prog_compiler_static_F77=
21523
Reid Spencera773bd52006-08-04 18:18:08 +000021524{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21525echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021526
21527 if test "$GCC" = yes; then
21528 lt_prog_compiler_wl_F77='-Wl,'
21529 lt_prog_compiler_static_F77='-static'
21530
21531 case $host_os in
21532 aix*)
21533 # All AIX code is PIC.
21534 if test "$host_cpu" = ia64; then
21535 # AIX 5 now supports IA64 processor
21536 lt_prog_compiler_static_F77='-Bstatic'
21537 fi
21538 ;;
21539
21540 amigaos*)
21541 # FIXME: we need at least 68020 code to build shared libraries, but
21542 # adding the `-m68020' flag to GCC prevents building anything better,
21543 # like `-m68040'.
21544 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21545 ;;
21546
21547 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21548 # PIC is the default for these OSes.
21549 ;;
21550
21551 mingw* | pw32* | os2*)
21552 # This hack is so that the source file can tell whether it is being
21553 # built for inclusion in a dll (and should export symbols for example).
21554 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21555 ;;
21556
21557 darwin* | rhapsody*)
21558 # PIC is the default on this platform
21559 # Common symbols not allowed in MH_DYLIB files
21560 lt_prog_compiler_pic_F77='-fno-common'
21561 ;;
21562
Reid Spencera773bd52006-08-04 18:18:08 +000021563 interix3*)
21564 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21565 # Instead, we relocate shared libraries at runtime.
21566 ;;
21567
John Criswell47fdd832003-07-14 16:52:07 +000021568 msdosdjgpp*)
21569 # Just because we use GCC doesn't mean we suddenly get shared libraries
21570 # on systems that don't support them.
21571 lt_prog_compiler_can_build_shared_F77=no
21572 enable_shared=no
21573 ;;
21574
21575 sysv4*MP*)
21576 if test -d /usr/nec; then
21577 lt_prog_compiler_pic_F77=-Kconform_pic
21578 fi
21579 ;;
21580
21581 hpux*)
21582 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21583 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021584 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021585 hppa*64*|ia64*)
21586 # +Z the default
21587 ;;
21588 *)
21589 lt_prog_compiler_pic_F77='-fPIC'
21590 ;;
21591 esac
21592 ;;
21593
21594 *)
21595 lt_prog_compiler_pic_F77='-fPIC'
21596 ;;
21597 esac
21598 else
21599 # PORTME Check for flag to pass linker flags through the system compiler.
21600 case $host_os in
21601 aix*)
21602 lt_prog_compiler_wl_F77='-Wl,'
21603 if test "$host_cpu" = ia64; then
21604 # AIX 5 now supports IA64 processor
21605 lt_prog_compiler_static_F77='-Bstatic'
21606 else
21607 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21608 fi
21609 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021610 darwin*)
21611 # PIC is the default on this platform
21612 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021613 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021614 xlc*)
21615 lt_prog_compiler_pic_F77='-qnocommon'
21616 lt_prog_compiler_wl_F77='-Wl,'
21617 ;;
21618 esac
21619 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021620
21621 mingw* | pw32* | os2*)
21622 # This hack is so that the source file can tell whether it is being
21623 # built for inclusion in a dll (and should export symbols for example).
21624 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21625 ;;
21626
21627 hpux9* | hpux10* | hpux11*)
21628 lt_prog_compiler_wl_F77='-Wl,'
21629 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21630 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021631 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021632 hppa*64*|ia64*)
21633 # +Z the default
21634 ;;
21635 *)
21636 lt_prog_compiler_pic_F77='+Z'
21637 ;;
21638 esac
21639 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21640 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21641 ;;
21642
21643 irix5* | irix6* | nonstopux*)
21644 lt_prog_compiler_wl_F77='-Wl,'
21645 # PIC (with -KPIC) is the default.
21646 lt_prog_compiler_static_F77='-non_shared'
21647 ;;
21648
21649 newsos6)
21650 lt_prog_compiler_pic_F77='-KPIC'
21651 lt_prog_compiler_static_F77='-Bstatic'
21652 ;;
21653
21654 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021655 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021656 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021657 lt_prog_compiler_wl_F77='-Wl,'
21658 lt_prog_compiler_pic_F77='-KPIC'
21659 lt_prog_compiler_static_F77='-static'
21660 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021661 pgcc* | pgf77* | pgf90* | pgf95*)
21662 # Portland Group compilers (*not* the Pentium gcc compiler,
21663 # which looks to be a dead project)
21664 lt_prog_compiler_wl_F77='-Wl,'
21665 lt_prog_compiler_pic_F77='-fpic'
21666 lt_prog_compiler_static_F77='-Bstatic'
21667 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021668 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021669 lt_prog_compiler_wl_F77='-Wl,'
21670 # All Alpha code is PIC.
21671 lt_prog_compiler_static_F77='-non_shared'
21672 ;;
21673 esac
21674 ;;
21675
21676 osf3* | osf4* | osf5*)
21677 lt_prog_compiler_wl_F77='-Wl,'
21678 # All OSF/1 code is PIC.
21679 lt_prog_compiler_static_F77='-non_shared'
21680 ;;
21681
John Criswell47fdd832003-07-14 16:52:07 +000021682 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021683 lt_prog_compiler_pic_F77='-KPIC'
21684 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021685 case $cc_basename in
21686 f77* | f90* | f95*)
21687 lt_prog_compiler_wl_F77='-Qoption ld ';;
21688 *)
21689 lt_prog_compiler_wl_F77='-Wl,';;
21690 esac
John Criswell47fdd832003-07-14 16:52:07 +000021691 ;;
21692
21693 sunos4*)
21694 lt_prog_compiler_wl_F77='-Qoption ld '
21695 lt_prog_compiler_pic_F77='-PIC'
21696 lt_prog_compiler_static_F77='-Bstatic'
21697 ;;
21698
Reid Spencera773bd52006-08-04 18:18:08 +000021699 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021700 lt_prog_compiler_wl_F77='-Wl,'
21701 lt_prog_compiler_pic_F77='-KPIC'
21702 lt_prog_compiler_static_F77='-Bstatic'
21703 ;;
21704
21705 sysv4*MP*)
21706 if test -d /usr/nec ;then
21707 lt_prog_compiler_pic_F77='-Kconform_pic'
21708 lt_prog_compiler_static_F77='-Bstatic'
21709 fi
21710 ;;
21711
Reid Spencera773bd52006-08-04 18:18:08 +000021712 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21713 lt_prog_compiler_wl_F77='-Wl,'
21714 lt_prog_compiler_pic_F77='-KPIC'
21715 lt_prog_compiler_static_F77='-Bstatic'
21716 ;;
21717
21718 unicos*)
21719 lt_prog_compiler_wl_F77='-Wl,'
21720 lt_prog_compiler_can_build_shared_F77=no
21721 ;;
21722
John Criswell47fdd832003-07-14 16:52:07 +000021723 uts4*)
21724 lt_prog_compiler_pic_F77='-pic'
21725 lt_prog_compiler_static_F77='-Bstatic'
21726 ;;
21727
21728 *)
21729 lt_prog_compiler_can_build_shared_F77=no
21730 ;;
21731 esac
21732 fi
21733
Reid Spencera773bd52006-08-04 18:18:08 +000021734{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21735echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021736
21737#
21738# Check to make sure the PIC flag actually works.
21739#
21740if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021741
Reid Spencera773bd52006-08-04 18:18:08 +000021742{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21743echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021744if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21745 echo $ECHO_N "(cached) $ECHO_C" >&6
21746else
21747 lt_prog_compiler_pic_works_F77=no
21748 ac_outfile=conftest.$ac_objext
21749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21750 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21751 # Insert the option either (1) after the last *FLAGS variable, or
21752 # (2) before a word containing "conftest.", or (3) at the end.
21753 # Note that $ac_compile itself does not contain backslashes and begins
21754 # with a dollar sign (not a hyphen), so the echo should work correctly.
21755 # The option is referenced via a variable to avoid confusing sed.
21756 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21759 -e 's:$: $lt_compiler_flag:'`
Shantonu Sen7e836972009-08-11 13:39:52 +000021760 (eval echo "\"\$as_me:21760: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021761 (eval "$lt_compile" 2>conftest.err)
21762 ac_status=$?
21763 cat conftest.err >&5
Shantonu Sen7e836972009-08-11 13:39:52 +000021764 echo "$as_me:21764: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021765 if (exit $ac_status) && test -s "$ac_outfile"; then
21766 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021767 # So say no if there are warnings other than the usual output.
21768 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21769 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21770 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021771 lt_prog_compiler_pic_works_F77=yes
21772 fi
21773 fi
21774 $rm conftest*
21775
21776fi
Reid Spencera773bd52006-08-04 18:18:08 +000021777{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21778echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021779
21780if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21781 case $lt_prog_compiler_pic_F77 in
21782 "" | " "*) ;;
21783 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21784 esac
21785else
21786 lt_prog_compiler_pic_F77=
21787 lt_prog_compiler_can_build_shared_F77=no
21788fi
21789
21790fi
Reid Spencera773bd52006-08-04 18:18:08 +000021791case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021792 # For platforms which do not support PIC, -DPIC is meaningless:
21793 *djgpp*)
21794 lt_prog_compiler_pic_F77=
21795 ;;
21796 *)
21797 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21798 ;;
21799esac
21800
Reid Spencera773bd52006-08-04 18:18:08 +000021801#
21802# Check to make sure the static flag actually works.
21803#
21804wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21805{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21806echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21807if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21808 echo $ECHO_N "(cached) $ECHO_C" >&6
21809else
21810 lt_prog_compiler_static_works_F77=no
21811 save_LDFLAGS="$LDFLAGS"
21812 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21813 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21814 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21815 # The linker can only warn and ignore the option if not recognized
21816 # So say no if there are warnings
21817 if test -s conftest.err; then
21818 # Append any errors to the config.log.
21819 cat conftest.err 1>&5
21820 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21822 if diff conftest.exp conftest.er2 >/dev/null; then
21823 lt_prog_compiler_static_works_F77=yes
21824 fi
21825 else
21826 lt_prog_compiler_static_works_F77=yes
21827 fi
21828 fi
21829 $rm conftest*
21830 LDFLAGS="$save_LDFLAGS"
21831
21832fi
21833{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21834echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21835
21836if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21837 :
21838else
21839 lt_prog_compiler_static_F77=
21840fi
21841
21842
21843{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21844echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021845if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21846 echo $ECHO_N "(cached) $ECHO_C" >&6
21847else
21848 lt_cv_prog_compiler_c_o_F77=no
21849 $rm -r conftest 2>/dev/null
21850 mkdir conftest
21851 cd conftest
21852 mkdir out
21853 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21854
John Criswell47fdd832003-07-14 16:52:07 +000021855 lt_compiler_flag="-o out/conftest2.$ac_objext"
21856 # Insert the option either (1) after the last *FLAGS variable, or
21857 # (2) before a word containing "conftest.", or (3) at the end.
21858 # Note that $ac_compile itself does not contain backslashes and begins
21859 # with a dollar sign (not a hyphen), so the echo should work correctly.
21860 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21863 -e 's:$: $lt_compiler_flag:'`
Shantonu Sen7e836972009-08-11 13:39:52 +000021864 (eval echo "\"\$as_me:21864: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021865 (eval "$lt_compile" 2>out/conftest.err)
21866 ac_status=$?
21867 cat out/conftest.err >&5
Shantonu Sen7e836972009-08-11 13:39:52 +000021868 echo "$as_me:21868: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021869 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21870 then
21871 # The compiler can only warn and ignore the option if not recognized
21872 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021873 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21874 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21875 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021876 lt_cv_prog_compiler_c_o_F77=yes
21877 fi
21878 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021879 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021880 $rm conftest*
21881 # SGI C++ compiler will create directory out/ii_files/ for
21882 # template instantiation
21883 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21884 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021885 cd ..
21886 rmdir conftest
21887 $rm conftest*
21888
21889fi
Reid Spencera773bd52006-08-04 18:18:08 +000021890{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21891echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021892
21893
21894hard_links="nottested"
21895if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21896 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021897 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21898echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021899 hard_links=yes
21900 $rm conftest*
21901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21902 touch conftest.a
21903 ln conftest.a conftest.b 2>&5 || hard_links=no
21904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021905 { echo "$as_me:$LINENO: result: $hard_links" >&5
21906echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021907 if test "$hard_links" = no; then
21908 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21909echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21910 need_locks=warn
21911 fi
21912else
21913 need_locks=no
21914fi
21915
Reid Spencera773bd52006-08-04 18:18:08 +000021916{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21917echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021918
21919 runpath_var=
21920 allow_undefined_flag_F77=
21921 enable_shared_with_static_runtimes_F77=no
21922 archive_cmds_F77=
21923 archive_expsym_cmds_F77=
21924 old_archive_From_new_cmds_F77=
21925 old_archive_from_expsyms_cmds_F77=
21926 export_dynamic_flag_spec_F77=
21927 whole_archive_flag_spec_F77=
21928 thread_safe_flag_spec_F77=
21929 hardcode_libdir_flag_spec_F77=
21930 hardcode_libdir_flag_spec_ld_F77=
21931 hardcode_libdir_separator_F77=
21932 hardcode_direct_F77=no
21933 hardcode_minus_L_F77=no
21934 hardcode_shlibpath_var_F77=unsupported
21935 link_all_deplibs_F77=unknown
21936 hardcode_automatic_F77=no
21937 module_cmds_F77=
21938 module_expsym_cmds_F77=
21939 always_export_symbols_F77=no
21940 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21941 # include_expsyms should be a list of space-separated symbols to be *always*
21942 # included in the symbol list
21943 include_expsyms_F77=
21944 # exclude_expsyms can be an extended regexp of symbols to exclude
21945 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21946 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21947 # as well as any symbol that contains `d'.
21948 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21949 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21950 # platforms (ab)use it in PIC code, but their linkers get confused if
21951 # the symbol is explicitly referenced. Since portable code cannot
21952 # rely on this symbol name, it's probably fine to never include it in
21953 # preloaded symbol tables.
21954 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021955 # Just being paranoid about ensuring that cc_basename is set.
21956 for cc_temp in $compiler""; do
21957 case $cc_temp in
21958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21960 \-*) ;;
21961 *) break;;
21962 esac
21963done
21964cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021965
21966 case $host_os in
21967 cygwin* | mingw* | pw32*)
21968 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21969 # When not using gcc, we currently assume that we are using
21970 # Microsoft Visual C++.
21971 if test "$GCC" != yes; then
21972 with_gnu_ld=no
21973 fi
21974 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021975 interix*)
21976 # we just hope/assume this is gcc and not c89 (= MSVC++)
21977 with_gnu_ld=yes
21978 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021979 openbsd*)
21980 with_gnu_ld=no
21981 ;;
21982 esac
21983
21984 ld_shlibs_F77=yes
21985 if test "$with_gnu_ld" = yes; then
21986 # If archive_cmds runs LD, not CC, wlarc should be empty
21987 wlarc='${wl}'
21988
Reid Spencera773bd52006-08-04 18:18:08 +000021989 # Set some defaults for GNU ld with shared library support. These
21990 # are reset later if shared libraries are not supported. Putting them
21991 # here allows them to be overridden if necessary.
21992 runpath_var=LD_RUN_PATH
21993 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21994 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21995 # ancient GNU ld didn't support --whole-archive et. al.
21996 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21997 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21998 else
21999 whole_archive_flag_spec_F77=
22000 fi
22001 supports_anon_versioning=no
22002 case `$LD -v 2>/dev/null` in
22003 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22004 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22005 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22006 *\ 2.11.*) ;; # other 2.11 versions
22007 *) supports_anon_versioning=yes ;;
22008 esac
22009
John Criswell47fdd832003-07-14 16:52:07 +000022010 # See if GNU ld supports shared libraries.
22011 case $host_os in
22012 aix3* | aix4* | aix5*)
22013 # On AIX/PPC, the GNU linker is very broken
22014 if test "$host_cpu" != ia64; then
22015 ld_shlibs_F77=no
22016 cat <<EOF 1>&2
22017
22018*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22019*** to be unable to reliably create shared libraries on AIX.
22020*** Therefore, libtool is disabling shared libraries support. If you
22021*** really care for shared libraries, you may want to modify your PATH
22022*** so that a non-GNU linker is found, and then restart.
22023
22024EOF
22025 fi
22026 ;;
22027
22028 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022029 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 +000022030 hardcode_libdir_flag_spec_F77='-L$libdir'
22031 hardcode_minus_L_F77=yes
22032
22033 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22034 # that the semantics of dynamic libraries on AmigaOS, at least up
22035 # to version 4, is to share data among multiple programs linked
22036 # with the same dynamic library. Since this doesn't match the
22037 # behavior of shared libraries on other platforms, we can't use
22038 # them.
22039 ld_shlibs_F77=no
22040 ;;
22041
22042 beos*)
22043 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22044 allow_undefined_flag_F77=unsupported
22045 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22046 # support --undefined. This deserves some investigation. FIXME
22047 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22048 else
22049 ld_shlibs_F77=no
22050 fi
22051 ;;
22052
22053 cygwin* | mingw* | pw32*)
22054 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22055 # as there is no search path for DLLs.
22056 hardcode_libdir_flag_spec_F77='-L$libdir'
22057 allow_undefined_flag_F77=unsupported
22058 always_export_symbols_F77=no
22059 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022060 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 +000022061
22062 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000022063 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 +000022064 # If the export-symbols file already is a .def file (1st line
22065 # is EXPORTS), use it as is; otherwise, prepend...
22066 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22067 cp $export_symbols $output_objdir/$soname.def;
22068 else
22069 echo EXPORTS > $output_objdir/$soname.def;
22070 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022071 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022072 $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 +000022073 else
Reid Spencera773bd52006-08-04 18:18:08 +000022074 ld_shlibs_F77=no
22075 fi
22076 ;;
22077
22078 interix3*)
22079 hardcode_direct_F77=no
22080 hardcode_shlibpath_var_F77=no
22081 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22082 export_dynamic_flag_spec_F77='${wl}-E'
22083 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22084 # Instead, shared libraries are loaded at an image base (0x10000000 by
22085 # default) and relocated if they conflict, which is a slow very memory
22086 # consuming and fragmenting process. To avoid this, we pick a random,
22087 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22088 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22089 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'
22090 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'
22091 ;;
22092
22093 linux*)
22094 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22095 tmp_addflag=
22096 case $cc_basename,$host_cpu in
22097 pgcc*) # Portland Group C compiler
22098 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'
22099 tmp_addflag=' $pic_flag'
22100 ;;
22101 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22102 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'
22103 tmp_addflag=' $pic_flag -Mnomain' ;;
22104 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22105 tmp_addflag=' -i_dynamic' ;;
22106 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22107 tmp_addflag=' -i_dynamic -nofor_main' ;;
22108 ifc* | ifort*) # Intel Fortran compiler
22109 tmp_addflag=' -nofor_main' ;;
22110 esac
22111 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22112
22113 if test $supports_anon_versioning = yes; then
22114 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22115 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22116 $echo "local: *; };" >> $output_objdir/$libname.ver~
22117 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22118 fi
22119 else
22120 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022121 fi
22122 ;;
22123
22124 netbsd*)
22125 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22126 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22127 wlarc=
22128 else
22129 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22130 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22131 fi
22132 ;;
22133
Reid Spencera773bd52006-08-04 18:18:08 +000022134 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022135 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22136 ld_shlibs_F77=no
22137 cat <<EOF 1>&2
22138
22139*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22140*** create shared libraries on Solaris systems. Therefore, libtool
22141*** is disabling shared libraries support. We urge you to upgrade GNU
22142*** binutils to release 2.9.1 or newer. Another option is to modify
22143*** your PATH or compiler configuration so that the native linker is
22144*** used, and then restart.
22145
22146EOF
22147 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22148 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22149 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22150 else
22151 ld_shlibs_F77=no
22152 fi
22153 ;;
22154
Reid Spencera773bd52006-08-04 18:18:08 +000022155 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22156 case `$LD -v 2>&1` in
22157 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22158 ld_shlibs_F77=no
22159 cat <<_LT_EOF 1>&2
22160
22161*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22162*** reliably create shared libraries on SCO systems. Therefore, libtool
22163*** is disabling shared libraries support. We urge you to upgrade GNU
22164*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22165*** your PATH or compiler configuration so that the native linker is
22166*** used, and then restart.
22167
22168_LT_EOF
22169 ;;
22170 *)
22171 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22172 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22173 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22174 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22175 else
22176 ld_shlibs_F77=no
22177 fi
22178 ;;
22179 esac
22180 ;;
22181
John Criswell47fdd832003-07-14 16:52:07 +000022182 sunos4*)
22183 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22184 wlarc=
22185 hardcode_direct_F77=yes
22186 hardcode_shlibpath_var_F77=no
22187 ;;
22188
22189 *)
22190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22191 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22192 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22193 else
22194 ld_shlibs_F77=no
22195 fi
22196 ;;
22197 esac
22198
Reid Spencera773bd52006-08-04 18:18:08 +000022199 if test "$ld_shlibs_F77" = no; then
22200 runpath_var=
22201 hardcode_libdir_flag_spec_F77=
22202 export_dynamic_flag_spec_F77=
22203 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022204 fi
22205 else
22206 # PORTME fill in a description of your system's linker (not GNU ld)
22207 case $host_os in
22208 aix3*)
22209 allow_undefined_flag_F77=unsupported
22210 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022211 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 +000022212 # Note: this linker hardcodes the directories in LIBPATH if there
22213 # are no directories specified by -L.
22214 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022215 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022216 # Neither direct hardcoding nor static linking is supported with a
22217 # broken collect2.
22218 hardcode_direct_F77=unsupported
22219 fi
22220 ;;
22221
22222 aix4* | aix5*)
22223 if test "$host_cpu" = ia64; then
22224 # On IA64, the linker does run time linking by default, so we don't
22225 # have to do anything special.
22226 aix_use_runtimelinking=no
22227 exp_sym_flag='-Bexport'
22228 no_entry_flag=""
22229 else
22230 # If we're using GNU nm, then we don't want the "-C" option.
22231 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22232 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22233 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'
22234 else
22235 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'
22236 fi
22237 aix_use_runtimelinking=no
22238
22239 # Test if we are trying to use run time linking or normal
22240 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22241 # need to do runtime linking.
22242 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22243 for ld_flag in $LDFLAGS; do
22244 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22245 aix_use_runtimelinking=yes
22246 break
22247 fi
22248 done
Reid Spencera773bd52006-08-04 18:18:08 +000022249 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022250 esac
22251
22252 exp_sym_flag='-bexport'
22253 no_entry_flag='-bnoentry'
22254 fi
22255
22256 # When large executables or shared objects are built, AIX ld can
22257 # have problems creating the table of contents. If linking a library
22258 # or program results in "error TOC overflow" add -mminimal-toc to
22259 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22260 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22261
22262 archive_cmds_F77=''
22263 hardcode_direct_F77=yes
22264 hardcode_libdir_separator_F77=':'
22265 link_all_deplibs_F77=yes
22266
22267 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022268 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022269 # We only want to do this on AIX 4.2 and lower, the check
22270 # below for broken collect2 doesn't work under 4.3+
22271 collect2name=`${CC} -print-prog-name=collect2`
22272 if test -f "$collect2name" && \
22273 strings "$collect2name" | grep resolve_lib_name >/dev/null
22274 then
22275 # We have reworked collect2
22276 hardcode_direct_F77=yes
22277 else
22278 # We have old collect2
22279 hardcode_direct_F77=unsupported
22280 # It fails to find uninstalled libraries when the uninstalled
22281 # path is not listed in the libpath. Setting hardcode_minus_L
22282 # to unsupported forces relinking
22283 hardcode_minus_L_F77=yes
22284 hardcode_libdir_flag_spec_F77='-L$libdir'
22285 hardcode_libdir_separator_F77=
22286 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022287 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022288 esac
22289 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022290 if test "$aix_use_runtimelinking" = yes; then
22291 shared_flag="$shared_flag "'${wl}-G'
22292 fi
John Criswell47fdd832003-07-14 16:52:07 +000022293 else
22294 # not using gcc
22295 if test "$host_cpu" = ia64; then
22296 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22297 # chokes on -Wl,-G. The following line is correct:
22298 shared_flag='-G'
22299 else
Reid Spencera773bd52006-08-04 18:18:08 +000022300 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022301 shared_flag='${wl}-G'
22302 else
22303 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022304 fi
John Criswell47fdd832003-07-14 16:52:07 +000022305 fi
22306 fi
22307
22308 # It seems that -bexpall does not export symbols beginning with
22309 # underscore (_), so it is better to generate a list of symbols to export.
22310 always_export_symbols_F77=yes
22311 if test "$aix_use_runtimelinking" = yes; then
22312 # Warning - without using the other runtime loading flags (-brtl),
22313 # -berok will link without error, but may produce a broken library.
22314 allow_undefined_flag_F77='-berok'
22315 # Determine the default libpath from the value encoded in an empty executable.
22316 cat >conftest.$ac_ext <<_ACEOF
22317 program main
22318
22319 end
22320_ACEOF
22321rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022322if { (ac_try="$ac_link"
22323case "(($ac_try" in
22324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22325 *) ac_try_echo=$ac_try;;
22326esac
22327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22328 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022329 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022330 grep -v '^ *+' conftest.er1 >conftest.err
22331 rm -f conftest.er1
22332 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022334 (exit $ac_status); } &&
22335 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22336 { (case "(($ac_try" in
22337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338 *) ac_try_echo=$ac_try;;
22339esac
22340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341 (eval "$ac_try") 2>&5
22342 ac_status=$?
22343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); }; } &&
22345 { ac_try='test -s conftest$ac_exeext'
22346 { (case "(($ac_try" in
22347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348 *) ac_try_echo=$ac_try;;
22349esac
22350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22351 (eval "$ac_try") 2>&5
22352 ac_status=$?
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022355
22356aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22357}'`
22358# Check for a 64-bit object if we didn't find anything.
22359if 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; }
22360}'`; fi
22361else
22362 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022363sed 's/^/| /' conftest.$ac_ext >&5
22364
Reid Spencera773bd52006-08-04 18:18:08 +000022365
John Criswell47fdd832003-07-14 16:52:07 +000022366fi
Reid Spencera773bd52006-08-04 18:18:08 +000022367
Bill Wendlingebcceee2009-04-18 11:20:33 +000022368rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022369 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022370if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22371
22372 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022373 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 +000022374 else
22375 if test "$host_cpu" = ia64; then
22376 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22377 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022378 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 +000022379 else
22380 # Determine the default libpath from the value encoded in an empty executable.
22381 cat >conftest.$ac_ext <<_ACEOF
22382 program main
22383
22384 end
22385_ACEOF
22386rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022387if { (ac_try="$ac_link"
22388case "(($ac_try" in
22389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390 *) ac_try_echo=$ac_try;;
22391esac
22392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022394 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022395 grep -v '^ *+' conftest.er1 >conftest.err
22396 rm -f conftest.er1
22397 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022399 (exit $ac_status); } &&
22400 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22401 { (case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22404esac
22405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_try") 2>&5
22407 ac_status=$?
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; } &&
22410 { ac_try='test -s conftest$ac_exeext'
22411 { (case "(($ac_try" in
22412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413 *) ac_try_echo=$ac_try;;
22414esac
22415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_try") 2>&5
22417 ac_status=$?
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022420
22421aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22422}'`
22423# Check for a 64-bit object if we didn't find anything.
22424if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22425}'`; fi
22426else
22427 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022428sed 's/^/| /' conftest.$ac_ext >&5
22429
Reid Spencera773bd52006-08-04 18:18:08 +000022430
John Criswell47fdd832003-07-14 16:52:07 +000022431fi
Reid Spencera773bd52006-08-04 18:18:08 +000022432
Bill Wendlingebcceee2009-04-18 11:20:33 +000022433rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022434 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022435if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22436
22437 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22438 # Warning - without using the other run time loading flags,
22439 # -berok will link without error, but may produce a broken library.
22440 no_undefined_flag_F77=' ${wl}-bernotok'
22441 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022442 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022443 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022444 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022445 # This is similar to how AIX traditionally builds its shared libraries.
22446 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 +000022447 fi
22448 fi
22449 ;;
22450
22451 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022452 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 +000022453 hardcode_libdir_flag_spec_F77='-L$libdir'
22454 hardcode_minus_L_F77=yes
22455 # see comment about different semantics on the GNU ld section
22456 ld_shlibs_F77=no
22457 ;;
22458
Reid Spencer2706f8c2004-09-19 23:53:36 +000022459 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022460 export_dynamic_flag_spec_F77=-rdynamic
22461 ;;
22462
22463 cygwin* | mingw* | pw32*)
22464 # When not using gcc, we currently assume that we are using
22465 # Microsoft Visual C++.
22466 # hardcode_libdir_flag_spec is actually meaningless, as there is
22467 # no search path for DLLs.
22468 hardcode_libdir_flag_spec_F77=' '
22469 allow_undefined_flag_F77=unsupported
22470 # Tell ltmain to make .lib files, not .a files.
22471 libext=lib
22472 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022473 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022474 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022475 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 +000022476 # The linker will automatically build a .lib file if we build a DLL.
22477 old_archive_From_new_cmds_F77='true'
22478 # FIXME: Should let the user specify the lib program.
22479 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022480 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022481 enable_shared_with_static_runtimes_F77=yes
22482 ;;
22483
22484 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022485 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022486 rhapsody* | darwin1.[012])
22487 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22488 ;;
22489 *) # Darwin 1.3 on
22490 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22491 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22492 else
22493 case ${MACOSX_DEPLOYMENT_TARGET} in
22494 10.[012])
22495 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22496 ;;
22497 10.*)
22498 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22499 ;;
22500 esac
22501 fi
22502 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022503 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022504 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022505 hardcode_direct_F77=no
22506 hardcode_automatic_F77=yes
22507 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022508 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022509 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022510 if test "$GCC" = yes ; then
22511 output_verbose_link_cmd='echo'
22512 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22513 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022514 # 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 +000022515 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}'
22516 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 +000022517 else
Reid Spencera773bd52006-08-04 18:18:08 +000022518 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022519 xlc*)
22520 output_verbose_link_cmd='echo'
22521 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22522 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022523 # 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 +000022524 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}'
22525 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 +000022526 ;;
22527 *)
22528 ld_shlibs_F77=no
22529 ;;
22530 esac
John Criswell47fdd832003-07-14 16:52:07 +000022531 fi
22532 ;;
22533
22534 dgux*)
22535 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22536 hardcode_libdir_flag_spec_F77='-L$libdir'
22537 hardcode_shlibpath_var_F77=no
22538 ;;
22539
22540 freebsd1*)
22541 ld_shlibs_F77=no
22542 ;;
22543
22544 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22545 # support. Future versions do this automatically, but an explicit c++rt0.o
22546 # does not break anything, and helps significantly (at the cost of a little
22547 # extra space).
22548 freebsd2.2*)
22549 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22550 hardcode_libdir_flag_spec_F77='-R$libdir'
22551 hardcode_direct_F77=yes
22552 hardcode_shlibpath_var_F77=no
22553 ;;
22554
22555 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22556 freebsd2*)
22557 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22558 hardcode_direct_F77=yes
22559 hardcode_minus_L_F77=yes
22560 hardcode_shlibpath_var_F77=no
22561 ;;
22562
22563 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022564 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022565 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22566 hardcode_libdir_flag_spec_F77='-R$libdir'
22567 hardcode_direct_F77=yes
22568 hardcode_shlibpath_var_F77=no
22569 ;;
22570
22571 hpux9*)
22572 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022573 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 +000022574 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022575 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 +000022576 fi
22577 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22578 hardcode_libdir_separator_F77=:
22579 hardcode_direct_F77=yes
22580
22581 # hardcode_minus_L: Not really in the search PATH,
22582 # but as the default location of the library.
22583 hardcode_minus_L_F77=yes
22584 export_dynamic_flag_spec_F77='${wl}-E'
22585 ;;
22586
Reid Spencera773bd52006-08-04 18:18:08 +000022587 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022588 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022589 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22590 else
22591 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22592 fi
22593 if test "$with_gnu_ld" = no; then
22594 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22595 hardcode_libdir_separator_F77=:
22596
22597 hardcode_direct_F77=yes
22598 export_dynamic_flag_spec_F77='${wl}-E'
22599
22600 # hardcode_minus_L: Not really in the search PATH,
22601 # but as the default location of the library.
22602 hardcode_minus_L_F77=yes
22603 fi
22604 ;;
22605
22606 hpux11*)
22607 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22608 case $host_cpu in
22609 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022610 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22611 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022612 ia64*)
22613 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22614 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022615 *)
22616 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22617 ;;
22618 esac
22619 else
Reid Spencera773bd52006-08-04 18:18:08 +000022620 case $host_cpu in
22621 hppa*64*)
22622 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22623 ;;
22624 ia64*)
22625 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022626 ;;
22627 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022628 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 +000022629 ;;
22630 esac
22631 fi
22632 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022633 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22634 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022635
Reid Spencera773bd52006-08-04 18:18:08 +000022636 case $host_cpu in
22637 hppa*64*|ia64*)
22638 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22639 hardcode_direct_F77=no
22640 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022641 ;;
22642 *)
John Criswell47fdd832003-07-14 16:52:07 +000022643 hardcode_direct_F77=yes
22644 export_dynamic_flag_spec_F77='${wl}-E'
22645
22646 # hardcode_minus_L: Not really in the search PATH,
22647 # but as the default location of the library.
22648 hardcode_minus_L_F77=yes
22649 ;;
22650 esac
22651 fi
22652 ;;
22653
22654 irix5* | irix6* | nonstopux*)
22655 if test "$GCC" = yes; then
22656 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'
22657 else
22658 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'
22659 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22660 fi
22661 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22662 hardcode_libdir_separator_F77=:
22663 link_all_deplibs_F77=yes
22664 ;;
22665
22666 netbsd*)
22667 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22668 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22669 else
22670 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22671 fi
22672 hardcode_libdir_flag_spec_F77='-R$libdir'
22673 hardcode_direct_F77=yes
22674 hardcode_shlibpath_var_F77=no
22675 ;;
22676
22677 newsos6)
22678 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22679 hardcode_direct_F77=yes
22680 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22681 hardcode_libdir_separator_F77=:
22682 hardcode_shlibpath_var_F77=no
22683 ;;
22684
22685 openbsd*)
22686 hardcode_direct_F77=yes
22687 hardcode_shlibpath_var_F77=no
22688 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22689 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022690 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 +000022691 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22692 export_dynamic_flag_spec_F77='${wl}-E'
22693 else
22694 case $host_os in
22695 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22696 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22697 hardcode_libdir_flag_spec_F77='-R$libdir'
22698 ;;
22699 *)
22700 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22701 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22702 ;;
22703 esac
22704 fi
22705 ;;
22706
22707 os2*)
22708 hardcode_libdir_flag_spec_F77='-L$libdir'
22709 hardcode_minus_L_F77=yes
22710 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022711 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 +000022712 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22713 ;;
22714
22715 osf3*)
22716 if test "$GCC" = yes; then
22717 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22718 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'
22719 else
22720 allow_undefined_flag_F77=' -expect_unresolved \*'
22721 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'
22722 fi
22723 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22724 hardcode_libdir_separator_F77=:
22725 ;;
22726
22727 osf4* | osf5*) # as osf3* with the addition of -msym flag
22728 if test "$GCC" = yes; then
22729 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22730 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'
22731 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22732 else
22733 allow_undefined_flag_F77=' -expect_unresolved \*'
22734 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 +000022735 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 +000022736 $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 +000022737
John Criswell47fdd832003-07-14 16:52:07 +000022738 # Both c and cxx compiler support -rpath directly
22739 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22740 fi
22741 hardcode_libdir_separator_F77=:
22742 ;;
22743
John Criswell47fdd832003-07-14 16:52:07 +000022744 solaris*)
22745 no_undefined_flag_F77=' -z text'
22746 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022747 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022748 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022749 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22750 $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 +000022751 else
Reid Spencera773bd52006-08-04 18:18:08 +000022752 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022753 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022754 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22755 $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 +000022756 fi
22757 hardcode_libdir_flag_spec_F77='-R$libdir'
22758 hardcode_shlibpath_var_F77=no
22759 case $host_os in
22760 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022761 *)
22762 # The compiler driver will combine linker options so we
22763 # cannot just pass the convience library names through
22764 # without $wl, iff we do not link with $LD.
22765 # Luckily, gcc supports the same syntax we need for Sun Studio.
22766 # Supported since Solaris 2.6 (maybe 2.5.1?)
22767 case $wlarc in
22768 '')
22769 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22770 *)
22771 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' ;;
22772 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022773 esac
22774 link_all_deplibs_F77=yes
22775 ;;
22776
22777 sunos4*)
22778 if test "x$host_vendor" = xsequent; then
22779 # Use $CC to link under sequent, because it throws in some extra .o
22780 # files that make .init and .fini sections work.
22781 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22782 else
22783 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22784 fi
22785 hardcode_libdir_flag_spec_F77='-L$libdir'
22786 hardcode_direct_F77=yes
22787 hardcode_minus_L_F77=yes
22788 hardcode_shlibpath_var_F77=no
22789 ;;
22790
22791 sysv4)
22792 case $host_vendor in
22793 sni)
22794 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22795 hardcode_direct_F77=yes # is this really true???
22796 ;;
22797 siemens)
22798 ## LD is ld it makes a PLAMLIB
22799 ## CC just makes a GrossModule.
22800 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22801 reload_cmds_F77='$CC -r -o $output$reload_objs'
22802 hardcode_direct_F77=no
22803 ;;
22804 motorola)
22805 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22806 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22807 ;;
22808 esac
22809 runpath_var='LD_RUN_PATH'
22810 hardcode_shlibpath_var_F77=no
22811 ;;
22812
22813 sysv4.3*)
22814 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22815 hardcode_shlibpath_var_F77=no
22816 export_dynamic_flag_spec_F77='-Bexport'
22817 ;;
22818
22819 sysv4*MP*)
22820 if test -d /usr/nec; then
22821 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22822 hardcode_shlibpath_var_F77=no
22823 runpath_var=LD_RUN_PATH
22824 hardcode_runpath_var=yes
22825 ld_shlibs_F77=yes
22826 fi
22827 ;;
22828
Reid Spencera773bd52006-08-04 18:18:08 +000022829 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22830 no_undefined_flag_F77='${wl}-z,text'
22831 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022832 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022833 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022834
John Criswell47fdd832003-07-14 16:52:07 +000022835 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022836 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22837 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 +000022838 else
Reid Spencera773bd52006-08-04 18:18:08 +000022839 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22840 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 +000022841 fi
John Criswell47fdd832003-07-14 16:52:07 +000022842 ;;
22843
Reid Spencera773bd52006-08-04 18:18:08 +000022844 sysv5* | sco3.2v5* | sco5v6*)
22845 # Note: We can NOT use -z defs as we might desire, because we do not
22846 # link with -lc, and that would cause any symbols used from libc to
22847 # always be unresolved, which means just about no library would
22848 # ever link correctly. If we're not using GNU ld we use -z text
22849 # though, which does catch some bad symbols but isn't as heavy-handed
22850 # as -z defs.
22851 no_undefined_flag_F77='${wl}-z,text'
22852 allow_undefined_flag_F77='${wl}-z,nodefs'
22853 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022854 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022855 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22856 hardcode_libdir_separator_F77=':'
22857 link_all_deplibs_F77=yes
22858 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022859 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022860
22861 if test "$GCC" = yes; then
22862 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22863 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22864 else
22865 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22866 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22867 fi
John Criswell47fdd832003-07-14 16:52:07 +000022868 ;;
22869
22870 uts4*)
22871 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22872 hardcode_libdir_flag_spec_F77='-L$libdir'
22873 hardcode_shlibpath_var_F77=no
22874 ;;
22875
22876 *)
22877 ld_shlibs_F77=no
22878 ;;
22879 esac
22880 fi
22881
Reid Spencera773bd52006-08-04 18:18:08 +000022882{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22883echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022884test "$ld_shlibs_F77" = no && can_build_shared=no
22885
John Criswell47fdd832003-07-14 16:52:07 +000022886#
22887# Do we need to explicitly link libc?
22888#
22889case "x$archive_cmds_need_lc_F77" in
22890x|xyes)
22891 # Assume -lc should be added
22892 archive_cmds_need_lc_F77=yes
22893
22894 if test "$enable_shared" = yes && test "$GCC" = yes; then
22895 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022896 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022897 # FIXME: we may have to deal with multi-command sequences.
22898 ;;
22899 '$CC '*)
22900 # Test whether the compiler implicitly links with -lc since on some
22901 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22902 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022903 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22904echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022905 $rm conftest*
22906 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22907
22908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22909 (eval $ac_compile) 2>&5
22910 ac_status=$?
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); } 2>conftest.err; then
22913 soname=conftest
22914 lib=conftest
22915 libobjs=conftest.$ac_objext
22916 deplibs=
22917 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022918 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022919 compiler_flags=-v
22920 linker_flags=-v
22921 verstring=
22922 output_objdir=.
22923 libname=conftest
22924 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22925 allow_undefined_flag_F77=
22926 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22927 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22928 ac_status=$?
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); }
22931 then
22932 archive_cmds_need_lc_F77=no
22933 else
22934 archive_cmds_need_lc_F77=yes
22935 fi
22936 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22937 else
22938 cat conftest.err 1>&5
22939 fi
22940 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022941 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22942echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022943 ;;
22944 esac
22945 fi
22946 ;;
22947esac
22948
Reid Spencera773bd52006-08-04 18:18:08 +000022949{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22950echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022951library_names_spec=
22952libname_spec='lib$name'
22953soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022954shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022955postinstall_cmds=
22956postuninstall_cmds=
22957finish_cmds=
22958finish_eval=
22959shlibpath_var=
22960shlibpath_overrides_runpath=unknown
22961version_type=none
22962dynamic_linker="$host_os ld.so"
22963sys_lib_dlsearch_path_spec="/lib /usr/lib"
22964if test "$GCC" = yes; then
22965 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22966 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22967 # if the path contains ";" then we assume it to be the separator
22968 # otherwise default to the standard path separator (i.e. ":") - it is
22969 # assumed that no part of a normal pathname contains ";" but that should
22970 # okay in the real world where ";" in dirpaths is itself problematic.
22971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22972 else
22973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22974 fi
22975else
22976 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22977fi
22978need_lib_prefix=unknown
22979hardcode_into_libs=no
22980
22981# when you set need_version to no, make sure it does not cause -set_version
22982# flags to be left without arguments
22983need_version=unknown
22984
22985case $host_os in
22986aix3*)
22987 version_type=linux
22988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22989 shlibpath_var=LIBPATH
22990
22991 # AIX 3 has no versioning support, so we append a major version to the name.
22992 soname_spec='${libname}${release}${shared_ext}$major'
22993 ;;
22994
22995aix4* | aix5*)
22996 version_type=linux
22997 need_lib_prefix=no
22998 need_version=no
22999 hardcode_into_libs=yes
23000 if test "$host_cpu" = ia64; then
23001 # AIX 5 supports IA64
23002 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23003 shlibpath_var=LD_LIBRARY_PATH
23004 else
23005 # With GCC up to 2.95.x, collect2 would create an import file
23006 # for dependence libraries. The import file would start with
23007 # the line `#! .'. This would cause the generated library to
23008 # depend on `.', always an invalid library. This was fixed in
23009 # development snapshots of GCC prior to 3.0.
23010 case $host_os in
23011 aix4 | aix4.[01] | aix4.[01].*)
23012 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23013 echo ' yes '
23014 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23015 :
23016 else
23017 can_build_shared=no
23018 fi
23019 ;;
23020 esac
23021 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23022 # soname into executable. Probably we can add versioning support to
23023 # collect2, so additional links can be useful in future.
23024 if test "$aix_use_runtimelinking" = yes; then
23025 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23026 # instead of lib<name>.a to let people know that these are not
23027 # typical AIX shared libraries.
23028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23029 else
23030 # We preserve .a as extension for shared libraries through AIX4.2
23031 # and later when we are not doing run time linking.
23032 library_names_spec='${libname}${release}.a $libname.a'
23033 soname_spec='${libname}${release}${shared_ext}$major'
23034 fi
23035 shlibpath_var=LIBPATH
23036 fi
23037 ;;
23038
23039amigaos*)
23040 library_names_spec='$libname.ixlibrary $libname.a'
23041 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023042 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 +000023043 ;;
23044
23045beos*)
23046 library_names_spec='${libname}${shared_ext}'
23047 dynamic_linker="$host_os ld.so"
23048 shlibpath_var=LIBRARY_PATH
23049 ;;
23050
Reid Spencer2706f8c2004-09-19 23:53:36 +000023051bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023052 version_type=linux
23053 need_version=no
23054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23055 soname_spec='${libname}${release}${shared_ext}$major'
23056 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23057 shlibpath_var=LD_LIBRARY_PATH
23058 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23059 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23060 # the default ld.so.conf also contains /usr/contrib/lib and
23061 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23062 # libtool to hard-code these into programs
23063 ;;
23064
23065cygwin* | mingw* | pw32*)
23066 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000023067 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023068 need_version=no
23069 need_lib_prefix=no
23070
23071 case $GCC,$host_os in
23072 yes,cygwin* | yes,mingw* | yes,pw32*)
23073 library_names_spec='$libname.dll.a'
23074 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023075 postinstall_cmds='base_file=`basename \${file}`~
23076 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23077 dldir=$destdir/`dirname \$dlpath`~
23078 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023079 $install_prog $dir/$dlname \$dldir/$dlname~
23080 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023081 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23082 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023083 $rm \$dlpath'
23084 shlibpath_overrides_runpath=yes
23085
23086 case $host_os in
23087 cygwin*)
23088 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23089 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 +000023090 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023091 ;;
23092 mingw*)
23093 # MinGW DLLs use traditional 'lib' prefix
23094 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23095 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23096 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23097 # It is most probably a Windows format PATH printed by
23098 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23099 # path with ; separators, and with drive letters. We can handle the
23100 # drive letters (cygwin fileutils understands them), so leave them,
23101 # especially as we might pass files found there to a mingw objdump,
23102 # which wouldn't understand a cygwinified path. Ahh.
23103 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23104 else
23105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23106 fi
23107 ;;
23108 pw32*)
23109 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023110 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 +000023111 ;;
23112 esac
23113 ;;
23114
23115 *)
23116 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23117 ;;
23118 esac
23119 dynamic_linker='Win32 ld.exe'
23120 # FIXME: first we should search . and the directory the executable is in
23121 shlibpath_var=PATH
23122 ;;
23123
23124darwin* | rhapsody*)
23125 dynamic_linker="$host_os dyld"
23126 version_type=darwin
23127 need_lib_prefix=no
23128 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023129 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023130 soname_spec='${libname}${release}${major}$shared_ext'
23131 shlibpath_overrides_runpath=yes
23132 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023133 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023134 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023135 if test "$GCC" = yes; then
23136 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"`
23137 else
23138 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023139 fi
23140 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23141 ;;
23142
23143dgux*)
23144 version_type=linux
23145 need_lib_prefix=no
23146 need_version=no
23147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23148 soname_spec='${libname}${release}${shared_ext}$major'
23149 shlibpath_var=LD_LIBRARY_PATH
23150 ;;
23151
23152freebsd1*)
23153 dynamic_linker=no
23154 ;;
23155
Reid Spencer2706f8c2004-09-19 23:53:36 +000023156kfreebsd*-gnu)
23157 version_type=linux
23158 need_lib_prefix=no
23159 need_version=no
23160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23161 soname_spec='${libname}${release}${shared_ext}$major'
23162 shlibpath_var=LD_LIBRARY_PATH
23163 shlibpath_overrides_runpath=no
23164 hardcode_into_libs=yes
23165 dynamic_linker='GNU ld.so'
23166 ;;
23167
Reid Spencera773bd52006-08-04 18:18:08 +000023168freebsd* | dragonfly*)
23169 # DragonFly does not have aout. When/if they implement a new
23170 # versioning mechanism, adjust this.
23171 if test -x /usr/bin/objformat; then
23172 objformat=`/usr/bin/objformat`
23173 else
23174 case $host_os in
23175 freebsd[123]*) objformat=aout ;;
23176 *) objformat=elf ;;
23177 esac
23178 fi
John Criswell47fdd832003-07-14 16:52:07 +000023179 version_type=freebsd-$objformat
23180 case $version_type in
23181 freebsd-elf*)
23182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23183 need_version=no
23184 need_lib_prefix=no
23185 ;;
23186 freebsd-*)
23187 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23188 need_version=yes
23189 ;;
23190 esac
23191 shlibpath_var=LD_LIBRARY_PATH
23192 case $host_os in
23193 freebsd2*)
23194 shlibpath_overrides_runpath=yes
23195 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023196 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023197 shlibpath_overrides_runpath=yes
23198 hardcode_into_libs=yes
23199 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023200 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23201 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023202 shlibpath_overrides_runpath=no
23203 hardcode_into_libs=yes
23204 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023205 freebsd*) # from 4.6 on
23206 shlibpath_overrides_runpath=yes
23207 hardcode_into_libs=yes
23208 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023209 esac
23210 ;;
23211
23212gnu*)
23213 version_type=linux
23214 need_lib_prefix=no
23215 need_version=no
23216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23217 soname_spec='${libname}${release}${shared_ext}$major'
23218 shlibpath_var=LD_LIBRARY_PATH
23219 hardcode_into_libs=yes
23220 ;;
23221
23222hpux9* | hpux10* | hpux11*)
23223 # Give a soname corresponding to the major version so that dld.sl refuses to
23224 # link against other versions.
23225 version_type=sunos
23226 need_lib_prefix=no
23227 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023228 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023229 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023230 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023231 hardcode_into_libs=yes
23232 dynamic_linker="$host_os dld.so"
23233 shlibpath_var=LD_LIBRARY_PATH
23234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23236 soname_spec='${libname}${release}${shared_ext}$major'
23237 if test "X$HPUX_IA64_MODE" = X32; then
23238 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23239 else
23240 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23241 fi
23242 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23243 ;;
23244 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023245 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023246 hardcode_into_libs=yes
23247 dynamic_linker="$host_os dld.sl"
23248 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23249 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23251 soname_spec='${libname}${release}${shared_ext}$major'
23252 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23253 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23254 ;;
23255 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023256 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023257 dynamic_linker="$host_os dld.sl"
23258 shlibpath_var=SHLIB_PATH
23259 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23261 soname_spec='${libname}${release}${shared_ext}$major'
23262 ;;
23263 esac
23264 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23265 postinstall_cmds='chmod 555 $lib'
23266 ;;
23267
Reid Spencera773bd52006-08-04 18:18:08 +000023268interix3*)
23269 version_type=linux
23270 need_lib_prefix=no
23271 need_version=no
23272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23273 soname_spec='${libname}${release}${shared_ext}$major'
23274 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23275 shlibpath_var=LD_LIBRARY_PATH
23276 shlibpath_overrides_runpath=no
23277 hardcode_into_libs=yes
23278 ;;
23279
John Criswell47fdd832003-07-14 16:52:07 +000023280irix5* | irix6* | nonstopux*)
23281 case $host_os in
23282 nonstopux*) version_type=nonstopux ;;
23283 *)
23284 if test "$lt_cv_prog_gnu_ld" = yes; then
23285 version_type=linux
23286 else
23287 version_type=irix
23288 fi ;;
23289 esac
23290 need_lib_prefix=no
23291 need_version=no
23292 soname_spec='${libname}${release}${shared_ext}$major'
23293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23294 case $host_os in
23295 irix5* | nonstopux*)
23296 libsuff= shlibsuff=
23297 ;;
23298 *)
23299 case $LD in # libtool.m4 will add one of these switches to LD
23300 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23301 libsuff= shlibsuff= libmagic=32-bit;;
23302 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23303 libsuff=32 shlibsuff=N32 libmagic=N32;;
23304 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23305 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23306 *) libsuff= shlibsuff= libmagic=never-match;;
23307 esac
23308 ;;
23309 esac
23310 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23311 shlibpath_overrides_runpath=no
23312 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23313 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23314 hardcode_into_libs=yes
23315 ;;
23316
23317# No shared lib support for Linux oldld, aout, or coff.
23318linux*oldld* | linux*aout* | linux*coff*)
23319 dynamic_linker=no
23320 ;;
23321
23322# This must be Linux ELF.
23323linux*)
23324 version_type=linux
23325 need_lib_prefix=no
23326 need_version=no
23327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23328 soname_spec='${libname}${release}${shared_ext}$major'
23329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23330 shlibpath_var=LD_LIBRARY_PATH
23331 shlibpath_overrides_runpath=no
23332 # This implies no fast_install, which is unacceptable.
23333 # Some rework will be needed to allow for fast_install
23334 # before this can be enabled.
23335 hardcode_into_libs=yes
23336
Reid Spencer2706f8c2004-09-19 23:53:36 +000023337 # Append ld.so.conf contents to the search path
23338 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023339 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 +000023340 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23341 fi
23342
John Criswell47fdd832003-07-14 16:52:07 +000023343 # We used to test for /lib/ld.so.1 and disable shared libraries on
23344 # powerpc, because MkLinux only supported shared libraries with the
23345 # GNU dynamic linker. Since this was broken with cross compilers,
23346 # most powerpc-linux boxes support dynamic linking these days and
23347 # people can always --disable-shared, the test was removed, and we
23348 # assume the GNU/Linux dynamic linker is in use.
23349 dynamic_linker='GNU/Linux ld.so'
23350 ;;
23351
Reid Spencer2706f8c2004-09-19 23:53:36 +000023352knetbsd*-gnu)
23353 version_type=linux
23354 need_lib_prefix=no
23355 need_version=no
23356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23357 soname_spec='${libname}${release}${shared_ext}$major'
23358 shlibpath_var=LD_LIBRARY_PATH
23359 shlibpath_overrides_runpath=no
23360 hardcode_into_libs=yes
23361 dynamic_linker='GNU ld.so'
23362 ;;
23363
John Criswell47fdd832003-07-14 16:52:07 +000023364netbsd*)
23365 version_type=sunos
23366 need_lib_prefix=no
23367 need_version=no
23368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23371 dynamic_linker='NetBSD (a.out) ld.so'
23372 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023374 soname_spec='${libname}${release}${shared_ext}$major'
23375 dynamic_linker='NetBSD ld.elf_so'
23376 fi
23377 shlibpath_var=LD_LIBRARY_PATH
23378 shlibpath_overrides_runpath=yes
23379 hardcode_into_libs=yes
23380 ;;
23381
23382newsos6)
23383 version_type=linux
23384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23385 shlibpath_var=LD_LIBRARY_PATH
23386 shlibpath_overrides_runpath=yes
23387 ;;
23388
Reid Spencer2706f8c2004-09-19 23:53:36 +000023389nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023390 version_type=linux
23391 need_lib_prefix=no
23392 need_version=no
23393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23394 soname_spec='${libname}${release}${shared_ext}$major'
23395 shlibpath_var=LD_LIBRARY_PATH
23396 shlibpath_overrides_runpath=yes
23397 ;;
23398
23399openbsd*)
23400 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023401 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023402 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023403 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23404 case $host_os in
23405 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23406 *) need_version=no ;;
23407 esac
John Criswell47fdd832003-07-14 16:52:07 +000023408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23410 shlibpath_var=LD_LIBRARY_PATH
23411 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23412 case $host_os in
23413 openbsd2.[89] | openbsd2.[89].*)
23414 shlibpath_overrides_runpath=no
23415 ;;
23416 *)
23417 shlibpath_overrides_runpath=yes
23418 ;;
23419 esac
23420 else
23421 shlibpath_overrides_runpath=yes
23422 fi
23423 ;;
23424
23425os2*)
23426 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023427 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023428 need_lib_prefix=no
23429 library_names_spec='$libname${shared_ext} $libname.a'
23430 dynamic_linker='OS/2 ld.exe'
23431 shlibpath_var=LIBPATH
23432 ;;
23433
23434osf3* | osf4* | osf5*)
23435 version_type=osf
23436 need_lib_prefix=no
23437 need_version=no
23438 soname_spec='${libname}${release}${shared_ext}$major'
23439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23440 shlibpath_var=LD_LIBRARY_PATH
23441 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23442 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23443 ;;
23444
John Criswell47fdd832003-07-14 16:52:07 +000023445solaris*)
23446 version_type=linux
23447 need_lib_prefix=no
23448 need_version=no
23449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23450 soname_spec='${libname}${release}${shared_ext}$major'
23451 shlibpath_var=LD_LIBRARY_PATH
23452 shlibpath_overrides_runpath=yes
23453 hardcode_into_libs=yes
23454 # ldd complains unless libraries are executable
23455 postinstall_cmds='chmod +x $lib'
23456 ;;
23457
23458sunos4*)
23459 version_type=sunos
23460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23461 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23462 shlibpath_var=LD_LIBRARY_PATH
23463 shlibpath_overrides_runpath=yes
23464 if test "$with_gnu_ld" = yes; then
23465 need_lib_prefix=no
23466 fi
23467 need_version=yes
23468 ;;
23469
Reid Spencera773bd52006-08-04 18:18:08 +000023470sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023471 version_type=linux
23472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23473 soname_spec='${libname}${release}${shared_ext}$major'
23474 shlibpath_var=LD_LIBRARY_PATH
23475 case $host_vendor in
23476 sni)
23477 shlibpath_overrides_runpath=no
23478 need_lib_prefix=no
23479 export_dynamic_flag_spec='${wl}-Blargedynsym'
23480 runpath_var=LD_RUN_PATH
23481 ;;
23482 siemens)
23483 need_lib_prefix=no
23484 ;;
23485 motorola)
23486 need_lib_prefix=no
23487 need_version=no
23488 shlibpath_overrides_runpath=no
23489 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23490 ;;
23491 esac
23492 ;;
23493
23494sysv4*MP*)
23495 if test -d /usr/nec ;then
23496 version_type=linux
23497 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23498 soname_spec='$libname${shared_ext}.$major'
23499 shlibpath_var=LD_LIBRARY_PATH
23500 fi
23501 ;;
23502
Reid Spencera773bd52006-08-04 18:18:08 +000023503sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23504 version_type=freebsd-elf
23505 need_lib_prefix=no
23506 need_version=no
23507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23508 soname_spec='${libname}${release}${shared_ext}$major'
23509 shlibpath_var=LD_LIBRARY_PATH
23510 hardcode_into_libs=yes
23511 if test "$with_gnu_ld" = yes; then
23512 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23513 shlibpath_overrides_runpath=no
23514 else
23515 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23516 shlibpath_overrides_runpath=yes
23517 case $host_os in
23518 sco3.2v5*)
23519 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23520 ;;
23521 esac
23522 fi
23523 sys_lib_dlsearch_path_spec='/usr/lib'
23524 ;;
23525
John Criswell47fdd832003-07-14 16:52:07 +000023526uts4*)
23527 version_type=linux
23528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23529 soname_spec='${libname}${release}${shared_ext}$major'
23530 shlibpath_var=LD_LIBRARY_PATH
23531 ;;
23532
23533*)
23534 dynamic_linker=no
23535 ;;
23536esac
Reid Spencera773bd52006-08-04 18:18:08 +000023537{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23538echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023539test "$dynamic_linker" = no && can_build_shared=no
23540
Reid Spencera773bd52006-08-04 18:18:08 +000023541variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23542if test "$GCC" = yes; then
23543 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23544fi
23545
23546{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23547echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023548hardcode_action_F77=
23549if test -n "$hardcode_libdir_flag_spec_F77" || \
23550 test -n "$runpath_var_F77" || \
23551 test "X$hardcode_automatic_F77" = "Xyes" ; then
23552
23553 # We can hardcode non-existant directories.
23554 if test "$hardcode_direct_F77" != no &&
23555 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23556 # have to relink, otherwise we might link with an installed library
23557 # when we should be linking with a yet-to-be-installed one
23558 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23559 test "$hardcode_minus_L_F77" != no; then
23560 # Linking always hardcodes the temporary library directory.
23561 hardcode_action_F77=relink
23562 else
23563 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23564 hardcode_action_F77=immediate
23565 fi
23566else
23567 # We cannot hardcode anything, or else we can only hardcode existing
23568 # directories.
23569 hardcode_action_F77=unsupported
23570fi
Reid Spencera773bd52006-08-04 18:18:08 +000023571{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23572echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023573
23574if test "$hardcode_action_F77" = relink; then
23575 # Fast installation is not supported
23576 enable_fast_install=no
23577elif test "$shlibpath_overrides_runpath" = yes ||
23578 test "$enable_shared" = no; then
23579 # Fast installation is not necessary
23580 enable_fast_install=needless
23581fi
23582
John Criswell47fdd832003-07-14 16:52:07 +000023583
23584# The else clause should only fire when bootstrapping the
23585# libtool distribution, otherwise you forgot to ship ltmain.sh
23586# with your package, and you will get complaints that there are
23587# no rules to generate ltmain.sh.
23588if test -f "$ltmain"; then
23589 # See if we are running on zsh, and set the options which allow our commands through
23590 # without removal of \ escapes.
23591 if test -n "${ZSH_VERSION+set}" ; then
23592 setopt NO_GLOB_SUBST
23593 fi
23594 # Now quote all the things that may contain metacharacters while being
23595 # careful not to overquote the AC_SUBSTed values. We take copies of the
23596 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023597 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 +000023598 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023599 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23600 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23601 deplibs_check_method reload_flag reload_cmds need_locks \
23602 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23603 lt_cv_sys_global_symbol_to_c_name_address \
23604 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23605 old_postinstall_cmds old_postuninstall_cmds \
23606 compiler_F77 \
23607 CC_F77 \
23608 LD_F77 \
23609 lt_prog_compiler_wl_F77 \
23610 lt_prog_compiler_pic_F77 \
23611 lt_prog_compiler_static_F77 \
23612 lt_prog_compiler_no_builtin_flag_F77 \
23613 export_dynamic_flag_spec_F77 \
23614 thread_safe_flag_spec_F77 \
23615 whole_archive_flag_spec_F77 \
23616 enable_shared_with_static_runtimes_F77 \
23617 old_archive_cmds_F77 \
23618 old_archive_from_new_cmds_F77 \
23619 predep_objects_F77 \
23620 postdep_objects_F77 \
23621 predeps_F77 \
23622 postdeps_F77 \
23623 compiler_lib_search_path_F77 \
23624 archive_cmds_F77 \
23625 archive_expsym_cmds_F77 \
23626 postinstall_cmds_F77 \
23627 postuninstall_cmds_F77 \
23628 old_archive_from_expsyms_cmds_F77 \
23629 allow_undefined_flag_F77 \
23630 no_undefined_flag_F77 \
23631 export_symbols_cmds_F77 \
23632 hardcode_libdir_flag_spec_F77 \
23633 hardcode_libdir_flag_spec_ld_F77 \
23634 hardcode_libdir_separator_F77 \
23635 hardcode_automatic_F77 \
23636 module_cmds_F77 \
23637 module_expsym_cmds_F77 \
23638 lt_cv_prog_compiler_c_o_F77 \
23639 exclude_expsyms_F77 \
23640 include_expsyms_F77; do
23641
23642 case $var in
23643 old_archive_cmds_F77 | \
23644 old_archive_from_new_cmds_F77 | \
23645 archive_cmds_F77 | \
23646 archive_expsym_cmds_F77 | \
23647 module_cmds_F77 | \
23648 module_expsym_cmds_F77 | \
23649 old_archive_from_expsyms_cmds_F77 | \
23650 export_symbols_cmds_F77 | \
23651 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23652 postinstall_cmds | postuninstall_cmds | \
23653 old_postinstall_cmds | old_postuninstall_cmds | \
23654 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23655 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023656 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 +000023657 ;;
23658 *)
23659 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23660 ;;
23661 esac
23662 done
23663
23664 case $lt_echo in
23665 *'\$0 --fallback-echo"')
23666 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23667 ;;
23668 esac
23669
23670cfgfile="$ofile"
23671
23672 cat <<__EOF__ >> "$cfgfile"
23673# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23674
23675# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23676
23677# Shell to use when invoking shell scripts.
23678SHELL=$lt_SHELL
23679
23680# Whether or not to build shared libraries.
23681build_libtool_libs=$enable_shared
23682
23683# Whether or not to build static libraries.
23684build_old_libs=$enable_static
23685
23686# Whether or not to add -lc for building shared libraries.
23687build_libtool_need_lc=$archive_cmds_need_lc_F77
23688
23689# Whether or not to disallow shared libs when runtime libs are static
23690allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23691
23692# Whether or not to optimize for fast installation.
23693fast_install=$enable_fast_install
23694
23695# The host system.
23696host_alias=$host_alias
23697host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023698host_os=$host_os
23699
23700# The build system.
23701build_alias=$build_alias
23702build=$build
23703build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023704
23705# An echo program that does not interpret backslashes.
23706echo=$lt_echo
23707
23708# The archiver.
23709AR=$lt_AR
23710AR_FLAGS=$lt_AR_FLAGS
23711
23712# A C compiler.
23713LTCC=$lt_LTCC
23714
Reid Spencera773bd52006-08-04 18:18:08 +000023715# LTCC compiler flags.
23716LTCFLAGS=$lt_LTCFLAGS
23717
John Criswell47fdd832003-07-14 16:52:07 +000023718# A language-specific compiler.
23719CC=$lt_compiler_F77
23720
23721# Is the compiler the GNU C compiler?
23722with_gcc=$GCC_F77
23723
23724# An ERE matcher.
23725EGREP=$lt_EGREP
23726
23727# The linker used to build libraries.
23728LD=$lt_LD_F77
23729
23730# Whether we need hard or soft links.
23731LN_S=$lt_LN_S
23732
23733# A BSD-compatible nm program.
23734NM=$lt_NM
23735
23736# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023737STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023738
23739# Used to examine libraries when file_magic_cmd begins "file"
23740MAGIC_CMD=$MAGIC_CMD
23741
23742# Used on cygwin: DLL creation program.
23743DLLTOOL="$DLLTOOL"
23744
23745# Used on cygwin: object dumper.
23746OBJDUMP="$OBJDUMP"
23747
23748# Used on cygwin: assembler.
23749AS="$AS"
23750
23751# The name of the directory that contains temporary libtool files.
23752objdir=$objdir
23753
23754# How to create reloadable object files.
23755reload_flag=$lt_reload_flag
23756reload_cmds=$lt_reload_cmds
23757
23758# How to pass a linker flag through the compiler.
23759wl=$lt_lt_prog_compiler_wl_F77
23760
23761# Object file suffix (normally "o").
23762objext="$ac_objext"
23763
23764# Old archive suffix (normally "a").
23765libext="$libext"
23766
23767# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023768shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023769
23770# Executable file suffix (normally "").
23771exeext="$exeext"
23772
23773# Additional compiler flags for building library objects.
23774pic_flag=$lt_lt_prog_compiler_pic_F77
23775pic_mode=$pic_mode
23776
23777# What is the maximum length of a command?
23778max_cmd_len=$lt_cv_sys_max_cmd_len
23779
23780# Does compiler simultaneously support -c and -o options?
23781compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23782
Reid Spencera773bd52006-08-04 18:18:08 +000023783# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023784need_locks=$lt_need_locks
23785
23786# Do we need the lib prefix for modules?
23787need_lib_prefix=$need_lib_prefix
23788
23789# Do we need a version for libraries?
23790need_version=$need_version
23791
23792# Whether dlopen is supported.
23793dlopen_support=$enable_dlopen
23794
23795# Whether dlopen of programs is supported.
23796dlopen_self=$enable_dlopen_self
23797
23798# Whether dlopen of statically linked programs is supported.
23799dlopen_self_static=$enable_dlopen_self_static
23800
23801# Compiler flag to prevent dynamic linking.
23802link_static_flag=$lt_lt_prog_compiler_static_F77
23803
23804# Compiler flag to turn off builtin functions.
23805no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23806
23807# Compiler flag to allow reflexive dlopens.
23808export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23809
23810# Compiler flag to generate shared objects directly from archives.
23811whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23812
23813# Compiler flag to generate thread-safe objects.
23814thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23815
23816# Library versioning type.
23817version_type=$version_type
23818
23819# Format of library name prefix.
23820libname_spec=$lt_libname_spec
23821
23822# List of archive names. First name is the real one, the rest are links.
23823# The last name is the one that the linker finds with -lNAME.
23824library_names_spec=$lt_library_names_spec
23825
23826# The coded name of the library, if different from the real name.
23827soname_spec=$lt_soname_spec
23828
23829# Commands used to build and install an old-style archive.
23830RANLIB=$lt_RANLIB
23831old_archive_cmds=$lt_old_archive_cmds_F77
23832old_postinstall_cmds=$lt_old_postinstall_cmds
23833old_postuninstall_cmds=$lt_old_postuninstall_cmds
23834
23835# Create an old-style archive from a shared archive.
23836old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23837
23838# Create a temporary old-style archive to link instead of a shared archive.
23839old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23840
23841# Commands used to build and install a shared archive.
23842archive_cmds=$lt_archive_cmds_F77
23843archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23844postinstall_cmds=$lt_postinstall_cmds
23845postuninstall_cmds=$lt_postuninstall_cmds
23846
23847# Commands used to build a loadable module (assumed same as above if empty)
23848module_cmds=$lt_module_cmds_F77
23849module_expsym_cmds=$lt_module_expsym_cmds_F77
23850
23851# Commands to strip libraries.
23852old_striplib=$lt_old_striplib
23853striplib=$lt_striplib
23854
23855# Dependencies to place before the objects being linked to create a
23856# shared library.
23857predep_objects=$lt_predep_objects_F77
23858
23859# Dependencies to place after the objects being linked to create a
23860# shared library.
23861postdep_objects=$lt_postdep_objects_F77
23862
23863# Dependencies to place before the objects being linked to create a
23864# shared library.
23865predeps=$lt_predeps_F77
23866
23867# Dependencies to place after the objects being linked to create a
23868# shared library.
23869postdeps=$lt_postdeps_F77
23870
23871# The library search path used internally by the compiler when linking
23872# a shared library.
23873compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23874
23875# Method to check whether dependent libraries are shared objects.
23876deplibs_check_method=$lt_deplibs_check_method
23877
23878# Command to use when deplibs_check_method == file_magic.
23879file_magic_cmd=$lt_file_magic_cmd
23880
23881# Flag that allows shared libraries with undefined symbols to be built.
23882allow_undefined_flag=$lt_allow_undefined_flag_F77
23883
23884# Flag that forces no undefined symbols.
23885no_undefined_flag=$lt_no_undefined_flag_F77
23886
23887# Commands used to finish a libtool library installation in a directory.
23888finish_cmds=$lt_finish_cmds
23889
23890# Same as above, but a single script fragment to be evaled but not shown.
23891finish_eval=$lt_finish_eval
23892
23893# Take the output of nm and produce a listing of raw symbols and C names.
23894global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23895
23896# Transform the output of nm in a proper C declaration
23897global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23898
23899# Transform the output of nm in a C name address pair
23900global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23901
23902# This is the shared library runtime path variable.
23903runpath_var=$runpath_var
23904
23905# This is the shared library path variable.
23906shlibpath_var=$shlibpath_var
23907
23908# Is shlibpath searched before the hard-coded library search path?
23909shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23910
23911# How to hardcode a shared library path into an executable.
23912hardcode_action=$hardcode_action_F77
23913
23914# Whether we should hardcode library paths into libraries.
23915hardcode_into_libs=$hardcode_into_libs
23916
23917# Flag to hardcode \$libdir into a binary during linking.
23918# This must work even if \$libdir does not exist.
23919hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23920
23921# If ld is used when linking, flag to hardcode \$libdir into
23922# a binary during linking. This must work even if \$libdir does
23923# not exist.
23924hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23925
23926# Whether we need a single -rpath flag with a separated argument.
23927hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23928
23929# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23930# resulting binary.
23931hardcode_direct=$hardcode_direct_F77
23932
23933# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23934# resulting binary.
23935hardcode_minus_L=$hardcode_minus_L_F77
23936
23937# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23938# the resulting binary.
23939hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23940
23941# Set to yes if building a shared library automatically hardcodes DIR into the library
23942# and all subsequent libraries and executables linked against it.
23943hardcode_automatic=$hardcode_automatic_F77
23944
23945# Variables whose values should be saved in libtool wrapper scripts and
23946# restored at relink time.
23947variables_saved_for_relink="$variables_saved_for_relink"
23948
23949# Whether libtool must link a program against all its dependency libraries.
23950link_all_deplibs=$link_all_deplibs_F77
23951
23952# Compile-time system search path for libraries
23953sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23954
23955# Run-time system search path for libraries
23956sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23957
23958# Fix the shell variable \$srcfile for the compiler.
23959fix_srcfile_path="$fix_srcfile_path_F77"
23960
23961# Set to yes if exported symbols are required.
23962always_export_symbols=$always_export_symbols_F77
23963
23964# The commands to list exported symbols.
23965export_symbols_cmds=$lt_export_symbols_cmds_F77
23966
23967# The commands to extract the exported symbol list from a shared archive.
23968extract_expsyms_cmds=$lt_extract_expsyms_cmds
23969
23970# Symbols that should not be listed in the preloaded symbols.
23971exclude_expsyms=$lt_exclude_expsyms_F77
23972
23973# Symbols that must always be exported.
23974include_expsyms=$lt_include_expsyms_F77
23975
23976# ### END LIBTOOL TAG CONFIG: $tagname
23977
23978__EOF__
23979
23980
23981else
23982 # If there is no Makefile yet, we rely on a make rule to execute
23983 # `config.status --recheck' to rerun these tests and create the
23984 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023985 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23986 if test -f "$ltmain_in"; then
23987 test -f Makefile && make "$ltmain"
23988 fi
John Criswell47fdd832003-07-14 16:52:07 +000023989fi
23990
23991
23992ac_ext=c
23993ac_cpp='$CPP $CPPFLAGS'
23994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23996ac_compiler_gnu=$ac_cv_c_compiler_gnu
23997
23998CC="$lt_save_CC"
23999
24000 else
24001 tagname=""
24002 fi
24003 ;;
24004
24005 GCJ)
24006 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024007 ac_ext=c
24008ac_cpp='$CPP $CPPFLAGS'
24009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24011ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024012
24013
24014# Source file extension for Java test sources.
24015ac_ext=java
24016
24017# Object file extension for compiled Java test sources.
24018objext=o
24019objext_GCJ=$objext
24020
24021# Code to be used in simple compile tests
24022lt_simple_compile_test_code="class foo {}\n"
24023
24024# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000024025lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000024026
24027# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24028
24029# If no C compiler was specified, use CC.
24030LTCC=${LTCC-"$CC"}
24031
Reid Spencera773bd52006-08-04 18:18:08 +000024032# If no C compiler flags were specified, use CFLAGS.
24033LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24034
John Criswell47fdd832003-07-14 16:52:07 +000024035# Allow CC to be a program name with arguments.
24036compiler=$CC
24037
24038
Reid Spencera773bd52006-08-04 18:18:08 +000024039# save warnings/boilerplate of simple test code
24040ac_outfile=conftest.$ac_objext
24041printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24042eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24043_lt_compiler_boilerplate=`cat conftest.err`
24044$rm conftest*
24045
24046ac_outfile=conftest.$ac_objext
24047printf "$lt_simple_link_test_code" >conftest.$ac_ext
24048eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24049_lt_linker_boilerplate=`cat conftest.err`
24050$rm conftest*
24051
24052
John Criswell47fdd832003-07-14 16:52:07 +000024053# Allow CC to be a program name with arguments.
24054lt_save_CC="$CC"
24055CC=${GCJ-"gcj"}
24056compiler=$CC
24057compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000024058for cc_temp in $compiler""; do
24059 case $cc_temp in
24060 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24061 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24062 \-*) ;;
24063 *) break;;
24064 esac
24065done
24066cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24067
John Criswell47fdd832003-07-14 16:52:07 +000024068
24069# GCJ did not exist at the time GCC didn't implicitly link libc in.
24070archive_cmds_need_lc_GCJ=no
24071
Reid Spencera773bd52006-08-04 18:18:08 +000024072old_archive_cmds_GCJ=$old_archive_cmds
24073
John Criswell47fdd832003-07-14 16:52:07 +000024074
24075lt_prog_compiler_no_builtin_flag_GCJ=
24076
24077if test "$GCC" = yes; then
24078 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24079
Reid Spencer2706f8c2004-09-19 23:53:36 +000024080
Reid Spencera773bd52006-08-04 18:18:08 +000024081{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24082echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024083if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24084 echo $ECHO_N "(cached) $ECHO_C" >&6
24085else
24086 lt_cv_prog_compiler_rtti_exceptions=no
24087 ac_outfile=conftest.$ac_objext
24088 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24089 lt_compiler_flag="-fno-rtti -fno-exceptions"
24090 # Insert the option either (1) after the last *FLAGS variable, or
24091 # (2) before a word containing "conftest.", or (3) at the end.
24092 # Note that $ac_compile itself does not contain backslashes and begins
24093 # with a dollar sign (not a hyphen), so the echo should work correctly.
24094 # The option is referenced via a variable to avoid confusing sed.
24095 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24098 -e 's:$: $lt_compiler_flag:'`
Shantonu Sen7e836972009-08-11 13:39:52 +000024099 (eval echo "\"\$as_me:24099: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024100 (eval "$lt_compile" 2>conftest.err)
24101 ac_status=$?
24102 cat conftest.err >&5
Shantonu Sen7e836972009-08-11 13:39:52 +000024103 echo "$as_me:24103: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024104 if (exit $ac_status) && test -s "$ac_outfile"; then
24105 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024106 # So say no if there are warnings other than the usual output.
24107 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24109 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024110 lt_cv_prog_compiler_rtti_exceptions=yes
24111 fi
24112 fi
24113 $rm conftest*
24114
24115fi
Reid Spencera773bd52006-08-04 18:18:08 +000024116{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24117echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024118
24119if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24120 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24121else
24122 :
24123fi
24124
24125fi
24126
24127lt_prog_compiler_wl_GCJ=
24128lt_prog_compiler_pic_GCJ=
24129lt_prog_compiler_static_GCJ=
24130
Reid Spencera773bd52006-08-04 18:18:08 +000024131{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24132echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024133
24134 if test "$GCC" = yes; then
24135 lt_prog_compiler_wl_GCJ='-Wl,'
24136 lt_prog_compiler_static_GCJ='-static'
24137
24138 case $host_os in
24139 aix*)
24140 # All AIX code is PIC.
24141 if test "$host_cpu" = ia64; then
24142 # AIX 5 now supports IA64 processor
24143 lt_prog_compiler_static_GCJ='-Bstatic'
24144 fi
24145 ;;
24146
24147 amigaos*)
24148 # FIXME: we need at least 68020 code to build shared libraries, but
24149 # adding the `-m68020' flag to GCC prevents building anything better,
24150 # like `-m68040'.
24151 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24152 ;;
24153
24154 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24155 # PIC is the default for these OSes.
24156 ;;
24157
24158 mingw* | pw32* | os2*)
24159 # This hack is so that the source file can tell whether it is being
24160 # built for inclusion in a dll (and should export symbols for example).
24161 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24162 ;;
24163
24164 darwin* | rhapsody*)
24165 # PIC is the default on this platform
24166 # Common symbols not allowed in MH_DYLIB files
24167 lt_prog_compiler_pic_GCJ='-fno-common'
24168 ;;
24169
Reid Spencera773bd52006-08-04 18:18:08 +000024170 interix3*)
24171 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24172 # Instead, we relocate shared libraries at runtime.
24173 ;;
24174
John Criswell47fdd832003-07-14 16:52:07 +000024175 msdosdjgpp*)
24176 # Just because we use GCC doesn't mean we suddenly get shared libraries
24177 # on systems that don't support them.
24178 lt_prog_compiler_can_build_shared_GCJ=no
24179 enable_shared=no
24180 ;;
24181
24182 sysv4*MP*)
24183 if test -d /usr/nec; then
24184 lt_prog_compiler_pic_GCJ=-Kconform_pic
24185 fi
24186 ;;
24187
24188 hpux*)
24189 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24190 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024191 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024192 hppa*64*|ia64*)
24193 # +Z the default
24194 ;;
24195 *)
24196 lt_prog_compiler_pic_GCJ='-fPIC'
24197 ;;
24198 esac
24199 ;;
24200
24201 *)
24202 lt_prog_compiler_pic_GCJ='-fPIC'
24203 ;;
24204 esac
24205 else
24206 # PORTME Check for flag to pass linker flags through the system compiler.
24207 case $host_os in
24208 aix*)
24209 lt_prog_compiler_wl_GCJ='-Wl,'
24210 if test "$host_cpu" = ia64; then
24211 # AIX 5 now supports IA64 processor
24212 lt_prog_compiler_static_GCJ='-Bstatic'
24213 else
24214 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24215 fi
24216 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024217 darwin*)
24218 # PIC is the default on this platform
24219 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024220 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024221 xlc*)
24222 lt_prog_compiler_pic_GCJ='-qnocommon'
24223 lt_prog_compiler_wl_GCJ='-Wl,'
24224 ;;
24225 esac
24226 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024227
24228 mingw* | pw32* | os2*)
24229 # This hack is so that the source file can tell whether it is being
24230 # built for inclusion in a dll (and should export symbols for example).
24231 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24232 ;;
24233
24234 hpux9* | hpux10* | hpux11*)
24235 lt_prog_compiler_wl_GCJ='-Wl,'
24236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24237 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024238 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024239 hppa*64*|ia64*)
24240 # +Z the default
24241 ;;
24242 *)
24243 lt_prog_compiler_pic_GCJ='+Z'
24244 ;;
24245 esac
24246 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24247 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24248 ;;
24249
24250 irix5* | irix6* | nonstopux*)
24251 lt_prog_compiler_wl_GCJ='-Wl,'
24252 # PIC (with -KPIC) is the default.
24253 lt_prog_compiler_static_GCJ='-non_shared'
24254 ;;
24255
24256 newsos6)
24257 lt_prog_compiler_pic_GCJ='-KPIC'
24258 lt_prog_compiler_static_GCJ='-Bstatic'
24259 ;;
24260
24261 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024262 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024263 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024264 lt_prog_compiler_wl_GCJ='-Wl,'
24265 lt_prog_compiler_pic_GCJ='-KPIC'
24266 lt_prog_compiler_static_GCJ='-static'
24267 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024268 pgcc* | pgf77* | pgf90* | pgf95*)
24269 # Portland Group compilers (*not* the Pentium gcc compiler,
24270 # which looks to be a dead project)
24271 lt_prog_compiler_wl_GCJ='-Wl,'
24272 lt_prog_compiler_pic_GCJ='-fpic'
24273 lt_prog_compiler_static_GCJ='-Bstatic'
24274 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024275 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024276 lt_prog_compiler_wl_GCJ='-Wl,'
24277 # All Alpha code is PIC.
24278 lt_prog_compiler_static_GCJ='-non_shared'
24279 ;;
24280 esac
24281 ;;
24282
24283 osf3* | osf4* | osf5*)
24284 lt_prog_compiler_wl_GCJ='-Wl,'
24285 # All OSF/1 code is PIC.
24286 lt_prog_compiler_static_GCJ='-non_shared'
24287 ;;
24288
John Criswell47fdd832003-07-14 16:52:07 +000024289 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024290 lt_prog_compiler_pic_GCJ='-KPIC'
24291 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024292 case $cc_basename in
24293 f77* | f90* | f95*)
24294 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24295 *)
24296 lt_prog_compiler_wl_GCJ='-Wl,';;
24297 esac
John Criswell47fdd832003-07-14 16:52:07 +000024298 ;;
24299
24300 sunos4*)
24301 lt_prog_compiler_wl_GCJ='-Qoption ld '
24302 lt_prog_compiler_pic_GCJ='-PIC'
24303 lt_prog_compiler_static_GCJ='-Bstatic'
24304 ;;
24305
Reid Spencera773bd52006-08-04 18:18:08 +000024306 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024307 lt_prog_compiler_wl_GCJ='-Wl,'
24308 lt_prog_compiler_pic_GCJ='-KPIC'
24309 lt_prog_compiler_static_GCJ='-Bstatic'
24310 ;;
24311
24312 sysv4*MP*)
24313 if test -d /usr/nec ;then
24314 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24315 lt_prog_compiler_static_GCJ='-Bstatic'
24316 fi
24317 ;;
24318
Reid Spencera773bd52006-08-04 18:18:08 +000024319 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24320 lt_prog_compiler_wl_GCJ='-Wl,'
24321 lt_prog_compiler_pic_GCJ='-KPIC'
24322 lt_prog_compiler_static_GCJ='-Bstatic'
24323 ;;
24324
24325 unicos*)
24326 lt_prog_compiler_wl_GCJ='-Wl,'
24327 lt_prog_compiler_can_build_shared_GCJ=no
24328 ;;
24329
John Criswell47fdd832003-07-14 16:52:07 +000024330 uts4*)
24331 lt_prog_compiler_pic_GCJ='-pic'
24332 lt_prog_compiler_static_GCJ='-Bstatic'
24333 ;;
24334
24335 *)
24336 lt_prog_compiler_can_build_shared_GCJ=no
24337 ;;
24338 esac
24339 fi
24340
Reid Spencera773bd52006-08-04 18:18:08 +000024341{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24342echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024343
24344#
24345# Check to make sure the PIC flag actually works.
24346#
24347if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024348
Reid Spencera773bd52006-08-04 18:18:08 +000024349{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24350echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024351if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24352 echo $ECHO_N "(cached) $ECHO_C" >&6
24353else
24354 lt_prog_compiler_pic_works_GCJ=no
24355 ac_outfile=conftest.$ac_objext
24356 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24357 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24358 # Insert the option either (1) after the last *FLAGS variable, or
24359 # (2) before a word containing "conftest.", or (3) at the end.
24360 # Note that $ac_compile itself does not contain backslashes and begins
24361 # with a dollar sign (not a hyphen), so the echo should work correctly.
24362 # The option is referenced via a variable to avoid confusing sed.
24363 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24366 -e 's:$: $lt_compiler_flag:'`
Shantonu Sen7e836972009-08-11 13:39:52 +000024367 (eval echo "\"\$as_me:24367: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024368 (eval "$lt_compile" 2>conftest.err)
24369 ac_status=$?
24370 cat conftest.err >&5
Shantonu Sen7e836972009-08-11 13:39:52 +000024371 echo "$as_me:24371: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024372 if (exit $ac_status) && test -s "$ac_outfile"; then
24373 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024374 # So say no if there are warnings other than the usual output.
24375 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24377 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024378 lt_prog_compiler_pic_works_GCJ=yes
24379 fi
24380 fi
24381 $rm conftest*
24382
24383fi
Reid Spencera773bd52006-08-04 18:18:08 +000024384{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24385echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024386
24387if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24388 case $lt_prog_compiler_pic_GCJ in
24389 "" | " "*) ;;
24390 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24391 esac
24392else
24393 lt_prog_compiler_pic_GCJ=
24394 lt_prog_compiler_can_build_shared_GCJ=no
24395fi
24396
24397fi
Reid Spencera773bd52006-08-04 18:18:08 +000024398case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024399 # For platforms which do not support PIC, -DPIC is meaningless:
24400 *djgpp*)
24401 lt_prog_compiler_pic_GCJ=
24402 ;;
24403 *)
24404 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24405 ;;
24406esac
24407
Reid Spencera773bd52006-08-04 18:18:08 +000024408#
24409# Check to make sure the static flag actually works.
24410#
24411wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24412{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24413echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24414if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24415 echo $ECHO_N "(cached) $ECHO_C" >&6
24416else
24417 lt_prog_compiler_static_works_GCJ=no
24418 save_LDFLAGS="$LDFLAGS"
24419 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24420 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24421 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24422 # The linker can only warn and ignore the option if not recognized
24423 # So say no if there are warnings
24424 if test -s conftest.err; then
24425 # Append any errors to the config.log.
24426 cat conftest.err 1>&5
24427 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24429 if diff conftest.exp conftest.er2 >/dev/null; then
24430 lt_prog_compiler_static_works_GCJ=yes
24431 fi
24432 else
24433 lt_prog_compiler_static_works_GCJ=yes
24434 fi
24435 fi
24436 $rm conftest*
24437 LDFLAGS="$save_LDFLAGS"
24438
24439fi
24440{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24441echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24442
24443if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24444 :
24445else
24446 lt_prog_compiler_static_GCJ=
24447fi
24448
24449
24450{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24451echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024452if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24453 echo $ECHO_N "(cached) $ECHO_C" >&6
24454else
24455 lt_cv_prog_compiler_c_o_GCJ=no
24456 $rm -r conftest 2>/dev/null
24457 mkdir conftest
24458 cd conftest
24459 mkdir out
24460 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24461
John Criswell47fdd832003-07-14 16:52:07 +000024462 lt_compiler_flag="-o out/conftest2.$ac_objext"
24463 # Insert the option either (1) after the last *FLAGS variable, or
24464 # (2) before a word containing "conftest.", or (3) at the end.
24465 # Note that $ac_compile itself does not contain backslashes and begins
24466 # with a dollar sign (not a hyphen), so the echo should work correctly.
24467 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24470 -e 's:$: $lt_compiler_flag:'`
Shantonu Sen7e836972009-08-11 13:39:52 +000024471 (eval echo "\"\$as_me:24471: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024472 (eval "$lt_compile" 2>out/conftest.err)
24473 ac_status=$?
24474 cat out/conftest.err >&5
Shantonu Sen7e836972009-08-11 13:39:52 +000024475 echo "$as_me:24475: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024476 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24477 then
24478 # The compiler can only warn and ignore the option if not recognized
24479 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024480 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24481 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24482 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024483 lt_cv_prog_compiler_c_o_GCJ=yes
24484 fi
24485 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024486 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024487 $rm conftest*
24488 # SGI C++ compiler will create directory out/ii_files/ for
24489 # template instantiation
24490 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24491 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024492 cd ..
24493 rmdir conftest
24494 $rm conftest*
24495
24496fi
Reid Spencera773bd52006-08-04 18:18:08 +000024497{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24498echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024499
24500
24501hard_links="nottested"
24502if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24503 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024504 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24505echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024506 hard_links=yes
24507 $rm conftest*
24508 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24509 touch conftest.a
24510 ln conftest.a conftest.b 2>&5 || hard_links=no
24511 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024512 { echo "$as_me:$LINENO: result: $hard_links" >&5
24513echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024514 if test "$hard_links" = no; then
24515 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24516echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24517 need_locks=warn
24518 fi
24519else
24520 need_locks=no
24521fi
24522
Reid Spencera773bd52006-08-04 18:18:08 +000024523{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24524echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024525
24526 runpath_var=
24527 allow_undefined_flag_GCJ=
24528 enable_shared_with_static_runtimes_GCJ=no
24529 archive_cmds_GCJ=
24530 archive_expsym_cmds_GCJ=
24531 old_archive_From_new_cmds_GCJ=
24532 old_archive_from_expsyms_cmds_GCJ=
24533 export_dynamic_flag_spec_GCJ=
24534 whole_archive_flag_spec_GCJ=
24535 thread_safe_flag_spec_GCJ=
24536 hardcode_libdir_flag_spec_GCJ=
24537 hardcode_libdir_flag_spec_ld_GCJ=
24538 hardcode_libdir_separator_GCJ=
24539 hardcode_direct_GCJ=no
24540 hardcode_minus_L_GCJ=no
24541 hardcode_shlibpath_var_GCJ=unsupported
24542 link_all_deplibs_GCJ=unknown
24543 hardcode_automatic_GCJ=no
24544 module_cmds_GCJ=
24545 module_expsym_cmds_GCJ=
24546 always_export_symbols_GCJ=no
24547 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24548 # include_expsyms should be a list of space-separated symbols to be *always*
24549 # included in the symbol list
24550 include_expsyms_GCJ=
24551 # exclude_expsyms can be an extended regexp of symbols to exclude
24552 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24553 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24554 # as well as any symbol that contains `d'.
24555 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24556 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24557 # platforms (ab)use it in PIC code, but their linkers get confused if
24558 # the symbol is explicitly referenced. Since portable code cannot
24559 # rely on this symbol name, it's probably fine to never include it in
24560 # preloaded symbol tables.
24561 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024562 # Just being paranoid about ensuring that cc_basename is set.
24563 for cc_temp in $compiler""; do
24564 case $cc_temp in
24565 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24566 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24567 \-*) ;;
24568 *) break;;
24569 esac
24570done
24571cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024572
24573 case $host_os in
24574 cygwin* | mingw* | pw32*)
24575 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24576 # When not using gcc, we currently assume that we are using
24577 # Microsoft Visual C++.
24578 if test "$GCC" != yes; then
24579 with_gnu_ld=no
24580 fi
24581 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024582 interix*)
24583 # we just hope/assume this is gcc and not c89 (= MSVC++)
24584 with_gnu_ld=yes
24585 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024586 openbsd*)
24587 with_gnu_ld=no
24588 ;;
24589 esac
24590
24591 ld_shlibs_GCJ=yes
24592 if test "$with_gnu_ld" = yes; then
24593 # If archive_cmds runs LD, not CC, wlarc should be empty
24594 wlarc='${wl}'
24595
Reid Spencera773bd52006-08-04 18:18:08 +000024596 # Set some defaults for GNU ld with shared library support. These
24597 # are reset later if shared libraries are not supported. Putting them
24598 # here allows them to be overridden if necessary.
24599 runpath_var=LD_RUN_PATH
24600 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24601 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24602 # ancient GNU ld didn't support --whole-archive et. al.
24603 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24604 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24605 else
24606 whole_archive_flag_spec_GCJ=
24607 fi
24608 supports_anon_versioning=no
24609 case `$LD -v 2>/dev/null` in
24610 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24611 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24612 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24613 *\ 2.11.*) ;; # other 2.11 versions
24614 *) supports_anon_versioning=yes ;;
24615 esac
24616
John Criswell47fdd832003-07-14 16:52:07 +000024617 # See if GNU ld supports shared libraries.
24618 case $host_os in
24619 aix3* | aix4* | aix5*)
24620 # On AIX/PPC, the GNU linker is very broken
24621 if test "$host_cpu" != ia64; then
24622 ld_shlibs_GCJ=no
24623 cat <<EOF 1>&2
24624
24625*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24626*** to be unable to reliably create shared libraries on AIX.
24627*** Therefore, libtool is disabling shared libraries support. If you
24628*** really care for shared libraries, you may want to modify your PATH
24629*** so that a non-GNU linker is found, and then restart.
24630
24631EOF
24632 fi
24633 ;;
24634
24635 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024636 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 +000024637 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24638 hardcode_minus_L_GCJ=yes
24639
24640 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24641 # that the semantics of dynamic libraries on AmigaOS, at least up
24642 # to version 4, is to share data among multiple programs linked
24643 # with the same dynamic library. Since this doesn't match the
24644 # behavior of shared libraries on other platforms, we can't use
24645 # them.
24646 ld_shlibs_GCJ=no
24647 ;;
24648
24649 beos*)
24650 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24651 allow_undefined_flag_GCJ=unsupported
24652 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24653 # support --undefined. This deserves some investigation. FIXME
24654 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24655 else
24656 ld_shlibs_GCJ=no
24657 fi
24658 ;;
24659
24660 cygwin* | mingw* | pw32*)
24661 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24662 # as there is no search path for DLLs.
24663 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24664 allow_undefined_flag_GCJ=unsupported
24665 always_export_symbols_GCJ=no
24666 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024667 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 +000024668
24669 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024670 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 +000024671 # If the export-symbols file already is a .def file (1st line
24672 # is EXPORTS), use it as is; otherwise, prepend...
24673 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24674 cp $export_symbols $output_objdir/$soname.def;
24675 else
24676 echo EXPORTS > $output_objdir/$soname.def;
24677 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024678 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024679 $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 +000024680 else
Reid Spencera773bd52006-08-04 18:18:08 +000024681 ld_shlibs_GCJ=no
24682 fi
24683 ;;
24684
24685 interix3*)
24686 hardcode_direct_GCJ=no
24687 hardcode_shlibpath_var_GCJ=no
24688 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24689 export_dynamic_flag_spec_GCJ='${wl}-E'
24690 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24691 # Instead, shared libraries are loaded at an image base (0x10000000 by
24692 # default) and relocated if they conflict, which is a slow very memory
24693 # consuming and fragmenting process. To avoid this, we pick a random,
24694 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24695 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24696 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'
24697 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'
24698 ;;
24699
24700 linux*)
24701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24702 tmp_addflag=
24703 case $cc_basename,$host_cpu in
24704 pgcc*) # Portland Group C compiler
24705 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'
24706 tmp_addflag=' $pic_flag'
24707 ;;
24708 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24709 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'
24710 tmp_addflag=' $pic_flag -Mnomain' ;;
24711 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24712 tmp_addflag=' -i_dynamic' ;;
24713 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24714 tmp_addflag=' -i_dynamic -nofor_main' ;;
24715 ifc* | ifort*) # Intel Fortran compiler
24716 tmp_addflag=' -nofor_main' ;;
24717 esac
24718 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24719
24720 if test $supports_anon_versioning = yes; then
24721 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24722 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24723 $echo "local: *; };" >> $output_objdir/$libname.ver~
24724 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24725 fi
24726 else
24727 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024728 fi
24729 ;;
24730
24731 netbsd*)
24732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24733 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24734 wlarc=
24735 else
24736 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24737 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24738 fi
24739 ;;
24740
Reid Spencera773bd52006-08-04 18:18:08 +000024741 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024742 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24743 ld_shlibs_GCJ=no
24744 cat <<EOF 1>&2
24745
24746*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24747*** create shared libraries on Solaris systems. Therefore, libtool
24748*** is disabling shared libraries support. We urge you to upgrade GNU
24749*** binutils to release 2.9.1 or newer. Another option is to modify
24750*** your PATH or compiler configuration so that the native linker is
24751*** used, and then restart.
24752
24753EOF
24754 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24755 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24756 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24757 else
24758 ld_shlibs_GCJ=no
24759 fi
24760 ;;
24761
Reid Spencera773bd52006-08-04 18:18:08 +000024762 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24763 case `$LD -v 2>&1` in
24764 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24765 ld_shlibs_GCJ=no
24766 cat <<_LT_EOF 1>&2
24767
24768*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24769*** reliably create shared libraries on SCO systems. Therefore, libtool
24770*** is disabling shared libraries support. We urge you to upgrade GNU
24771*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24772*** your PATH or compiler configuration so that the native linker is
24773*** used, and then restart.
24774
24775_LT_EOF
24776 ;;
24777 *)
24778 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24779 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24780 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24781 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24782 else
24783 ld_shlibs_GCJ=no
24784 fi
24785 ;;
24786 esac
24787 ;;
24788
John Criswell47fdd832003-07-14 16:52:07 +000024789 sunos4*)
24790 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24791 wlarc=
24792 hardcode_direct_GCJ=yes
24793 hardcode_shlibpath_var_GCJ=no
24794 ;;
24795
24796 *)
24797 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24798 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24799 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24800 else
24801 ld_shlibs_GCJ=no
24802 fi
24803 ;;
24804 esac
24805
Reid Spencera773bd52006-08-04 18:18:08 +000024806 if test "$ld_shlibs_GCJ" = no; then
24807 runpath_var=
24808 hardcode_libdir_flag_spec_GCJ=
24809 export_dynamic_flag_spec_GCJ=
24810 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024811 fi
24812 else
24813 # PORTME fill in a description of your system's linker (not GNU ld)
24814 case $host_os in
24815 aix3*)
24816 allow_undefined_flag_GCJ=unsupported
24817 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024818 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 +000024819 # Note: this linker hardcodes the directories in LIBPATH if there
24820 # are no directories specified by -L.
24821 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024822 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024823 # Neither direct hardcoding nor static linking is supported with a
24824 # broken collect2.
24825 hardcode_direct_GCJ=unsupported
24826 fi
24827 ;;
24828
24829 aix4* | aix5*)
24830 if test "$host_cpu" = ia64; then
24831 # On IA64, the linker does run time linking by default, so we don't
24832 # have to do anything special.
24833 aix_use_runtimelinking=no
24834 exp_sym_flag='-Bexport'
24835 no_entry_flag=""
24836 else
24837 # If we're using GNU nm, then we don't want the "-C" option.
24838 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24839 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24840 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'
24841 else
24842 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'
24843 fi
24844 aix_use_runtimelinking=no
24845
24846 # Test if we are trying to use run time linking or normal
24847 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24848 # need to do runtime linking.
24849 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24850 for ld_flag in $LDFLAGS; do
24851 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24852 aix_use_runtimelinking=yes
24853 break
24854 fi
24855 done
Reid Spencera773bd52006-08-04 18:18:08 +000024856 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024857 esac
24858
24859 exp_sym_flag='-bexport'
24860 no_entry_flag='-bnoentry'
24861 fi
24862
24863 # When large executables or shared objects are built, AIX ld can
24864 # have problems creating the table of contents. If linking a library
24865 # or program results in "error TOC overflow" add -mminimal-toc to
24866 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24867 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24868
24869 archive_cmds_GCJ=''
24870 hardcode_direct_GCJ=yes
24871 hardcode_libdir_separator_GCJ=':'
24872 link_all_deplibs_GCJ=yes
24873
24874 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024875 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024876 # We only want to do this on AIX 4.2 and lower, the check
24877 # below for broken collect2 doesn't work under 4.3+
24878 collect2name=`${CC} -print-prog-name=collect2`
24879 if test -f "$collect2name" && \
24880 strings "$collect2name" | grep resolve_lib_name >/dev/null
24881 then
24882 # We have reworked collect2
24883 hardcode_direct_GCJ=yes
24884 else
24885 # We have old collect2
24886 hardcode_direct_GCJ=unsupported
24887 # It fails to find uninstalled libraries when the uninstalled
24888 # path is not listed in the libpath. Setting hardcode_minus_L
24889 # to unsupported forces relinking
24890 hardcode_minus_L_GCJ=yes
24891 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24892 hardcode_libdir_separator_GCJ=
24893 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024894 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024895 esac
24896 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024897 if test "$aix_use_runtimelinking" = yes; then
24898 shared_flag="$shared_flag "'${wl}-G'
24899 fi
John Criswell47fdd832003-07-14 16:52:07 +000024900 else
24901 # not using gcc
24902 if test "$host_cpu" = ia64; then
24903 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24904 # chokes on -Wl,-G. The following line is correct:
24905 shared_flag='-G'
24906 else
Reid Spencera773bd52006-08-04 18:18:08 +000024907 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024908 shared_flag='${wl}-G'
24909 else
24910 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024911 fi
John Criswell47fdd832003-07-14 16:52:07 +000024912 fi
24913 fi
24914
24915 # It seems that -bexpall does not export symbols beginning with
24916 # underscore (_), so it is better to generate a list of symbols to export.
24917 always_export_symbols_GCJ=yes
24918 if test "$aix_use_runtimelinking" = yes; then
24919 # Warning - without using the other runtime loading flags (-brtl),
24920 # -berok will link without error, but may produce a broken library.
24921 allow_undefined_flag_GCJ='-berok'
24922 # Determine the default libpath from the value encoded in an empty executable.
24923 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024924/* confdefs.h. */
24925_ACEOF
24926cat confdefs.h >>conftest.$ac_ext
24927cat >>conftest.$ac_ext <<_ACEOF
24928/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024929
John Criswell47fdd832003-07-14 16:52:07 +000024930int
24931main ()
24932{
24933
24934 ;
24935 return 0;
24936}
24937_ACEOF
24938rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024939if { (ac_try="$ac_link"
24940case "(($ac_try" in
24941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24942 *) ac_try_echo=$ac_try;;
24943esac
24944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24945 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024946 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024947 grep -v '^ *+' conftest.er1 >conftest.err
24948 rm -f conftest.er1
24949 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024951 (exit $ac_status); } &&
24952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24953 { (case "(($ac_try" in
24954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24955 *) ac_try_echo=$ac_try;;
24956esac
24957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24958 (eval "$ac_try") 2>&5
24959 ac_status=$?
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); }; } &&
24962 { ac_try='test -s conftest$ac_exeext'
24963 { (case "(($ac_try" in
24964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24965 *) ac_try_echo=$ac_try;;
24966esac
24967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24968 (eval "$ac_try") 2>&5
24969 ac_status=$?
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024972
24973aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24974}'`
24975# Check for a 64-bit object if we didn't find anything.
24976if 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; }
24977}'`; fi
24978else
24979 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024980sed 's/^/| /' conftest.$ac_ext >&5
24981
Reid Spencera773bd52006-08-04 18:18:08 +000024982
John Criswell47fdd832003-07-14 16:52:07 +000024983fi
Reid Spencera773bd52006-08-04 18:18:08 +000024984
Bill Wendlingebcceee2009-04-18 11:20:33 +000024985rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024986 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024987if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24988
24989 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024990 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 +000024991 else
24992 if test "$host_cpu" = ia64; then
24993 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24994 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024995 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 +000024996 else
24997 # Determine the default libpath from the value encoded in an empty executable.
24998 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024999/* confdefs.h. */
25000_ACEOF
25001cat confdefs.h >>conftest.$ac_ext
25002cat >>conftest.$ac_ext <<_ACEOF
25003/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025004
John Criswell47fdd832003-07-14 16:52:07 +000025005int
25006main ()
25007{
25008
25009 ;
25010 return 0;
25011}
25012_ACEOF
25013rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025014if { (ac_try="$ac_link"
25015case "(($ac_try" in
25016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25017 *) ac_try_echo=$ac_try;;
25018esac
25019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25020 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025021 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025022 grep -v '^ *+' conftest.er1 >conftest.err
25023 rm -f conftest.er1
25024 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025026 (exit $ac_status); } &&
25027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25028 { (case "(($ac_try" in
25029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25031esac
25032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033 (eval "$ac_try") 2>&5
25034 ac_status=$?
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); }; } &&
25037 { ac_try='test -s conftest$ac_exeext'
25038 { (case "(($ac_try" in
25039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25040 *) ac_try_echo=$ac_try;;
25041esac
25042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25043 (eval "$ac_try") 2>&5
25044 ac_status=$?
25045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025047
25048aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25049}'`
25050# Check for a 64-bit object if we didn't find anything.
25051if 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; }
25052}'`; fi
25053else
25054 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025055sed 's/^/| /' conftest.$ac_ext >&5
25056
Reid Spencera773bd52006-08-04 18:18:08 +000025057
John Criswell47fdd832003-07-14 16:52:07 +000025058fi
Reid Spencera773bd52006-08-04 18:18:08 +000025059
Bill Wendlingebcceee2009-04-18 11:20:33 +000025060rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025061 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025062if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25063
25064 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25065 # Warning - without using the other run time loading flags,
25066 # -berok will link without error, but may produce a broken library.
25067 no_undefined_flag_GCJ=' ${wl}-bernotok'
25068 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025069 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025070 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025071 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025072 # This is similar to how AIX traditionally builds its shared libraries.
25073 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 +000025074 fi
25075 fi
25076 ;;
25077
25078 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025079 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 +000025080 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25081 hardcode_minus_L_GCJ=yes
25082 # see comment about different semantics on the GNU ld section
25083 ld_shlibs_GCJ=no
25084 ;;
25085
Reid Spencer2706f8c2004-09-19 23:53:36 +000025086 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025087 export_dynamic_flag_spec_GCJ=-rdynamic
25088 ;;
25089
25090 cygwin* | mingw* | pw32*)
25091 # When not using gcc, we currently assume that we are using
25092 # Microsoft Visual C++.
25093 # hardcode_libdir_flag_spec is actually meaningless, as there is
25094 # no search path for DLLs.
25095 hardcode_libdir_flag_spec_GCJ=' '
25096 allow_undefined_flag_GCJ=unsupported
25097 # Tell ltmain to make .lib files, not .a files.
25098 libext=lib
25099 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025100 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025101 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025102 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 +000025103 # The linker will automatically build a .lib file if we build a DLL.
25104 old_archive_From_new_cmds_GCJ='true'
25105 # FIXME: Should let the user specify the lib program.
25106 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025107 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025108 enable_shared_with_static_runtimes_GCJ=yes
25109 ;;
25110
25111 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025112 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025113 rhapsody* | darwin1.[012])
25114 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25115 ;;
25116 *) # Darwin 1.3 on
25117 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25118 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25119 else
25120 case ${MACOSX_DEPLOYMENT_TARGET} in
25121 10.[012])
25122 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25123 ;;
25124 10.*)
25125 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25126 ;;
25127 esac
25128 fi
25129 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025130 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025131 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025132 hardcode_direct_GCJ=no
25133 hardcode_automatic_GCJ=yes
25134 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025135 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025136 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025137 if test "$GCC" = yes ; then
25138 output_verbose_link_cmd='echo'
25139 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25140 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025141 # 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 +000025142 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}'
25143 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 +000025144 else
Reid Spencera773bd52006-08-04 18:18:08 +000025145 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025146 xlc*)
25147 output_verbose_link_cmd='echo'
25148 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25149 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025150 # 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 +000025151 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}'
25152 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 +000025153 ;;
25154 *)
25155 ld_shlibs_GCJ=no
25156 ;;
25157 esac
John Criswell47fdd832003-07-14 16:52:07 +000025158 fi
25159 ;;
25160
25161 dgux*)
25162 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25163 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25164 hardcode_shlibpath_var_GCJ=no
25165 ;;
25166
25167 freebsd1*)
25168 ld_shlibs_GCJ=no
25169 ;;
25170
25171 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25172 # support. Future versions do this automatically, but an explicit c++rt0.o
25173 # does not break anything, and helps significantly (at the cost of a little
25174 # extra space).
25175 freebsd2.2*)
25176 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25177 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25178 hardcode_direct_GCJ=yes
25179 hardcode_shlibpath_var_GCJ=no
25180 ;;
25181
25182 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25183 freebsd2*)
25184 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25185 hardcode_direct_GCJ=yes
25186 hardcode_minus_L_GCJ=yes
25187 hardcode_shlibpath_var_GCJ=no
25188 ;;
25189
25190 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025191 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025192 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25193 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25194 hardcode_direct_GCJ=yes
25195 hardcode_shlibpath_var_GCJ=no
25196 ;;
25197
25198 hpux9*)
25199 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025200 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 +000025201 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025202 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 +000025203 fi
25204 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25205 hardcode_libdir_separator_GCJ=:
25206 hardcode_direct_GCJ=yes
25207
25208 # hardcode_minus_L: Not really in the search PATH,
25209 # but as the default location of the library.
25210 hardcode_minus_L_GCJ=yes
25211 export_dynamic_flag_spec_GCJ='${wl}-E'
25212 ;;
25213
Reid Spencera773bd52006-08-04 18:18:08 +000025214 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025215 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025216 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25217 else
25218 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25219 fi
25220 if test "$with_gnu_ld" = no; then
25221 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25222 hardcode_libdir_separator_GCJ=:
25223
25224 hardcode_direct_GCJ=yes
25225 export_dynamic_flag_spec_GCJ='${wl}-E'
25226
25227 # hardcode_minus_L: Not really in the search PATH,
25228 # but as the default location of the library.
25229 hardcode_minus_L_GCJ=yes
25230 fi
25231 ;;
25232
25233 hpux11*)
25234 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25235 case $host_cpu in
25236 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025237 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25238 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025239 ia64*)
25240 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25241 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025242 *)
25243 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25244 ;;
25245 esac
25246 else
Reid Spencera773bd52006-08-04 18:18:08 +000025247 case $host_cpu in
25248 hppa*64*)
25249 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25250 ;;
25251 ia64*)
25252 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025253 ;;
25254 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025255 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 +000025256 ;;
25257 esac
25258 fi
25259 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025260 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25261 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025262
Reid Spencera773bd52006-08-04 18:18:08 +000025263 case $host_cpu in
25264 hppa*64*|ia64*)
25265 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25266 hardcode_direct_GCJ=no
25267 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025268 ;;
25269 *)
John Criswell47fdd832003-07-14 16:52:07 +000025270 hardcode_direct_GCJ=yes
25271 export_dynamic_flag_spec_GCJ='${wl}-E'
25272
25273 # hardcode_minus_L: Not really in the search PATH,
25274 # but as the default location of the library.
25275 hardcode_minus_L_GCJ=yes
25276 ;;
25277 esac
25278 fi
25279 ;;
25280
25281 irix5* | irix6* | nonstopux*)
25282 if test "$GCC" = yes; then
25283 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'
25284 else
25285 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'
25286 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25287 fi
25288 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25289 hardcode_libdir_separator_GCJ=:
25290 link_all_deplibs_GCJ=yes
25291 ;;
25292
25293 netbsd*)
25294 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25295 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25296 else
25297 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25298 fi
25299 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25300 hardcode_direct_GCJ=yes
25301 hardcode_shlibpath_var_GCJ=no
25302 ;;
25303
25304 newsos6)
25305 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25306 hardcode_direct_GCJ=yes
25307 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25308 hardcode_libdir_separator_GCJ=:
25309 hardcode_shlibpath_var_GCJ=no
25310 ;;
25311
25312 openbsd*)
25313 hardcode_direct_GCJ=yes
25314 hardcode_shlibpath_var_GCJ=no
25315 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25316 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025317 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 +000025318 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25319 export_dynamic_flag_spec_GCJ='${wl}-E'
25320 else
25321 case $host_os in
25322 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25323 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25324 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25325 ;;
25326 *)
25327 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25328 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25329 ;;
25330 esac
25331 fi
25332 ;;
25333
25334 os2*)
25335 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25336 hardcode_minus_L_GCJ=yes
25337 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025338 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 +000025339 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25340 ;;
25341
25342 osf3*)
25343 if test "$GCC" = yes; then
25344 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25345 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'
25346 else
25347 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25348 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'
25349 fi
25350 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25351 hardcode_libdir_separator_GCJ=:
25352 ;;
25353
25354 osf4* | osf5*) # as osf3* with the addition of -msym flag
25355 if test "$GCC" = yes; then
25356 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25357 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'
25358 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25359 else
25360 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25361 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 +000025362 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 +000025363 $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 +000025364
John Criswell47fdd832003-07-14 16:52:07 +000025365 # Both c and cxx compiler support -rpath directly
25366 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25367 fi
25368 hardcode_libdir_separator_GCJ=:
25369 ;;
25370
John Criswell47fdd832003-07-14 16:52:07 +000025371 solaris*)
25372 no_undefined_flag_GCJ=' -z text'
25373 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025374 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025375 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025376 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25377 $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 +000025378 else
Reid Spencera773bd52006-08-04 18:18:08 +000025379 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025380 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025381 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25382 $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 +000025383 fi
25384 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25385 hardcode_shlibpath_var_GCJ=no
25386 case $host_os in
25387 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025388 *)
25389 # The compiler driver will combine linker options so we
25390 # cannot just pass the convience library names through
25391 # without $wl, iff we do not link with $LD.
25392 # Luckily, gcc supports the same syntax we need for Sun Studio.
25393 # Supported since Solaris 2.6 (maybe 2.5.1?)
25394 case $wlarc in
25395 '')
25396 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25397 *)
25398 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' ;;
25399 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025400 esac
25401 link_all_deplibs_GCJ=yes
25402 ;;
25403
25404 sunos4*)
25405 if test "x$host_vendor" = xsequent; then
25406 # Use $CC to link under sequent, because it throws in some extra .o
25407 # files that make .init and .fini sections work.
25408 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25409 else
25410 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25411 fi
25412 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25413 hardcode_direct_GCJ=yes
25414 hardcode_minus_L_GCJ=yes
25415 hardcode_shlibpath_var_GCJ=no
25416 ;;
25417
25418 sysv4)
25419 case $host_vendor in
25420 sni)
25421 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25422 hardcode_direct_GCJ=yes # is this really true???
25423 ;;
25424 siemens)
25425 ## LD is ld it makes a PLAMLIB
25426 ## CC just makes a GrossModule.
25427 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25428 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25429 hardcode_direct_GCJ=no
25430 ;;
25431 motorola)
25432 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25433 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25434 ;;
25435 esac
25436 runpath_var='LD_RUN_PATH'
25437 hardcode_shlibpath_var_GCJ=no
25438 ;;
25439
25440 sysv4.3*)
25441 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25442 hardcode_shlibpath_var_GCJ=no
25443 export_dynamic_flag_spec_GCJ='-Bexport'
25444 ;;
25445
25446 sysv4*MP*)
25447 if test -d /usr/nec; then
25448 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25449 hardcode_shlibpath_var_GCJ=no
25450 runpath_var=LD_RUN_PATH
25451 hardcode_runpath_var=yes
25452 ld_shlibs_GCJ=yes
25453 fi
25454 ;;
25455
Reid Spencera773bd52006-08-04 18:18:08 +000025456 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25457 no_undefined_flag_GCJ='${wl}-z,text'
25458 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025459 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025460 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025461
John Criswell47fdd832003-07-14 16:52:07 +000025462 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025463 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25464 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 +000025465 else
Reid Spencera773bd52006-08-04 18:18:08 +000025466 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25467 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 +000025468 fi
John Criswell47fdd832003-07-14 16:52:07 +000025469 ;;
25470
Reid Spencera773bd52006-08-04 18:18:08 +000025471 sysv5* | sco3.2v5* | sco5v6*)
25472 # Note: We can NOT use -z defs as we might desire, because we do not
25473 # link with -lc, and that would cause any symbols used from libc to
25474 # always be unresolved, which means just about no library would
25475 # ever link correctly. If we're not using GNU ld we use -z text
25476 # though, which does catch some bad symbols but isn't as heavy-handed
25477 # as -z defs.
25478 no_undefined_flag_GCJ='${wl}-z,text'
25479 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25480 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025481 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025482 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25483 hardcode_libdir_separator_GCJ=':'
25484 link_all_deplibs_GCJ=yes
25485 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025486 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025487
25488 if test "$GCC" = yes; then
25489 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25490 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25491 else
25492 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25493 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25494 fi
John Criswell47fdd832003-07-14 16:52:07 +000025495 ;;
25496
25497 uts4*)
25498 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25499 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25500 hardcode_shlibpath_var_GCJ=no
25501 ;;
25502
25503 *)
25504 ld_shlibs_GCJ=no
25505 ;;
25506 esac
25507 fi
25508
Reid Spencera773bd52006-08-04 18:18:08 +000025509{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25510echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025511test "$ld_shlibs_GCJ" = no && can_build_shared=no
25512
John Criswell47fdd832003-07-14 16:52:07 +000025513#
25514# Do we need to explicitly link libc?
25515#
25516case "x$archive_cmds_need_lc_GCJ" in
25517x|xyes)
25518 # Assume -lc should be added
25519 archive_cmds_need_lc_GCJ=yes
25520
25521 if test "$enable_shared" = yes && test "$GCC" = yes; then
25522 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025523 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025524 # FIXME: we may have to deal with multi-command sequences.
25525 ;;
25526 '$CC '*)
25527 # Test whether the compiler implicitly links with -lc since on some
25528 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25529 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025530 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25531echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025532 $rm conftest*
25533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25534
25535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25536 (eval $ac_compile) 2>&5
25537 ac_status=$?
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); } 2>conftest.err; then
25540 soname=conftest
25541 lib=conftest
25542 libobjs=conftest.$ac_objext
25543 deplibs=
25544 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025545 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025546 compiler_flags=-v
25547 linker_flags=-v
25548 verstring=
25549 output_objdir=.
25550 libname=conftest
25551 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25552 allow_undefined_flag_GCJ=
25553 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25554 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25555 ac_status=$?
25556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557 (exit $ac_status); }
25558 then
25559 archive_cmds_need_lc_GCJ=no
25560 else
25561 archive_cmds_need_lc_GCJ=yes
25562 fi
25563 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25564 else
25565 cat conftest.err 1>&5
25566 fi
25567 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025568 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25569echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025570 ;;
25571 esac
25572 fi
25573 ;;
25574esac
25575
Reid Spencera773bd52006-08-04 18:18:08 +000025576{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25577echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025578library_names_spec=
25579libname_spec='lib$name'
25580soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025581shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025582postinstall_cmds=
25583postuninstall_cmds=
25584finish_cmds=
25585finish_eval=
25586shlibpath_var=
25587shlibpath_overrides_runpath=unknown
25588version_type=none
25589dynamic_linker="$host_os ld.so"
25590sys_lib_dlsearch_path_spec="/lib /usr/lib"
25591if test "$GCC" = yes; then
25592 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25593 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25594 # if the path contains ";" then we assume it to be the separator
25595 # otherwise default to the standard path separator (i.e. ":") - it is
25596 # assumed that no part of a normal pathname contains ";" but that should
25597 # okay in the real world where ";" in dirpaths is itself problematic.
25598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25599 else
25600 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25601 fi
25602else
25603 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25604fi
25605need_lib_prefix=unknown
25606hardcode_into_libs=no
25607
25608# when you set need_version to no, make sure it does not cause -set_version
25609# flags to be left without arguments
25610need_version=unknown
25611
25612case $host_os in
25613aix3*)
25614 version_type=linux
25615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25616 shlibpath_var=LIBPATH
25617
25618 # AIX 3 has no versioning support, so we append a major version to the name.
25619 soname_spec='${libname}${release}${shared_ext}$major'
25620 ;;
25621
25622aix4* | aix5*)
25623 version_type=linux
25624 need_lib_prefix=no
25625 need_version=no
25626 hardcode_into_libs=yes
25627 if test "$host_cpu" = ia64; then
25628 # AIX 5 supports IA64
25629 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25630 shlibpath_var=LD_LIBRARY_PATH
25631 else
25632 # With GCC up to 2.95.x, collect2 would create an import file
25633 # for dependence libraries. The import file would start with
25634 # the line `#! .'. This would cause the generated library to
25635 # depend on `.', always an invalid library. This was fixed in
25636 # development snapshots of GCC prior to 3.0.
25637 case $host_os in
25638 aix4 | aix4.[01] | aix4.[01].*)
25639 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25640 echo ' yes '
25641 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25642 :
25643 else
25644 can_build_shared=no
25645 fi
25646 ;;
25647 esac
25648 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25649 # soname into executable. Probably we can add versioning support to
25650 # collect2, so additional links can be useful in future.
25651 if test "$aix_use_runtimelinking" = yes; then
25652 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25653 # instead of lib<name>.a to let people know that these are not
25654 # typical AIX shared libraries.
25655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25656 else
25657 # We preserve .a as extension for shared libraries through AIX4.2
25658 # and later when we are not doing run time linking.
25659 library_names_spec='${libname}${release}.a $libname.a'
25660 soname_spec='${libname}${release}${shared_ext}$major'
25661 fi
25662 shlibpath_var=LIBPATH
25663 fi
25664 ;;
25665
25666amigaos*)
25667 library_names_spec='$libname.ixlibrary $libname.a'
25668 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025669 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 +000025670 ;;
25671
25672beos*)
25673 library_names_spec='${libname}${shared_ext}'
25674 dynamic_linker="$host_os ld.so"
25675 shlibpath_var=LIBRARY_PATH
25676 ;;
25677
Reid Spencer2706f8c2004-09-19 23:53:36 +000025678bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025679 version_type=linux
25680 need_version=no
25681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25682 soname_spec='${libname}${release}${shared_ext}$major'
25683 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25684 shlibpath_var=LD_LIBRARY_PATH
25685 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25686 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25687 # the default ld.so.conf also contains /usr/contrib/lib and
25688 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25689 # libtool to hard-code these into programs
25690 ;;
25691
25692cygwin* | mingw* | pw32*)
25693 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025694 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025695 need_version=no
25696 need_lib_prefix=no
25697
25698 case $GCC,$host_os in
25699 yes,cygwin* | yes,mingw* | yes,pw32*)
25700 library_names_spec='$libname.dll.a'
25701 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025702 postinstall_cmds='base_file=`basename \${file}`~
25703 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25704 dldir=$destdir/`dirname \$dlpath`~
25705 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025706 $install_prog $dir/$dlname \$dldir/$dlname~
25707 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025708 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25709 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025710 $rm \$dlpath'
25711 shlibpath_overrides_runpath=yes
25712
25713 case $host_os in
25714 cygwin*)
25715 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25716 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 +000025717 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025718 ;;
25719 mingw*)
25720 # MinGW DLLs use traditional 'lib' prefix
25721 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25722 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25723 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25724 # It is most probably a Windows format PATH printed by
25725 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25726 # path with ; separators, and with drive letters. We can handle the
25727 # drive letters (cygwin fileutils understands them), so leave them,
25728 # especially as we might pass files found there to a mingw objdump,
25729 # which wouldn't understand a cygwinified path. Ahh.
25730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25731 else
25732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25733 fi
25734 ;;
25735 pw32*)
25736 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025737 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 +000025738 ;;
25739 esac
25740 ;;
25741
25742 *)
25743 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25744 ;;
25745 esac
25746 dynamic_linker='Win32 ld.exe'
25747 # FIXME: first we should search . and the directory the executable is in
25748 shlibpath_var=PATH
25749 ;;
25750
25751darwin* | rhapsody*)
25752 dynamic_linker="$host_os dyld"
25753 version_type=darwin
25754 need_lib_prefix=no
25755 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025756 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025757 soname_spec='${libname}${release}${major}$shared_ext'
25758 shlibpath_overrides_runpath=yes
25759 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025760 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025761 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025762 if test "$GCC" = yes; then
25763 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"`
25764 else
25765 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025766 fi
25767 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25768 ;;
25769
25770dgux*)
25771 version_type=linux
25772 need_lib_prefix=no
25773 need_version=no
25774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25775 soname_spec='${libname}${release}${shared_ext}$major'
25776 shlibpath_var=LD_LIBRARY_PATH
25777 ;;
25778
25779freebsd1*)
25780 dynamic_linker=no
25781 ;;
25782
Reid Spencer2706f8c2004-09-19 23:53:36 +000025783kfreebsd*-gnu)
25784 version_type=linux
25785 need_lib_prefix=no
25786 need_version=no
25787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25788 soname_spec='${libname}${release}${shared_ext}$major'
25789 shlibpath_var=LD_LIBRARY_PATH
25790 shlibpath_overrides_runpath=no
25791 hardcode_into_libs=yes
25792 dynamic_linker='GNU ld.so'
25793 ;;
25794
Reid Spencera773bd52006-08-04 18:18:08 +000025795freebsd* | dragonfly*)
25796 # DragonFly does not have aout. When/if they implement a new
25797 # versioning mechanism, adjust this.
25798 if test -x /usr/bin/objformat; then
25799 objformat=`/usr/bin/objformat`
25800 else
25801 case $host_os in
25802 freebsd[123]*) objformat=aout ;;
25803 *) objformat=elf ;;
25804 esac
25805 fi
John Criswell47fdd832003-07-14 16:52:07 +000025806 version_type=freebsd-$objformat
25807 case $version_type in
25808 freebsd-elf*)
25809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25810 need_version=no
25811 need_lib_prefix=no
25812 ;;
25813 freebsd-*)
25814 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25815 need_version=yes
25816 ;;
25817 esac
25818 shlibpath_var=LD_LIBRARY_PATH
25819 case $host_os in
25820 freebsd2*)
25821 shlibpath_overrides_runpath=yes
25822 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025823 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025824 shlibpath_overrides_runpath=yes
25825 hardcode_into_libs=yes
25826 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025827 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25828 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025829 shlibpath_overrides_runpath=no
25830 hardcode_into_libs=yes
25831 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025832 freebsd*) # from 4.6 on
25833 shlibpath_overrides_runpath=yes
25834 hardcode_into_libs=yes
25835 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025836 esac
25837 ;;
25838
25839gnu*)
25840 version_type=linux
25841 need_lib_prefix=no
25842 need_version=no
25843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25844 soname_spec='${libname}${release}${shared_ext}$major'
25845 shlibpath_var=LD_LIBRARY_PATH
25846 hardcode_into_libs=yes
25847 ;;
25848
25849hpux9* | hpux10* | hpux11*)
25850 # Give a soname corresponding to the major version so that dld.sl refuses to
25851 # link against other versions.
25852 version_type=sunos
25853 need_lib_prefix=no
25854 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025855 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025856 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025857 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025858 hardcode_into_libs=yes
25859 dynamic_linker="$host_os dld.so"
25860 shlibpath_var=LD_LIBRARY_PATH
25861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25863 soname_spec='${libname}${release}${shared_ext}$major'
25864 if test "X$HPUX_IA64_MODE" = X32; then
25865 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25866 else
25867 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25868 fi
25869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25870 ;;
25871 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025872 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025873 hardcode_into_libs=yes
25874 dynamic_linker="$host_os dld.sl"
25875 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25876 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25878 soname_spec='${libname}${release}${shared_ext}$major'
25879 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25880 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25881 ;;
25882 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025883 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025884 dynamic_linker="$host_os dld.sl"
25885 shlibpath_var=SHLIB_PATH
25886 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25888 soname_spec='${libname}${release}${shared_ext}$major'
25889 ;;
25890 esac
25891 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25892 postinstall_cmds='chmod 555 $lib'
25893 ;;
25894
Reid Spencera773bd52006-08-04 18:18:08 +000025895interix3*)
25896 version_type=linux
25897 need_lib_prefix=no
25898 need_version=no
25899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25900 soname_spec='${libname}${release}${shared_ext}$major'
25901 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25902 shlibpath_var=LD_LIBRARY_PATH
25903 shlibpath_overrides_runpath=no
25904 hardcode_into_libs=yes
25905 ;;
25906
John Criswell47fdd832003-07-14 16:52:07 +000025907irix5* | irix6* | nonstopux*)
25908 case $host_os in
25909 nonstopux*) version_type=nonstopux ;;
25910 *)
25911 if test "$lt_cv_prog_gnu_ld" = yes; then
25912 version_type=linux
25913 else
25914 version_type=irix
25915 fi ;;
25916 esac
25917 need_lib_prefix=no
25918 need_version=no
25919 soname_spec='${libname}${release}${shared_ext}$major'
25920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25921 case $host_os in
25922 irix5* | nonstopux*)
25923 libsuff= shlibsuff=
25924 ;;
25925 *)
25926 case $LD in # libtool.m4 will add one of these switches to LD
25927 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25928 libsuff= shlibsuff= libmagic=32-bit;;
25929 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25930 libsuff=32 shlibsuff=N32 libmagic=N32;;
25931 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25932 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25933 *) libsuff= shlibsuff= libmagic=never-match;;
25934 esac
25935 ;;
25936 esac
25937 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25938 shlibpath_overrides_runpath=no
25939 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25940 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25941 hardcode_into_libs=yes
25942 ;;
25943
25944# No shared lib support for Linux oldld, aout, or coff.
25945linux*oldld* | linux*aout* | linux*coff*)
25946 dynamic_linker=no
25947 ;;
25948
25949# This must be Linux ELF.
25950linux*)
25951 version_type=linux
25952 need_lib_prefix=no
25953 need_version=no
25954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25955 soname_spec='${libname}${release}${shared_ext}$major'
25956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25957 shlibpath_var=LD_LIBRARY_PATH
25958 shlibpath_overrides_runpath=no
25959 # This implies no fast_install, which is unacceptable.
25960 # Some rework will be needed to allow for fast_install
25961 # before this can be enabled.
25962 hardcode_into_libs=yes
25963
Reid Spencer2706f8c2004-09-19 23:53:36 +000025964 # Append ld.so.conf contents to the search path
25965 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025966 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 +000025967 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25968 fi
25969
John Criswell47fdd832003-07-14 16:52:07 +000025970 # We used to test for /lib/ld.so.1 and disable shared libraries on
25971 # powerpc, because MkLinux only supported shared libraries with the
25972 # GNU dynamic linker. Since this was broken with cross compilers,
25973 # most powerpc-linux boxes support dynamic linking these days and
25974 # people can always --disable-shared, the test was removed, and we
25975 # assume the GNU/Linux dynamic linker is in use.
25976 dynamic_linker='GNU/Linux ld.so'
25977 ;;
25978
Reid Spencer2706f8c2004-09-19 23:53:36 +000025979knetbsd*-gnu)
25980 version_type=linux
25981 need_lib_prefix=no
25982 need_version=no
25983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25984 soname_spec='${libname}${release}${shared_ext}$major'
25985 shlibpath_var=LD_LIBRARY_PATH
25986 shlibpath_overrides_runpath=no
25987 hardcode_into_libs=yes
25988 dynamic_linker='GNU ld.so'
25989 ;;
25990
John Criswell47fdd832003-07-14 16:52:07 +000025991netbsd*)
25992 version_type=sunos
25993 need_lib_prefix=no
25994 need_version=no
25995 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25998 dynamic_linker='NetBSD (a.out) ld.so'
25999 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000026001 soname_spec='${libname}${release}${shared_ext}$major'
26002 dynamic_linker='NetBSD ld.elf_so'
26003 fi
26004 shlibpath_var=LD_LIBRARY_PATH
26005 shlibpath_overrides_runpath=yes
26006 hardcode_into_libs=yes
26007 ;;
26008
26009newsos6)
26010 version_type=linux
26011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26012 shlibpath_var=LD_LIBRARY_PATH
26013 shlibpath_overrides_runpath=yes
26014 ;;
26015
Reid Spencer2706f8c2004-09-19 23:53:36 +000026016nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000026017 version_type=linux
26018 need_lib_prefix=no
26019 need_version=no
26020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26021 soname_spec='${libname}${release}${shared_ext}$major'
26022 shlibpath_var=LD_LIBRARY_PATH
26023 shlibpath_overrides_runpath=yes
26024 ;;
26025
26026openbsd*)
26027 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000026028 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000026029 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000026030 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26031 case $host_os in
26032 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26033 *) need_version=no ;;
26034 esac
John Criswell47fdd832003-07-14 16:52:07 +000026035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26037 shlibpath_var=LD_LIBRARY_PATH
26038 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26039 case $host_os in
26040 openbsd2.[89] | openbsd2.[89].*)
26041 shlibpath_overrides_runpath=no
26042 ;;
26043 *)
26044 shlibpath_overrides_runpath=yes
26045 ;;
26046 esac
26047 else
26048 shlibpath_overrides_runpath=yes
26049 fi
26050 ;;
26051
26052os2*)
26053 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000026054 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000026055 need_lib_prefix=no
26056 library_names_spec='$libname${shared_ext} $libname.a'
26057 dynamic_linker='OS/2 ld.exe'
26058 shlibpath_var=LIBPATH
26059 ;;
26060
26061osf3* | osf4* | osf5*)
26062 version_type=osf
26063 need_lib_prefix=no
26064 need_version=no
26065 soname_spec='${libname}${release}${shared_ext}$major'
26066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26067 shlibpath_var=LD_LIBRARY_PATH
26068 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26069 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26070 ;;
26071
John Criswell47fdd832003-07-14 16:52:07 +000026072solaris*)
26073 version_type=linux
26074 need_lib_prefix=no
26075 need_version=no
26076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26077 soname_spec='${libname}${release}${shared_ext}$major'
26078 shlibpath_var=LD_LIBRARY_PATH
26079 shlibpath_overrides_runpath=yes
26080 hardcode_into_libs=yes
26081 # ldd complains unless libraries are executable
26082 postinstall_cmds='chmod +x $lib'
26083 ;;
26084
26085sunos4*)
26086 version_type=sunos
26087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26088 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26089 shlibpath_var=LD_LIBRARY_PATH
26090 shlibpath_overrides_runpath=yes
26091 if test "$with_gnu_ld" = yes; then
26092 need_lib_prefix=no
26093 fi
26094 need_version=yes
26095 ;;
26096
Reid Spencera773bd52006-08-04 18:18:08 +000026097sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026098 version_type=linux
26099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26100 soname_spec='${libname}${release}${shared_ext}$major'
26101 shlibpath_var=LD_LIBRARY_PATH
26102 case $host_vendor in
26103 sni)
26104 shlibpath_overrides_runpath=no
26105 need_lib_prefix=no
26106 export_dynamic_flag_spec='${wl}-Blargedynsym'
26107 runpath_var=LD_RUN_PATH
26108 ;;
26109 siemens)
26110 need_lib_prefix=no
26111 ;;
26112 motorola)
26113 need_lib_prefix=no
26114 need_version=no
26115 shlibpath_overrides_runpath=no
26116 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26117 ;;
26118 esac
26119 ;;
26120
26121sysv4*MP*)
26122 if test -d /usr/nec ;then
26123 version_type=linux
26124 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26125 soname_spec='$libname${shared_ext}.$major'
26126 shlibpath_var=LD_LIBRARY_PATH
26127 fi
26128 ;;
26129
Reid Spencera773bd52006-08-04 18:18:08 +000026130sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26131 version_type=freebsd-elf
26132 need_lib_prefix=no
26133 need_version=no
26134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26135 soname_spec='${libname}${release}${shared_ext}$major'
26136 shlibpath_var=LD_LIBRARY_PATH
26137 hardcode_into_libs=yes
26138 if test "$with_gnu_ld" = yes; then
26139 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26140 shlibpath_overrides_runpath=no
26141 else
26142 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26143 shlibpath_overrides_runpath=yes
26144 case $host_os in
26145 sco3.2v5*)
26146 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26147 ;;
26148 esac
26149 fi
26150 sys_lib_dlsearch_path_spec='/usr/lib'
26151 ;;
26152
John Criswell47fdd832003-07-14 16:52:07 +000026153uts4*)
26154 version_type=linux
26155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26156 soname_spec='${libname}${release}${shared_ext}$major'
26157 shlibpath_var=LD_LIBRARY_PATH
26158 ;;
26159
26160*)
26161 dynamic_linker=no
26162 ;;
26163esac
Reid Spencera773bd52006-08-04 18:18:08 +000026164{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26165echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026166test "$dynamic_linker" = no && can_build_shared=no
26167
Reid Spencera773bd52006-08-04 18:18:08 +000026168variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26169if test "$GCC" = yes; then
26170 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26171fi
26172
26173{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26174echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026175hardcode_action_GCJ=
26176if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26177 test -n "$runpath_var_GCJ" || \
26178 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26179
26180 # We can hardcode non-existant directories.
26181 if test "$hardcode_direct_GCJ" != no &&
26182 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26183 # have to relink, otherwise we might link with an installed library
26184 # when we should be linking with a yet-to-be-installed one
26185 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26186 test "$hardcode_minus_L_GCJ" != no; then
26187 # Linking always hardcodes the temporary library directory.
26188 hardcode_action_GCJ=relink
26189 else
26190 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26191 hardcode_action_GCJ=immediate
26192 fi
26193else
26194 # We cannot hardcode anything, or else we can only hardcode existing
26195 # directories.
26196 hardcode_action_GCJ=unsupported
26197fi
Reid Spencera773bd52006-08-04 18:18:08 +000026198{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26199echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026200
26201if test "$hardcode_action_GCJ" = relink; then
26202 # Fast installation is not supported
26203 enable_fast_install=no
26204elif test "$shlibpath_overrides_runpath" = yes ||
26205 test "$enable_shared" = no; then
26206 # Fast installation is not necessary
26207 enable_fast_install=needless
26208fi
26209
John Criswell47fdd832003-07-14 16:52:07 +000026210
26211# The else clause should only fire when bootstrapping the
26212# libtool distribution, otherwise you forgot to ship ltmain.sh
26213# with your package, and you will get complaints that there are
26214# no rules to generate ltmain.sh.
26215if test -f "$ltmain"; then
26216 # See if we are running on zsh, and set the options which allow our commands through
26217 # without removal of \ escapes.
26218 if test -n "${ZSH_VERSION+set}" ; then
26219 setopt NO_GLOB_SUBST
26220 fi
26221 # Now quote all the things that may contain metacharacters while being
26222 # careful not to overquote the AC_SUBSTed values. We take copies of the
26223 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026224 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 +000026225 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026226 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26227 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26228 deplibs_check_method reload_flag reload_cmds need_locks \
26229 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26230 lt_cv_sys_global_symbol_to_c_name_address \
26231 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26232 old_postinstall_cmds old_postuninstall_cmds \
26233 compiler_GCJ \
26234 CC_GCJ \
26235 LD_GCJ \
26236 lt_prog_compiler_wl_GCJ \
26237 lt_prog_compiler_pic_GCJ \
26238 lt_prog_compiler_static_GCJ \
26239 lt_prog_compiler_no_builtin_flag_GCJ \
26240 export_dynamic_flag_spec_GCJ \
26241 thread_safe_flag_spec_GCJ \
26242 whole_archive_flag_spec_GCJ \
26243 enable_shared_with_static_runtimes_GCJ \
26244 old_archive_cmds_GCJ \
26245 old_archive_from_new_cmds_GCJ \
26246 predep_objects_GCJ \
26247 postdep_objects_GCJ \
26248 predeps_GCJ \
26249 postdeps_GCJ \
26250 compiler_lib_search_path_GCJ \
26251 archive_cmds_GCJ \
26252 archive_expsym_cmds_GCJ \
26253 postinstall_cmds_GCJ \
26254 postuninstall_cmds_GCJ \
26255 old_archive_from_expsyms_cmds_GCJ \
26256 allow_undefined_flag_GCJ \
26257 no_undefined_flag_GCJ \
26258 export_symbols_cmds_GCJ \
26259 hardcode_libdir_flag_spec_GCJ \
26260 hardcode_libdir_flag_spec_ld_GCJ \
26261 hardcode_libdir_separator_GCJ \
26262 hardcode_automatic_GCJ \
26263 module_cmds_GCJ \
26264 module_expsym_cmds_GCJ \
26265 lt_cv_prog_compiler_c_o_GCJ \
26266 exclude_expsyms_GCJ \
26267 include_expsyms_GCJ; do
26268
26269 case $var in
26270 old_archive_cmds_GCJ | \
26271 old_archive_from_new_cmds_GCJ | \
26272 archive_cmds_GCJ | \
26273 archive_expsym_cmds_GCJ | \
26274 module_cmds_GCJ | \
26275 module_expsym_cmds_GCJ | \
26276 old_archive_from_expsyms_cmds_GCJ | \
26277 export_symbols_cmds_GCJ | \
26278 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26279 postinstall_cmds | postuninstall_cmds | \
26280 old_postinstall_cmds | old_postuninstall_cmds | \
26281 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26282 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026283 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 +000026284 ;;
26285 *)
26286 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26287 ;;
26288 esac
26289 done
26290
26291 case $lt_echo in
26292 *'\$0 --fallback-echo"')
26293 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26294 ;;
26295 esac
26296
26297cfgfile="$ofile"
26298
26299 cat <<__EOF__ >> "$cfgfile"
26300# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26301
26302# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26303
26304# Shell to use when invoking shell scripts.
26305SHELL=$lt_SHELL
26306
26307# Whether or not to build shared libraries.
26308build_libtool_libs=$enable_shared
26309
26310# Whether or not to build static libraries.
26311build_old_libs=$enable_static
26312
26313# Whether or not to add -lc for building shared libraries.
26314build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26315
26316# Whether or not to disallow shared libs when runtime libs are static
26317allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26318
26319# Whether or not to optimize for fast installation.
26320fast_install=$enable_fast_install
26321
26322# The host system.
26323host_alias=$host_alias
26324host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026325host_os=$host_os
26326
26327# The build system.
26328build_alias=$build_alias
26329build=$build
26330build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026331
26332# An echo program that does not interpret backslashes.
26333echo=$lt_echo
26334
26335# The archiver.
26336AR=$lt_AR
26337AR_FLAGS=$lt_AR_FLAGS
26338
26339# A C compiler.
26340LTCC=$lt_LTCC
26341
Reid Spencera773bd52006-08-04 18:18:08 +000026342# LTCC compiler flags.
26343LTCFLAGS=$lt_LTCFLAGS
26344
John Criswell47fdd832003-07-14 16:52:07 +000026345# A language-specific compiler.
26346CC=$lt_compiler_GCJ
26347
26348# Is the compiler the GNU C compiler?
26349with_gcc=$GCC_GCJ
26350
26351# An ERE matcher.
26352EGREP=$lt_EGREP
26353
26354# The linker used to build libraries.
26355LD=$lt_LD_GCJ
26356
26357# Whether we need hard or soft links.
26358LN_S=$lt_LN_S
26359
26360# A BSD-compatible nm program.
26361NM=$lt_NM
26362
26363# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026364STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026365
26366# Used to examine libraries when file_magic_cmd begins "file"
26367MAGIC_CMD=$MAGIC_CMD
26368
26369# Used on cygwin: DLL creation program.
26370DLLTOOL="$DLLTOOL"
26371
26372# Used on cygwin: object dumper.
26373OBJDUMP="$OBJDUMP"
26374
26375# Used on cygwin: assembler.
26376AS="$AS"
26377
26378# The name of the directory that contains temporary libtool files.
26379objdir=$objdir
26380
26381# How to create reloadable object files.
26382reload_flag=$lt_reload_flag
26383reload_cmds=$lt_reload_cmds
26384
26385# How to pass a linker flag through the compiler.
26386wl=$lt_lt_prog_compiler_wl_GCJ
26387
26388# Object file suffix (normally "o").
26389objext="$ac_objext"
26390
26391# Old archive suffix (normally "a").
26392libext="$libext"
26393
26394# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026395shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026396
26397# Executable file suffix (normally "").
26398exeext="$exeext"
26399
26400# Additional compiler flags for building library objects.
26401pic_flag=$lt_lt_prog_compiler_pic_GCJ
26402pic_mode=$pic_mode
26403
26404# What is the maximum length of a command?
26405max_cmd_len=$lt_cv_sys_max_cmd_len
26406
26407# Does compiler simultaneously support -c and -o options?
26408compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26409
Reid Spencera773bd52006-08-04 18:18:08 +000026410# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026411need_locks=$lt_need_locks
26412
26413# Do we need the lib prefix for modules?
26414need_lib_prefix=$need_lib_prefix
26415
26416# Do we need a version for libraries?
26417need_version=$need_version
26418
26419# Whether dlopen is supported.
26420dlopen_support=$enable_dlopen
26421
26422# Whether dlopen of programs is supported.
26423dlopen_self=$enable_dlopen_self
26424
26425# Whether dlopen of statically linked programs is supported.
26426dlopen_self_static=$enable_dlopen_self_static
26427
26428# Compiler flag to prevent dynamic linking.
26429link_static_flag=$lt_lt_prog_compiler_static_GCJ
26430
26431# Compiler flag to turn off builtin functions.
26432no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26433
26434# Compiler flag to allow reflexive dlopens.
26435export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26436
26437# Compiler flag to generate shared objects directly from archives.
26438whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26439
26440# Compiler flag to generate thread-safe objects.
26441thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26442
26443# Library versioning type.
26444version_type=$version_type
26445
26446# Format of library name prefix.
26447libname_spec=$lt_libname_spec
26448
26449# List of archive names. First name is the real one, the rest are links.
26450# The last name is the one that the linker finds with -lNAME.
26451library_names_spec=$lt_library_names_spec
26452
26453# The coded name of the library, if different from the real name.
26454soname_spec=$lt_soname_spec
26455
26456# Commands used to build and install an old-style archive.
26457RANLIB=$lt_RANLIB
26458old_archive_cmds=$lt_old_archive_cmds_GCJ
26459old_postinstall_cmds=$lt_old_postinstall_cmds
26460old_postuninstall_cmds=$lt_old_postuninstall_cmds
26461
26462# Create an old-style archive from a shared archive.
26463old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26464
26465# Create a temporary old-style archive to link instead of a shared archive.
26466old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26467
26468# Commands used to build and install a shared archive.
26469archive_cmds=$lt_archive_cmds_GCJ
26470archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26471postinstall_cmds=$lt_postinstall_cmds
26472postuninstall_cmds=$lt_postuninstall_cmds
26473
26474# Commands used to build a loadable module (assumed same as above if empty)
26475module_cmds=$lt_module_cmds_GCJ
26476module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26477
26478# Commands to strip libraries.
26479old_striplib=$lt_old_striplib
26480striplib=$lt_striplib
26481
26482# Dependencies to place before the objects being linked to create a
26483# shared library.
26484predep_objects=$lt_predep_objects_GCJ
26485
26486# Dependencies to place after the objects being linked to create a
26487# shared library.
26488postdep_objects=$lt_postdep_objects_GCJ
26489
26490# Dependencies to place before the objects being linked to create a
26491# shared library.
26492predeps=$lt_predeps_GCJ
26493
26494# Dependencies to place after the objects being linked to create a
26495# shared library.
26496postdeps=$lt_postdeps_GCJ
26497
26498# The library search path used internally by the compiler when linking
26499# a shared library.
26500compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26501
26502# Method to check whether dependent libraries are shared objects.
26503deplibs_check_method=$lt_deplibs_check_method
26504
26505# Command to use when deplibs_check_method == file_magic.
26506file_magic_cmd=$lt_file_magic_cmd
26507
26508# Flag that allows shared libraries with undefined symbols to be built.
26509allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26510
26511# Flag that forces no undefined symbols.
26512no_undefined_flag=$lt_no_undefined_flag_GCJ
26513
26514# Commands used to finish a libtool library installation in a directory.
26515finish_cmds=$lt_finish_cmds
26516
26517# Same as above, but a single script fragment to be evaled but not shown.
26518finish_eval=$lt_finish_eval
26519
26520# Take the output of nm and produce a listing of raw symbols and C names.
26521global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26522
26523# Transform the output of nm in a proper C declaration
26524global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26525
26526# Transform the output of nm in a C name address pair
26527global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26528
26529# This is the shared library runtime path variable.
26530runpath_var=$runpath_var
26531
26532# This is the shared library path variable.
26533shlibpath_var=$shlibpath_var
26534
26535# Is shlibpath searched before the hard-coded library search path?
26536shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26537
26538# How to hardcode a shared library path into an executable.
26539hardcode_action=$hardcode_action_GCJ
26540
26541# Whether we should hardcode library paths into libraries.
26542hardcode_into_libs=$hardcode_into_libs
26543
26544# Flag to hardcode \$libdir into a binary during linking.
26545# This must work even if \$libdir does not exist.
26546hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26547
26548# If ld is used when linking, flag to hardcode \$libdir into
26549# a binary during linking. This must work even if \$libdir does
26550# not exist.
26551hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26552
26553# Whether we need a single -rpath flag with a separated argument.
26554hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26555
26556# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26557# resulting binary.
26558hardcode_direct=$hardcode_direct_GCJ
26559
26560# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26561# resulting binary.
26562hardcode_minus_L=$hardcode_minus_L_GCJ
26563
26564# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26565# the resulting binary.
26566hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26567
26568# Set to yes if building a shared library automatically hardcodes DIR into the library
26569# and all subsequent libraries and executables linked against it.
26570hardcode_automatic=$hardcode_automatic_GCJ
26571
26572# Variables whose values should be saved in libtool wrapper scripts and
26573# restored at relink time.
26574variables_saved_for_relink="$variables_saved_for_relink"
26575
26576# Whether libtool must link a program against all its dependency libraries.
26577link_all_deplibs=$link_all_deplibs_GCJ
26578
26579# Compile-time system search path for libraries
26580sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26581
26582# Run-time system search path for libraries
26583sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26584
26585# Fix the shell variable \$srcfile for the compiler.
26586fix_srcfile_path="$fix_srcfile_path_GCJ"
26587
26588# Set to yes if exported symbols are required.
26589always_export_symbols=$always_export_symbols_GCJ
26590
26591# The commands to list exported symbols.
26592export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26593
26594# The commands to extract the exported symbol list from a shared archive.
26595extract_expsyms_cmds=$lt_extract_expsyms_cmds
26596
26597# Symbols that should not be listed in the preloaded symbols.
26598exclude_expsyms=$lt_exclude_expsyms_GCJ
26599
26600# Symbols that must always be exported.
26601include_expsyms=$lt_include_expsyms_GCJ
26602
26603# ### END LIBTOOL TAG CONFIG: $tagname
26604
26605__EOF__
26606
26607
26608else
26609 # If there is no Makefile yet, we rely on a make rule to execute
26610 # `config.status --recheck' to rerun these tests and create the
26611 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026612 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26613 if test -f "$ltmain_in"; then
26614 test -f Makefile && make "$ltmain"
26615 fi
John Criswell47fdd832003-07-14 16:52:07 +000026616fi
26617
26618
26619ac_ext=c
26620ac_cpp='$CPP $CPPFLAGS'
26621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26623ac_compiler_gnu=$ac_cv_c_compiler_gnu
26624
26625CC="$lt_save_CC"
26626
26627 else
26628 tagname=""
26629 fi
26630 ;;
26631
26632 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026633 ac_ext=c
26634ac_cpp='$CPP $CPPFLAGS'
26635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26637ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026638
26639
26640# Source file extension for RC test sources.
26641ac_ext=rc
26642
26643# Object file extension for compiled RC test sources.
26644objext=o
26645objext_RC=$objext
26646
26647# Code to be used in simple compile tests
26648lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26649
26650# Code to be used in simple link tests
26651lt_simple_link_test_code="$lt_simple_compile_test_code"
26652
26653# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26654
26655# If no C compiler was specified, use CC.
26656LTCC=${LTCC-"$CC"}
26657
Reid Spencera773bd52006-08-04 18:18:08 +000026658# If no C compiler flags were specified, use CFLAGS.
26659LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26660
John Criswell47fdd832003-07-14 16:52:07 +000026661# Allow CC to be a program name with arguments.
26662compiler=$CC
26663
26664
Reid Spencera773bd52006-08-04 18:18:08 +000026665# save warnings/boilerplate of simple test code
26666ac_outfile=conftest.$ac_objext
26667printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26668eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26669_lt_compiler_boilerplate=`cat conftest.err`
26670$rm conftest*
26671
26672ac_outfile=conftest.$ac_objext
26673printf "$lt_simple_link_test_code" >conftest.$ac_ext
26674eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26675_lt_linker_boilerplate=`cat conftest.err`
26676$rm conftest*
26677
26678
John Criswell47fdd832003-07-14 16:52:07 +000026679# Allow CC to be a program name with arguments.
26680lt_save_CC="$CC"
26681CC=${RC-"windres"}
26682compiler=$CC
26683compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026684for cc_temp in $compiler""; do
26685 case $cc_temp in
26686 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26687 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26688 \-*) ;;
26689 *) break;;
26690 esac
26691done
26692cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26693
John Criswell47fdd832003-07-14 16:52:07 +000026694lt_cv_prog_compiler_c_o_RC=yes
26695
26696# The else clause should only fire when bootstrapping the
26697# libtool distribution, otherwise you forgot to ship ltmain.sh
26698# with your package, and you will get complaints that there are
26699# no rules to generate ltmain.sh.
26700if test -f "$ltmain"; then
26701 # See if we are running on zsh, and set the options which allow our commands through
26702 # without removal of \ escapes.
26703 if test -n "${ZSH_VERSION+set}" ; then
26704 setopt NO_GLOB_SUBST
26705 fi
26706 # Now quote all the things that may contain metacharacters while being
26707 # careful not to overquote the AC_SUBSTed values. We take copies of the
26708 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026709 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 +000026710 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026711 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26712 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26713 deplibs_check_method reload_flag reload_cmds need_locks \
26714 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26715 lt_cv_sys_global_symbol_to_c_name_address \
26716 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26717 old_postinstall_cmds old_postuninstall_cmds \
26718 compiler_RC \
26719 CC_RC \
26720 LD_RC \
26721 lt_prog_compiler_wl_RC \
26722 lt_prog_compiler_pic_RC \
26723 lt_prog_compiler_static_RC \
26724 lt_prog_compiler_no_builtin_flag_RC \
26725 export_dynamic_flag_spec_RC \
26726 thread_safe_flag_spec_RC \
26727 whole_archive_flag_spec_RC \
26728 enable_shared_with_static_runtimes_RC \
26729 old_archive_cmds_RC \
26730 old_archive_from_new_cmds_RC \
26731 predep_objects_RC \
26732 postdep_objects_RC \
26733 predeps_RC \
26734 postdeps_RC \
26735 compiler_lib_search_path_RC \
26736 archive_cmds_RC \
26737 archive_expsym_cmds_RC \
26738 postinstall_cmds_RC \
26739 postuninstall_cmds_RC \
26740 old_archive_from_expsyms_cmds_RC \
26741 allow_undefined_flag_RC \
26742 no_undefined_flag_RC \
26743 export_symbols_cmds_RC \
26744 hardcode_libdir_flag_spec_RC \
26745 hardcode_libdir_flag_spec_ld_RC \
26746 hardcode_libdir_separator_RC \
26747 hardcode_automatic_RC \
26748 module_cmds_RC \
26749 module_expsym_cmds_RC \
26750 lt_cv_prog_compiler_c_o_RC \
26751 exclude_expsyms_RC \
26752 include_expsyms_RC; do
26753
26754 case $var in
26755 old_archive_cmds_RC | \
26756 old_archive_from_new_cmds_RC | \
26757 archive_cmds_RC | \
26758 archive_expsym_cmds_RC | \
26759 module_cmds_RC | \
26760 module_expsym_cmds_RC | \
26761 old_archive_from_expsyms_cmds_RC | \
26762 export_symbols_cmds_RC | \
26763 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26764 postinstall_cmds | postuninstall_cmds | \
26765 old_postinstall_cmds | old_postuninstall_cmds | \
26766 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26767 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026768 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 +000026769 ;;
26770 *)
26771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26772 ;;
26773 esac
26774 done
26775
26776 case $lt_echo in
26777 *'\$0 --fallback-echo"')
26778 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26779 ;;
26780 esac
26781
26782cfgfile="$ofile"
26783
26784 cat <<__EOF__ >> "$cfgfile"
26785# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26786
26787# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26788
26789# Shell to use when invoking shell scripts.
26790SHELL=$lt_SHELL
26791
26792# Whether or not to build shared libraries.
26793build_libtool_libs=$enable_shared
26794
26795# Whether or not to build static libraries.
26796build_old_libs=$enable_static
26797
26798# Whether or not to add -lc for building shared libraries.
26799build_libtool_need_lc=$archive_cmds_need_lc_RC
26800
26801# Whether or not to disallow shared libs when runtime libs are static
26802allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26803
26804# Whether or not to optimize for fast installation.
26805fast_install=$enable_fast_install
26806
26807# The host system.
26808host_alias=$host_alias
26809host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026810host_os=$host_os
26811
26812# The build system.
26813build_alias=$build_alias
26814build=$build
26815build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026816
26817# An echo program that does not interpret backslashes.
26818echo=$lt_echo
26819
26820# The archiver.
26821AR=$lt_AR
26822AR_FLAGS=$lt_AR_FLAGS
26823
26824# A C compiler.
26825LTCC=$lt_LTCC
26826
Reid Spencera773bd52006-08-04 18:18:08 +000026827# LTCC compiler flags.
26828LTCFLAGS=$lt_LTCFLAGS
26829
John Criswell47fdd832003-07-14 16:52:07 +000026830# A language-specific compiler.
26831CC=$lt_compiler_RC
26832
26833# Is the compiler the GNU C compiler?
26834with_gcc=$GCC_RC
26835
26836# An ERE matcher.
26837EGREP=$lt_EGREP
26838
26839# The linker used to build libraries.
26840LD=$lt_LD_RC
26841
26842# Whether we need hard or soft links.
26843LN_S=$lt_LN_S
26844
26845# A BSD-compatible nm program.
26846NM=$lt_NM
26847
26848# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026849STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026850
26851# Used to examine libraries when file_magic_cmd begins "file"
26852MAGIC_CMD=$MAGIC_CMD
26853
26854# Used on cygwin: DLL creation program.
26855DLLTOOL="$DLLTOOL"
26856
26857# Used on cygwin: object dumper.
26858OBJDUMP="$OBJDUMP"
26859
26860# Used on cygwin: assembler.
26861AS="$AS"
26862
26863# The name of the directory that contains temporary libtool files.
26864objdir=$objdir
26865
26866# How to create reloadable object files.
26867reload_flag=$lt_reload_flag
26868reload_cmds=$lt_reload_cmds
26869
26870# How to pass a linker flag through the compiler.
26871wl=$lt_lt_prog_compiler_wl_RC
26872
26873# Object file suffix (normally "o").
26874objext="$ac_objext"
26875
26876# Old archive suffix (normally "a").
26877libext="$libext"
26878
26879# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026880shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026881
26882# Executable file suffix (normally "").
26883exeext="$exeext"
26884
26885# Additional compiler flags for building library objects.
26886pic_flag=$lt_lt_prog_compiler_pic_RC
26887pic_mode=$pic_mode
26888
26889# What is the maximum length of a command?
26890max_cmd_len=$lt_cv_sys_max_cmd_len
26891
26892# Does compiler simultaneously support -c and -o options?
26893compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26894
Reid Spencera773bd52006-08-04 18:18:08 +000026895# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026896need_locks=$lt_need_locks
26897
26898# Do we need the lib prefix for modules?
26899need_lib_prefix=$need_lib_prefix
26900
26901# Do we need a version for libraries?
26902need_version=$need_version
26903
26904# Whether dlopen is supported.
26905dlopen_support=$enable_dlopen
26906
26907# Whether dlopen of programs is supported.
26908dlopen_self=$enable_dlopen_self
26909
26910# Whether dlopen of statically linked programs is supported.
26911dlopen_self_static=$enable_dlopen_self_static
26912
26913# Compiler flag to prevent dynamic linking.
26914link_static_flag=$lt_lt_prog_compiler_static_RC
26915
26916# Compiler flag to turn off builtin functions.
26917no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26918
26919# Compiler flag to allow reflexive dlopens.
26920export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26921
26922# Compiler flag to generate shared objects directly from archives.
26923whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26924
26925# Compiler flag to generate thread-safe objects.
26926thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26927
26928# Library versioning type.
26929version_type=$version_type
26930
26931# Format of library name prefix.
26932libname_spec=$lt_libname_spec
26933
26934# List of archive names. First name is the real one, the rest are links.
26935# The last name is the one that the linker finds with -lNAME.
26936library_names_spec=$lt_library_names_spec
26937
26938# The coded name of the library, if different from the real name.
26939soname_spec=$lt_soname_spec
26940
26941# Commands used to build and install an old-style archive.
26942RANLIB=$lt_RANLIB
26943old_archive_cmds=$lt_old_archive_cmds_RC
26944old_postinstall_cmds=$lt_old_postinstall_cmds
26945old_postuninstall_cmds=$lt_old_postuninstall_cmds
26946
26947# Create an old-style archive from a shared archive.
26948old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26949
26950# Create a temporary old-style archive to link instead of a shared archive.
26951old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26952
26953# Commands used to build and install a shared archive.
26954archive_cmds=$lt_archive_cmds_RC
26955archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26956postinstall_cmds=$lt_postinstall_cmds
26957postuninstall_cmds=$lt_postuninstall_cmds
26958
26959# Commands used to build a loadable module (assumed same as above if empty)
26960module_cmds=$lt_module_cmds_RC
26961module_expsym_cmds=$lt_module_expsym_cmds_RC
26962
26963# Commands to strip libraries.
26964old_striplib=$lt_old_striplib
26965striplib=$lt_striplib
26966
26967# Dependencies to place before the objects being linked to create a
26968# shared library.
26969predep_objects=$lt_predep_objects_RC
26970
26971# Dependencies to place after the objects being linked to create a
26972# shared library.
26973postdep_objects=$lt_postdep_objects_RC
26974
26975# Dependencies to place before the objects being linked to create a
26976# shared library.
26977predeps=$lt_predeps_RC
26978
26979# Dependencies to place after the objects being linked to create a
26980# shared library.
26981postdeps=$lt_postdeps_RC
26982
26983# The library search path used internally by the compiler when linking
26984# a shared library.
26985compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26986
26987# Method to check whether dependent libraries are shared objects.
26988deplibs_check_method=$lt_deplibs_check_method
26989
26990# Command to use when deplibs_check_method == file_magic.
26991file_magic_cmd=$lt_file_magic_cmd
26992
26993# Flag that allows shared libraries with undefined symbols to be built.
26994allow_undefined_flag=$lt_allow_undefined_flag_RC
26995
26996# Flag that forces no undefined symbols.
26997no_undefined_flag=$lt_no_undefined_flag_RC
26998
26999# Commands used to finish a libtool library installation in a directory.
27000finish_cmds=$lt_finish_cmds
27001
27002# Same as above, but a single script fragment to be evaled but not shown.
27003finish_eval=$lt_finish_eval
27004
27005# Take the output of nm and produce a listing of raw symbols and C names.
27006global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27007
27008# Transform the output of nm in a proper C declaration
27009global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27010
27011# Transform the output of nm in a C name address pair
27012global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27013
27014# This is the shared library runtime path variable.
27015runpath_var=$runpath_var
27016
27017# This is the shared library path variable.
27018shlibpath_var=$shlibpath_var
27019
27020# Is shlibpath searched before the hard-coded library search path?
27021shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27022
27023# How to hardcode a shared library path into an executable.
27024hardcode_action=$hardcode_action_RC
27025
27026# Whether we should hardcode library paths into libraries.
27027hardcode_into_libs=$hardcode_into_libs
27028
27029# Flag to hardcode \$libdir into a binary during linking.
27030# This must work even if \$libdir does not exist.
27031hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27032
27033# If ld is used when linking, flag to hardcode \$libdir into
27034# a binary during linking. This must work even if \$libdir does
27035# not exist.
27036hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27037
27038# Whether we need a single -rpath flag with a separated argument.
27039hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27040
27041# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27042# resulting binary.
27043hardcode_direct=$hardcode_direct_RC
27044
27045# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27046# resulting binary.
27047hardcode_minus_L=$hardcode_minus_L_RC
27048
27049# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27050# the resulting binary.
27051hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27052
27053# Set to yes if building a shared library automatically hardcodes DIR into the library
27054# and all subsequent libraries and executables linked against it.
27055hardcode_automatic=$hardcode_automatic_RC
27056
27057# Variables whose values should be saved in libtool wrapper scripts and
27058# restored at relink time.
27059variables_saved_for_relink="$variables_saved_for_relink"
27060
27061# Whether libtool must link a program against all its dependency libraries.
27062link_all_deplibs=$link_all_deplibs_RC
27063
27064# Compile-time system search path for libraries
27065sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27066
27067# Run-time system search path for libraries
27068sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27069
27070# Fix the shell variable \$srcfile for the compiler.
27071fix_srcfile_path="$fix_srcfile_path_RC"
27072
27073# Set to yes if exported symbols are required.
27074always_export_symbols=$always_export_symbols_RC
27075
27076# The commands to list exported symbols.
27077export_symbols_cmds=$lt_export_symbols_cmds_RC
27078
27079# The commands to extract the exported symbol list from a shared archive.
27080extract_expsyms_cmds=$lt_extract_expsyms_cmds
27081
27082# Symbols that should not be listed in the preloaded symbols.
27083exclude_expsyms=$lt_exclude_expsyms_RC
27084
27085# Symbols that must always be exported.
27086include_expsyms=$lt_include_expsyms_RC
27087
27088# ### END LIBTOOL TAG CONFIG: $tagname
27089
27090__EOF__
27091
27092
27093else
27094 # If there is no Makefile yet, we rely on a make rule to execute
27095 # `config.status --recheck' to rerun these tests and create the
27096 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027097 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27098 if test -f "$ltmain_in"; then
27099 test -f Makefile && make "$ltmain"
27100 fi
John Criswell47fdd832003-07-14 16:52:07 +000027101fi
27102
27103
27104ac_ext=c
27105ac_cpp='$CPP $CPPFLAGS'
27106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27108ac_compiler_gnu=$ac_cv_c_compiler_gnu
27109
27110CC="$lt_save_CC"
27111
27112 ;;
27113
27114 *)
27115 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27116echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27117 { (exit 1); exit 1; }; }
27118 ;;
27119 esac
27120
27121 # Append the new tag name to the list of available tags.
27122 if test -n "$tagname" ; then
27123 available_tags="$available_tags $tagname"
27124 fi
27125 fi
27126 done
27127 IFS="$lt_save_ifs"
27128
27129 # Now substitute the updated list of available tags.
27130 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27131 mv "${ofile}T" "$ofile"
27132 chmod +x "$ofile"
27133 else
27134 rm -f "${ofile}T"
27135 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27136echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27137 { (exit 1); exit 1; }; }
27138 fi
27139fi
John Criswell7a73b802003-06-30 21:59:07 +000027140
27141
27142
27143# This can be used to rebuild libtool when needed
27144LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27145
27146# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027147LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027148
27149# Prevent multiple expansion
27150
27151
27152
John Criswell47fdd832003-07-14 16:52:07 +000027153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027170
Reid Spencer582a23c2004-12-29 07:07:57 +000027171if test "$lt_cv_dlopen_self" = "yes" ; then
27172
27173cat >>confdefs.h <<\_ACEOF
27174#define CAN_DLOPEN_SELF 1
27175_ACEOF
27176
27177fi
27178
Douglas Gregor01746742009-05-11 18:05:52 +000027179
Reid Spencer7931a782004-12-27 06:15:02 +000027180if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027181 LLVMGCC="llvm-gcc${EXEEXT}"
27182 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027183 LLVMGCCCOMMAND="$LLVMGCC"
27184 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027185 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27186
27187 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27188
Reid Spencerc84492c2005-06-02 22:34:49 +000027189 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27190set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027193if test "${ac_cv_path_LLVMGCC+set}" = set; then
27194 echo $ECHO_N "(cached) $ECHO_C" >&6
27195else
27196 case $LLVMGCC in
27197 [\\/]* | ?:[\\/]*)
27198 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27199 ;;
27200 *)
27201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27202for as_dir in $PATH
27203do
27204 IFS=$as_save_IFS
27205 test -z "$as_dir" && as_dir=.
27206 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027207 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 +000027208 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27210 break 2
27211 fi
27212done
27213done
Reid Spencera773bd52006-08-04 18:18:08 +000027214IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027215
Reid Spencer59473af2004-12-25 07:31:29 +000027216 ;;
27217esac
27218fi
27219LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027220if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027221 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27222echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027223else
Reid Spencera773bd52006-08-04 18:18:08 +000027224 { echo "$as_me:$LINENO: result: no" >&5
27225echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027226fi
27227
Reid Spencera773bd52006-08-04 18:18:08 +000027228
Reid Spencerc84492c2005-06-02 22:34:49 +000027229 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27230set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027231{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027233if test "${ac_cv_path_LLVMGXX+set}" = set; then
27234 echo $ECHO_N "(cached) $ECHO_C" >&6
27235else
27236 case $LLVMGXX in
27237 [\\/]* | ?:[\\/]*)
27238 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27239 ;;
27240 *)
27241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27242for as_dir in $PATH
27243do
27244 IFS=$as_save_IFS
27245 test -z "$as_dir" && as_dir=.
27246 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027247 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 +000027248 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27250 break 2
27251 fi
27252done
27253done
Reid Spencera773bd52006-08-04 18:18:08 +000027254IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027255
Reid Spencer59473af2004-12-25 07:31:29 +000027256 ;;
27257esac
27258fi
27259LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027260if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027261 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27262echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027263else
Reid Spencera773bd52006-08-04 18:18:08 +000027264 { echo "$as_me:$LINENO: result: no" >&5
27265echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027266fi
27267
Reid Spencera773bd52006-08-04 18:18:08 +000027268
Reid Spencer59473af2004-12-25 07:31:29 +000027269else
Devang Patel5d28b882007-12-04 22:54:47 +000027270 if test -z "$LLVMGCC"; then
27271 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027272 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000027273 fi
27274 if test -z "$LLVMGXX"; then
27275 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027276 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000027277 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027278
Reid Spencer59473af2004-12-25 07:31:29 +000027279 LLVMGCC=$LLVMGCC
27280
27281 LLVMGXX=$LLVMGXX
27282
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027283 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27284
27285 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27286
Reid Spencer59473af2004-12-25 07:31:29 +000027287fi
27288
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027289
Reid Spencera773bd52006-08-04 18:18:08 +000027290{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27291echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027292
Reid Spencer86901802004-12-08 23:07:27 +000027293ICC=no
27294IXX=no
27295case $CC in
27296 icc*|icpc*)
27297 ICC=yes
27298 IXX=yes
27299 ;;
27300 *)
27301 ;;
27302esac
27303
Duraid Madina937c60a2006-02-15 07:57:42 +000027304if test "$GCC" != "yes" && test "$ICC" != "yes"
27305then
27306 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27307echo "$as_me: error: gcc|icc required but not found" >&2;}
27308 { (exit 1); exit 1; }; }
27309fi
27310
27311if test "$GXX" != "yes" && test "$IXX" != "yes"
27312then
27313 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27314echo "$as_me: error: g++|icc required but not found" >&2;}
27315 { (exit 1); exit 1; }; }
27316fi
27317
Reid Spencer86901802004-12-08 23:07:27 +000027318if test "$GCC" = "yes"
27319then
Chris Lattner399c7c72008-02-05 19:43:53 +000027320 cat >conftest.$ac_ext <<_ACEOF
27321#if !defined(__GNUC__) || __GNUC__ < 3
27322#error Unsupported GCC version
27323#endif
27324
27325_ACEOF
27326rm -f conftest.$ac_objext
27327if { (ac_try="$ac_compile"
27328case "(($ac_try" in
27329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27330 *) ac_try_echo=$ac_try;;
27331esac
27332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27333 (eval "$ac_compile") 2>conftest.er1
27334 ac_status=$?
27335 grep -v '^ *+' conftest.er1 >conftest.err
27336 rm -f conftest.er1
27337 cat conftest.err >&5
27338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027339 (exit $ac_status); } &&
27340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27341 { (case "(($ac_try" in
27342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27343 *) ac_try_echo=$ac_try;;
27344esac
27345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27346 (eval "$ac_try") 2>&5
27347 ac_status=$?
27348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349 (exit $ac_status); }; } &&
27350 { ac_try='test -s conftest.$ac_objext'
27351 { (case "(($ac_try" in
27352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27353 *) ac_try_echo=$ac_try;;
27354esac
27355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27356 (eval "$ac_try") 2>&5
27357 ac_status=$?
27358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027360 :
27361else
27362 echo "$as_me: failed program was:" >&5
27363sed 's/^/| /' conftest.$ac_ext >&5
27364
27365 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027366echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27367 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027368fi
27369
27370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027371fi
27372
27373if test -z "$llvm_cv_gnu_make_command"
27374then
27375 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27376echo "$as_me: error: GNU Make required but not found" >&2;}
27377 { (exit 1); exit 1; }; }
27378fi
27379
Reid Spencera773bd52006-08-04 18:18:08 +000027380{ echo "$as_me:$LINENO: result: ok" >&5
27381echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027382
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000027383
27384
Reid Spencera773bd52006-08-04 18:18:08 +000027385{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27386echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027387if test "${ac_cv_lib_m_sin+set}" = set; then
27388 echo $ECHO_N "(cached) $ECHO_C" >&6
27389else
27390 ac_check_lib_save_LIBS=$LIBS
27391LIBS="-lm $LIBS"
27392cat >conftest.$ac_ext <<_ACEOF
27393/* confdefs.h. */
27394_ACEOF
27395cat confdefs.h >>conftest.$ac_ext
27396cat >>conftest.$ac_ext <<_ACEOF
27397/* end confdefs.h. */
27398
Reid Spencera773bd52006-08-04 18:18:08 +000027399/* Override any GCC internal prototype to avoid an error.
27400 Use char because int might match the return type of a GCC
27401 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027402#ifdef __cplusplus
27403extern "C"
27404#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027405char sin ();
27406int
27407main ()
27408{
Reid Spencera773bd52006-08-04 18:18:08 +000027409return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027410 ;
27411 return 0;
27412}
27413_ACEOF
27414rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027415if { (ac_try="$ac_link"
27416case "(($ac_try" in
27417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27418 *) ac_try_echo=$ac_try;;
27419esac
27420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27421 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027422 ac_status=$?
27423 grep -v '^ *+' conftest.er1 >conftest.err
27424 rm -f conftest.er1
27425 cat conftest.err >&5
27426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027427 (exit $ac_status); } &&
27428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27429 { (case "(($ac_try" in
27430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27431 *) ac_try_echo=$ac_try;;
27432esac
27433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27434 (eval "$ac_try") 2>&5
27435 ac_status=$?
27436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437 (exit $ac_status); }; } &&
27438 { ac_try='test -s conftest$ac_exeext'
27439 { (case "(($ac_try" in
27440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27441 *) ac_try_echo=$ac_try;;
27442esac
27443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27444 (eval "$ac_try") 2>&5
27445 ac_status=$?
27446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027448 ac_cv_lib_m_sin=yes
27449else
27450 echo "$as_me: failed program was:" >&5
27451sed 's/^/| /' conftest.$ac_ext >&5
27452
Reid Spencera773bd52006-08-04 18:18:08 +000027453 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027454fi
Reid Spencera773bd52006-08-04 18:18:08 +000027455
Bill Wendlingebcceee2009-04-18 11:20:33 +000027456rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027457 conftest$ac_exeext conftest.$ac_ext
27458LIBS=$ac_check_lib_save_LIBS
27459fi
Reid Spencera773bd52006-08-04 18:18:08 +000027460{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27461echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027462if test $ac_cv_lib_m_sin = yes; then
27463 cat >>confdefs.h <<_ACEOF
27464#define HAVE_LIBM 1
27465_ACEOF
27466
27467 LIBS="-lm $LIBS"
27468
27469fi
27470
Jeff Cohen28783c32007-01-12 18:22:38 +000027471if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027472
Reid Spencera773bd52006-08-04 18:18:08 +000027473{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27474echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027475if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027476 echo $ECHO_N "(cached) $ECHO_C" >&6
27477else
27478 ac_check_lib_save_LIBS=$LIBS
27479LIBS="-limagehlp $LIBS"
27480cat >conftest.$ac_ext <<_ACEOF
27481/* confdefs.h. */
27482_ACEOF
27483cat confdefs.h >>conftest.$ac_ext
27484cat >>conftest.$ac_ext <<_ACEOF
27485/* end confdefs.h. */
27486
Reid Spencer48fdf912006-06-01 19:03:21 +000027487
Reid Spencer484fc8e2006-06-01 16:55:59 +000027488int
27489main ()
27490{
Reid Spencera773bd52006-08-04 18:18:08 +000027491return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027492 ;
27493 return 0;
27494}
27495_ACEOF
27496rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027497if { (ac_try="$ac_link"
27498case "(($ac_try" in
27499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27500 *) ac_try_echo=$ac_try;;
27501esac
27502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27503 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027504 ac_status=$?
27505 grep -v '^ *+' conftest.er1 >conftest.err
27506 rm -f conftest.er1
27507 cat conftest.err >&5
27508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027509 (exit $ac_status); } &&
27510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27511 { (case "(($ac_try" in
27512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27513 *) ac_try_echo=$ac_try;;
27514esac
27515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27516 (eval "$ac_try") 2>&5
27517 ac_status=$?
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); }; } &&
27520 { ac_try='test -s conftest$ac_exeext'
27521 { (case "(($ac_try" in
27522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27523 *) ac_try_echo=$ac_try;;
27524esac
27525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27526 (eval "$ac_try") 2>&5
27527 ac_status=$?
27528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027530 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027531else
27532 echo "$as_me: failed program was:" >&5
27533sed 's/^/| /' conftest.$ac_ext >&5
27534
Reid Spencera773bd52006-08-04 18:18:08 +000027535 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027536fi
Reid Spencera773bd52006-08-04 18:18:08 +000027537
Bill Wendlingebcceee2009-04-18 11:20:33 +000027538rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027539 conftest$ac_exeext conftest.$ac_ext
27540LIBS=$ac_check_lib_save_LIBS
27541fi
Reid Spencera773bd52006-08-04 18:18:08 +000027542{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27543echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027544if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027545 cat >>confdefs.h <<_ACEOF
27546#define HAVE_LIBIMAGEHLP 1
27547_ACEOF
27548
27549 LIBS="-limagehlp $LIBS"
27550
27551fi
27552
27553
Reid Spencera773bd52006-08-04 18:18:08 +000027554{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27555echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027556if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027557 echo $ECHO_N "(cached) $ECHO_C" >&6
27558else
27559 ac_check_lib_save_LIBS=$LIBS
27560LIBS="-lpsapi $LIBS"
27561cat >conftest.$ac_ext <<_ACEOF
27562/* confdefs.h. */
27563_ACEOF
27564cat confdefs.h >>conftest.$ac_ext
27565cat >>conftest.$ac_ext <<_ACEOF
27566/* end confdefs.h. */
27567
Reid Spencer48fdf912006-06-01 19:03:21 +000027568
Reid Spencer484fc8e2006-06-01 16:55:59 +000027569int
27570main ()
27571{
Reid Spencera773bd52006-08-04 18:18:08 +000027572return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027573 ;
27574 return 0;
27575}
27576_ACEOF
27577rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027578if { (ac_try="$ac_link"
27579case "(($ac_try" in
27580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27581 *) ac_try_echo=$ac_try;;
27582esac
27583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27584 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027585 ac_status=$?
27586 grep -v '^ *+' conftest.er1 >conftest.err
27587 rm -f conftest.er1
27588 cat conftest.err >&5
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027590 (exit $ac_status); } &&
27591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27592 { (case "(($ac_try" in
27593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27594 *) ac_try_echo=$ac_try;;
27595esac
27596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27597 (eval "$ac_try") 2>&5
27598 ac_status=$?
27599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600 (exit $ac_status); }; } &&
27601 { ac_try='test -s conftest$ac_exeext'
27602 { (case "(($ac_try" in
27603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27604 *) ac_try_echo=$ac_try;;
27605esac
27606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27607 (eval "$ac_try") 2>&5
27608 ac_status=$?
27609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027611 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027612else
27613 echo "$as_me: failed program was:" >&5
27614sed 's/^/| /' conftest.$ac_ext >&5
27615
Reid Spencera773bd52006-08-04 18:18:08 +000027616 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027617fi
Reid Spencera773bd52006-08-04 18:18:08 +000027618
Bill Wendlingebcceee2009-04-18 11:20:33 +000027619rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027620 conftest$ac_exeext conftest.$ac_ext
27621LIBS=$ac_check_lib_save_LIBS
27622fi
Reid Spencera773bd52006-08-04 18:18:08 +000027623{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27624echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027625if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027626 cat >>confdefs.h <<_ACEOF
27627#define HAVE_LIBPSAPI 1
27628_ACEOF
27629
27630 LIBS="-lpsapi $LIBS"
27631
27632fi
27633
27634fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027635
Reid Spencera773bd52006-08-04 18:18:08 +000027636{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27637echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027638if test "${ac_cv_search_dlopen+set}" = set; then
27639 echo $ECHO_N "(cached) $ECHO_C" >&6
27640else
27641 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027642cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027643/* confdefs.h. */
27644_ACEOF
27645cat confdefs.h >>conftest.$ac_ext
27646cat >>conftest.$ac_ext <<_ACEOF
27647/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027648
Reid Spencera773bd52006-08-04 18:18:08 +000027649/* Override any GCC internal prototype to avoid an error.
27650 Use char because int might match the return type of a GCC
27651 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027652#ifdef __cplusplus
27653extern "C"
27654#endif
John Criswell7a73b802003-06-30 21:59:07 +000027655char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027656int
27657main ()
27658{
Reid Spencera773bd52006-08-04 18:18:08 +000027659return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027660 ;
27661 return 0;
27662}
27663_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027664for ac_lib in '' dl; do
27665 if test -z "$ac_lib"; then
27666 ac_res="none required"
27667 else
27668 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027670 fi
27671 rm -f conftest.$ac_objext conftest$ac_exeext
27672if { (ac_try="$ac_link"
27673case "(($ac_try" in
27674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27675 *) ac_try_echo=$ac_try;;
27676esac
27677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27678 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027679 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027680 grep -v '^ *+' conftest.er1 >conftest.err
27681 rm -f conftest.er1
27682 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027684 (exit $ac_status); } &&
27685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27686 { (case "(($ac_try" in
27687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27688 *) ac_try_echo=$ac_try;;
27689esac
27690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27691 (eval "$ac_try") 2>&5
27692 ac_status=$?
27693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694 (exit $ac_status); }; } &&
27695 { ac_try='test -s conftest$ac_exeext'
27696 { (case "(($ac_try" in
27697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27698 *) ac_try_echo=$ac_try;;
27699esac
27700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27701 (eval "$ac_try") 2>&5
27702 ac_status=$?
27703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027705 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027706else
27707 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027708sed 's/^/| /' conftest.$ac_ext >&5
27709
Reid Spencera773bd52006-08-04 18:18:08 +000027710
John Criswell7a73b802003-06-30 21:59:07 +000027711fi
Reid Spencera773bd52006-08-04 18:18:08 +000027712
Bill Wendlingebcceee2009-04-18 11:20:33 +000027713rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027714 conftest$ac_exeext
27715 if test "${ac_cv_search_dlopen+set}" = set; then
27716 break
John Criswell7a73b802003-06-30 21:59:07 +000027717fi
Reid Spencera773bd52006-08-04 18:18:08 +000027718done
27719if test "${ac_cv_search_dlopen+set}" = set; then
27720 :
27721else
27722 ac_cv_search_dlopen=no
27723fi
27724rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027725LIBS=$ac_func_search_save_LIBS
27726fi
Reid Spencera773bd52006-08-04 18:18:08 +000027727{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27728echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27729ac_res=$ac_cv_search_dlopen
27730if test "$ac_res" != no; then
27731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027732
27733cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027734#define HAVE_DLOPEN 1
27735_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027736
27737else
Brian Gaekec45be042003-10-07 06:01:34 +000027738 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27739echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027740fi
27741
27742
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027743if test "$llvm_cv_enable_libffi" = "yes" ; then
27744 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027745echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27746if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027747 echo $ECHO_N "(cached) $ECHO_C" >&6
27748else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027749 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027750cat >conftest.$ac_ext <<_ACEOF
27751/* confdefs.h. */
27752_ACEOF
27753cat confdefs.h >>conftest.$ac_ext
27754cat >>conftest.$ac_ext <<_ACEOF
27755/* end confdefs.h. */
27756
27757/* Override any GCC internal prototype to avoid an error.
27758 Use char because int might match the return type of a GCC
27759 builtin and then its argument prototype would still apply. */
27760#ifdef __cplusplus
27761extern "C"
27762#endif
27763char ffi_call ();
27764int
27765main ()
27766{
27767return ffi_call ();
27768 ;
27769 return 0;
27770}
27771_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027772for ac_lib in '' ffi; do
27773 if test -z "$ac_lib"; then
27774 ac_res="none required"
27775 else
27776 ac_res=-l$ac_lib
27777 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27778 fi
27779 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027780if { (ac_try="$ac_link"
27781case "(($ac_try" in
27782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27783 *) ac_try_echo=$ac_try;;
27784esac
27785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27786 (eval "$ac_link") 2>conftest.er1
27787 ac_status=$?
27788 grep -v '^ *+' conftest.er1 >conftest.err
27789 rm -f conftest.er1
27790 cat conftest.err >&5
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027792 (exit $ac_status); } &&
27793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27794 { (case "(($ac_try" in
27795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27796 *) ac_try_echo=$ac_try;;
27797esac
27798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27799 (eval "$ac_try") 2>&5
27800 ac_status=$?
27801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802 (exit $ac_status); }; } &&
27803 { ac_try='test -s conftest$ac_exeext'
27804 { (case "(($ac_try" in
27805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27806 *) ac_try_echo=$ac_try;;
27807esac
27808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27809 (eval "$ac_try") 2>&5
27810 ac_status=$?
27811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027813 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027814else
27815 echo "$as_me: failed program was:" >&5
27816sed 's/^/| /' conftest.$ac_ext >&5
27817
Nick Lewycky267fddb2009-04-13 04:26:27 +000027818
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027819fi
27820
Bill Wendlingebcceee2009-04-18 11:20:33 +000027821rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027822 conftest$ac_exeext
27823 if test "${ac_cv_search_ffi_call+set}" = set; then
27824 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027825fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027826done
27827if test "${ac_cv_search_ffi_call+set}" = set; then
27828 :
27829else
27830 ac_cv_search_ffi_call=no
27831fi
27832rm conftest.$ac_ext
27833LIBS=$ac_func_search_save_LIBS
27834fi
27835{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27836echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27837ac_res=$ac_cv_search_ffi_call
27838if test "$ac_res" != no; then
27839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27840
27841cat >>confdefs.h <<\_ACEOF
27842#define HAVE_FFI_CALL 1
27843_ACEOF
27844
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027845else
27846 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27847echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27848fi
27849
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027850fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027851
Reid Spencera773bd52006-08-04 18:18:08 +000027852{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27853echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027854if test "${ac_cv_search_mallinfo+set}" = set; then
27855 echo $ECHO_N "(cached) $ECHO_C" >&6
27856else
27857 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027858cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027859/* confdefs.h. */
27860_ACEOF
27861cat confdefs.h >>conftest.$ac_ext
27862cat >>conftest.$ac_ext <<_ACEOF
27863/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027864
Reid Spencera773bd52006-08-04 18:18:08 +000027865/* Override any GCC internal prototype to avoid an error.
27866 Use char because int might match the return type of a GCC
27867 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027868#ifdef __cplusplus
27869extern "C"
27870#endif
John Criswell7a73b802003-06-30 21:59:07 +000027871char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027872int
27873main ()
27874{
Reid Spencera773bd52006-08-04 18:18:08 +000027875return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027876 ;
27877 return 0;
27878}
27879_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027880for ac_lib in '' malloc; do
27881 if test -z "$ac_lib"; then
27882 ac_res="none required"
27883 else
27884 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027886 fi
27887 rm -f conftest.$ac_objext conftest$ac_exeext
27888if { (ac_try="$ac_link"
27889case "(($ac_try" in
27890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891 *) ac_try_echo=$ac_try;;
27892esac
27893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27894 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027895 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027896 grep -v '^ *+' conftest.er1 >conftest.err
27897 rm -f conftest.er1
27898 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027900 (exit $ac_status); } &&
27901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27902 { (case "(($ac_try" in
27903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27904 *) ac_try_echo=$ac_try;;
27905esac
27906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27907 (eval "$ac_try") 2>&5
27908 ac_status=$?
27909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27910 (exit $ac_status); }; } &&
27911 { ac_try='test -s conftest$ac_exeext'
27912 { (case "(($ac_try" in
27913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27914 *) ac_try_echo=$ac_try;;
27915esac
27916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27917 (eval "$ac_try") 2>&5
27918 ac_status=$?
27919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027921 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027922else
27923 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027924sed 's/^/| /' conftest.$ac_ext >&5
27925
Reid Spencera773bd52006-08-04 18:18:08 +000027926
John Criswell7a73b802003-06-30 21:59:07 +000027927fi
Reid Spencera773bd52006-08-04 18:18:08 +000027928
Bill Wendlingebcceee2009-04-18 11:20:33 +000027929rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027930 conftest$ac_exeext
27931 if test "${ac_cv_search_mallinfo+set}" = set; then
27932 break
John Criswell7a73b802003-06-30 21:59:07 +000027933fi
Reid Spencera773bd52006-08-04 18:18:08 +000027934done
27935if test "${ac_cv_search_mallinfo+set}" = set; then
27936 :
27937else
27938 ac_cv_search_mallinfo=no
27939fi
27940rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027941LIBS=$ac_func_search_save_LIBS
27942fi
Reid Spencera773bd52006-08-04 18:18:08 +000027943{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27944echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27945ac_res=$ac_cv_search_mallinfo
27946if test "$ac_res" != no; then
27947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027948
27949cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027950#define HAVE_MALLINFO 1
27951_ACEOF
27952
27953fi
27954
27955
Reid Spencer0a262ba2005-08-24 10:07:20 +000027956if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027957
Reid Spencera773bd52006-08-04 18:18:08 +000027958{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27959echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027960if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27961 echo $ECHO_N "(cached) $ECHO_C" >&6
27962else
27963 ac_check_lib_save_LIBS=$LIBS
27964LIBS="-lpthread $LIBS"
27965cat >conftest.$ac_ext <<_ACEOF
27966/* confdefs.h. */
27967_ACEOF
27968cat confdefs.h >>conftest.$ac_ext
27969cat >>conftest.$ac_ext <<_ACEOF
27970/* end confdefs.h. */
27971
Reid Spencera773bd52006-08-04 18:18:08 +000027972/* Override any GCC internal prototype to avoid an error.
27973 Use char because int might match the return type of a GCC
27974 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027975#ifdef __cplusplus
27976extern "C"
27977#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027978char pthread_mutex_init ();
27979int
27980main ()
27981{
Reid Spencera773bd52006-08-04 18:18:08 +000027982return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027983 ;
27984 return 0;
27985}
27986_ACEOF
27987rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027988if { (ac_try="$ac_link"
27989case "(($ac_try" in
27990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27991 *) ac_try_echo=$ac_try;;
27992esac
27993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27994 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027995 ac_status=$?
27996 grep -v '^ *+' conftest.er1 >conftest.err
27997 rm -f conftest.er1
27998 cat conftest.err >&5
27999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028000 (exit $ac_status); } &&
28001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28002 { (case "(($ac_try" in
28003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28004 *) ac_try_echo=$ac_try;;
28005esac
28006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28007 (eval "$ac_try") 2>&5
28008 ac_status=$?
28009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010 (exit $ac_status); }; } &&
28011 { ac_try='test -s conftest$ac_exeext'
28012 { (case "(($ac_try" in
28013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28014 *) ac_try_echo=$ac_try;;
28015esac
28016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28017 (eval "$ac_try") 2>&5
28018 ac_status=$?
28019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028021 ac_cv_lib_pthread_pthread_mutex_init=yes
28022else
28023 echo "$as_me: failed program was:" >&5
28024sed 's/^/| /' conftest.$ac_ext >&5
28025
Reid Spencera773bd52006-08-04 18:18:08 +000028026 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000028027fi
Reid Spencera773bd52006-08-04 18:18:08 +000028028
Bill Wendlingebcceee2009-04-18 11:20:33 +000028029rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000028030 conftest$ac_exeext conftest.$ac_ext
28031LIBS=$ac_check_lib_save_LIBS
28032fi
Reid Spencera773bd52006-08-04 18:18:08 +000028033{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28034echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000028035if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28036 cat >>confdefs.h <<_ACEOF
28037#define HAVE_LIBPTHREAD 1
28038_ACEOF
28039
28040 LIBS="-lpthread $LIBS"
28041
28042fi
28043
Reid Spencera773bd52006-08-04 18:18:08 +000028044 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28045echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000028046if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28047 echo $ECHO_N "(cached) $ECHO_C" >&6
28048else
28049 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000028050cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000028051/* confdefs.h. */
28052_ACEOF
28053cat confdefs.h >>conftest.$ac_ext
28054cat >>conftest.$ac_ext <<_ACEOF
28055/* end confdefs.h. */
28056
Reid Spencera773bd52006-08-04 18:18:08 +000028057/* Override any GCC internal prototype to avoid an error.
28058 Use char because int might match the return type of a GCC
28059 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000028060#ifdef __cplusplus
28061extern "C"
28062#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000028063char pthread_mutex_lock ();
28064int
28065main ()
28066{
Reid Spencera773bd52006-08-04 18:18:08 +000028067return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000028068 ;
28069 return 0;
28070}
28071_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028072for ac_lib in '' pthread; do
28073 if test -z "$ac_lib"; then
28074 ac_res="none required"
28075 else
28076 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000028077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028078 fi
28079 rm -f conftest.$ac_objext conftest$ac_exeext
28080if { (ac_try="$ac_link"
28081case "(($ac_try" in
28082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28083 *) ac_try_echo=$ac_try;;
28084esac
28085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28086 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000028087 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028088 grep -v '^ *+' conftest.er1 >conftest.err
28089 rm -f conftest.er1
28090 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000028091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028092 (exit $ac_status); } &&
28093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28094 { (case "(($ac_try" in
28095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28096 *) ac_try_echo=$ac_try;;
28097esac
28098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28099 (eval "$ac_try") 2>&5
28100 ac_status=$?
28101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102 (exit $ac_status); }; } &&
28103 { ac_try='test -s conftest$ac_exeext'
28104 { (case "(($ac_try" in
28105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28106 *) ac_try_echo=$ac_try;;
28107esac
28108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28109 (eval "$ac_try") 2>&5
28110 ac_status=$?
28111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028113 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028114else
28115 echo "$as_me: failed program was:" >&5
28116sed 's/^/| /' conftest.$ac_ext >&5
28117
Reid Spencera773bd52006-08-04 18:18:08 +000028118
Brian Gaeke5f268f72003-12-05 19:29:01 +000028119fi
Reid Spencera773bd52006-08-04 18:18:08 +000028120
Bill Wendlingebcceee2009-04-18 11:20:33 +000028121rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028122 conftest$ac_exeext
28123 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28124 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028125fi
Reid Spencera773bd52006-08-04 18:18:08 +000028126done
28127if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28128 :
28129else
28130 ac_cv_search_pthread_mutex_lock=no
28131fi
28132rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028133LIBS=$ac_func_search_save_LIBS
28134fi
Reid Spencera773bd52006-08-04 18:18:08 +000028135{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28136echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28137ac_res=$ac_cv_search_pthread_mutex_lock
28138if test "$ac_res" != no; then
28139 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028140
John Criswell40468462004-09-24 21:19:06 +000028141cat >>confdefs.h <<\_ACEOF
28142#define HAVE_PTHREAD_MUTEX_LOCK 1
28143_ACEOF
28144
28145fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028146
Owen Andersonde8aed22009-06-16 18:20:20 +000028147 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28148echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28149if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28150 echo $ECHO_N "(cached) $ECHO_C" >&6
28151else
28152 ac_func_search_save_LIBS=$LIBS
28153cat >conftest.$ac_ext <<_ACEOF
28154/* confdefs.h. */
28155_ACEOF
28156cat confdefs.h >>conftest.$ac_ext
28157cat >>conftest.$ac_ext <<_ACEOF
28158/* end confdefs.h. */
28159
28160/* Override any GCC internal prototype to avoid an error.
28161 Use char because int might match the return type of a GCC
28162 builtin and then its argument prototype would still apply. */
28163#ifdef __cplusplus
28164extern "C"
28165#endif
28166char pthread_rwlock_init ();
28167int
28168main ()
28169{
28170return pthread_rwlock_init ();
28171 ;
28172 return 0;
28173}
28174_ACEOF
28175for ac_lib in '' pthread; do
28176 if test -z "$ac_lib"; then
28177 ac_res="none required"
28178 else
28179 ac_res=-l$ac_lib
28180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28181 fi
28182 rm -f conftest.$ac_objext conftest$ac_exeext
28183if { (ac_try="$ac_link"
28184case "(($ac_try" in
28185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186 *) ac_try_echo=$ac_try;;
28187esac
28188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189 (eval "$ac_link") 2>conftest.er1
28190 ac_status=$?
28191 grep -v '^ *+' conftest.er1 >conftest.err
28192 rm -f conftest.er1
28193 cat conftest.err >&5
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); } &&
28196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28197 { (case "(($ac_try" in
28198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199 *) ac_try_echo=$ac_try;;
28200esac
28201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202 (eval "$ac_try") 2>&5
28203 ac_status=$?
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); }; } &&
28206 { ac_try='test -s conftest$ac_exeext'
28207 { (case "(($ac_try" in
28208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28209 *) ac_try_echo=$ac_try;;
28210esac
28211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28212 (eval "$ac_try") 2>&5
28213 ac_status=$?
28214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215 (exit $ac_status); }; }; then
28216 ac_cv_search_pthread_rwlock_init=$ac_res
28217else
28218 echo "$as_me: failed program was:" >&5
28219sed 's/^/| /' conftest.$ac_ext >&5
28220
28221
28222fi
28223
28224rm -f core conftest.err conftest.$ac_objext \
28225 conftest$ac_exeext
28226 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28227 break
28228fi
28229done
28230if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28231 :
28232else
28233 ac_cv_search_pthread_rwlock_init=no
28234fi
28235rm conftest.$ac_ext
28236LIBS=$ac_func_search_save_LIBS
28237fi
28238{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28239echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28240ac_res=$ac_cv_search_pthread_rwlock_init
28241if test "$ac_res" != no; then
28242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28243
28244cat >>confdefs.h <<\_ACEOF
28245#define HAVE_PTHREAD_RWLOCK_INIT 1
28246_ACEOF
28247
28248fi
28249
Owen Anderson27fcfe12009-06-25 23:10:26 +000028250 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28251echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28252if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28253 echo $ECHO_N "(cached) $ECHO_C" >&6
28254else
28255 ac_func_search_save_LIBS=$LIBS
28256cat >conftest.$ac_ext <<_ACEOF
28257/* confdefs.h. */
28258_ACEOF
28259cat confdefs.h >>conftest.$ac_ext
28260cat >>conftest.$ac_ext <<_ACEOF
28261/* end confdefs.h. */
28262
28263/* Override any GCC internal prototype to avoid an error.
28264 Use char because int might match the return type of a GCC
28265 builtin and then its argument prototype would still apply. */
28266#ifdef __cplusplus
28267extern "C"
28268#endif
28269char pthread_getspecific ();
28270int
28271main ()
28272{
28273return pthread_getspecific ();
28274 ;
28275 return 0;
28276}
28277_ACEOF
28278for ac_lib in '' pthread; do
28279 if test -z "$ac_lib"; then
28280 ac_res="none required"
28281 else
28282 ac_res=-l$ac_lib
28283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28284 fi
28285 rm -f conftest.$ac_objext conftest$ac_exeext
28286if { (ac_try="$ac_link"
28287case "(($ac_try" in
28288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28289 *) ac_try_echo=$ac_try;;
28290esac
28291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28292 (eval "$ac_link") 2>conftest.er1
28293 ac_status=$?
28294 grep -v '^ *+' conftest.er1 >conftest.err
28295 rm -f conftest.er1
28296 cat conftest.err >&5
28297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298 (exit $ac_status); } &&
28299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28300 { (case "(($ac_try" in
28301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28302 *) ac_try_echo=$ac_try;;
28303esac
28304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28305 (eval "$ac_try") 2>&5
28306 ac_status=$?
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); }; } &&
28309 { ac_try='test -s conftest$ac_exeext'
28310 { (case "(($ac_try" in
28311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28312 *) ac_try_echo=$ac_try;;
28313esac
28314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28315 (eval "$ac_try") 2>&5
28316 ac_status=$?
28317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318 (exit $ac_status); }; }; then
28319 ac_cv_search_pthread_getspecific=$ac_res
28320else
28321 echo "$as_me: failed program was:" >&5
28322sed 's/^/| /' conftest.$ac_ext >&5
28323
28324
28325fi
28326
28327rm -f core conftest.err conftest.$ac_objext \
28328 conftest$ac_exeext
28329 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28330 break
28331fi
28332done
28333if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28334 :
28335else
28336 ac_cv_search_pthread_getspecific=no
28337fi
28338rm conftest.$ac_ext
28339LIBS=$ac_func_search_save_LIBS
28340fi
28341{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28342echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28343ac_res=$ac_cv_search_pthread_getspecific
28344if test "$ac_res" != no; then
28345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28346
28347cat >>confdefs.h <<\_ACEOF
28348#define HAVE_PTHREAD_GETSPECIFIC 1
28349_ACEOF
28350
28351fi
28352
Reid Spencer0a262ba2005-08-24 10:07:20 +000028353fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028354
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028355
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028356# Check whether --with-udis86 was given.
28357if test "${with_udis86+set}" = set; then
28358 withval=$with_udis86;
28359 USE_UDIS86=1
28360
28361 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028362 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028363 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28364 esac
28365
28366{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28367echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28368if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28369 echo $ECHO_N "(cached) $ECHO_C" >&6
28370else
28371 ac_check_lib_save_LIBS=$LIBS
28372LIBS="-ludis86 $LIBS"
28373cat >conftest.$ac_ext <<_ACEOF
28374/* confdefs.h. */
28375_ACEOF
28376cat confdefs.h >>conftest.$ac_ext
28377cat >>conftest.$ac_ext <<_ACEOF
28378/* end confdefs.h. */
28379
28380/* Override any GCC internal prototype to avoid an error.
28381 Use char because int might match the return type of a GCC
28382 builtin and then its argument prototype would still apply. */
28383#ifdef __cplusplus
28384extern "C"
28385#endif
28386char ud_init ();
28387int
28388main ()
28389{
28390return ud_init ();
28391 ;
28392 return 0;
28393}
28394_ACEOF
28395rm -f conftest.$ac_objext conftest$ac_exeext
28396if { (ac_try="$ac_link"
28397case "(($ac_try" in
28398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28399 *) ac_try_echo=$ac_try;;
28400esac
28401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28402 (eval "$ac_link") 2>conftest.er1
28403 ac_status=$?
28404 grep -v '^ *+' conftest.er1 >conftest.err
28405 rm -f conftest.er1
28406 cat conftest.err >&5
28407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028408 (exit $ac_status); } &&
28409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28410 { (case "(($ac_try" in
28411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28412 *) ac_try_echo=$ac_try;;
28413esac
28414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28415 (eval "$ac_try") 2>&5
28416 ac_status=$?
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); }; } &&
28419 { ac_try='test -s conftest$ac_exeext'
28420 { (case "(($ac_try" in
28421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422 *) ac_try_echo=$ac_try;;
28423esac
28424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425 (eval "$ac_try") 2>&5
28426 ac_status=$?
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028429 ac_cv_lib_udis86_ud_init=yes
28430else
28431 echo "$as_me: failed program was:" >&5
28432sed 's/^/| /' conftest.$ac_ext >&5
28433
28434 ac_cv_lib_udis86_ud_init=no
28435fi
28436
Bill Wendlingebcceee2009-04-18 11:20:33 +000028437rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028438 conftest$ac_exeext conftest.$ac_ext
28439LIBS=$ac_check_lib_save_LIBS
28440fi
28441{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28442echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28443if test $ac_cv_lib_udis86_ud_init = yes; then
28444 cat >>confdefs.h <<_ACEOF
28445#define HAVE_LIBUDIS86 1
28446_ACEOF
28447
28448 LIBS="-ludis86 $LIBS"
28449
28450else
28451
28452 echo "Error! You need to have libudis86 around."
28453 exit -1
28454
28455fi
28456
28457
28458else
28459 USE_UDIS86=0
28460
28461fi
28462
28463
28464cat >>confdefs.h <<_ACEOF
28465#define USE_UDIS86 $USE_UDIS86
28466_ACEOF
28467
28468
28469
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028470# Check whether --with-oprofile was given.
28471if test "${with_oprofile+set}" = set; then
28472 withval=$with_oprofile;
28473 USE_OPROFILE=1
28474
28475 case "$withval" in
28476 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28477 *) llvm_cv_oppath="${withval}/lib/oprofile"
28478 CPPFLAGS="-I${withval}/include";;
28479 esac
28480 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28481 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28482echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28483if test "${ac_cv_search_op_open_agent+set}" = set; then
28484 echo $ECHO_N "(cached) $ECHO_C" >&6
28485else
28486 ac_func_search_save_LIBS=$LIBS
28487cat >conftest.$ac_ext <<_ACEOF
28488/* confdefs.h. */
28489_ACEOF
28490cat confdefs.h >>conftest.$ac_ext
28491cat >>conftest.$ac_ext <<_ACEOF
28492/* end confdefs.h. */
28493
28494/* Override any GCC internal prototype to avoid an error.
28495 Use char because int might match the return type of a GCC
28496 builtin and then its argument prototype would still apply. */
28497#ifdef __cplusplus
28498extern "C"
28499#endif
28500char op_open_agent ();
28501int
28502main ()
28503{
28504return op_open_agent ();
28505 ;
28506 return 0;
28507}
28508_ACEOF
28509for ac_lib in '' opagent; do
28510 if test -z "$ac_lib"; then
28511 ac_res="none required"
28512 else
28513 ac_res=-l$ac_lib
28514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28515 fi
28516 rm -f conftest.$ac_objext conftest$ac_exeext
28517if { (ac_try="$ac_link"
28518case "(($ac_try" in
28519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28520 *) ac_try_echo=$ac_try;;
28521esac
28522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28523 (eval "$ac_link") 2>conftest.er1
28524 ac_status=$?
28525 grep -v '^ *+' conftest.er1 >conftest.err
28526 rm -f conftest.er1
28527 cat conftest.err >&5
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); } &&
28530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28531 { (case "(($ac_try" in
28532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533 *) ac_try_echo=$ac_try;;
28534esac
28535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536 (eval "$ac_try") 2>&5
28537 ac_status=$?
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); }; } &&
28540 { ac_try='test -s conftest$ac_exeext'
28541 { (case "(($ac_try" in
28542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543 *) ac_try_echo=$ac_try;;
28544esac
28545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546 (eval "$ac_try") 2>&5
28547 ac_status=$?
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); }; }; then
28550 ac_cv_search_op_open_agent=$ac_res
28551else
28552 echo "$as_me: failed program was:" >&5
28553sed 's/^/| /' conftest.$ac_ext >&5
28554
28555
28556fi
28557
28558rm -f core conftest.err conftest.$ac_objext \
28559 conftest$ac_exeext
28560 if test "${ac_cv_search_op_open_agent+set}" = set; then
28561 break
28562fi
28563done
28564if test "${ac_cv_search_op_open_agent+set}" = set; then
28565 :
28566else
28567 ac_cv_search_op_open_agent=no
28568fi
28569rm conftest.$ac_ext
28570LIBS=$ac_func_search_save_LIBS
28571fi
28572{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28573echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28574ac_res=$ac_cv_search_op_open_agent
28575if test "$ac_res" != no; then
28576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28577
28578else
28579
28580 echo "Error! You need to have libopagent around."
28581 exit -1
28582
28583fi
28584
28585 if test "${ac_cv_header_opagent_h+set}" = set; then
28586 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28587echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28588if test "${ac_cv_header_opagent_h+set}" = set; then
28589 echo $ECHO_N "(cached) $ECHO_C" >&6
28590fi
28591{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28592echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28593else
28594 # Is the header compilable?
28595{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28596echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28597cat >conftest.$ac_ext <<_ACEOF
28598/* confdefs.h. */
28599_ACEOF
28600cat confdefs.h >>conftest.$ac_ext
28601cat >>conftest.$ac_ext <<_ACEOF
28602/* end confdefs.h. */
28603$ac_includes_default
28604#include <opagent.h>
28605_ACEOF
28606rm -f conftest.$ac_objext
28607if { (ac_try="$ac_compile"
28608case "(($ac_try" in
28609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28610 *) ac_try_echo=$ac_try;;
28611esac
28612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28613 (eval "$ac_compile") 2>conftest.er1
28614 ac_status=$?
28615 grep -v '^ *+' conftest.er1 >conftest.err
28616 rm -f conftest.er1
28617 cat conftest.err >&5
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); } &&
28620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28621 { (case "(($ac_try" in
28622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28623 *) ac_try_echo=$ac_try;;
28624esac
28625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28626 (eval "$ac_try") 2>&5
28627 ac_status=$?
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); }; } &&
28630 { ac_try='test -s conftest.$ac_objext'
28631 { (case "(($ac_try" in
28632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28633 *) ac_try_echo=$ac_try;;
28634esac
28635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28636 (eval "$ac_try") 2>&5
28637 ac_status=$?
28638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639 (exit $ac_status); }; }; then
28640 ac_header_compiler=yes
28641else
28642 echo "$as_me: failed program was:" >&5
28643sed 's/^/| /' conftest.$ac_ext >&5
28644
28645 ac_header_compiler=no
28646fi
28647
28648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28649{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28650echo "${ECHO_T}$ac_header_compiler" >&6; }
28651
28652# Is the header present?
28653{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28654echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28655cat >conftest.$ac_ext <<_ACEOF
28656/* confdefs.h. */
28657_ACEOF
28658cat confdefs.h >>conftest.$ac_ext
28659cat >>conftest.$ac_ext <<_ACEOF
28660/* end confdefs.h. */
28661#include <opagent.h>
28662_ACEOF
28663if { (ac_try="$ac_cpp conftest.$ac_ext"
28664case "(($ac_try" in
28665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666 *) ac_try_echo=$ac_try;;
28667esac
28668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28670 ac_status=$?
28671 grep -v '^ *+' conftest.er1 >conftest.err
28672 rm -f conftest.er1
28673 cat conftest.err >&5
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); } >/dev/null; then
28676 if test -s conftest.err; then
28677 ac_cpp_err=$ac_c_preproc_warn_flag
28678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28679 else
28680 ac_cpp_err=
28681 fi
28682else
28683 ac_cpp_err=yes
28684fi
28685if test -z "$ac_cpp_err"; then
28686 ac_header_preproc=yes
28687else
28688 echo "$as_me: failed program was:" >&5
28689sed 's/^/| /' conftest.$ac_ext >&5
28690
28691 ac_header_preproc=no
28692fi
28693
28694rm -f conftest.err conftest.$ac_ext
28695{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28696echo "${ECHO_T}$ac_header_preproc" >&6; }
28697
28698# So? What about this header?
28699case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28700 yes:no: )
28701 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28702echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28703 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28704echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28705 ac_header_preproc=yes
28706 ;;
28707 no:yes:* )
28708 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28709echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28710 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28711echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28712 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28713echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28714 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28715echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28716 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28717echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28718 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28719echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28720 ( cat <<\_ASBOX
28721## ----------------------------------- ##
28722## Report this to llvmbugs@cs.uiuc.edu ##
28723## ----------------------------------- ##
28724_ASBOX
28725 ) | sed "s/^/$as_me: WARNING: /" >&2
28726 ;;
28727esac
28728{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28729echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28730if test "${ac_cv_header_opagent_h+set}" = set; then
28731 echo $ECHO_N "(cached) $ECHO_C" >&6
28732else
28733 ac_cv_header_opagent_h=$ac_header_preproc
28734fi
28735{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28736echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28737
28738fi
28739if test $ac_cv_header_opagent_h = yes; then
28740 :
28741else
28742
28743 echo "Error! You need to have opagent.h around."
28744 exit -1
28745
28746fi
28747
28748
28749
28750else
28751
28752 llvm_cv_old_LIBS="$LIBS"
28753 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28754 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28755echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28756if test "${ac_cv_search_op_open_agent+set}" = set; then
28757 echo $ECHO_N "(cached) $ECHO_C" >&6
28758else
28759 ac_func_search_save_LIBS=$LIBS
28760cat >conftest.$ac_ext <<_ACEOF
28761/* confdefs.h. */
28762_ACEOF
28763cat confdefs.h >>conftest.$ac_ext
28764cat >>conftest.$ac_ext <<_ACEOF
28765/* end confdefs.h. */
28766
28767/* Override any GCC internal prototype to avoid an error.
28768 Use char because int might match the return type of a GCC
28769 builtin and then its argument prototype would still apply. */
28770#ifdef __cplusplus
28771extern "C"
28772#endif
28773char op_open_agent ();
28774int
28775main ()
28776{
28777return op_open_agent ();
28778 ;
28779 return 0;
28780}
28781_ACEOF
28782for ac_lib in '' opagent; do
28783 if test -z "$ac_lib"; then
28784 ac_res="none required"
28785 else
28786 ac_res=-l$ac_lib
28787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28788 fi
28789 rm -f conftest.$ac_objext conftest$ac_exeext
28790if { (ac_try="$ac_link"
28791case "(($ac_try" in
28792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28793 *) ac_try_echo=$ac_try;;
28794esac
28795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28796 (eval "$ac_link") 2>conftest.er1
28797 ac_status=$?
28798 grep -v '^ *+' conftest.er1 >conftest.err
28799 rm -f conftest.er1
28800 cat conftest.err >&5
28801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802 (exit $ac_status); } &&
28803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28804 { (case "(($ac_try" in
28805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28806 *) ac_try_echo=$ac_try;;
28807esac
28808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28809 (eval "$ac_try") 2>&5
28810 ac_status=$?
28811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812 (exit $ac_status); }; } &&
28813 { ac_try='test -s conftest$ac_exeext'
28814 { (case "(($ac_try" in
28815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28816 *) ac_try_echo=$ac_try;;
28817esac
28818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28819 (eval "$ac_try") 2>&5
28820 ac_status=$?
28821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822 (exit $ac_status); }; }; then
28823 ac_cv_search_op_open_agent=$ac_res
28824else
28825 echo "$as_me: failed program was:" >&5
28826sed 's/^/| /' conftest.$ac_ext >&5
28827
28828
28829fi
28830
28831rm -f core conftest.err conftest.$ac_objext \
28832 conftest$ac_exeext
28833 if test "${ac_cv_search_op_open_agent+set}" = set; then
28834 break
28835fi
28836done
28837if test "${ac_cv_search_op_open_agent+set}" = set; then
28838 :
28839else
28840 ac_cv_search_op_open_agent=no
28841fi
28842rm conftest.$ac_ext
28843LIBS=$ac_func_search_save_LIBS
28844fi
28845{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28846echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28847ac_res=$ac_cv_search_op_open_agent
28848if test "$ac_res" != no; then
28849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28850 USE_OPROFILE=1
28851
28852else
28853 LIBS="$llvm_cv_old_LIBS"
28854 USE_OPROFILE=0
28855
28856fi
28857
28858 if test "${ac_cv_header_opagent_h+set}" = set; then
28859 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28860echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28861if test "${ac_cv_header_opagent_h+set}" = set; then
28862 echo $ECHO_N "(cached) $ECHO_C" >&6
28863fi
28864{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28865echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28866else
28867 # Is the header compilable?
28868{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28869echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28870cat >conftest.$ac_ext <<_ACEOF
28871/* confdefs.h. */
28872_ACEOF
28873cat confdefs.h >>conftest.$ac_ext
28874cat >>conftest.$ac_ext <<_ACEOF
28875/* end confdefs.h. */
28876$ac_includes_default
28877#include <opagent.h>
28878_ACEOF
28879rm -f conftest.$ac_objext
28880if { (ac_try="$ac_compile"
28881case "(($ac_try" in
28882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28883 *) ac_try_echo=$ac_try;;
28884esac
28885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28886 (eval "$ac_compile") 2>conftest.er1
28887 ac_status=$?
28888 grep -v '^ *+' conftest.er1 >conftest.err
28889 rm -f conftest.er1
28890 cat conftest.err >&5
28891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892 (exit $ac_status); } &&
28893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28894 { (case "(($ac_try" in
28895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28896 *) ac_try_echo=$ac_try;;
28897esac
28898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28899 (eval "$ac_try") 2>&5
28900 ac_status=$?
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); }; } &&
28903 { ac_try='test -s conftest.$ac_objext'
28904 { (case "(($ac_try" in
28905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28906 *) ac_try_echo=$ac_try;;
28907esac
28908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28909 (eval "$ac_try") 2>&5
28910 ac_status=$?
28911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); }; }; then
28913 ac_header_compiler=yes
28914else
28915 echo "$as_me: failed program was:" >&5
28916sed 's/^/| /' conftest.$ac_ext >&5
28917
28918 ac_header_compiler=no
28919fi
28920
28921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28922{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28923echo "${ECHO_T}$ac_header_compiler" >&6; }
28924
28925# Is the header present?
28926{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28927echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28928cat >conftest.$ac_ext <<_ACEOF
28929/* confdefs.h. */
28930_ACEOF
28931cat confdefs.h >>conftest.$ac_ext
28932cat >>conftest.$ac_ext <<_ACEOF
28933/* end confdefs.h. */
28934#include <opagent.h>
28935_ACEOF
28936if { (ac_try="$ac_cpp conftest.$ac_ext"
28937case "(($ac_try" in
28938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28939 *) ac_try_echo=$ac_try;;
28940esac
28941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28943 ac_status=$?
28944 grep -v '^ *+' conftest.er1 >conftest.err
28945 rm -f conftest.er1
28946 cat conftest.err >&5
28947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948 (exit $ac_status); } >/dev/null; then
28949 if test -s conftest.err; then
28950 ac_cpp_err=$ac_c_preproc_warn_flag
28951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28952 else
28953 ac_cpp_err=
28954 fi
28955else
28956 ac_cpp_err=yes
28957fi
28958if test -z "$ac_cpp_err"; then
28959 ac_header_preproc=yes
28960else
28961 echo "$as_me: failed program was:" >&5
28962sed 's/^/| /' conftest.$ac_ext >&5
28963
28964 ac_header_preproc=no
28965fi
28966
28967rm -f conftest.err conftest.$ac_ext
28968{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28969echo "${ECHO_T}$ac_header_preproc" >&6; }
28970
28971# So? What about this header?
28972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28973 yes:no: )
28974 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28975echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28976 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28977echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28978 ac_header_preproc=yes
28979 ;;
28980 no:yes:* )
28981 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28982echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28983 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28984echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28985 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28986echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28987 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28988echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28989 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28990echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28991 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28992echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28993 ( cat <<\_ASBOX
28994## ----------------------------------- ##
28995## Report this to llvmbugs@cs.uiuc.edu ##
28996## ----------------------------------- ##
28997_ASBOX
28998 ) | sed "s/^/$as_me: WARNING: /" >&2
28999 ;;
29000esac
29001{ echo "$as_me:$LINENO: checking for opagent.h" >&5
29002echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29003if test "${ac_cv_header_opagent_h+set}" = set; then
29004 echo $ECHO_N "(cached) $ECHO_C" >&6
29005else
29006 ac_cv_header_opagent_h=$ac_header_preproc
29007fi
29008{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29009echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29010
29011fi
29012if test $ac_cv_header_opagent_h = yes; then
29013 :
29014else
29015
29016 LIBS="$llvm_cv_old_LIBS"
29017 USE_OPROFILE=0
29018
29019
29020fi
29021
29022
29023
29024fi
29025
29026
29027cat >>confdefs.h <<_ACEOF
29028#define USE_OPROFILE $USE_OPROFILE
29029_ACEOF
29030
29031
29032
Reid Spencer59473af2004-12-25 07:31:29 +000029033
29034
29035
29036
29037
29038ac_header_dirent=no
29039for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29040 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029041{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29042echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029044 echo $ECHO_N "(cached) $ECHO_C" >&6
29045else
29046 cat >conftest.$ac_ext <<_ACEOF
29047/* confdefs.h. */
29048_ACEOF
29049cat confdefs.h >>conftest.$ac_ext
29050cat >>conftest.$ac_ext <<_ACEOF
29051/* end confdefs.h. */
29052#include <sys/types.h>
29053#include <$ac_hdr>
29054
29055int
29056main ()
29057{
29058if ((DIR *) 0)
29059return 0;
29060 ;
29061 return 0;
29062}
29063_ACEOF
29064rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029065if { (ac_try="$ac_compile"
29066case "(($ac_try" in
29067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29068 *) ac_try_echo=$ac_try;;
29069esac
29070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29071 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029072 ac_status=$?
29073 grep -v '^ *+' conftest.er1 >conftest.err
29074 rm -f conftest.er1
29075 cat conftest.err >&5
29076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029077 (exit $ac_status); } &&
29078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29079 { (case "(($ac_try" in
29080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29081 *) ac_try_echo=$ac_try;;
29082esac
29083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29084 (eval "$ac_try") 2>&5
29085 ac_status=$?
29086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087 (exit $ac_status); }; } &&
29088 { ac_try='test -s conftest.$ac_objext'
29089 { (case "(($ac_try" in
29090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091 *) ac_try_echo=$ac_try;;
29092esac
29093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094 (eval "$ac_try") 2>&5
29095 ac_status=$?
29096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029098 eval "$as_ac_Header=yes"
29099else
29100 echo "$as_me: failed program was:" >&5
29101sed 's/^/| /' conftest.$ac_ext >&5
29102
Reid Spencera773bd52006-08-04 18:18:08 +000029103 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000029104fi
Reid Spencera773bd52006-08-04 18:18:08 +000029105
29106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029107fi
Reid Spencera773bd52006-08-04 18:18:08 +000029108ac_res=`eval echo '${'$as_ac_Header'}'`
29109 { echo "$as_me:$LINENO: result: $ac_res" >&5
29110echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029111if test `eval echo '${'$as_ac_Header'}'` = yes; then
29112 cat >>confdefs.h <<_ACEOF
29113#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29114_ACEOF
29115
29116ac_header_dirent=$ac_hdr; break
29117fi
29118
29119done
29120# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29121if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000029122 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29123echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029124if test "${ac_cv_search_opendir+set}" = set; then
29125 echo $ECHO_N "(cached) $ECHO_C" >&6
29126else
29127 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029128cat >conftest.$ac_ext <<_ACEOF
29129/* confdefs.h. */
29130_ACEOF
29131cat confdefs.h >>conftest.$ac_ext
29132cat >>conftest.$ac_ext <<_ACEOF
29133/* end confdefs.h. */
29134
Reid Spencera773bd52006-08-04 18:18:08 +000029135/* Override any GCC internal prototype to avoid an error.
29136 Use char because int might match the return type of a GCC
29137 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029138#ifdef __cplusplus
29139extern "C"
29140#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029141char opendir ();
29142int
29143main ()
29144{
Reid Spencera773bd52006-08-04 18:18:08 +000029145return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029146 ;
29147 return 0;
29148}
29149_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029150for ac_lib in '' dir; do
29151 if test -z "$ac_lib"; then
29152 ac_res="none required"
29153 else
29154 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029156 fi
29157 rm -f conftest.$ac_objext conftest$ac_exeext
29158if { (ac_try="$ac_link"
29159case "(($ac_try" in
29160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29161 *) ac_try_echo=$ac_try;;
29162esac
29163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29164 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029165 ac_status=$?
29166 grep -v '^ *+' conftest.er1 >conftest.err
29167 rm -f conftest.er1
29168 cat conftest.err >&5
29169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029170 (exit $ac_status); } &&
29171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29172 { (case "(($ac_try" in
29173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29174 *) ac_try_echo=$ac_try;;
29175esac
29176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29177 (eval "$ac_try") 2>&5
29178 ac_status=$?
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); }; } &&
29181 { ac_try='test -s conftest$ac_exeext'
29182 { (case "(($ac_try" in
29183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29184 *) ac_try_echo=$ac_try;;
29185esac
29186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29187 (eval "$ac_try") 2>&5
29188 ac_status=$?
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029191 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029192else
29193 echo "$as_me: failed program was:" >&5
29194sed 's/^/| /' conftest.$ac_ext >&5
29195
Reid Spencera773bd52006-08-04 18:18:08 +000029196
Reid Spencer59473af2004-12-25 07:31:29 +000029197fi
Reid Spencera773bd52006-08-04 18:18:08 +000029198
Bill Wendlingebcceee2009-04-18 11:20:33 +000029199rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029200 conftest$ac_exeext
29201 if test "${ac_cv_search_opendir+set}" = set; then
29202 break
Reid Spencer59473af2004-12-25 07:31:29 +000029203fi
Reid Spencera773bd52006-08-04 18:18:08 +000029204done
29205if test "${ac_cv_search_opendir+set}" = set; then
29206 :
29207else
29208 ac_cv_search_opendir=no
29209fi
29210rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029211LIBS=$ac_func_search_save_LIBS
29212fi
Reid Spencera773bd52006-08-04 18:18:08 +000029213{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29214echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29215ac_res=$ac_cv_search_opendir
29216if test "$ac_res" != no; then
29217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029218
29219fi
29220
29221else
Reid Spencera773bd52006-08-04 18:18:08 +000029222 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29223echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029224if test "${ac_cv_search_opendir+set}" = set; then
29225 echo $ECHO_N "(cached) $ECHO_C" >&6
29226else
29227 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029228cat >conftest.$ac_ext <<_ACEOF
29229/* confdefs.h. */
29230_ACEOF
29231cat confdefs.h >>conftest.$ac_ext
29232cat >>conftest.$ac_ext <<_ACEOF
29233/* end confdefs.h. */
29234
Reid Spencera773bd52006-08-04 18:18:08 +000029235/* Override any GCC internal prototype to avoid an error.
29236 Use char because int might match the return type of a GCC
29237 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029238#ifdef __cplusplus
29239extern "C"
29240#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029241char opendir ();
29242int
29243main ()
29244{
Reid Spencera773bd52006-08-04 18:18:08 +000029245return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029246 ;
29247 return 0;
29248}
29249_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029250for ac_lib in '' x; do
29251 if test -z "$ac_lib"; then
29252 ac_res="none required"
29253 else
29254 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029256 fi
29257 rm -f conftest.$ac_objext conftest$ac_exeext
29258if { (ac_try="$ac_link"
29259case "(($ac_try" in
29260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29261 *) ac_try_echo=$ac_try;;
29262esac
29263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29264 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029265 ac_status=$?
29266 grep -v '^ *+' conftest.er1 >conftest.err
29267 rm -f conftest.er1
29268 cat conftest.err >&5
29269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029270 (exit $ac_status); } &&
29271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29272 { (case "(($ac_try" in
29273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29274 *) ac_try_echo=$ac_try;;
29275esac
29276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29277 (eval "$ac_try") 2>&5
29278 ac_status=$?
29279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280 (exit $ac_status); }; } &&
29281 { ac_try='test -s conftest$ac_exeext'
29282 { (case "(($ac_try" in
29283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29284 *) ac_try_echo=$ac_try;;
29285esac
29286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29287 (eval "$ac_try") 2>&5
29288 ac_status=$?
29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029291 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029292else
29293 echo "$as_me: failed program was:" >&5
29294sed 's/^/| /' conftest.$ac_ext >&5
29295
Reid Spencera773bd52006-08-04 18:18:08 +000029296
Reid Spencer59473af2004-12-25 07:31:29 +000029297fi
Reid Spencera773bd52006-08-04 18:18:08 +000029298
Bill Wendlingebcceee2009-04-18 11:20:33 +000029299rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029300 conftest$ac_exeext
29301 if test "${ac_cv_search_opendir+set}" = set; then
29302 break
Reid Spencer59473af2004-12-25 07:31:29 +000029303fi
Reid Spencera773bd52006-08-04 18:18:08 +000029304done
29305if test "${ac_cv_search_opendir+set}" = set; then
29306 :
29307else
29308 ac_cv_search_opendir=no
29309fi
29310rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029311LIBS=$ac_func_search_save_LIBS
29312fi
Reid Spencera773bd52006-08-04 18:18:08 +000029313{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29314echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29315ac_res=$ac_cv_search_opendir
29316if test "$ac_res" != no; then
29317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029318
29319fi
29320
29321fi
29322
Reid Spencera773bd52006-08-04 18:18:08 +000029323{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29324echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029325if test "${ac_cv_header_mmap_anon+set}" = set; then
29326 echo $ECHO_N "(cached) $ECHO_C" >&6
29327else
29328 ac_ext=c
29329ac_cpp='$CPP $CPPFLAGS'
29330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29332ac_compiler_gnu=$ac_cv_c_compiler_gnu
29333
29334 cat >conftest.$ac_ext <<_ACEOF
29335/* confdefs.h. */
29336_ACEOF
29337cat confdefs.h >>conftest.$ac_ext
29338cat >>conftest.$ac_ext <<_ACEOF
29339/* end confdefs.h. */
29340#include <sys/mman.h>
29341#include <unistd.h>
29342#include <fcntl.h>
29343int
29344main ()
29345{
29346mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29347 ;
29348 return 0;
29349}
29350_ACEOF
29351rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029352if { (ac_try="$ac_compile"
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_compile") 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); } &&
29365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29366 { (case "(($ac_try" in
29367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29368 *) ac_try_echo=$ac_try;;
29369esac
29370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29371 (eval "$ac_try") 2>&5
29372 ac_status=$?
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); }; } &&
29375 { ac_try='test -s conftest.$ac_objext'
29376 { (case "(($ac_try" in
29377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29378 *) ac_try_echo=$ac_try;;
29379esac
29380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29381 (eval "$ac_try") 2>&5
29382 ac_status=$?
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029385 ac_cv_header_mmap_anon=yes
29386else
29387 echo "$as_me: failed program was:" >&5
29388sed 's/^/| /' conftest.$ac_ext >&5
29389
Reid Spencera773bd52006-08-04 18:18:08 +000029390 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000029391fi
Reid Spencera773bd52006-08-04 18:18:08 +000029392
29393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029394 ac_ext=c
29395ac_cpp='$CPP $CPPFLAGS'
29396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29398ac_compiler_gnu=$ac_cv_c_compiler_gnu
29399
29400
29401fi
Reid Spencera773bd52006-08-04 18:18:08 +000029402{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29403echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029404if test "$ac_cv_header_mmap_anon" = yes; then
29405
29406cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000029407#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000029408_ACEOF
29409
29410fi
29411
Reid Spencera773bd52006-08-04 18:18:08 +000029412{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29413echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029414if test "${ac_cv_header_stat_broken+set}" = set; then
29415 echo $ECHO_N "(cached) $ECHO_C" >&6
29416else
29417 cat >conftest.$ac_ext <<_ACEOF
29418/* confdefs.h. */
29419_ACEOF
29420cat confdefs.h >>conftest.$ac_ext
29421cat >>conftest.$ac_ext <<_ACEOF
29422/* end confdefs.h. */
29423#include <sys/types.h>
29424#include <sys/stat.h>
29425
Reid Spencera773bd52006-08-04 18:18:08 +000029426#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029427# if S_ISBLK (S_IFDIR)
29428You lose.
29429# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029430#endif
29431
Reid Spencera773bd52006-08-04 18:18:08 +000029432#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029433# if S_ISBLK (S_IFCHR)
29434You lose.
29435# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029436#endif
29437
Reid Spencera773bd52006-08-04 18:18:08 +000029438#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029439# if S_ISLNK (S_IFREG)
29440You lose.
29441# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029442#endif
29443
Reid Spencera773bd52006-08-04 18:18:08 +000029444#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029445# if S_ISSOCK (S_IFREG)
29446You lose.
29447# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029448#endif
29449
29450_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000029451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29452 $EGREP "You lose" >/dev/null 2>&1; then
29453 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029454else
Bill Wendlingebcceee2009-04-18 11:20:33 +000029455 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029456fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000029457rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029458
Reid Spencer59473af2004-12-25 07:31:29 +000029459fi
Reid Spencera773bd52006-08-04 18:18:08 +000029460{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29461echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029462if test $ac_cv_header_stat_broken = yes; then
29463
29464cat >>confdefs.h <<\_ACEOF
29465#define STAT_MACROS_BROKEN 1
29466_ACEOF
29467
29468fi
29469
Reid Spencera773bd52006-08-04 18:18:08 +000029470{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29471echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029472if test "${ac_cv_header_stdc+set}" = set; then
29473 echo $ECHO_N "(cached) $ECHO_C" >&6
29474else
29475 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029476/* confdefs.h. */
29477_ACEOF
29478cat confdefs.h >>conftest.$ac_ext
29479cat >>conftest.$ac_ext <<_ACEOF
29480/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029481#include <stdlib.h>
29482#include <stdarg.h>
29483#include <string.h>
29484#include <float.h>
29485
John Criswell0c38eaf2003-09-10 15:17:25 +000029486int
29487main ()
29488{
29489
29490 ;
29491 return 0;
29492}
John Criswell7a73b802003-06-30 21:59:07 +000029493_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029494rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029495if { (ac_try="$ac_compile"
29496case "(($ac_try" in
29497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29498 *) ac_try_echo=$ac_try;;
29499esac
29500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29501 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029502 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029503 grep -v '^ *+' conftest.er1 >conftest.err
29504 rm -f conftest.er1
29505 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029507 (exit $ac_status); } &&
29508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29509 { (case "(($ac_try" in
29510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29511 *) ac_try_echo=$ac_try;;
29512esac
29513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29514 (eval "$ac_try") 2>&5
29515 ac_status=$?
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); }; } &&
29518 { ac_try='test -s conftest.$ac_objext'
29519 { (case "(($ac_try" in
29520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29521 *) ac_try_echo=$ac_try;;
29522esac
29523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29524 (eval "$ac_try") 2>&5
29525 ac_status=$?
29526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029528 ac_cv_header_stdc=yes
29529else
29530 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029531sed 's/^/| /' conftest.$ac_ext >&5
29532
Reid Spencera773bd52006-08-04 18:18:08 +000029533 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000029534fi
Reid Spencera773bd52006-08-04 18:18:08 +000029535
29536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029537
29538if test $ac_cv_header_stdc = yes; then
29539 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29540 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029541/* confdefs.h. */
29542_ACEOF
29543cat confdefs.h >>conftest.$ac_ext
29544cat >>conftest.$ac_ext <<_ACEOF
29545/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029546#include <string.h>
29547
29548_ACEOF
29549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029550 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029551 :
29552else
29553 ac_cv_header_stdc=no
29554fi
29555rm -f conftest*
29556
29557fi
29558
29559if test $ac_cv_header_stdc = yes; then
29560 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29561 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029562/* confdefs.h. */
29563_ACEOF
29564cat confdefs.h >>conftest.$ac_ext
29565cat >>conftest.$ac_ext <<_ACEOF
29566/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029567#include <stdlib.h>
29568
29569_ACEOF
29570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029571 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029572 :
29573else
29574 ac_cv_header_stdc=no
29575fi
29576rm -f conftest*
29577
29578fi
29579
29580if test $ac_cv_header_stdc = yes; then
29581 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29582 if test "$cross_compiling" = yes; then
29583 :
29584else
29585 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029586/* confdefs.h. */
29587_ACEOF
29588cat confdefs.h >>conftest.$ac_ext
29589cat >>conftest.$ac_ext <<_ACEOF
29590/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029591#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000029592#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000029593#if ((' ' & 0x0FF) == 0x020)
29594# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29595# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29596#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029597# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029598 (('a' <= (c) && (c) <= 'i') \
29599 || ('j' <= (c) && (c) <= 'r') \
29600 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000029601# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29602#endif
29603
29604#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29605int
29606main ()
29607{
29608 int i;
29609 for (i = 0; i < 256; i++)
29610 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000029611 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000029612 return 2;
29613 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029614}
29615_ACEOF
29616rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029617if { (ac_try="$ac_link"
29618case "(($ac_try" in
29619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29620 *) ac_try_echo=$ac_try;;
29621esac
29622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29623 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029624 ac_status=$?
29625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029627 { (case "(($ac_try" in
29628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629 *) ac_try_echo=$ac_try;;
29630esac
29631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29632 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029633 ac_status=$?
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); }; }; then
29636 :
29637else
29638 echo "$as_me: program exited with status $ac_status" >&5
29639echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029640sed 's/^/| /' conftest.$ac_ext >&5
29641
John Criswell7a73b802003-06-30 21:59:07 +000029642( exit $ac_status )
29643ac_cv_header_stdc=no
29644fi
Reid Spencera773bd52006-08-04 18:18:08 +000029645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29646fi
29647
29648
John Criswell7a73b802003-06-30 21:59:07 +000029649fi
29650fi
Reid Spencera773bd52006-08-04 18:18:08 +000029651{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29652echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029653if test $ac_cv_header_stdc = yes; then
29654
29655cat >>confdefs.h <<\_ACEOF
29656#define STDC_HEADERS 1
29657_ACEOF
29658
29659fi
29660
Reid Spencera773bd52006-08-04 18:18:08 +000029661{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29662echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029663if test "${ac_cv_header_sys_wait_h+set}" = set; then
29664 echo $ECHO_N "(cached) $ECHO_C" >&6
29665else
29666 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029667/* confdefs.h. */
29668_ACEOF
29669cat confdefs.h >>conftest.$ac_ext
29670cat >>conftest.$ac_ext <<_ACEOF
29671/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029672#include <sys/types.h>
29673#include <sys/wait.h>
29674#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000029675# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000029676#endif
29677#ifndef WIFEXITED
29678# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29679#endif
29680
John Criswell7a73b802003-06-30 21:59:07 +000029681int
29682main ()
29683{
29684 int s;
29685 wait (&s);
29686 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29687 ;
29688 return 0;
29689}
29690_ACEOF
29691rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029692if { (ac_try="$ac_compile"
29693case "(($ac_try" in
29694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29695 *) ac_try_echo=$ac_try;;
29696esac
29697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29698 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029699 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029700 grep -v '^ *+' conftest.er1 >conftest.err
29701 rm -f conftest.er1
29702 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029704 (exit $ac_status); } &&
29705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29706 { (case "(($ac_try" in
29707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29708 *) ac_try_echo=$ac_try;;
29709esac
29710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29711 (eval "$ac_try") 2>&5
29712 ac_status=$?
29713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); }; } &&
29715 { ac_try='test -s conftest.$ac_objext'
29716 { (case "(($ac_try" in
29717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718 *) ac_try_echo=$ac_try;;
29719esac
29720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721 (eval "$ac_try") 2>&5
29722 ac_status=$?
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029725 ac_cv_header_sys_wait_h=yes
29726else
29727 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029728sed 's/^/| /' conftest.$ac_ext >&5
29729
Reid Spencera773bd52006-08-04 18:18:08 +000029730 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000029731fi
Reid Spencera773bd52006-08-04 18:18:08 +000029732
29733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029734fi
Reid Spencera773bd52006-08-04 18:18:08 +000029735{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29736echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029737if test $ac_cv_header_sys_wait_h = yes; then
29738
29739cat >>confdefs.h <<\_ACEOF
29740#define HAVE_SYS_WAIT_H 1
29741_ACEOF
29742
29743fi
29744
Reid Spencera773bd52006-08-04 18:18:08 +000029745{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29746echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029747if test "${ac_cv_header_time+set}" = set; then
29748 echo $ECHO_N "(cached) $ECHO_C" >&6
29749else
29750 cat >conftest.$ac_ext <<_ACEOF
29751/* confdefs.h. */
29752_ACEOF
29753cat confdefs.h >>conftest.$ac_ext
29754cat >>conftest.$ac_ext <<_ACEOF
29755/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029756#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029757#include <sys/time.h>
29758#include <time.h>
29759
29760int
29761main ()
29762{
29763if ((struct tm *) 0)
29764return 0;
29765 ;
29766 return 0;
29767}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029768_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029769rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029770if { (ac_try="$ac_compile"
29771case "(($ac_try" in
29772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29773 *) ac_try_echo=$ac_try;;
29774esac
29775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29776 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029777 ac_status=$?
29778 grep -v '^ *+' conftest.er1 >conftest.err
29779 rm -f conftest.er1
29780 cat conftest.err >&5
29781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029782 (exit $ac_status); } &&
29783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29784 { (case "(($ac_try" in
29785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29786 *) ac_try_echo=$ac_try;;
29787esac
29788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29789 (eval "$ac_try") 2>&5
29790 ac_status=$?
29791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792 (exit $ac_status); }; } &&
29793 { ac_try='test -s conftest.$ac_objext'
29794 { (case "(($ac_try" in
29795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29796 *) ac_try_echo=$ac_try;;
29797esac
29798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29799 (eval "$ac_try") 2>&5
29800 ac_status=$?
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029803 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029804else
29805 echo "$as_me: failed program was:" >&5
29806sed 's/^/| /' conftest.$ac_ext >&5
29807
Reid Spencera773bd52006-08-04 18:18:08 +000029808 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029809fi
Reid Spencera773bd52006-08-04 18:18:08 +000029810
29811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029812fi
Reid Spencera773bd52006-08-04 18:18:08 +000029813{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29814echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029815if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029816
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029817cat >>confdefs.h <<\_ACEOF
29818#define TIME_WITH_SYS_TIME 1
29819_ACEOF
29820
29821fi
29822
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029823
Reid Spencer59473af2004-12-25 07:31:29 +000029824
29825
29826
29827
29828
29829
29830for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29831do
29832as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029833if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29836if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029837 echo $ECHO_N "(cached) $ECHO_C" >&6
29838fi
Reid Spencera773bd52006-08-04 18:18:08 +000029839ac_res=`eval echo '${'$as_ac_Header'}'`
29840 { echo "$as_me:$LINENO: result: $ac_res" >&5
29841echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029842else
29843 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029844{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29845echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029846cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029847/* confdefs.h. */
29848_ACEOF
29849cat confdefs.h >>conftest.$ac_ext
29850cat >>conftest.$ac_ext <<_ACEOF
29851/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029852$ac_includes_default
29853#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029854_ACEOF
29855rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029856if { (ac_try="$ac_compile"
29857case "(($ac_try" in
29858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29859 *) ac_try_echo=$ac_try;;
29860esac
29861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29862 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029863 ac_status=$?
29864 grep -v '^ *+' conftest.er1 >conftest.err
29865 rm -f conftest.er1
29866 cat conftest.err >&5
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029868 (exit $ac_status); } &&
29869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29870 { (case "(($ac_try" in
29871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29872 *) ac_try_echo=$ac_try;;
29873esac
29874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29875 (eval "$ac_try") 2>&5
29876 ac_status=$?
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); }; } &&
29879 { ac_try='test -s conftest.$ac_objext'
29880 { (case "(($ac_try" in
29881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882 *) ac_try_echo=$ac_try;;
29883esac
29884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885 (eval "$ac_try") 2>&5
29886 ac_status=$?
29887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029889 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029890else
29891 echo "$as_me: failed program was:" >&5
29892sed 's/^/| /' conftest.$ac_ext >&5
29893
Reid Spencera773bd52006-08-04 18:18:08 +000029894 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029895fi
Reid Spencera773bd52006-08-04 18:18:08 +000029896
29897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29898{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29899echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029900
Reid Spencer59473af2004-12-25 07:31:29 +000029901# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029902{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29903echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029904cat >conftest.$ac_ext <<_ACEOF
29905/* confdefs.h. */
29906_ACEOF
29907cat confdefs.h >>conftest.$ac_ext
29908cat >>conftest.$ac_ext <<_ACEOF
29909/* end confdefs.h. */
29910#include <$ac_header>
29911_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029912if { (ac_try="$ac_cpp conftest.$ac_ext"
29913case "(($ac_try" in
29914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29915 *) ac_try_echo=$ac_try;;
29916esac
29917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029919 ac_status=$?
29920 grep -v '^ *+' conftest.er1 >conftest.err
29921 rm -f conftest.er1
29922 cat conftest.err >&5
29923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029924 (exit $ac_status); } >/dev/null; then
29925 if test -s conftest.err; then
29926 ac_cpp_err=$ac_c_preproc_warn_flag
29927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29928 else
29929 ac_cpp_err=
29930 fi
29931else
29932 ac_cpp_err=yes
29933fi
29934if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029935 ac_header_preproc=yes
29936else
29937 echo "$as_me: failed program was:" >&5
29938sed 's/^/| /' conftest.$ac_ext >&5
29939
29940 ac_header_preproc=no
29941fi
Reid Spencera773bd52006-08-04 18:18:08 +000029942
Reid Spencer59473af2004-12-25 07:31:29 +000029943rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029944{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29945echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029946
29947# So? What about this header?
29948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29949 yes:no: )
29950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29951echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29953echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29954 ac_header_preproc=yes
29955 ;;
29956 no:yes:* )
29957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29958echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29960echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29962echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29964echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29966echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29968echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029969 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029970## ----------------------------------- ##
29971## Report this to llvmbugs@cs.uiuc.edu ##
29972## ----------------------------------- ##
29973_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029974 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029975 ;;
29976esac
Reid Spencera773bd52006-08-04 18:18:08 +000029977{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029980 echo $ECHO_N "(cached) $ECHO_C" >&6
29981else
29982 eval "$as_ac_Header=\$ac_header_preproc"
29983fi
Reid Spencera773bd52006-08-04 18:18:08 +000029984ac_res=`eval echo '${'$as_ac_Header'}'`
29985 { echo "$as_me:$LINENO: result: $ac_res" >&5
29986echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029987
29988fi
Reid Spencer59473af2004-12-25 07:31:29 +000029989if test `eval echo '${'$as_ac_Header'}'` = yes; then
29990 cat >>confdefs.h <<_ACEOF
29991#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029992_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029993
29994fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029995
Reid Spencer59473af2004-12-25 07:31:29 +000029996done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029997
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029998
29999
Reid Spencer59473af2004-12-25 07:31:29 +000030000
30001
30002
30003
Douglas Gregor071d73d2009-05-18 17:21:34 +000030004for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000030005do
30006as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030007if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030011 echo $ECHO_N "(cached) $ECHO_C" >&6
30012fi
Reid Spencera773bd52006-08-04 18:18:08 +000030013ac_res=`eval echo '${'$as_ac_Header'}'`
30014 { echo "$as_me:$LINENO: result: $ac_res" >&5
30015echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030016else
30017 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030018{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30019echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030020cat >conftest.$ac_ext <<_ACEOF
30021/* confdefs.h. */
30022_ACEOF
30023cat confdefs.h >>conftest.$ac_ext
30024cat >>conftest.$ac_ext <<_ACEOF
30025/* end confdefs.h. */
30026$ac_includes_default
30027#include <$ac_header>
30028_ACEOF
30029rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030030if { (ac_try="$ac_compile"
30031case "(($ac_try" in
30032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30033 *) ac_try_echo=$ac_try;;
30034esac
30035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30036 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030037 ac_status=$?
30038 grep -v '^ *+' conftest.er1 >conftest.err
30039 rm -f conftest.er1
30040 cat conftest.err >&5
30041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030042 (exit $ac_status); } &&
30043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30044 { (case "(($ac_try" in
30045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30046 *) ac_try_echo=$ac_try;;
30047esac
30048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30049 (eval "$ac_try") 2>&5
30050 ac_status=$?
30051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052 (exit $ac_status); }; } &&
30053 { ac_try='test -s conftest.$ac_objext'
30054 { (case "(($ac_try" in
30055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30056 *) ac_try_echo=$ac_try;;
30057esac
30058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30059 (eval "$ac_try") 2>&5
30060 ac_status=$?
30061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030063 ac_header_compiler=yes
30064else
30065 echo "$as_me: failed program was:" >&5
30066sed 's/^/| /' conftest.$ac_ext >&5
30067
Reid Spencera773bd52006-08-04 18:18:08 +000030068 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000030069fi
Reid Spencera773bd52006-08-04 18:18:08 +000030070
30071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30072{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30073echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030074
30075# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030076{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30077echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030078cat >conftest.$ac_ext <<_ACEOF
30079/* confdefs.h. */
30080_ACEOF
30081cat confdefs.h >>conftest.$ac_ext
30082cat >>conftest.$ac_ext <<_ACEOF
30083/* end confdefs.h. */
30084#include <$ac_header>
30085_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030086if { (ac_try="$ac_cpp conftest.$ac_ext"
30087case "(($ac_try" in
30088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30089 *) ac_try_echo=$ac_try;;
30090esac
30091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030093 ac_status=$?
30094 grep -v '^ *+' conftest.er1 >conftest.err
30095 rm -f conftest.er1
30096 cat conftest.err >&5
30097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030098 (exit $ac_status); } >/dev/null; then
30099 if test -s conftest.err; then
30100 ac_cpp_err=$ac_c_preproc_warn_flag
30101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30102 else
30103 ac_cpp_err=
30104 fi
30105else
30106 ac_cpp_err=yes
30107fi
30108if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000030109 ac_header_preproc=yes
30110else
30111 echo "$as_me: failed program was:" >&5
30112sed 's/^/| /' conftest.$ac_ext >&5
30113
30114 ac_header_preproc=no
30115fi
Reid Spencera773bd52006-08-04 18:18:08 +000030116
Reid Spencer59473af2004-12-25 07:31:29 +000030117rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030118{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30119echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030120
30121# So? What about this header?
30122case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30123 yes:no: )
30124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30125echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30127echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30128 ac_header_preproc=yes
30129 ;;
30130 no:yes:* )
30131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30132echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30134echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30136echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30138echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30140echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30142echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030143 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030144## ----------------------------------- ##
30145## Report this to llvmbugs@cs.uiuc.edu ##
30146## ----------------------------------- ##
30147_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030148 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030149 ;;
30150esac
Reid Spencera773bd52006-08-04 18:18:08 +000030151{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030154 echo $ECHO_N "(cached) $ECHO_C" >&6
30155else
30156 eval "$as_ac_Header=\$ac_header_preproc"
30157fi
Reid Spencera773bd52006-08-04 18:18:08 +000030158ac_res=`eval echo '${'$as_ac_Header'}'`
30159 { echo "$as_me:$LINENO: result: $ac_res" >&5
30160echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030161
30162fi
30163if test `eval echo '${'$as_ac_Header'}'` = yes; then
30164 cat >>confdefs.h <<_ACEOF
30165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30166_ACEOF
30167
30168fi
30169
30170done
30171
30172
Douglas Gregor071d73d2009-05-18 17:21:34 +000030173
30174for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000030175do
30176as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30177if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30180if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30181 echo $ECHO_N "(cached) $ECHO_C" >&6
30182fi
30183ac_res=`eval echo '${'$as_ac_Header'}'`
30184 { echo "$as_me:$LINENO: result: $ac_res" >&5
30185echo "${ECHO_T}$ac_res" >&6; }
30186else
30187 # Is the header compilable?
30188{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30189echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30190cat >conftest.$ac_ext <<_ACEOF
30191/* confdefs.h. */
30192_ACEOF
30193cat confdefs.h >>conftest.$ac_ext
30194cat >>conftest.$ac_ext <<_ACEOF
30195/* end confdefs.h. */
30196$ac_includes_default
30197#include <$ac_header>
30198_ACEOF
30199rm -f conftest.$ac_objext
30200if { (ac_try="$ac_compile"
30201case "(($ac_try" in
30202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30203 *) ac_try_echo=$ac_try;;
30204esac
30205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30206 (eval "$ac_compile") 2>conftest.er1
30207 ac_status=$?
30208 grep -v '^ *+' conftest.er1 >conftest.err
30209 rm -f conftest.er1
30210 cat conftest.err >&5
30211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030212 (exit $ac_status); } &&
30213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30214 { (case "(($ac_try" in
30215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30216 *) ac_try_echo=$ac_try;;
30217esac
30218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30219 (eval "$ac_try") 2>&5
30220 ac_status=$?
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); }; } &&
30223 { ac_try='test -s conftest.$ac_objext'
30224 { (case "(($ac_try" in
30225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30226 *) ac_try_echo=$ac_try;;
30227esac
30228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30229 (eval "$ac_try") 2>&5
30230 ac_status=$?
30231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030233 ac_header_compiler=yes
30234else
30235 echo "$as_me: failed program was:" >&5
30236sed 's/^/| /' conftest.$ac_ext >&5
30237
30238 ac_header_compiler=no
30239fi
30240
30241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30242{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30243echo "${ECHO_T}$ac_header_compiler" >&6; }
30244
30245# Is the header present?
30246{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30248cat >conftest.$ac_ext <<_ACEOF
30249/* confdefs.h. */
30250_ACEOF
30251cat confdefs.h >>conftest.$ac_ext
30252cat >>conftest.$ac_ext <<_ACEOF
30253/* end confdefs.h. */
30254#include <$ac_header>
30255_ACEOF
30256if { (ac_try="$ac_cpp conftest.$ac_ext"
30257case "(($ac_try" in
30258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30259 *) ac_try_echo=$ac_try;;
30260esac
30261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30263 ac_status=$?
30264 grep -v '^ *+' conftest.er1 >conftest.err
30265 rm -f conftest.er1
30266 cat conftest.err >&5
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030268 (exit $ac_status); } >/dev/null; then
30269 if test -s conftest.err; then
30270 ac_cpp_err=$ac_c_preproc_warn_flag
30271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30272 else
30273 ac_cpp_err=
30274 fi
30275else
30276 ac_cpp_err=yes
30277fi
30278if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030279 ac_header_preproc=yes
30280else
30281 echo "$as_me: failed program was:" >&5
30282sed 's/^/| /' conftest.$ac_ext >&5
30283
30284 ac_header_preproc=no
30285fi
30286
30287rm -f conftest.err conftest.$ac_ext
30288{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30289echo "${ECHO_T}$ac_header_preproc" >&6; }
30290
30291# So? What about this header?
30292case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30293 yes:no: )
30294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30295echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30297echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30298 ac_header_preproc=yes
30299 ;;
30300 no:yes:* )
30301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30302echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30304echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30306echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30308echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30310echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30312echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30313 ( cat <<\_ASBOX
30314## ----------------------------------- ##
30315## Report this to llvmbugs@cs.uiuc.edu ##
30316## ----------------------------------- ##
30317_ASBOX
30318 ) | sed "s/^/$as_me: WARNING: /" >&2
30319 ;;
30320esac
30321{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30324 echo $ECHO_N "(cached) $ECHO_C" >&6
30325else
30326 eval "$as_ac_Header=\$ac_header_preproc"
30327fi
30328ac_res=`eval echo '${'$as_ac_Header'}'`
30329 { echo "$as_me:$LINENO: result: $ac_res" >&5
30330echo "${ECHO_T}$ac_res" >&6; }
30331
30332fi
30333if test `eval echo '${'$as_ac_Header'}'` = yes; then
30334 cat >>confdefs.h <<_ACEOF
30335#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30336_ACEOF
30337
30338fi
30339
30340done
Reid Spencer59473af2004-12-25 07:31:29 +000030341
30342
30343
30344
Reid Spencerbe3e4192007-08-17 05:45:26 +000030345
30346for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030347do
30348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030353 echo $ECHO_N "(cached) $ECHO_C" >&6
30354fi
Reid Spencera773bd52006-08-04 18:18:08 +000030355ac_res=`eval echo '${'$as_ac_Header'}'`
30356 { echo "$as_me:$LINENO: result: $ac_res" >&5
30357echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030358else
30359 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030360{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30361echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030362cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030363/* confdefs.h. */
30364_ACEOF
30365cat confdefs.h >>conftest.$ac_ext
30366cat >>conftest.$ac_ext <<_ACEOF
30367/* end confdefs.h. */
30368$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030369#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030370_ACEOF
30371rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030372if { (ac_try="$ac_compile"
30373case "(($ac_try" in
30374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30375 *) ac_try_echo=$ac_try;;
30376esac
30377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30378 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030379 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030380 grep -v '^ *+' conftest.er1 >conftest.err
30381 rm -f conftest.er1
30382 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030384 (exit $ac_status); } &&
30385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30386 { (case "(($ac_try" in
30387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30388 *) ac_try_echo=$ac_try;;
30389esac
30390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30391 (eval "$ac_try") 2>&5
30392 ac_status=$?
30393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394 (exit $ac_status); }; } &&
30395 { ac_try='test -s conftest.$ac_objext'
30396 { (case "(($ac_try" in
30397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30398 *) ac_try_echo=$ac_try;;
30399esac
30400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30401 (eval "$ac_try") 2>&5
30402 ac_status=$?
30403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030405 ac_header_compiler=yes
30406else
30407 echo "$as_me: failed program was:" >&5
30408sed 's/^/| /' conftest.$ac_ext >&5
30409
Reid Spencera773bd52006-08-04 18:18:08 +000030410 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030411fi
Reid Spencera773bd52006-08-04 18:18:08 +000030412
30413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30414{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30415echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030416
30417# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030418{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30419echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030420cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030421/* confdefs.h. */
30422_ACEOF
30423cat confdefs.h >>conftest.$ac_ext
30424cat >>conftest.$ac_ext <<_ACEOF
30425/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030426#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030427_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030428if { (ac_try="$ac_cpp conftest.$ac_ext"
30429case "(($ac_try" in
30430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30431 *) ac_try_echo=$ac_try;;
30432esac
30433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030435 ac_status=$?
30436 grep -v '^ *+' conftest.er1 >conftest.err
30437 rm -f conftest.er1
30438 cat conftest.err >&5
30439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030440 (exit $ac_status); } >/dev/null; then
30441 if test -s conftest.err; then
30442 ac_cpp_err=$ac_c_preproc_warn_flag
30443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30444 else
30445 ac_cpp_err=
30446 fi
30447else
30448 ac_cpp_err=yes
30449fi
30450if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030451 ac_header_preproc=yes
30452else
30453 echo "$as_me: failed program was:" >&5
30454sed 's/^/| /' conftest.$ac_ext >&5
30455
30456 ac_header_preproc=no
30457fi
Reid Spencera773bd52006-08-04 18:18:08 +000030458
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030459rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030460{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30461echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030462
30463# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30465 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30469echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030470 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030471 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030472 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30474echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30476echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30478echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30480echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30484echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030485 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030486## ----------------------------------- ##
30487## Report this to llvmbugs@cs.uiuc.edu ##
30488## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030489_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030490 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030491 ;;
30492esac
Reid Spencera773bd52006-08-04 18:18:08 +000030493{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030496 echo $ECHO_N "(cached) $ECHO_C" >&6
30497else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030498 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030499fi
Reid Spencera773bd52006-08-04 18:18:08 +000030500ac_res=`eval echo '${'$as_ac_Header'}'`
30501 { echo "$as_me:$LINENO: result: $ac_res" >&5
30502echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030503
30504fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030505if test `eval echo '${'$as_ac_Header'}'` = yes; then
30506 cat >>confdefs.h <<_ACEOF
30507#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000030508_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000030509
30510fi
John Criswell7ed43ad2004-07-19 16:12:29 +000030511
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030512done
30513
John Criswell7ed43ad2004-07-19 16:12:29 +000030514
Reid Spencercdb08a32006-06-05 16:11:07 +000030515
Reid Spencera6d990a2006-09-14 06:17:21 +000030516
Douglas Gregor01746742009-05-11 18:05:52 +000030517
30518for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000030519do
30520as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030525 echo $ECHO_N "(cached) $ECHO_C" >&6
30526fi
Reid Spencera773bd52006-08-04 18:18:08 +000030527ac_res=`eval echo '${'$as_ac_Header'}'`
30528 { echo "$as_me:$LINENO: result: $ac_res" >&5
30529echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030530else
30531 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030532{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30533echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030534cat >conftest.$ac_ext <<_ACEOF
30535/* confdefs.h. */
30536_ACEOF
30537cat confdefs.h >>conftest.$ac_ext
30538cat >>conftest.$ac_ext <<_ACEOF
30539/* end confdefs.h. */
30540$ac_includes_default
30541#include <$ac_header>
30542_ACEOF
30543rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030544if { (ac_try="$ac_compile"
30545case "(($ac_try" in
30546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30547 *) ac_try_echo=$ac_try;;
30548esac
30549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30550 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030551 ac_status=$?
30552 grep -v '^ *+' conftest.er1 >conftest.err
30553 rm -f conftest.er1
30554 cat conftest.err >&5
30555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030556 (exit $ac_status); } &&
30557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30558 { (case "(($ac_try" in
30559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30560 *) ac_try_echo=$ac_try;;
30561esac
30562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30563 (eval "$ac_try") 2>&5
30564 ac_status=$?
30565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566 (exit $ac_status); }; } &&
30567 { ac_try='test -s conftest.$ac_objext'
30568 { (case "(($ac_try" in
30569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30570 *) ac_try_echo=$ac_try;;
30571esac
30572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30573 (eval "$ac_try") 2>&5
30574 ac_status=$?
30575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030577 ac_header_compiler=yes
30578else
30579 echo "$as_me: failed program was:" >&5
30580sed 's/^/| /' conftest.$ac_ext >&5
30581
Reid Spencera773bd52006-08-04 18:18:08 +000030582 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000030583fi
Reid Spencera773bd52006-08-04 18:18:08 +000030584
30585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30586{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30587echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030588
30589# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030590{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30591echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030592cat >conftest.$ac_ext <<_ACEOF
30593/* confdefs.h. */
30594_ACEOF
30595cat confdefs.h >>conftest.$ac_ext
30596cat >>conftest.$ac_ext <<_ACEOF
30597/* end confdefs.h. */
30598#include <$ac_header>
30599_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030600if { (ac_try="$ac_cpp conftest.$ac_ext"
30601case "(($ac_try" in
30602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30603 *) ac_try_echo=$ac_try;;
30604esac
30605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030607 ac_status=$?
30608 grep -v '^ *+' conftest.er1 >conftest.err
30609 rm -f conftest.er1
30610 cat conftest.err >&5
30611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030612 (exit $ac_status); } >/dev/null; then
30613 if test -s conftest.err; then
30614 ac_cpp_err=$ac_c_preproc_warn_flag
30615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30616 else
30617 ac_cpp_err=
30618 fi
30619else
30620 ac_cpp_err=yes
30621fi
30622if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000030623 ac_header_preproc=yes
30624else
30625 echo "$as_me: failed program was:" >&5
30626sed 's/^/| /' conftest.$ac_ext >&5
30627
30628 ac_header_preproc=no
30629fi
Reid Spencera773bd52006-08-04 18:18:08 +000030630
Chris Lattner0b142592005-11-14 06:57:34 +000030631rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030632{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30633echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030634
30635# So? What about this header?
30636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30637 yes:no: )
30638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30639echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30641echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30642 ac_header_preproc=yes
30643 ;;
30644 no:yes:* )
30645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30646echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30648echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30650echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30652echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30654echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30656echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030657 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000030658## ----------------------------------- ##
30659## Report this to llvmbugs@cs.uiuc.edu ##
30660## ----------------------------------- ##
30661_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030662 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000030663 ;;
30664esac
Reid Spencera773bd52006-08-04 18:18:08 +000030665{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030668 echo $ECHO_N "(cached) $ECHO_C" >&6
30669else
30670 eval "$as_ac_Header=\$ac_header_preproc"
30671fi
Reid Spencera773bd52006-08-04 18:18:08 +000030672ac_res=`eval echo '${'$as_ac_Header'}'`
30673 { echo "$as_me:$LINENO: result: $ac_res" >&5
30674echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030675
30676fi
30677if test `eval echo '${'$as_ac_Header'}'` = yes; then
30678 cat >>confdefs.h <<_ACEOF
30679#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30680_ACEOF
30681
30682fi
30683
30684done
30685
Reid Spencer0a262ba2005-08-24 10:07:20 +000030686if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030687
30688for ac_header in pthread.h
30689do
30690as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30691if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030695 echo $ECHO_N "(cached) $ECHO_C" >&6
30696fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030697ac_res=`eval echo '${'$as_ac_Header'}'`
30698 { echo "$as_me:$LINENO: result: $ac_res" >&5
30699echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030700else
30701 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030702{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30703echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030704cat >conftest.$ac_ext <<_ACEOF
30705/* confdefs.h. */
30706_ACEOF
30707cat confdefs.h >>conftest.$ac_ext
30708cat >>conftest.$ac_ext <<_ACEOF
30709/* end confdefs.h. */
30710$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000030711#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030712_ACEOF
30713rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030714if { (ac_try="$ac_compile"
30715case "(($ac_try" in
30716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30717 *) ac_try_echo=$ac_try;;
30718esac
30719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30720 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030721 ac_status=$?
30722 grep -v '^ *+' conftest.er1 >conftest.err
30723 rm -f conftest.er1
30724 cat conftest.err >&5
30725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030726 (exit $ac_status); } &&
30727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30728 { (case "(($ac_try" in
30729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30730 *) ac_try_echo=$ac_try;;
30731esac
30732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30733 (eval "$ac_try") 2>&5
30734 ac_status=$?
30735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736 (exit $ac_status); }; } &&
30737 { ac_try='test -s conftest.$ac_objext'
30738 { (case "(($ac_try" in
30739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30740 *) ac_try_echo=$ac_try;;
30741esac
30742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30743 (eval "$ac_try") 2>&5
30744 ac_status=$?
30745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030747 ac_header_compiler=yes
30748else
30749 echo "$as_me: failed program was:" >&5
30750sed 's/^/| /' conftest.$ac_ext >&5
30751
Reid Spencera773bd52006-08-04 18:18:08 +000030752 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000030753fi
Reid Spencera773bd52006-08-04 18:18:08 +000030754
30755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30756{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30757echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030758
30759# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030760{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30761echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030762cat >conftest.$ac_ext <<_ACEOF
30763/* confdefs.h. */
30764_ACEOF
30765cat confdefs.h >>conftest.$ac_ext
30766cat >>conftest.$ac_ext <<_ACEOF
30767/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000030768#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030769_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030770if { (ac_try="$ac_cpp conftest.$ac_ext"
30771case "(($ac_try" in
30772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30773 *) ac_try_echo=$ac_try;;
30774esac
30775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030777 ac_status=$?
30778 grep -v '^ *+' conftest.er1 >conftest.err
30779 rm -f conftest.er1
30780 cat conftest.err >&5
30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030782 (exit $ac_status); } >/dev/null; then
30783 if test -s conftest.err; then
30784 ac_cpp_err=$ac_c_preproc_warn_flag
30785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30786 else
30787 ac_cpp_err=
30788 fi
30789else
30790 ac_cpp_err=yes
30791fi
30792if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030793 ac_header_preproc=yes
30794else
30795 echo "$as_me: failed program was:" >&5
30796sed 's/^/| /' conftest.$ac_ext >&5
30797
30798 ac_header_preproc=no
30799fi
Reid Spencera773bd52006-08-04 18:18:08 +000030800
Reid Spencer0a262ba2005-08-24 10:07:20 +000030801rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030802{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30803echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030804
30805# So? What about this header?
30806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30807 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30809echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30811echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030812 ac_header_preproc=yes
30813 ;;
30814 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30816echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30818echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30820echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30822echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30824echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30826echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030827 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030828## ----------------------------------- ##
30829## Report this to llvmbugs@cs.uiuc.edu ##
30830## ----------------------------------- ##
30831_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030832 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030833 ;;
30834esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030835{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030838 echo $ECHO_N "(cached) $ECHO_C" >&6
30839else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030840 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030841fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030842ac_res=`eval echo '${'$as_ac_Header'}'`
30843 { echo "$as_me:$LINENO: result: $ac_res" >&5
30844echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030845
30846fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030847if test `eval echo '${'$as_ac_Header'}'` = yes; then
30848 cat >>confdefs.h <<_ACEOF
30849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30850_ACEOF
30851 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030852
30853else
30854 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030855
30856fi
30857
Reid Spencerbe3e4192007-08-17 05:45:26 +000030858done
Reid Spencer1000b732006-12-01 00:37:14 +000030859
30860else
30861 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030862
30863fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030864
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030865if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030866
30867
30868for ac_header in ffi.h ffi/ffi.h
30869do
30870as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30875 echo $ECHO_N "(cached) $ECHO_C" >&6
30876fi
30877ac_res=`eval echo '${'$as_ac_Header'}'`
30878 { echo "$as_me:$LINENO: result: $ac_res" >&5
30879echo "${ECHO_T}$ac_res" >&6; }
30880else
30881 # Is the header compilable?
30882{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30883echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30884cat >conftest.$ac_ext <<_ACEOF
30885/* confdefs.h. */
30886_ACEOF
30887cat confdefs.h >>conftest.$ac_ext
30888cat >>conftest.$ac_ext <<_ACEOF
30889/* end confdefs.h. */
30890$ac_includes_default
30891#include <$ac_header>
30892_ACEOF
30893rm -f conftest.$ac_objext
30894if { (ac_try="$ac_compile"
30895case "(($ac_try" in
30896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30897 *) ac_try_echo=$ac_try;;
30898esac
30899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30900 (eval "$ac_compile") 2>conftest.er1
30901 ac_status=$?
30902 grep -v '^ *+' conftest.er1 >conftest.err
30903 rm -f conftest.er1
30904 cat conftest.err >&5
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030906 (exit $ac_status); } &&
30907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30908 { (case "(($ac_try" in
30909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30910 *) ac_try_echo=$ac_try;;
30911esac
30912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30913 (eval "$ac_try") 2>&5
30914 ac_status=$?
30915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916 (exit $ac_status); }; } &&
30917 { ac_try='test -s conftest.$ac_objext'
30918 { (case "(($ac_try" in
30919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30920 *) ac_try_echo=$ac_try;;
30921esac
30922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30923 (eval "$ac_try") 2>&5
30924 ac_status=$?
30925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30926 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030927 ac_header_compiler=yes
30928else
30929 echo "$as_me: failed program was:" >&5
30930sed 's/^/| /' conftest.$ac_ext >&5
30931
30932 ac_header_compiler=no
30933fi
30934
30935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30936{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30937echo "${ECHO_T}$ac_header_compiler" >&6; }
30938
30939# Is the header present?
30940{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30941echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30942cat >conftest.$ac_ext <<_ACEOF
30943/* confdefs.h. */
30944_ACEOF
30945cat confdefs.h >>conftest.$ac_ext
30946cat >>conftest.$ac_ext <<_ACEOF
30947/* end confdefs.h. */
30948#include <$ac_header>
30949_ACEOF
30950if { (ac_try="$ac_cpp conftest.$ac_ext"
30951case "(($ac_try" in
30952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953 *) ac_try_echo=$ac_try;;
30954esac
30955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30957 ac_status=$?
30958 grep -v '^ *+' conftest.er1 >conftest.err
30959 rm -f conftest.er1
30960 cat conftest.err >&5
30961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030962 (exit $ac_status); } >/dev/null; then
30963 if test -s conftest.err; then
30964 ac_cpp_err=$ac_c_preproc_warn_flag
30965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30966 else
30967 ac_cpp_err=
30968 fi
30969else
30970 ac_cpp_err=yes
30971fi
30972if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030973 ac_header_preproc=yes
30974else
30975 echo "$as_me: failed program was:" >&5
30976sed 's/^/| /' conftest.$ac_ext >&5
30977
30978 ac_header_preproc=no
30979fi
30980
30981rm -f conftest.err conftest.$ac_ext
30982{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30983echo "${ECHO_T}$ac_header_preproc" >&6; }
30984
30985# So? What about this header?
30986case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30987 yes:no: )
30988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30989echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30991echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30992 ac_header_preproc=yes
30993 ;;
30994 no:yes:* )
30995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30996echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30998echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31000echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31002echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31004echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31006echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31007 ( cat <<\_ASBOX
31008## ----------------------------------- ##
31009## Report this to llvmbugs@cs.uiuc.edu ##
31010## ----------------------------------- ##
31011_ASBOX
31012 ) | sed "s/^/$as_me: WARNING: /" >&2
31013 ;;
31014esac
31015{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31018 echo $ECHO_N "(cached) $ECHO_C" >&6
31019else
31020 eval "$as_ac_Header=\$ac_header_preproc"
31021fi
31022ac_res=`eval echo '${'$as_ac_Header'}'`
31023 { echo "$as_me:$LINENO: result: $ac_res" >&5
31024echo "${ECHO_T}$ac_res" >&6; }
31025
31026fi
31027if test `eval echo '${'$as_ac_Header'}'` = yes; then
31028 cat >>confdefs.h <<_ACEOF
31029#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31030_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031031
31032fi
31033
31034done
31035
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000031036fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031037
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031038
Reid Spencer8085cff2005-01-16 02:58:39 +000031039
Reid Spencerb2ed05262006-11-03 18:04:08 +000031040 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31041echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31042if test "${ac_cv_huge_val_sanity+set}" = set; then
31043 echo $ECHO_N "(cached) $ECHO_C" >&6
31044else
31045
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031046 ac_ext=cpp
31047ac_cpp='$CXXCPP $CPPFLAGS'
31048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000031051
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031052 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000031053 if test "$cross_compiling" = yes; then
31054 ac_cv_huge_val_sanity=yes
31055else
31056 cat >conftest.$ac_ext <<_ACEOF
31057/* confdefs.h. */
31058_ACEOF
31059cat confdefs.h >>conftest.$ac_ext
31060cat >>conftest.$ac_ext <<_ACEOF
31061/* end confdefs.h. */
31062#include <math.h>
31063int
31064main ()
31065{
31066double x = HUGE_VAL; return x != x;
31067 ;
31068 return 0;
31069}
31070_ACEOF
31071rm -f conftest$ac_exeext
31072if { (ac_try="$ac_link"
31073case "(($ac_try" in
31074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31075 *) ac_try_echo=$ac_try;;
31076esac
31077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31078 (eval "$ac_link") 2>&5
31079 ac_status=$?
31080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31082 { (case "(($ac_try" in
31083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31084 *) ac_try_echo=$ac_try;;
31085esac
31086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31087 (eval "$ac_try") 2>&5
31088 ac_status=$?
31089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31090 (exit $ac_status); }; }; then
31091 ac_cv_huge_val_sanity=yes
31092else
31093 echo "$as_me: program exited with status $ac_status" >&5
31094echo "$as_me: failed program was:" >&5
31095sed 's/^/| /' conftest.$ac_ext >&5
31096
31097( exit $ac_status )
31098ac_cv_huge_val_sanity=no
31099fi
31100rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31101fi
31102
31103
31104 ac_ext=c
31105ac_cpp='$CPP $CPPFLAGS'
31106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31108ac_compiler_gnu=$ac_cv_c_compiler_gnu
31109
31110
31111fi
31112{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31113echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31114 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31115
31116
Reid Spencera773bd52006-08-04 18:18:08 +000031117{ echo "$as_me:$LINENO: checking for pid_t" >&5
31118echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031119if test "${ac_cv_type_pid_t+set}" = set; then
31120 echo $ECHO_N "(cached) $ECHO_C" >&6
31121else
31122 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031123/* confdefs.h. */
31124_ACEOF
31125cat confdefs.h >>conftest.$ac_ext
31126cat >>conftest.$ac_ext <<_ACEOF
31127/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031128$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031129typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031130int
31131main ()
31132{
Reid Spencera773bd52006-08-04 18:18:08 +000031133if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031134 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031135if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031136 return 0;
31137 ;
31138 return 0;
31139}
31140_ACEOF
31141rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031142if { (ac_try="$ac_compile"
31143case "(($ac_try" in
31144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31145 *) ac_try_echo=$ac_try;;
31146esac
31147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31148 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031149 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031150 grep -v '^ *+' conftest.er1 >conftest.err
31151 rm -f conftest.er1
31152 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031154 (exit $ac_status); } &&
31155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31156 { (case "(($ac_try" in
31157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31158 *) ac_try_echo=$ac_try;;
31159esac
31160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31161 (eval "$ac_try") 2>&5
31162 ac_status=$?
31163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164 (exit $ac_status); }; } &&
31165 { ac_try='test -s conftest.$ac_objext'
31166 { (case "(($ac_try" in
31167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31168 *) ac_try_echo=$ac_try;;
31169esac
31170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31171 (eval "$ac_try") 2>&5
31172 ac_status=$?
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031175 ac_cv_type_pid_t=yes
31176else
31177 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031178sed 's/^/| /' conftest.$ac_ext >&5
31179
Reid Spencera773bd52006-08-04 18:18:08 +000031180 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031181fi
Reid Spencera773bd52006-08-04 18:18:08 +000031182
31183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031184fi
Reid Spencera773bd52006-08-04 18:18:08 +000031185{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31186echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031187if test $ac_cv_type_pid_t = yes; then
31188 :
31189else
31190
31191cat >>confdefs.h <<_ACEOF
31192#define pid_t int
31193_ACEOF
31194
31195fi
31196
Reid Spencera773bd52006-08-04 18:18:08 +000031197{ echo "$as_me:$LINENO: checking for size_t" >&5
31198echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031199if test "${ac_cv_type_size_t+set}" = set; then
31200 echo $ECHO_N "(cached) $ECHO_C" >&6
31201else
31202 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031203/* confdefs.h. */
31204_ACEOF
31205cat confdefs.h >>conftest.$ac_ext
31206cat >>conftest.$ac_ext <<_ACEOF
31207/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031208$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031209typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031210int
31211main ()
31212{
Reid Spencera773bd52006-08-04 18:18:08 +000031213if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031214 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031215if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031216 return 0;
31217 ;
31218 return 0;
31219}
31220_ACEOF
31221rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031222if { (ac_try="$ac_compile"
31223case "(($ac_try" in
31224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31225 *) ac_try_echo=$ac_try;;
31226esac
31227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31228 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031229 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031230 grep -v '^ *+' conftest.er1 >conftest.err
31231 rm -f conftest.er1
31232 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031234 (exit $ac_status); } &&
31235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31236 { (case "(($ac_try" in
31237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31238 *) ac_try_echo=$ac_try;;
31239esac
31240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31241 (eval "$ac_try") 2>&5
31242 ac_status=$?
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); }; } &&
31245 { ac_try='test -s conftest.$ac_objext'
31246 { (case "(($ac_try" in
31247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31248 *) ac_try_echo=$ac_try;;
31249esac
31250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31251 (eval "$ac_try") 2>&5
31252 ac_status=$?
31253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31254 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031255 ac_cv_type_size_t=yes
31256else
31257 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031258sed 's/^/| /' conftest.$ac_ext >&5
31259
Reid Spencera773bd52006-08-04 18:18:08 +000031260 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031261fi
Reid Spencera773bd52006-08-04 18:18:08 +000031262
31263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031264fi
Reid Spencera773bd52006-08-04 18:18:08 +000031265{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31266echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031267if test $ac_cv_type_size_t = yes; then
31268 :
31269else
31270
31271cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031272#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000031273_ACEOF
31274
31275fi
31276
Reid Spencera773bd52006-08-04 18:18:08 +000031277{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31278echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031279if test "${ac_cv_type_signal+set}" = set; then
31280 echo $ECHO_N "(cached) $ECHO_C" >&6
31281else
31282 cat >conftest.$ac_ext <<_ACEOF
31283/* confdefs.h. */
31284_ACEOF
31285cat confdefs.h >>conftest.$ac_ext
31286cat >>conftest.$ac_ext <<_ACEOF
31287/* end confdefs.h. */
31288#include <sys/types.h>
31289#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031290
31291int
31292main ()
31293{
Reid Spencera773bd52006-08-04 18:18:08 +000031294return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031295 ;
31296 return 0;
31297}
31298_ACEOF
31299rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031300if { (ac_try="$ac_compile"
31301case "(($ac_try" in
31302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31303 *) ac_try_echo=$ac_try;;
31304esac
31305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31306 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031307 ac_status=$?
31308 grep -v '^ *+' conftest.er1 >conftest.err
31309 rm -f conftest.er1
31310 cat conftest.err >&5
31311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031312 (exit $ac_status); } &&
31313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31314 { (case "(($ac_try" in
31315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31316 *) ac_try_echo=$ac_try;;
31317esac
31318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31319 (eval "$ac_try") 2>&5
31320 ac_status=$?
31321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322 (exit $ac_status); }; } &&
31323 { ac_try='test -s conftest.$ac_objext'
31324 { (case "(($ac_try" in
31325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31326 *) ac_try_echo=$ac_try;;
31327esac
31328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31329 (eval "$ac_try") 2>&5
31330 ac_status=$?
31331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000031333 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031334else
31335 echo "$as_me: failed program was:" >&5
31336sed 's/^/| /' conftest.$ac_ext >&5
31337
Reid Spencera773bd52006-08-04 18:18:08 +000031338 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031339fi
Reid Spencera773bd52006-08-04 18:18:08 +000031340
31341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031342fi
Reid Spencera773bd52006-08-04 18:18:08 +000031343{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31344echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031345
31346cat >>confdefs.h <<_ACEOF
31347#define RETSIGTYPE $ac_cv_type_signal
31348_ACEOF
31349
31350
Reid Spencera773bd52006-08-04 18:18:08 +000031351{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31352echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031353if test "${ac_cv_struct_tm+set}" = set; then
31354 echo $ECHO_N "(cached) $ECHO_C" >&6
31355else
31356 cat >conftest.$ac_ext <<_ACEOF
31357/* confdefs.h. */
31358_ACEOF
31359cat confdefs.h >>conftest.$ac_ext
31360cat >>conftest.$ac_ext <<_ACEOF
31361/* end confdefs.h. */
31362#include <sys/types.h>
31363#include <time.h>
31364
31365int
31366main ()
31367{
Bill Wendlingebcceee2009-04-18 11:20:33 +000031368struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031369 ;
31370 return 0;
31371}
31372_ACEOF
31373rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031374if { (ac_try="$ac_compile"
31375case "(($ac_try" in
31376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31377 *) ac_try_echo=$ac_try;;
31378esac
31379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31380 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031381 ac_status=$?
31382 grep -v '^ *+' conftest.er1 >conftest.err
31383 rm -f conftest.er1
31384 cat conftest.err >&5
31385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031386 (exit $ac_status); } &&
31387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31388 { (case "(($ac_try" in
31389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31390 *) ac_try_echo=$ac_try;;
31391esac
31392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31393 (eval "$ac_try") 2>&5
31394 ac_status=$?
31395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396 (exit $ac_status); }; } &&
31397 { ac_try='test -s conftest.$ac_objext'
31398 { (case "(($ac_try" in
31399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31400 *) ac_try_echo=$ac_try;;
31401esac
31402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31403 (eval "$ac_try") 2>&5
31404 ac_status=$?
31405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031407 ac_cv_struct_tm=time.h
31408else
31409 echo "$as_me: failed program was:" >&5
31410sed 's/^/| /' conftest.$ac_ext >&5
31411
Reid Spencera773bd52006-08-04 18:18:08 +000031412 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031413fi
Reid Spencera773bd52006-08-04 18:18:08 +000031414
31415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031416fi
Reid Spencera773bd52006-08-04 18:18:08 +000031417{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31418echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031419if test $ac_cv_struct_tm = sys/time.h; then
31420
31421cat >>confdefs.h <<\_ACEOF
31422#define TM_IN_SYS_TIME 1
31423_ACEOF
31424
31425fi
31426
Reid Spencera773bd52006-08-04 18:18:08 +000031427{ echo "$as_me:$LINENO: checking for int64_t" >&5
31428echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031429if test "${ac_cv_type_int64_t+set}" = set; then
31430 echo $ECHO_N "(cached) $ECHO_C" >&6
31431else
31432 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031433/* confdefs.h. */
31434_ACEOF
31435cat confdefs.h >>conftest.$ac_ext
31436cat >>conftest.$ac_ext <<_ACEOF
31437/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031438$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031439typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031440int
31441main ()
31442{
Reid Spencera773bd52006-08-04 18:18:08 +000031443if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031444 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031445if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031446 return 0;
31447 ;
31448 return 0;
31449}
31450_ACEOF
31451rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031452if { (ac_try="$ac_compile"
31453case "(($ac_try" in
31454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31455 *) ac_try_echo=$ac_try;;
31456esac
31457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31458 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031459 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031460 grep -v '^ *+' conftest.er1 >conftest.err
31461 rm -f conftest.er1
31462 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031464 (exit $ac_status); } &&
31465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31466 { (case "(($ac_try" in
31467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31468 *) ac_try_echo=$ac_try;;
31469esac
31470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31471 (eval "$ac_try") 2>&5
31472 ac_status=$?
31473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31474 (exit $ac_status); }; } &&
31475 { ac_try='test -s conftest.$ac_objext'
31476 { (case "(($ac_try" in
31477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31478 *) ac_try_echo=$ac_try;;
31479esac
31480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31481 (eval "$ac_try") 2>&5
31482 ac_status=$?
31483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031485 ac_cv_type_int64_t=yes
31486else
31487 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031488sed 's/^/| /' conftest.$ac_ext >&5
31489
Reid Spencera773bd52006-08-04 18:18:08 +000031490 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031491fi
Reid Spencera773bd52006-08-04 18:18:08 +000031492
31493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031494fi
Reid Spencera773bd52006-08-04 18:18:08 +000031495{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31496echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031497if test $ac_cv_type_int64_t = yes; then
31498
31499cat >>confdefs.h <<_ACEOF
31500#define HAVE_INT64_T 1
31501_ACEOF
31502
31503
31504else
31505 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31506echo "$as_me: error: Type int64_t required but not found" >&2;}
31507 { (exit 1); exit 1; }; }
31508fi
31509
Reid Spencera773bd52006-08-04 18:18:08 +000031510{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31511echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031512if test "${ac_cv_type_uint64_t+set}" = set; then
31513 echo $ECHO_N "(cached) $ECHO_C" >&6
31514else
31515 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031516/* confdefs.h. */
31517_ACEOF
31518cat confdefs.h >>conftest.$ac_ext
31519cat >>conftest.$ac_ext <<_ACEOF
31520/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031521$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031522typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031523int
31524main ()
31525{
Reid Spencera773bd52006-08-04 18:18:08 +000031526if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031527 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031528if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031529 return 0;
31530 ;
31531 return 0;
31532}
31533_ACEOF
31534rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031535if { (ac_try="$ac_compile"
31536case "(($ac_try" in
31537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538 *) ac_try_echo=$ac_try;;
31539esac
31540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031542 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031543 grep -v '^ *+' conftest.er1 >conftest.err
31544 rm -f conftest.er1
31545 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031547 (exit $ac_status); } &&
31548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31549 { (case "(($ac_try" in
31550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551 *) ac_try_echo=$ac_try;;
31552esac
31553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554 (eval "$ac_try") 2>&5
31555 ac_status=$?
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557 (exit $ac_status); }; } &&
31558 { ac_try='test -s conftest.$ac_objext'
31559 { (case "(($ac_try" in
31560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31561 *) ac_try_echo=$ac_try;;
31562esac
31563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31564 (eval "$ac_try") 2>&5
31565 ac_status=$?
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031568 ac_cv_type_uint64_t=yes
31569else
31570 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031571sed 's/^/| /' conftest.$ac_ext >&5
31572
Reid Spencera773bd52006-08-04 18:18:08 +000031573 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031574fi
Reid Spencera773bd52006-08-04 18:18:08 +000031575
31576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031577fi
Reid Spencera773bd52006-08-04 18:18:08 +000031578{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31579echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031580if test $ac_cv_type_uint64_t = yes; then
31581
31582cat >>confdefs.h <<_ACEOF
31583#define HAVE_UINT64_T 1
31584_ACEOF
31585
31586
31587else
Reid Spencera773bd52006-08-04 18:18:08 +000031588 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31589echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031590if test "${ac_cv_type_u_int64_t+set}" = set; then
31591 echo $ECHO_N "(cached) $ECHO_C" >&6
31592else
31593 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000031594/* confdefs.h. */
31595_ACEOF
31596cat confdefs.h >>conftest.$ac_ext
31597cat >>conftest.$ac_ext <<_ACEOF
31598/* end confdefs.h. */
31599$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031600typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000031601int
31602main ()
31603{
Reid Spencera773bd52006-08-04 18:18:08 +000031604if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000031605 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031606if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000031607 return 0;
31608 ;
31609 return 0;
31610}
31611_ACEOF
31612rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031613if { (ac_try="$ac_compile"
31614case "(($ac_try" in
31615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31616 *) ac_try_echo=$ac_try;;
31617esac
31618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31619 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000031620 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031621 grep -v '^ *+' conftest.er1 >conftest.err
31622 rm -f conftest.er1
31623 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000031624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031625 (exit $ac_status); } &&
31626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31627 { (case "(($ac_try" in
31628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31629 *) ac_try_echo=$ac_try;;
31630esac
31631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31632 (eval "$ac_try") 2>&5
31633 ac_status=$?
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); }; } &&
31636 { ac_try='test -s conftest.$ac_objext'
31637 { (case "(($ac_try" in
31638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31639 *) ac_try_echo=$ac_try;;
31640esac
31641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31642 (eval "$ac_try") 2>&5
31643 ac_status=$?
31644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31645 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000031646 ac_cv_type_u_int64_t=yes
31647else
31648 echo "$as_me: failed program was:" >&5
31649sed 's/^/| /' conftest.$ac_ext >&5
31650
Reid Spencera773bd52006-08-04 18:18:08 +000031651 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000031652fi
Reid Spencera773bd52006-08-04 18:18:08 +000031653
31654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000031655fi
Reid Spencera773bd52006-08-04 18:18:08 +000031656{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31657echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031658if test $ac_cv_type_u_int64_t = yes; then
31659
31660cat >>confdefs.h <<_ACEOF
31661#define HAVE_U_INT64_T 1
31662_ACEOF
31663
31664
Misha Brukmanceca9042004-09-02 23:02:30 +000031665else
31666 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31667echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31668 { (exit 1); exit 1; }; }
31669fi
31670
John Criswell679ff312004-09-02 18:44:44 +000031671fi
31672
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031673
31674
31675
31676
31677
31678
31679
Reid Spencerf4bb9b12006-01-19 08:22:40 +000031680
31681
Reid Spencerdf3be822006-01-23 08:15:53 +000031682for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031683do
31684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031685{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31687if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031688 echo $ECHO_N "(cached) $ECHO_C" >&6
31689else
31690 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031691/* confdefs.h. */
31692_ACEOF
31693cat confdefs.h >>conftest.$ac_ext
31694cat >>conftest.$ac_ext <<_ACEOF
31695/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31698#define $ac_func innocuous_$ac_func
31699
31700/* System header to define __stub macros and hopefully few prototypes,
31701 which can conflict with char $ac_func (); below.
31702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31703 <limits.h> exists even on freestanding compilers. */
31704
31705#ifdef __STDC__
31706# include <limits.h>
31707#else
31708# include <assert.h>
31709#endif
31710
31711#undef $ac_func
31712
Reid Spencera773bd52006-08-04 18:18:08 +000031713/* Override any GCC internal prototype to avoid an error.
31714 Use char because int might match the return type of a GCC
31715 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031716#ifdef __cplusplus
31717extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031718#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031719char $ac_func ();
31720/* The GNU C library defines this for functions which it implements
31721 to always fail with ENOSYS. Some functions are actually named
31722 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031723#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031724choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031725#endif
John Criswell7a73b802003-06-30 21:59:07 +000031726
John Criswell7a73b802003-06-30 21:59:07 +000031727int
31728main ()
31729{
Reid Spencera773bd52006-08-04 18:18:08 +000031730return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031731 ;
31732 return 0;
31733}
31734_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031735rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031736if { (ac_try="$ac_link"
31737case "(($ac_try" in
31738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31739 *) ac_try_echo=$ac_try;;
31740esac
31741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31742 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031743 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031744 grep -v '^ *+' conftest.er1 >conftest.err
31745 rm -f conftest.er1
31746 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031748 (exit $ac_status); } &&
31749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31750 { (case "(($ac_try" in
31751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31752 *) ac_try_echo=$ac_try;;
31753esac
31754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31755 (eval "$ac_try") 2>&5
31756 ac_status=$?
31757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758 (exit $ac_status); }; } &&
31759 { ac_try='test -s conftest$ac_exeext'
31760 { (case "(($ac_try" in
31761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31762 *) ac_try_echo=$ac_try;;
31763esac
31764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31765 (eval "$ac_try") 2>&5
31766 ac_status=$?
31767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31768 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031769 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031770else
31771 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031772sed 's/^/| /' conftest.$ac_ext >&5
31773
Reid Spencera773bd52006-08-04 18:18:08 +000031774 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031775fi
Reid Spencera773bd52006-08-04 18:18:08 +000031776
Bill Wendlingebcceee2009-04-18 11:20:33 +000031777rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031778 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031779fi
Reid Spencera773bd52006-08-04 18:18:08 +000031780ac_res=`eval echo '${'$as_ac_var'}'`
31781 { echo "$as_me:$LINENO: result: $ac_res" >&5
31782echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031783if test `eval echo '${'$as_ac_var'}'` = yes; then
31784 cat >>confdefs.h <<_ACEOF
31785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031786_ACEOF
31787
31788fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031789done
John Criswell7a73b802003-06-30 21:59:07 +000031790
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031791
31792
31793
Reid Spencer6af3d262004-12-15 04:01:48 +000031794
Reid Spencer96cf5872007-07-13 10:05:30 +000031795for ac_func in powf fmodf strtof round
31796do
31797as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31798{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31799echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31800if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31801 echo $ECHO_N "(cached) $ECHO_C" >&6
31802else
31803 cat >conftest.$ac_ext <<_ACEOF
31804/* confdefs.h. */
31805_ACEOF
31806cat confdefs.h >>conftest.$ac_ext
31807cat >>conftest.$ac_ext <<_ACEOF
31808/* end confdefs.h. */
31809/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31811#define $ac_func innocuous_$ac_func
31812
31813/* System header to define __stub macros and hopefully few prototypes,
31814 which can conflict with char $ac_func (); below.
31815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31816 <limits.h> exists even on freestanding compilers. */
31817
31818#ifdef __STDC__
31819# include <limits.h>
31820#else
31821# include <assert.h>
31822#endif
31823
31824#undef $ac_func
31825
31826/* Override any GCC internal prototype to avoid an error.
31827 Use char because int might match the return type of a GCC
31828 builtin and then its argument prototype would still apply. */
31829#ifdef __cplusplus
31830extern "C"
31831#endif
31832char $ac_func ();
31833/* The GNU C library defines this for functions which it implements
31834 to always fail with ENOSYS. Some functions are actually named
31835 something starting with __ and the normal name is an alias. */
31836#if defined __stub_$ac_func || defined __stub___$ac_func
31837choke me
31838#endif
31839
31840int
31841main ()
31842{
31843return $ac_func ();
31844 ;
31845 return 0;
31846}
31847_ACEOF
31848rm -f conftest.$ac_objext conftest$ac_exeext
31849if { (ac_try="$ac_link"
31850case "(($ac_try" in
31851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31852 *) ac_try_echo=$ac_try;;
31853esac
31854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31855 (eval "$ac_link") 2>conftest.er1
31856 ac_status=$?
31857 grep -v '^ *+' conftest.er1 >conftest.err
31858 rm -f conftest.er1
31859 cat conftest.err >&5
31860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031861 (exit $ac_status); } &&
31862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31863 { (case "(($ac_try" in
31864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31865 *) ac_try_echo=$ac_try;;
31866esac
31867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31868 (eval "$ac_try") 2>&5
31869 ac_status=$?
31870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871 (exit $ac_status); }; } &&
31872 { ac_try='test -s conftest$ac_exeext'
31873 { (case "(($ac_try" in
31874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31875 *) ac_try_echo=$ac_try;;
31876esac
31877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31878 (eval "$ac_try") 2>&5
31879 ac_status=$?
31880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31881 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031882 eval "$as_ac_var=yes"
31883else
31884 echo "$as_me: failed program was:" >&5
31885sed 's/^/| /' conftest.$ac_ext >&5
31886
31887 eval "$as_ac_var=no"
31888fi
31889
Bill Wendlingebcceee2009-04-18 11:20:33 +000031890rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031891 conftest$ac_exeext conftest.$ac_ext
31892fi
31893ac_res=`eval echo '${'$as_ac_var'}'`
31894 { echo "$as_me:$LINENO: result: $ac_res" >&5
31895echo "${ECHO_T}$ac_res" >&6; }
31896if test `eval echo '${'$as_ac_var'}'` = yes; then
31897 cat >>confdefs.h <<_ACEOF
31898#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31899_ACEOF
31900
31901fi
31902done
31903
31904
31905
31906
31907
Reid Spencer6af3d262004-12-15 04:01:48 +000031908
Reid Spencerb90645c2007-02-16 19:17:20 +000031909for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31910do
31911as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31912{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31913echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31914if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31915 echo $ECHO_N "(cached) $ECHO_C" >&6
31916else
31917 cat >conftest.$ac_ext <<_ACEOF
31918/* confdefs.h. */
31919_ACEOF
31920cat confdefs.h >>conftest.$ac_ext
31921cat >>conftest.$ac_ext <<_ACEOF
31922/* end confdefs.h. */
31923/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31925#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031926
Reid Spencerb90645c2007-02-16 19:17:20 +000031927/* System header to define __stub macros and hopefully few prototypes,
31928 which can conflict with char $ac_func (); below.
31929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31930 <limits.h> exists even on freestanding compilers. */
31931
31932#ifdef __STDC__
31933# include <limits.h>
31934#else
31935# include <assert.h>
31936#endif
31937
31938#undef $ac_func
31939
31940/* Override any GCC internal prototype to avoid an error.
31941 Use char because int might match the return type of a GCC
31942 builtin and then its argument prototype would still apply. */
31943#ifdef __cplusplus
31944extern "C"
31945#endif
31946char $ac_func ();
31947/* The GNU C library defines this for functions which it implements
31948 to always fail with ENOSYS. Some functions are actually named
31949 something starting with __ and the normal name is an alias. */
31950#if defined __stub_$ac_func || defined __stub___$ac_func
31951choke me
31952#endif
31953
31954int
31955main ()
31956{
31957return $ac_func ();
31958 ;
31959 return 0;
31960}
31961_ACEOF
31962rm -f conftest.$ac_objext conftest$ac_exeext
31963if { (ac_try="$ac_link"
31964case "(($ac_try" in
31965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31966 *) ac_try_echo=$ac_try;;
31967esac
31968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31969 (eval "$ac_link") 2>conftest.er1
31970 ac_status=$?
31971 grep -v '^ *+' conftest.er1 >conftest.err
31972 rm -f conftest.er1
31973 cat conftest.err >&5
31974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031975 (exit $ac_status); } &&
31976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31977 { (case "(($ac_try" in
31978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31979 *) ac_try_echo=$ac_try;;
31980esac
31981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31982 (eval "$ac_try") 2>&5
31983 ac_status=$?
31984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985 (exit $ac_status); }; } &&
31986 { ac_try='test -s conftest$ac_exeext'
31987 { (case "(($ac_try" in
31988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31989 *) ac_try_echo=$ac_try;;
31990esac
31991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31992 (eval "$ac_try") 2>&5
31993 ac_status=$?
31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000031996 eval "$as_ac_var=yes"
31997else
31998 echo "$as_me: failed program was:" >&5
31999sed 's/^/| /' conftest.$ac_ext >&5
32000
32001 eval "$as_ac_var=no"
32002fi
32003
Bill Wendlingebcceee2009-04-18 11:20:33 +000032004rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000032005 conftest$ac_exeext conftest.$ac_ext
32006fi
32007ac_res=`eval echo '${'$as_ac_var'}'`
32008 { echo "$as_me:$LINENO: result: $ac_res" >&5
32009echo "${ECHO_T}$ac_res" >&6; }
32010if test `eval echo '${'$as_ac_var'}'` = yes; then
32011 cat >>confdefs.h <<_ACEOF
32012#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32013_ACEOF
32014
32015fi
32016done
32017
32018
32019
32020
32021for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000032022do
32023as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032024{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32025echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32026if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032027 echo $ECHO_N "(cached) $ECHO_C" >&6
32028else
32029 cat >conftest.$ac_ext <<_ACEOF
32030/* confdefs.h. */
32031_ACEOF
32032cat confdefs.h >>conftest.$ac_ext
32033cat >>conftest.$ac_ext <<_ACEOF
32034/* end confdefs.h. */
32035/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32037#define $ac_func innocuous_$ac_func
32038
32039/* System header to define __stub macros and hopefully few prototypes,
32040 which can conflict with char $ac_func (); below.
32041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32042 <limits.h> exists even on freestanding compilers. */
32043
32044#ifdef __STDC__
32045# include <limits.h>
32046#else
32047# include <assert.h>
32048#endif
32049
32050#undef $ac_func
32051
Reid Spencera773bd52006-08-04 18:18:08 +000032052/* Override any GCC internal prototype to avoid an error.
32053 Use char because int might match the return type of a GCC
32054 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000032055#ifdef __cplusplus
32056extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000032057#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000032058char $ac_func ();
32059/* The GNU C library defines this for functions which it implements
32060 to always fail with ENOSYS. Some functions are actually named
32061 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032062#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000032063choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000032064#endif
32065
32066int
32067main ()
32068{
Reid Spencera773bd52006-08-04 18:18:08 +000032069return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000032070 ;
32071 return 0;
32072}
32073_ACEOF
32074rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032075if { (ac_try="$ac_link"
32076case "(($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_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000032082 ac_status=$?
32083 grep -v '^ *+' conftest.er1 >conftest.err
32084 rm -f conftest.er1
32085 cat conftest.err >&5
32086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032087 (exit $ac_status); } &&
32088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32089 { (case "(($ac_try" in
32090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32091 *) ac_try_echo=$ac_try;;
32092esac
32093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32094 (eval "$ac_try") 2>&5
32095 ac_status=$?
32096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097 (exit $ac_status); }; } &&
32098 { ac_try='test -s conftest$ac_exeext'
32099 { (case "(($ac_try" in
32100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32101 *) ac_try_echo=$ac_try;;
32102esac
32103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32104 (eval "$ac_try") 2>&5
32105 ac_status=$?
32106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032108 eval "$as_ac_var=yes"
32109else
32110 echo "$as_me: failed program was:" >&5
32111sed 's/^/| /' conftest.$ac_ext >&5
32112
Reid Spencera773bd52006-08-04 18:18:08 +000032113 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000032114fi
Reid Spencera773bd52006-08-04 18:18:08 +000032115
Bill Wendlingebcceee2009-04-18 11:20:33 +000032116rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000032117 conftest$ac_exeext conftest.$ac_ext
32118fi
Reid Spencera773bd52006-08-04 18:18:08 +000032119ac_res=`eval echo '${'$as_ac_var'}'`
32120 { echo "$as_me:$LINENO: result: $ac_res" >&5
32121echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000032122if test `eval echo '${'$as_ac_var'}'` = yes; then
32123 cat >>confdefs.h <<_ACEOF
32124#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32125_ACEOF
32126
32127fi
32128done
32129
32130
32131
32132
32133
32134
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032135for ac_func in mktemp realpath sbrk setrlimit strdup
32136do
32137as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32138{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32139echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32140if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32141 echo $ECHO_N "(cached) $ECHO_C" >&6
32142else
32143 cat >conftest.$ac_ext <<_ACEOF
32144/* confdefs.h. */
32145_ACEOF
32146cat confdefs.h >>conftest.$ac_ext
32147cat >>conftest.$ac_ext <<_ACEOF
32148/* end confdefs.h. */
32149/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32151#define $ac_func innocuous_$ac_func
32152
32153/* System header to define __stub macros and hopefully few prototypes,
32154 which can conflict with char $ac_func (); below.
32155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32156 <limits.h> exists even on freestanding compilers. */
32157
32158#ifdef __STDC__
32159# include <limits.h>
32160#else
32161# include <assert.h>
32162#endif
32163
32164#undef $ac_func
32165
32166/* Override any GCC internal prototype to avoid an error.
32167 Use char because int might match the return type of a GCC
32168 builtin and then its argument prototype would still apply. */
32169#ifdef __cplusplus
32170extern "C"
32171#endif
32172char $ac_func ();
32173/* The GNU C library defines this for functions which it implements
32174 to always fail with ENOSYS. Some functions are actually named
32175 something starting with __ and the normal name is an alias. */
32176#if defined __stub_$ac_func || defined __stub___$ac_func
32177choke me
32178#endif
32179
32180int
32181main ()
32182{
32183return $ac_func ();
32184 ;
32185 return 0;
32186}
32187_ACEOF
32188rm -f conftest.$ac_objext conftest$ac_exeext
32189if { (ac_try="$ac_link"
32190case "(($ac_try" in
32191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32192 *) ac_try_echo=$ac_try;;
32193esac
32194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32195 (eval "$ac_link") 2>conftest.er1
32196 ac_status=$?
32197 grep -v '^ *+' conftest.er1 >conftest.err
32198 rm -f conftest.er1
32199 cat conftest.err >&5
32200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201 (exit $ac_status); } &&
32202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32203 { (case "(($ac_try" in
32204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32205 *) ac_try_echo=$ac_try;;
32206esac
32207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32208 (eval "$ac_try") 2>&5
32209 ac_status=$?
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211 (exit $ac_status); }; } &&
32212 { ac_try='test -s conftest$ac_exeext'
32213 { (case "(($ac_try" in
32214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215 *) ac_try_echo=$ac_try;;
32216esac
32217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218 (eval "$ac_try") 2>&5
32219 ac_status=$?
32220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221 (exit $ac_status); }; }; then
32222 eval "$as_ac_var=yes"
32223else
32224 echo "$as_me: failed program was:" >&5
32225sed 's/^/| /' conftest.$ac_ext >&5
32226
32227 eval "$as_ac_var=no"
32228fi
32229
32230rm -f core conftest.err conftest.$ac_objext \
32231 conftest$ac_exeext conftest.$ac_ext
32232fi
32233ac_res=`eval echo '${'$as_ac_var'}'`
32234 { echo "$as_me:$LINENO: result: $ac_res" >&5
32235echo "${ECHO_T}$ac_res" >&6; }
32236if test `eval echo '${'$as_ac_var'}'` = yes; then
32237 cat >>confdefs.h <<_ACEOF
32238#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32239_ACEOF
32240
32241fi
32242done
Reid Spencerdf3be822006-01-23 08:15:53 +000032243
32244
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032245
32246
32247for ac_func in strerror strerror_r strerror_s
Reid Spencer7931a782004-12-27 06:15:02 +000032248do
32249as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032250{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32251echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32252if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032253 echo $ECHO_N "(cached) $ECHO_C" >&6
32254else
32255 cat >conftest.$ac_ext <<_ACEOF
32256/* confdefs.h. */
32257_ACEOF
32258cat confdefs.h >>conftest.$ac_ext
32259cat >>conftest.$ac_ext <<_ACEOF
32260/* end confdefs.h. */
32261/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32263#define $ac_func innocuous_$ac_func
32264
32265/* System header to define __stub macros and hopefully few prototypes,
32266 which can conflict with char $ac_func (); below.
32267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32268 <limits.h> exists even on freestanding compilers. */
32269
32270#ifdef __STDC__
32271# include <limits.h>
32272#else
32273# include <assert.h>
32274#endif
32275
32276#undef $ac_func
32277
Reid Spencera773bd52006-08-04 18:18:08 +000032278/* Override any GCC internal prototype to avoid an error.
32279 Use char because int might match the return type of a GCC
32280 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000032281#ifdef __cplusplus
32282extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000032283#endif
Reid Spencer7931a782004-12-27 06:15:02 +000032284char $ac_func ();
32285/* The GNU C library defines this for functions which it implements
32286 to always fail with ENOSYS. Some functions are actually named
32287 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032288#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000032289choke me
Reid Spencer7931a782004-12-27 06:15:02 +000032290#endif
32291
32292int
32293main ()
32294{
Reid Spencera773bd52006-08-04 18:18:08 +000032295return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000032296 ;
32297 return 0;
32298}
32299_ACEOF
32300rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032301if { (ac_try="$ac_link"
32302case "(($ac_try" in
32303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32304 *) ac_try_echo=$ac_try;;
32305esac
32306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32307 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000032308 ac_status=$?
32309 grep -v '^ *+' conftest.er1 >conftest.err
32310 rm -f conftest.er1
32311 cat conftest.err >&5
32312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032313 (exit $ac_status); } &&
32314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32315 { (case "(($ac_try" in
32316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32317 *) ac_try_echo=$ac_try;;
32318esac
32319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32320 (eval "$ac_try") 2>&5
32321 ac_status=$?
32322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323 (exit $ac_status); }; } &&
32324 { ac_try='test -s conftest$ac_exeext'
32325 { (case "(($ac_try" in
32326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32327 *) ac_try_echo=$ac_try;;
32328esac
32329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32330 (eval "$ac_try") 2>&5
32331 ac_status=$?
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032334 eval "$as_ac_var=yes"
32335else
32336 echo "$as_me: failed program was:" >&5
32337sed 's/^/| /' conftest.$ac_ext >&5
32338
Reid Spencera773bd52006-08-04 18:18:08 +000032339 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000032340fi
Reid Spencera773bd52006-08-04 18:18:08 +000032341
Bill Wendlingebcceee2009-04-18 11:20:33 +000032342rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000032343 conftest$ac_exeext conftest.$ac_ext
32344fi
Reid Spencera773bd52006-08-04 18:18:08 +000032345ac_res=`eval echo '${'$as_ac_var'}'`
32346 { echo "$as_me:$LINENO: result: $ac_res" >&5
32347echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000032348if test `eval echo '${'$as_ac_var'}'` = yes; then
32349 cat >>confdefs.h <<_ACEOF
32350#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32351_ACEOF
32352
32353fi
32354done
32355
32356
Reid Spencerba46ca32004-12-31 05:49:15 +000032357
32358
Chris Lattner0b142592005-11-14 06:57:34 +000032359
Chris Lattner511f11d2005-11-14 07:25:50 +000032360for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032361do
32362as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032363{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32364echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32365if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032366 echo $ECHO_N "(cached) $ECHO_C" >&6
32367else
32368 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032369/* confdefs.h. */
32370_ACEOF
32371cat confdefs.h >>conftest.$ac_ext
32372cat >>conftest.$ac_ext <<_ACEOF
32373/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032374/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32376#define $ac_func innocuous_$ac_func
32377
32378/* System header to define __stub macros and hopefully few prototypes,
32379 which can conflict with char $ac_func (); below.
32380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32381 <limits.h> exists even on freestanding compilers. */
32382
32383#ifdef __STDC__
32384# include <limits.h>
32385#else
32386# include <assert.h>
32387#endif
32388
32389#undef $ac_func
32390
Reid Spencera773bd52006-08-04 18:18:08 +000032391/* Override any GCC internal prototype to avoid an error.
32392 Use char because int might match the return type of a GCC
32393 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032394#ifdef __cplusplus
32395extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032396#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032397char $ac_func ();
32398/* The GNU C library defines this for functions which it implements
32399 to always fail with ENOSYS. Some functions are actually named
32400 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032401#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032402choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032403#endif
John Criswell7a73b802003-06-30 21:59:07 +000032404
John Criswell7a73b802003-06-30 21:59:07 +000032405int
32406main ()
32407{
Reid Spencera773bd52006-08-04 18:18:08 +000032408return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032409 ;
32410 return 0;
32411}
32412_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032413rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032414if { (ac_try="$ac_link"
32415case "(($ac_try" in
32416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32417 *) ac_try_echo=$ac_try;;
32418esac
32419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32420 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032421 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032422 grep -v '^ *+' conftest.er1 >conftest.err
32423 rm -f conftest.er1
32424 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032426 (exit $ac_status); } &&
32427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32428 { (case "(($ac_try" in
32429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32430 *) ac_try_echo=$ac_try;;
32431esac
32432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32433 (eval "$ac_try") 2>&5
32434 ac_status=$?
32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 (exit $ac_status); }; } &&
32437 { ac_try='test -s conftest$ac_exeext'
32438 { (case "(($ac_try" in
32439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32440 *) ac_try_echo=$ac_try;;
32441esac
32442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32443 (eval "$ac_try") 2>&5
32444 ac_status=$?
32445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032447 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000032448else
32449 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032450sed 's/^/| /' conftest.$ac_ext >&5
32451
Reid Spencera773bd52006-08-04 18:18:08 +000032452 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032453fi
Reid Spencera773bd52006-08-04 18:18:08 +000032454
Bill Wendlingebcceee2009-04-18 11:20:33 +000032455rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032456 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032457fi
Reid Spencera773bd52006-08-04 18:18:08 +000032458ac_res=`eval echo '${'$as_ac_var'}'`
32459 { echo "$as_me:$LINENO: result: $ac_res" >&5
32460echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032461if test `eval echo '${'$as_ac_var'}'` = yes; then
32462 cat >>confdefs.h <<_ACEOF
32463#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000032464_ACEOF
32465
32466fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032467done
John Criswell7a73b802003-06-30 21:59:07 +000032468
Reid Spencercdb08a32006-06-05 16:11:07 +000032469
32470
32471
32472
Reid Spencerafa22e22006-12-10 23:29:19 +000032473for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000032474do
32475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032476{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32478if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032479 echo $ECHO_N "(cached) $ECHO_C" >&6
32480else
32481 cat >conftest.$ac_ext <<_ACEOF
32482/* confdefs.h. */
32483_ACEOF
32484cat confdefs.h >>conftest.$ac_ext
32485cat >>conftest.$ac_ext <<_ACEOF
32486/* end confdefs.h. */
32487/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32489#define $ac_func innocuous_$ac_func
32490
32491/* System header to define __stub macros and hopefully few prototypes,
32492 which can conflict with char $ac_func (); below.
32493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32494 <limits.h> exists even on freestanding compilers. */
32495
32496#ifdef __STDC__
32497# include <limits.h>
32498#else
32499# include <assert.h>
32500#endif
32501
32502#undef $ac_func
32503
Reid Spencera773bd52006-08-04 18:18:08 +000032504/* Override any GCC internal prototype to avoid an error.
32505 Use char because int might match the return type of a GCC
32506 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000032507#ifdef __cplusplus
32508extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000032509#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000032510char $ac_func ();
32511/* The GNU C library defines this for functions which it implements
32512 to always fail with ENOSYS. Some functions are actually named
32513 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032514#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000032515choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000032516#endif
32517
32518int
32519main ()
32520{
Reid Spencera773bd52006-08-04 18:18:08 +000032521return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000032522 ;
32523 return 0;
32524}
32525_ACEOF
32526rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032527if { (ac_try="$ac_link"
32528case "(($ac_try" in
32529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32530 *) ac_try_echo=$ac_try;;
32531esac
32532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32533 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000032534 ac_status=$?
32535 grep -v '^ *+' conftest.er1 >conftest.err
32536 rm -f conftest.er1
32537 cat conftest.err >&5
32538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032539 (exit $ac_status); } &&
32540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32541 { (case "(($ac_try" in
32542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32543 *) ac_try_echo=$ac_try;;
32544esac
32545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32546 (eval "$ac_try") 2>&5
32547 ac_status=$?
32548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549 (exit $ac_status); }; } &&
32550 { ac_try='test -s conftest$ac_exeext'
32551 { (case "(($ac_try" in
32552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32553 *) ac_try_echo=$ac_try;;
32554esac
32555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32556 (eval "$ac_try") 2>&5
32557 ac_status=$?
32558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32559 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032560 eval "$as_ac_var=yes"
32561else
32562 echo "$as_me: failed program was:" >&5
32563sed 's/^/| /' conftest.$ac_ext >&5
32564
Reid Spencera773bd52006-08-04 18:18:08 +000032565 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000032566fi
Reid Spencera773bd52006-08-04 18:18:08 +000032567
Bill Wendlingebcceee2009-04-18 11:20:33 +000032568rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000032569 conftest$ac_exeext conftest.$ac_ext
32570fi
Reid Spencera773bd52006-08-04 18:18:08 +000032571ac_res=`eval echo '${'$as_ac_var'}'`
32572 { echo "$as_me:$LINENO: result: $ac_res" >&5
32573echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000032574if test `eval echo '${'$as_ac_var'}'` = yes; then
32575 cat >>confdefs.h <<_ACEOF
32576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32577_ACEOF
32578
32579fi
32580done
32581
Reid Spencera773bd52006-08-04 18:18:08 +000032582{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32583echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032584if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032585 echo $ECHO_N "(cached) $ECHO_C" >&6
32586else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032587 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032588ac_cpp='$CPP $CPPFLAGS'
32589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32591ac_compiler_gnu=$ac_cv_c_compiler_gnu
32592
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032593 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032594 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032595else
32596 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032597
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032598 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000032599_ACEOF
32600cat confdefs.h >>conftest.$ac_ext
32601cat >>conftest.$ac_ext <<_ACEOF
32602/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032603
John Criswella0137d32003-10-13 16:22:01 +000032604#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000032605#include <stdlib.h>
32606
John Criswella0137d32003-10-13 16:22:01 +000032607int
32608main ()
32609{
32610
Reid Spencer2706f8c2004-09-19 23:53:36 +000032611volatile double A, B;
32612char Buffer[100];
32613A = 1;
32614A /= 10.0;
32615sprintf(Buffer, "%a", A);
32616B = atof(Buffer);
32617if (A != B)
32618 return (1);
32619if (A != 0x1.999999999999ap-4)
32620 return (1);
32621return (0);
John Criswella0137d32003-10-13 16:22:01 +000032622 ;
32623 return 0;
32624}
32625_ACEOF
32626rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032627if { (ac_try="$ac_link"
32628case "(($ac_try" in
32629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32630 *) ac_try_echo=$ac_try;;
32631esac
32632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32633 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032634 ac_status=$?
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032637 { (case "(($ac_try" in
32638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32639 *) ac_try_echo=$ac_try;;
32640esac
32641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32642 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032643 ac_status=$?
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032646 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000032647else
32648 echo "$as_me: program exited with status $ac_status" >&5
32649echo "$as_me: failed program was:" >&5
32650sed 's/^/| /' conftest.$ac_ext >&5
32651
32652( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000032653llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032654fi
Reid Spencera773bd52006-08-04 18:18:08 +000032655rm -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 +000032656fi
Reid Spencera773bd52006-08-04 18:18:08 +000032657
32658
Reid Spencer2706f8c2004-09-19 23:53:36 +000032659 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032660ac_cpp='$CPP $CPPFLAGS'
32661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32663ac_compiler_gnu=$ac_cv_c_compiler_gnu
32664
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032665fi
Reid Spencera773bd52006-08-04 18:18:08 +000032666{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32667echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032668 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000032669
32670cat >>confdefs.h <<\_ACEOF
32671#define HAVE_PRINTF_A 1
32672_ACEOF
32673
Reid Spencer2706f8c2004-09-19 23:53:36 +000032674 fi
John Criswella0137d32003-10-13 16:22:01 +000032675
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032676# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32677# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000032678{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32679echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032680if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000032681 echo $ECHO_N "(cached) $ECHO_C" >&6
32682else
John Criswell0021c312004-02-13 21:57:29 +000032683 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000032684/* confdefs.h. */
32685_ACEOF
32686cat confdefs.h >>conftest.$ac_ext
32687cat >>conftest.$ac_ext <<_ACEOF
32688/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032689#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000032690int
32691main ()
32692{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032693char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000032694 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000032695 ;
32696 return 0;
32697}
32698_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032699rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032700if { (ac_try="$ac_link"
32701case "(($ac_try" in
32702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32703 *) ac_try_echo=$ac_try;;
32704esac
32705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32706 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000032707 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032708 grep -v '^ *+' conftest.er1 >conftest.err
32709 rm -f conftest.er1
32710 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000032711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032712 (exit $ac_status); } &&
32713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32714 { (case "(($ac_try" in
32715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32716 *) ac_try_echo=$ac_try;;
32717esac
32718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32719 (eval "$ac_try") 2>&5
32720 ac_status=$?
32721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722 (exit $ac_status); }; } &&
32723 { ac_try='test -s conftest$ac_exeext'
32724 { (case "(($ac_try" in
32725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32726 *) ac_try_echo=$ac_try;;
32727esac
32728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32729 (eval "$ac_try") 2>&5
32730 ac_status=$?
32731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032733 ac_cv_working_alloca_h=yes
32734else
32735 echo "$as_me: failed program was:" >&5
32736sed 's/^/| /' conftest.$ac_ext >&5
32737
Reid Spencera773bd52006-08-04 18:18:08 +000032738 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000032739fi
Reid Spencera773bd52006-08-04 18:18:08 +000032740
Bill Wendlingebcceee2009-04-18 11:20:33 +000032741rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032742 conftest$ac_exeext conftest.$ac_ext
32743fi
Reid Spencera773bd52006-08-04 18:18:08 +000032744{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32745echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032746if test $ac_cv_working_alloca_h = yes; then
32747
32748cat >>confdefs.h <<\_ACEOF
32749#define HAVE_ALLOCA_H 1
32750_ACEOF
32751
32752fi
32753
Reid Spencera773bd52006-08-04 18:18:08 +000032754{ echo "$as_me:$LINENO: checking for alloca" >&5
32755echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032756if test "${ac_cv_func_alloca_works+set}" = set; then
32757 echo $ECHO_N "(cached) $ECHO_C" >&6
32758else
32759 cat >conftest.$ac_ext <<_ACEOF
32760/* confdefs.h. */
32761_ACEOF
32762cat confdefs.h >>conftest.$ac_ext
32763cat >>conftest.$ac_ext <<_ACEOF
32764/* end confdefs.h. */
32765#ifdef __GNUC__
32766# define alloca __builtin_alloca
32767#else
32768# ifdef _MSC_VER
32769# include <malloc.h>
32770# define alloca _alloca
32771# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000032772# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032773# include <alloca.h>
32774# else
32775# ifdef _AIX
32776 #pragma alloca
32777# else
32778# ifndef alloca /* predefined by HP cc +Olibcalls */
32779char *alloca ();
32780# endif
32781# endif
32782# endif
32783# endif
32784#endif
32785
32786int
32787main ()
32788{
32789char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032790 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032791 ;
32792 return 0;
32793}
32794_ACEOF
32795rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032796if { (ac_try="$ac_link"
32797case "(($ac_try" in
32798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32799 *) ac_try_echo=$ac_try;;
32800esac
32801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32802 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032803 ac_status=$?
32804 grep -v '^ *+' conftest.er1 >conftest.err
32805 rm -f conftest.er1
32806 cat conftest.err >&5
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032808 (exit $ac_status); } &&
32809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32810 { (case "(($ac_try" in
32811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32812 *) ac_try_echo=$ac_try;;
32813esac
32814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32815 (eval "$ac_try") 2>&5
32816 ac_status=$?
32817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818 (exit $ac_status); }; } &&
32819 { ac_try='test -s conftest$ac_exeext'
32820 { (case "(($ac_try" in
32821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822 *) ac_try_echo=$ac_try;;
32823esac
32824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825 (eval "$ac_try") 2>&5
32826 ac_status=$?
32827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032829 ac_cv_func_alloca_works=yes
32830else
32831 echo "$as_me: failed program was:" >&5
32832sed 's/^/| /' conftest.$ac_ext >&5
32833
Reid Spencera773bd52006-08-04 18:18:08 +000032834 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032835fi
Reid Spencera773bd52006-08-04 18:18:08 +000032836
Bill Wendlingebcceee2009-04-18 11:20:33 +000032837rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032838 conftest$ac_exeext conftest.$ac_ext
32839fi
Reid Spencera773bd52006-08-04 18:18:08 +000032840{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32841echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032842
32843if test $ac_cv_func_alloca_works = yes; then
32844
32845cat >>confdefs.h <<\_ACEOF
32846#define HAVE_ALLOCA 1
32847_ACEOF
32848
32849else
32850 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32851# that cause trouble. Some versions do not even contain alloca or
32852# contain a buggy version. If you still want to use their alloca,
32853# use ar to extract alloca.o from them instead of compiling alloca.c.
32854
Reid Spencera773bd52006-08-04 18:18:08 +000032855ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032856
32857cat >>confdefs.h <<\_ACEOF
32858#define C_ALLOCA 1
32859_ACEOF
32860
32861
Reid Spencera773bd52006-08-04 18:18:08 +000032862{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32863echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032864if test "${ac_cv_os_cray+set}" = set; then
32865 echo $ECHO_N "(cached) $ECHO_C" >&6
32866else
32867 cat >conftest.$ac_ext <<_ACEOF
32868/* confdefs.h. */
32869_ACEOF
32870cat confdefs.h >>conftest.$ac_ext
32871cat >>conftest.$ac_ext <<_ACEOF
32872/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032873#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032874webecray
32875#else
32876wenotbecray
32877#endif
32878
32879_ACEOF
32880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32881 $EGREP "webecray" >/dev/null 2>&1; then
32882 ac_cv_os_cray=yes
32883else
32884 ac_cv_os_cray=no
32885fi
32886rm -f conftest*
32887
32888fi
Reid Spencera773bd52006-08-04 18:18:08 +000032889{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32890echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032891if test $ac_cv_os_cray = yes; then
32892 for ac_func in _getb67 GETB67 getb67; do
32893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032894{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32895echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32896if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032897 echo $ECHO_N "(cached) $ECHO_C" >&6
32898else
32899 cat >conftest.$ac_ext <<_ACEOF
32900/* confdefs.h. */
32901_ACEOF
32902cat confdefs.h >>conftest.$ac_ext
32903cat >>conftest.$ac_ext <<_ACEOF
32904/* end confdefs.h. */
32905/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32907#define $ac_func innocuous_$ac_func
32908
32909/* System header to define __stub macros and hopefully few prototypes,
32910 which can conflict with char $ac_func (); below.
32911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32912 <limits.h> exists even on freestanding compilers. */
32913
32914#ifdef __STDC__
32915# include <limits.h>
32916#else
32917# include <assert.h>
32918#endif
32919
32920#undef $ac_func
32921
Reid Spencera773bd52006-08-04 18:18:08 +000032922/* Override any GCC internal prototype to avoid an error.
32923 Use char because int might match the return type of a GCC
32924 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032925#ifdef __cplusplus
32926extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032927#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032928char $ac_func ();
32929/* The GNU C library defines this for functions which it implements
32930 to always fail with ENOSYS. Some functions are actually named
32931 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032932#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032933choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032934#endif
32935
32936int
32937main ()
32938{
Reid Spencera773bd52006-08-04 18:18:08 +000032939return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032940 ;
32941 return 0;
32942}
32943_ACEOF
32944rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032945if { (ac_try="$ac_link"
32946case "(($ac_try" in
32947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32948 *) ac_try_echo=$ac_try;;
32949esac
32950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32951 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032952 ac_status=$?
32953 grep -v '^ *+' conftest.er1 >conftest.err
32954 rm -f conftest.er1
32955 cat conftest.err >&5
32956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032957 (exit $ac_status); } &&
32958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
32968 { ac_try='test -s conftest$ac_exeext'
32969 { (case "(($ac_try" in
32970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32971 *) ac_try_echo=$ac_try;;
32972esac
32973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32974 (eval "$ac_try") 2>&5
32975 ac_status=$?
32976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32977 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032978 eval "$as_ac_var=yes"
32979else
32980 echo "$as_me: failed program was:" >&5
32981sed 's/^/| /' conftest.$ac_ext >&5
32982
Reid Spencera773bd52006-08-04 18:18:08 +000032983 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032984fi
Reid Spencera773bd52006-08-04 18:18:08 +000032985
Bill Wendlingebcceee2009-04-18 11:20:33 +000032986rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032987 conftest$ac_exeext conftest.$ac_ext
32988fi
Reid Spencera773bd52006-08-04 18:18:08 +000032989ac_res=`eval echo '${'$as_ac_var'}'`
32990 { echo "$as_me:$LINENO: result: $ac_res" >&5
32991echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032992if test `eval echo '${'$as_ac_var'}'` = yes; then
32993
32994cat >>confdefs.h <<_ACEOF
32995#define CRAY_STACKSEG_END $ac_func
32996_ACEOF
32997
32998 break
32999fi
33000
33001 done
33002fi
33003
Reid Spencera773bd52006-08-04 18:18:08 +000033004{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33005echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033006if test "${ac_cv_c_stack_direction+set}" = set; then
33007 echo $ECHO_N "(cached) $ECHO_C" >&6
33008else
33009 if test "$cross_compiling" = yes; then
33010 ac_cv_c_stack_direction=0
33011else
33012 cat >conftest.$ac_ext <<_ACEOF
33013/* confdefs.h. */
33014_ACEOF
33015cat confdefs.h >>conftest.$ac_ext
33016cat >>conftest.$ac_ext <<_ACEOF
33017/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000033018$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033019int
33020find_stack_direction ()
33021{
33022 static char *addr = 0;
33023 auto char dummy;
33024 if (addr == 0)
33025 {
33026 addr = &dummy;
33027 return find_stack_direction ();
33028 }
John Criswell0021c312004-02-13 21:57:29 +000033029 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033030 return (&dummy > addr) ? 1 : -1;
33031}
John Criswell0021c312004-02-13 21:57:29 +000033032
John Criswell0021c312004-02-13 21:57:29 +000033033int
33034main ()
33035{
Reid Spencera773bd52006-08-04 18:18:08 +000033036 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000033037}
33038_ACEOF
33039rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033040if { (ac_try="$ac_link"
33041case "(($ac_try" in
33042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33043 *) ac_try_echo=$ac_try;;
33044esac
33045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33046 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033047 ac_status=$?
33048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033050 { (case "(($ac_try" in
33051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33052 *) ac_try_echo=$ac_try;;
33053esac
33054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33055 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033056 ac_status=$?
33057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33058 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033059 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000033060else
33061 echo "$as_me: program exited with status $ac_status" >&5
33062echo "$as_me: failed program was:" >&5
33063sed 's/^/| /' conftest.$ac_ext >&5
33064
33065( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033066ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000033067fi
Reid Spencera773bd52006-08-04 18:18:08 +000033068rm -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 +000033069fi
Reid Spencera773bd52006-08-04 18:18:08 +000033070
33071
John Criswell0021c312004-02-13 21:57:29 +000033072fi
Reid Spencera773bd52006-08-04 18:18:08 +000033073{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33074echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033075
33076cat >>confdefs.h <<_ACEOF
33077#define STACK_DIRECTION $ac_cv_c_stack_direction
33078_ACEOF
33079
33080
John Criswell0021c312004-02-13 21:57:29 +000033081fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033082
33083
Reid Spencera773bd52006-08-04 18:18:08 +000033084{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33085echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033086if test "${ac_cv_func_rand48+set}" = set; then
33087 echo $ECHO_N "(cached) $ECHO_C" >&6
33088else
Reid Spencera773bd52006-08-04 18:18:08 +000033089 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033090ac_cpp='$CXXCPP $CPPFLAGS'
33091ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33092ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33093ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33094
33095 cat >conftest.$ac_ext <<_ACEOF
33096/* confdefs.h. */
33097_ACEOF
33098cat confdefs.h >>conftest.$ac_ext
33099cat >>conftest.$ac_ext <<_ACEOF
33100/* end confdefs.h. */
33101#include <stdlib.h>
33102int
33103main ()
33104{
33105srand48(0);lrand48();drand48();
33106 ;
33107 return 0;
33108}
33109_ACEOF
33110rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033111if { (ac_try="$ac_compile"
33112case "(($ac_try" in
33113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33114 *) ac_try_echo=$ac_try;;
33115esac
33116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33117 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033118 ac_status=$?
33119 grep -v '^ *+' conftest.er1 >conftest.err
33120 rm -f conftest.er1
33121 cat conftest.err >&5
33122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033123 (exit $ac_status); } &&
33124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33125 { (case "(($ac_try" in
33126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33127 *) ac_try_echo=$ac_try;;
33128esac
33129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33130 (eval "$ac_try") 2>&5
33131 ac_status=$?
33132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133 (exit $ac_status); }; } &&
33134 { ac_try='test -s conftest.$ac_objext'
33135 { (case "(($ac_try" in
33136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33137 *) ac_try_echo=$ac_try;;
33138esac
33139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33140 (eval "$ac_try") 2>&5
33141 ac_status=$?
33142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33143 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033144 ac_cv_func_rand48=yes
33145else
33146 echo "$as_me: failed program was:" >&5
33147sed 's/^/| /' conftest.$ac_ext >&5
33148
Reid Spencera773bd52006-08-04 18:18:08 +000033149 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033150fi
Reid Spencera773bd52006-08-04 18:18:08 +000033151
33152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033153 ac_ext=c
33154ac_cpp='$CPP $CPPFLAGS'
33155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33157ac_compiler_gnu=$ac_cv_c_compiler_gnu
33158
33159fi
Reid Spencera773bd52006-08-04 18:18:08 +000033160{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33161echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033162
33163if test "$ac_cv_func_rand48" = "yes" ; then
33164
33165cat >>confdefs.h <<\_ACEOF
33166#define HAVE_RAND48 1
33167_ACEOF
33168
33169fi
John Criswell0021c312004-02-13 21:57:29 +000033170
33171
Reid Spencera773bd52006-08-04 18:18:08 +000033172{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33173echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033174if test "${ac_cv_cxx_namespaces+set}" = set; then
33175 echo $ECHO_N "(cached) $ECHO_C" >&6
33176else
Reid Spencera773bd52006-08-04 18:18:08 +000033177 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033178ac_cpp='$CXXCPP $CPPFLAGS'
33179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33182
33183 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033184/* confdefs.h. */
33185_ACEOF
33186cat confdefs.h >>conftest.$ac_ext
33187cat >>conftest.$ac_ext <<_ACEOF
33188/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033189namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000033190int
33191main ()
33192{
33193using namespace Outer::Inner; return i;
33194 ;
33195 return 0;
33196}
33197_ACEOF
33198rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033199if { (ac_try="$ac_compile"
33200case "(($ac_try" in
33201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33202 *) ac_try_echo=$ac_try;;
33203esac
33204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33205 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033206 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033207 grep -v '^ *+' conftest.er1 >conftest.err
33208 rm -f conftest.er1
33209 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033211 (exit $ac_status); } &&
33212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33213 { (case "(($ac_try" in
33214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33215 *) ac_try_echo=$ac_try;;
33216esac
33217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33218 (eval "$ac_try") 2>&5
33219 ac_status=$?
33220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221 (exit $ac_status); }; } &&
33222 { ac_try='test -s conftest.$ac_objext'
33223 { (case "(($ac_try" in
33224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33225 *) ac_try_echo=$ac_try;;
33226esac
33227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33228 (eval "$ac_try") 2>&5
33229 ac_status=$?
33230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033232 ac_cv_cxx_namespaces=yes
33233else
33234 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033235sed 's/^/| /' conftest.$ac_ext >&5
33236
Reid Spencera773bd52006-08-04 18:18:08 +000033237 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000033238fi
Reid Spencera773bd52006-08-04 18:18:08 +000033239
33240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033241 ac_ext=c
33242ac_cpp='$CPP $CPPFLAGS'
33243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33245ac_compiler_gnu=$ac_cv_c_compiler_gnu
33246
33247
33248fi
Reid Spencera773bd52006-08-04 18:18:08 +000033249{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33250echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033251if test "$ac_cv_cxx_namespaces" = yes; then
33252
33253cat >>confdefs.h <<\_ACEOF
33254#define HAVE_NAMESPACES
33255_ACEOF
33256
33257fi
33258
Reid Spencera773bd52006-08-04 18:18:08 +000033259{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33260echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033261if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33262 echo $ECHO_N "(cached) $ECHO_C" >&6
33263else
33264
Reid Spencera773bd52006-08-04 18:18:08 +000033265 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033266ac_cpp='$CXXCPP $CPPFLAGS'
33267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33270
33271 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033272/* confdefs.h. */
33273_ACEOF
33274cat confdefs.h >>conftest.$ac_ext
33275cat >>conftest.$ac_ext <<_ACEOF
33276/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033277#include <iterator>
33278#ifdef HAVE_NAMESPACES
33279using namespace std;
33280#endif
John Criswell7a73b802003-06-30 21:59:07 +000033281int
33282main ()
33283{
33284iterator<int,int,int> t; return 0;
33285 ;
33286 return 0;
33287}
33288_ACEOF
33289rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033290if { (ac_try="$ac_compile"
33291case "(($ac_try" in
33292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33293 *) ac_try_echo=$ac_try;;
33294esac
33295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33296 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033297 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033298 grep -v '^ *+' conftest.er1 >conftest.err
33299 rm -f conftest.er1
33300 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033302 (exit $ac_status); } &&
33303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33304 { (case "(($ac_try" in
33305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33306 *) ac_try_echo=$ac_try;;
33307esac
33308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33309 (eval "$ac_try") 2>&5
33310 ac_status=$?
33311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312 (exit $ac_status); }; } &&
33313 { ac_try='test -s conftest.$ac_objext'
33314 { (case "(($ac_try" in
33315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33316 *) ac_try_echo=$ac_try;;
33317esac
33318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33319 (eval "$ac_try") 2>&5
33320 ac_status=$?
33321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033323 ac_cv_cxx_have_std_iterator=yes
33324else
33325 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033326sed 's/^/| /' conftest.$ac_ext >&5
33327
Reid Spencera773bd52006-08-04 18:18:08 +000033328 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033329fi
Reid Spencera773bd52006-08-04 18:18:08 +000033330
33331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033332 ac_ext=c
33333ac_cpp='$CPP $CPPFLAGS'
33334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33336ac_compiler_gnu=$ac_cv_c_compiler_gnu
33337
33338
33339fi
Reid Spencera773bd52006-08-04 18:18:08 +000033340{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33341echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033342if test "$ac_cv_cxx_have_std_iterator" = yes
33343then
John Criswell40468462004-09-24 21:19:06 +000033344
33345cat >>confdefs.h <<\_ACEOF
33346#define HAVE_STD_ITERATOR 1
33347_ACEOF
33348
33349else
33350
33351cat >>confdefs.h <<\_ACEOF
33352#define HAVE_STD_ITERATOR 0
33353_ACEOF
33354
John Criswell7a73b802003-06-30 21:59:07 +000033355fi
33356
Reid Spencera773bd52006-08-04 18:18:08 +000033357{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33358echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033359if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33360 echo $ECHO_N "(cached) $ECHO_C" >&6
33361else
33362
Reid Spencera773bd52006-08-04 18:18:08 +000033363 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033364ac_cpp='$CXXCPP $CPPFLAGS'
33365ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33366ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33367ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33368
33369 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033370/* confdefs.h. */
33371_ACEOF
33372cat confdefs.h >>conftest.$ac_ext
33373cat >>conftest.$ac_ext <<_ACEOF
33374/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033375#include <iterator>
33376#ifdef HAVE_NAMESPACES
33377using namespace std;
33378#endif
John Criswell7a73b802003-06-30 21:59:07 +000033379int
33380main ()
33381{
John Criswellc78022e2003-07-29 19:11:58 +000033382bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033383 ;
33384 return 0;
33385}
33386_ACEOF
33387rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033388if { (ac_try="$ac_compile"
33389case "(($ac_try" in
33390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33391 *) ac_try_echo=$ac_try;;
33392esac
33393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33394 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033395 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033396 grep -v '^ *+' conftest.er1 >conftest.err
33397 rm -f conftest.er1
33398 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033400 (exit $ac_status); } &&
33401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33402 { (case "(($ac_try" in
33403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33404 *) ac_try_echo=$ac_try;;
33405esac
33406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33407 (eval "$ac_try") 2>&5
33408 ac_status=$?
33409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33410 (exit $ac_status); }; } &&
33411 { ac_try='test -s conftest.$ac_objext'
33412 { (case "(($ac_try" in
33413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33414 *) ac_try_echo=$ac_try;;
33415esac
33416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33417 (eval "$ac_try") 2>&5
33418 ac_status=$?
33419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033421 ac_cv_cxx_have_bi_iterator=yes
33422else
33423 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033424sed 's/^/| /' conftest.$ac_ext >&5
33425
Reid Spencera773bd52006-08-04 18:18:08 +000033426 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033427fi
Reid Spencera773bd52006-08-04 18:18:08 +000033428
33429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033430 ac_ext=c
33431ac_cpp='$CPP $CPPFLAGS'
33432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33434ac_compiler_gnu=$ac_cv_c_compiler_gnu
33435
33436
33437fi
Reid Spencera773bd52006-08-04 18:18:08 +000033438{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33439echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033440if test "$ac_cv_cxx_have_bi_iterator" = yes
33441then
John Criswell40468462004-09-24 21:19:06 +000033442
33443cat >>confdefs.h <<\_ACEOF
33444#define HAVE_BI_ITERATOR 1
33445_ACEOF
33446
33447else
33448
33449cat >>confdefs.h <<\_ACEOF
33450#define HAVE_BI_ITERATOR 0
33451_ACEOF
33452
John Criswell7a73b802003-06-30 21:59:07 +000033453fi
33454
Reid Spencera773bd52006-08-04 18:18:08 +000033455{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33456echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033457if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33458 echo $ECHO_N "(cached) $ECHO_C" >&6
33459else
33460
Reid Spencera773bd52006-08-04 18:18:08 +000033461 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033462ac_cpp='$CXXCPP $CPPFLAGS'
33463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33466
33467 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033468/* confdefs.h. */
33469_ACEOF
33470cat confdefs.h >>conftest.$ac_ext
33471cat >>conftest.$ac_ext <<_ACEOF
33472/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033473#include <iterator>
33474#ifdef HAVE_NAMESPACES
33475using namespace std;
33476#endif
John Criswell7a73b802003-06-30 21:59:07 +000033477int
33478main ()
33479{
John Criswellc78022e2003-07-29 19:11:58 +000033480forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033481 ;
33482 return 0;
33483}
33484_ACEOF
33485rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033486if { (ac_try="$ac_compile"
33487case "(($ac_try" in
33488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33489 *) ac_try_echo=$ac_try;;
33490esac
33491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33492 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033493 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033494 grep -v '^ *+' conftest.er1 >conftest.err
33495 rm -f conftest.er1
33496 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033498 (exit $ac_status); } &&
33499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33500 { (case "(($ac_try" in
33501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33502 *) ac_try_echo=$ac_try;;
33503esac
33504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33505 (eval "$ac_try") 2>&5
33506 ac_status=$?
33507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33508 (exit $ac_status); }; } &&
33509 { ac_try='test -s conftest.$ac_objext'
33510 { (case "(($ac_try" in
33511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33512 *) ac_try_echo=$ac_try;;
33513esac
33514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33515 (eval "$ac_try") 2>&5
33516 ac_status=$?
33517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033519 ac_cv_cxx_have_fwd_iterator=yes
33520else
33521 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033522sed 's/^/| /' conftest.$ac_ext >&5
33523
Reid Spencera773bd52006-08-04 18:18:08 +000033524 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033525fi
Reid Spencera773bd52006-08-04 18:18:08 +000033526
33527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033528 ac_ext=c
33529ac_cpp='$CPP $CPPFLAGS'
33530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33532ac_compiler_gnu=$ac_cv_c_compiler_gnu
33533
33534
33535fi
Reid Spencera773bd52006-08-04 18:18:08 +000033536{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33537echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033538if test "$ac_cv_cxx_have_fwd_iterator" = yes
33539then
John Criswell40468462004-09-24 21:19:06 +000033540
33541cat >>confdefs.h <<\_ACEOF
33542#define HAVE_FWD_ITERATOR 1
33543_ACEOF
33544
33545else
33546
33547cat >>confdefs.h <<\_ACEOF
33548#define HAVE_FWD_ITERATOR 0
33549_ACEOF
33550
John Criswell7a73b802003-06-30 21:59:07 +000033551fi
33552
33553
Reid Spencera773bd52006-08-04 18:18:08 +000033554{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33555echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033556if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33557 echo $ECHO_N "(cached) $ECHO_C" >&6
33558else
Reid Spencera773bd52006-08-04 18:18:08 +000033559 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033560ac_cpp='$CXXCPP $CPPFLAGS'
33561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33564
Reid Spencerabec8f92004-10-27 23:03:44 +000033565 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033566/* confdefs.h. */
33567_ACEOF
33568cat confdefs.h >>conftest.$ac_ext
33569cat >>conftest.$ac_ext <<_ACEOF
33570/* end confdefs.h. */
33571#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033572int
33573main ()
33574{
33575float f; isnan(f);
33576 ;
33577 return 0;
33578}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033579_ACEOF
33580rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033581if { (ac_try="$ac_compile"
33582case "(($ac_try" in
33583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33584 *) ac_try_echo=$ac_try;;
33585esac
33586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33587 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033588 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033589 grep -v '^ *+' conftest.er1 >conftest.err
33590 rm -f conftest.er1
33591 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033593 (exit $ac_status); } &&
33594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33595 { (case "(($ac_try" in
33596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33597 *) ac_try_echo=$ac_try;;
33598esac
33599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33600 (eval "$ac_try") 2>&5
33601 ac_status=$?
33602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33603 (exit $ac_status); }; } &&
33604 { ac_try='test -s conftest.$ac_objext'
33605 { (case "(($ac_try" in
33606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33607 *) ac_try_echo=$ac_try;;
33608esac
33609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33610 (eval "$ac_try") 2>&5
33611 ac_status=$?
33612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033614 ac_cv_func_isnan_in_math_h=yes
33615else
33616 echo "$as_me: failed program was:" >&5
33617sed 's/^/| /' conftest.$ac_ext >&5
33618
Reid Spencera773bd52006-08-04 18:18:08 +000033619 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033620fi
Reid Spencera773bd52006-08-04 18:18:08 +000033621
33622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033623 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033624ac_cpp='$CPP $CPPFLAGS'
33625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33627ac_compiler_gnu=$ac_cv_c_compiler_gnu
33628
33629fi
Reid Spencera773bd52006-08-04 18:18:08 +000033630{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33631echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033632
33633
33634if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033635
33636cat >>confdefs.h <<\_ACEOF
33637#define HAVE_ISNAN_IN_MATH_H 1
33638_ACEOF
33639
Reid Spencerabec8f92004-10-27 23:03:44 +000033640fi
33641
Reid Spencera773bd52006-08-04 18:18:08 +000033642{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33643echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033644if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33645 echo $ECHO_N "(cached) $ECHO_C" >&6
33646else
Reid Spencera773bd52006-08-04 18:18:08 +000033647 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033648ac_cpp='$CXXCPP $CPPFLAGS'
33649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33652
Reid Spencerabec8f92004-10-27 23:03:44 +000033653 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033654/* confdefs.h. */
33655_ACEOF
33656cat confdefs.h >>conftest.$ac_ext
33657cat >>conftest.$ac_ext <<_ACEOF
33658/* end confdefs.h. */
33659#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033660int
33661main ()
33662{
33663float f; isnan(f);
33664 ;
33665 return 0;
33666}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033667_ACEOF
33668rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033669if { (ac_try="$ac_compile"
33670case "(($ac_try" in
33671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33672 *) ac_try_echo=$ac_try;;
33673esac
33674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33675 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033676 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033677 grep -v '^ *+' conftest.er1 >conftest.err
33678 rm -f conftest.er1
33679 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033681 (exit $ac_status); } &&
33682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
33692 { ac_try='test -s conftest.$ac_objext'
33693 { (case "(($ac_try" in
33694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33695 *) ac_try_echo=$ac_try;;
33696esac
33697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33698 (eval "$ac_try") 2>&5
33699 ac_status=$?
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033702 ac_cv_func_isnan_in_cmath=yes
33703else
33704 echo "$as_me: failed program was:" >&5
33705sed 's/^/| /' conftest.$ac_ext >&5
33706
Reid Spencera773bd52006-08-04 18:18:08 +000033707 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033708fi
Reid Spencera773bd52006-08-04 18:18:08 +000033709
33710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033711 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033712ac_cpp='$CPP $CPPFLAGS'
33713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33715ac_compiler_gnu=$ac_cv_c_compiler_gnu
33716
33717fi
Reid Spencera773bd52006-08-04 18:18:08 +000033718{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33719echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033720
33721if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033722
33723cat >>confdefs.h <<\_ACEOF
33724#define HAVE_ISNAN_IN_CMATH 1
33725_ACEOF
33726
Reid Spencerabec8f92004-10-27 23:03:44 +000033727fi
33728
Reid Spencera773bd52006-08-04 18:18:08 +000033729{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33730echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033731if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33732 echo $ECHO_N "(cached) $ECHO_C" >&6
33733else
Reid Spencera773bd52006-08-04 18:18:08 +000033734 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033735ac_cpp='$CXXCPP $CPPFLAGS'
33736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33739
Reid Spencerabec8f92004-10-27 23:03:44 +000033740 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033741/* confdefs.h. */
33742_ACEOF
33743cat confdefs.h >>conftest.$ac_ext
33744cat >>conftest.$ac_ext <<_ACEOF
33745/* end confdefs.h. */
33746#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033747int
33748main ()
33749{
33750float f; std::isnan(f);
33751 ;
33752 return 0;
33753}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033754_ACEOF
33755rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033756if { (ac_try="$ac_compile"
33757case "(($ac_try" in
33758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33759 *) ac_try_echo=$ac_try;;
33760esac
33761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33762 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033763 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033764 grep -v '^ *+' conftest.er1 >conftest.err
33765 rm -f conftest.er1
33766 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033768 (exit $ac_status); } &&
33769 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33770 { (case "(($ac_try" in
33771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33772 *) ac_try_echo=$ac_try;;
33773esac
33774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33775 (eval "$ac_try") 2>&5
33776 ac_status=$?
33777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33778 (exit $ac_status); }; } &&
33779 { ac_try='test -s conftest.$ac_objext'
33780 { (case "(($ac_try" in
33781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33782 *) ac_try_echo=$ac_try;;
33783esac
33784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33785 (eval "$ac_try") 2>&5
33786 ac_status=$?
33787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033789 ac_cv_func_std_isnan_in_cmath=yes
33790else
33791 echo "$as_me: failed program was:" >&5
33792sed 's/^/| /' conftest.$ac_ext >&5
33793
Reid Spencera773bd52006-08-04 18:18:08 +000033794 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033795fi
Reid Spencera773bd52006-08-04 18:18:08 +000033796
33797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033798 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033799ac_cpp='$CPP $CPPFLAGS'
33800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33802ac_compiler_gnu=$ac_cv_c_compiler_gnu
33803
33804fi
Reid Spencera773bd52006-08-04 18:18:08 +000033805{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33806echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033807
33808if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033809
33810cat >>confdefs.h <<\_ACEOF
33811#define HAVE_STD_ISNAN_IN_CMATH 1
33812_ACEOF
33813
Reid Spencerabec8f92004-10-27 23:03:44 +000033814fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033815
33816
Reid Spencera773bd52006-08-04 18:18:08 +000033817{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33818echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033819if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33820 echo $ECHO_N "(cached) $ECHO_C" >&6
33821else
Reid Spencera773bd52006-08-04 18:18:08 +000033822 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033823ac_cpp='$CXXCPP $CPPFLAGS'
33824ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33825ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33826ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33827
Reid Spencerabec8f92004-10-27 23:03:44 +000033828 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033829/* confdefs.h. */
33830_ACEOF
33831cat confdefs.h >>conftest.$ac_ext
33832cat >>conftest.$ac_ext <<_ACEOF
33833/* end confdefs.h. */
33834#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033835int
33836main ()
33837{
33838float f; isinf(f);
33839 ;
33840 return 0;
33841}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033842_ACEOF
33843rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033844if { (ac_try="$ac_compile"
33845case "(($ac_try" in
33846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33847 *) ac_try_echo=$ac_try;;
33848esac
33849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33850 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033851 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033852 grep -v '^ *+' conftest.er1 >conftest.err
33853 rm -f conftest.er1
33854 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033856 (exit $ac_status); } &&
33857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33858 { (case "(($ac_try" in
33859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33860 *) ac_try_echo=$ac_try;;
33861esac
33862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33863 (eval "$ac_try") 2>&5
33864 ac_status=$?
33865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866 (exit $ac_status); }; } &&
33867 { ac_try='test -s conftest.$ac_objext'
33868 { (case "(($ac_try" in
33869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33870 *) ac_try_echo=$ac_try;;
33871esac
33872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33873 (eval "$ac_try") 2>&5
33874 ac_status=$?
33875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33876 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033877 ac_cv_func_isinf_in_math_h=yes
33878else
33879 echo "$as_me: failed program was:" >&5
33880sed 's/^/| /' conftest.$ac_ext >&5
33881
Reid Spencera773bd52006-08-04 18:18:08 +000033882 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033883fi
Reid Spencera773bd52006-08-04 18:18:08 +000033884
33885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033886 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033887ac_cpp='$CPP $CPPFLAGS'
33888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33890ac_compiler_gnu=$ac_cv_c_compiler_gnu
33891
33892fi
Reid Spencera773bd52006-08-04 18:18:08 +000033893{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33894echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033895
33896if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033897
33898cat >>confdefs.h <<\_ACEOF
33899#define HAVE_ISINF_IN_MATH_H 1
33900_ACEOF
33901
Reid Spencerabec8f92004-10-27 23:03:44 +000033902fi
33903
Reid Spencera773bd52006-08-04 18:18:08 +000033904{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33905echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033906if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33907 echo $ECHO_N "(cached) $ECHO_C" >&6
33908else
Reid Spencera773bd52006-08-04 18:18:08 +000033909 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033910ac_cpp='$CXXCPP $CPPFLAGS'
33911ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33912ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33913ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33914
Reid Spencerabec8f92004-10-27 23:03:44 +000033915 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033916/* confdefs.h. */
33917_ACEOF
33918cat confdefs.h >>conftest.$ac_ext
33919cat >>conftest.$ac_ext <<_ACEOF
33920/* end confdefs.h. */
33921#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033922int
33923main ()
33924{
33925float f; isinf(f);
33926 ;
33927 return 0;
33928}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033929_ACEOF
33930rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033931if { (ac_try="$ac_compile"
33932case "(($ac_try" in
33933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33934 *) ac_try_echo=$ac_try;;
33935esac
33936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33937 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033938 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033939 grep -v '^ *+' conftest.er1 >conftest.err
33940 rm -f conftest.er1
33941 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033943 (exit $ac_status); } &&
33944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33945 { (case "(($ac_try" in
33946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33947 *) ac_try_echo=$ac_try;;
33948esac
33949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33950 (eval "$ac_try") 2>&5
33951 ac_status=$?
33952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33953 (exit $ac_status); }; } &&
33954 { ac_try='test -s conftest.$ac_objext'
33955 { (case "(($ac_try" in
33956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33957 *) ac_try_echo=$ac_try;;
33958esac
33959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33960 (eval "$ac_try") 2>&5
33961 ac_status=$?
33962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33963 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033964 ac_cv_func_isinf_in_cmath=yes
33965else
33966 echo "$as_me: failed program was:" >&5
33967sed 's/^/| /' conftest.$ac_ext >&5
33968
Reid Spencera773bd52006-08-04 18:18:08 +000033969 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033970fi
Reid Spencera773bd52006-08-04 18:18:08 +000033971
33972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033973 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033974ac_cpp='$CPP $CPPFLAGS'
33975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33977ac_compiler_gnu=$ac_cv_c_compiler_gnu
33978
33979fi
Reid Spencera773bd52006-08-04 18:18:08 +000033980{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33981echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033982
33983if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033984
33985cat >>confdefs.h <<\_ACEOF
33986#define HAVE_ISINF_IN_CMATH 1
33987_ACEOF
33988
Reid Spencerabec8f92004-10-27 23:03:44 +000033989fi
33990
Reid Spencera773bd52006-08-04 18:18:08 +000033991{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33992echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033993if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33994 echo $ECHO_N "(cached) $ECHO_C" >&6
33995else
Reid Spencera773bd52006-08-04 18:18:08 +000033996 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033997ac_cpp='$CXXCPP $CPPFLAGS'
33998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34001
Reid Spencerabec8f92004-10-27 23:03:44 +000034002 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000034003/* confdefs.h. */
34004_ACEOF
34005cat confdefs.h >>conftest.$ac_ext
34006cat >>conftest.$ac_ext <<_ACEOF
34007/* end confdefs.h. */
34008#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000034009int
34010main ()
34011{
34012float f; std::isinf(f)}
34013 ;
34014 return 0;
34015}
Brian Gaeke52a551d2004-07-21 03:14:12 +000034016_ACEOF
34017rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034018if { (ac_try="$ac_compile"
34019case "(($ac_try" in
34020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34021 *) ac_try_echo=$ac_try;;
34022esac
34023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34024 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000034025 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034026 grep -v '^ *+' conftest.er1 >conftest.err
34027 rm -f conftest.er1
34028 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000034029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034030 (exit $ac_status); } &&
34031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34032 { (case "(($ac_try" in
34033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34034 *) ac_try_echo=$ac_try;;
34035esac
34036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34037 (eval "$ac_try") 2>&5
34038 ac_status=$?
34039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34040 (exit $ac_status); }; } &&
34041 { ac_try='test -s conftest.$ac_objext'
34042 { (case "(($ac_try" in
34043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34044 *) ac_try_echo=$ac_try;;
34045esac
34046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34047 (eval "$ac_try") 2>&5
34048 ac_status=$?
34049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34050 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034051 ac_cv_func_std_isinf_in_cmath=yes
34052else
34053 echo "$as_me: failed program was:" >&5
34054sed 's/^/| /' conftest.$ac_ext >&5
34055
Reid Spencera773bd52006-08-04 18:18:08 +000034056 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000034057fi
Reid Spencera773bd52006-08-04 18:18:08 +000034058
34059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034060 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000034061ac_cpp='$CPP $CPPFLAGS'
34062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34064ac_compiler_gnu=$ac_cv_c_compiler_gnu
34065
34066fi
Reid Spencera773bd52006-08-04 18:18:08 +000034067{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34068echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034069
34070if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034071
34072cat >>confdefs.h <<\_ACEOF
34073#define HAVE_STD_ISINF_IN_CMATH 1
34074_ACEOF
34075
Reid Spencerabec8f92004-10-27 23:03:44 +000034076fi
34077
Reid Spencera773bd52006-08-04 18:18:08 +000034078{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34079echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000034080if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34081 echo $ECHO_N "(cached) $ECHO_C" >&6
34082else
Reid Spencera773bd52006-08-04 18:18:08 +000034083 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000034084ac_cpp='$CXXCPP $CPPFLAGS'
34085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34088
Reid Spencerabec8f92004-10-27 23:03:44 +000034089 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000034090/* confdefs.h. */
34091_ACEOF
34092cat confdefs.h >>conftest.$ac_ext
34093cat >>conftest.$ac_ext <<_ACEOF
34094/* end confdefs.h. */
34095#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000034096int
34097main ()
34098{
34099float f; finite(f);
34100 ;
34101 return 0;
34102}
Brian Gaeked59a6472004-07-21 03:33:58 +000034103_ACEOF
34104rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034105if { (ac_try="$ac_compile"
34106case "(($ac_try" in
34107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34108 *) ac_try_echo=$ac_try;;
34109esac
34110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34111 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000034112 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034113 grep -v '^ *+' conftest.er1 >conftest.err
34114 rm -f conftest.er1
34115 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000034116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034117 (exit $ac_status); } &&
34118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34119 { (case "(($ac_try" in
34120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34121 *) ac_try_echo=$ac_try;;
34122esac
34123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34124 (eval "$ac_try") 2>&5
34125 ac_status=$?
34126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34127 (exit $ac_status); }; } &&
34128 { ac_try='test -s conftest.$ac_objext'
34129 { (case "(($ac_try" in
34130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34131 *) ac_try_echo=$ac_try;;
34132esac
34133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34134 (eval "$ac_try") 2>&5
34135 ac_status=$?
34136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34137 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034138 ac_cv_func_finite_in_ieeefp_h=yes
34139else
34140 echo "$as_me: failed program was:" >&5
34141sed 's/^/| /' conftest.$ac_ext >&5
34142
Reid Spencera773bd52006-08-04 18:18:08 +000034143 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000034144fi
Reid Spencera773bd52006-08-04 18:18:08 +000034145
34146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034147 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000034148ac_cpp='$CPP $CPPFLAGS'
34149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34151ac_compiler_gnu=$ac_cv_c_compiler_gnu
34152
34153fi
Reid Spencera773bd52006-08-04 18:18:08 +000034154{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34155echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034156
Brian Gaeke6802b552004-10-28 05:06:45 +000034157if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034158
34159cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000034160#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000034161_ACEOF
34162
Reid Spencerabec8f92004-10-27 23:03:44 +000034163fi
34164
34165
34166
Reid Spencer30fe5262007-01-20 07:48:49 +000034167if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000034168
34169
34170for ac_header in stdlib.h unistd.h
34171do
34172as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034177 echo $ECHO_N "(cached) $ECHO_C" >&6
34178fi
Reid Spencera773bd52006-08-04 18:18:08 +000034179ac_res=`eval echo '${'$as_ac_Header'}'`
34180 { echo "$as_me:$LINENO: result: $ac_res" >&5
34181echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034182else
34183 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000034184{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34185echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034186cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034187/* confdefs.h. */
34188_ACEOF
34189cat confdefs.h >>conftest.$ac_ext
34190cat >>conftest.$ac_ext <<_ACEOF
34191/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034192$ac_includes_default
34193#include <$ac_header>
34194_ACEOF
34195rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034196if { (ac_try="$ac_compile"
34197case "(($ac_try" in
34198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34199 *) ac_try_echo=$ac_try;;
34200esac
34201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34202 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034203 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034204 grep -v '^ *+' conftest.er1 >conftest.err
34205 rm -f conftest.er1
34206 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034208 (exit $ac_status); } &&
34209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34210 { (case "(($ac_try" in
34211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34212 *) ac_try_echo=$ac_try;;
34213esac
34214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34215 (eval "$ac_try") 2>&5
34216 ac_status=$?
34217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34218 (exit $ac_status); }; } &&
34219 { ac_try='test -s conftest.$ac_objext'
34220 { (case "(($ac_try" in
34221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34222 *) ac_try_echo=$ac_try;;
34223esac
34224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34225 (eval "$ac_try") 2>&5
34226 ac_status=$?
34227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034229 ac_header_compiler=yes
34230else
34231 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034232sed 's/^/| /' conftest.$ac_ext >&5
34233
Reid Spencera773bd52006-08-04 18:18:08 +000034234 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000034235fi
Reid Spencera773bd52006-08-04 18:18:08 +000034236
34237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34238{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34239echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034240
34241# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000034242{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34243echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034244cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034245/* confdefs.h. */
34246_ACEOF
34247cat confdefs.h >>conftest.$ac_ext
34248cat >>conftest.$ac_ext <<_ACEOF
34249/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034250#include <$ac_header>
34251_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034252if { (ac_try="$ac_cpp conftest.$ac_ext"
34253case "(($ac_try" in
34254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34255 *) ac_try_echo=$ac_try;;
34256esac
34257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034259 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000034260 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000034261 rm -f conftest.er1
34262 cat conftest.err >&5
34263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034264 (exit $ac_status); } >/dev/null; then
34265 if test -s conftest.err; then
34266 ac_cpp_err=$ac_c_preproc_warn_flag
34267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34268 else
34269 ac_cpp_err=
34270 fi
34271else
34272 ac_cpp_err=yes
34273fi
34274if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000034275 ac_header_preproc=yes
34276else
34277 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034278sed 's/^/| /' conftest.$ac_ext >&5
34279
John Criswell7a73b802003-06-30 21:59:07 +000034280 ac_header_preproc=no
34281fi
Reid Spencera773bd52006-08-04 18:18:08 +000034282
John Criswell7a73b802003-06-30 21:59:07 +000034283rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000034284{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34285echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034286
34287# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34289 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000034290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34294 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000034295 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000034296 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000034297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34300echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34304echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000034305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000034309 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000034310## ----------------------------------- ##
34311## Report this to llvmbugs@cs.uiuc.edu ##
34312## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000034313_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000034314 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000034315 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034316esac
Reid Spencera773bd52006-08-04 18:18:08 +000034317{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034320 echo $ECHO_N "(cached) $ECHO_C" >&6
34321else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034322 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000034323fi
Reid Spencera773bd52006-08-04 18:18:08 +000034324ac_res=`eval echo '${'$as_ac_Header'}'`
34325 { echo "$as_me:$LINENO: result: $ac_res" >&5
34326echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034327
34328fi
34329if test `eval echo '${'$as_ac_Header'}'` = yes; then
34330 cat >>confdefs.h <<_ACEOF
34331#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34332_ACEOF
34333
34334fi
34335
34336done
34337
34338
34339for ac_func in getpagesize
34340do
34341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034342{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34344if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034345 echo $ECHO_N "(cached) $ECHO_C" >&6
34346else
34347 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034348/* confdefs.h. */
34349_ACEOF
34350cat confdefs.h >>conftest.$ac_ext
34351cat >>conftest.$ac_ext <<_ACEOF
34352/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034353/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34355#define $ac_func innocuous_$ac_func
34356
John Criswell7a73b802003-06-30 21:59:07 +000034357/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000034358 which can conflict with char $ac_func (); below.
34359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34360 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034361
John Criswell0c38eaf2003-09-10 15:17:25 +000034362#ifdef __STDC__
34363# include <limits.h>
34364#else
34365# include <assert.h>
34366#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000034367
34368#undef $ac_func
34369
Reid Spencera773bd52006-08-04 18:18:08 +000034370/* Override any GCC internal prototype to avoid an error.
34371 Use char because int might match the return type of a GCC
34372 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000034373#ifdef __cplusplus
34374extern "C"
34375#endif
John Criswell7a73b802003-06-30 21:59:07 +000034376char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034377/* The GNU C library defines this for functions which it implements
34378 to always fail with ENOSYS. Some functions are actually named
34379 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000034380#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000034381choke me
John Criswell7a73b802003-06-30 21:59:07 +000034382#endif
34383
John Criswell0c38eaf2003-09-10 15:17:25 +000034384int
34385main ()
34386{
Reid Spencera773bd52006-08-04 18:18:08 +000034387return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034388 ;
34389 return 0;
34390}
34391_ACEOF
34392rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034393if { (ac_try="$ac_link"
34394case "(($ac_try" in
34395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34396 *) ac_try_echo=$ac_try;;
34397esac
34398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34399 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034400 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034401 grep -v '^ *+' conftest.er1 >conftest.err
34402 rm -f conftest.er1
34403 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034405 (exit $ac_status); } &&
34406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34407 { (case "(($ac_try" in
34408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34409 *) ac_try_echo=$ac_try;;
34410esac
34411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34412 (eval "$ac_try") 2>&5
34413 ac_status=$?
34414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34415 (exit $ac_status); }; } &&
34416 { ac_try='test -s conftest$ac_exeext'
34417 { (case "(($ac_try" in
34418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34419 *) ac_try_echo=$ac_try;;
34420esac
34421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34422 (eval "$ac_try") 2>&5
34423 ac_status=$?
34424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034426 eval "$as_ac_var=yes"
34427else
34428 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034429sed 's/^/| /' conftest.$ac_ext >&5
34430
Reid Spencera773bd52006-08-04 18:18:08 +000034431 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000034432fi
Reid Spencera773bd52006-08-04 18:18:08 +000034433
Bill Wendlingebcceee2009-04-18 11:20:33 +000034434rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034435 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034436fi
Reid Spencera773bd52006-08-04 18:18:08 +000034437ac_res=`eval echo '${'$as_ac_var'}'`
34438 { echo "$as_me:$LINENO: result: $ac_res" >&5
34439echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034440if test `eval echo '${'$as_ac_var'}'` = yes; then
34441 cat >>confdefs.h <<_ACEOF
34442#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34443_ACEOF
34444
34445fi
34446done
34447
Reid Spencera773bd52006-08-04 18:18:08 +000034448{ echo "$as_me:$LINENO: checking for working mmap" >&5
34449echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034450if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34451 echo $ECHO_N "(cached) $ECHO_C" >&6
34452else
34453 if test "$cross_compiling" = yes; then
34454 ac_cv_func_mmap_fixed_mapped=no
34455else
34456 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034457/* confdefs.h. */
34458_ACEOF
34459cat confdefs.h >>conftest.$ac_ext
34460cat >>conftest.$ac_ext <<_ACEOF
34461/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034462$ac_includes_default
34463/* malloc might have been renamed as rpl_malloc. */
34464#undef malloc
34465
34466/* Thanks to Mike Haertel and Jim Avera for this test.
34467 Here is a matrix of mmap possibilities:
34468 mmap private not fixed
34469 mmap private fixed at somewhere currently unmapped
34470 mmap private fixed at somewhere already mapped
34471 mmap shared not fixed
34472 mmap shared fixed at somewhere currently unmapped
34473 mmap shared fixed at somewhere already mapped
34474 For private mappings, we should verify that changes cannot be read()
34475 back from the file, nor mmap's back from the file at a different
34476 address. (There have been systems where private was not correctly
34477 implemented like the infamous i386 svr4.0, and systems where the
34478 VM page cache was not coherent with the file system buffer cache
34479 like early versions of FreeBSD and possibly contemporary NetBSD.)
34480 For shared mappings, we should conversely verify that changes get
34481 propagated back to all the places they're supposed to be.
34482
34483 Grep wants private fixed already mapped.
34484 The main things grep needs to know about mmap are:
34485 * does it exist and is it safe to write into the mmap'd area
34486 * how to use it (BSD variants) */
34487
34488#include <fcntl.h>
34489#include <sys/mman.h>
34490
Bill Wendlingebcceee2009-04-18 11:20:33 +000034491#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000034492char *malloc ();
34493#endif
34494
34495/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034496#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000034497/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034498# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034499# define HAVE_SYS_PARAM_H 1
34500# endif
34501
34502# ifdef _SC_PAGESIZE
34503# define getpagesize() sysconf(_SC_PAGESIZE)
34504# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034505# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034506# include <sys/param.h>
34507# ifdef EXEC_PAGESIZE
34508# define getpagesize() EXEC_PAGESIZE
34509# else /* no EXEC_PAGESIZE */
34510# ifdef NBPG
34511# define getpagesize() NBPG * CLSIZE
34512# ifndef CLSIZE
34513# define CLSIZE 1
34514# endif /* no CLSIZE */
34515# else /* no NBPG */
34516# ifdef NBPC
34517# define getpagesize() NBPC
34518# else /* no NBPC */
34519# ifdef PAGESIZE
34520# define getpagesize() PAGESIZE
34521# endif /* PAGESIZE */
34522# endif /* no NBPC */
34523# endif /* no NBPG */
34524# endif /* no EXEC_PAGESIZE */
34525# else /* no HAVE_SYS_PARAM_H */
34526# define getpagesize() 8192 /* punt totally */
34527# endif /* no HAVE_SYS_PARAM_H */
34528# endif /* no _SC_PAGESIZE */
34529
34530#endif /* no HAVE_GETPAGESIZE */
34531
34532int
34533main ()
34534{
34535 char *data, *data2, *data3;
34536 int i, pagesize;
34537 int fd;
34538
34539 pagesize = getpagesize ();
34540
34541 /* First, make a file with some known garbage in it. */
34542 data = (char *) malloc (pagesize);
34543 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000034544 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034545 for (i = 0; i < pagesize; ++i)
34546 *(data + i) = rand ();
34547 umask (0);
34548 fd = creat ("conftest.mmap", 0600);
34549 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034550 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034551 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034552 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034553 close (fd);
34554
34555 /* Next, try to mmap the file at a fixed address which already has
34556 something else allocated at it. If we can, also make sure that
34557 we see the same garbage. */
34558 fd = open ("conftest.mmap", O_RDWR);
34559 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034560 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034561 data2 = (char *) malloc (2 * pagesize);
34562 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000034563 return 1;
34564 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000034565 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000034566 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000034567 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034568 for (i = 0; i < pagesize; ++i)
34569 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034570 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034571
34572 /* Finally, make sure that changes to the mapped area do not
34573 percolate back to the file as seen by read(). (This is a bug on
34574 some variants of i386 svr4.0.) */
34575 for (i = 0; i < pagesize; ++i)
34576 *(data2 + i) = *(data2 + i) + 1;
34577 data3 = (char *) malloc (pagesize);
34578 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000034579 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034580 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034581 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034582 for (i = 0; i < pagesize; ++i)
34583 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034584 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034585 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034586 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034587}
34588_ACEOF
34589rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034590if { (ac_try="$ac_link"
34591case "(($ac_try" in
34592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34593 *) ac_try_echo=$ac_try;;
34594esac
34595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34596 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034597 ac_status=$?
34598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034600 { (case "(($ac_try" in
34601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34602 *) ac_try_echo=$ac_try;;
34603esac
34604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34605 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034606 ac_status=$?
34607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34608 (exit $ac_status); }; }; then
34609 ac_cv_func_mmap_fixed_mapped=yes
34610else
34611 echo "$as_me: program exited with status $ac_status" >&5
34612echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034613sed 's/^/| /' conftest.$ac_ext >&5
34614
John Criswell7a73b802003-06-30 21:59:07 +000034615( exit $ac_status )
34616ac_cv_func_mmap_fixed_mapped=no
34617fi
Reid Spencera773bd52006-08-04 18:18:08 +000034618rm -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 +000034619fi
Reid Spencera773bd52006-08-04 18:18:08 +000034620
34621
John Criswell7a73b802003-06-30 21:59:07 +000034622fi
Reid Spencera773bd52006-08-04 18:18:08 +000034623{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34624echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034625if test $ac_cv_func_mmap_fixed_mapped = yes; then
34626
34627cat >>confdefs.h <<\_ACEOF
34628#define HAVE_MMAP 1
34629_ACEOF
34630
34631fi
34632rm -f conftest.mmap
34633
Reid Spencer30fe5262007-01-20 07:48:49 +000034634 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034635echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034636if test "${ac_cv_func_mmap_file+set}" = set; then
34637 echo $ECHO_N "(cached) $ECHO_C" >&6
34638else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034639 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034640ac_cpp='$CPP $CPPFLAGS'
34641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34643ac_compiler_gnu=$ac_cv_c_compiler_gnu
34644
34645 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034646 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034647else
34648 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034649
Reid Spencer777ce172004-09-20 04:09:56 +000034650 /* confdefs.h. */
34651_ACEOF
34652cat confdefs.h >>conftest.$ac_ext
34653cat >>conftest.$ac_ext <<_ACEOF
34654/* end confdefs.h. */
34655
John Criswell7a73b802003-06-30 21:59:07 +000034656#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034657#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034658#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034659
34660int
34661main ()
34662{
John Criswell7a73b802003-06-30 21:59:07 +000034663
34664 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034665 fd = creat ("foo",0777);
34666 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34667 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034668 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034669 ;
34670 return 0;
34671}
John Criswell7a73b802003-06-30 21:59:07 +000034672_ACEOF
34673rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034674if { (ac_try="$ac_link"
34675case "(($ac_try" in
34676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34677 *) ac_try_echo=$ac_try;;
34678esac
34679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34680 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034681 ac_status=$?
34682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034684 { (case "(($ac_try" in
34685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34686 *) ac_try_echo=$ac_try;;
34687esac
34688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34689 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034690 ac_status=$?
34691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34692 (exit $ac_status); }; }; then
34693 ac_cv_func_mmap_file=yes
34694else
34695 echo "$as_me: program exited with status $ac_status" >&5
34696echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034697sed 's/^/| /' conftest.$ac_ext >&5
34698
John Criswell7a73b802003-06-30 21:59:07 +000034699( exit $ac_status )
34700ac_cv_func_mmap_file=no
34701fi
Reid Spencera773bd52006-08-04 18:18:08 +000034702rm -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 +000034703fi
Reid Spencera773bd52006-08-04 18:18:08 +000034704
34705
John Criswell7a73b802003-06-30 21:59:07 +000034706 ac_ext=c
34707ac_cpp='$CPP $CPPFLAGS'
34708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34710ac_compiler_gnu=$ac_cv_c_compiler_gnu
34711
34712
34713fi
Reid Spencera773bd52006-08-04 18:18:08 +000034714{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34715echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034716if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034717
34718cat >>confdefs.h <<\_ACEOF
34719#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034720_ACEOF
34721
34722 MMAP_FILE=yes
34723
34724fi
34725
Reid Spencer30fe5262007-01-20 07:48:49 +000034726 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034727echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034728if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34729 echo $ECHO_N "(cached) $ECHO_C" >&6
34730else
Reid Spencer582a23c2004-12-29 07:07:57 +000034731 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034732 ac_cv_need_dev_zero_for_mmap=yes
34733 else
34734 ac_cv_need_dev_zero_for_mmap=no
34735 fi
34736
34737fi
Reid Spencera773bd52006-08-04 18:18:08 +000034738{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34739echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034740if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34741
34742cat >>confdefs.h <<\_ACEOF
34743#define NEED_DEV_ZERO_FOR_MMAP 1
34744_ACEOF
34745
34746fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034747
Reid Spencer30fe5262007-01-20 07:48:49 +000034748 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34749 then
34750 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034751echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034752 fi
34753 if test "$ac_cv_func_mmap_file" = "no"
34754 then
34755 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034756echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034757 fi
John Criswellb13092b2003-07-22 21:00:24 +000034758fi
John Criswell7a73b802003-06-30 21:59:07 +000034759
Owen Andersona8603702009-05-19 22:18:56 +000034760{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000034761echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034762cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000034763/* confdefs.h. */
34764_ACEOF
34765cat confdefs.h >>conftest.$ac_ext
34766cat >>conftest.$ac_ext <<_ACEOF
34767/* end confdefs.h. */
34768int main() {
Owen Andersona8603702009-05-19 22:18:56 +000034769 volatile unsigned long val = 1;
34770 __sync_synchronize();
34771 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000034772 __sync_add_and_fetch(&val, 1);
34773 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000034774 return 0;
34775 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034776
34777_ACEOF
34778rm -f conftest.$ac_objext conftest$ac_exeext
34779if { (ac_try="$ac_link"
34780case "(($ac_try" in
34781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34782 *) ac_try_echo=$ac_try;;
34783esac
34784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34785 (eval "$ac_link") 2>conftest.er1
34786 ac_status=$?
34787 grep -v '^ *+' conftest.er1 >conftest.err
34788 rm -f conftest.er1
34789 cat conftest.err >&5
34790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791 (exit $ac_status); } &&
34792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34793 { (case "(($ac_try" in
34794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34795 *) ac_try_echo=$ac_try;;
34796esac
34797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34798 (eval "$ac_try") 2>&5
34799 ac_status=$?
34800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34801 (exit $ac_status); }; } &&
34802 { ac_try='test -s conftest$ac_exeext'
34803 { (case "(($ac_try" in
34804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34805 *) ac_try_echo=$ac_try;;
34806esac
34807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34808 (eval "$ac_try") 2>&5
34809 ac_status=$?
34810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34811 (exit $ac_status); }; }; then
34812 { echo "$as_me:$LINENO: result: yes" >&5
34813echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034814
34815cat >>confdefs.h <<\_ACEOF
34816#define LLVM_MULTITHREADED 1
34817_ACEOF
34818
Owen Andersond4b272b2009-05-18 23:58:51 +000034819else
34820 echo "$as_me: failed program was:" >&5
34821sed 's/^/| /' conftest.$ac_ext >&5
34822
34823 { echo "$as_me:$LINENO: result: no" >&5
34824echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034825
Owen Andersona8603702009-05-19 22:18:56 +000034826cat >>confdefs.h <<\_ACEOF
34827#define LLVM_MULTITHREADED 0
34828_ACEOF
34829
34830 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34831echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034832fi
34833
34834rm -f core conftest.err conftest.$ac_objext \
34835 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034836
34837
John Criswell7a73b802003-06-30 21:59:07 +000034838
Reid Spencer9372f152007-07-30 20:13:24 +000034839
34840for ac_func in __dso_handle
34841do
34842as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34843{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34844echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34845if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34846 echo $ECHO_N "(cached) $ECHO_C" >&6
34847else
34848 cat >conftest.$ac_ext <<_ACEOF
34849/* confdefs.h. */
34850_ACEOF
34851cat confdefs.h >>conftest.$ac_ext
34852cat >>conftest.$ac_ext <<_ACEOF
34853/* end confdefs.h. */
34854/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34856#define $ac_func innocuous_$ac_func
34857
34858/* System header to define __stub macros and hopefully few prototypes,
34859 which can conflict with char $ac_func (); below.
34860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34861 <limits.h> exists even on freestanding compilers. */
34862
34863#ifdef __STDC__
34864# include <limits.h>
34865#else
34866# include <assert.h>
34867#endif
34868
34869#undef $ac_func
34870
34871/* Override any GCC internal prototype to avoid an error.
34872 Use char because int might match the return type of a GCC
34873 builtin and then its argument prototype would still apply. */
34874#ifdef __cplusplus
34875extern "C"
34876#endif
34877char $ac_func ();
34878/* The GNU C library defines this for functions which it implements
34879 to always fail with ENOSYS. Some functions are actually named
34880 something starting with __ and the normal name is an alias. */
34881#if defined __stub_$ac_func || defined __stub___$ac_func
34882choke me
34883#endif
34884
34885int
34886main ()
34887{
34888return $ac_func ();
34889 ;
34890 return 0;
34891}
34892_ACEOF
34893rm -f conftest.$ac_objext conftest$ac_exeext
34894if { (ac_try="$ac_link"
34895case "(($ac_try" in
34896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34897 *) ac_try_echo=$ac_try;;
34898esac
34899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34900 (eval "$ac_link") 2>conftest.er1
34901 ac_status=$?
34902 grep -v '^ *+' conftest.er1 >conftest.err
34903 rm -f conftest.er1
34904 cat conftest.err >&5
34905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034906 (exit $ac_status); } &&
34907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34908 { (case "(($ac_try" in
34909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34910 *) ac_try_echo=$ac_try;;
34911esac
34912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34913 (eval "$ac_try") 2>&5
34914 ac_status=$?
34915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34916 (exit $ac_status); }; } &&
34917 { ac_try='test -s conftest$ac_exeext'
34918 { (case "(($ac_try" in
34919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34920 *) ac_try_echo=$ac_try;;
34921esac
34922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34923 (eval "$ac_try") 2>&5
34924 ac_status=$?
34925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034927 eval "$as_ac_var=yes"
34928else
34929 echo "$as_me: failed program was:" >&5
34930sed 's/^/| /' conftest.$ac_ext >&5
34931
34932 eval "$as_ac_var=no"
34933fi
34934
Bill Wendlingebcceee2009-04-18 11:20:33 +000034935rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034936 conftest$ac_exeext conftest.$ac_ext
34937fi
34938ac_res=`eval echo '${'$as_ac_var'}'`
34939 { echo "$as_me:$LINENO: result: $ac_res" >&5
34940echo "${ECHO_T}$ac_res" >&6; }
34941if test `eval echo '${'$as_ac_var'}'` = yes; then
34942 cat >>confdefs.h <<_ACEOF
34943#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34944_ACEOF
34945
34946fi
34947done
34948
34949
Reid Spencera773bd52006-08-04 18:18:08 +000034950{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34951echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034952if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34953 echo $ECHO_N "(cached) $ECHO_C" >&6
34954else
34955 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034956if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034957 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034958 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34959 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034960 if test $? -eq 0 ; then
34961 llvm_cv_llvmgcc_sanity="yes"
34962 fi
34963 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034964fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034965fi
Reid Spencera773bd52006-08-04 18:18:08 +000034966{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34967echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034968
34969if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034970 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34971echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034972 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034973 LLVMCC1=$llvmcc1path
34974
Reid Spencer502935f2004-12-22 05:56:56 +000034975 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034976 LLVMCC1PLUS=$llvmcc1pluspath
34977
Reid Spencer502935f2004-12-22 05:56:56 +000034978 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34979 LLVMGCCDIR=$llvmgccdir
34980
Reid Spencer282d8c12006-12-21 22:55:41 +000034981 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34982 LLVMGCCLIBEXEC=$llvmgcclibexec
34983
Reid Spencerb5d75b82006-05-09 00:31:01 +000034984 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034985 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34986 LLVMGCC_VERSION=$llvmgccversion
34987
34988 LLVMGCC_MAJVERS=$llvmgccmajvers
34989
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000034990 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000034991 LLVMGCC_LANGS=$llvmgcclangs
34992
34993 { echo "$as_me:$LINENO: result: ok" >&5
34994echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034995fi
34996
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034997SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034998
34999
Reid Spencere9de0912004-08-20 09:03:57 +000035000# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035001# information into substitutions that will end up in Makefile.config.in
35002# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000035003if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000035004 prefix="/usr/local"
35005fi
Reid Spencere9de0912004-08-20 09:03:57 +000035006eval LLVM_PREFIX="${prefix}";
35007eval LLVM_BINDIR="${prefix}/bin";
35008eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000035009eval LLVM_DATADIR="${prefix}/share/llvm";
35010eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35011eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000035012eval LLVM_INCLUDEDIR="${prefix}/include";
35013eval LLVM_INFODIR="${prefix}/info";
35014eval LLVM_MANDIR="${prefix}/man";
35015LLVM_CONFIGTIME=`date`
35016
35017
35018
35019
35020
35021
35022
35023
35024
35025
35026
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035027# Place the various directores into the config.h file as #defines so that we
35028# can know about the installation paths within LLVM.
35029
Reid Spencere9de0912004-08-20 09:03:57 +000035030cat >>confdefs.h <<_ACEOF
35031#define LLVM_PREFIX "$LLVM_PREFIX"
35032_ACEOF
35033
35034
35035cat >>confdefs.h <<_ACEOF
35036#define LLVM_BINDIR "$LLVM_BINDIR"
35037_ACEOF
35038
35039
35040cat >>confdefs.h <<_ACEOF
35041#define LLVM_LIBDIR "$LLVM_LIBDIR"
35042_ACEOF
35043
35044
35045cat >>confdefs.h <<_ACEOF
35046#define LLVM_DATADIR "$LLVM_DATADIR"
35047_ACEOF
35048
35049
35050cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000035051#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035052_ACEOF
35053
35054
35055cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000035056#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035057_ACEOF
35058
35059
35060cat >>confdefs.h <<_ACEOF
35061#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35062_ACEOF
35063
35064
35065cat >>confdefs.h <<_ACEOF
35066#define LLVM_INFODIR "$LLVM_INFODIR"
35067_ACEOF
35068
35069
35070cat >>confdefs.h <<_ACEOF
35071#define LLVM_MANDIR "$LLVM_MANDIR"
35072_ACEOF
35073
35074
35075cat >>confdefs.h <<_ACEOF
35076#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35077_ACEOF
35078
35079
Eric Christopher790e11c2007-12-01 00:34:39 +000035080cat >>confdefs.h <<_ACEOF
35081#define LLVM_HOSTTRIPLE "$host"
35082_ACEOF
35083
35084
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035085# Determine which bindings to build.
35086if test "$BINDINGS_TO_BUILD" = auto ; then
35087 BINDINGS_TO_BUILD=""
35088 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35089 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35090 fi
35091fi
35092BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35093
35094
35095# This isn't really configurey, but it avoids having to repeat the list in
35096# other files.
35097ALL_BINDINGS=ocaml
35098
35099
Gordon Henriksenf0915682007-10-02 16:42:22 +000035100# Do any work necessary to ensure that bindings have what they need.
35101binding_prereqs_failed=0
35102for a_binding in $BINDINGS_TO_BUILD ; do
35103 case "$a_binding" in
35104 ocaml)
35105 if test "x$OCAMLC" = x ; then
35106 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35107echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35108 binding_prereqs_failed=1
35109 fi
35110 if test "x$OCAMLDEP" = x ; then
35111 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35112echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35113 binding_prereqs_failed=1
35114 fi
35115 if test "x$OCAMLOPT" = x ; then
35116 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35117echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35118 fi
35119 if test "x$with_ocaml_libdir" != xauto ; then
35120 OCAML_LIBDIR=$with_ocaml_libdir
35121
35122 else
35123 ocaml_stdlib="`"$OCAMLC" -where`"
35124 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35125 then
35126 # ocaml stdlib is beneath our prefix; use stdlib
35127 OCAML_LIBDIR=$ocaml_stdlib
35128
35129 else
35130 # ocaml stdlib is outside our prefix; use libdir/ocaml
35131 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35132
35133 fi
35134 fi
35135 ;;
35136 esac
35137done
35138if test "$binding_prereqs_failed" = 1 ; then
35139 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35140echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35141 { (exit 1); exit 1; }; }
35142fi
35143
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035144{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35145echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35146if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35147 echo $ECHO_N "(cached) $ECHO_C" >&6
35148else
35149 ac_ext=cpp
35150ac_cpp='$CXXCPP $CPPFLAGS'
35151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35154
35155 oldcxxflags="$CXXFLAGS"
35156 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35157 cat >conftest.$ac_ext <<_ACEOF
35158/* confdefs.h. */
35159_ACEOF
35160cat confdefs.h >>conftest.$ac_ext
35161cat >>conftest.$ac_ext <<_ACEOF
35162/* end confdefs.h. */
35163
35164int
35165main ()
35166{
35167
35168 ;
35169 return 0;
35170}
35171_ACEOF
35172rm -f conftest.$ac_objext
35173if { (ac_try="$ac_compile"
35174case "(($ac_try" in
35175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35176 *) ac_try_echo=$ac_try;;
35177esac
35178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35179 (eval "$ac_compile") 2>conftest.er1
35180 ac_status=$?
35181 grep -v '^ *+' conftest.er1 >conftest.err
35182 rm -f conftest.er1
35183 cat conftest.err >&5
35184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000035185 (exit $ac_status); } &&
35186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35187 { (case "(($ac_try" in
35188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35189 *) ac_try_echo=$ac_try;;
35190esac
35191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35192 (eval "$ac_try") 2>&5
35193 ac_status=$?
35194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35195 (exit $ac_status); }; } &&
35196 { ac_try='test -s conftest.$ac_objext'
35197 { (case "(($ac_try" in
35198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35199 *) ac_try_echo=$ac_try;;
35200esac
35201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35202 (eval "$ac_try") 2>&5
35203 ac_status=$?
35204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35205 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035206 llvm_cv_cxx_visibility_inlines_hidden=yes
35207else
35208 echo "$as_me: failed program was:" >&5
35209sed 's/^/| /' conftest.$ac_ext >&5
35210
35211 llvm_cv_cxx_visibility_inlines_hidden=no
35212fi
35213
35214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35215 CXXFLAGS="$oldcxxflags"
35216 ac_ext=c
35217ac_cpp='$CPP $CPPFLAGS'
35218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35220ac_compiler_gnu=$ac_cv_c_compiler_gnu
35221
35222
35223fi
35224{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35225echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35226if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35227 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35228
35229else
35230 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35231
35232fi
35233
Gordon Henriksenf0915682007-10-02 16:42:22 +000035234
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035235if test "$llvm_cv_link_use_r" = "yes" ; then
35236 RPATH="-Wl,-R"
35237else
35238 RPATH="-Wl,-rpath"
35239fi
35240
35241
35242if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35243 RDYNAMIC="-Wl,-export-dynamic"
35244else
35245 RDYNAMIC=""
35246fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035247
35248
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035249
Reid Spencera773bd52006-08-04 18:18:08 +000035250ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035251
Douglas Gregor1555a232009-06-16 20:12:29 +000035252ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35253
35254ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35255
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035256ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35257
Reid Spencera773bd52006-08-04 18:18:08 +000035258ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035259
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035260ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035261
35262
Reid Spencera773bd52006-08-04 18:18:08 +000035263ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035264
35265
Reid Spencerea949cf2006-08-16 00:45:38 +000035266ac_config_files="$ac_config_files llvm.spec"
35267
35268
Reid Spencera773bd52006-08-04 18:18:08 +000035269ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000035270
35271
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035272ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35273
35274
Reid Spencera773bd52006-08-04 18:18:08 +000035275ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000035276
35277
Reid Spencera773bd52006-08-04 18:18:08 +000035278ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000035279
Reid Spencera773bd52006-08-04 18:18:08 +000035280ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035281
35282
Reid Spencera773bd52006-08-04 18:18:08 +000035283ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035284
35285
Reid Spencera773bd52006-08-04 18:18:08 +000035286ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035287
35288
Reid Spencera773bd52006-08-04 18:18:08 +000035289ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035290
35291
Reid Spencer8b2e1412006-11-17 03:32:33 +000035292ac_config_commands="$ac_config_commands runtime/Makefile"
35293
35294
Reid Spencera773bd52006-08-04 18:18:08 +000035295ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035296
35297
Reid Spencera773bd52006-08-04 18:18:08 +000035298ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035299
35300
Bill Wendlingf24eb392009-01-04 23:12:30 +000035301ac_config_commands="$ac_config_commands unittests/Makefile"
35302
35303
Reid Spencera773bd52006-08-04 18:18:08 +000035304ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035305
35306
Reid Spencera773bd52006-08-04 18:18:08 +000035307ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035308
35309
Reid Spencera773bd52006-08-04 18:18:08 +000035310ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035311
35312
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035313ac_config_commands="$ac_config_commands bindings/Makefile"
35314
35315
35316ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35317
35318
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035319
John Criswell7a73b802003-06-30 21:59:07 +000035320cat >confcache <<\_ACEOF
35321# This file is a shell script that caches the results of configure
35322# tests run on this system so they can be shared between configure
35323# scripts and configure runs, see configure's option --config-cache.
35324# It is not useful on other systems. If it contains results you don't
35325# want to keep, you may remove or edit it.
35326#
35327# config.status only pays attention to the cache file if you give it
35328# the --recheck option to rerun configure.
35329#
John Criswell0c38eaf2003-09-10 15:17:25 +000035330# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000035331# loading this file, other *unset* `ac_cv_foo' will be assigned the
35332# following values.
35333
35334_ACEOF
35335
35336# The following way of writing the cache mishandles newlines in values,
35337# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000035338# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000035339# Ultrix sh set writes to stderr and can't be redirected directly,
35340# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000035341(
35342 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35343 eval ac_val=\$$ac_var
35344 case $ac_val in #(
35345 *${as_nl}*)
35346 case $ac_var in #(
35347 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35348echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35349 esac
35350 case $ac_var in #(
35351 _ | IFS | as_nl) ;; #(
35352 *) $as_unset $ac_var ;;
35353 esac ;;
35354 esac
35355 done
35356
John Criswell7a73b802003-06-30 21:59:07 +000035357 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000035358 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35359 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000035360 # `set' does not quote correctly, so add quotes (double-quote
35361 # substitution turns \\\\ into \\, and sed turns \\ into \).
35362 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035363 "s/'/'\\\\''/g;
35364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000035365 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000035366 *)
35367 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000035368 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000035369 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035370 esac |
35371 sort
35372) |
John Criswell7a73b802003-06-30 21:59:07 +000035373 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035374 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000035375 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000035376 :clear
John Criswell7a73b802003-06-30 21:59:07 +000035377 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35378 t end
Reid Spencera773bd52006-08-04 18:18:08 +000035379 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35380 :end' >>confcache
35381if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35382 if test -w "$cache_file"; then
35383 test "x$cache_file" != "x/dev/null" &&
35384 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35385echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035386 cat confcache >$cache_file
35387 else
Reid Spencera773bd52006-08-04 18:18:08 +000035388 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35389echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035390 fi
35391fi
35392rm -f confcache
35393
35394test "x$prefix" = xNONE && prefix=$ac_default_prefix
35395# Let make expand exec_prefix.
35396test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35397
John Criswell7a73b802003-06-30 21:59:07 +000035398DEFS=-DHAVE_CONFIG_H
35399
John Criswell0c38eaf2003-09-10 15:17:25 +000035400ac_libobjs=
35401ac_ltlibobjs=
35402for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35403 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000035404 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35405 ac_i=`echo "$ac_i" | sed "$ac_script"`
35406 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35407 # will be set to the directory where LIBOBJS objects are built.
35408 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35409 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000035410done
35411LIBOBJS=$ac_libobjs
35412
35413LTLIBOBJS=$ac_ltlibobjs
35414
35415
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035416if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35417 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35418Usually this means the macro was only invoked conditionally." >&5
35419echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35420Usually this means the macro was only invoked conditionally." >&2;}
35421 { (exit 1); exit 1; }; }
35422fi
35423if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35424 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35425Usually this means the macro was only invoked conditionally." >&5
35426echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35427Usually this means the macro was only invoked conditionally." >&2;}
35428 { (exit 1); exit 1; }; }
35429fi
John Criswell7a73b802003-06-30 21:59:07 +000035430
35431: ${CONFIG_STATUS=./config.status}
35432ac_clean_files_save=$ac_clean_files
35433ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35434{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35435echo "$as_me: creating $CONFIG_STATUS" >&6;}
35436cat >$CONFIG_STATUS <<_ACEOF
35437#! $SHELL
35438# Generated by $as_me.
35439# Run this file to recreate the current configuration.
35440# Compiler output produced by configure, useful for debugging
35441# configure, is in config.log if it exists.
35442
35443debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000035444ac_cs_recheck=false
35445ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000035446SHELL=\${CONFIG_SHELL-$SHELL}
35447_ACEOF
35448
35449cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035450## --------------------- ##
35451## M4sh Initialization. ##
35452## --------------------- ##
35453
Bill Wendlingebcceee2009-04-18 11:20:33 +000035454# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000035455if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35456 emulate sh
35457 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035458 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35459 # is contrary to our usage. Disable this feature.
35460 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000035461 setopt NO_GLOB_SUBST
35462else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035463 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000035464fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035465BIN_SH=xpg4; export BIN_SH # for Tru64
35466DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000035467
John Criswell7a73b802003-06-30 21:59:07 +000035468
Reid Spencera773bd52006-08-04 18:18:08 +000035469# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000035470# Avoid depending upon Character Ranges.
35471as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35472as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35473as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35474as_cr_digits='0123456789'
35475as_cr_alnum=$as_cr_Letters$as_cr_digits
35476
35477# The user is always right.
35478if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000035479 echo "#! /bin/sh" >conf$$.sh
35480 echo "exit 0" >>conf$$.sh
35481 chmod +x conf$$.sh
35482 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035483 PATH_SEPARATOR=';'
35484 else
35485 PATH_SEPARATOR=:
35486 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000035487 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000035488fi
35489
Reid Spencera773bd52006-08-04 18:18:08 +000035490# Support unset when possible.
35491if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35492 as_unset=unset
35493else
35494 as_unset=false
35495fi
John Criswell7a73b802003-06-30 21:59:07 +000035496
Reid Spencera773bd52006-08-04 18:18:08 +000035497
35498# IFS
35499# We need space, tab and new line, in precisely that order. Quoting is
35500# there to prevent editors from complaining about space-tab.
35501# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35502# splitting by setting IFS to empty value.)
35503as_nl='
35504'
35505IFS=" "" $as_nl"
35506
35507# Find who we are. Look in the path if we contain no directory separator.
35508case $0 in
35509 *[\\/]* ) as_myself=$0 ;;
35510 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000035511for as_dir in $PATH
35512do
35513 IFS=$as_save_IFS
35514 test -z "$as_dir" && as_dir=.
35515 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35516done
Reid Spencera773bd52006-08-04 18:18:08 +000035517IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000035518
Reid Spencera773bd52006-08-04 18:18:08 +000035519 ;;
35520esac
35521# We did not find ourselves, most probably we were run as `sh COMMAND'
35522# in which case we are not to be found in the path.
35523if test "x$as_myself" = x; then
35524 as_myself=$0
35525fi
35526if test ! -f "$as_myself"; then
35527 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35528 { (exit 1); exit 1; }
35529fi
35530
35531# Work around bugs in pre-3.0 UWIN ksh.
35532for as_var in ENV MAIL MAILPATH
35533do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35534done
35535PS1='$ '
35536PS2='> '
35537PS4='+ '
35538
35539# NLS nuisances.
35540for as_var in \
35541 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35542 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35543 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000035544do
Reid Spencera773bd52006-08-04 18:18:08 +000035545 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35546 eval $as_var=C; export $as_var
35547 else
35548 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35549 fi
35550done
35551
35552# Required to use basename.
35553if expr a : '\(a\)' >/dev/null 2>&1 &&
35554 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35555 as_expr=expr
35556else
35557 as_expr=false
35558fi
35559
35560if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35561 as_basename=basename
35562else
35563 as_basename=false
35564fi
35565
35566
35567# Name of the executable.
35568as_me=`$as_basename -- "$0" ||
35569$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35570 X"$0" : 'X\(//\)$' \| \
35571 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35572echo X/"$0" |
35573 sed '/^.*\/\([^/][^/]*\)\/*$/{
35574 s//\1/
35575 q
35576 }
35577 /^X\/\(\/\/\)$/{
35578 s//\1/
35579 q
35580 }
35581 /^X\/\(\/\).*/{
35582 s//\1/
35583 q
35584 }
35585 s/.*/./; q'`
35586
35587# CDPATH.
35588$as_unset CDPATH
35589
35590
35591
John Criswell7a73b802003-06-30 21:59:07 +000035592 as_lineno_1=$LINENO
35593 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000035594 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000035595 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000035596
35597 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35598 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000035599 # line-number line after each line using $LINENO; the second 'sed'
35600 # does the real work. The second script uses 'N' to pair each
35601 # line-number line with the line containing $LINENO, and appends
35602 # trailing '-' during substitution so that $LINENO is not a special
35603 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000035604 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000035605 # scripts with optimization help from Paolo Bonzini. Blame Lee
35606 # E. McMahon (1931-1989) for sed's syntax. :-)
35607 sed -n '
35608 p
35609 /[$]LINENO/=
35610 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000035611 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035612 s/[$]LINENO.*/&-/
35613 t lineno
35614 b
35615 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000035616 N
Reid Spencera773bd52006-08-04 18:18:08 +000035617 :loop
35618 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000035619 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000035620 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000035621 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000035622 chmod +x "$as_me.lineno" ||
35623 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000035624 { (exit 1); exit 1; }; }
35625
35626 # Don't try to exec as it changes $[0], causing all sort of problems
35627 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000035628 # original and so on. Autoconf is especially sensitive to this).
35629 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000035630 # Exit status is that of the last command.
35631 exit
35632}
35633
35634
Reid Spencera773bd52006-08-04 18:18:08 +000035635if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35636 as_dirname=dirname
35637else
35638 as_dirname=false
35639fi
35640
35641ECHO_C= ECHO_N= ECHO_T=
35642case `echo -n x` in
35643-n*)
35644 case `echo 'x\c'` in
35645 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35646 *) ECHO_C='\c';;
35647 esac;;
35648*)
35649 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000035650esac
35651
Reid Spencera773bd52006-08-04 18:18:08 +000035652if expr a : '\(a\)' >/dev/null 2>&1 &&
35653 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000035654 as_expr=expr
35655else
35656 as_expr=false
35657fi
35658
35659rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000035660if test -d conf$$.dir; then
35661 rm -f conf$$.dir/conf$$.file
35662else
35663 rm -f conf$$.dir
35664 mkdir conf$$.dir
35665fi
John Criswell7a73b802003-06-30 21:59:07 +000035666echo >conf$$.file
35667if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000035668 as_ln_s='ln -s'
35669 # ... but there are two gotchas:
35670 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35671 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35672 # In both cases, we have to default to `cp -p'.
35673 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000035674 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000035675elif ln conf$$.file conf$$ 2>/dev/null; then
35676 as_ln_s=ln
35677else
35678 as_ln_s='cp -p'
35679fi
Reid Spencera773bd52006-08-04 18:18:08 +000035680rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35681rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035682
John Criswell0c38eaf2003-09-10 15:17:25 +000035683if mkdir -p . 2>/dev/null; then
35684 as_mkdir_p=:
35685else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035686 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035687 as_mkdir_p=false
35688fi
35689
Bill Wendlingebcceee2009-04-18 11:20:33 +000035690# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35691# systems may use methods other than mode bits to determine executability.
35692cat >conf$$.file <<_ASEOF
35693#! /bin/sh
35694exit 0
35695_ASEOF
35696chmod +x conf$$.file
35697if test -x conf$$.file >/dev/null 2>&1; then
35698 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035699else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035700 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035701fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035702rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035703
35704# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035705as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035706
35707# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035708as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035709
35710
John Criswell7a73b802003-06-30 21:59:07 +000035711exec 6>&1
35712
Reid Spencera773bd52006-08-04 18:18:08 +000035713# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035714# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035715# values after options handling.
35716ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035717This file was extended by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000035718generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035719
35720 CONFIG_FILES = $CONFIG_FILES
35721 CONFIG_HEADERS = $CONFIG_HEADERS
35722 CONFIG_LINKS = $CONFIG_LINKS
35723 CONFIG_COMMANDS = $CONFIG_COMMANDS
35724 $ $0 $@
35725
Reid Spencera773bd52006-08-04 18:18:08 +000035726on `(hostname || uname -n) 2>/dev/null | sed 1q`
35727"
35728
John Criswell7a73b802003-06-30 21:59:07 +000035729_ACEOF
35730
Reid Spencera773bd52006-08-04 18:18:08 +000035731cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035732# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035733config_files="$ac_config_files"
35734config_headers="$ac_config_headers"
35735config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035736
Reid Spencera773bd52006-08-04 18:18:08 +000035737_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035738
35739cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035740ac_cs_usage="\
35741\`$as_me' instantiates files from templates according to the
35742current configuration.
35743
35744Usage: $0 [OPTIONS] [FILE]...
35745
35746 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000035747 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035748 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035749 -d, --debug don't remove temporary files
35750 --recheck update $as_me by reconfiguring in the same conditions
35751 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035752 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035753 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035754 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035755
35756Configuration files:
35757$config_files
35758
35759Configuration headers:
35760$config_headers
35761
John Criswellc764fbc2003-09-06 15:17:13 +000035762Configuration commands:
35763$config_commands
35764
John Criswell7a73b802003-06-30 21:59:07 +000035765Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035766
Reid Spencera773bd52006-08-04 18:18:08 +000035767_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035768cat >>$CONFIG_STATUS <<_ACEOF
35769ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035770llvm config.status 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000035771configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035772 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035773
Reid Spencera773bd52006-08-04 18:18:08 +000035774Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035775This config.status script is free software; the Free Software Foundation
35776gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035777
35778ac_pwd='$ac_pwd'
35779srcdir='$srcdir'
35780INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035781_ACEOF
35782
35783cat >>$CONFIG_STATUS <<\_ACEOF
35784# If no file are specified by the user, then we need to provide default
35785# value. By we need to know if files were specified by the user.
35786ac_need_defaults=:
35787while test $# != 0
35788do
35789 case $1 in
35790 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035791 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35792 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035793 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035794 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035795 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035796 ac_option=$1
35797 ac_optarg=$2
35798 ac_shift=shift
35799 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035800 esac
35801
John Criswell0c38eaf2003-09-10 15:17:25 +000035802 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035803 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035804 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35805 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035806 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35807 echo "$ac_cs_version"; exit ;;
35808 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035809 debug=: ;;
35810 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035811 $ac_shift
35812 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035813 ac_need_defaults=false;;
35814 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035815 $ac_shift
35816 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035817 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035818 --he | --h)
35819 # Conflict between --help and --header
35820 { echo "$as_me: error: ambiguous option: $1
35821Try \`$0 --help' for more information." >&2
35822 { (exit 1); exit 1; }; };;
35823 --help | --hel | -h )
35824 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35826 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35827 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035828
35829 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035830 -*) { echo "$as_me: error: unrecognized option: $1
35831Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035832 { (exit 1); exit 1; }; } ;;
35833
Reid Spencera773bd52006-08-04 18:18:08 +000035834 *) ac_config_targets="$ac_config_targets $1"
35835 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035836
35837 esac
35838 shift
35839done
35840
John Criswell0c38eaf2003-09-10 15:17:25 +000035841ac_configure_extra_args=
35842
35843if $ac_cs_silent; then
35844 exec 6>/dev/null
35845 ac_configure_extra_args="$ac_configure_extra_args --silent"
35846fi
35847
35848_ACEOF
35849cat >>$CONFIG_STATUS <<_ACEOF
35850if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035851 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35852 CONFIG_SHELL=$SHELL
35853 export CONFIG_SHELL
35854 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035855fi
35856
John Criswell7a73b802003-06-30 21:59:07 +000035857_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035858cat >>$CONFIG_STATUS <<\_ACEOF
35859exec 5>>config.log
35860{
35861 echo
35862 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35863## Running $as_me. ##
35864_ASBOX
35865 echo "$ac_log"
35866} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035867
Reid Spencera773bd52006-08-04 18:18:08 +000035868_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035869cat >>$CONFIG_STATUS <<_ACEOF
35870#
Reid Spencera773bd52006-08-04 18:18:08 +000035871# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035872#
Reid Spencerc0682832005-02-24 19:05:19 +000035873llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035874
35875_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035876
John Criswell7a73b802003-06-30 21:59:07 +000035877cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035878
35879# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035880for ac_config_target in $ac_config_targets
35881do
Reid Spencera773bd52006-08-04 18:18:08 +000035882 case $ac_config_target in
35883 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000035884 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35885 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035886 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035887 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035888 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035889 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035890 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035891 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035892 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035893 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35894 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35895 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35896 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35897 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35898 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035899 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035900 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35901 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035902 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035903 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35904 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35905 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035906 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35907 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035908
John Criswell7a73b802003-06-30 21:59:07 +000035909 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35910echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35911 { (exit 1); exit 1; }; };;
35912 esac
35913done
35914
Reid Spencera773bd52006-08-04 18:18:08 +000035915
John Criswell7a73b802003-06-30 21:59:07 +000035916# If the user did not use the arguments to specify the items to instantiate,
35917# then the envvar interface is used. Set only those that are not.
35918# We use the long form for the default assignment because of an extremely
35919# bizarre bug on SunOS 4.1.3.
35920if $ac_need_defaults; then
35921 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35922 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035923 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035924fi
35925
John Criswell0c38eaf2003-09-10 15:17:25 +000035926# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035927# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035928# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035929# Hook for its removal unless debugging.
35930# Note that there is a small window in which the directory will not be cleaned:
35931# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035932$debug ||
35933{
Reid Spencera773bd52006-08-04 18:18:08 +000035934 tmp=
35935 trap 'exit_status=$?
35936 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35937' 0
John Criswell7a73b802003-06-30 21:59:07 +000035938 trap '{ (exit 1); exit 1; }' 1 2 13 15
35939}
John Criswell7a73b802003-06-30 21:59:07 +000035940# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035941
John Criswell7a73b802003-06-30 21:59:07 +000035942{
Reid Spencera773bd52006-08-04 18:18:08 +000035943 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035944 test -n "$tmp" && test -d "$tmp"
35945} ||
35946{
Reid Spencera773bd52006-08-04 18:18:08 +000035947 tmp=./conf$$-$RANDOM
35948 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035949} ||
35950{
John Criswell0c38eaf2003-09-10 15:17:25 +000035951 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035952 { (exit 1); exit 1; }
35953}
35954
John Criswell7a73b802003-06-30 21:59:07 +000035955#
Reid Spencera773bd52006-08-04 18:18:08 +000035956# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035957#
35958
35959# No need to generate the scripts if there are no CONFIG_FILES.
35960# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035961if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035962
35963_ACEOF
35964
Reid Spencera773bd52006-08-04 18:18:08 +000035965
35966
35967ac_delim='%!_!# '
35968for ac_last_try in false false false false false :; do
35969 cat >conf$$subs.sed <<_ACEOF
35970SHELL!$SHELL$ac_delim
35971PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35972PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35973PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35974PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35975PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35976PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35977exec_prefix!$exec_prefix$ac_delim
35978prefix!$prefix$ac_delim
35979program_transform_name!$program_transform_name$ac_delim
35980bindir!$bindir$ac_delim
35981sbindir!$sbindir$ac_delim
35982libexecdir!$libexecdir$ac_delim
35983datarootdir!$datarootdir$ac_delim
35984datadir!$datadir$ac_delim
35985sysconfdir!$sysconfdir$ac_delim
35986sharedstatedir!$sharedstatedir$ac_delim
35987localstatedir!$localstatedir$ac_delim
35988includedir!$includedir$ac_delim
35989oldincludedir!$oldincludedir$ac_delim
35990docdir!$docdir$ac_delim
35991infodir!$infodir$ac_delim
35992htmldir!$htmldir$ac_delim
35993dvidir!$dvidir$ac_delim
35994pdfdir!$pdfdir$ac_delim
35995psdir!$psdir$ac_delim
35996libdir!$libdir$ac_delim
35997localedir!$localedir$ac_delim
35998mandir!$mandir$ac_delim
35999DEFS!$DEFS$ac_delim
36000ECHO_C!$ECHO_C$ac_delim
36001ECHO_N!$ECHO_N$ac_delim
36002ECHO_T!$ECHO_T$ac_delim
36003LIBS!$LIBS$ac_delim
36004build_alias!$build_alias$ac_delim
36005host_alias!$host_alias$ac_delim
36006target_alias!$target_alias$ac_delim
36007LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36008subdirs!$subdirs$ac_delim
36009build!$build$ac_delim
36010build_cpu!$build_cpu$ac_delim
36011build_vendor!$build_vendor$ac_delim
36012build_os!$build_os$ac_delim
36013host!$host$ac_delim
36014host_cpu!$host_cpu$ac_delim
36015host_vendor!$host_vendor$ac_delim
36016host_os!$host_os$ac_delim
36017target!$target$ac_delim
36018target_cpu!$target_cpu$ac_delim
36019target_vendor!$target_vendor$ac_delim
36020target_os!$target_os$ac_delim
36021OS!$OS$ac_delim
36022LINKALL!$LINKALL$ac_delim
36023NOLINKALL!$NOLINKALL$ac_delim
36024LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36025LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000036026ARCH!$ARCH$ac_delim
36027ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036028CC!$CC$ac_delim
36029CFLAGS!$CFLAGS$ac_delim
36030LDFLAGS!$LDFLAGS$ac_delim
36031CPPFLAGS!$CPPFLAGS$ac_delim
36032ac_ct_CC!$ac_ct_CC$ac_delim
36033EXEEXT!$EXEEXT$ac_delim
36034OBJEXT!$OBJEXT$ac_delim
36035CPP!$CPP$ac_delim
36036GREP!$GREP$ac_delim
36037EGREP!$EGREP$ac_delim
36038LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36039BUILD_CC!$BUILD_CC$ac_delim
36040BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000036041BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036042CVSBUILD!$CVSBUILD$ac_delim
36043ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036044ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036045DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Shantonu Sen7e836972009-08-11 13:39:52 +000036046LLVM_COMPACT_SENTINELS!$LLVM_COMPACT_SENTINELS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000036047ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36048EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000036049DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036050JIT!$JIT$ac_delim
36051TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36052ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36053ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000036054ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036055TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036056LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36057LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036058LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000036059ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036060EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000036061BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036062ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36063ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036064CXX!$CXX$ac_delim
36065CXXFLAGS!$CXXFLAGS$ac_delim
36066ac_ct_CXX!$ac_ct_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036067_ACEOF
36068
36069 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36070 break
36071 elif $ac_last_try; then
36072 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36073echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36074 { (exit 1); exit 1; }; }
36075 else
36076 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000036077 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036078done
36079
36080ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36081if test -n "$ac_eof"; then
36082 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36083 ac_eof=`expr $ac_eof + 1`
36084fi
36085
36086cat >>$CONFIG_STATUS <<_ACEOF
36087cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36088/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36089_ACEOF
36090sed '
36091s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36092s/^/s,@/; s/!/@,|#_!!_#|/
36093:n
36094t n
36095s/'"$ac_delim"'$/,g/; t
36096s/$/\\/; p
36097N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36098' >>$CONFIG_STATUS <conf$$subs.sed
36099rm -f conf$$subs.sed
36100cat >>$CONFIG_STATUS <<_ACEOF
36101CEOF$ac_eof
36102_ACEOF
36103
36104
36105ac_delim='%!_!# '
36106for ac_last_try in false false false false false :; do
36107 cat >conf$$subs.sed <<_ACEOF
Shantonu Sen7e836972009-08-11 13:39:52 +000036108NM!$NM$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036109ifGNUmake!$ifGNUmake$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036110LN_S!$LN_S$ac_delim
36111CMP!$CMP$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036112CP!$CP$ac_delim
36113DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036114FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036115MKDIR!$MKDIR$ac_delim
36116MV!$MV$ac_delim
36117RANLIB!$RANLIB$ac_delim
36118RM!$RM$ac_delim
36119SED!$SED$ac_delim
36120TAR!$TAR$ac_delim
36121BINPWD!$BINPWD$ac_delim
36122GRAPHVIZ!$GRAPHVIZ$ac_delim
36123DOT!$DOT$ac_delim
David Greenef0b9eff2009-07-09 17:16:26 +000036124FDP!$FDP$ac_delim
36125NEATO!$NEATO$ac_delim
36126TWOPI!$TWOPI$ac_delim
36127CIRCO!$CIRCO$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036128GV!$GV$ac_delim
36129DOTTY!$DOTTY$ac_delim
36130PERL!$PERL$ac_delim
36131HAVE_PERL!$HAVE_PERL$ac_delim
36132INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36133INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36134INSTALL_DATA!$INSTALL_DATA$ac_delim
36135BZIP2!$BZIP2$ac_delim
36136DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036137GROFF!$GROFF$ac_delim
36138GZIP!$GZIP$ac_delim
36139POD2HTML!$POD2HTML$ac_delim
36140POD2MAN!$POD2MAN$ac_delim
36141RUNTEST!$RUNTEST$ac_delim
36142TCLSH!$TCLSH$ac_delim
36143ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000036144OCAMLC!$OCAMLC$ac_delim
36145OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000036146OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000036147OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000036148GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036149INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36150INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36151CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36152CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36153LIBADD_DL!$LIBADD_DL$ac_delim
36154ECHO!$ECHO$ac_delim
36155AR!$AR$ac_delim
36156STRIP!$STRIP$ac_delim
36157CXXCPP!$CXXCPP$ac_delim
36158F77!$F77$ac_delim
36159FFLAGS!$FFLAGS$ac_delim
36160ac_ct_F77!$ac_ct_F77$ac_delim
36161LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000036162LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36163LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000036164LLVMGCC!$LLVMGCC$ac_delim
36165LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000036166USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000036167USE_OPROFILE!$USE_OPROFILE$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000036168HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000036169HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036170ALLOCA!$ALLOCA$ac_delim
36171MMAP_FILE!$MMAP_FILE$ac_delim
36172LLVMCC1!$LLVMCC1$ac_delim
36173LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36174LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000036175LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036176LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36177LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000036178LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036179SHLIBEXT!$SHLIBEXT$ac_delim
36180LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36181LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36182LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36183LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36184LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36185LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36186LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36187LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36188LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36189LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000036190BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36191ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000036192OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000036193ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000036194RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000036195RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036196LIBOBJS!$LIBOBJS$ac_delim
36197LTLIBOBJS!$LTLIBOBJS$ac_delim
36198_ACEOF
36199
Shantonu Sen7e836972009-08-11 13:39:52 +000036200 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
Reid Spencera773bd52006-08-04 18:18:08 +000036201 break
36202 elif $ac_last_try; then
36203 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36204echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36205 { (exit 1); exit 1; }; }
36206 else
36207 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36208 fi
36209done
36210
36211ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36212if test -n "$ac_eof"; then
36213 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36214 ac_eof=`expr $ac_eof + 1`
36215fi
36216
36217cat >>$CONFIG_STATUS <<_ACEOF
36218cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36219/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36220_ACEOF
36221sed '
36222s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36223s/^/s,@/; s/!/@,|#_!!_#|/
36224:n
36225t n
36226s/'"$ac_delim"'$/,g/; t
36227s/$/\\/; p
36228N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36229' >>$CONFIG_STATUS <conf$$subs.sed
36230rm -f conf$$subs.sed
36231cat >>$CONFIG_STATUS <<_ACEOF
36232:end
36233s/|#_!!_#|//g
36234CEOF$ac_eof
36235_ACEOF
36236
36237
36238# VPATH may cause trouble with some makes, so we remove $(srcdir),
36239# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36240# trailing colons and then remove the whole line if VPATH becomes empty
36241# (actually we leave an empty line to preserve line numbers).
36242if test "x$srcdir" = x.; then
36243 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36244s/:*\$(srcdir):*/:/
36245s/:*\${srcdir}:*/:/
36246s/:*@srcdir@:*/:/
36247s/^\([^=]*=[ ]*\):*/\1/
36248s/:*$//
36249s/^[^=]*=[ ]*$//
36250}'
36251fi
36252
36253cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036254fi # test -n "$CONFIG_FILES"
36255
Reid Spencera773bd52006-08-04 18:18:08 +000036256
36257for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36258do
36259 case $ac_tag in
36260 :[FHLC]) ac_mode=$ac_tag; continue;;
36261 esac
36262 case $ac_mode$ac_tag in
36263 :[FHL]*:*);;
36264 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36265echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36266 { (exit 1); exit 1; }; };;
36267 :[FH]-) ac_tag=-:-;;
36268 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36269 esac
36270 ac_save_IFS=$IFS
36271 IFS=:
36272 set x $ac_tag
36273 IFS=$ac_save_IFS
36274 shift
36275 ac_file=$1
36276 shift
36277
36278 case $ac_mode in
36279 :L) ac_source=$1;;
36280 :[FH])
36281 ac_file_inputs=
36282 for ac_f
36283 do
36284 case $ac_f in
36285 -) ac_f="$tmp/stdin";;
36286 *) # Look for the file first in the build tree, then in the source tree
36287 # (if the path is not absolute). The absolute path cannot be DOS-style,
36288 # because $ac_f cannot contain `:'.
36289 test -f "$ac_f" ||
36290 case $ac_f in
36291 [\\/$]*) false;;
36292 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36293 esac ||
36294 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36295echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36296 { (exit 1); exit 1; }; };;
36297 esac
36298 ac_file_inputs="$ac_file_inputs $ac_f"
36299 done
36300
36301 # Let's still pretend it is `configure' which instantiates (i.e., don't
36302 # use $as_me), people would be surprised to read:
36303 # /* config.h. Generated by config.status. */
36304 configure_input="Generated from "`IFS=:
36305 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36306 if test x"$ac_file" != x-; then
36307 configure_input="$ac_file. $configure_input"
36308 { echo "$as_me:$LINENO: creating $ac_file" >&5
36309echo "$as_me: creating $ac_file" >&6;}
36310 fi
36311
36312 case $ac_tag in
36313 *:-:* | *:-) cat >"$tmp/stdin";;
36314 esac
36315 ;;
John Criswell7a73b802003-06-30 21:59:07 +000036316 esac
36317
Reid Spencera773bd52006-08-04 18:18:08 +000036318 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000036319$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036320 X"$ac_file" : 'X\(//\)[^/]' \| \
36321 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036322 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000036323echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000036324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36325 s//\1/
36326 q
36327 }
36328 /^X\(\/\/\)[^/].*/{
36329 s//\1/
36330 q
36331 }
36332 /^X\(\/\/\)$/{
36333 s//\1/
36334 q
36335 }
36336 /^X\(\/\).*/{
36337 s//\1/
36338 q
36339 }
36340 s/.*/./; q'`
36341 { as_dir="$ac_dir"
36342 case $as_dir in #(
36343 -*) as_dir=./$as_dir;;
36344 esac
36345 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000036346 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036347 while :; do
36348 case $as_dir in #(
36349 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36350 *) as_qdir=$as_dir;;
36351 esac
36352 as_dirs="'$as_qdir' $as_dirs"
36353 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036354$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036355 X"$as_dir" : 'X\(//\)[^/]' \| \
36356 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036357 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036358echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36360 s//\1/
36361 q
36362 }
36363 /^X\(\/\/\)[^/].*/{
36364 s//\1/
36365 q
36366 }
36367 /^X\(\/\/\)$/{
36368 s//\1/
36369 q
36370 }
36371 /^X\(\/\).*/{
36372 s//\1/
36373 q
36374 }
36375 s/.*/./; q'`
36376 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000036377 done
Reid Spencera773bd52006-08-04 18:18:08 +000036378 test -z "$as_dirs" || eval "mkdir $as_dirs"
36379 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36380echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000036381 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000036382 ac_builddir=.
36383
Reid Spencera773bd52006-08-04 18:18:08 +000036384case "$ac_dir" in
36385.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36386*)
John Criswell7a73b802003-06-30 21:59:07 +000036387 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036388 # A ".." for each directory in $ac_dir_suffix.
36389 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36390 case $ac_top_builddir_sub in
36391 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36392 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36393 esac ;;
36394esac
36395ac_abs_top_builddir=$ac_pwd
36396ac_abs_builddir=$ac_pwd$ac_dir_suffix
36397# for backward compatibility:
36398ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000036399
36400case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036401 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000036402 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036403 ac_top_srcdir=$ac_top_builddir_sub
36404 ac_abs_top_srcdir=$ac_pwd ;;
36405 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000036406 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036407 ac_top_srcdir=$srcdir
36408 ac_abs_top_srcdir=$srcdir ;;
36409 *) # Relative name.
36410 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36411 ac_top_srcdir=$ac_top_build_prefix$srcdir
36412 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000036413esac
Reid Spencera773bd52006-08-04 18:18:08 +000036414ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000036415
John Criswell7a73b802003-06-30 21:59:07 +000036416
Reid Spencera773bd52006-08-04 18:18:08 +000036417 case $ac_mode in
36418 :F)
36419 #
36420 # CONFIG_FILE
36421 #
John Criswell7a73b802003-06-30 21:59:07 +000036422
36423 case $INSTALL in
36424 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036425 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000036426 esac
John Criswell7a73b802003-06-30 21:59:07 +000036427_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036428
36429cat >>$CONFIG_STATUS <<\_ACEOF
36430# If the template does not know about datarootdir, expand it.
36431# FIXME: This hack should be removed a few years after 2.60.
36432ac_datarootdir_hack=; ac_datarootdir_seen=
36433
36434case `sed -n '/datarootdir/ {
36435 p
36436 q
36437}
36438/@datadir@/p
36439/@docdir@/p
36440/@infodir@/p
36441/@localedir@/p
36442/@mandir@/p
36443' $ac_file_inputs` in
36444*datarootdir*) ac_datarootdir_seen=yes;;
36445*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36446 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36447echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36448_ACEOF
36449cat >>$CONFIG_STATUS <<_ACEOF
36450 ac_datarootdir_hack='
36451 s&@datadir@&$datadir&g
36452 s&@docdir@&$docdir&g
36453 s&@infodir@&$infodir&g
36454 s&@localedir@&$localedir&g
36455 s&@mandir@&$mandir&g
36456 s&\\\${datarootdir}&$datarootdir&g' ;;
36457esac
36458_ACEOF
36459
36460# Neutralize VPATH when `$srcdir' = `.'.
36461# Shell code in configure.ac might set extrasub.
36462# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000036463cat >>$CONFIG_STATUS <<_ACEOF
36464 sed "$ac_vpsub
36465$extrasub
36466_ACEOF
36467cat >>$CONFIG_STATUS <<\_ACEOF
36468:t
36469/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000036470s&@configure_input@&$configure_input&;t t
36471s&@top_builddir@&$ac_top_builddir_sub&;t t
36472s&@srcdir@&$ac_srcdir&;t t
36473s&@abs_srcdir@&$ac_abs_srcdir&;t t
36474s&@top_srcdir@&$ac_top_srcdir&;t t
36475s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36476s&@builddir@&$ac_builddir&;t t
36477s&@abs_builddir@&$ac_abs_builddir&;t t
36478s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36479s&@INSTALL@&$ac_INSTALL&;t t
36480$ac_datarootdir_hack
36481" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000036482
Reid Spencera773bd52006-08-04 18:18:08 +000036483test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36484 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36485 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36486 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36487which seems to be undefined. Please make sure it is defined." >&5
36488echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36489which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000036490
Reid Spencera773bd52006-08-04 18:18:08 +000036491 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000036492 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000036493 -) cat "$tmp/out"; rm -f "$tmp/out";;
36494 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000036495 esac
Reid Spencera773bd52006-08-04 18:18:08 +000036496 ;;
36497 :H)
36498 #
36499 # CONFIG_HEADER
36500 #
John Criswell7a73b802003-06-30 21:59:07 +000036501_ACEOF
36502
Reid Spencera773bd52006-08-04 18:18:08 +000036503# Transform confdefs.h into a sed script `conftest.defines', that
36504# substitutes the proper values into config.h.in to produce config.h.
36505rm -f conftest.defines conftest.tail
36506# First, append a space to every undef/define line, to ease matching.
36507echo 's/$/ /' >conftest.defines
36508# Then, protect against being on the right side of a sed subst, or in
36509# an unquoted here document, in config.status. If some macros were
36510# called several times there might be several #defines for the same
36511# symbol, which is useless. But do not sort them, since the last
36512# AC_DEFINE must be honored.
36513ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36514# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36515# NAME is the cpp macro being defined, VALUE is the value it is being given.
36516# PARAMS is the parameter list in the macro definition--in most cases, it's
36517# just an empty string.
36518ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36519ac_dB='\\)[ (].*,\\1define\\2'
36520ac_dC=' '
36521ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000036522
Reid Spencera773bd52006-08-04 18:18:08 +000036523uniq confdefs.h |
36524 sed -n '
36525 t rset
36526 :rset
36527 s/^[ ]*#[ ]*define[ ][ ]*//
36528 t ok
36529 d
36530 :ok
36531 s/[\\&,]/\\&/g
36532 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36533 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36534 ' >>conftest.defines
36535
36536# Remove the space that was appended to ease matching.
36537# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000036538# example, in the case of _POSIX_SOURCE, which is predefined and required
36539# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000036540# (The regexp can be short, since the line contains either #define or #undef.)
36541echo 's/ $//
36542s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000036543
Reid Spencera773bd52006-08-04 18:18:08 +000036544# Break up conftest.defines:
36545ac_max_sed_lines=50
36546
36547# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36548# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36549# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36550# et cetera.
36551ac_in='$ac_file_inputs'
36552ac_out='"$tmp/out1"'
36553ac_nxt='"$tmp/out2"'
36554
36555while :
John Criswell7a73b802003-06-30 21:59:07 +000036556do
Reid Spencera773bd52006-08-04 18:18:08 +000036557 # Write a here document:
36558 cat >>$CONFIG_STATUS <<_ACEOF
36559 # First, check the format of the line:
36560 cat >"\$tmp/defines.sed" <<\\CEOF
36561/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36562/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36563b
36564:def
36565_ACEOF
36566 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036567 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036568 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36569 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36570 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36571 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000036572 rm -f conftest.defines
36573 mv conftest.tail conftest.defines
36574done
Reid Spencera773bd52006-08-04 18:18:08 +000036575rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000036576
Reid Spencera773bd52006-08-04 18:18:08 +000036577echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036578cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036579 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000036580 echo "/* $configure_input */" >"$tmp/config.h"
36581 cat "$ac_result" >>"$tmp/config.h"
36582 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000036583 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36584echo "$as_me: $ac_file is unchanged" >&6;}
36585 else
John Criswell7a73b802003-06-30 21:59:07 +000036586 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000036587 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000036588 fi
36589 else
Reid Spencera773bd52006-08-04 18:18:08 +000036590 echo "/* $configure_input */"
36591 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000036592 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036593 rm -f "$tmp/out12"
36594 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036595
Reid Spencera773bd52006-08-04 18:18:08 +000036596 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36597echo "$as_me: executing $ac_file commands" >&6;}
36598 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036599 esac
John Criswell7a73b802003-06-30 21:59:07 +000036600
Reid Spencera773bd52006-08-04 18:18:08 +000036601
36602 case $ac_file$ac_mode in
36603 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36604 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36605 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36606 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36607 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36608 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36609 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36610 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036611 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36612 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036613 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36614 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36615 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36616 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036617 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36618 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036619 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36620 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36621 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36622 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36623 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36624 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036625 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36626 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36627 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36628 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036629
36630 esac
36631done # for ac_tag
36632
John Criswell7a73b802003-06-30 21:59:07 +000036633
36634{ (exit 0); exit 0; }
36635_ACEOF
36636chmod +x $CONFIG_STATUS
36637ac_clean_files=$ac_clean_files_save
36638
36639
36640# configure is writing to config.log, and then calls config.status.
36641# config.status does its own redirection, appending to config.log.
36642# Unfortunately, on DOS this fails, as config.log is still kept open
36643# by configure, so config.status won't be able to write to it; its
36644# output is simply discarded. So we exec the FD to /dev/null,
36645# effectively closing config.log, so it can be properly (re)opened and
36646# appended to by config.status. When coming back to configure, we
36647# need to make the FD available again.
36648if test "$no_create" != yes; then
36649 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000036650 ac_config_status_args=
36651 test "$silent" = yes &&
36652 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000036653 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000036654 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000036655 exec 5>>config.log
36656 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36657 # would make configure fail if this is the last instruction.
36658 $ac_cs_success || { (exit 1); exit 1; }
36659fi
36660
John Criswell12399a12003-09-30 15:55:44 +000036661#
36662# CONFIG_SUBDIRS section.
36663#
36664if test "$no_recursion" != yes; then
36665
36666 # Remove --cache-file and --srcdir arguments so they do not pile up.
36667 ac_sub_configure_args=
36668 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000036669 eval "set x $ac_configure_args"
36670 shift
36671 for ac_arg
36672 do
John Criswell12399a12003-09-30 15:55:44 +000036673 if test -n "$ac_prev"; then
36674 ac_prev=
36675 continue
36676 fi
36677 case $ac_arg in
36678 -cache-file | --cache-file | --cache-fil | --cache-fi \
36679 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36680 ac_prev=cache_file ;;
36681 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36682 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36683 | --c=*)
36684 ;;
36685 --config-cache | -C)
36686 ;;
36687 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36688 ac_prev=srcdir ;;
36689 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36690 ;;
36691 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36692 ac_prev=prefix ;;
36693 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36694 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036695 *)
36696 case $ac_arg in
36697 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36698 esac
36699 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036700 esac
36701 done
36702
36703 # Always prepend --prefix to ensure using the same prefix
36704 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036705 ac_arg="--prefix=$prefix"
36706 case $ac_arg in
36707 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36708 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000036709 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036710
36711 ac_popdir=`pwd`
36712 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36713
36714 # Do not complain, so a configure script can configure whichever
36715 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036716 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036717
Reid Spencera773bd52006-08-04 18:18:08 +000036718 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36719 echo "$as_me:$LINENO: $ac_msg" >&5
36720 echo "$ac_msg" >&6
36721 { as_dir="$ac_dir"
36722 case $as_dir in #(
36723 -*) as_dir=./$as_dir;;
36724 esac
36725 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036726 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036727 while :; do
36728 case $as_dir in #(
36729 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36730 *) as_qdir=$as_dir;;
36731 esac
36732 as_dirs="'$as_qdir' $as_dirs"
36733 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036734$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036735 X"$as_dir" : 'X\(//\)[^/]' \| \
36736 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036737 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036738echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36740 s//\1/
36741 q
36742 }
36743 /^X\(\/\/\)[^/].*/{
36744 s//\1/
36745 q
36746 }
36747 /^X\(\/\/\)$/{
36748 s//\1/
36749 q
36750 }
36751 /^X\(\/\).*/{
36752 s//\1/
36753 q
36754 }
36755 s/.*/./; q'`
36756 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036757 done
Reid Spencera773bd52006-08-04 18:18:08 +000036758 test -z "$as_dirs" || eval "mkdir $as_dirs"
36759 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36760echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036761 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036762 ac_builddir=.
36763
Reid Spencera773bd52006-08-04 18:18:08 +000036764case "$ac_dir" in
36765.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36766*)
John Criswell12399a12003-09-30 15:55:44 +000036767 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036768 # A ".." for each directory in $ac_dir_suffix.
36769 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36770 case $ac_top_builddir_sub in
36771 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36772 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36773 esac ;;
36774esac
36775ac_abs_top_builddir=$ac_pwd
36776ac_abs_builddir=$ac_pwd$ac_dir_suffix
36777# for backward compatibility:
36778ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036779
36780case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036781 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036782 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036783 ac_top_srcdir=$ac_top_builddir_sub
36784 ac_abs_top_srcdir=$ac_pwd ;;
36785 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036786 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036787 ac_top_srcdir=$srcdir
36788 ac_abs_top_srcdir=$srcdir ;;
36789 *) # Relative name.
36790 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36791 ac_top_srcdir=$ac_top_build_prefix$srcdir
36792 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036793esac
Reid Spencera773bd52006-08-04 18:18:08 +000036794ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036795
36796
Reid Spencera773bd52006-08-04 18:18:08 +000036797 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036798
36799 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036800 if test -f "$ac_srcdir/configure.gnu"; then
36801 ac_sub_configure=$ac_srcdir/configure.gnu
36802 elif test -f "$ac_srcdir/configure"; then
36803 ac_sub_configure=$ac_srcdir/configure
36804 elif test -f "$ac_srcdir/configure.in"; then
36805 # This should be Cygnus configure.
36806 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036807 else
36808 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36809echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36810 ac_sub_configure=
36811 fi
36812
36813 # The recursion is here.
36814 if test -n "$ac_sub_configure"; then
36815 # Make the cache file name correct relative to the subdirectory.
36816 case $cache_file in
36817 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036818 *) # Relative name.
36819 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036820 esac
36821
Reid Spencera773bd52006-08-04 18:18:08 +000036822 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36823echo "$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 +000036824 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036825 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36826 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036827 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036828echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36829 { (exit 1); exit 1; }; }
36830 fi
36831
Reid Spencera773bd52006-08-04 18:18:08 +000036832 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036833 done
36834fi
36835