blob: 7951f9610ad8cbc7002c924646c68841794d8ef3 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebcceee2009-04-18 11:20:33 +00003# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Tanya Lattnercf067672008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Bill Wendlingebcceee2009-04-18 11:20:33 +000017# Be Bourne compatible
John Criswell0c38eaf2003-09-10 15:17:25 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Bill Wendlingebcceee2009-04-18 11:20:33 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Wendlingebcceee2009-04-18 11:20:33 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000240# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000260# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Bill Wendlingebcceee2009-04-18 11:20:33 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
Bill Wendlingebcceee2009-04-18 11:20:33 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000749#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000752#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
Bill Wendlinga0833352009-03-12 04:10:09 +0000815ARCH
816ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000830BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000831CVSBUILD
832ENABLE_OPTIMIZED
David Greene2a5a12c2009-04-17 14:50:39 +0000833ENABLE_PROFILING
Reid Spencera773bd52006-08-04 18:18:08 +0000834DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000835ENABLE_EXPENSIVE_CHECKS
836EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000837DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000838JIT
839TARGET_HAS_JIT
840ENABLE_DOXYGEN
841ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000842ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000843TARGETS_TO_BUILD
Douglas Gregor1555a232009-06-16 20:12:29 +0000844LLVM_ENUM_TARGETS
845LLVM_ENUM_ASM_PRINTERS
Reid Spencer65c5d752006-11-05 17:08:18 +0000846ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000847EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000848BINUTILS_INCDIR
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +0000849ENABLE_LLVMC_DYNAMIC
850ENABLE_LLVMC_DYNAMIC_PLUGINS
Reid Spencera773bd52006-08-04 18:18:08 +0000851CXX
852CXXFLAGS
853ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
David Greenef0b9eff2009-07-09 17:16:26 +0000870FDP
871NEATO
872TWOPI
873CIRCO
Reid Spencera773bd52006-08-04 18:18:08 +0000874GV
875DOTTY
876PERL
877HAVE_PERL
878INSTALL_PROGRAM
879INSTALL_SCRIPT
880INSTALL_DATA
881BZIP2
882DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000883GROFF
884GZIP
885POD2HTML
886POD2MAN
887RUNTEST
888TCLSH
889ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000890OCAMLC
891OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000892OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000893OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000894GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000895INSTALL_LTDL_TRUE
896INSTALL_LTDL_FALSE
897CONVENIENCE_LTDL_TRUE
898CONVENIENCE_LTDL_FALSE
899LIBADD_DL
900ECHO
901AR
902STRIP
903CXXCPP
904F77
905FFLAGS
906ac_ct_F77
907LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000908LLVMGCCCOMMAND
909LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000910LLVMGCC
911LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000912USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000913HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000914HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000915ALLOCA
916MMAP_FILE
917LLVMCC1
918LLVMCC1PLUS
919LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000920LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000921LLVMGCC_VERSION
922LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000923LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000924SHLIBEXT
925LLVM_PREFIX
926LLVM_BINDIR
927LLVM_LIBDIR
928LLVM_DATADIR
929LLVM_DOCSDIR
930LLVM_ETCDIR
931LLVM_INCLUDEDIR
932LLVM_INFODIR
933LLVM_MANDIR
934LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000935BINDINGS_TO_BUILD
936ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000937OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000938ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000939RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000940RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000941LIBOBJS
942LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000943ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000944 ac_precious_vars='build_alias
945host_alias
946target_alias
947CC
948CFLAGS
949LDFLAGS
950CPPFLAGS
951CPP
952CXX
953CXXFLAGS
954CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000955CXXCPP
956F77
957FFLAGS'
958ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000959projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000960projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000961projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000962projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000963projects/llvm-reopt
964projects/llvm-gcc
965projects/llvm-java
966projects/llvm-tv
967projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000968projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000969projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000970
971# Initialize some variables set by options.
972ac_init_help=
973ac_init_version=false
974# The variables have the same names as the options, with
975# dashes changed to underlines.
976cache_file=/dev/null
977exec_prefix=NONE
978no_create=
979no_recursion=
980prefix=NONE
981program_prefix=NONE
982program_suffix=NONE
983program_transform_name=s,x,x,
984silent=
985site=
986srcdir=
987verbose=
988x_includes=NONE
989x_libraries=NONE
990
991# Installation directory options.
992# These are left unexpanded so users can "make install exec_prefix=/foo"
993# and all the variables that are supposed to be based on exec_prefix
994# by default will actually change.
995# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000996# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000997bindir='${exec_prefix}/bin'
998sbindir='${exec_prefix}/sbin'
999libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001000datarootdir='${prefix}/share'
1001datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001002sysconfdir='${prefix}/etc'
1003sharedstatedir='${prefix}/com'
1004localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001005includedir='${prefix}/include'
1006oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001007docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1008infodir='${datarootdir}/info'
1009htmldir='${docdir}'
1010dvidir='${docdir}'
1011pdfdir='${docdir}'
1012psdir='${docdir}'
1013libdir='${exec_prefix}/lib'
1014localedir='${datarootdir}/locale'
1015mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001016
1017ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001018ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001019for ac_option
1020do
1021 # If the previous option needs an argument, assign it.
1022 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001023 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001024 ac_prev=
1025 continue
1026 fi
1027
Reid Spencera773bd52006-08-04 18:18:08 +00001028 case $ac_option in
1029 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1030 *) ac_optarg=yes ;;
1031 esac
John Criswell7a73b802003-06-30 21:59:07 +00001032
1033 # Accept the important Cygnus configure options, so we can diagnose typos.
1034
Reid Spencera773bd52006-08-04 18:18:08 +00001035 case $ac_dashdash$ac_option in
1036 --)
1037 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001038
1039 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1040 ac_prev=bindir ;;
1041 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1042 bindir=$ac_optarg ;;
1043
1044 -build | --build | --buil | --bui | --bu)
1045 ac_prev=build_alias ;;
1046 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1047 build_alias=$ac_optarg ;;
1048
1049 -cache-file | --cache-file | --cache-fil | --cache-fi \
1050 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1051 ac_prev=cache_file ;;
1052 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1053 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1054 cache_file=$ac_optarg ;;
1055
1056 --config-cache | -C)
1057 cache_file=config.cache ;;
1058
Reid Spencera773bd52006-08-04 18:18:08 +00001059 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001060 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001061 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001062 datadir=$ac_optarg ;;
1063
Reid Spencera773bd52006-08-04 18:18:08 +00001064 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1065 | --dataroo | --dataro | --datar)
1066 ac_prev=datarootdir ;;
1067 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1068 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1069 datarootdir=$ac_optarg ;;
1070
John Criswell7a73b802003-06-30 21:59:07 +00001071 -disable-* | --disable-*)
1072 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001074 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001075 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001077 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001078 eval enable_$ac_feature=no ;;
1079
1080 -docdir | --docdir | --docdi | --doc | --do)
1081 ac_prev=docdir ;;
1082 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083 docdir=$ac_optarg ;;
1084
1085 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1086 ac_prev=dvidir ;;
1087 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001089
1090 -enable-* | --enable-*)
1091 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001093 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001094 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1095 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001096 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001097 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001098
1099 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1100 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1101 | --exec | --exe | --ex)
1102 ac_prev=exec_prefix ;;
1103 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1104 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1105 | --exec=* | --exe=* | --ex=*)
1106 exec_prefix=$ac_optarg ;;
1107
1108 -gas | --gas | --ga | --g)
1109 # Obsolete; use --with-gas.
1110 with_gas=yes ;;
1111
1112 -help | --help | --hel | --he | -h)
1113 ac_init_help=long ;;
1114 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1115 ac_init_help=recursive ;;
1116 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1117 ac_init_help=short ;;
1118
1119 -host | --host | --hos | --ho)
1120 ac_prev=host_alias ;;
1121 -host=* | --host=* | --hos=* | --ho=*)
1122 host_alias=$ac_optarg ;;
1123
Reid Spencera773bd52006-08-04 18:18:08 +00001124 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1125 ac_prev=htmldir ;;
1126 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1127 | --ht=*)
1128 htmldir=$ac_optarg ;;
1129
John Criswell7a73b802003-06-30 21:59:07 +00001130 -includedir | --includedir | --includedi | --included | --include \
1131 | --includ | --inclu | --incl | --inc)
1132 ac_prev=includedir ;;
1133 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1134 | --includ=* | --inclu=* | --incl=* | --inc=*)
1135 includedir=$ac_optarg ;;
1136
1137 -infodir | --infodir | --infodi | --infod | --info | --inf)
1138 ac_prev=infodir ;;
1139 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1140 infodir=$ac_optarg ;;
1141
1142 -libdir | --libdir | --libdi | --libd)
1143 ac_prev=libdir ;;
1144 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1145 libdir=$ac_optarg ;;
1146
1147 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1148 | --libexe | --libex | --libe)
1149 ac_prev=libexecdir ;;
1150 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1151 | --libexe=* | --libex=* | --libe=*)
1152 libexecdir=$ac_optarg ;;
1153
Reid Spencera773bd52006-08-04 18:18:08 +00001154 -localedir | --localedir | --localedi | --localed | --locale)
1155 ac_prev=localedir ;;
1156 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1157 localedir=$ac_optarg ;;
1158
John Criswell7a73b802003-06-30 21:59:07 +00001159 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001160 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001161 ac_prev=localstatedir ;;
1162 -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 localstatedir=$ac_optarg ;;
1165
1166 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1167 ac_prev=mandir ;;
1168 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1169 mandir=$ac_optarg ;;
1170
1171 -nfp | --nfp | --nf)
1172 # Obsolete; use --without-fp.
1173 with_fp=no ;;
1174
1175 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1176 | --no-cr | --no-c | -n)
1177 no_create=yes ;;
1178
1179 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1180 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1181 no_recursion=yes ;;
1182
1183 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1184 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1185 | --oldin | --oldi | --old | --ol | --o)
1186 ac_prev=oldincludedir ;;
1187 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1188 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1189 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1190 oldincludedir=$ac_optarg ;;
1191
1192 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1193 ac_prev=prefix ;;
1194 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1195 prefix=$ac_optarg ;;
1196
1197 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1198 | --program-pre | --program-pr | --program-p)
1199 ac_prev=program_prefix ;;
1200 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1201 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1202 program_prefix=$ac_optarg ;;
1203
1204 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1205 | --program-suf | --program-su | --program-s)
1206 ac_prev=program_suffix ;;
1207 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1208 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1209 program_suffix=$ac_optarg ;;
1210
1211 -program-transform-name | --program-transform-name \
1212 | --program-transform-nam | --program-transform-na \
1213 | --program-transform-n | --program-transform- \
1214 | --program-transform | --program-transfor \
1215 | --program-transfo | --program-transf \
1216 | --program-trans | --program-tran \
1217 | --progr-tra | --program-tr | --program-t)
1218 ac_prev=program_transform_name ;;
1219 -program-transform-name=* | --program-transform-name=* \
1220 | --program-transform-nam=* | --program-transform-na=* \
1221 | --program-transform-n=* | --program-transform-=* \
1222 | --program-transform=* | --program-transfor=* \
1223 | --program-transfo=* | --program-transf=* \
1224 | --program-trans=* | --program-tran=* \
1225 | --progr-tra=* | --program-tr=* | --program-t=*)
1226 program_transform_name=$ac_optarg ;;
1227
Reid Spencera773bd52006-08-04 18:18:08 +00001228 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1229 ac_prev=pdfdir ;;
1230 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1231 pdfdir=$ac_optarg ;;
1232
1233 -psdir | --psdir | --psdi | --psd | --ps)
1234 ac_prev=psdir ;;
1235 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1236 psdir=$ac_optarg ;;
1237
John Criswell7a73b802003-06-30 21:59:07 +00001238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239 | -silent | --silent | --silen | --sile | --sil)
1240 silent=yes ;;
1241
1242 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1243 ac_prev=sbindir ;;
1244 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1245 | --sbi=* | --sb=*)
1246 sbindir=$ac_optarg ;;
1247
1248 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1249 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1250 | --sharedst | --shareds | --shared | --share | --shar \
1251 | --sha | --sh)
1252 ac_prev=sharedstatedir ;;
1253 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1254 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1255 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1256 | --sha=* | --sh=*)
1257 sharedstatedir=$ac_optarg ;;
1258
1259 -site | --site | --sit)
1260 ac_prev=site ;;
1261 -site=* | --site=* | --sit=*)
1262 site=$ac_optarg ;;
1263
1264 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1265 ac_prev=srcdir ;;
1266 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1267 srcdir=$ac_optarg ;;
1268
1269 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1270 | --syscon | --sysco | --sysc | --sys | --sy)
1271 ac_prev=sysconfdir ;;
1272 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1273 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1274 sysconfdir=$ac_optarg ;;
1275
1276 -target | --target | --targe | --targ | --tar | --ta | --t)
1277 ac_prev=target_alias ;;
1278 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1279 target_alias=$ac_optarg ;;
1280
1281 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1282 verbose=yes ;;
1283
1284 -version | --version | --versio | --versi | --vers | -V)
1285 ac_init_version=: ;;
1286
1287 -with-* | --with-*)
1288 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1289 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001290 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001291 { echo "$as_me: error: invalid package name: $ac_package" >&2
1292 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001293 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001294 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001295
1296 -without-* | --without-*)
1297 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001299 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001300 { echo "$as_me: error: invalid package name: $ac_package" >&2
1301 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001302 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001303 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001304
1305 --x)
1306 # Obsolete; use --with-x.
1307 with_x=yes ;;
1308
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev=x_includes ;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314 x_includes=$ac_optarg ;;
1315
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev=x_libraries ;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321 x_libraries=$ac_optarg ;;
1322
1323 -*) { echo "$as_me: error: unrecognized option: $ac_option
1324Try \`$0 --help' for more information." >&2
1325 { (exit 1); exit 1; }; }
1326 ;;
1327
1328 *=*)
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1332 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1333 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001334 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001335 export $ac_envvar ;;
1336
1337 *)
1338 # FIXME: should be removed in autoconf 3.0.
1339 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343 ;;
1344
1345 esac
1346done
1347
1348if test -n "$ac_prev"; then
1349 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350 { echo "$as_me: error: missing argument to $ac_option" >&2
1351 { (exit 1); exit 1; }; }
1352fi
1353
Reid Spencera773bd52006-08-04 18:18:08 +00001354# Be sure to have absolute directory names.
1355for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356 datadir sysconfdir sharedstatedir localstatedir includedir \
1357 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001359do
Reid Spencera773bd52006-08-04 18:18:08 +00001360 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001361 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001362 [\\/$]* | ?:[\\/]* ) continue;;
1363 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001364 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001365 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1366 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001367done
1368
1369# There might be people who depend on the old broken behavior: `$host'
1370# used to hold the argument of --host etc.
1371# FIXME: To remove some day.
1372build=$build_alias
1373host=$host_alias
1374target=$target_alias
1375
1376# FIXME: To remove some day.
1377if test "x$host_alias" != x; then
1378 if test "x$build_alias" = x; then
1379 cross_compiling=maybe
1380 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1381 If a cross compiler is detected then cross compile mode will be used." >&2
1382 elif test "x$build_alias" != "x$host_alias"; then
1383 cross_compiling=yes
1384 fi
1385fi
1386
1387ac_tool_prefix=
1388test -n "$host_alias" && ac_tool_prefix=$host_alias-
1389
1390test "$silent" = yes && exec 6>/dev/null
1391
1392
Reid Spencera773bd52006-08-04 18:18:08 +00001393ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394ac_ls_di=`ls -di .` &&
1395ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396 { echo "$as_me: error: Working directory cannot be determined" >&2
1397 { (exit 1); exit 1; }; }
1398test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1399 { echo "$as_me: error: pwd does not report name of working directory" >&2
1400 { (exit 1); exit 1; }; }
1401
1402
John Criswell7a73b802003-06-30 21:59:07 +00001403# Find the source files, if location was not specified.
1404if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001408$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001409 X"$0" : 'X\(//\)[^/]' \| \
1410 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001411 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001412echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\/\)[^/].*/{
1418 s//\1/
1419 q
1420 }
1421 /^X\(\/\/\)$/{
1422 s//\1/
1423 q
1424 }
1425 /^X\(\/\).*/{
1426 s//\1/
1427 q
1428 }
1429 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001430 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001431 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001432 srcdir=..
1433 fi
1434else
1435 ac_srcdir_defaulted=no
1436fi
Reid Spencera773bd52006-08-04 18:18:08 +00001437if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001440 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001441fi
Reid Spencera773bd52006-08-04 18:18:08 +00001442ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1443ac_abs_confdir=`(
1444 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001445 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001446 pwd)`
1447# When building in place, set srcdir=.
1448if test "$ac_abs_confdir" = "$ac_pwd"; then
1449 srcdir=.
1450fi
1451# Remove unnecessary trailing slashes from srcdir.
1452# Double slashes in file names in object file debugging info
1453# mess up M-x gdb in Emacs.
1454case $srcdir in
1455*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1456esac
1457for ac_var in $ac_precious_vars; do
1458 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_env_${ac_var}_value=\$${ac_var}
1460 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1462done
John Criswell7a73b802003-06-30 21:59:07 +00001463
1464#
1465# Report the --help message.
1466#
1467if test "$ac_init_help" = "long"; then
1468 # Omit some internal or obsolete options to make the list less imposing.
1469 # This message is too long to be a string in the A/UX 3.1 sh.
1470 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001471\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001472
1473Usage: $0 [OPTION]... [VAR=VALUE]...
1474
1475To assign environment variables (e.g., CC, CFLAGS...), specify them as
1476VAR=VALUE. See below for descriptions of some of the useful variables.
1477
1478Defaults for the options are specified in brackets.
1479
1480Configuration:
1481 -h, --help display this help and exit
1482 --help=short display options specific to this package
1483 --help=recursive display the short help of all the included packages
1484 -V, --version display version information and exit
1485 -q, --quiet, --silent do not print \`checking...' messages
1486 --cache-file=FILE cache test results in FILE [disabled]
1487 -C, --config-cache alias for \`--cache-file=config.cache'
1488 -n, --no-create do not create output files
1489 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1490
John Criswell7a73b802003-06-30 21:59:07 +00001491Installation directories:
1492 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001493 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001494 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001495 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001496
1497By default, \`make install' will install all the files in
1498\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1499an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1500for instance \`--prefix=\$HOME'.
1501
1502For better control, use the options below.
1503
1504Fine tuning of the installation directories:
1505 --bindir=DIR user executables [EPREFIX/bin]
1506 --sbindir=DIR system admin executables [EPREFIX/sbin]
1507 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001508 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1509 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1510 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1511 --libdir=DIR object code libraries [EPREFIX/lib]
1512 --includedir=DIR C header files [PREFIX/include]
1513 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001514 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1515 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1516 --infodir=DIR info documentation [DATAROOTDIR/info]
1517 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1518 --mandir=DIR man documentation [DATAROOTDIR/man]
1519 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1520 --htmldir=DIR html documentation [DOCDIR]
1521 --dvidir=DIR dvi documentation [DOCDIR]
1522 --pdfdir=DIR pdf documentation [DOCDIR]
1523 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001524_ACEOF
1525
1526 cat <<\_ACEOF
1527
1528System types:
1529 --build=BUILD configure for building on BUILD [guessed]
1530 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1531 --target=TARGET configure for building compilers for TARGET [HOST]
1532_ACEOF
1533fi
1534
1535if test -n "$ac_init_help"; then
1536 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001537 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001538 esac
1539 cat <<\_ACEOF
1540
1541Optional Features:
1542 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1543 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001544 --enable-optimized Compile with optimizations enabled (default is NO)
1545 --enable-profiling Compile with profiling enabled (default is NO)
1546 --enable-assertions Compile with assertion checks enabled (default is
1547 YES)
David Greenea696d242007-06-28 19:36:08 +00001548 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001549 Compile with expensive debug checks enabled (default
1550 is NO)
1551 --enable-debug-runtime Build runtime libs with debug symbols (default is
1552 NO)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001553 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001554 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001555 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001556 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001557 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001558 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001559 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001560 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1561 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001562 --enable-bindings Build specific language bindings:
1563 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001564 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001565 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1566 Win32)
1567 --enable-llvmc-dynamic-plugins
1568 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001569 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001570 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001571 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001572 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001573 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001574 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001575 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001576 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001577 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001578
1579Optional Packages:
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001582 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1583 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001584 --with-llvmgcc Specify location of llvm-gcc driver (default
1585 searches PATH)
1586 --with-llvmgxx Specify location of llvm-g++ driver (default
1587 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001588 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001589 --with-ocaml-libdir Specify install location for ocaml bindings (default
1590 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001591 --with-binutils-include Specify path to binutils/include/ containing
1592 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001593 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001594 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1595 --with-pic try to use only PIC/non-PIC objects [default=use
1596 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001597 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001598 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001599
1600Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001601 CC C compiler command
1602 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001603 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1604 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001605 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1606 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001607 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001608 CXX C++ compiler command
1609 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001610 CXXCPP C++ preprocessor
1611 F77 Fortran 77 compiler command
1612 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001613
1614Use these variables to override the choices made by `configure' or to help
1615it to find libraries and programs with nonstandard names/locations.
1616
1617Report bugs to <llvmbugs@cs.uiuc.edu>.
1618_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001619ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001620fi
1621
1622if test "$ac_init_help" = "recursive"; then
1623 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001624 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001625 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001626 ac_builddir=.
1627
Reid Spencera773bd52006-08-04 18:18:08 +00001628case "$ac_dir" in
1629.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630*)
John Criswell7a73b802003-06-30 21:59:07 +00001631 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001632 # A ".." for each directory in $ac_dir_suffix.
1633 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1634 case $ac_top_builddir_sub in
1635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1637 esac ;;
1638esac
1639ac_abs_top_builddir=$ac_pwd
1640ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641# for backward compatibility:
1642ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001643
1644case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001645 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001646 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001647 ac_top_srcdir=$ac_top_builddir_sub
1648 ac_abs_top_srcdir=$ac_pwd ;;
1649 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001650 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001651 ac_top_srcdir=$srcdir
1652 ac_abs_top_srcdir=$srcdir ;;
1653 *) # Relative name.
1654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655 ac_top_srcdir=$ac_top_build_prefix$srcdir
1656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001657esac
Reid Spencera773bd52006-08-04 18:18:08 +00001658ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001659
Reid Spencera773bd52006-08-04 18:18:08 +00001660 cd "$ac_dir" || { ac_status=$?; continue; }
1661 # Check for guested configure.
1662 if test -f "$ac_srcdir/configure.gnu"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665 elif test -f "$ac_srcdir/configure"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001668 else
1669 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001670 fi || ac_status=$?
1671 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001672 done
1673fi
1674
Reid Spencera773bd52006-08-04 18:18:08 +00001675test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001676if $ac_init_version; then
1677 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001678llvm configure 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001679generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001680
Reid Spencera773bd52006-08-04 18:18:08 +00001681Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16822002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001683This configure script is free software; the Free Software Foundation
1684gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001685
Tanya Lattnercf067672008-01-17 05:57:22 +00001686Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001687_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001688 exit
John Criswell7a73b802003-06-30 21:59:07 +00001689fi
Reid Spencera773bd52006-08-04 18:18:08 +00001690cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001691This file contains any messages produced by compilers while
1692running configure, to aid debugging if configure makes a mistake.
1693
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001694It was created by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001695generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001696
1697 $ $0 $@
1698
1699_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001700exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001701{
1702cat <<_ASUNAME
1703## --------- ##
1704## Platform. ##
1705## --------- ##
1706
1707hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1708uname -m = `(uname -m) 2>/dev/null || echo unknown`
1709uname -r = `(uname -r) 2>/dev/null || echo unknown`
1710uname -s = `(uname -s) 2>/dev/null || echo unknown`
1711uname -v = `(uname -v) 2>/dev/null || echo unknown`
1712
1713/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1714/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1715
1716/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1717/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1718/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001719/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001720/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1721/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1722/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1723
1724_ASUNAME
1725
1726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727for as_dir in $PATH
1728do
1729 IFS=$as_save_IFS
1730 test -z "$as_dir" && as_dir=.
1731 echo "PATH: $as_dir"
1732done
Reid Spencera773bd52006-08-04 18:18:08 +00001733IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001734
1735} >&5
1736
1737cat >&5 <<_ACEOF
1738
1739
1740## ----------- ##
1741## Core tests. ##
1742## ----------- ##
1743
1744_ACEOF
1745
1746
1747# Keep a trace of the command line.
1748# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001749# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001750# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001751# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001752ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001753ac_configure_args0=
1754ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001755ac_must_keep_next=false
1756for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001757do
John Criswell0c38eaf2003-09-10 15:17:25 +00001758 for ac_arg
1759 do
1760 case $ac_arg in
1761 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1763 | -silent | --silent | --silen | --sile | --sil)
1764 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001765 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001766 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1767 esac
1768 case $ac_pass in
1769 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1770 2)
1771 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1772 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001773 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001774 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001775 case $ac_arg in
1776 *=* | --config-cache | -C | -disable-* | --disable-* \
1777 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1778 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1779 | -with-* | --with-* | -without-* | --without-* | --x)
1780 case "$ac_configure_args0 " in
1781 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1782 esac
1783 ;;
1784 -* ) ac_must_keep_next=true ;;
1785 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001786 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001787 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001788 ;;
1789 esac
1790 done
John Criswell7a73b802003-06-30 21:59:07 +00001791done
John Criswell0c38eaf2003-09-10 15:17:25 +00001792$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1793$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 +00001794
1795# When interrupted or exit'd, cleanup temporary files, and complete
1796# config.log. We remove comments because anyway the quotes in there
1797# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001798# WARNING: Use '\'' to represent an apostrophe within the trap.
1799# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001800trap 'exit_status=$?
1801 # Save into config.log some information that might help in debugging.
1802 {
1803 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001804
John Criswell7a73b802003-06-30 21:59:07 +00001805 cat <<\_ASBOX
1806## ---------------- ##
1807## Cache variables. ##
1808## ---------------- ##
1809_ASBOX
1810 echo
1811 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001812(
1813 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1814 eval ac_val=\$$ac_var
1815 case $ac_val in #(
1816 *${as_nl}*)
1817 case $ac_var in #(
1818 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1819echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1820 esac
1821 case $ac_var in #(
1822 _ | IFS | as_nl) ;; #(
1823 *) $as_unset $ac_var ;;
1824 esac ;;
1825 esac
1826 done
John Criswell7a73b802003-06-30 21:59:07 +00001827 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001828 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1829 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001830 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001831 "s/'\''/'\''\\\\'\'''\''/g;
1832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1833 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001834 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001835 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001836 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001837 esac |
1838 sort
1839)
John Criswell7a73b802003-06-30 21:59:07 +00001840 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001841
1842 cat <<\_ASBOX
1843## ----------------- ##
1844## Output variables. ##
1845## ----------------- ##
1846_ASBOX
1847 echo
1848 for ac_var in $ac_subst_vars
1849 do
Reid Spencera773bd52006-08-04 18:18:08 +00001850 eval ac_val=\$$ac_var
1851 case $ac_val in
1852 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1853 esac
1854 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001855 done | sort
1856 echo
1857
1858 if test -n "$ac_subst_files"; then
1859 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001860## ------------------- ##
1861## File substitutions. ##
1862## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001863_ASBOX
1864 echo
1865 for ac_var in $ac_subst_files
1866 do
Reid Spencera773bd52006-08-04 18:18:08 +00001867 eval ac_val=\$$ac_var
1868 case $ac_val in
1869 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1870 esac
1871 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001872 done | sort
1873 echo
1874 fi
1875
John Criswell7a73b802003-06-30 21:59:07 +00001876 if test -s confdefs.h; then
1877 cat <<\_ASBOX
1878## ----------- ##
1879## confdefs.h. ##
1880## ----------- ##
1881_ASBOX
1882 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001883 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001884 echo
1885 fi
1886 test "$ac_signal" != 0 &&
1887 echo "$as_me: caught signal $ac_signal"
1888 echo "$as_me: exit $exit_status"
1889 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001890 rm -f core *.core core.conftest.* &&
1891 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001892 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001893' 0
John Criswell7a73b802003-06-30 21:59:07 +00001894for ac_signal in 1 2 13 15; do
1895 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1896done
1897ac_signal=0
1898
1899# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001900rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001901
1902# Predefined preprocessor variables.
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_NAME "$PACKAGE_NAME"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1911_ACEOF
1912
1913
1914cat >>confdefs.h <<_ACEOF
1915#define PACKAGE_VERSION "$PACKAGE_VERSION"
1916_ACEOF
1917
1918
1919cat >>confdefs.h <<_ACEOF
1920#define PACKAGE_STRING "$PACKAGE_STRING"
1921_ACEOF
1922
1923
1924cat >>confdefs.h <<_ACEOF
1925#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1926_ACEOF
1927
1928
1929# Let the site file select an alternate cache file if it wants to.
1930# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001931if test -n "$CONFIG_SITE"; then
1932 set x "$CONFIG_SITE"
1933elif test "x$prefix" != xNONE; then
1934 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1935else
1936 set x "$ac_default_prefix/share/config.site" \
1937 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001938fi
Reid Spencera773bd52006-08-04 18:18:08 +00001939shift
1940for ac_site_file
1941do
John Criswell7a73b802003-06-30 21:59:07 +00001942 if test -r "$ac_site_file"; then
1943 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1944echo "$as_me: loading site script $ac_site_file" >&6;}
1945 sed 's/^/| /' "$ac_site_file" >&5
1946 . "$ac_site_file"
1947 fi
1948done
1949
1950if test -r "$cache_file"; then
1951 # Some versions of bash will fail to source /dev/null (special
1952 # files actually), so we avoid doing that.
1953 if test -f "$cache_file"; then
1954 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1955echo "$as_me: loading cache $cache_file" >&6;}
1956 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001957 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1958 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001959 esac
1960 fi
1961else
1962 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1963echo "$as_me: creating cache $cache_file" >&6;}
1964 >$cache_file
1965fi
1966
1967# Check that the precious variables saved in the cache have kept the same
1968# value.
1969ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001970for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001971 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1972 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001973 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1974 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001975 case $ac_old_set,$ac_new_set in
1976 set,)
1977 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1978echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1979 ac_cache_corrupted=: ;;
1980 ,set)
1981 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1982echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1983 ac_cache_corrupted=: ;;
1984 ,);;
1985 *)
1986 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001987 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001988echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001989 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001990echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001991 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001992echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001993 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001994 fi;;
1995 esac
1996 # Pass precious variables to config.status.
1997 if test "$ac_new_set" = set; then
1998 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001999 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002000 *) ac_arg=$ac_var=$ac_new_val ;;
2001 esac
2002 case " $ac_configure_args " in
2003 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2004 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2005 esac
2006 fi
2007done
2008if $ac_cache_corrupted; then
2009 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2010echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2011 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2012echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2013 { (exit 1); exit 1; }; }
2014fi
2015
Reid Spencera773bd52006-08-04 18:18:08 +00002016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
John Criswell7a73b802003-06-30 21:59:07 +00002040ac_ext=c
2041ac_cpp='$CPP $CPPFLAGS'
2042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2044ac_compiler_gnu=$ac_cv_c_compiler_gnu
2045
2046
2047
Tanya Lattnercf067672008-01-17 05:57:22 +00002048LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002049
2050
2051
2052
2053
2054
2055
John Criswell7a73b802003-06-30 21:59:07 +00002056ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002057for ac_dir in autoconf "$srcdir"/autoconf; do
2058 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002059 ac_aux_dir=$ac_dir
2060 ac_install_sh="$ac_aux_dir/install-sh -c"
2061 break
Reid Spencera773bd52006-08-04 18:18:08 +00002062 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002063 ac_aux_dir=$ac_dir
2064 ac_install_sh="$ac_aux_dir/install.sh -c"
2065 break
Reid Spencera773bd52006-08-04 18:18:08 +00002066 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002067 ac_aux_dir=$ac_dir
2068 ac_install_sh="$ac_aux_dir/shtool install -c"
2069 break
2070 fi
2071done
2072if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002073 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2074echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002075 { (exit 1); exit 1; }; }
2076fi
Reid Spencera773bd52006-08-04 18:18:08 +00002077
2078# These three variables are undocumented and unsupported,
2079# and are intended to be withdrawn in a future Autoconf release.
2080# They can cause serious problems if a builder's source tree is in a directory
2081# whose full name contains unusual characters.
2082ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2083ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2084ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2085
John Criswell7a73b802003-06-30 21:59:07 +00002086
John Criswell392aaa32003-07-22 19:18:09 +00002087
Reid Spencer2706f8c2004-09-19 23:53:36 +00002088if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002089 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2090 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002091echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2092 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002093 fi
John Criswell93e1c722003-09-15 17:04:06 +00002094fi
2095
John Criswell33a911a2003-11-25 20:36:46 +00002096for i in `ls ${srcdir}/projects`
2097do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002098 if test -d ${srcdir}/projects/${i} ; then
2099 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002100 CVS) ;;
2101 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002102 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002103 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002104 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002105 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002106 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002107 # llvm-test is the old name of the test-suite, kept here for backwards
2108 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002109 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002110 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002111 test-suite) subdirs="$subdirs projects/test-suite"
2112 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002113 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002114;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002115 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002116 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002117 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002118 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002119 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002120 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002121 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002122 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002123 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002124 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002125 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002126 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002127 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002128 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2129echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002130 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002131 esac
John Criswell33a911a2003-11-25 20:36:46 +00002132 fi
2133done
John Criswell559a6c12003-09-30 16:31:48 +00002134
John Criswell7a73b802003-06-30 21:59:07 +00002135
2136# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002137$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2138 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2139echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002140 { (exit 1); exit 1; }; }
2141
Reid Spencera773bd52006-08-04 18:18:08 +00002142{ echo "$as_me:$LINENO: checking build system type" >&5
2143echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002144if test "${ac_cv_build+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146else
Reid Spencera773bd52006-08-04 18:18:08 +00002147 ac_build_alias=$build_alias
2148test "x$ac_build_alias" = x &&
2149 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2150test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002151 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2152echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2153 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002154ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2155 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2156echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002157 { (exit 1); exit 1; }; }
2158
2159fi
Reid Spencera773bd52006-08-04 18:18:08 +00002160{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2161echo "${ECHO_T}$ac_cv_build" >&6; }
2162case $ac_cv_build in
2163*-*-*) ;;
2164*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2165echo "$as_me: error: invalid value of canonical build" >&2;}
2166 { (exit 1); exit 1; }; };;
2167esac
John Criswell7a73b802003-06-30 21:59:07 +00002168build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002169ac_save_IFS=$IFS; IFS='-'
2170set x $ac_cv_build
2171shift
2172build_cpu=$1
2173build_vendor=$2
2174shift; shift
2175# Remember, the first character of IFS is used to create $*,
2176# except with old shells:
2177build_os=$*
2178IFS=$ac_save_IFS
2179case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002180
2181
Reid Spencera773bd52006-08-04 18:18:08 +00002182{ echo "$as_me:$LINENO: checking host system type" >&5
2183echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002184if test "${ac_cv_host+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186else
Reid Spencera773bd52006-08-04 18:18:08 +00002187 if test "x$host_alias" = x; then
2188 ac_cv_host=$ac_cv_build
2189else
2190 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2191 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2192echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002193 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002194fi
John Criswell7a73b802003-06-30 21:59:07 +00002195
2196fi
Reid Spencera773bd52006-08-04 18:18:08 +00002197{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2198echo "${ECHO_T}$ac_cv_host" >&6; }
2199case $ac_cv_host in
2200*-*-*) ;;
2201*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2202echo "$as_me: error: invalid value of canonical host" >&2;}
2203 { (exit 1); exit 1; }; };;
2204esac
John Criswell7a73b802003-06-30 21:59:07 +00002205host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002206ac_save_IFS=$IFS; IFS='-'
2207set x $ac_cv_host
2208shift
2209host_cpu=$1
2210host_vendor=$2
2211shift; shift
2212# Remember, the first character of IFS is used to create $*,
2213# except with old shells:
2214host_os=$*
2215IFS=$ac_save_IFS
2216case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002217
2218
Reid Spencera773bd52006-08-04 18:18:08 +00002219{ echo "$as_me:$LINENO: checking target system type" >&5
2220echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002221if test "${ac_cv_target+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2223else
Reid Spencera773bd52006-08-04 18:18:08 +00002224 if test "x$target_alias" = x; then
2225 ac_cv_target=$ac_cv_host
2226else
2227 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2228 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2229echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002230 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002231fi
John Criswell7a73b802003-06-30 21:59:07 +00002232
2233fi
Reid Spencera773bd52006-08-04 18:18:08 +00002234{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2235echo "${ECHO_T}$ac_cv_target" >&6; }
2236case $ac_cv_target in
2237*-*-*) ;;
2238*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2239echo "$as_me: error: invalid value of canonical target" >&2;}
2240 { (exit 1); exit 1; }; };;
2241esac
John Criswell7a73b802003-06-30 21:59:07 +00002242target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002243ac_save_IFS=$IFS; IFS='-'
2244set x $ac_cv_target
2245shift
2246target_cpu=$1
2247target_vendor=$2
2248shift; shift
2249# Remember, the first character of IFS is used to create $*,
2250# except with old shells:
2251target_os=$*
2252IFS=$ac_save_IFS
2253case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002254
2255
2256# The aliases save the names the user supplied, while $host etc.
2257# will get canonicalized.
2258test -n "$target_alias" &&
2259 test "$program_prefix$program_suffix$program_transform_name" = \
2260 NONENONEs,x,x, &&
2261 program_prefix=${target_alias}-
2262
Reid Spencera773bd52006-08-04 18:18:08 +00002263{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2264echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002265if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002266 echo $ECHO_N "(cached) $ECHO_C" >&6
2267else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002268 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002269 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002272 llvm_cv_os_type="AIX"
2273 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002274 *-*-irix*)
2275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2277 llvm_cv_os_type="IRIX"
2278 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002279 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002282 llvm_cv_os_type="Cygwin"
2283 llvm_cv_platform_type="Unix" ;;
2284 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002285 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002286 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002287 llvm_cv_os_type="Darwin"
2288 llvm_cv_platform_type="Unix" ;;
2289 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002292 llvm_cv_os_type="FreeBSD"
2293 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002294 *-*-openbsd*)
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 Spencer1014ab42006-04-19 23:47:16 +00002297 llvm_cv_os_type="OpenBSD"
2298 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002299 *-*-netbsd*)
2300 llvm_cv_link_all_option="-Wl,--whole-archive"
2301 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2302 llvm_cv_os_type="NetBSD"
2303 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002304 *-*-dragonfly*)
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="DragonFly"
2308 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002309 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002310 llvm_cv_link_all_option="-Wl,--whole-archive"
2311 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002312 llvm_cv_os_type="HP-UX"
2313 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002314 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002315 llvm_cv_link_all_option="-Wl,--whole-archive"
2316 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002317 llvm_cv_os_type="Interix"
2318 llvm_cv_platform_type="Unix" ;;
2319 *-*-linux*)
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="Linux"
2323 llvm_cv_platform_type="Unix" ;;
2324 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002325 llvm_cv_link_all_option="-Wl,-z,allextract"
2326 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002327 llvm_cv_os_type="SunOS"
2328 llvm_cv_platform_type="Unix" ;;
2329 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002330 llvm_cv_link_all_option="-Wl,--whole-archive"
2331 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002332 llvm_cv_os_type="Win32"
2333 llvm_cv_platform_type="Win32" ;;
2334 *-*-mingw*)
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="MingW"
2338 llvm_cv_platform_type="Win32" ;;
2339 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002340 llvm_cv_link_all_option=""
2341 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002342 llvm_cv_os_type="Unknown"
2343 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002344esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002345fi
Reid Spencera773bd52006-08-04 18:18:08 +00002346{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2347echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002348
Reid Spencer7b3e8512004-12-24 06:29:05 +00002349if test "$llvm_cv_os_type" = "Unknown" ; then
2350 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2351echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002352 { (exit 1); exit 1; }; }
2353fi
2354
Reid Spencer7b3e8512004-12-24 06:29:05 +00002355OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002356
2357
Reid Spencera773bd52006-08-04 18:18:08 +00002358LINKALL=$llvm_cv_link_all_option
2359
2360NOLINKALL=$llvm_cv_no_link_all_option
2361
2362
Reid Spencer7b3e8512004-12-24 06:29:05 +00002363case $llvm_cv_platform_type in
2364 Unix)
2365
2366cat >>confdefs.h <<\_ACEOF
2367#define LLVM_ON_UNIX 1
2368_ACEOF
2369
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002370 LLVM_ON_UNIX=1
2371
2372 LLVM_ON_WIN32=0
2373
Reid Spencer7b3e8512004-12-24 06:29:05 +00002374 ;;
2375 Win32)
2376
2377cat >>confdefs.h <<\_ACEOF
2378#define LLVM_ON_WIN32 1
2379_ACEOF
2380
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002381 LLVM_ON_UNIX=0
2382
2383 LLVM_ON_WIN32=1
2384
Reid Spencer7b3e8512004-12-24 06:29:05 +00002385 ;;
2386esac
2387
Reid Spencera773bd52006-08-04 18:18:08 +00002388{ echo "$as_me:$LINENO: checking target architecture" >&5
2389echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002390if test "${llvm_cv_target_arch+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392else
2393 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002394 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002395 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002396 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2397 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002398 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002399 ia64-*) llvm_cv_target_arch="IA64" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002400 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002401 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002402 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002403 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002404 msp430-*) llvm_cv_target_arch="MSP430" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002405 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002406esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002407fi
Reid Spencera773bd52006-08-04 18:18:08 +00002408{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2409echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002410
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411if test "$llvm_cv_target_arch" = "Unknown" ; then
2412 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2413echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2414fi
John Criswell76595452003-07-01 22:07:39 +00002415
Douglas Gregor0711c302009-06-17 00:43:20 +00002416# Determine the LLVM native architecture for the target
2417case "$llvm_cv_target_arch" in
2418 x86) LLVM_NATIVE_ARCH="X86" ;;
2419 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2420 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2421esac
2422
Bill Wendlinga0833352009-03-12 04:10:09 +00002423ARCH=$llvm_cv_target_arch
2424
2425
2426ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002427ac_cpp='$CPP $CPPFLAGS'
2428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002431if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2433set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002436if test "${ac_cv_prog_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438else
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2441else
2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443for as_dir in $PATH
2444do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002448 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 +00002449 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2452 fi
2453done
2454done
Reid Spencera773bd52006-08-04 18:18:08 +00002455IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002456
2457fi
2458fi
2459CC=$ac_cv_prog_CC
2460if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002461 { echo "$as_me:$LINENO: result: $CC" >&5
2462echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002463else
Reid Spencera773bd52006-08-04 18:18:08 +00002464 { echo "$as_me:$LINENO: result: no" >&5
2465echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466fi
2467
Reid Spencera773bd52006-08-04 18:18:08 +00002468
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002469fi
2470if test -z "$ac_cv_prog_CC"; then
2471 ac_ct_CC=$CC
2472 # Extract the first word of "gcc", so it can be a program name with args.
2473set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002476if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478else
2479 if test -n "$ac_ct_CC"; then
2480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2481else
2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483for as_dir in $PATH
2484do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002488 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 +00002489 ac_cv_prog_ac_ct_CC="gcc"
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 break 2
2492 fi
2493done
2494done
Reid Spencera773bd52006-08-04 18:18:08 +00002495IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002496
2497fi
2498fi
2499ac_ct_CC=$ac_cv_prog_ac_ct_CC
2500if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002501 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2502echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002503else
Reid Spencera773bd52006-08-04 18:18:08 +00002504 { echo "$as_me:$LINENO: result: no" >&5
2505echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002506fi
2507
Reid Spencera773bd52006-08-04 18:18:08 +00002508 if test "x$ac_ct_CC" = x; then
2509 CC=""
2510 else
2511 case $cross_compiling:$ac_tool_warned in
2512yes:)
2513{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2514whose name does not start with the host triplet. If you think this
2515configuration is useful to you, please write to autoconf@gnu.org." >&5
2516echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2517whose name does not start with the host triplet. If you think this
2518configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2519ac_tool_warned=yes ;;
2520esac
2521 CC=$ac_ct_CC
2522 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002523else
2524 CC="$ac_cv_prog_CC"
2525fi
2526
2527if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002528 if test -n "$ac_tool_prefix"; then
2529 # 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 +00002530set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002531{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002533if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2535else
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2538else
2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002546 ac_cv_prog_CC="${ac_tool_prefix}cc"
2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2549 fi
2550done
2551done
Reid Spencera773bd52006-08-04 18:18:08 +00002552IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002553
2554fi
2555fi
2556CC=$ac_cv_prog_CC
2557if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002558 { echo "$as_me:$LINENO: result: $CC" >&5
2559echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002560else
Reid Spencera773bd52006-08-04 18:18:08 +00002561 { echo "$as_me:$LINENO: result: no" >&5
2562echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002563fi
2564
Reid Spencera773bd52006-08-04 18:18:08 +00002565
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002566 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002567fi
2568if test -z "$CC"; then
2569 # Extract the first word of "cc", so it can be a program name with args.
2570set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002571{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002573if test "${ac_cv_prog_CC+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2575else
2576 if test -n "$CC"; then
2577 ac_cv_prog_CC="$CC" # Let the user override the test.
2578else
2579 ac_prog_rejected=no
2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002586 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 +00002587 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2588 ac_prog_rejected=yes
2589 continue
2590 fi
2591 ac_cv_prog_CC="cc"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595done
2596done
Reid Spencera773bd52006-08-04 18:18:08 +00002597IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002598
2599if test $ac_prog_rejected = yes; then
2600 # We found a bogon in the path, so make sure we never use it.
2601 set dummy $ac_cv_prog_CC
2602 shift
2603 if test $# != 0; then
2604 # We chose a different compiler from the bogus one.
2605 # However, it has the same basename, so the bogon will be chosen
2606 # first if we set CC to just the basename; use the full file name.
2607 shift
2608 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2609 fi
2610fi
2611fi
2612fi
2613CC=$ac_cv_prog_CC
2614if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002615 { echo "$as_me:$LINENO: result: $CC" >&5
2616echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002617else
Reid Spencera773bd52006-08-04 18:18:08 +00002618 { echo "$as_me:$LINENO: result: no" >&5
2619echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620fi
2621
Reid Spencera773bd52006-08-04 18:18:08 +00002622
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002623fi
2624if test -z "$CC"; then
2625 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002626 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002627 do
2628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2629set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002635 if test -n "$CC"; then
2636 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002637else
2638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639for as_dir in $PATH
2640do
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002644 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 +00002645 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 break 2
2648 fi
2649done
2650done
Reid Spencera773bd52006-08-04 18:18:08 +00002651IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002652
2653fi
2654fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002655CC=$ac_cv_prog_CC
2656if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002657 { echo "$as_me:$LINENO: result: $CC" >&5
2658echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002659else
Reid Spencera773bd52006-08-04 18:18:08 +00002660 { echo "$as_me:$LINENO: result: no" >&5
2661echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002662fi
2663
Reid Spencera773bd52006-08-04 18:18:08 +00002664
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002665 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002666 done
2667fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002668if test -z "$CC"; then
2669 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002670 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002671do
2672 # Extract the first word of "$ac_prog", so it can be a program name with args.
2673set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002674{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002676if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002677 echo $ECHO_N "(cached) $ECHO_C" >&6
2678else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002679 if test -n "$ac_ct_CC"; then
2680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002681else
2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH
2684do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002688 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 +00002689 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 break 2
2692 fi
2693done
2694done
Reid Spencera773bd52006-08-04 18:18:08 +00002695IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002696
2697fi
2698fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002699ac_ct_CC=$ac_cv_prog_ac_ct_CC
2700if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002701 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2702echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002703else
Reid Spencera773bd52006-08-04 18:18:08 +00002704 { echo "$as_me:$LINENO: result: no" >&5
2705echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002706fi
2707
Reid Spencera773bd52006-08-04 18:18:08 +00002708
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002709 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002710done
John Criswell7a73b802003-06-30 21:59:07 +00002711
Reid Spencera773bd52006-08-04 18:18:08 +00002712 if test "x$ac_ct_CC" = x; then
2713 CC=""
2714 else
2715 case $cross_compiling:$ac_tool_warned in
2716yes:)
2717{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2718whose name does not start with the host triplet. If you think this
2719configuration is useful to you, please write to autoconf@gnu.org." >&5
2720echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2721whose name does not start with the host triplet. If you think this
2722configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2723ac_tool_warned=yes ;;
2724esac
2725 CC=$ac_ct_CC
2726 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002727fi
2728
John Criswell7a73b802003-06-30 21:59:07 +00002729fi
2730
2731
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002732test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2733See \`config.log' for more details." >&5
2734echo "$as_me: error: no acceptable C compiler found in \$PATH
2735See \`config.log' for more details." >&2;}
2736 { (exit 1); exit 1; }; }
2737
John Criswell7a73b802003-06-30 21:59:07 +00002738# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002739echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002740ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002741{ (ac_try="$ac_compiler --version >&5"
2742case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002751{ (ac_try="$ac_compiler -v >&5"
2752case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755esac
2756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002761{ (ac_try="$ac_compiler -V >&5"
2762case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2765esac
2766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }
2771
2772cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002773/* confdefs.h. */
2774_ACEOF
2775cat confdefs.h >>conftest.$ac_ext
2776cat >>conftest.$ac_ext <<_ACEOF
2777/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002778
John Criswell7a73b802003-06-30 21:59:07 +00002779int
2780main ()
2781{
2782
2783 ;
2784 return 0;
2785}
2786_ACEOF
2787ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002788ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002789# Try to create an executable without -o first, disregard a.out.
2790# It will help us diagnose broken compilers, and finding out an intuition
2791# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002792{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2793echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002794ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002795#
2796# List of possible output files, starting from the most likely.
2797# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2798# only as a last resort. b.out is created by i960 compilers.
2799ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2800#
2801# The IRIX 6 linker writes into existing files which may not be
2802# executable, retaining their permissions. Remove them first so a
2803# subsequent execution test works.
2804ac_rmfiles=
2805for ac_file in $ac_files
2806do
2807 case $ac_file in
2808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2810 esac
2811done
2812rm -f $ac_rmfiles
2813
2814if { (ac_try="$ac_link_default"
2815case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818esac
2819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002824 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2825# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2826# in a Makefile. We should not override ac_cv_exeext if it was cached,
2827# so that the user can short-circuit this test for compilers unknown to
2828# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002829for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002830do
2831 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002832 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002834 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002835 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002836 # We found the default executable, but exeext='' is most
2837 # certainly right.
2838 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002839 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002840 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2841 then :; else
2842 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2843 fi
2844 # We set ac_cv_exeext here because the later test for it is not
2845 # safe: cross compilers may not add the suffix if given an `-o'
2846 # argument, so we may need to know it at that point already.
2847 # Even if this section looks crufty: it has the advantage of
2848 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002849 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002850 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002851 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002852 esac
2853done
Reid Spencera773bd52006-08-04 18:18:08 +00002854test "$ac_cv_exeext" = no && ac_cv_exeext=
2855
John Criswell7a73b802003-06-30 21:59:07 +00002856else
2857 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002858sed 's/^/| /' conftest.$ac_ext >&5
2859
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002860{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002861See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002862echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002863See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002864 { (exit 77); exit 77; }; }
2865fi
2866
2867ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002868{ echo "$as_me:$LINENO: result: $ac_file" >&5
2869echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002870
Reid Spencera773bd52006-08-04 18:18:08 +00002871# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002872# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002873{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2874echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002875# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2876# If not cross compiling, check that we can run a simple program.
2877if test "$cross_compiling" != yes; then
2878 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002879 { (case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882esac
2883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
2888 cross_compiling=no
2889 else
2890 if test "$cross_compiling" = maybe; then
2891 cross_compiling=yes
2892 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002893 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002894If you meant to cross compile, use \`--host'.
2895See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002896echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002897If you meant to cross compile, use \`--host'.
2898See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002899 { (exit 1); exit 1; }; }
2900 fi
2901 fi
2902fi
Reid Spencera773bd52006-08-04 18:18:08 +00002903{ echo "$as_me:$LINENO: result: yes" >&5
2904echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002905
John Criswell0c38eaf2003-09-10 15:17:25 +00002906rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002907ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002908# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002909# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002910{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2911echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2912{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2913echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002914
Reid Spencera773bd52006-08-04 18:18:08 +00002915{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2916echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2917if { (ac_try="$ac_link"
2918case "(($ac_try" in
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2921esac
2922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; then
2927 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2928# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2929# work properly (i.e., refer to `conftest.exe'), while it won't with
2930# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002931for ac_file in conftest.exe conftest conftest.*; do
2932 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002933 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002935 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002936 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002937 * ) break;;
2938 esac
2939done
2940else
John Criswell0c38eaf2003-09-10 15:17:25 +00002941 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2942See \`config.log' for more details." >&5
2943echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2944See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002945 { (exit 1); exit 1; }; }
2946fi
2947
2948rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002949{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2950echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002951
2952rm -f conftest.$ac_ext
2953EXEEXT=$ac_cv_exeext
2954ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002955{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2956echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002957if test "${ac_cv_objext+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959else
2960 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002961/* confdefs.h. */
2962_ACEOF
2963cat confdefs.h >>conftest.$ac_ext
2964cat >>conftest.$ac_ext <<_ACEOF
2965/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002966
John Criswell7a73b802003-06-30 21:59:07 +00002967int
2968main ()
2969{
2970
2971 ;
2972 return 0;
2973}
2974_ACEOF
2975rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002976if { (ac_try="$ac_compile"
2977case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980esac
2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002986 for ac_file in conftest.o conftest.obj conftest.*; do
2987 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002988 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002990 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2991 break;;
2992 esac
2993done
2994else
2995 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002996sed 's/^/| /' conftest.$ac_ext >&5
2997
2998{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2999See \`config.log' for more details." >&5
3000echo "$as_me: error: cannot compute suffix of object files: cannot compile
3001See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003002 { (exit 1); exit 1; }; }
3003fi
3004
3005rm -f conftest.$ac_cv_objext conftest.$ac_ext
3006fi
Reid Spencera773bd52006-08-04 18:18:08 +00003007{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3008echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003009OBJEXT=$ac_cv_objext
3010ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003011{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3012echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003013if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015else
3016 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003017/* confdefs.h. */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003022
John Criswell7a73b802003-06-30 21:59:07 +00003023int
3024main ()
3025{
3026#ifndef __GNUC__
3027 choke me
3028#endif
3029
3030 ;
3031 return 0;
3032}
3033_ACEOF
3034rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003035if { (ac_try="$ac_compile"
3036case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003042 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003043 grep -v '^ *+' conftest.er1 >conftest.err
3044 rm -f conftest.er1
3045 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003047 (exit $ac_status); } &&
3048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3049 { (case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052esac
3053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_try") 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062esac
3063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003068 ac_compiler_gnu=yes
3069else
3070 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003071sed 's/^/| /' conftest.$ac_ext >&5
3072
Reid Spencera773bd52006-08-04 18:18:08 +00003073 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003074fi
Reid Spencera773bd52006-08-04 18:18:08 +00003075
3076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003077ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003078
3079fi
Reid Spencera773bd52006-08-04 18:18:08 +00003080{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3081echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003082GCC=`test $ac_compiler_gnu = yes && echo yes`
3083ac_test_CFLAGS=${CFLAGS+set}
3084ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003085{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3086echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003087if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003088 echo $ECHO_N "(cached) $ECHO_C" >&6
3089else
Reid Spencera773bd52006-08-04 18:18:08 +00003090 ac_save_c_werror_flag=$ac_c_werror_flag
3091 ac_c_werror_flag=yes
3092 ac_cv_prog_cc_g=no
3093 CFLAGS="-g"
3094 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003095/* confdefs.h. */
3096_ACEOF
3097cat confdefs.h >>conftest.$ac_ext
3098cat >>conftest.$ac_ext <<_ACEOF
3099/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003100
John Criswell7a73b802003-06-30 21:59:07 +00003101int
3102main ()
3103{
3104
3105 ;
3106 return 0;
3107}
3108_ACEOF
3109rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003110if { (ac_try="$ac_compile"
3111case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114esac
3115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003117 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003118 grep -v '^ *+' conftest.er1 >conftest.err
3119 rm -f conftest.er1
3120 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003122 (exit $ac_status); } &&
3123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127esac
3128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; } &&
3133 { ac_try='test -s conftest.$ac_objext'
3134 { (case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_try") 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003143 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003144else
3145 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003146sed 's/^/| /' conftest.$ac_ext >&5
3147
Reid Spencera773bd52006-08-04 18:18:08 +00003148 CFLAGS=""
3149 cat >conftest.$ac_ext <<_ACEOF
3150/* confdefs.h. */
3151_ACEOF
3152cat confdefs.h >>conftest.$ac_ext
3153cat >>conftest.$ac_ext <<_ACEOF
3154/* end confdefs.h. */
3155
3156int
3157main ()
3158{
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
3164rm -f conftest.$ac_objext
3165if { (ac_try="$ac_compile"
3166case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003177 (exit $ac_status); } &&
3178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3179 { (case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182esac
3183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_try") 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try='test -s conftest.$ac_objext'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192esac
3193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003198 :
3199else
3200 echo "$as_me: failed program was:" >&5
3201sed 's/^/| /' conftest.$ac_ext >&5
3202
3203 ac_c_werror_flag=$ac_save_c_werror_flag
3204 CFLAGS="-g"
3205 cat >conftest.$ac_ext <<_ACEOF
3206/* confdefs.h. */
3207_ACEOF
3208cat confdefs.h >>conftest.$ac_ext
3209cat >>conftest.$ac_ext <<_ACEOF
3210/* end confdefs.h. */
3211
3212int
3213main ()
3214{
3215
3216 ;
3217 return 0;
3218}
3219_ACEOF
3220rm -f conftest.$ac_objext
3221if { (ac_try="$ac_compile"
3222case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225esac
3226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_compile") 2>conftest.er1
3228 ac_status=$?
3229 grep -v '^ *+' conftest.er1 >conftest.err
3230 rm -f conftest.er1
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003233 (exit $ac_status); } &&
3234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3235 { (case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238esac
3239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_try") 2>&5
3241 ac_status=$?
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; } &&
3244 { ac_try='test -s conftest.$ac_objext'
3245 { (case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248esac
3249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250 (eval "$ac_try") 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003254 ac_cv_prog_cc_g=yes
3255else
3256 echo "$as_me: failed program was:" >&5
3257sed 's/^/| /' conftest.$ac_ext >&5
3258
3259
John Criswell7a73b802003-06-30 21:59:07 +00003260fi
Reid Spencera773bd52006-08-04 18:18:08 +00003261
3262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003263fi
Reid Spencera773bd52006-08-04 18:18:08 +00003264
3265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266fi
3267
3268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 ac_c_werror_flag=$ac_save_c_werror_flag
3270fi
3271{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3272echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003273if test "$ac_test_CFLAGS" = set; then
3274 CFLAGS=$ac_save_CFLAGS
3275elif test $ac_cv_prog_cc_g = yes; then
3276 if test "$GCC" = yes; then
3277 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003278 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003279 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003280 fi
3281else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003282 if test "$GCC" = yes; then
3283 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003284 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003285 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003286 fi
3287fi
Reid Spencera773bd52006-08-04 18:18:08 +00003288{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3289echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3290if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003291 echo $ECHO_N "(cached) $ECHO_C" >&6
3292else
Reid Spencera773bd52006-08-04 18:18:08 +00003293 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003294ac_save_CC=$CC
3295cat >conftest.$ac_ext <<_ACEOF
3296/* confdefs.h. */
3297_ACEOF
3298cat confdefs.h >>conftest.$ac_ext
3299cat >>conftest.$ac_ext <<_ACEOF
3300/* end confdefs.h. */
3301#include <stdarg.h>
3302#include <stdio.h>
3303#include <sys/types.h>
3304#include <sys/stat.h>
3305/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3306struct buf { int x; };
3307FILE * (*rcsopen) (struct buf *, struct stat *, int);
3308static char *e (p, i)
3309 char **p;
3310 int i;
3311{
3312 return p[i];
3313}
3314static char *f (char * (*g) (char **, int), char **p, ...)
3315{
3316 char *s;
3317 va_list v;
3318 va_start (v,p);
3319 s = g (p, va_arg (v,int));
3320 va_end (v);
3321 return s;
3322}
3323
3324/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3325 function prototypes and stuff, but not '\xHH' hex character constants.
3326 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003327 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3329 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003330 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003331int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3332
Reid Spencera773bd52006-08-04 18:18:08 +00003333/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3334 inside strings and character constants. */
3335#define FOO(x) 'x'
3336int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3337
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003338int test (int i, double x);
3339struct s1 {int (*f) (int a);};
3340struct s2 {int (*f) (double a);};
3341int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3342int argc;
3343char **argv;
3344int
3345main ()
3346{
3347return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3348 ;
3349 return 0;
3350}
3351_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003352for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3353 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003354do
3355 CC="$ac_save_CC $ac_arg"
3356 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003357if { (ac_try="$ac_compile"
3358case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361esac
3362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003364 ac_status=$?
3365 grep -v '^ *+' conftest.er1 >conftest.err
3366 rm -f conftest.er1
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003369 (exit $ac_status); } &&
3370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3371 { (case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374esac
3375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_try") 2>&5
3377 ac_status=$?
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; } &&
3380 { ac_try='test -s conftest.$ac_objext'
3381 { (case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384esac
3385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_try") 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003390 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003391else
3392 echo "$as_me: failed program was:" >&5
3393sed 's/^/| /' conftest.$ac_ext >&5
3394
Reid Spencera773bd52006-08-04 18:18:08 +00003395
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003396fi
Reid Spencera773bd52006-08-04 18:18:08 +00003397
3398rm -f core conftest.err conftest.$ac_objext
3399 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003400done
Reid Spencera773bd52006-08-04 18:18:08 +00003401rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003402CC=$ac_save_CC
3403
3404fi
Reid Spencera773bd52006-08-04 18:18:08 +00003405# AC_CACHE_VAL
3406case "x$ac_cv_prog_cc_c89" in
3407 x)
3408 { echo "$as_me:$LINENO: result: none needed" >&5
3409echo "${ECHO_T}none needed" >&6; } ;;
3410 xno)
3411 { echo "$as_me:$LINENO: result: unsupported" >&5
3412echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003413 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003414 CC="$CC $ac_cv_prog_cc_c89"
3415 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3416echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003417esac
3418
John Criswell0c38eaf2003-09-10 15:17:25 +00003419
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003420ac_ext=c
3421ac_cpp='$CPP $CPPFLAGS'
3422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425
3426
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003427ac_ext=c
3428ac_cpp='$CPP $CPPFLAGS'
3429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003432{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3433echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003434# On Suns, sometimes $CPP names a directory.
3435if test -n "$CPP" && test -d "$CPP"; then
3436 CPP=
3437fi
3438if test -z "$CPP"; then
3439 if test "${ac_cv_prog_CPP+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442 # Double quotes because CPP needs to be expanded
3443 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3444 do
3445 ac_preproc_ok=false
3446for ac_c_preproc_warn_flag in '' yes
3447do
3448 # Use a header file that comes with gcc, so configuring glibc
3449 # with a fresh cross-compiler works.
3450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451 # <limits.h> exists even on freestanding compilers.
3452 # On the NeXT, cc -E runs the code through the compiler's parser,
3453 # not just through cpp. "Syntax error" is here to catch this case.
3454 cat >conftest.$ac_ext <<_ACEOF
3455/* confdefs.h. */
3456_ACEOF
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
3459/* end confdefs.h. */
3460#ifdef __STDC__
3461# include <limits.h>
3462#else
3463# include <assert.h>
3464#endif
3465 Syntax error
3466_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003467if { (ac_try="$ac_cpp conftest.$ac_ext"
3468case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471esac
3472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003474 ac_status=$?
3475 grep -v '^ *+' conftest.er1 >conftest.err
3476 rm -f conftest.er1
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003479 (exit $ac_status); } >/dev/null; then
3480 if test -s conftest.err; then
3481 ac_cpp_err=$ac_c_preproc_warn_flag
3482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3483 else
3484 ac_cpp_err=
3485 fi
3486else
3487 ac_cpp_err=yes
3488fi
3489if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003490 :
3491else
3492 echo "$as_me: failed program was:" >&5
3493sed 's/^/| /' conftest.$ac_ext >&5
3494
3495 # Broken: fails on valid input.
3496continue
3497fi
Reid Spencera773bd52006-08-04 18:18:08 +00003498
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003499rm -f conftest.err conftest.$ac_ext
3500
Reid Spencera773bd52006-08-04 18:18:08 +00003501 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003502 # can be detected and how.
3503 cat >conftest.$ac_ext <<_ACEOF
3504/* confdefs.h. */
3505_ACEOF
3506cat confdefs.h >>conftest.$ac_ext
3507cat >>conftest.$ac_ext <<_ACEOF
3508/* end confdefs.h. */
3509#include <ac_nonexistent.h>
3510_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003511if { (ac_try="$ac_cpp conftest.$ac_ext"
3512case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515esac
3516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003518 ac_status=$?
3519 grep -v '^ *+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003523 (exit $ac_status); } >/dev/null; then
3524 if test -s conftest.err; then
3525 ac_cpp_err=$ac_c_preproc_warn_flag
3526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3527 else
3528 ac_cpp_err=
3529 fi
3530else
3531 ac_cpp_err=yes
3532fi
3533if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003534 # Broken: success on invalid input.
3535continue
3536else
3537 echo "$as_me: failed program was:" >&5
3538sed 's/^/| /' conftest.$ac_ext >&5
3539
3540 # Passes both tests.
3541ac_preproc_ok=:
3542break
3543fi
Reid Spencera773bd52006-08-04 18:18:08 +00003544
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003545rm -f conftest.err conftest.$ac_ext
3546
3547done
3548# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3549rm -f conftest.err conftest.$ac_ext
3550if $ac_preproc_ok; then
3551 break
3552fi
3553
3554 done
3555 ac_cv_prog_CPP=$CPP
3556
3557fi
3558 CPP=$ac_cv_prog_CPP
3559else
3560 ac_cv_prog_CPP=$CPP
3561fi
Reid Spencera773bd52006-08-04 18:18:08 +00003562{ echo "$as_me:$LINENO: result: $CPP" >&5
3563echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003564ac_preproc_ok=false
3565for ac_c_preproc_warn_flag in '' yes
3566do
3567 # Use a header file that comes with gcc, so configuring glibc
3568 # with a fresh cross-compiler works.
3569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3570 # <limits.h> exists even on freestanding compilers.
3571 # On the NeXT, cc -E runs the code through the compiler's parser,
3572 # not just through cpp. "Syntax error" is here to catch this case.
3573 cat >conftest.$ac_ext <<_ACEOF
3574/* confdefs.h. */
3575_ACEOF
3576cat confdefs.h >>conftest.$ac_ext
3577cat >>conftest.$ac_ext <<_ACEOF
3578/* end confdefs.h. */
3579#ifdef __STDC__
3580# include <limits.h>
3581#else
3582# include <assert.h>
3583#endif
3584 Syntax error
3585_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003586if { (ac_try="$ac_cpp conftest.$ac_ext"
3587case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590esac
3591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003593 ac_status=$?
3594 grep -v '^ *+' conftest.er1 >conftest.err
3595 rm -f conftest.er1
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003598 (exit $ac_status); } >/dev/null; then
3599 if test -s conftest.err; then
3600 ac_cpp_err=$ac_c_preproc_warn_flag
3601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3602 else
3603 ac_cpp_err=
3604 fi
3605else
3606 ac_cpp_err=yes
3607fi
3608if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003609 :
3610else
3611 echo "$as_me: failed program was:" >&5
3612sed 's/^/| /' conftest.$ac_ext >&5
3613
3614 # Broken: fails on valid input.
3615continue
3616fi
Reid Spencera773bd52006-08-04 18:18:08 +00003617
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003618rm -f conftest.err conftest.$ac_ext
3619
Reid Spencera773bd52006-08-04 18:18:08 +00003620 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003621 # can be detected and how.
3622 cat >conftest.$ac_ext <<_ACEOF
3623/* confdefs.h. */
3624_ACEOF
3625cat confdefs.h >>conftest.$ac_ext
3626cat >>conftest.$ac_ext <<_ACEOF
3627/* end confdefs.h. */
3628#include <ac_nonexistent.h>
3629_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003630if { (ac_try="$ac_cpp conftest.$ac_ext"
3631case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3634esac
3635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003637 ac_status=$?
3638 grep -v '^ *+' conftest.er1 >conftest.err
3639 rm -f conftest.er1
3640 cat conftest.err >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003642 (exit $ac_status); } >/dev/null; then
3643 if test -s conftest.err; then
3644 ac_cpp_err=$ac_c_preproc_warn_flag
3645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3646 else
3647 ac_cpp_err=
3648 fi
3649else
3650 ac_cpp_err=yes
3651fi
3652if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003653 # Broken: success on invalid input.
3654continue
3655else
3656 echo "$as_me: failed program was:" >&5
3657sed 's/^/| /' conftest.$ac_ext >&5
3658
3659 # Passes both tests.
3660ac_preproc_ok=:
3661break
3662fi
Reid Spencera773bd52006-08-04 18:18:08 +00003663
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003664rm -f conftest.err conftest.$ac_ext
3665
3666done
3667# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3668rm -f conftest.err conftest.$ac_ext
3669if $ac_preproc_ok; then
3670 :
3671else
3672 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3673See \`config.log' for more details." >&5
3674echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3675See \`config.log' for more details." >&2;}
3676 { (exit 1); exit 1; }; }
3677fi
3678
John Criswell7a73b802003-06-30 21:59:07 +00003679ac_ext=c
3680ac_cpp='$CPP $CPPFLAGS'
3681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684
John Criswell7a73b802003-06-30 21:59:07 +00003685
Reid Spencera773bd52006-08-04 18:18:08 +00003686{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3687echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003688if test "${ac_cv_path_GREP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690else
Reid Spencera773bd52006-08-04 18:18:08 +00003691 # Extract the first word of "grep ggrep" to use in msg output
3692if test -z "$GREP"; then
3693set dummy grep ggrep; ac_prog_name=$2
3694if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696else
Reid Spencera773bd52006-08-04 18:18:08 +00003697 ac_path_GREP_found=false
3698# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003700for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003701do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003704 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003705 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003706 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003707 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003708 # Check for GNU ac_path_GREP and select it if it is found.
3709 # Check for GNU $ac_path_GREP
3710case `"$ac_path_GREP" --version 2>&1` in
3711*GNU*)
3712 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3713*)
3714 ac_count=0
3715 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3716 while :
3717 do
3718 cat "conftest.in" "conftest.in" >"conftest.tmp"
3719 mv "conftest.tmp" "conftest.in"
3720 cp "conftest.in" "conftest.nl"
3721 echo 'GREP' >> "conftest.nl"
3722 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3724 ac_count=`expr $ac_count + 1`
3725 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3726 # Best one so far, save it but keep looking for a better one
3727 ac_cv_path_GREP="$ac_path_GREP"
3728 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003729 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003730 # 10*(2^10) chars as input seems more than enough
3731 test $ac_count -gt 10 && break
3732 done
3733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3734esac
3735
3736
3737 $ac_path_GREP_found && break 3
3738 done
3739done
3740
3741done
3742IFS=$as_save_IFS
3743
3744
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003745fi
Reid Spencera773bd52006-08-04 18:18:08 +00003746
3747GREP="$ac_cv_path_GREP"
3748if test -z "$GREP"; then
3749 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3750echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3751 { (exit 1); exit 1; }; }
3752fi
3753
3754else
3755 ac_cv_path_GREP=$GREP
3756fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003757
John Criswell7a73b802003-06-30 21:59:07 +00003758
Reid Spencera773bd52006-08-04 18:18:08 +00003759fi
3760{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3761echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3762 GREP="$ac_cv_path_GREP"
3763
3764
3765{ echo "$as_me:$LINENO: checking for egrep" >&5
3766echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3767if test "${ac_cv_path_EGREP+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3769else
3770 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3771 then ac_cv_path_EGREP="$GREP -E"
3772 else
3773 # Extract the first word of "egrep" to use in msg output
3774if test -z "$EGREP"; then
3775set dummy egrep; ac_prog_name=$2
3776if test "${ac_cv_path_EGREP+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 ac_path_EGREP_found=false
3780# Loop through the user's path and test for each of PROGNAME-LIST
3781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3783do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_prog in egrep; do
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003789 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003790 # Check for GNU ac_path_EGREP and select it if it is found.
3791 # Check for GNU $ac_path_EGREP
3792case `"$ac_path_EGREP" --version 2>&1` in
3793*GNU*)
3794 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3795*)
3796 ac_count=0
3797 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3798 while :
3799 do
3800 cat "conftest.in" "conftest.in" >"conftest.tmp"
3801 mv "conftest.tmp" "conftest.in"
3802 cp "conftest.in" "conftest.nl"
3803 echo 'EGREP' >> "conftest.nl"
3804 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3806 ac_count=`expr $ac_count + 1`
3807 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3808 # Best one so far, save it but keep looking for a better one
3809 ac_cv_path_EGREP="$ac_path_EGREP"
3810 ac_path_EGREP_max=$ac_count
3811 fi
3812 # 10*(2^10) chars as input seems more than enough
3813 test $ac_count -gt 10 && break
3814 done
3815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3816esac
3817
3818
3819 $ac_path_EGREP_found && break 3
3820 done
3821done
3822
3823done
3824IFS=$as_save_IFS
3825
3826
3827fi
3828
3829EGREP="$ac_cv_path_EGREP"
3830if test -z "$EGREP"; then
3831 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3832echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3833 { (exit 1); exit 1; }; }
3834fi
3835
3836else
3837 ac_cv_path_EGREP=$EGREP
3838fi
3839
3840
3841 fi
3842fi
3843{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3844echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3845 EGREP="$ac_cv_path_EGREP"
3846
3847
3848{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3849echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003850if test "${ac_cv_header_stdc+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852else
3853 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003854/* confdefs.h. */
3855_ACEOF
3856cat confdefs.h >>conftest.$ac_ext
3857cat >>conftest.$ac_ext <<_ACEOF
3858/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003859#include <stdlib.h>
3860#include <stdarg.h>
3861#include <string.h>
3862#include <float.h>
3863
John Criswell0c38eaf2003-09-10 15:17:25 +00003864int
3865main ()
3866{
3867
3868 ;
3869 return 0;
3870}
John Criswell7a73b802003-06-30 21:59:07 +00003871_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003872rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003873if { (ac_try="$ac_compile"
3874case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877esac
3878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003880 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003881 grep -v '^ *+' conftest.er1 >conftest.err
3882 rm -f conftest.er1
3883 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003885 (exit $ac_status); } &&
3886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3887 { (case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890esac
3891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_try") 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; } &&
3896 { ac_try='test -s conftest.$ac_objext'
3897 { (case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900esac
3901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_try") 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003906 ac_cv_header_stdc=yes
3907else
3908 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003909sed 's/^/| /' conftest.$ac_ext >&5
3910
Reid Spencera773bd52006-08-04 18:18:08 +00003911 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003912fi
Reid Spencera773bd52006-08-04 18:18:08 +00003913
3914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003915
3916if test $ac_cv_header_stdc = yes; then
3917 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3918 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003919/* confdefs.h. */
3920_ACEOF
3921cat confdefs.h >>conftest.$ac_ext
3922cat >>conftest.$ac_ext <<_ACEOF
3923/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003924#include <string.h>
3925
3926_ACEOF
3927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003928 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003929 :
3930else
3931 ac_cv_header_stdc=no
3932fi
3933rm -f conftest*
3934
3935fi
3936
3937if test $ac_cv_header_stdc = yes; then
3938 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3939 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003940/* confdefs.h. */
3941_ACEOF
3942cat confdefs.h >>conftest.$ac_ext
3943cat >>conftest.$ac_ext <<_ACEOF
3944/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003945#include <stdlib.h>
3946
3947_ACEOF
3948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003949 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003950 :
3951else
3952 ac_cv_header_stdc=no
3953fi
3954rm -f conftest*
3955
3956fi
3957
3958if test $ac_cv_header_stdc = yes; then
3959 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3960 if test "$cross_compiling" = yes; then
3961 :
3962else
3963 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003964/* confdefs.h. */
3965_ACEOF
3966cat confdefs.h >>conftest.$ac_ext
3967cat >>conftest.$ac_ext <<_ACEOF
3968/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003969#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003970#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003971#if ((' ' & 0x0FF) == 0x020)
3972# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3973# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3974#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003975# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003976 (('a' <= (c) && (c) <= 'i') \
3977 || ('j' <= (c) && (c) <= 'r') \
3978 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003979# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3980#endif
3981
3982#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3983int
3984main ()
3985{
3986 int i;
3987 for (i = 0; i < 256; i++)
3988 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003989 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003990 return 2;
3991 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003992}
3993_ACEOF
3994rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003995if { (ac_try="$ac_link"
3996case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999esac
4000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004002 ac_status=$?
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00004005 { (case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4008esac
4009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4014 :
4015else
4016 echo "$as_me: program exited with status $ac_status" >&5
4017echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004018sed 's/^/| /' conftest.$ac_ext >&5
4019
John Criswell7a73b802003-06-30 21:59:07 +00004020( exit $ac_status )
4021ac_cv_header_stdc=no
4022fi
Reid Spencera773bd52006-08-04 18:18:08 +00004023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4024fi
4025
4026
John Criswell7a73b802003-06-30 21:59:07 +00004027fi
4028fi
Reid Spencera773bd52006-08-04 18:18:08 +00004029{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4030echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004031if test $ac_cv_header_stdc = yes; then
4032
4033cat >>confdefs.h <<\_ACEOF
4034#define STDC_HEADERS 1
4035_ACEOF
4036
4037fi
4038
Reid Spencera773bd52006-08-04 18:18:08 +00004039# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4050 inttypes.h stdint.h unistd.h
4051do
4052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4053{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057else
4058 cat >conftest.$ac_ext <<_ACEOF
4059/* confdefs.h. */
4060_ACEOF
4061cat confdefs.h >>conftest.$ac_ext
4062cat >>conftest.$ac_ext <<_ACEOF
4063/* end confdefs.h. */
4064$ac_includes_default
4065
4066#include <$ac_header>
4067_ACEOF
4068rm -f conftest.$ac_objext
4069if { (ac_try="$ac_compile"
4070case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073esac
4074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_compile") 2>conftest.er1
4076 ac_status=$?
4077 grep -v '^ *+' conftest.er1 >conftest.err
4078 rm -f conftest.er1
4079 cat conftest.err >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004081 (exit $ac_status); } &&
4082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4083 { (case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086esac
4087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_try") 2>&5
4089 ac_status=$?
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; } &&
4092 { ac_try='test -s conftest.$ac_objext'
4093 { (case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096esac
4097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098 (eval "$ac_try") 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004102 eval "$as_ac_Header=yes"
4103else
4104 echo "$as_me: failed program was:" >&5
4105sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 eval "$as_ac_Header=no"
4108fi
4109
4110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111fi
4112ac_res=`eval echo '${'$as_ac_Header'}'`
4113 { echo "$as_me:$LINENO: result: $ac_res" >&5
4114echo "${ECHO_T}$ac_res" >&6; }
4115if test `eval echo '${'$as_ac_Header'}'` = yes; then
4116 cat >>confdefs.h <<_ACEOF
4117#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4118_ACEOF
4119
4120fi
4121
4122done
4123
4124
4125{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4126echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4127if test "${ac_cv_c_bigendian+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129else
4130 # See if sys/param.h defines the BYTE_ORDER macro.
4131cat >conftest.$ac_ext <<_ACEOF
4132/* confdefs.h. */
4133_ACEOF
4134cat confdefs.h >>conftest.$ac_ext
4135cat >>conftest.$ac_ext <<_ACEOF
4136/* end confdefs.h. */
4137#include <sys/types.h>
4138#include <sys/param.h>
4139
4140int
4141main ()
4142{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004143#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004144 bogus endian macros
4145#endif
4146
4147 ;
4148 return 0;
4149}
4150_ACEOF
4151rm -f conftest.$ac_objext
4152if { (ac_try="$ac_compile"
4153case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4156esac
4157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_compile") 2>conftest.er1
4159 ac_status=$?
4160 grep -v '^ *+' conftest.er1 >conftest.err
4161 rm -f conftest.er1
4162 cat conftest.err >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004164 (exit $ac_status); } &&
4165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4166 { (case "(($ac_try" in
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4169esac
4170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171 (eval "$ac_try") 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; } &&
4175 { ac_try='test -s conftest.$ac_objext'
4176 { (case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179esac
4180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181 (eval "$ac_try") 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004185 # It does; now see whether it defined to BIG_ENDIAN or not.
4186cat >conftest.$ac_ext <<_ACEOF
4187/* confdefs.h. */
4188_ACEOF
4189cat confdefs.h >>conftest.$ac_ext
4190cat >>conftest.$ac_ext <<_ACEOF
4191/* end confdefs.h. */
4192#include <sys/types.h>
4193#include <sys/param.h>
4194
4195int
4196main ()
4197{
4198#if BYTE_ORDER != BIG_ENDIAN
4199 not big endian
4200#endif
4201
4202 ;
4203 return 0;
4204}
4205_ACEOF
4206rm -f conftest.$ac_objext
4207if { (ac_try="$ac_compile"
4208case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211esac
4212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_compile") 2>conftest.er1
4214 ac_status=$?
4215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004219 (exit $ac_status); } &&
4220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4221 { (case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224esac
4225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_try") 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; } &&
4230 { ac_try='test -s conftest.$ac_objext'
4231 { (case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234esac
4235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_try") 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004240 ac_cv_c_bigendian=yes
4241else
4242 echo "$as_me: failed program was:" >&5
4243sed 's/^/| /' conftest.$ac_ext >&5
4244
4245 ac_cv_c_bigendian=no
4246fi
4247
4248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249else
4250 echo "$as_me: failed program was:" >&5
4251sed 's/^/| /' conftest.$ac_ext >&5
4252
4253 # It does not; compile a test program.
4254if test "$cross_compiling" = yes; then
4255 # try to guess the endianness by grepping values into an object file
4256 ac_cv_c_bigendian=unknown
4257 cat >conftest.$ac_ext <<_ACEOF
4258/* confdefs.h. */
4259_ACEOF
4260cat confdefs.h >>conftest.$ac_ext
4261cat >>conftest.$ac_ext <<_ACEOF
4262/* end confdefs.h. */
4263short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4264short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4265void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4266short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4267short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4268void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4269int
4270main ()
4271{
4272 _ascii (); _ebcdic ();
4273 ;
4274 return 0;
4275}
4276_ACEOF
4277rm -f conftest.$ac_objext
4278if { (ac_try="$ac_compile"
4279case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282esac
4283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_compile") 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004290 (exit $ac_status); } &&
4291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4292 { (case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295esac
4296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_try") 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; } &&
4301 { ac_try='test -s conftest.$ac_objext'
4302 { (case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305esac
4306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_try") 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004311 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4312 ac_cv_c_bigendian=yes
4313fi
4314if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4315 if test "$ac_cv_c_bigendian" = unknown; then
4316 ac_cv_c_bigendian=no
4317 else
4318 # finding both strings is unlikely to happen, but who knows?
4319 ac_cv_c_bigendian=unknown
4320 fi
4321fi
4322else
4323 echo "$as_me: failed program was:" >&5
4324sed 's/^/| /' conftest.$ac_ext >&5
4325
4326
4327fi
4328
4329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330else
4331 cat >conftest.$ac_ext <<_ACEOF
4332/* confdefs.h. */
4333_ACEOF
4334cat confdefs.h >>conftest.$ac_ext
4335cat >>conftest.$ac_ext <<_ACEOF
4336/* end confdefs.h. */
4337$ac_includes_default
4338int
4339main ()
4340{
4341
4342 /* Are we little or big endian? From Harbison&Steele. */
4343 union
4344 {
4345 long int l;
4346 char c[sizeof (long int)];
4347 } u;
4348 u.l = 1;
4349 return u.c[sizeof (long int) - 1] == 1;
4350
4351 ;
4352 return 0;
4353}
4354_ACEOF
4355rm -f conftest$ac_exeext
4356if { (ac_try="$ac_link"
4357case "(($ac_try" in
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4360esac
4361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362 (eval "$ac_link") 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4366 { (case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369esac
4370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_try") 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 ac_cv_c_bigendian=no
4376else
4377 echo "$as_me: program exited with status $ac_status" >&5
4378echo "$as_me: failed program was:" >&5
4379sed 's/^/| /' conftest.$ac_ext >&5
4380
4381( exit $ac_status )
4382ac_cv_c_bigendian=yes
4383fi
4384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4385fi
4386
4387
4388fi
4389
4390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391fi
4392{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4393echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4394case $ac_cv_c_bigendian in
4395 yes)
4396 ENDIAN=big
4397 ;;
4398 no)
4399 ENDIAN=little
4400 ;;
4401 *)
4402 { { echo "$as_me:$LINENO: error: unknown endianness
4403presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4404echo "$as_me: error: unknown endianness
4405presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4406 { (exit 1); exit 1; }; } ;;
4407esac
4408
4409
4410if test "$cross_compiling" = yes; then
4411 LLVM_CROSS_COMPILING=1
4412
4413
4414{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4415echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4416if test "${ac_cv_build_exeext+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418else
4419 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4420 ac_cv_build_exeext=.exe
4421else
4422 ac_build_prefix=${build_alias}-
4423
4424 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4425set dummy ${ac_build_prefix}gcc; ac_word=$2
4426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4428if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430else
4431 if test -n "$BUILD_CC"; then
4432 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4433else
4434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435for as_dir in $PATH
4436do
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004440 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 +00004441 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 break 2
4444 fi
4445done
4446done
4447IFS=$as_save_IFS
4448
4449fi
4450fi
4451BUILD_CC=$ac_cv_prog_BUILD_CC
4452if test -n "$BUILD_CC"; then
4453 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4454echo "${ECHO_T}$BUILD_CC" >&6; }
4455else
4456 { echo "$as_me:$LINENO: result: no" >&5
4457echo "${ECHO_T}no" >&6; }
4458fi
4459
4460
4461 if test -z "$BUILD_CC"; then
4462 # Extract the first word of "gcc", so it can be a program name with args.
4463set dummy gcc; ac_word=$2
4464{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4466if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4468else
4469 if test -n "$BUILD_CC"; then
4470 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4471else
4472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004478 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 +00004479 ac_cv_prog_BUILD_CC="gcc"
4480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 break 2
4482 fi
4483done
4484done
4485IFS=$as_save_IFS
4486
4487fi
4488fi
4489BUILD_CC=$ac_cv_prog_BUILD_CC
4490if test -n "$BUILD_CC"; then
4491 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4492echo "${ECHO_T}$BUILD_CC" >&6; }
4493else
4494 { echo "$as_me:$LINENO: result: no" >&5
4495echo "${ECHO_T}no" >&6; }
4496fi
4497
4498
4499 if test -z "$BUILD_CC"; then
4500 # Extract the first word of "cc", so it can be a program name with args.
4501set dummy cc; ac_word=$2
4502{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4504if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506else
4507 if test -n "$BUILD_CC"; then
4508 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4509else
4510 ac_prog_rejected=no
4511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512for as_dir in $PATH
4513do
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004517 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 +00004518 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4519 ac_prog_rejected=yes
4520 continue
4521 fi
4522 ac_cv_prog_BUILD_CC="cc"
4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4525 fi
4526done
4527done
4528IFS=$as_save_IFS
4529
4530if test $ac_prog_rejected = yes; then
4531 # We found a bogon in the path, so make sure we never use it.
4532 set dummy $ac_cv_prog_BUILD_CC
4533 shift
4534 if test $# != 0; then
4535 # We chose a different compiler from the bogus one.
4536 # However, it has the same basename, so the bogon will be chosen
4537 # first if we set BUILD_CC to just the basename; use the full file name.
4538 shift
4539 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4540 fi
4541fi
4542fi
4543fi
4544BUILD_CC=$ac_cv_prog_BUILD_CC
4545if test -n "$BUILD_CC"; then
4546 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4547echo "${ECHO_T}$BUILD_CC" >&6; }
4548else
4549 { echo "$as_me:$LINENO: result: no" >&5
4550echo "${ECHO_T}no" >&6; }
4551fi
4552
4553
4554 fi
4555 fi
4556 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4557echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4558 { (exit 1); exit 1; }; }
4559 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4560 rm -f conftest*
4561 echo 'int main () { return 0; }' > conftest.$ac_ext
4562 ac_cv_build_exeext=
4563 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4564 (eval $ac_build_link) 2>&5
4565 ac_status=$?
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; then
4568 for file in conftest.*; do
4569 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004570 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004571 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4572 esac
4573 done
4574 else
4575 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4576echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4577 { (exit 1); exit 1; }; }
4578 fi
4579 rm -f conftest*
4580 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4581fi
4582fi
4583
4584BUILD_EXEEXT=""
4585test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4586{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4587echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4588ac_build_exeext=$BUILD_EXEEXT
4589
Jim Grosbach673612e2008-10-02 22:56:44 +00004590 ac_build_prefix=${build_alias}-
4591 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4592set dummy ${ac_build_prefix}g++; ac_word=$2
4593{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4595if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597else
4598 if test -n "$BUILD_CXX"; then
4599 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4600else
4601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602for as_dir in $PATH
4603do
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004607 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 +00004608 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4611 fi
4612done
4613done
4614IFS=$as_save_IFS
4615
4616fi
4617fi
4618BUILD_CXX=$ac_cv_prog_BUILD_CXX
4619if test -n "$BUILD_CXX"; then
4620 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4621echo "${ECHO_T}$BUILD_CXX" >&6; }
4622else
4623 { echo "$as_me:$LINENO: result: no" >&5
4624echo "${ECHO_T}no" >&6; }
4625fi
4626
4627
4628 if test -z "$BUILD_CXX"; then
4629 # Extract the first word of "g++", so it can be a program name with args.
4630set dummy g++; ac_word=$2
4631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4633if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4635else
4636 if test -n "$BUILD_CXX"; then
4637 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4638else
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004645 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 +00004646 ac_cv_prog_BUILD_CXX="g++"
4647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4649 fi
4650done
4651done
4652IFS=$as_save_IFS
4653
4654fi
4655fi
4656BUILD_CXX=$ac_cv_prog_BUILD_CXX
4657if test -n "$BUILD_CXX"; then
4658 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4659echo "${ECHO_T}$BUILD_CXX" >&6; }
4660else
4661 { echo "$as_me:$LINENO: result: no" >&5
4662echo "${ECHO_T}no" >&6; }
4663fi
4664
4665
4666 if test -z "$BUILD_CXX"; then
4667 # Extract the first word of "c++", so it can be a program name with args.
4668set dummy c++; ac_word=$2
4669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4671if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4673else
4674 if test -n "$BUILD_CXX"; then
4675 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4676else
4677 ac_prog_rejected=no
4678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679for as_dir in $PATH
4680do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004684 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 +00004685 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4686 ac_prog_rejected=yes
4687 continue
4688 fi
4689 ac_cv_prog_BUILD_CXX="c++"
4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4692 fi
4693done
4694done
4695IFS=$as_save_IFS
4696
4697if test $ac_prog_rejected = yes; then
4698 # We found a bogon in the path, so make sure we never use it.
4699 set dummy $ac_cv_prog_BUILD_CXX
4700 shift
4701 if test $# != 0; then
4702 # We chose a different compiler from the bogus one.
4703 # However, it has the same basename, so the bogon will be chosen
4704 # first if we set BUILD_CXX to just the basename; use the full file name.
4705 shift
4706 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4707 fi
4708fi
4709fi
4710fi
4711BUILD_CXX=$ac_cv_prog_BUILD_CXX
4712if test -n "$BUILD_CXX"; then
4713 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4714echo "${ECHO_T}$BUILD_CXX" >&6; }
4715else
4716 { echo "$as_me:$LINENO: result: no" >&5
4717echo "${ECHO_T}no" >&6; }
4718fi
4719
4720
4721 fi
4722 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004723else
4724 LLVM_CROSS_COMPILING=0
4725
4726fi
4727
Nick Lewycky5b28f862009-04-10 05:18:27 +00004728if 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 +00004729 cvsbuild="yes"
4730 optimize="no"
4731 CVSBUILD=CVSBUILD=1
4732
4733else
4734 cvsbuild="no"
4735 optimize="yes"
4736fi
4737
4738
4739# Check whether --enable-optimized was given.
4740if test "${enable_optimized+set}" = set; then
4741 enableval=$enable_optimized;
4742else
4743 enableval=$optimize
4744fi
4745
4746if test ${enableval} = "no" ; then
4747 ENABLE_OPTIMIZED=
4748
4749else
4750 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4751
4752fi
4753
David Greene2a5a12c2009-04-17 14:50:39 +00004754# Check whether --enable-profiling was given.
4755if test "${enable_profiling+set}" = set; then
4756 enableval=$enable_profiling;
4757else
4758 enableval="no"
4759fi
4760
4761if test ${enableval} = "no" ; then
4762 ENABLE_PROFILING=
4763
4764else
4765 ENABLE_PROFILING=ENABLE_PROFILING=1
4766
4767fi
4768
Reid Spencera773bd52006-08-04 18:18:08 +00004769# Check whether --enable-assertions was given.
4770if test "${enable_assertions+set}" = set; then
4771 enableval=$enable_assertions;
4772else
4773 enableval="yes"
4774fi
4775
4776if test ${enableval} = "yes" ; then
4777 DISABLE_ASSERTIONS=
4778
4779else
4780 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4781
4782fi
4783
David Greenea696d242007-06-28 19:36:08 +00004784# Check whether --enable-expensive-checks was given.
4785if test "${enable_expensive_checks+set}" = set; then
4786 enableval=$enable_expensive_checks;
4787else
4788 enableval="no"
4789fi
4790
4791if test ${enableval} = "yes" ; then
4792 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4793
4794 EXPENSIVE_CHECKS=yes
4795
4796else
4797 ENABLE_EXPENSIVE_CHECKS=
4798
4799 EXPENSIVE_CHECKS=no
4800
4801fi
4802
Reid Spencer8b2e1412006-11-17 03:32:33 +00004803# Check whether --enable-debug-runtime was given.
4804if test "${enable_debug_runtime+set}" = set; then
4805 enableval=$enable_debug_runtime;
4806else
4807 enableval=no
4808fi
4809
4810if test ${enableval} = "no" ; then
4811 DEBUG_RUNTIME=
4812
4813else
4814 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4815
4816fi
4817
Reid Spencera773bd52006-08-04 18:18:08 +00004818# Check whether --enable-jit was given.
4819if test "${enable_jit+set}" = set; then
4820 enableval=$enable_jit;
4821else
4822 enableval=default
4823fi
4824
4825if test ${enableval} = "no"
4826then
4827 JIT=
4828
4829else
4830 case "$llvm_cv_target_arch" in
4831 x86) TARGET_HAS_JIT=1
4832 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004833 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004834 ;;
4835 PowerPC) TARGET_HAS_JIT=1
4836 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004837 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004838 ;;
4839 Alpha) TARGET_HAS_JIT=1
4840 ;;
4841 IA64) TARGET_HAS_JIT=0
4842 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004843 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004844 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004845 Mips) TARGET_HAS_JIT=0
4846 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004847 PIC16) TARGET_HAS_JIT=0
4848 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004849 XCore) TARGET_HAS_JIT=0
4850 ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004851 MSP430) TARGET_HAS_JIT=0
4852 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004853 *) TARGET_HAS_JIT=0
4854 ;;
4855 esac
4856fi
4857
4858# Check whether --enable-doxygen was given.
4859if test "${enable_doxygen+set}" = set; then
4860 enableval=$enable_doxygen;
4861else
4862 enableval=default
4863fi
4864
4865case "$enableval" in
4866 yes) ENABLE_DOXYGEN=1
4867 ;;
4868 no) ENABLE_DOXYGEN=0
4869 ;;
4870 default) ENABLE_DOXYGEN=0
4871 ;;
4872 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4873echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4874 { (exit 1); exit 1; }; } ;;
4875esac
4876
4877# Check whether --enable-threads was given.
4878if test "${enable_threads+set}" = set; then
4879 enableval=$enable_threads;
4880else
Reid Spencer65c5d752006-11-05 17:08:18 +00004881 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004882fi
4883
4884case "$enableval" in
4885 yes) ENABLE_THREADS=1
4886 ;;
4887 no) ENABLE_THREADS=0
4888 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004889 default) ENABLE_THREADS=1
4890 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004891 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4892echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4893 { (exit 1); exit 1; }; } ;;
4894esac
4895
Owen Andersona8603702009-05-19 22:18:56 +00004896cat >>confdefs.h <<_ACEOF
4897#define ENABLE_THREADS $ENABLE_THREADS
4898_ACEOF
4899
4900
Reid Spencer89b0d992006-12-16 22:07:52 +00004901# Check whether --enable-pic was given.
4902if test "${enable_pic+set}" = set; then
4903 enableval=$enable_pic;
4904else
4905 enableval=default
4906fi
4907
4908case "$enableval" in
4909 yes) ENABLE_PIC=1
4910 ;;
4911 no) ENABLE_PIC=0
4912 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004913 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004914 ;;
4915 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4916echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4917 { (exit 1); exit 1; }; } ;;
4918esac
4919
4920cat >>confdefs.h <<_ACEOF
4921#define ENABLE_PIC $ENABLE_PIC
4922_ACEOF
4923
4924
Reid Spencera773bd52006-08-04 18:18:08 +00004925TARGETS_TO_BUILD=""
4926# Check whether --enable-targets was given.
4927if test "${enable_targets+set}" = set; then
4928 enableval=$enable_targets;
4929else
4930 enableval=all
4931fi
4932
4933case "$enableval" in
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004934 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004935 host-only)
4936 case "$llvm_cv_target_arch" in
4937 x86) TARGETS_TO_BUILD="X86" ;;
4938 x86_64) TARGETS_TO_BUILD="X86" ;;
4939 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4940 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4941 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4942 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004943 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004944 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004945 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004946 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004947 XCore) TARGETS_TO_BUILD="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004948 MSP430) TARGETS_TO_BUILD="MSP430" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004949 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4950echo "$as_me: error: Can not set target to build" >&2;}
4951 { (exit 1); exit 1; }; } ;;
4952 esac
4953 ;;
4954 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4955 case "$a_target" in
4956 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4957 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4958 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4959 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4960 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4961 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004962 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004963 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004964 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004965 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004966 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004967 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004968 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4969 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004970 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004971 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4972echo "$as_me: error: Unrecognized target $a_target" >&2;}
4973 { (exit 1); exit 1; }; } ;;
4974 esac
4975 done
4976 ;;
4977esac
Reid Spencera773bd52006-08-04 18:18:08 +00004978TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4979
4980
Douglas Gregor0711c302009-06-17 00:43:20 +00004981# Determine whether we are building LLVM support for the native architecture.
4982# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4983for a_target in $TARGETS_TO_BUILD; do
4984 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004985 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004986
4987cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004988#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004989_ACEOF
4990
4991 fi
4992done
4993
Douglas Gregor1555a232009-06-16 20:12:29 +00004994# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4995# Targets.def and AsmPrinters.def.
4996LLVM_ENUM_TARGETS=""
4997LLVM_ENUM_ASM_PRINTERS=""
4998for target_to_build in $TARGETS_TO_BUILD; do
4999 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5000 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5001 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5002 fi
5003done
5004
5005
5006
Reid Spencer65c5d752006-11-05 17:08:18 +00005007# Check whether --enable-cbe-printf-a was given.
5008if test "${enable_cbe_printf_a+set}" = set; then
5009 enableval=$enable_cbe_printf_a;
5010else
5011 enableval=default
5012fi
5013
5014case "$enableval" in
5015 yes) ENABLE_CBE_PRINTF_A=1
5016 ;;
5017 no) ENABLE_CBE_PRINTF_A=0
5018 ;;
5019 default) ENABLE_CBE_PRINTF_A=1
5020 ;;
5021 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5022echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5023 { (exit 1); exit 1; }; } ;;
5024esac
5025
5026cat >>confdefs.h <<_ACEOF
5027#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5028_ACEOF
5029
5030
Reid Spencera773bd52006-08-04 18:18:08 +00005031
5032# Check whether --with-llvmgccdir was given.
5033if test "${with_llvmgccdir+set}" = set; then
5034 withval=$with_llvmgccdir;
5035else
5036 withval=default
5037fi
5038
5039case "$withval" in
5040 default) WITH_LLVMGCCDIR=default ;;
5041 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5042 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5043echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5044 { (exit 1); exit 1; }; } ;;
5045esac
5046
5047
Devang Patel5d28b882007-12-04 22:54:47 +00005048# Check whether --with-llvmgcc was given.
5049if test "${with_llvmgcc+set}" = set; then
5050 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5051 WITH_LLVMGCCDIR=""
5052fi
5053
5054
5055
5056# Check whether --with-llvmgxx was given.
5057if test "${with_llvmgxx+set}" = set; then
5058 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5059 WITH_LLVMGCCDIR=""
5060fi
5061
Douglas Gregor01746742009-05-11 18:05:52 +00005062
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005063if test -n "$LLVMGCC"; then
5064 LLVMGCCCOMMAND="$LLVMGCC"
5065fi
5066
5067if test -n "$LLVMGXX"; then
5068 LLVMGXXCOMMAND="$LLVMGXX"
5069fi
Devang Patel5d28b882007-12-04 22:54:47 +00005070
5071if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5072 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5073echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5074 { (exit 1); exit 1; }; };
5075fi
5076
5077if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5078 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5079echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5080 { (exit 1); exit 1; }; };
5081fi
5082
5083
Reid Spencera773bd52006-08-04 18:18:08 +00005084# Check whether --with-extra-options was given.
5085if test "${with_extra_options+set}" = set; then
5086 withval=$with_extra_options;
5087else
5088 withval=default
5089fi
5090
5091case "$withval" in
5092 default) EXTRA_OPTIONS= ;;
5093 *) EXTRA_OPTIONS=$withval ;;
5094esac
5095EXTRA_OPTIONS=$EXTRA_OPTIONS
5096
5097
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005098# Check whether --enable-bindings was given.
5099if test "${enable_bindings+set}" = set; then
5100 enableval=$enable_bindings;
5101else
5102 enableval=default
5103fi
5104
5105BINDINGS_TO_BUILD=""
5106case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005107 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005108 all ) BINDINGS_TO_BUILD="ocaml" ;;
5109 none | no) BINDINGS_TO_BUILD="" ;;
5110 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5111 case "$a_binding" in
5112 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5113 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5114echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5115 { (exit 1); exit 1; }; } ;;
5116 esac
5117 done
5118 ;;
5119esac
5120
Reid Spencera773bd52006-08-04 18:18:08 +00005121
Gordon Henriksenf0915682007-10-02 16:42:22 +00005122# Check whether --with-ocaml-libdir was given.
5123if test "${with_ocaml_libdir+set}" = set; then
5124 withval=$with_ocaml_libdir;
5125else
5126 withval=auto
5127fi
5128
5129case "$withval" in
5130 auto) with_ocaml_libdir="$withval" ;;
5131 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5132 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5133echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5134 { (exit 1); exit 1; }; } ;;
5135esac
5136
5137
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005138# Check whether --with-binutils-include was given.
5139if test "${with_binutils_include+set}" = set; then
5140 withval=$with_binutils_include;
5141else
5142 withval=default
5143fi
5144
5145case "$withval" in
5146 default) WITH_BINUTILS_INCDIR=default ;;
5147 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5148 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5149echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5150 { (exit 1); exit 1; }; } ;;
5151esac
5152if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5153 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5154
5155 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5156 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5157 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5158echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5159 { (exit 1); exit 1; }; };
5160 fi
5161fi
5162
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005163# Check whether --enable-libffi was given.
5164if test "${enable_libffi+set}" = set; then
5165 enableval=$enable_libffi;
5166else
5167 enableval=yes
5168fi
5169
5170case "$enableval" in
5171 yes) llvm_cv_enable_libffi="yes" ;;
5172 no) llvm_cv_enable_libffi="no" ;;
5173 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5174echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5175 { (exit 1); exit 1; }; } ;;
5176esac
5177
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005178if test "$llvm_cv_os_type" = "Win32" ; then
5179 llvmc_dynamic="yes"
5180else
5181 llvmc_dynamic="no"
5182fi
5183
5184# Check whether --enable-llvmc-dynamic was given.
5185if test "${enable_llvmc_dynamic+set}" = set; then
5186 enableval=$enable_llvmc_dynamic;
5187else
5188 enableval=$llvmc_dynamic
5189fi
5190
5191if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5192 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5193
5194else
5195 ENABLE_LLVMC_DYNAMIC=
5196
5197fi
5198
5199# Check whether --enable-llvmc-dynamic-plugins was given.
5200if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5201 enableval=$enable_llvmc_dynamic_plugins;
5202else
5203 enableval=yes
5204fi
5205
5206if test ${enableval} = "yes" ; then
5207 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5208
5209else
5210 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5211
5212fi
5213
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005214
Reid Spencera773bd52006-08-04 18:18:08 +00005215ac_ext=c
5216ac_cpp='$CPP $CPPFLAGS'
5217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219ac_compiler_gnu=$ac_cv_c_compiler_gnu
5220{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5221echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5222# On Suns, sometimes $CPP names a directory.
5223if test -n "$CPP" && test -d "$CPP"; then
5224 CPP=
5225fi
5226if test -z "$CPP"; then
5227 if test "${ac_cv_prog_CPP+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229else
5230 # Double quotes because CPP needs to be expanded
5231 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5232 do
5233 ac_preproc_ok=false
5234for ac_c_preproc_warn_flag in '' yes
5235do
5236 # Use a header file that comes with gcc, so configuring glibc
5237 # with a fresh cross-compiler works.
5238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5239 # <limits.h> exists even on freestanding compilers.
5240 # On the NeXT, cc -E runs the code through the compiler's parser,
5241 # not just through cpp. "Syntax error" is here to catch this case.
5242 cat >conftest.$ac_ext <<_ACEOF
5243/* confdefs.h. */
5244_ACEOF
5245cat confdefs.h >>conftest.$ac_ext
5246cat >>conftest.$ac_ext <<_ACEOF
5247/* end confdefs.h. */
5248#ifdef __STDC__
5249# include <limits.h>
5250#else
5251# include <assert.h>
5252#endif
5253 Syntax error
5254_ACEOF
5255if { (ac_try="$ac_cpp conftest.$ac_ext"
5256case "(($ac_try" in
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5259esac
5260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5262 ac_status=$?
5263 grep -v '^ *+' conftest.er1 >conftest.err
5264 rm -f conftest.er1
5265 cat conftest.err >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005267 (exit $ac_status); } >/dev/null; then
5268 if test -s conftest.err; then
5269 ac_cpp_err=$ac_c_preproc_warn_flag
5270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5271 else
5272 ac_cpp_err=
5273 fi
5274else
5275 ac_cpp_err=yes
5276fi
5277if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005278 :
5279else
5280 echo "$as_me: failed program was:" >&5
5281sed 's/^/| /' conftest.$ac_ext >&5
5282
5283 # Broken: fails on valid input.
5284continue
5285fi
5286
5287rm -f conftest.err conftest.$ac_ext
5288
5289 # OK, works on sane cases. Now check whether nonexistent headers
5290 # can be detected and how.
5291 cat >conftest.$ac_ext <<_ACEOF
5292/* confdefs.h. */
5293_ACEOF
5294cat confdefs.h >>conftest.$ac_ext
5295cat >>conftest.$ac_ext <<_ACEOF
5296/* end confdefs.h. */
5297#include <ac_nonexistent.h>
5298_ACEOF
5299if { (ac_try="$ac_cpp conftest.$ac_ext"
5300case "(($ac_try" in
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5303esac
5304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5306 ac_status=$?
5307 grep -v '^ *+' conftest.er1 >conftest.err
5308 rm -f conftest.er1
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005311 (exit $ac_status); } >/dev/null; then
5312 if test -s conftest.err; then
5313 ac_cpp_err=$ac_c_preproc_warn_flag
5314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5315 else
5316 ac_cpp_err=
5317 fi
5318else
5319 ac_cpp_err=yes
5320fi
5321if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005322 # Broken: success on invalid input.
5323continue
5324else
5325 echo "$as_me: failed program was:" >&5
5326sed 's/^/| /' conftest.$ac_ext >&5
5327
5328 # Passes both tests.
5329ac_preproc_ok=:
5330break
5331fi
5332
5333rm -f conftest.err conftest.$ac_ext
5334
5335done
5336# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5337rm -f conftest.err conftest.$ac_ext
5338if $ac_preproc_ok; then
5339 break
5340fi
5341
5342 done
5343 ac_cv_prog_CPP=$CPP
5344
5345fi
5346 CPP=$ac_cv_prog_CPP
5347else
5348 ac_cv_prog_CPP=$CPP
5349fi
5350{ echo "$as_me:$LINENO: result: $CPP" >&5
5351echo "${ECHO_T}$CPP" >&6; }
5352ac_preproc_ok=false
5353for ac_c_preproc_warn_flag in '' yes
5354do
5355 # Use a header file that comes with gcc, so configuring glibc
5356 # with a fresh cross-compiler works.
5357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5358 # <limits.h> exists even on freestanding compilers.
5359 # On the NeXT, cc -E runs the code through the compiler's parser,
5360 # not just through cpp. "Syntax error" is here to catch this case.
5361 cat >conftest.$ac_ext <<_ACEOF
5362/* confdefs.h. */
5363_ACEOF
5364cat confdefs.h >>conftest.$ac_ext
5365cat >>conftest.$ac_ext <<_ACEOF
5366/* end confdefs.h. */
5367#ifdef __STDC__
5368# include <limits.h>
5369#else
5370# include <assert.h>
5371#endif
5372 Syntax error
5373_ACEOF
5374if { (ac_try="$ac_cpp conftest.$ac_ext"
5375case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5378esac
5379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005386 (exit $ac_status); } >/dev/null; then
5387 if test -s conftest.err; then
5388 ac_cpp_err=$ac_c_preproc_warn_flag
5389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5390 else
5391 ac_cpp_err=
5392 fi
5393else
5394 ac_cpp_err=yes
5395fi
5396if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005397 :
5398else
5399 echo "$as_me: failed program was:" >&5
5400sed 's/^/| /' conftest.$ac_ext >&5
5401
5402 # Broken: fails on valid input.
5403continue
5404fi
5405
5406rm -f conftest.err conftest.$ac_ext
5407
5408 # OK, works on sane cases. Now check whether nonexistent headers
5409 # can be detected and how.
5410 cat >conftest.$ac_ext <<_ACEOF
5411/* confdefs.h. */
5412_ACEOF
5413cat confdefs.h >>conftest.$ac_ext
5414cat >>conftest.$ac_ext <<_ACEOF
5415/* end confdefs.h. */
5416#include <ac_nonexistent.h>
5417_ACEOF
5418if { (ac_try="$ac_cpp conftest.$ac_ext"
5419case "(($ac_try" in
5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5422esac
5423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5425 ac_status=$?
5426 grep -v '^ *+' conftest.er1 >conftest.err
5427 rm -f conftest.er1
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005430 (exit $ac_status); } >/dev/null; then
5431 if test -s conftest.err; then
5432 ac_cpp_err=$ac_c_preproc_warn_flag
5433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5434 else
5435 ac_cpp_err=
5436 fi
5437else
5438 ac_cpp_err=yes
5439fi
5440if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005441 # Broken: success on invalid input.
5442continue
5443else
5444 echo "$as_me: failed program was:" >&5
5445sed 's/^/| /' conftest.$ac_ext >&5
5446
5447 # Passes both tests.
5448ac_preproc_ok=:
5449break
5450fi
5451
5452rm -f conftest.err conftest.$ac_ext
5453
5454done
5455# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5456rm -f conftest.err conftest.$ac_ext
5457if $ac_preproc_ok; then
5458 :
5459else
5460 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5461See \`config.log' for more details." >&5
5462echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5463See \`config.log' for more details." >&2;}
5464 { (exit 1); exit 1; }; }
5465fi
5466
5467ac_ext=c
5468ac_cpp='$CPP $CPPFLAGS'
5469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471ac_compiler_gnu=$ac_cv_c_compiler_gnu
5472
5473ac_ext=c
5474ac_cpp='$CPP $CPPFLAGS'
5475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5477ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478if test -n "$ac_tool_prefix"; then
5479 for ac_prog in gcc
5480 do
5481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5482set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5485if test "${ac_cv_prog_CC+set}" = set; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5487else
5488 if test -n "$CC"; then
5489 ac_cv_prog_CC="$CC" # Let the user override the test.
5490else
5491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492for as_dir in $PATH
5493do
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005497 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 +00005498 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 break 2
5501 fi
5502done
5503done
5504IFS=$as_save_IFS
5505
5506fi
5507fi
5508CC=$ac_cv_prog_CC
5509if test -n "$CC"; then
5510 { echo "$as_me:$LINENO: result: $CC" >&5
5511echo "${ECHO_T}$CC" >&6; }
5512else
5513 { echo "$as_me:$LINENO: result: no" >&5
5514echo "${ECHO_T}no" >&6; }
5515fi
5516
5517
5518 test -n "$CC" && break
5519 done
5520fi
5521if test -z "$CC"; then
5522 ac_ct_CC=$CC
5523 for ac_prog in gcc
5524do
5525 # Extract the first word of "$ac_prog", so it can be a program name with args.
5526set dummy $ac_prog; ac_word=$2
5527{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5529if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5531else
5532 if test -n "$ac_ct_CC"; then
5533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5534else
5535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536for as_dir in $PATH
5537do
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005541 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 +00005542 ac_cv_prog_ac_ct_CC="$ac_prog"
5543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 break 2
5545 fi
5546done
5547done
5548IFS=$as_save_IFS
5549
5550fi
5551fi
5552ac_ct_CC=$ac_cv_prog_ac_ct_CC
5553if test -n "$ac_ct_CC"; then
5554 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5555echo "${ECHO_T}$ac_ct_CC" >&6; }
5556else
5557 { echo "$as_me:$LINENO: result: no" >&5
5558echo "${ECHO_T}no" >&6; }
5559fi
5560
5561
5562 test -n "$ac_ct_CC" && break
5563done
5564
5565 if test "x$ac_ct_CC" = x; then
5566 CC=""
5567 else
5568 case $cross_compiling:$ac_tool_warned in
5569yes:)
5570{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5571whose name does not start with the host triplet. If you think this
5572configuration is useful to you, please write to autoconf@gnu.org." >&5
5573echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5574whose name does not start with the host triplet. If you think this
5575configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5576ac_tool_warned=yes ;;
5577esac
5578 CC=$ac_ct_CC
5579 fi
5580fi
5581
5582
5583test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5584See \`config.log' for more details." >&5
5585echo "$as_me: error: no acceptable C compiler found in \$PATH
5586See \`config.log' for more details." >&2;}
5587 { (exit 1); exit 1; }; }
5588
5589# Provide some information about the compiler.
5590echo "$as_me:$LINENO: checking for C compiler version" >&5
5591ac_compiler=`set X $ac_compile; echo $2`
5592{ (ac_try="$ac_compiler --version >&5"
5593case "(($ac_try" in
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5596esac
5597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_compiler --version >&5") 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }
5602{ (ac_try="$ac_compiler -v >&5"
5603case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5606esac
5607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_compiler -v >&5") 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }
5612{ (ac_try="$ac_compiler -V >&5"
5613case "(($ac_try" in
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5616esac
5617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_compiler -V >&5") 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }
5622
5623{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5624echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5625if test "${ac_cv_c_compiler_gnu+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5627else
5628 cat >conftest.$ac_ext <<_ACEOF
5629/* confdefs.h. */
5630_ACEOF
5631cat confdefs.h >>conftest.$ac_ext
5632cat >>conftest.$ac_ext <<_ACEOF
5633/* end confdefs.h. */
5634
5635int
5636main ()
5637{
5638#ifndef __GNUC__
5639 choke me
5640#endif
5641
5642 ;
5643 return 0;
5644}
5645_ACEOF
5646rm -f conftest.$ac_objext
5647if { (ac_try="$ac_compile"
5648case "(($ac_try" in
5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5651esac
5652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653 (eval "$ac_compile") 2>conftest.er1
5654 ac_status=$?
5655 grep -v '^ *+' conftest.er1 >conftest.err
5656 rm -f conftest.er1
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005659 (exit $ac_status); } &&
5660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5661 { (case "(($ac_try" in
5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5664esac
5665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5666 (eval "$ac_try") 2>&5
5667 ac_status=$?
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; } &&
5670 { ac_try='test -s conftest.$ac_objext'
5671 { (case "(($ac_try" in
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5674esac
5675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_try") 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005680 ac_compiler_gnu=yes
5681else
5682 echo "$as_me: failed program was:" >&5
5683sed 's/^/| /' conftest.$ac_ext >&5
5684
5685 ac_compiler_gnu=no
5686fi
5687
5688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689ac_cv_c_compiler_gnu=$ac_compiler_gnu
5690
5691fi
5692{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5693echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5694GCC=`test $ac_compiler_gnu = yes && echo yes`
5695ac_test_CFLAGS=${CFLAGS+set}
5696ac_save_CFLAGS=$CFLAGS
5697{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5698echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5699if test "${ac_cv_prog_cc_g+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702 ac_save_c_werror_flag=$ac_c_werror_flag
5703 ac_c_werror_flag=yes
5704 ac_cv_prog_cc_g=no
5705 CFLAGS="-g"
5706 cat >conftest.$ac_ext <<_ACEOF
5707/* confdefs.h. */
5708_ACEOF
5709cat confdefs.h >>conftest.$ac_ext
5710cat >>conftest.$ac_ext <<_ACEOF
5711/* end confdefs.h. */
5712
5713int
5714main ()
5715{
5716
5717 ;
5718 return 0;
5719}
5720_ACEOF
5721rm -f conftest.$ac_objext
5722if { (ac_try="$ac_compile"
5723case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726esac
5727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_compile") 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005734 (exit $ac_status); } &&
5735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5736 { (case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739esac
5740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_try") 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; } &&
5745 { ac_try='test -s conftest.$ac_objext'
5746 { (case "(($ac_try" in
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5749esac
5750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_try") 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005755 ac_cv_prog_cc_g=yes
5756else
5757 echo "$as_me: failed program was:" >&5
5758sed 's/^/| /' conftest.$ac_ext >&5
5759
5760 CFLAGS=""
5761 cat >conftest.$ac_ext <<_ACEOF
5762/* confdefs.h. */
5763_ACEOF
5764cat confdefs.h >>conftest.$ac_ext
5765cat >>conftest.$ac_ext <<_ACEOF
5766/* end confdefs.h. */
5767
5768int
5769main ()
5770{
5771
5772 ;
5773 return 0;
5774}
5775_ACEOF
5776rm -f conftest.$ac_objext
5777if { (ac_try="$ac_compile"
5778case "(($ac_try" in
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5781esac
5782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_compile") 2>conftest.er1
5784 ac_status=$?
5785 grep -v '^ *+' conftest.er1 >conftest.err
5786 rm -f conftest.er1
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005789 (exit $ac_status); } &&
5790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5791 { (case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5794esac
5795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_try") 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; } &&
5800 { ac_try='test -s conftest.$ac_objext'
5801 { (case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804esac
5805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_try") 2>&5
5807 ac_status=$?
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005810 :
5811else
5812 echo "$as_me: failed program was:" >&5
5813sed 's/^/| /' conftest.$ac_ext >&5
5814
5815 ac_c_werror_flag=$ac_save_c_werror_flag
5816 CFLAGS="-g"
5817 cat >conftest.$ac_ext <<_ACEOF
5818/* confdefs.h. */
5819_ACEOF
5820cat confdefs.h >>conftest.$ac_ext
5821cat >>conftest.$ac_ext <<_ACEOF
5822/* end confdefs.h. */
5823
5824int
5825main ()
5826{
5827
5828 ;
5829 return 0;
5830}
5831_ACEOF
5832rm -f conftest.$ac_objext
5833if { (ac_try="$ac_compile"
5834case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837esac
5838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839 (eval "$ac_compile") 2>conftest.er1
5840 ac_status=$?
5841 grep -v '^ *+' conftest.er1 >conftest.err
5842 rm -f conftest.er1
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005845 (exit $ac_status); } &&
5846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5847 { (case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850esac
5851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_try") 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; } &&
5856 { ac_try='test -s conftest.$ac_objext'
5857 { (case "(($ac_try" in
5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5860esac
5861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5862 (eval "$ac_try") 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005866 ac_cv_prog_cc_g=yes
5867else
5868 echo "$as_me: failed program was:" >&5
5869sed 's/^/| /' conftest.$ac_ext >&5
5870
5871
5872fi
5873
5874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875fi
5876
5877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878fi
5879
5880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881 ac_c_werror_flag=$ac_save_c_werror_flag
5882fi
5883{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5884echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5885if test "$ac_test_CFLAGS" = set; then
5886 CFLAGS=$ac_save_CFLAGS
5887elif test $ac_cv_prog_cc_g = yes; then
5888 if test "$GCC" = yes; then
5889 CFLAGS="-g -O2"
5890 else
5891 CFLAGS="-g"
5892 fi
5893else
5894 if test "$GCC" = yes; then
5895 CFLAGS="-O2"
5896 else
5897 CFLAGS=
5898 fi
5899fi
5900{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5901echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5902if test "${ac_cv_prog_cc_c89+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5904else
5905 ac_cv_prog_cc_c89=no
5906ac_save_CC=$CC
5907cat >conftest.$ac_ext <<_ACEOF
5908/* confdefs.h. */
5909_ACEOF
5910cat confdefs.h >>conftest.$ac_ext
5911cat >>conftest.$ac_ext <<_ACEOF
5912/* end confdefs.h. */
5913#include <stdarg.h>
5914#include <stdio.h>
5915#include <sys/types.h>
5916#include <sys/stat.h>
5917/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5918struct buf { int x; };
5919FILE * (*rcsopen) (struct buf *, struct stat *, int);
5920static char *e (p, i)
5921 char **p;
5922 int i;
5923{
5924 return p[i];
5925}
5926static char *f (char * (*g) (char **, int), char **p, ...)
5927{
5928 char *s;
5929 va_list v;
5930 va_start (v,p);
5931 s = g (p, va_arg (v,int));
5932 va_end (v);
5933 return s;
5934}
5935
5936/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5937 function prototypes and stuff, but not '\xHH' hex character constants.
5938 These don't provoke an error unfortunately, instead are silently treated
5939 as 'x'. The following induces an error, until -std is added to get
5940 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5941 array size at least. It's necessary to write '\x00'==0 to get something
5942 that's true only with -std. */
5943int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5944
5945/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5946 inside strings and character constants. */
5947#define FOO(x) 'x'
5948int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5949
5950int test (int i, double x);
5951struct s1 {int (*f) (int a);};
5952struct s2 {int (*f) (double a);};
5953int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5954int argc;
5955char **argv;
5956int
5957main ()
5958{
5959return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5960 ;
5961 return 0;
5962}
5963_ACEOF
5964for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5965 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5966do
5967 CC="$ac_save_CC $ac_arg"
5968 rm -f conftest.$ac_objext
5969if { (ac_try="$ac_compile"
5970case "(($ac_try" in
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5973esac
5974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_compile") 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005981 (exit $ac_status); } &&
5982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5983 { (case "(($ac_try" in
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5986esac
5987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988 (eval "$ac_try") 2>&5
5989 ac_status=$?
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; } &&
5992 { ac_try='test -s conftest.$ac_objext'
5993 { (case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996esac
5997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_try") 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006002 ac_cv_prog_cc_c89=$ac_arg
6003else
6004 echo "$as_me: failed program was:" >&5
6005sed 's/^/| /' conftest.$ac_ext >&5
6006
6007
6008fi
6009
6010rm -f core conftest.err conftest.$ac_objext
6011 test "x$ac_cv_prog_cc_c89" != "xno" && break
6012done
6013rm -f conftest.$ac_ext
6014CC=$ac_save_CC
6015
6016fi
6017# AC_CACHE_VAL
6018case "x$ac_cv_prog_cc_c89" in
6019 x)
6020 { echo "$as_me:$LINENO: result: none needed" >&5
6021echo "${ECHO_T}none needed" >&6; } ;;
6022 xno)
6023 { echo "$as_me:$LINENO: result: unsupported" >&5
6024echo "${ECHO_T}unsupported" >&6; } ;;
6025 *)
6026 CC="$CC $ac_cv_prog_cc_c89"
6027 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6028echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6029esac
6030
6031
6032ac_ext=c
6033ac_cpp='$CPP $CPPFLAGS'
6034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6036ac_compiler_gnu=$ac_cv_c_compiler_gnu
6037
6038ac_ext=cpp
6039ac_cpp='$CXXCPP $CPPFLAGS'
6040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6043if test -z "$CXX"; then
6044 if test -n "$CCC"; then
6045 CXX=$CCC
6046 else
6047 if test -n "$ac_tool_prefix"; then
6048 for ac_prog in g++
6049 do
6050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6051set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054if test "${ac_cv_prog_CXX+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056else
6057 if test -n "$CXX"; then
6058 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6059else
6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006066 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 +00006067 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071done
6072done
6073IFS=$as_save_IFS
6074
6075fi
6076fi
6077CXX=$ac_cv_prog_CXX
6078if test -n "$CXX"; then
6079 { echo "$as_me:$LINENO: result: $CXX" >&5
6080echo "${ECHO_T}$CXX" >&6; }
6081else
6082 { echo "$as_me:$LINENO: result: no" >&5
6083echo "${ECHO_T}no" >&6; }
6084fi
6085
6086
6087 test -n "$CXX" && break
6088 done
6089fi
6090if test -z "$CXX"; then
6091 ac_ct_CXX=$CXX
6092 for ac_prog in g++
6093do
6094 # Extract the first word of "$ac_prog", so it can be a program name with args.
6095set dummy $ac_prog; ac_word=$2
6096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100else
6101 if test -n "$ac_ct_CXX"; then
6102 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6103else
6104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105for as_dir in $PATH
6106do
6107 IFS=$as_save_IFS
6108 test -z "$as_dir" && as_dir=.
6109 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006110 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 +00006111 ac_cv_prog_ac_ct_CXX="$ac_prog"
6112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 break 2
6114 fi
6115done
6116done
6117IFS=$as_save_IFS
6118
6119fi
6120fi
6121ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6122if test -n "$ac_ct_CXX"; then
6123 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6124echo "${ECHO_T}$ac_ct_CXX" >&6; }
6125else
6126 { echo "$as_me:$LINENO: result: no" >&5
6127echo "${ECHO_T}no" >&6; }
6128fi
6129
6130
6131 test -n "$ac_ct_CXX" && break
6132done
6133
6134 if test "x$ac_ct_CXX" = x; then
6135 CXX="g++"
6136 else
6137 case $cross_compiling:$ac_tool_warned in
6138yes:)
6139{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6140whose name does not start with the host triplet. If you think this
6141configuration is useful to you, please write to autoconf@gnu.org." >&5
6142echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6143whose name does not start with the host triplet. If you think this
6144configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6145ac_tool_warned=yes ;;
6146esac
6147 CXX=$ac_ct_CXX
6148 fi
6149fi
6150
6151 fi
6152fi
6153# Provide some information about the compiler.
6154echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6155ac_compiler=`set X $ac_compile; echo $2`
6156{ (ac_try="$ac_compiler --version >&5"
6157case "(($ac_try" in
6158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159 *) ac_try_echo=$ac_try;;
6160esac
6161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6162 (eval "$ac_compiler --version >&5") 2>&5
6163 ac_status=$?
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }
6166{ (ac_try="$ac_compiler -v >&5"
6167case "(($ac_try" in
6168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169 *) ac_try_echo=$ac_try;;
6170esac
6171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172 (eval "$ac_compiler -v >&5") 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }
6176{ (ac_try="$ac_compiler -V >&5"
6177case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6180esac
6181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_compiler -V >&5") 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }
6186
6187{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6188echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6189if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6191else
6192 cat >conftest.$ac_ext <<_ACEOF
6193/* confdefs.h. */
6194_ACEOF
6195cat confdefs.h >>conftest.$ac_ext
6196cat >>conftest.$ac_ext <<_ACEOF
6197/* end confdefs.h. */
6198
6199int
6200main ()
6201{
6202#ifndef __GNUC__
6203 choke me
6204#endif
6205
6206 ;
6207 return 0;
6208}
6209_ACEOF
6210rm -f conftest.$ac_objext
6211if { (ac_try="$ac_compile"
6212case "(($ac_try" in
6213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6215esac
6216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217 (eval "$ac_compile") 2>conftest.er1
6218 ac_status=$?
6219 grep -v '^ *+' conftest.er1 >conftest.err
6220 rm -f conftest.er1
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006223 (exit $ac_status); } &&
6224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6225 { (case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6228esac
6229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_try") 2>&5
6231 ac_status=$?
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; } &&
6234 { ac_try='test -s conftest.$ac_objext'
6235 { (case "(($ac_try" in
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6238esac
6239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240 (eval "$ac_try") 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006244 ac_compiler_gnu=yes
6245else
6246 echo "$as_me: failed program was:" >&5
6247sed 's/^/| /' conftest.$ac_ext >&5
6248
6249 ac_compiler_gnu=no
6250fi
6251
6252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6253ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6254
6255fi
6256{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6257echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6258GXX=`test $ac_compiler_gnu = yes && echo yes`
6259ac_test_CXXFLAGS=${CXXFLAGS+set}
6260ac_save_CXXFLAGS=$CXXFLAGS
6261{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6262echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6263if test "${ac_cv_prog_cxx_g+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265else
6266 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6267 ac_cxx_werror_flag=yes
6268 ac_cv_prog_cxx_g=no
6269 CXXFLAGS="-g"
6270 cat >conftest.$ac_ext <<_ACEOF
6271/* confdefs.h. */
6272_ACEOF
6273cat confdefs.h >>conftest.$ac_ext
6274cat >>conftest.$ac_ext <<_ACEOF
6275/* end confdefs.h. */
6276
6277int
6278main ()
6279{
6280
6281 ;
6282 return 0;
6283}
6284_ACEOF
6285rm -f conftest.$ac_objext
6286if { (ac_try="$ac_compile"
6287case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290esac
6291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_compile") 2>conftest.er1
6293 ac_status=$?
6294 grep -v '^ *+' conftest.er1 >conftest.err
6295 rm -f conftest.er1
6296 cat conftest.err >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006298 (exit $ac_status); } &&
6299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6300 { (case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303esac
6304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_try") 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; } &&
6309 { ac_try='test -s conftest.$ac_objext'
6310 { (case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313esac
6314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_try") 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006319 ac_cv_prog_cxx_g=yes
6320else
6321 echo "$as_me: failed program was:" >&5
6322sed 's/^/| /' conftest.$ac_ext >&5
6323
6324 CXXFLAGS=""
6325 cat >conftest.$ac_ext <<_ACEOF
6326/* confdefs.h. */
6327_ACEOF
6328cat confdefs.h >>conftest.$ac_ext
6329cat >>conftest.$ac_ext <<_ACEOF
6330/* end confdefs.h. */
6331
6332int
6333main ()
6334{
6335
6336 ;
6337 return 0;
6338}
6339_ACEOF
6340rm -f conftest.$ac_objext
6341if { (ac_try="$ac_compile"
6342case "(($ac_try" in
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6345esac
6346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347 (eval "$ac_compile") 2>conftest.er1
6348 ac_status=$?
6349 grep -v '^ *+' conftest.er1 >conftest.err
6350 rm -f conftest.er1
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006353 (exit $ac_status); } &&
6354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6355 { (case "(($ac_try" in
6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357 *) ac_try_echo=$ac_try;;
6358esac
6359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_try") 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; } &&
6364 { ac_try='test -s conftest.$ac_objext'
6365 { (case "(($ac_try" in
6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367 *) ac_try_echo=$ac_try;;
6368esac
6369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370 (eval "$ac_try") 2>&5
6371 ac_status=$?
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006374 :
6375else
6376 echo "$as_me: failed program was:" >&5
6377sed 's/^/| /' conftest.$ac_ext >&5
6378
6379 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6380 CXXFLAGS="-g"
6381 cat >conftest.$ac_ext <<_ACEOF
6382/* confdefs.h. */
6383_ACEOF
6384cat confdefs.h >>conftest.$ac_ext
6385cat >>conftest.$ac_ext <<_ACEOF
6386/* end confdefs.h. */
6387
6388int
6389main ()
6390{
6391
6392 ;
6393 return 0;
6394}
6395_ACEOF
6396rm -f conftest.$ac_objext
6397if { (ac_try="$ac_compile"
6398case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401esac
6402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_compile") 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006409 (exit $ac_status); } &&
6410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6411 { (case "(($ac_try" in
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6414esac
6415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_try") 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; } &&
6420 { ac_try='test -s conftest.$ac_objext'
6421 { (case "(($ac_try" in
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6424esac
6425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_try") 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006430 ac_cv_prog_cxx_g=yes
6431else
6432 echo "$as_me: failed program was:" >&5
6433sed 's/^/| /' conftest.$ac_ext >&5
6434
6435
6436fi
6437
6438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439fi
6440
6441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442fi
6443
6444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6446fi
6447{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6448echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6449if test "$ac_test_CXXFLAGS" = set; then
6450 CXXFLAGS=$ac_save_CXXFLAGS
6451elif test $ac_cv_prog_cxx_g = yes; then
6452 if test "$GXX" = yes; then
6453 CXXFLAGS="-g -O2"
6454 else
6455 CXXFLAGS="-g"
6456 fi
6457else
6458 if test "$GXX" = yes; then
6459 CXXFLAGS="-O2"
6460 else
6461 CXXFLAGS=
6462 fi
6463fi
6464ac_ext=c
6465ac_cpp='$CPP $CPPFLAGS'
6466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6468ac_compiler_gnu=$ac_cv_c_compiler_gnu
6469
Reid Spencera773bd52006-08-04 18:18:08 +00006470
6471{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6472echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6473if test "${lt_cv_path_NM+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6475else
6476 if test -n "$NM"; then
6477 # Let the user override the test.
6478 lt_cv_path_NM="$NM"
6479else
6480 lt_nm_to_check="${ac_tool_prefix}nm"
6481 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6482 lt_nm_to_check="$lt_nm_to_check nm"
6483 fi
6484 for lt_tmp_nm in $lt_nm_to_check; do
6485 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6486 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6487 IFS="$lt_save_ifs"
6488 test -z "$ac_dir" && ac_dir=.
6489 tmp_nm="$ac_dir/$lt_tmp_nm"
6490 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6491 # Check to see if the nm accepts a BSD-compat flag.
6492 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6493 # nm: unknown option "B" ignored
6494 # Tru64's nm complains that /dev/null is an invalid object file
6495 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6496 */dev/null* | *'Invalid file or object type'*)
6497 lt_cv_path_NM="$tmp_nm -B"
6498 break
6499 ;;
6500 *)
6501 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6502 */dev/null*)
6503 lt_cv_path_NM="$tmp_nm -p"
6504 break
6505 ;;
6506 *)
6507 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6508 continue # so that we can try to find one that supports BSD flags
6509 ;;
6510 esac
6511 ;;
6512 esac
6513 fi
6514 done
6515 IFS="$lt_save_ifs"
6516 done
6517 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6518fi
6519fi
6520{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6521echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6522NM="$lt_cv_path_NM"
6523
6524
6525
6526{ echo "$as_me:$LINENO: checking for GNU make" >&5
6527echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6528if test "${llvm_cv_gnu_make_command+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531 llvm_cv_gnu_make_command=''
6532 for a in "$MAKE" make gmake gnumake ; do
6533 if test -z "$a" ; then continue ; fi ;
6534 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6535 then
6536 llvm_cv_gnu_make_command=$a ;
6537 break;
6538 fi
6539 done
6540fi
6541{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6542echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6543 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6544 ifGNUmake='' ;
6545 else
6546 ifGNUmake='#' ;
6547 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6548echo "${ECHO_T}\"Not found\"" >&6; };
6549 fi
6550
6551
6552{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6553echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6554LN_S=$as_ln_s
6555if test "$LN_S" = "ln -s"; then
6556 { echo "$as_me:$LINENO: result: yes" >&5
6557echo "${ECHO_T}yes" >&6; }
6558else
6559 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6560echo "${ECHO_T}no, using $LN_S" >&6; }
6561fi
6562
6563# Extract the first word of "cmp", so it can be a program name with args.
6564set dummy cmp; ac_word=$2
6565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567if test "${ac_cv_path_CMP+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6569else
6570 case $CMP in
6571 [\\/]* | ?:[\\/]*)
6572 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6573 ;;
6574 *)
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576for as_dir in $PATH
6577do
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006581 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 +00006582 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 break 2
6585 fi
6586done
6587done
6588IFS=$as_save_IFS
6589
6590 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6591 ;;
6592esac
6593fi
6594CMP=$ac_cv_path_CMP
6595if test -n "$CMP"; then
6596 { echo "$as_me:$LINENO: result: $CMP" >&5
6597echo "${ECHO_T}$CMP" >&6; }
6598else
6599 { echo "$as_me:$LINENO: result: no" >&5
6600echo "${ECHO_T}no" >&6; }
6601fi
6602
6603
6604# Extract the first word of "cp", so it can be a program name with args.
6605set dummy cp; ac_word=$2
6606{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608if test "${ac_cv_path_CP+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610else
6611 case $CP in
6612 [\\/]* | ?:[\\/]*)
6613 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6614 ;;
6615 *)
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617for as_dir in $PATH
6618do
6619 IFS=$as_save_IFS
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006622 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 +00006623 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 break 2
6626 fi
6627done
6628done
6629IFS=$as_save_IFS
6630
6631 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6632 ;;
6633esac
6634fi
6635CP=$ac_cv_path_CP
6636if test -n "$CP"; then
6637 { echo "$as_me:$LINENO: result: $CP" >&5
6638echo "${ECHO_T}$CP" >&6; }
6639else
6640 { echo "$as_me:$LINENO: result: no" >&5
6641echo "${ECHO_T}no" >&6; }
6642fi
6643
6644
6645# Extract the first word of "date", so it can be a program name with args.
6646set dummy date; ac_word=$2
6647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649if test "${ac_cv_path_DATE+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6651else
6652 case $DATE in
6653 [\\/]* | ?:[\\/]*)
6654 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6655 ;;
6656 *)
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006663 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 +00006664 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668done
6669done
6670IFS=$as_save_IFS
6671
6672 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6673 ;;
6674esac
6675fi
6676DATE=$ac_cv_path_DATE
6677if test -n "$DATE"; then
6678 { echo "$as_me:$LINENO: result: $DATE" >&5
6679echo "${ECHO_T}$DATE" >&6; }
6680else
6681 { echo "$as_me:$LINENO: result: no" >&5
6682echo "${ECHO_T}no" >&6; }
6683fi
6684
6685
6686# Extract the first word of "find", so it can be a program name with args.
6687set dummy find; ac_word=$2
6688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690if test "${ac_cv_path_FIND+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692else
6693 case $FIND in
6694 [\\/]* | ?:[\\/]*)
6695 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6696 ;;
6697 *)
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006704 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 +00006705 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6708 fi
6709done
6710done
6711IFS=$as_save_IFS
6712
6713 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6714 ;;
6715esac
6716fi
6717FIND=$ac_cv_path_FIND
6718if test -n "$FIND"; then
6719 { echo "$as_me:$LINENO: result: $FIND" >&5
6720echo "${ECHO_T}$FIND" >&6; }
6721else
6722 { echo "$as_me:$LINENO: result: no" >&5
6723echo "${ECHO_T}no" >&6; }
6724fi
6725
6726
6727# Extract the first word of "grep", so it can be a program name with args.
6728set dummy grep; ac_word=$2
6729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731if test "${ac_cv_path_GREP+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733else
6734 case $GREP in
6735 [\\/]* | ?:[\\/]*)
6736 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6737 ;;
6738 *)
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006745 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 +00006746 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 break 2
6749 fi
6750done
6751done
6752IFS=$as_save_IFS
6753
6754 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6755 ;;
6756esac
6757fi
6758GREP=$ac_cv_path_GREP
6759if test -n "$GREP"; then
6760 { echo "$as_me:$LINENO: result: $GREP" >&5
6761echo "${ECHO_T}$GREP" >&6; }
6762else
6763 { echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6; }
6765fi
6766
6767
6768# Extract the first word of "mkdir", so it can be a program name with args.
6769set dummy mkdir; ac_word=$2
6770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772if test "${ac_cv_path_MKDIR+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6774else
6775 case $MKDIR in
6776 [\\/]* | ?:[\\/]*)
6777 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6778 ;;
6779 *)
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781for as_dir in $PATH
6782do
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006787 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6790 fi
6791done
6792done
6793IFS=$as_save_IFS
6794
6795 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6796 ;;
6797esac
6798fi
6799MKDIR=$ac_cv_path_MKDIR
6800if test -n "$MKDIR"; then
6801 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6802echo "${ECHO_T}$MKDIR" >&6; }
6803else
6804 { echo "$as_me:$LINENO: result: no" >&5
6805echo "${ECHO_T}no" >&6; }
6806fi
6807
6808
6809# Extract the first word of "mv", so it can be a program name with args.
6810set dummy mv; ac_word=$2
6811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813if test "${ac_cv_path_MV+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815else
6816 case $MV in
6817 [\\/]* | ?:[\\/]*)
6818 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6819 ;;
6820 *)
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822for as_dir in $PATH
6823do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006827 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 +00006828 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832done
6833done
6834IFS=$as_save_IFS
6835
6836 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6837 ;;
6838esac
6839fi
6840MV=$ac_cv_path_MV
6841if test -n "$MV"; then
6842 { echo "$as_me:$LINENO: result: $MV" >&5
6843echo "${ECHO_T}$MV" >&6; }
6844else
6845 { echo "$as_me:$LINENO: result: no" >&5
6846echo "${ECHO_T}no" >&6; }
6847fi
6848
6849
6850if test -n "$ac_tool_prefix"; then
6851 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6852set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855if test "${ac_cv_prog_RANLIB+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857else
6858 if test -n "$RANLIB"; then
6859 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6860else
6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006867 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 +00006868 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872done
6873done
6874IFS=$as_save_IFS
6875
6876fi
6877fi
6878RANLIB=$ac_cv_prog_RANLIB
6879if test -n "$RANLIB"; then
6880 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6881echo "${ECHO_T}$RANLIB" >&6; }
6882else
6883 { echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6; }
6885fi
6886
6887
6888fi
6889if test -z "$ac_cv_prog_RANLIB"; then
6890 ac_ct_RANLIB=$RANLIB
6891 # Extract the first word of "ranlib", so it can be a program name with args.
6892set dummy ranlib; ac_word=$2
6893{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6895if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6897else
6898 if test -n "$ac_ct_RANLIB"; then
6899 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6900else
6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006907 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 +00006908 ac_cv_prog_ac_ct_RANLIB="ranlib"
6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912done
6913done
6914IFS=$as_save_IFS
6915
6916fi
6917fi
6918ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6919if test -n "$ac_ct_RANLIB"; then
6920 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6921echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6922else
6923 { echo "$as_me:$LINENO: result: no" >&5
6924echo "${ECHO_T}no" >&6; }
6925fi
6926
6927 if test "x$ac_ct_RANLIB" = x; then
6928 RANLIB=":"
6929 else
6930 case $cross_compiling:$ac_tool_warned in
6931yes:)
6932{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6933whose name does not start with the host triplet. If you think this
6934configuration is useful to you, please write to autoconf@gnu.org." >&5
6935echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6936whose name does not start with the host triplet. If you think this
6937configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6938ac_tool_warned=yes ;;
6939esac
6940 RANLIB=$ac_ct_RANLIB
6941 fi
6942else
6943 RANLIB="$ac_cv_prog_RANLIB"
6944fi
6945
6946# Extract the first word of "rm", so it can be a program name with args.
6947set dummy rm; ac_word=$2
6948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950if test "${ac_cv_path_RM+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6952else
6953 case $RM in
6954 [\\/]* | ?:[\\/]*)
6955 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6956 ;;
6957 *)
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959for as_dir in $PATH
6960do
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006964 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 +00006965 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6968 fi
6969done
6970done
6971IFS=$as_save_IFS
6972
6973 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6974 ;;
6975esac
6976fi
6977RM=$ac_cv_path_RM
6978if test -n "$RM"; then
6979 { echo "$as_me:$LINENO: result: $RM" >&5
6980echo "${ECHO_T}$RM" >&6; }
6981else
6982 { echo "$as_me:$LINENO: result: no" >&5
6983echo "${ECHO_T}no" >&6; }
6984fi
6985
6986
6987# Extract the first word of "sed", so it can be a program name with args.
6988set dummy sed; ac_word=$2
6989{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991if test "${ac_cv_path_SED+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993else
6994 case $SED in
6995 [\\/]* | ?:[\\/]*)
6996 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6997 ;;
6998 *)
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007005 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 +00007006 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010done
7011done
7012IFS=$as_save_IFS
7013
7014 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7015 ;;
7016esac
7017fi
7018SED=$ac_cv_path_SED
7019if test -n "$SED"; then
7020 { echo "$as_me:$LINENO: result: $SED" >&5
7021echo "${ECHO_T}$SED" >&6; }
7022else
7023 { echo "$as_me:$LINENO: result: no" >&5
7024echo "${ECHO_T}no" >&6; }
7025fi
7026
7027
7028# Extract the first word of "tar", so it can be a program name with args.
7029set dummy tar; ac_word=$2
7030{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032if test "${ac_cv_path_TAR+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034else
7035 case $TAR in
7036 [\\/]* | ?:[\\/]*)
7037 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7038 ;;
7039 *)
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007046 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 +00007047 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7050 fi
7051done
7052done
7053IFS=$as_save_IFS
7054
7055 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7056 ;;
7057esac
7058fi
7059TAR=$ac_cv_path_TAR
7060if test -n "$TAR"; then
7061 { echo "$as_me:$LINENO: result: $TAR" >&5
7062echo "${ECHO_T}$TAR" >&6; }
7063else
7064 { echo "$as_me:$LINENO: result: no" >&5
7065echo "${ECHO_T}no" >&6; }
7066fi
7067
7068
7069# Extract the first word of "pwd", so it can be a program name with args.
7070set dummy pwd; ac_word=$2
7071{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073if test "${ac_cv_path_BINPWD+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076 case $BINPWD in
7077 [\\/]* | ?:[\\/]*)
7078 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7079 ;;
7080 *)
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082for as_dir in $PATH
7083do
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007087 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 +00007088 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7091 fi
7092done
7093done
7094IFS=$as_save_IFS
7095
7096 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7097 ;;
7098esac
7099fi
7100BINPWD=$ac_cv_path_BINPWD
7101if test -n "$BINPWD"; then
7102 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7103echo "${ECHO_T}$BINPWD" >&6; }
7104else
7105 { echo "$as_me:$LINENO: result: no" >&5
7106echo "${ECHO_T}no" >&6; }
7107fi
7108
7109
7110
7111# Extract the first word of "Graphviz", so it can be a program name with args.
7112set dummy Graphviz; ac_word=$2
7113{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7115if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117else
7118 case $GRAPHVIZ in
7119 [\\/]* | ?:[\\/]*)
7120 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7121 ;;
7122 *)
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124for as_dir in $PATH
7125do
7126 IFS=$as_save_IFS
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007129 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 +00007130 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 break 2
7133 fi
7134done
7135done
7136IFS=$as_save_IFS
7137
7138 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7139 ;;
7140esac
7141fi
7142GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7143if test -n "$GRAPHVIZ"; then
7144 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7145echo "${ECHO_T}$GRAPHVIZ" >&6; }
7146else
7147 { echo "$as_me:$LINENO: result: no" >&5
7148echo "${ECHO_T}no" >&6; }
7149fi
7150
7151
7152if test "$GRAPHVIZ" != "echo Graphviz" ; then
7153
7154cat >>confdefs.h <<\_ACEOF
7155#define HAVE_GRAPHVIZ 1
7156_ACEOF
7157
Jeff Cohen28783c32007-01-12 18:22:38 +00007158 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007159 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7160 fi
7161
7162cat >>confdefs.h <<_ACEOF
7163#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7164_ACEOF
7165
7166fi
7167# Extract the first word of "dot", so it can be a program name with args.
7168set dummy dot; ac_word=$2
7169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171if test "${ac_cv_path_DOT+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173else
7174 case $DOT in
7175 [\\/]* | ?:[\\/]*)
7176 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7177 ;;
7178 *)
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007185 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 +00007186 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190done
7191done
7192IFS=$as_save_IFS
7193
7194 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7195 ;;
7196esac
7197fi
7198DOT=$ac_cv_path_DOT
7199if test -n "$DOT"; then
7200 { echo "$as_me:$LINENO: result: $DOT" >&5
7201echo "${ECHO_T}$DOT" >&6; }
7202else
7203 { echo "$as_me:$LINENO: result: no" >&5
7204echo "${ECHO_T}no" >&6; }
7205fi
7206
7207
7208if test "$DOT" != "echo dot" ; then
7209
7210cat >>confdefs.h <<\_ACEOF
7211#define HAVE_DOT 1
7212_ACEOF
7213
Jeff Cohen28783c32007-01-12 18:22:38 +00007214 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007215 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7216 fi
7217
7218cat >>confdefs.h <<_ACEOF
7219#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7220_ACEOF
7221
7222fi
David Greenef0b9eff2009-07-09 17:16:26 +00007223# Extract the first word of "fdp", so it can be a program name with args.
7224set dummy fdp; ac_word=$2
7225{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7227if test "${ac_cv_path_FDP+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229else
7230 case $FDP in
7231 [\\/]* | ?:[\\/]*)
7232 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7233 ;;
7234 *)
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236for as_dir in $PATH
7237do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7242 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7245 fi
7246done
7247done
7248IFS=$as_save_IFS
7249
7250 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7251 ;;
7252esac
7253fi
7254FDP=$ac_cv_path_FDP
7255if test -n "$FDP"; then
7256 { echo "$as_me:$LINENO: result: $FDP" >&5
7257echo "${ECHO_T}$FDP" >&6; }
7258else
7259 { echo "$as_me:$LINENO: result: no" >&5
7260echo "${ECHO_T}no" >&6; }
7261fi
7262
7263
7264if test "$FDP" != "echo fdp" ; then
7265
7266cat >>confdefs.h <<\_ACEOF
7267#define HAVE_FDP 1
7268_ACEOF
7269
7270 if test "$llvm_cv_os_type" = "MingW" ; then
7271 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7272 fi
7273
7274cat >>confdefs.h <<_ACEOF
7275#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7276_ACEOF
7277
7278fi
7279# Extract the first word of "neato", so it can be a program name with args.
7280set dummy neato; ac_word=$2
7281{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7283if test "${ac_cv_path_NEATO+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7285else
7286 case $NEATO in
7287 [\\/]* | ?:[\\/]*)
7288 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7289 ;;
7290 *)
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292for as_dir in $PATH
7293do
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7298 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 break 2
7301 fi
7302done
7303done
7304IFS=$as_save_IFS
7305
7306 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7307 ;;
7308esac
7309fi
7310NEATO=$ac_cv_path_NEATO
7311if test -n "$NEATO"; then
7312 { echo "$as_me:$LINENO: result: $NEATO" >&5
7313echo "${ECHO_T}$NEATO" >&6; }
7314else
7315 { echo "$as_me:$LINENO: result: no" >&5
7316echo "${ECHO_T}no" >&6; }
7317fi
7318
7319
7320if test "$NEATO" != "echo neato" ; then
7321
7322cat >>confdefs.h <<\_ACEOF
7323#define HAVE_NEATO 1
7324_ACEOF
7325
7326 if test "$llvm_cv_os_type" = "MingW" ; then
7327 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7328 fi
7329
7330cat >>confdefs.h <<_ACEOF
7331#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7332_ACEOF
7333
7334fi
7335# Extract the first word of "twopi", so it can be a program name with args.
7336set dummy twopi; ac_word=$2
7337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7339if test "${ac_cv_path_TWOPI+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341else
7342 case $TWOPI in
7343 [\\/]* | ?:[\\/]*)
7344 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7345 ;;
7346 *)
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7354 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 break 2
7357 fi
7358done
7359done
7360IFS=$as_save_IFS
7361
7362 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7363 ;;
7364esac
7365fi
7366TWOPI=$ac_cv_path_TWOPI
7367if test -n "$TWOPI"; then
7368 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7369echo "${ECHO_T}$TWOPI" >&6; }
7370else
7371 { echo "$as_me:$LINENO: result: no" >&5
7372echo "${ECHO_T}no" >&6; }
7373fi
7374
7375
7376if test "$TWOPI" != "echo twopi" ; then
7377
7378cat >>confdefs.h <<\_ACEOF
7379#define HAVE_TWOPI 1
7380_ACEOF
7381
7382 if test "$llvm_cv_os_type" = "MingW" ; then
7383 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7384 fi
7385
7386cat >>confdefs.h <<_ACEOF
7387#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7388_ACEOF
7389
7390fi
7391# Extract the first word of "circo", so it can be a program name with args.
7392set dummy circo; ac_word=$2
7393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395if test "${ac_cv_path_CIRCO+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7397else
7398 case $CIRCO in
7399 [\\/]* | ?:[\\/]*)
7400 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7401 ;;
7402 *)
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404for as_dir in $PATH
7405do
7406 IFS=$as_save_IFS
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7410 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412 break 2
7413 fi
7414done
7415done
7416IFS=$as_save_IFS
7417
7418 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7419 ;;
7420esac
7421fi
7422CIRCO=$ac_cv_path_CIRCO
7423if test -n "$CIRCO"; then
7424 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7425echo "${ECHO_T}$CIRCO" >&6; }
7426else
7427 { echo "$as_me:$LINENO: result: no" >&5
7428echo "${ECHO_T}no" >&6; }
7429fi
7430
7431
7432if test "$CIRCO" != "echo circo" ; then
7433
7434cat >>confdefs.h <<\_ACEOF
7435#define HAVE_CIRCO 1
7436_ACEOF
7437
7438 if test "$llvm_cv_os_type" = "MingW" ; then
7439 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7440 fi
7441
7442cat >>confdefs.h <<_ACEOF
7443#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7444_ACEOF
7445
7446fi
Reid Spencera773bd52006-08-04 18:18:08 +00007447for ac_prog in gv gsview32
7448do
7449 # Extract the first word of "$ac_prog", so it can be a program name with args.
7450set dummy $ac_prog; ac_word=$2
7451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453if test "${ac_cv_path_GV+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7455else
7456 case $GV in
7457 [\\/]* | ?:[\\/]*)
7458 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7459 ;;
7460 *)
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462for as_dir in $PATH
7463do
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007467 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 +00007468 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 break 2
7471 fi
7472done
7473done
7474IFS=$as_save_IFS
7475
7476 ;;
7477esac
7478fi
7479GV=$ac_cv_path_GV
7480if test -n "$GV"; then
7481 { echo "$as_me:$LINENO: result: $GV" >&5
7482echo "${ECHO_T}$GV" >&6; }
7483else
7484 { echo "$as_me:$LINENO: result: no" >&5
7485echo "${ECHO_T}no" >&6; }
7486fi
7487
7488
7489 test -n "$GV" && break
7490done
7491test -n "$GV" || GV="echo gv"
7492
7493if test "$GV" != "echo gv" ; then
7494
7495cat >>confdefs.h <<\_ACEOF
7496#define HAVE_GV 1
7497_ACEOF
7498
Jeff Cohen28783c32007-01-12 18:22:38 +00007499 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007500 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7501 fi
7502
7503cat >>confdefs.h <<_ACEOF
7504#define LLVM_PATH_GV "$GV${EXEEXT}"
7505_ACEOF
7506
7507fi
7508# Extract the first word of "dotty", so it can be a program name with args.
7509set dummy dotty; ac_word=$2
7510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7512if test "${ac_cv_path_DOTTY+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514else
7515 case $DOTTY in
7516 [\\/]* | ?:[\\/]*)
7517 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7518 ;;
7519 *)
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521for as_dir in $PATH
7522do
7523 IFS=$as_save_IFS
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007526 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 +00007527 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 break 2
7530 fi
7531done
7532done
7533IFS=$as_save_IFS
7534
7535 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7536 ;;
7537esac
7538fi
7539DOTTY=$ac_cv_path_DOTTY
7540if test -n "$DOTTY"; then
7541 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7542echo "${ECHO_T}$DOTTY" >&6; }
7543else
7544 { echo "$as_me:$LINENO: result: no" >&5
7545echo "${ECHO_T}no" >&6; }
7546fi
7547
7548
7549if test "$DOTTY" != "echo dotty" ; then
7550
7551cat >>confdefs.h <<\_ACEOF
7552#define HAVE_DOTTY 1
7553_ACEOF
7554
Jeff Cohen28783c32007-01-12 18:22:38 +00007555 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007556 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7557 fi
7558
7559cat >>confdefs.h <<_ACEOF
7560#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7561_ACEOF
7562
7563fi
7564
7565
7566# Extract the first word of "perl", so it can be a program name with args.
7567set dummy perl; ac_word=$2
7568{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7570if test "${ac_cv_path_PERL+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7572else
7573 case $PERL in
7574 [\\/]* | ?:[\\/]*)
7575 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7576 ;;
7577 *)
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579for as_dir in $PATH
7580do
7581 IFS=$as_save_IFS
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007584 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 +00007585 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7587 break 2
7588 fi
7589done
7590done
7591IFS=$as_save_IFS
7592
7593 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7594 ;;
7595esac
7596fi
7597PERL=$ac_cv_path_PERL
7598if test -n "$PERL"; then
7599 { echo "$as_me:$LINENO: result: $PERL" >&5
7600echo "${ECHO_T}$PERL" >&6; }
7601else
7602 { echo "$as_me:$LINENO: result: no" >&5
7603echo "${ECHO_T}no" >&6; }
7604fi
7605
7606
7607if test "$PERL" != "none"; then
7608 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7609echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7610 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7611 { echo "$as_me:$LINENO: result: yes" >&5
7612echo "${ECHO_T}yes" >&6; }
7613 else
7614 PERL=none
7615 { echo "$as_me:$LINENO: result: not found" >&5
7616echo "${ECHO_T}not found" >&6; }
7617 fi
7618fi
7619
7620
7621if test x"$PERL" = xnone; then
7622 HAVE_PERL=0
7623
Reid Spencer59807fa2007-05-17 18:11:03 +00007624 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7625echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7626 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007627else
7628 HAVE_PERL=1
7629
7630fi
7631
7632# Find a good install program. We prefer a C program (faster),
7633# so one script is as good as another. But avoid the broken or
7634# incompatible versions:
7635# SysV /etc/install, /usr/sbin/install
7636# SunOS /usr/etc/install
7637# IRIX /sbin/install
7638# AIX /bin/install
7639# AmigaOS /C/install, which installs bootblocks on floppy discs
7640# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7641# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7642# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7643# OS/2's system install, which has a completely different semantic
7644# ./install, which can be erroneously created by make from ./install.sh.
7645{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7646echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7647if test -z "$INSTALL"; then
7648if test "${ac_cv_path_install+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7650else
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652for as_dir in $PATH
7653do
7654 IFS=$as_save_IFS
7655 test -z "$as_dir" && as_dir=.
7656 # Account for people who put trailing slashes in PATH elements.
7657case $as_dir/ in
7658 ./ | .// | /cC/* | \
7659 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7660 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7661 /usr/ucb/* ) ;;
7662 *)
7663 # OSF1 and SCO ODT 3.0 have their own names for install.
7664 # Don't use installbsd from OSF since it installs stuff as root
7665 # by default.
7666 for ac_prog in ginstall scoinst install; do
7667 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007668 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 +00007669 if test $ac_prog = install &&
7670 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7671 # AIX install. It has an incompatible calling convention.
7672 :
7673 elif test $ac_prog = install &&
7674 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7675 # program-specific install script used by HP pwplus--don't use.
7676 :
7677 else
7678 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7679 break 3
7680 fi
7681 fi
7682 done
7683 done
7684 ;;
7685esac
7686done
7687IFS=$as_save_IFS
7688
7689
7690fi
7691 if test "${ac_cv_path_install+set}" = set; then
7692 INSTALL=$ac_cv_path_install
7693 else
7694 # As a last resort, use the slow shell script. Don't cache a
7695 # value for INSTALL within a source directory, because that will
7696 # break other packages using the cache if that directory is
7697 # removed, or if the value is a relative name.
7698 INSTALL=$ac_install_sh
7699 fi
7700fi
7701{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7702echo "${ECHO_T}$INSTALL" >&6; }
7703
7704# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7705# It thinks the first close brace ends the variable substitution.
7706test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7707
7708test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7709
7710test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7711
7712
7713# Extract the first word of "bzip2", so it can be a program name with args.
7714set dummy bzip2; ac_word=$2
7715{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7717if test "${ac_cv_path_BZIP2+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719else
7720 case $BZIP2 in
7721 [\\/]* | ?:[\\/]*)
7722 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7723 ;;
7724 *)
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726for as_dir in $PATH
7727do
7728 IFS=$as_save_IFS
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007731 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 +00007732 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7734 break 2
7735 fi
7736done
7737done
7738IFS=$as_save_IFS
7739
Reid Spencera773bd52006-08-04 18:18:08 +00007740 ;;
7741esac
7742fi
7743BZIP2=$ac_cv_path_BZIP2
7744if test -n "$BZIP2"; then
7745 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7746echo "${ECHO_T}$BZIP2" >&6; }
7747else
7748 { echo "$as_me:$LINENO: result: no" >&5
7749echo "${ECHO_T}no" >&6; }
7750fi
7751
7752
7753# Extract the first word of "doxygen", so it can be a program name with args.
7754set dummy doxygen; ac_word=$2
7755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7757if test "${ac_cv_path_DOXYGEN+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7759else
7760 case $DOXYGEN in
7761 [\\/]* | ?:[\\/]*)
7762 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7763 ;;
7764 *)
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766for as_dir in $PATH
7767do
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007771 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 +00007772 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 break 2
7775 fi
7776done
7777done
7778IFS=$as_save_IFS
7779
Reid Spencera773bd52006-08-04 18:18:08 +00007780 ;;
7781esac
7782fi
7783DOXYGEN=$ac_cv_path_DOXYGEN
7784if test -n "$DOXYGEN"; then
7785 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7786echo "${ECHO_T}$DOXYGEN" >&6; }
7787else
7788 { echo "$as_me:$LINENO: result: no" >&5
7789echo "${ECHO_T}no" >&6; }
7790fi
7791
7792
Reid Spencera773bd52006-08-04 18:18:08 +00007793# Extract the first word of "groff", so it can be a program name with args.
7794set dummy groff; ac_word=$2
7795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7797if test "${ac_cv_path_GROFF+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7799else
7800 case $GROFF in
7801 [\\/]* | ?:[\\/]*)
7802 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7803 ;;
7804 *)
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806for as_dir in $PATH
7807do
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007811 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 +00007812 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 break 2
7815 fi
7816done
7817done
7818IFS=$as_save_IFS
7819
Reid Spencera773bd52006-08-04 18:18:08 +00007820 ;;
7821esac
7822fi
7823GROFF=$ac_cv_path_GROFF
7824if test -n "$GROFF"; then
7825 { echo "$as_me:$LINENO: result: $GROFF" >&5
7826echo "${ECHO_T}$GROFF" >&6; }
7827else
7828 { echo "$as_me:$LINENO: result: no" >&5
7829echo "${ECHO_T}no" >&6; }
7830fi
7831
7832
7833# Extract the first word of "gzip", so it can be a program name with args.
7834set dummy gzip; ac_word=$2
7835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7837if test "${ac_cv_path_GZIP+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
7840 case $GZIP in
7841 [\\/]* | ?:[\\/]*)
7842 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7843 ;;
7844 *)
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007851 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 +00007852 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7855 fi
7856done
7857done
7858IFS=$as_save_IFS
7859
Reid Spencera773bd52006-08-04 18:18:08 +00007860 ;;
7861esac
7862fi
7863GZIP=$ac_cv_path_GZIP
7864if test -n "$GZIP"; then
7865 { echo "$as_me:$LINENO: result: $GZIP" >&5
7866echo "${ECHO_T}$GZIP" >&6; }
7867else
7868 { echo "$as_me:$LINENO: result: no" >&5
7869echo "${ECHO_T}no" >&6; }
7870fi
7871
7872
7873# Extract the first word of "pod2html", so it can be a program name with args.
7874set dummy pod2html; ac_word=$2
7875{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7877if test "${ac_cv_path_POD2HTML+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7879else
7880 case $POD2HTML in
7881 [\\/]* | ?:[\\/]*)
7882 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7883 ;;
7884 *)
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886for as_dir in $PATH
7887do
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007891 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 +00007892 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7895 fi
7896done
7897done
7898IFS=$as_save_IFS
7899
Reid Spencera773bd52006-08-04 18:18:08 +00007900 ;;
7901esac
7902fi
7903POD2HTML=$ac_cv_path_POD2HTML
7904if test -n "$POD2HTML"; then
7905 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7906echo "${ECHO_T}$POD2HTML" >&6; }
7907else
7908 { echo "$as_me:$LINENO: result: no" >&5
7909echo "${ECHO_T}no" >&6; }
7910fi
7911
7912
7913# Extract the first word of "pod2man", so it can be a program name with args.
7914set dummy pod2man; ac_word=$2
7915{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7917if test "${ac_cv_path_POD2MAN+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7919else
7920 case $POD2MAN in
7921 [\\/]* | ?:[\\/]*)
7922 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7923 ;;
7924 *)
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926for as_dir in $PATH
7927do
7928 IFS=$as_save_IFS
7929 test -z "$as_dir" && as_dir=.
7930 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007931 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 +00007932 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7934 break 2
7935 fi
7936done
7937done
7938IFS=$as_save_IFS
7939
Reid Spencera773bd52006-08-04 18:18:08 +00007940 ;;
7941esac
7942fi
7943POD2MAN=$ac_cv_path_POD2MAN
7944if test -n "$POD2MAN"; then
7945 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7946echo "${ECHO_T}$POD2MAN" >&6; }
7947else
7948 { echo "$as_me:$LINENO: result: no" >&5
7949echo "${ECHO_T}no" >&6; }
7950fi
7951
7952
7953# Extract the first word of "runtest", so it can be a program name with args.
7954set dummy runtest; ac_word=$2
7955{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7957if test "${ac_cv_path_RUNTEST+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7959else
7960 case $RUNTEST in
7961 [\\/]* | ?:[\\/]*)
7962 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7963 ;;
7964 *)
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966for as_dir in $PATH
7967do
7968 IFS=$as_save_IFS
7969 test -z "$as_dir" && as_dir=.
7970 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007971 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 +00007972 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7974 break 2
7975 fi
7976done
7977done
7978IFS=$as_save_IFS
7979
Reid Spencera773bd52006-08-04 18:18:08 +00007980 ;;
7981esac
7982fi
7983RUNTEST=$ac_cv_path_RUNTEST
7984if test -n "$RUNTEST"; then
7985 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7986echo "${ECHO_T}$RUNTEST" >&6; }
7987else
7988 { echo "$as_me:$LINENO: result: no" >&5
7989echo "${ECHO_T}no" >&6; }
7990fi
7991
7992
7993
7994no_itcl=true
7995{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7996echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7997
7998# Check whether --with-tclinclude was given.
7999if test "${with_tclinclude+set}" = set; then
8000 withval=$with_tclinclude; with_tclinclude=${withval}
8001else
8002 with_tclinclude=''
8003fi
8004
8005if test "${ac_cv_path_tclsh+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8007else
8008
8009if test x"${with_tclinclude}" != x ; then
8010 if test -f ${with_tclinclude}/tclsh ; then
8011 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8012 elif test -f ${with_tclinclude}/src/tclsh ; then
8013 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8014 else
8015 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8016echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8017 { (exit 1); exit 1; }; }
8018 fi
8019fi
8020
8021if test x"${ac_cv_path_tclsh}" = x ; then
8022 { echo "$as_me:$LINENO: result: none" >&5
8023echo "${ECHO_T}none" >&6; }
8024 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
8025do
8026 # Extract the first word of "$ac_prog", so it can be a program name with args.
8027set dummy $ac_prog; ac_word=$2
8028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8030if test "${ac_cv_path_TCLSH+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032else
8033 case $TCLSH in
8034 [\\/]* | ?:[\\/]*)
8035 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8036 ;;
8037 *)
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008044 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 +00008045 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8048 fi
8049done
8050done
8051IFS=$as_save_IFS
8052
8053 ;;
8054esac
8055fi
8056TCLSH=$ac_cv_path_TCLSH
8057if test -n "$TCLSH"; then
8058 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8059echo "${ECHO_T}$TCLSH" >&6; }
8060else
8061 { echo "$as_me:$LINENO: result: no" >&5
8062echo "${ECHO_T}no" >&6; }
8063fi
8064
8065
8066 test -n "$TCLSH" && break
8067done
8068
8069 if test x"${TCLSH}" = x ; then
8070 ac_cv_path_tclsh='';
8071 else
8072 ac_cv_path_tclsh="${TCLSH}";
8073 fi
8074else
8075 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8076echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8077 TCLSH="${ac_cv_path_tclsh}"
8078
8079fi
8080
8081fi
8082
8083# Extract the first word of "zip", so it can be a program name with args.
8084set dummy zip; ac_word=$2
8085{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8087if test "${ac_cv_path_ZIP+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8089else
8090 case $ZIP in
8091 [\\/]* | ?:[\\/]*)
8092 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8093 ;;
8094 *)
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096for as_dir in $PATH
8097do
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008101 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 +00008102 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 break 2
8105 fi
8106done
8107done
8108IFS=$as_save_IFS
8109
Reid Spencera773bd52006-08-04 18:18:08 +00008110 ;;
8111esac
8112fi
8113ZIP=$ac_cv_path_ZIP
8114if test -n "$ZIP"; then
8115 { echo "$as_me:$LINENO: result: $ZIP" >&5
8116echo "${ECHO_T}$ZIP" >&6; }
8117else
8118 { echo "$as_me:$LINENO: result: no" >&5
8119echo "${ECHO_T}no" >&6; }
8120fi
8121
8122
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008123for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008124do
8125 # Extract the first word of "$ac_prog", so it can be a program name with args.
8126set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8129if test "${ac_cv_path_OCAMLC+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8131else
8132 case $OCAMLC in
8133 [\\/]* | ?:[\\/]*)
8134 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8135 ;;
8136 *)
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138for as_dir in $PATH
8139do
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008143 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 +00008144 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 break 2
8147 fi
8148done
8149done
8150IFS=$as_save_IFS
8151
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008152 ;;
8153esac
8154fi
8155OCAMLC=$ac_cv_path_OCAMLC
8156if test -n "$OCAMLC"; then
8157 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8158echo "${ECHO_T}$OCAMLC" >&6; }
8159else
8160 { echo "$as_me:$LINENO: result: no" >&5
8161echo "${ECHO_T}no" >&6; }
8162fi
8163
8164
Gordon Henriksene7072162008-03-07 18:20:01 +00008165 test -n "$OCAMLC" && break
8166done
8167
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008168for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008169do
8170 # Extract the first word of "$ac_prog", so it can be a program name with args.
8171set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8174if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176else
8177 case $OCAMLOPT in
8178 [\\/]* | ?:[\\/]*)
8179 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8180 ;;
8181 *)
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183for as_dir in $PATH
8184do
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008188 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 +00008189 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 break 2
8192 fi
8193done
8194done
8195IFS=$as_save_IFS
8196
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008197 ;;
8198esac
8199fi
8200OCAMLOPT=$ac_cv_path_OCAMLOPT
8201if test -n "$OCAMLOPT"; then
8202 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8203echo "${ECHO_T}$OCAMLOPT" >&6; }
8204else
8205 { echo "$as_me:$LINENO: result: no" >&5
8206echo "${ECHO_T}no" >&6; }
8207fi
8208
8209
Gordon Henriksene7072162008-03-07 18:20:01 +00008210 test -n "$OCAMLOPT" && break
8211done
8212
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008213for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008214do
8215 # Extract the first word of "$ac_prog", so it can be a program name with args.
8216set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008217{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8219if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8221else
8222 case $OCAMLDEP in
8223 [\\/]* | ?:[\\/]*)
8224 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8225 ;;
8226 *)
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228for as_dir in $PATH
8229do
8230 IFS=$as_save_IFS
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008233 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 +00008234 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8236 break 2
8237 fi
8238done
8239done
8240IFS=$as_save_IFS
8241
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008242 ;;
8243esac
8244fi
8245OCAMLDEP=$ac_cv_path_OCAMLDEP
8246if test -n "$OCAMLDEP"; then
8247 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8248echo "${ECHO_T}$OCAMLDEP" >&6; }
8249else
8250 { echo "$as_me:$LINENO: result: no" >&5
8251echo "${ECHO_T}no" >&6; }
8252fi
8253
8254
Gordon Henriksene7072162008-03-07 18:20:01 +00008255 test -n "$OCAMLDEP" && break
8256done
8257
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008258for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008259do
8260 # Extract the first word of "$ac_prog", so it can be a program name with args.
8261set dummy $ac_prog; ac_word=$2
8262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8264if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8266else
8267 case $OCAMLDOC in
8268 [\\/]* | ?:[\\/]*)
8269 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8270 ;;
8271 *)
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273for as_dir in $PATH
8274do
8275 IFS=$as_save_IFS
8276 test -z "$as_dir" && as_dir=.
8277 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008278 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 +00008279 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 break 2
8282 fi
8283done
8284done
8285IFS=$as_save_IFS
8286
8287 ;;
8288esac
8289fi
8290OCAMLDOC=$ac_cv_path_OCAMLDOC
8291if test -n "$OCAMLDOC"; then
8292 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8293echo "${ECHO_T}$OCAMLDOC" >&6; }
8294else
8295 { echo "$as_me:$LINENO: result: no" >&5
8296echo "${ECHO_T}no" >&6; }
8297fi
8298
8299
8300 test -n "$OCAMLDOC" && break
8301done
8302
Torok Edwincc499a42008-10-22 09:56:27 +00008303for ac_prog in gas as
8304do
8305 # Extract the first word of "$ac_prog", so it can be a program name with args.
8306set dummy $ac_prog; ac_word=$2
8307{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8309if test "${ac_cv_path_GAS+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8311else
8312 case $GAS in
8313 [\\/]* | ?:[\\/]*)
8314 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8315 ;;
8316 *)
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318for as_dir in $PATH
8319do
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008323 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 +00008324 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8327 fi
8328done
8329done
8330IFS=$as_save_IFS
8331
8332 ;;
8333esac
8334fi
8335GAS=$ac_cv_path_GAS
8336if test -n "$GAS"; then
8337 { echo "$as_me:$LINENO: result: $GAS" >&5
8338echo "${ECHO_T}$GAS" >&6; }
8339else
8340 { echo "$as_me:$LINENO: result: no" >&5
8341echo "${ECHO_T}no" >&6; }
8342fi
8343
8344
8345 test -n "$GAS" && break
8346done
8347
Reid Spencera773bd52006-08-04 18:18:08 +00008348
8349{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8350echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8351if test "${llvm_cv_link_use_r+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8353else
8354 ac_ext=c
8355ac_cpp='$CPP $CPPFLAGS'
8356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8358ac_compiler_gnu=$ac_cv_c_compiler_gnu
8359
8360 oldcflags="$CFLAGS"
8361 CFLAGS="$CFLAGS -Wl,-R."
8362 cat >conftest.$ac_ext <<_ACEOF
8363/* confdefs.h. */
8364_ACEOF
8365cat confdefs.h >>conftest.$ac_ext
8366cat >>conftest.$ac_ext <<_ACEOF
8367/* end confdefs.h. */
8368
8369int
8370main ()
8371{
8372int main() { return 0; }
8373 ;
8374 return 0;
8375}
8376_ACEOF
8377rm -f conftest.$ac_objext conftest$ac_exeext
8378if { (ac_try="$ac_link"
8379case "(($ac_try" in
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8382esac
8383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_link") 2>conftest.er1
8385 ac_status=$?
8386 grep -v '^ *+' conftest.er1 >conftest.err
8387 rm -f conftest.er1
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008390 (exit $ac_status); } &&
8391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8392 { (case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8395esac
8396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_try") 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try='test -s conftest$ac_exeext'
8402 { (case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8405esac
8406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_try") 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008411 llvm_cv_link_use_r=yes
8412else
8413 echo "$as_me: failed program was:" >&5
8414sed 's/^/| /' conftest.$ac_ext >&5
8415
8416 llvm_cv_link_use_r=no
8417fi
8418
Bill Wendlingebcceee2009-04-18 11:20:33 +00008419rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008420 conftest$ac_exeext conftest.$ac_ext
8421 CFLAGS="$oldcflags"
8422 ac_ext=c
8423ac_cpp='$CPP $CPPFLAGS'
8424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8426ac_compiler_gnu=$ac_cv_c_compiler_gnu
8427
8428
8429fi
8430{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8431echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8432if test "$llvm_cv_link_use_r" = yes ; then
8433
8434cat >>confdefs.h <<\_ACEOF
8435#define HAVE_LINK_R 1
8436_ACEOF
8437
8438 fi
8439
8440
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008441{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8442echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8443if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8445else
8446 ac_ext=c
8447ac_cpp='$CPP $CPPFLAGS'
8448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8450ac_compiler_gnu=$ac_cv_c_compiler_gnu
8451
8452 oldcflags="$CFLAGS"
8453 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8454 cat >conftest.$ac_ext <<_ACEOF
8455/* confdefs.h. */
8456_ACEOF
8457cat confdefs.h >>conftest.$ac_ext
8458cat >>conftest.$ac_ext <<_ACEOF
8459/* end confdefs.h. */
8460
8461int
8462main ()
8463{
8464int main() { return 0; }
8465 ;
8466 return 0;
8467}
8468_ACEOF
8469rm -f conftest.$ac_objext conftest$ac_exeext
8470if { (ac_try="$ac_link"
8471case "(($ac_try" in
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8474esac
8475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_link") 2>conftest.er1
8477 ac_status=$?
8478 grep -v '^ *+' conftest.er1 >conftest.err
8479 rm -f conftest.er1
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008482 (exit $ac_status); } &&
8483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8484 { (case "(($ac_try" in
8485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486 *) ac_try_echo=$ac_try;;
8487esac
8488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489 (eval "$ac_try") 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; } &&
8493 { ac_try='test -s conftest$ac_exeext'
8494 { (case "(($ac_try" in
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8497esac
8498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_try") 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008503 llvm_cv_link_use_export_dynamic=yes
8504else
8505 echo "$as_me: failed program was:" >&5
8506sed 's/^/| /' conftest.$ac_ext >&5
8507
8508 llvm_cv_link_use_export_dynamic=no
8509fi
8510
Bill Wendlingebcceee2009-04-18 11:20:33 +00008511rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008512 conftest$ac_exeext conftest.$ac_ext
8513 CFLAGS="$oldcflags"
8514 ac_ext=c
8515ac_cpp='$CPP $CPPFLAGS'
8516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8518ac_compiler_gnu=$ac_cv_c_compiler_gnu
8519
8520
8521fi
8522{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8523echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8524if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8525
8526cat >>confdefs.h <<\_ACEOF
8527#define HAVE_LINK_EXPORT_DYNAMIC 1
8528_ACEOF
8529
8530 fi
8531
8532
Reid Spencera773bd52006-08-04 18:18:08 +00008533
8534
8535{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8536echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8537if test "${ac_cv_c_const+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8539else
8540 cat >conftest.$ac_ext <<_ACEOF
8541/* confdefs.h. */
8542_ACEOF
8543cat confdefs.h >>conftest.$ac_ext
8544cat >>conftest.$ac_ext <<_ACEOF
8545/* end confdefs.h. */
8546
8547int
8548main ()
8549{
8550/* FIXME: Include the comments suggested by Paul. */
8551#ifndef __cplusplus
8552 /* Ultrix mips cc rejects this. */
8553 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008554 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008555 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008556 char const *const *ccp;
8557 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008558 /* NEC SVR4.0.2 mips cc rejects this. */
8559 struct point {int x, y;};
8560 static struct point const zero = {0,0};
8561 /* AIX XL C 1.02.0.0 rejects this.
8562 It does not let you subtract one const X* pointer from another in
8563 an arm of an if-expression whose if-part is not a constant
8564 expression */
8565 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008566 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008567 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008568 ++ccp;
8569 p = (char**) ccp;
8570 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008571 { /* SCO 3.2v4 cc rejects this. */
8572 char *t;
8573 char const *s = 0 ? (char *) 0 : (char const *) 0;
8574
8575 *t++ = 0;
8576 if (s) return 0;
8577 }
8578 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8579 int x[] = {25, 17};
8580 const int *foo = &x[0];
8581 ++foo;
8582 }
8583 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8584 typedef const int *iptr;
8585 iptr p = 0;
8586 ++p;
8587 }
8588 { /* AIX XL C 1.02.0.0 rejects this saying
8589 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8590 struct s { int j; const int *ap[3]; };
8591 struct s *b; b->j = 5;
8592 }
8593 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8594 const int foo = 10;
8595 if (!foo) return 0;
8596 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008597 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008598#endif
8599
8600 ;
8601 return 0;
8602}
8603_ACEOF
8604rm -f conftest.$ac_objext
8605if { (ac_try="$ac_compile"
8606case "(($ac_try" in
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8609esac
8610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611 (eval "$ac_compile") 2>conftest.er1
8612 ac_status=$?
8613 grep -v '^ *+' conftest.er1 >conftest.err
8614 rm -f conftest.er1
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008617 (exit $ac_status); } &&
8618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8619 { (case "(($ac_try" in
8620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621 *) ac_try_echo=$ac_try;;
8622esac
8623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624 (eval "$ac_try") 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } &&
8628 { ac_try='test -s conftest.$ac_objext'
8629 { (case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8632esac
8633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_try") 2>&5
8635 ac_status=$?
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008638 ac_cv_c_const=yes
8639else
8640 echo "$as_me: failed program was:" >&5
8641sed 's/^/| /' conftest.$ac_ext >&5
8642
8643 ac_cv_c_const=no
8644fi
8645
8646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647fi
8648{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8649echo "${ECHO_T}$ac_cv_c_const" >&6; }
8650if test $ac_cv_c_const = no; then
8651
8652cat >>confdefs.h <<\_ACEOF
8653#define const
8654_ACEOF
8655
8656fi
8657
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008658
8659
8660
8661
8662
8663ac_header_dirent=no
8664for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8665 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008666{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8667echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008669 echo $ECHO_N "(cached) $ECHO_C" >&6
8670else
8671 cat >conftest.$ac_ext <<_ACEOF
8672/* confdefs.h. */
8673_ACEOF
8674cat confdefs.h >>conftest.$ac_ext
8675cat >>conftest.$ac_ext <<_ACEOF
8676/* end confdefs.h. */
8677#include <sys/types.h>
8678#include <$ac_hdr>
8679
8680int
8681main ()
8682{
8683if ((DIR *) 0)
8684return 0;
8685 ;
8686 return 0;
8687}
8688_ACEOF
8689rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008690if { (ac_try="$ac_compile"
8691case "(($ac_try" in
8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8694esac
8695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008697 ac_status=$?
8698 grep -v '^ *+' conftest.er1 >conftest.err
8699 rm -f conftest.er1
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008702 (exit $ac_status); } &&
8703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8704 { (case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8707esac
8708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_try") 2>&5
8710 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; } &&
8713 { ac_try='test -s conftest.$ac_objext'
8714 { (case "(($ac_try" in
8715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8717esac
8718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719 (eval "$ac_try") 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008723 eval "$as_ac_Header=yes"
8724else
8725 echo "$as_me: failed program was:" >&5
8726sed 's/^/| /' conftest.$ac_ext >&5
8727
Reid Spencera773bd52006-08-04 18:18:08 +00008728 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008729fi
Reid Spencera773bd52006-08-04 18:18:08 +00008730
8731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008732fi
Reid Spencera773bd52006-08-04 18:18:08 +00008733ac_res=`eval echo '${'$as_ac_Header'}'`
8734 { echo "$as_me:$LINENO: result: $ac_res" >&5
8735echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008736if test `eval echo '${'$as_ac_Header'}'` = yes; then
8737 cat >>confdefs.h <<_ACEOF
8738#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8739_ACEOF
8740
8741ac_header_dirent=$ac_hdr; break
8742fi
8743
8744done
8745# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8746if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008747 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8748echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008749if test "${ac_cv_search_opendir+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8751else
8752 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008753cat >conftest.$ac_ext <<_ACEOF
8754/* confdefs.h. */
8755_ACEOF
8756cat confdefs.h >>conftest.$ac_ext
8757cat >>conftest.$ac_ext <<_ACEOF
8758/* end confdefs.h. */
8759
Reid Spencera773bd52006-08-04 18:18:08 +00008760/* Override any GCC internal prototype to avoid an error.
8761 Use char because int might match the return type of a GCC
8762 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008763#ifdef __cplusplus
8764extern "C"
8765#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008766char opendir ();
8767int
8768main ()
8769{
Reid Spencera773bd52006-08-04 18:18:08 +00008770return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008771 ;
8772 return 0;
8773}
8774_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008775for ac_lib in '' dir; do
8776 if test -z "$ac_lib"; then
8777 ac_res="none required"
8778 else
8779 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008781 fi
8782 rm -f conftest.$ac_objext conftest$ac_exeext
8783if { (ac_try="$ac_link"
8784case "(($ac_try" in
8785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786 *) ac_try_echo=$ac_try;;
8787esac
8788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008790 ac_status=$?
8791 grep -v '^ *+' conftest.er1 >conftest.err
8792 rm -f conftest.er1
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008795 (exit $ac_status); } &&
8796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8797 { (case "(($ac_try" in
8798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8799 *) ac_try_echo=$ac_try;;
8800esac
8801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8802 (eval "$ac_try") 2>&5
8803 ac_status=$?
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); }; } &&
8806 { ac_try='test -s conftest$ac_exeext'
8807 { (case "(($ac_try" in
8808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8809 *) ac_try_echo=$ac_try;;
8810esac
8811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8812 (eval "$ac_try") 2>&5
8813 ac_status=$?
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008816 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008817else
8818 echo "$as_me: failed program was:" >&5
8819sed 's/^/| /' conftest.$ac_ext >&5
8820
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008821
8822fi
8823
Bill Wendlingebcceee2009-04-18 11:20:33 +00008824rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008825 conftest$ac_exeext
8826 if test "${ac_cv_search_opendir+set}" = set; then
8827 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008828fi
John Criswell7a73b802003-06-30 21:59:07 +00008829done
Reid Spencera773bd52006-08-04 18:18:08 +00008830if test "${ac_cv_search_opendir+set}" = set; then
8831 :
8832else
8833 ac_cv_search_opendir=no
8834fi
8835rm conftest.$ac_ext
8836LIBS=$ac_func_search_save_LIBS
8837fi
8838{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8839echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8840ac_res=$ac_cv_search_opendir
8841if test "$ac_res" != no; then
8842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008843
Reid Spencera773bd52006-08-04 18:18:08 +00008844fi
8845
8846else
8847 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8848echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8849if test "${ac_cv_search_opendir+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851else
8852 ac_func_search_save_LIBS=$LIBS
8853cat >conftest.$ac_ext <<_ACEOF
8854/* confdefs.h. */
8855_ACEOF
8856cat confdefs.h >>conftest.$ac_ext
8857cat >>conftest.$ac_ext <<_ACEOF
8858/* end confdefs.h. */
8859
8860/* Override any GCC internal prototype to avoid an error.
8861 Use char because int might match the return type of a GCC
8862 builtin and then its argument prototype would still apply. */
8863#ifdef __cplusplus
8864extern "C"
8865#endif
8866char opendir ();
8867int
8868main ()
8869{
8870return opendir ();
8871 ;
8872 return 0;
8873}
8874_ACEOF
8875for ac_lib in '' x; do
8876 if test -z "$ac_lib"; then
8877 ac_res="none required"
8878 else
8879 ac_res=-l$ac_lib
8880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8881 fi
8882 rm -f conftest.$ac_objext conftest$ac_exeext
8883if { (ac_try="$ac_link"
8884case "(($ac_try" in
8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886 *) ac_try_echo=$ac_try;;
8887esac
8888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889 (eval "$ac_link") 2>conftest.er1
8890 ac_status=$?
8891 grep -v '^ *+' conftest.er1 >conftest.err
8892 rm -f conftest.er1
8893 cat conftest.err >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008895 (exit $ac_status); } &&
8896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8897 { (case "(($ac_try" in
8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8900esac
8901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8902 (eval "$ac_try") 2>&5
8903 ac_status=$?
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; } &&
8906 { ac_try='test -s conftest$ac_exeext'
8907 { (case "(($ac_try" in
8908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909 *) ac_try_echo=$ac_try;;
8910esac
8911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8912 (eval "$ac_try") 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008916 ac_cv_search_opendir=$ac_res
8917else
8918 echo "$as_me: failed program was:" >&5
8919sed 's/^/| /' conftest.$ac_ext >&5
8920
8921
8922fi
8923
Bill Wendlingebcceee2009-04-18 11:20:33 +00008924rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008925 conftest$ac_exeext
8926 if test "${ac_cv_search_opendir+set}" = set; then
8927 break
8928fi
8929done
8930if test "${ac_cv_search_opendir+set}" = set; then
8931 :
8932else
8933 ac_cv_search_opendir=no
8934fi
8935rm conftest.$ac_ext
8936LIBS=$ac_func_search_save_LIBS
8937fi
8938{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8939echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8940ac_res=$ac_cv_search_opendir
8941if test "$ac_res" != no; then
8942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8943
8944fi
8945
8946fi
John Criswell7a73b802003-06-30 21:59:07 +00008947
8948
8949for ac_header in dlfcn.h
8950do
8951as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008956 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008957fi
Reid Spencera773bd52006-08-04 18:18:08 +00008958ac_res=`eval echo '${'$as_ac_Header'}'`
8959 { echo "$as_me:$LINENO: result: $ac_res" >&5
8960echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008961else
Brian Gaeke0a621332004-09-08 20:38:05 +00008962 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008963{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8964echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008965cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008966/* confdefs.h. */
8967_ACEOF
8968cat confdefs.h >>conftest.$ac_ext
8969cat >>conftest.$ac_ext <<_ACEOF
8970/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008971$ac_includes_default
8972#include <$ac_header>
8973_ACEOF
8974rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008975if { (ac_try="$ac_compile"
8976case "(($ac_try" in
8977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978 *) ac_try_echo=$ac_try;;
8979esac
8980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8981 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008982 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008983 grep -v '^ *+' conftest.er1 >conftest.err
8984 rm -f conftest.er1
8985 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008987 (exit $ac_status); } &&
8988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8989 { (case "(($ac_try" in
8990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8991 *) ac_try_echo=$ac_try;;
8992esac
8993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8994 (eval "$ac_try") 2>&5
8995 ac_status=$?
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; } &&
8998 { ac_try='test -s conftest.$ac_objext'
8999 { (case "(($ac_try" in
9000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001 *) ac_try_echo=$ac_try;;
9002esac
9003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_try") 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009008 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00009009else
9010 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009011sed 's/^/| /' conftest.$ac_ext >&5
9012
Reid Spencera773bd52006-08-04 18:18:08 +00009013 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00009014fi
Reid Spencera773bd52006-08-04 18:18:08 +00009015
9016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9018echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009019
9020# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00009021{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9022echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009023cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009024/* confdefs.h. */
9025_ACEOF
9026cat confdefs.h >>conftest.$ac_ext
9027cat >>conftest.$ac_ext <<_ACEOF
9028/* end confdefs.h. */
9029#include <$ac_header>
9030_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009031if { (ac_try="$ac_cpp conftest.$ac_ext"
9032case "(($ac_try" in
9033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034 *) ac_try_echo=$ac_try;;
9035esac
9036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009038 ac_status=$?
9039 grep -v '^ *+' conftest.er1 >conftest.err
9040 rm -f conftest.er1
9041 cat conftest.err >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009043 (exit $ac_status); } >/dev/null; then
9044 if test -s conftest.err; then
9045 ac_cpp_err=$ac_c_preproc_warn_flag
9046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9047 else
9048 ac_cpp_err=
9049 fi
9050else
9051 ac_cpp_err=yes
9052fi
9053if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009054 ac_header_preproc=yes
9055else
9056 echo "$as_me: failed program was:" >&5
9057sed 's/^/| /' conftest.$ac_ext >&5
9058
9059 ac_header_preproc=no
9060fi
Reid Spencera773bd52006-08-04 18:18:08 +00009061
Brian Gaeke0a621332004-09-08 20:38:05 +00009062rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009063{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9064echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009065
9066# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9068 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9070echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9072echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9073 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009074 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009075 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9077echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9079echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9081echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9083echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9085echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9087echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009088 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009089## ----------------------------------- ##
9090## Report this to llvmbugs@cs.uiuc.edu ##
9091## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009092_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009093 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009094 ;;
9095esac
Reid Spencera773bd52006-08-04 18:18:08 +00009096{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009099 echo $ECHO_N "(cached) $ECHO_C" >&6
9100else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009101 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009102fi
Reid Spencera773bd52006-08-04 18:18:08 +00009103ac_res=`eval echo '${'$as_ac_Header'}'`
9104 { echo "$as_me:$LINENO: result: $ac_res" >&5
9105echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009106
9107fi
John Criswell7a73b802003-06-30 21:59:07 +00009108if test `eval echo '${'$as_ac_Header'}'` = yes; then
9109 cat >>confdefs.h <<_ACEOF
9110#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9111_ACEOF
9112
9113fi
9114
9115done
9116
Reid Spencera773bd52006-08-04 18:18:08 +00009117# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009118if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009119 enableval=$enable_ltdl_install;
9120fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009121
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009122
Bill Wendlingebcceee2009-04-18 11:20:33 +00009123
9124
9125if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009126 INSTALL_LTDL_TRUE=
9127 INSTALL_LTDL_FALSE='#'
9128else
9129 INSTALL_LTDL_TRUE='#'
9130 INSTALL_LTDL_FALSE=
9131fi
9132
Bill Wendlingebcceee2009-04-18 11:20:33 +00009133
9134
9135if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009136 CONVENIENCE_LTDL_TRUE=
9137 CONVENIENCE_LTDL_FALSE='#'
9138else
9139 CONVENIENCE_LTDL_TRUE='#'
9140 CONVENIENCE_LTDL_FALSE=
9141fi
9142
9143
Reid Spencera773bd52006-08-04 18:18:08 +00009144{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9145echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009146library_names_spec=
9147libname_spec='lib$name'
9148soname_spec=
9149shrext_cmds=".so"
9150postinstall_cmds=
9151postuninstall_cmds=
9152finish_cmds=
9153finish_eval=
9154shlibpath_var=
9155shlibpath_overrides_runpath=unknown
9156version_type=none
9157dynamic_linker="$host_os ld.so"
9158sys_lib_dlsearch_path_spec="/lib /usr/lib"
9159if test "$GCC" = yes; then
9160 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9161 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9162 # if the path contains ";" then we assume it to be the separator
9163 # otherwise default to the standard path separator (i.e. ":") - it is
9164 # assumed that no part of a normal pathname contains ";" but that should
9165 # okay in the real world where ";" in dirpaths is itself problematic.
9166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9167 else
9168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9169 fi
9170else
9171 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9172fi
9173need_lib_prefix=unknown
9174hardcode_into_libs=no
9175
9176# when you set need_version to no, make sure it does not cause -set_version
9177# flags to be left without arguments
9178need_version=unknown
9179
9180case $host_os in
9181aix3*)
9182 version_type=linux
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9184 shlibpath_var=LIBPATH
9185
9186 # AIX 3 has no versioning support, so we append a major version to the name.
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 ;;
9189
9190aix4* | aix5*)
9191 version_type=linux
9192 need_lib_prefix=no
9193 need_version=no
9194 hardcode_into_libs=yes
9195 if test "$host_cpu" = ia64; then
9196 # AIX 5 supports IA64
9197 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9198 shlibpath_var=LD_LIBRARY_PATH
9199 else
9200 # With GCC up to 2.95.x, collect2 would create an import file
9201 # for dependence libraries. The import file would start with
9202 # the line `#! .'. This would cause the generated library to
9203 # depend on `.', always an invalid library. This was fixed in
9204 # development snapshots of GCC prior to 3.0.
9205 case $host_os in
9206 aix4 | aix4.[01] | aix4.[01].*)
9207 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9208 echo ' yes '
9209 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9210 :
9211 else
9212 can_build_shared=no
9213 fi
9214 ;;
9215 esac
9216 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9217 # soname into executable. Probably we can add versioning support to
9218 # collect2, so additional links can be useful in future.
9219 if test "$aix_use_runtimelinking" = yes; then
9220 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9221 # instead of lib<name>.a to let people know that these are not
9222 # typical AIX shared libraries.
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224 else
9225 # We preserve .a as extension for shared libraries through AIX4.2
9226 # and later when we are not doing run time linking.
9227 library_names_spec='${libname}${release}.a $libname.a'
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 fi
9230 shlibpath_var=LIBPATH
9231 fi
9232 ;;
9233
9234amigaos*)
9235 library_names_spec='$libname.ixlibrary $libname.a'
9236 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9237 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'
9238 ;;
9239
9240beos*)
9241 library_names_spec='${libname}${shared_ext}'
9242 dynamic_linker="$host_os ld.so"
9243 shlibpath_var=LIBRARY_PATH
9244 ;;
9245
9246bsdi[45]*)
9247 version_type=linux
9248 need_version=no
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250 soname_spec='${libname}${release}${shared_ext}$major'
9251 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9252 shlibpath_var=LD_LIBRARY_PATH
9253 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9254 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9255 # the default ld.so.conf also contains /usr/contrib/lib and
9256 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9257 # libtool to hard-code these into programs
9258 ;;
9259
9260cygwin* | mingw* | pw32*)
9261 version_type=windows
9262 shrext_cmds=".dll"
9263 need_version=no
9264 need_lib_prefix=no
9265
9266 case $GCC,$host_os in
9267 yes,cygwin* | yes,mingw* | yes,pw32*)
9268 library_names_spec='$libname.dll.a'
9269 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9270 postinstall_cmds='base_file=`basename \${file}`~
9271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9272 dldir=$destdir/`dirname \$dlpath`~
9273 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009274 $install_prog $dir/$dlname \$dldir/$dlname~
9275 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009276 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9277 dlpath=$dir/\$dldll~
9278 $rm \$dlpath'
9279 shlibpath_overrides_runpath=yes
9280
9281 case $host_os in
9282 cygwin*)
9283 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9284 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9285 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9286 ;;
9287 mingw*)
9288 # MinGW DLLs use traditional 'lib' prefix
9289 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9290 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9291 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9292 # It is most probably a Windows format PATH printed by
9293 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9294 # path with ; separators, and with drive letters. We can handle the
9295 # drive letters (cygwin fileutils understands them), so leave them,
9296 # especially as we might pass files found there to a mingw objdump,
9297 # which wouldn't understand a cygwinified path. Ahh.
9298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9299 else
9300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9301 fi
9302 ;;
9303 pw32*)
9304 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009305 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 +00009306 ;;
9307 esac
9308 ;;
9309
9310 *)
9311 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9312 ;;
9313 esac
9314 dynamic_linker='Win32 ld.exe'
9315 # FIXME: first we should search . and the directory the executable is in
9316 shlibpath_var=PATH
9317 ;;
9318
9319darwin* | rhapsody*)
9320 dynamic_linker="$host_os dyld"
9321 version_type=darwin
9322 need_lib_prefix=no
9323 need_version=no
9324 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9325 soname_spec='${libname}${release}${major}$shared_ext'
9326 shlibpath_overrides_runpath=yes
9327 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009328 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009329 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9330 if test "$GCC" = yes; then
9331 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"`
9332 else
9333 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9334 fi
9335 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9336 ;;
9337
9338dgux*)
9339 version_type=linux
9340 need_lib_prefix=no
9341 need_version=no
9342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9343 soname_spec='${libname}${release}${shared_ext}$major'
9344 shlibpath_var=LD_LIBRARY_PATH
9345 ;;
9346
9347freebsd1*)
9348 dynamic_linker=no
9349 ;;
9350
9351kfreebsd*-gnu)
9352 version_type=linux
9353 need_lib_prefix=no
9354 need_version=no
9355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9356 soname_spec='${libname}${release}${shared_ext}$major'
9357 shlibpath_var=LD_LIBRARY_PATH
9358 shlibpath_overrides_runpath=no
9359 hardcode_into_libs=yes
9360 dynamic_linker='GNU ld.so'
9361 ;;
9362
Reid Spencera773bd52006-08-04 18:18:08 +00009363freebsd* | dragonfly*)
9364 # DragonFly does not have aout. When/if they implement a new
9365 # versioning mechanism, adjust this.
9366 if test -x /usr/bin/objformat; then
9367 objformat=`/usr/bin/objformat`
9368 else
9369 case $host_os in
9370 freebsd[123]*) objformat=aout ;;
9371 *) objformat=elf ;;
9372 esac
9373 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009374 version_type=freebsd-$objformat
9375 case $version_type in
9376 freebsd-elf*)
9377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9378 need_version=no
9379 need_lib_prefix=no
9380 ;;
9381 freebsd-*)
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9383 need_version=yes
9384 ;;
9385 esac
9386 shlibpath_var=LD_LIBRARY_PATH
9387 case $host_os in
9388 freebsd2*)
9389 shlibpath_overrides_runpath=yes
9390 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009391 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009392 shlibpath_overrides_runpath=yes
9393 hardcode_into_libs=yes
9394 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009395 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9396 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009397 shlibpath_overrides_runpath=no
9398 hardcode_into_libs=yes
9399 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009400 freebsd*) # from 4.6 on
9401 shlibpath_overrides_runpath=yes
9402 hardcode_into_libs=yes
9403 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009404 esac
9405 ;;
9406
9407gnu*)
9408 version_type=linux
9409 need_lib_prefix=no
9410 need_version=no
9411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9412 soname_spec='${libname}${release}${shared_ext}$major'
9413 shlibpath_var=LD_LIBRARY_PATH
9414 hardcode_into_libs=yes
9415 ;;
9416
9417hpux9* | hpux10* | hpux11*)
9418 # Give a soname corresponding to the major version so that dld.sl refuses to
9419 # link against other versions.
9420 version_type=sunos
9421 need_lib_prefix=no
9422 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009423 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009424 ia64*)
9425 shrext_cmds='.so'
9426 hardcode_into_libs=yes
9427 dynamic_linker="$host_os dld.so"
9428 shlibpath_var=LD_LIBRARY_PATH
9429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431 soname_spec='${libname}${release}${shared_ext}$major'
9432 if test "X$HPUX_IA64_MODE" = X32; then
9433 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9434 else
9435 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9436 fi
9437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9438 ;;
9439 hppa*64*)
9440 shrext_cmds='.sl'
9441 hardcode_into_libs=yes
9442 dynamic_linker="$host_os dld.sl"
9443 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9444 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9446 soname_spec='${libname}${release}${shared_ext}$major'
9447 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9449 ;;
9450 *)
9451 shrext_cmds='.sl'
9452 dynamic_linker="$host_os dld.sl"
9453 shlibpath_var=SHLIB_PATH
9454 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 ;;
9458 esac
9459 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9460 postinstall_cmds='chmod 555 $lib'
9461 ;;
9462
Reid Spencera773bd52006-08-04 18:18:08 +00009463interix3*)
9464 version_type=linux
9465 need_lib_prefix=no
9466 need_version=no
9467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9468 soname_spec='${libname}${release}${shared_ext}$major'
9469 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9470 shlibpath_var=LD_LIBRARY_PATH
9471 shlibpath_overrides_runpath=no
9472 hardcode_into_libs=yes
9473 ;;
9474
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009475irix5* | irix6* | nonstopux*)
9476 case $host_os in
9477 nonstopux*) version_type=nonstopux ;;
9478 *)
9479 if test "$lt_cv_prog_gnu_ld" = yes; then
9480 version_type=linux
9481 else
9482 version_type=irix
9483 fi ;;
9484 esac
9485 need_lib_prefix=no
9486 need_version=no
9487 soname_spec='${libname}${release}${shared_ext}$major'
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9489 case $host_os in
9490 irix5* | nonstopux*)
9491 libsuff= shlibsuff=
9492 ;;
9493 *)
9494 case $LD in # libtool.m4 will add one of these switches to LD
9495 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9496 libsuff= shlibsuff= libmagic=32-bit;;
9497 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9498 libsuff=32 shlibsuff=N32 libmagic=N32;;
9499 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9500 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9501 *) libsuff= shlibsuff= libmagic=never-match;;
9502 esac
9503 ;;
9504 esac
9505 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9506 shlibpath_overrides_runpath=no
9507 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9508 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9509 hardcode_into_libs=yes
9510 ;;
9511
9512# No shared lib support for Linux oldld, aout, or coff.
9513linux*oldld* | linux*aout* | linux*coff*)
9514 dynamic_linker=no
9515 ;;
9516
9517# This must be Linux ELF.
9518linux*)
9519 version_type=linux
9520 need_lib_prefix=no
9521 need_version=no
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9525 shlibpath_var=LD_LIBRARY_PATH
9526 shlibpath_overrides_runpath=no
9527 # This implies no fast_install, which is unacceptable.
9528 # Some rework will be needed to allow for fast_install
9529 # before this can be enabled.
9530 hardcode_into_libs=yes
9531
9532 # Append ld.so.conf contents to the search path
9533 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009534 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 +00009535 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9536 fi
9537
9538 # We used to test for /lib/ld.so.1 and disable shared libraries on
9539 # powerpc, because MkLinux only supported shared libraries with the
9540 # GNU dynamic linker. Since this was broken with cross compilers,
9541 # most powerpc-linux boxes support dynamic linking these days and
9542 # people can always --disable-shared, the test was removed, and we
9543 # assume the GNU/Linux dynamic linker is in use.
9544 dynamic_linker='GNU/Linux ld.so'
9545 ;;
9546
9547knetbsd*-gnu)
9548 version_type=linux
9549 need_lib_prefix=no
9550 need_version=no
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9552 soname_spec='${libname}${release}${shared_ext}$major'
9553 shlibpath_var=LD_LIBRARY_PATH
9554 shlibpath_overrides_runpath=no
9555 hardcode_into_libs=yes
9556 dynamic_linker='GNU ld.so'
9557 ;;
9558
9559netbsd*)
9560 version_type=sunos
9561 need_lib_prefix=no
9562 need_version=no
9563 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9565 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9566 dynamic_linker='NetBSD (a.out) ld.so'
9567 else
9568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9569 soname_spec='${libname}${release}${shared_ext}$major'
9570 dynamic_linker='NetBSD ld.elf_so'
9571 fi
9572 shlibpath_var=LD_LIBRARY_PATH
9573 shlibpath_overrides_runpath=yes
9574 hardcode_into_libs=yes
9575 ;;
9576
9577newsos6)
9578 version_type=linux
9579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9580 shlibpath_var=LD_LIBRARY_PATH
9581 shlibpath_overrides_runpath=yes
9582 ;;
9583
9584nto-qnx*)
9585 version_type=linux
9586 need_lib_prefix=no
9587 need_version=no
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589 soname_spec='${libname}${release}${shared_ext}$major'
9590 shlibpath_var=LD_LIBRARY_PATH
9591 shlibpath_overrides_runpath=yes
9592 ;;
9593
9594openbsd*)
9595 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009596 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009597 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009598 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9599 case $host_os in
9600 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9601 *) need_version=no ;;
9602 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9605 shlibpath_var=LD_LIBRARY_PATH
9606 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9607 case $host_os in
9608 openbsd2.[89] | openbsd2.[89].*)
9609 shlibpath_overrides_runpath=no
9610 ;;
9611 *)
9612 shlibpath_overrides_runpath=yes
9613 ;;
9614 esac
9615 else
9616 shlibpath_overrides_runpath=yes
9617 fi
9618 ;;
9619
9620os2*)
9621 libname_spec='$name'
9622 shrext_cmds=".dll"
9623 need_lib_prefix=no
9624 library_names_spec='$libname${shared_ext} $libname.a'
9625 dynamic_linker='OS/2 ld.exe'
9626 shlibpath_var=LIBPATH
9627 ;;
9628
9629osf3* | osf4* | osf5*)
9630 version_type=osf
9631 need_lib_prefix=no
9632 need_version=no
9633 soname_spec='${libname}${release}${shared_ext}$major'
9634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9635 shlibpath_var=LD_LIBRARY_PATH
9636 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9637 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9638 ;;
9639
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009640solaris*)
9641 version_type=linux
9642 need_lib_prefix=no
9643 need_version=no
9644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9645 soname_spec='${libname}${release}${shared_ext}$major'
9646 shlibpath_var=LD_LIBRARY_PATH
9647 shlibpath_overrides_runpath=yes
9648 hardcode_into_libs=yes
9649 # ldd complains unless libraries are executable
9650 postinstall_cmds='chmod +x $lib'
9651 ;;
9652
9653sunos4*)
9654 version_type=sunos
9655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9656 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9657 shlibpath_var=LD_LIBRARY_PATH
9658 shlibpath_overrides_runpath=yes
9659 if test "$with_gnu_ld" = yes; then
9660 need_lib_prefix=no
9661 fi
9662 need_version=yes
9663 ;;
9664
Reid Spencera773bd52006-08-04 18:18:08 +00009665sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009666 version_type=linux
9667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668 soname_spec='${libname}${release}${shared_ext}$major'
9669 shlibpath_var=LD_LIBRARY_PATH
9670 case $host_vendor in
9671 sni)
9672 shlibpath_overrides_runpath=no
9673 need_lib_prefix=no
9674 export_dynamic_flag_spec='${wl}-Blargedynsym'
9675 runpath_var=LD_RUN_PATH
9676 ;;
9677 siemens)
9678 need_lib_prefix=no
9679 ;;
9680 motorola)
9681 need_lib_prefix=no
9682 need_version=no
9683 shlibpath_overrides_runpath=no
9684 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9685 ;;
9686 esac
9687 ;;
9688
9689sysv4*MP*)
9690 if test -d /usr/nec ;then
9691 version_type=linux
9692 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9693 soname_spec='$libname${shared_ext}.$major'
9694 shlibpath_var=LD_LIBRARY_PATH
9695 fi
9696 ;;
9697
Reid Spencera773bd52006-08-04 18:18:08 +00009698sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9699 version_type=freebsd-elf
9700 need_lib_prefix=no
9701 need_version=no
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 shlibpath_var=LD_LIBRARY_PATH
9705 hardcode_into_libs=yes
9706 if test "$with_gnu_ld" = yes; then
9707 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9708 shlibpath_overrides_runpath=no
9709 else
9710 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9711 shlibpath_overrides_runpath=yes
9712 case $host_os in
9713 sco3.2v5*)
9714 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9715 ;;
9716 esac
9717 fi
9718 sys_lib_dlsearch_path_spec='/usr/lib'
9719 ;;
9720
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009721uts4*)
9722 version_type=linux
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724 soname_spec='${libname}${release}${shared_ext}$major'
9725 shlibpath_var=LD_LIBRARY_PATH
9726 ;;
9727
9728*)
9729 dynamic_linker=no
9730 ;;
9731esac
Reid Spencera773bd52006-08-04 18:18:08 +00009732{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9733echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009734test "$dynamic_linker" = no && can_build_shared=no
9735
Reid Spencera773bd52006-08-04 18:18:08 +00009736variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9737if test "$GCC" = yes; then
9738 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9739fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009740
Reid Spencera773bd52006-08-04 18:18:08 +00009741
9742{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9743echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009744if test "${libltdl_cv_shlibext+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9746else
9747
9748module=yes
9749eval libltdl_cv_shlibext=$shrext_cmds
9750
9751fi
Reid Spencera773bd52006-08-04 18:18:08 +00009752{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9753echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009754if test -n "$libltdl_cv_shlibext"; then
9755
9756cat >>confdefs.h <<_ACEOF
9757#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9758_ACEOF
9759
9760fi
9761
9762
Reid Spencera773bd52006-08-04 18:18:08 +00009763{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9764echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009765if test "${libltdl_cv_shlibpath_var+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9767else
9768 libltdl_cv_shlibpath_var="$shlibpath_var"
9769fi
Reid Spencera773bd52006-08-04 18:18:08 +00009770{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9771echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009772if test -n "$libltdl_cv_shlibpath_var"; then
9773
9774cat >>confdefs.h <<_ACEOF
9775#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9776_ACEOF
9777
9778fi
9779
9780
Reid Spencera773bd52006-08-04 18:18:08 +00009781{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9782echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009783if test "${libltdl_cv_sys_search_path+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9785else
9786 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9787fi
Reid Spencera773bd52006-08-04 18:18:08 +00009788{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9789echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009790if test -n "$libltdl_cv_sys_search_path"; then
9791 sys_search_path=
9792 for dir in $libltdl_cv_sys_search_path; do
9793 if test -z "$sys_search_path"; then
9794 sys_search_path="$dir"
9795 else
9796 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9797 fi
9798 done
9799
9800cat >>confdefs.h <<_ACEOF
9801#define LTDL_SYSSEARCHPATH "$sys_search_path"
9802_ACEOF
9803
9804fi
9805
Reid Spencera773bd52006-08-04 18:18:08 +00009806{ echo "$as_me:$LINENO: checking for objdir" >&5
9807echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009808if test "${libltdl_cv_objdir+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9810else
9811 libltdl_cv_objdir="$objdir"
9812 if test -n "$objdir"; then
9813 :
9814 else
9815 rm -f .libs 2>/dev/null
9816 mkdir .libs 2>/dev/null
9817 if test -d .libs; then
9818 libltdl_cv_objdir=.libs
9819 else
9820 # MS-DOS does not allow filenames that begin with a dot.
9821 libltdl_cv_objdir=_libs
9822 fi
9823 rmdir .libs 2>/dev/null
9824 fi
9825
9826fi
Reid Spencera773bd52006-08-04 18:18:08 +00009827{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9828echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009829
9830cat >>confdefs.h <<_ACEOF
9831#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9832_ACEOF
9833
9834
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009835
9836
9837
9838
9839# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009840{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9841echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009842if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9844else
9845
9846# These are sane defaults that work on at least a few old systems.
9847# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9848
9849# Character class describing NM global symbol codes.
9850symcode='[BCDEGRST]'
9851
9852# Regexp to match symbols that can be accessed directly from C.
9853sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9854
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009855# Transform an extracted symbol line into a proper C declaration
9856lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9857
9858# Transform an extracted symbol line into symbol name and symbol address
9859lt_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'"
9860
9861# Define system-specific variables.
9862case $host_os in
9863aix*)
9864 symcode='[BCDT]'
9865 ;;
9866cygwin* | mingw* | pw32*)
9867 symcode='[ABCDGISTW]'
9868 ;;
9869hpux*) # Its linker distinguishes data from code symbols
9870 if test "$host_cpu" = ia64; then
9871 symcode='[ABCDEGRST]'
9872 fi
9873 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9874 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'"
9875 ;;
9876linux*)
9877 if test "$host_cpu" = ia64; then
9878 symcode='[ABCDGIRSTW]'
9879 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9880 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'"
9881 fi
9882 ;;
9883irix* | nonstopux*)
9884 symcode='[BCDEGRST]'
9885 ;;
9886osf*)
9887 symcode='[BCDEGQRST]'
9888 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009889solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009890 symcode='[BDRT]'
9891 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009892sco3.2v5*)
9893 symcode='[DT]'
9894 ;;
9895sysv4.2uw2*)
9896 symcode='[DT]'
9897 ;;
9898sysv5* | sco5v6* | unixware* | OpenUNIX*)
9899 symcode='[ABDT]'
9900 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009901sysv4)
9902 symcode='[DFNSTU]'
9903 ;;
9904esac
9905
9906# Handle CRLF in mingw tool chain
9907opt_cr=
9908case $build_os in
9909mingw*)
9910 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9911 ;;
9912esac
9913
9914# If we're using GNU nm, then use its standard symbol codes.
9915case `$NM -V 2>&1` in
9916*GNU* | *'with BFD'*)
9917 symcode='[ABCDGIRSTW]' ;;
9918esac
9919
9920# Try without a prefix undercore, then with it.
9921for ac_symprfx in "" "_"; do
9922
Reid Spencera773bd52006-08-04 18:18:08 +00009923 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9924 symxfrm="\\1 $ac_symprfx\\2 \\2"
9925
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009926 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009927 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 +00009928
9929 # Check to see that the pipe works correctly.
9930 pipe_works=no
9931
9932 rm -f conftest*
9933 cat > conftest.$ac_ext <<EOF
9934#ifdef __cplusplus
9935extern "C" {
9936#endif
9937char nm_test_var;
9938void nm_test_func(){}
9939#ifdef __cplusplus
9940}
9941#endif
9942int main(){nm_test_var='a';nm_test_func();return(0);}
9943EOF
9944
9945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9946 (eval $ac_compile) 2>&5
9947 ac_status=$?
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; then
9950 # Now try to grab the symbols.
9951 nlist=conftest.nm
9952 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9953 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9954 ac_status=$?
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } && test -s "$nlist"; then
9957 # Try sorting and uniquifying the output.
9958 if sort "$nlist" | uniq > "$nlist"T; then
9959 mv -f "$nlist"T "$nlist"
9960 else
9961 rm -f "$nlist"T
9962 fi
9963
9964 # Make sure that we snagged all the symbols we need.
9965 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9966 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9967 cat <<EOF > conftest.$ac_ext
9968#ifdef __cplusplus
9969extern "C" {
9970#endif
9971
9972EOF
9973 # Now generate the symbol file.
9974 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9975
9976 cat <<EOF >> conftest.$ac_ext
9977#if defined (__STDC__) && __STDC__
9978# define lt_ptr_t void *
9979#else
9980# define lt_ptr_t char *
9981# define const
9982#endif
9983
9984/* The mapping between symbol names and symbols. */
9985const struct {
9986 const char *name;
9987 lt_ptr_t address;
9988}
9989lt_preloaded_symbols[] =
9990{
9991EOF
9992 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9993 cat <<\EOF >> conftest.$ac_ext
9994 {0, (lt_ptr_t) 0}
9995};
9996
9997#ifdef __cplusplus
9998}
9999#endif
10000EOF
10001 # Now try linking the two files.
10002 mv conftest.$ac_objext conftstm.$ac_objext
10003 lt_save_LIBS="$LIBS"
10004 lt_save_CFLAGS="$CFLAGS"
10005 LIBS="conftstm.$ac_objext"
10006 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10008 (eval $ac_link) 2>&5
10009 ac_status=$?
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10012 pipe_works=yes
10013 fi
10014 LIBS="$lt_save_LIBS"
10015 CFLAGS="$lt_save_CFLAGS"
10016 else
10017 echo "cannot find nm_test_func in $nlist" >&5
10018 fi
10019 else
10020 echo "cannot find nm_test_var in $nlist" >&5
10021 fi
10022 else
10023 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10024 fi
10025 else
10026 echo "$progname: failed program was:" >&5
10027 cat conftest.$ac_ext >&5
10028 fi
10029 rm -f conftest* conftst*
10030
10031 # Do not use the global_symbol_pipe unless it works.
10032 if test "$pipe_works" = yes; then
10033 break
10034 else
10035 lt_cv_sys_global_symbol_pipe=
10036 fi
10037done
10038
10039fi
10040
10041if test -z "$lt_cv_sys_global_symbol_pipe"; then
10042 lt_cv_sys_global_symbol_to_cdecl=
10043fi
10044if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010045 { echo "$as_me:$LINENO: result: failed" >&5
10046echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010047else
Reid Spencera773bd52006-08-04 18:18:08 +000010048 { echo "$as_me:$LINENO: result: ok" >&5
10049echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010050fi
10051
10052
Reid Spencera773bd52006-08-04 18:18:08 +000010053{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10054echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010055if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10057else
10058 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10059 libltdl_cv_preloaded_symbols=yes
10060 else
10061 libltdl_cv_preloaded_symbols=no
10062 fi
10063
10064fi
Reid Spencera773bd52006-08-04 18:18:08 +000010065{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10066echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010067if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10068
10069cat >>confdefs.h <<\_ACEOF
10070#define HAVE_PRELOADED_SYMBOLS 1
10071_ACEOF
10072
10073fi
10074
10075LIBADD_DL=
10076
10077ac_ext=c
10078ac_cpp='$CPP $CPPFLAGS'
10079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10081ac_compiler_gnu=$ac_cv_c_compiler_gnu
10082
10083
Reid Spencera773bd52006-08-04 18:18:08 +000010084{ echo "$as_me:$LINENO: checking for shl_load" >&5
10085echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010086if test "${ac_cv_func_shl_load+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10088else
10089 cat >conftest.$ac_ext <<_ACEOF
10090/* confdefs.h. */
10091_ACEOF
10092cat confdefs.h >>conftest.$ac_ext
10093cat >>conftest.$ac_ext <<_ACEOF
10094/* end confdefs.h. */
10095/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10097#define shl_load innocuous_shl_load
10098
10099/* System header to define __stub macros and hopefully few prototypes,
10100 which can conflict with char shl_load (); below.
10101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10102 <limits.h> exists even on freestanding compilers. */
10103
10104#ifdef __STDC__
10105# include <limits.h>
10106#else
10107# include <assert.h>
10108#endif
10109
10110#undef shl_load
10111
Reid Spencera773bd52006-08-04 18:18:08 +000010112/* Override any GCC internal prototype to avoid an error.
10113 Use char because int might match the return type of a GCC
10114 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010115#ifdef __cplusplus
10116extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010117#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010118char shl_load ();
10119/* The GNU C library defines this for functions which it implements
10120 to always fail with ENOSYS. Some functions are actually named
10121 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010122#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010123choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010124#endif
10125
10126int
10127main ()
10128{
Reid Spencera773bd52006-08-04 18:18:08 +000010129return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010130 ;
10131 return 0;
10132}
10133_ACEOF
10134rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010135if { (ac_try="$ac_link"
10136case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10139esac
10140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010142 ac_status=$?
10143 grep -v '^ *+' conftest.er1 >conftest.err
10144 rm -f conftest.er1
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010147 (exit $ac_status); } &&
10148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10149 { (case "(($ac_try" in
10150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151 *) ac_try_echo=$ac_try;;
10152esac
10153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154 (eval "$ac_try") 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest$ac_exeext'
10159 { (case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10162esac
10163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164 (eval "$ac_try") 2>&5
10165 ac_status=$?
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010168 ac_cv_func_shl_load=yes
10169else
10170 echo "$as_me: failed program was:" >&5
10171sed 's/^/| /' conftest.$ac_ext >&5
10172
Reid Spencera773bd52006-08-04 18:18:08 +000010173 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010174fi
Reid Spencera773bd52006-08-04 18:18:08 +000010175
Bill Wendlingebcceee2009-04-18 11:20:33 +000010176rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010177 conftest$ac_exeext conftest.$ac_ext
10178fi
Reid Spencera773bd52006-08-04 18:18:08 +000010179{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10180echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010181if test $ac_cv_func_shl_load = yes; then
10182
10183cat >>confdefs.h <<\_ACEOF
10184#define HAVE_SHL_LOAD 1
10185_ACEOF
10186
10187else
Reid Spencera773bd52006-08-04 18:18:08 +000010188 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10189echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010190if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10192else
10193 ac_check_lib_save_LIBS=$LIBS
10194LIBS="-ldld $LIBS"
10195cat >conftest.$ac_ext <<_ACEOF
10196/* confdefs.h. */
10197_ACEOF
10198cat confdefs.h >>conftest.$ac_ext
10199cat >>conftest.$ac_ext <<_ACEOF
10200/* end confdefs.h. */
10201
Reid Spencera773bd52006-08-04 18:18:08 +000010202/* Override any GCC internal prototype to avoid an error.
10203 Use char because int might match the return type of a GCC
10204 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010205#ifdef __cplusplus
10206extern "C"
10207#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010208char shl_load ();
10209int
10210main ()
10211{
Reid Spencera773bd52006-08-04 18:18:08 +000010212return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010213 ;
10214 return 0;
10215}
10216_ACEOF
10217rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010218if { (ac_try="$ac_link"
10219case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10222esac
10223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010225 ac_status=$?
10226 grep -v '^ *+' conftest.er1 >conftest.err
10227 rm -f conftest.er1
10228 cat conftest.err >&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010230 (exit $ac_status); } &&
10231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10232 { (case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10235esac
10236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_try") 2>&5
10238 ac_status=$?
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; } &&
10241 { ac_try='test -s conftest$ac_exeext'
10242 { (case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10245esac
10246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_try") 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010251 ac_cv_lib_dld_shl_load=yes
10252else
10253 echo "$as_me: failed program was:" >&5
10254sed 's/^/| /' conftest.$ac_ext >&5
10255
Reid Spencera773bd52006-08-04 18:18:08 +000010256 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010257fi
Reid Spencera773bd52006-08-04 18:18:08 +000010258
Bill Wendlingebcceee2009-04-18 11:20:33 +000010259rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010260 conftest$ac_exeext conftest.$ac_ext
10261LIBS=$ac_check_lib_save_LIBS
10262fi
Reid Spencera773bd52006-08-04 18:18:08 +000010263{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10264echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010265if test $ac_cv_lib_dld_shl_load = yes; then
10266
10267cat >>confdefs.h <<\_ACEOF
10268#define HAVE_SHL_LOAD 1
10269_ACEOF
10270
10271 LIBADD_DL="$LIBADD_DL -ldld"
10272else
Reid Spencera773bd52006-08-04 18:18:08 +000010273 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10274echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010275if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10277else
10278 ac_check_lib_save_LIBS=$LIBS
10279LIBS="-ldl $LIBS"
10280cat >conftest.$ac_ext <<_ACEOF
10281/* confdefs.h. */
10282_ACEOF
10283cat confdefs.h >>conftest.$ac_ext
10284cat >>conftest.$ac_ext <<_ACEOF
10285/* end confdefs.h. */
10286
Reid Spencera773bd52006-08-04 18:18:08 +000010287/* Override any GCC internal prototype to avoid an error.
10288 Use char because int might match the return type of a GCC
10289 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010290#ifdef __cplusplus
10291extern "C"
10292#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010293char dlopen ();
10294int
10295main ()
10296{
Reid Spencera773bd52006-08-04 18:18:08 +000010297return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010298 ;
10299 return 0;
10300}
10301_ACEOF
10302rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010303if { (ac_try="$ac_link"
10304case "(($ac_try" in
10305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306 *) ac_try_echo=$ac_try;;
10307esac
10308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010310 ac_status=$?
10311 grep -v '^ *+' conftest.er1 >conftest.err
10312 rm -f conftest.er1
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010315 (exit $ac_status); } &&
10316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10317 { (case "(($ac_try" in
10318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10319 *) ac_try_echo=$ac_try;;
10320esac
10321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10322 (eval "$ac_try") 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; } &&
10326 { ac_try='test -s conftest$ac_exeext'
10327 { (case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10330esac
10331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_try") 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010336 ac_cv_lib_dl_dlopen=yes
10337else
10338 echo "$as_me: failed program was:" >&5
10339sed 's/^/| /' conftest.$ac_ext >&5
10340
Reid Spencera773bd52006-08-04 18:18:08 +000010341 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010342fi
Reid Spencera773bd52006-08-04 18:18:08 +000010343
Bill Wendlingebcceee2009-04-18 11:20:33 +000010344rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010345 conftest$ac_exeext conftest.$ac_ext
10346LIBS=$ac_check_lib_save_LIBS
10347fi
Reid Spencera773bd52006-08-04 18:18:08 +000010348{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10349echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010350if test $ac_cv_lib_dl_dlopen = yes; then
10351
10352cat >>confdefs.h <<\_ACEOF
10353#define HAVE_LIBDL 1
10354_ACEOF
10355
10356 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10357else
10358 cat >conftest.$ac_ext <<_ACEOF
10359/* confdefs.h. */
10360_ACEOF
10361cat confdefs.h >>conftest.$ac_ext
10362cat >>conftest.$ac_ext <<_ACEOF
10363/* end confdefs.h. */
10364#if HAVE_DLFCN_H
10365# include <dlfcn.h>
10366#endif
10367
10368int
10369main ()
10370{
10371dlopen(0, 0);
10372 ;
10373 return 0;
10374}
10375_ACEOF
10376rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010377if { (ac_try="$ac_link"
10378case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10381esac
10382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010384 ac_status=$?
10385 grep -v '^ *+' conftest.er1 >conftest.err
10386 rm -f conftest.er1
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010389 (exit $ac_status); } &&
10390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10391 { (case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10394esac
10395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396 (eval "$ac_try") 2>&5
10397 ac_status=$?
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; } &&
10400 { ac_try='test -s conftest$ac_exeext'
10401 { (case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10404esac
10405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_try") 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010410
10411cat >>confdefs.h <<\_ACEOF
10412#define HAVE_LIBDL 1
10413_ACEOF
10414 libltdl_cv_func_dlopen="yes"
10415else
10416 echo "$as_me: failed program was:" >&5
10417sed 's/^/| /' conftest.$ac_ext >&5
10418
Reid Spencera773bd52006-08-04 18:18:08 +000010419 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10420echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010421if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10423else
10424 ac_check_lib_save_LIBS=$LIBS
10425LIBS="-lsvld $LIBS"
10426cat >conftest.$ac_ext <<_ACEOF
10427/* confdefs.h. */
10428_ACEOF
10429cat confdefs.h >>conftest.$ac_ext
10430cat >>conftest.$ac_ext <<_ACEOF
10431/* end confdefs.h. */
10432
Reid Spencera773bd52006-08-04 18:18:08 +000010433/* Override any GCC internal prototype to avoid an error.
10434 Use char because int might match the return type of a GCC
10435 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010436#ifdef __cplusplus
10437extern "C"
10438#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010439char dlopen ();
10440int
10441main ()
10442{
Reid Spencera773bd52006-08-04 18:18:08 +000010443return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010444 ;
10445 return 0;
10446}
10447_ACEOF
10448rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010449if { (ac_try="$ac_link"
10450case "(($ac_try" in
10451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452 *) ac_try_echo=$ac_try;;
10453esac
10454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010456 ac_status=$?
10457 grep -v '^ *+' conftest.er1 >conftest.err
10458 rm -f conftest.er1
10459 cat conftest.err >&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010461 (exit $ac_status); } &&
10462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10463 { (case "(($ac_try" in
10464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465 *) ac_try_echo=$ac_try;;
10466esac
10467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468 (eval "$ac_try") 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; } &&
10472 { ac_try='test -s conftest$ac_exeext'
10473 { (case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10476esac
10477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478 (eval "$ac_try") 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010482 ac_cv_lib_svld_dlopen=yes
10483else
10484 echo "$as_me: failed program was:" >&5
10485sed 's/^/| /' conftest.$ac_ext >&5
10486
Reid Spencera773bd52006-08-04 18:18:08 +000010487 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010488fi
Reid Spencera773bd52006-08-04 18:18:08 +000010489
Bill Wendlingebcceee2009-04-18 11:20:33 +000010490rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491 conftest$ac_exeext conftest.$ac_ext
10492LIBS=$ac_check_lib_save_LIBS
10493fi
Reid Spencera773bd52006-08-04 18:18:08 +000010494{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10495echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010496if test $ac_cv_lib_svld_dlopen = yes; then
10497
10498cat >>confdefs.h <<\_ACEOF
10499#define HAVE_LIBDL 1
10500_ACEOF
10501
10502 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10503else
Reid Spencera773bd52006-08-04 18:18:08 +000010504 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10505echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010506if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10508else
10509 ac_check_lib_save_LIBS=$LIBS
10510LIBS="-ldld $LIBS"
10511cat >conftest.$ac_ext <<_ACEOF
10512/* confdefs.h. */
10513_ACEOF
10514cat confdefs.h >>conftest.$ac_ext
10515cat >>conftest.$ac_ext <<_ACEOF
10516/* end confdefs.h. */
10517
Reid Spencera773bd52006-08-04 18:18:08 +000010518/* Override any GCC internal prototype to avoid an error.
10519 Use char because int might match the return type of a GCC
10520 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010521#ifdef __cplusplus
10522extern "C"
10523#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010524char dld_link ();
10525int
10526main ()
10527{
Reid Spencera773bd52006-08-04 18:18:08 +000010528return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010529 ;
10530 return 0;
10531}
10532_ACEOF
10533rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010534if { (ac_try="$ac_link"
10535case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10538esac
10539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010541 ac_status=$?
10542 grep -v '^ *+' conftest.er1 >conftest.err
10543 rm -f conftest.er1
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010546 (exit $ac_status); } &&
10547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10548 { (case "(($ac_try" in
10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550 *) ac_try_echo=$ac_try;;
10551esac
10552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553 (eval "$ac_try") 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; } &&
10557 { ac_try='test -s conftest$ac_exeext'
10558 { (case "(($ac_try" in
10559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10561esac
10562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563 (eval "$ac_try") 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010567 ac_cv_lib_dld_dld_link=yes
10568else
10569 echo "$as_me: failed program was:" >&5
10570sed 's/^/| /' conftest.$ac_ext >&5
10571
Reid Spencera773bd52006-08-04 18:18:08 +000010572 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010573fi
Reid Spencera773bd52006-08-04 18:18:08 +000010574
Bill Wendlingebcceee2009-04-18 11:20:33 +000010575rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010576 conftest$ac_exeext conftest.$ac_ext
10577LIBS=$ac_check_lib_save_LIBS
10578fi
Reid Spencera773bd52006-08-04 18:18:08 +000010579{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10580echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010581if test $ac_cv_lib_dld_dld_link = yes; then
10582
10583cat >>confdefs.h <<\_ACEOF
10584#define HAVE_DLD 1
10585_ACEOF
10586
10587 LIBADD_DL="$LIBADD_DL -ldld"
10588else
Reid Spencera773bd52006-08-04 18:18:08 +000010589 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10590echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010591if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
10593else
10594 cat >conftest.$ac_ext <<_ACEOF
10595/* confdefs.h. */
10596_ACEOF
10597cat confdefs.h >>conftest.$ac_ext
10598cat >>conftest.$ac_ext <<_ACEOF
10599/* end confdefs.h. */
10600/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10602#define _dyld_func_lookup innocuous__dyld_func_lookup
10603
10604/* System header to define __stub macros and hopefully few prototypes,
10605 which can conflict with char _dyld_func_lookup (); below.
10606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10607 <limits.h> exists even on freestanding compilers. */
10608
10609#ifdef __STDC__
10610# include <limits.h>
10611#else
10612# include <assert.h>
10613#endif
10614
10615#undef _dyld_func_lookup
10616
Reid Spencera773bd52006-08-04 18:18:08 +000010617/* Override any GCC internal prototype to avoid an error.
10618 Use char because int might match the return type of a GCC
10619 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010620#ifdef __cplusplus
10621extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010622#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010623char _dyld_func_lookup ();
10624/* The GNU C library defines this for functions which it implements
10625 to always fail with ENOSYS. Some functions are actually named
10626 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010627#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010628choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010629#endif
10630
10631int
10632main ()
10633{
Reid Spencera773bd52006-08-04 18:18:08 +000010634return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010635 ;
10636 return 0;
10637}
10638_ACEOF
10639rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010640if { (ac_try="$ac_link"
10641case "(($ac_try" in
10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10644esac
10645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010647 ac_status=$?
10648 grep -v '^ *+' conftest.er1 >conftest.err
10649 rm -f conftest.er1
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010652 (exit $ac_status); } &&
10653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10654 { (case "(($ac_try" in
10655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656 *) ac_try_echo=$ac_try;;
10657esac
10658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659 (eval "$ac_try") 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; } &&
10663 { ac_try='test -s conftest$ac_exeext'
10664 { (case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10667esac
10668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_try") 2>&5
10670 ac_status=$?
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010673 ac_cv_func__dyld_func_lookup=yes
10674else
10675 echo "$as_me: failed program was:" >&5
10676sed 's/^/| /' conftest.$ac_ext >&5
10677
Reid Spencera773bd52006-08-04 18:18:08 +000010678 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010679fi
Reid Spencera773bd52006-08-04 18:18:08 +000010680
Bill Wendlingebcceee2009-04-18 11:20:33 +000010681rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010682 conftest$ac_exeext conftest.$ac_ext
10683fi
Reid Spencera773bd52006-08-04 18:18:08 +000010684{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10685echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010686if test $ac_cv_func__dyld_func_lookup = yes; then
10687
10688cat >>confdefs.h <<\_ACEOF
10689#define HAVE_DYLD 1
10690_ACEOF
10691
10692fi
10693
10694
10695fi
10696
10697
10698fi
10699
10700
10701fi
Reid Spencera773bd52006-08-04 18:18:08 +000010702
Bill Wendlingebcceee2009-04-18 11:20:33 +000010703rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010704 conftest$ac_exeext conftest.$ac_ext
10705
10706fi
10707
10708
10709fi
10710
10711
10712fi
10713
10714
10715if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10716then
10717 lt_save_LIBS="$LIBS"
10718 LIBS="$LIBS $LIBADD_DL"
10719
10720for ac_func in dlerror
10721do
10722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010723{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10725if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727else
10728 cat >conftest.$ac_ext <<_ACEOF
10729/* confdefs.h. */
10730_ACEOF
10731cat confdefs.h >>conftest.$ac_ext
10732cat >>conftest.$ac_ext <<_ACEOF
10733/* end confdefs.h. */
10734/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10736#define $ac_func innocuous_$ac_func
10737
10738/* System header to define __stub macros and hopefully few prototypes,
10739 which can conflict with char $ac_func (); below.
10740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10741 <limits.h> exists even on freestanding compilers. */
10742
10743#ifdef __STDC__
10744# include <limits.h>
10745#else
10746# include <assert.h>
10747#endif
10748
10749#undef $ac_func
10750
Reid Spencera773bd52006-08-04 18:18:08 +000010751/* Override any GCC internal prototype to avoid an error.
10752 Use char because int might match the return type of a GCC
10753 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010754#ifdef __cplusplus
10755extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010756#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010757char $ac_func ();
10758/* The GNU C library defines this for functions which it implements
10759 to always fail with ENOSYS. Some functions are actually named
10760 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010761#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010762choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010763#endif
10764
10765int
10766main ()
10767{
Reid Spencera773bd52006-08-04 18:18:08 +000010768return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010769 ;
10770 return 0;
10771}
10772_ACEOF
10773rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010774if { (ac_try="$ac_link"
10775case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10778esac
10779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010781 ac_status=$?
10782 grep -v '^ *+' conftest.er1 >conftest.err
10783 rm -f conftest.er1
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010786 (exit $ac_status); } &&
10787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10788 { (case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10791esac
10792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_try") 2>&5
10794 ac_status=$?
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; } &&
10797 { ac_try='test -s conftest$ac_exeext'
10798 { (case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10801esac
10802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_try") 2>&5
10804 ac_status=$?
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010807 eval "$as_ac_var=yes"
10808else
10809 echo "$as_me: failed program was:" >&5
10810sed 's/^/| /' conftest.$ac_ext >&5
10811
Reid Spencera773bd52006-08-04 18:18:08 +000010812 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010813fi
Reid Spencera773bd52006-08-04 18:18:08 +000010814
Bill Wendlingebcceee2009-04-18 11:20:33 +000010815rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010816 conftest$ac_exeext conftest.$ac_ext
10817fi
Reid Spencera773bd52006-08-04 18:18:08 +000010818ac_res=`eval echo '${'$as_ac_var'}'`
10819 { echo "$as_me:$LINENO: result: $ac_res" >&5
10820echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010821if test `eval echo '${'$as_ac_var'}'` = yes; then
10822 cat >>confdefs.h <<_ACEOF
10823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10824_ACEOF
10825
10826fi
10827done
10828
10829 LIBS="$lt_save_LIBS"
10830fi
10831ac_ext=c
10832ac_cpp='$CPP $CPPFLAGS'
10833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10835ac_compiler_gnu=$ac_cv_c_compiler_gnu
10836
10837
10838
Reid Spencera773bd52006-08-04 18:18:08 +000010839{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10840echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010841if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10843else
10844 ac_cv_sys_symbol_underscore=no
10845 cat > conftest.$ac_ext <<EOF
10846void nm_test_func(){}
10847int main(){nm_test_func;return 0;}
10848EOF
10849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10850 (eval $ac_compile) 2>&5
10851 ac_status=$?
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); }; then
10854 # Now try to grab the symbols.
10855 ac_nlist=conftest.nm
10856 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10857 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10858 ac_status=$?
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } && test -s "$ac_nlist"; then
10861 # See whether the symbols have a leading underscore.
10862 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10863 ac_cv_sys_symbol_underscore=yes
10864 else
10865 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10866 :
10867 else
10868 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10869 fi
10870 fi
10871 else
10872 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10873 fi
10874 else
10875 echo "configure: failed program was:" >&5
10876 cat conftest.c >&5
10877 fi
10878 rm -rf conftest*
10879
10880fi
Reid Spencera773bd52006-08-04 18:18:08 +000010881{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10882echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010883
10884
10885if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10886 if test x"$libltdl_cv_func_dlopen" = xyes ||
10887 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010888 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10889echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010890if test "${libltdl_cv_need_uscore+set}" = set; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10892else
10893 libltdl_cv_need_uscore=unknown
10894 save_LIBS="$LIBS"
10895 LIBS="$LIBS $LIBADD_DL"
10896 if test "$cross_compiling" = yes; then :
10897 libltdl_cv_need_uscore=cross
10898else
10899 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10900 lt_status=$lt_dlunknown
10901 cat > conftest.$ac_ext <<EOF
David Greenef0b9eff2009-07-09 17:16:26 +000010902#line 10902 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010903#include "confdefs.h"
10904
10905#if HAVE_DLFCN_H
10906#include <dlfcn.h>
10907#endif
10908
10909#include <stdio.h>
10910
10911#ifdef RTLD_GLOBAL
10912# define LT_DLGLOBAL RTLD_GLOBAL
10913#else
10914# ifdef DL_GLOBAL
10915# define LT_DLGLOBAL DL_GLOBAL
10916# else
10917# define LT_DLGLOBAL 0
10918# endif
10919#endif
10920
10921/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10922 find out it does not work in some platform. */
10923#ifndef LT_DLLAZY_OR_NOW
10924# ifdef RTLD_LAZY
10925# define LT_DLLAZY_OR_NOW RTLD_LAZY
10926# else
10927# ifdef DL_LAZY
10928# define LT_DLLAZY_OR_NOW DL_LAZY
10929# else
10930# ifdef RTLD_NOW
10931# define LT_DLLAZY_OR_NOW RTLD_NOW
10932# else
10933# ifdef DL_NOW
10934# define LT_DLLAZY_OR_NOW DL_NOW
10935# else
10936# define LT_DLLAZY_OR_NOW 0
10937# endif
10938# endif
10939# endif
10940# endif
10941#endif
10942
10943#ifdef __cplusplus
10944extern "C" void exit (int);
10945#endif
10946
10947void fnord() { int i=42;}
10948int main ()
10949{
10950 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10951 int status = $lt_dlunknown;
10952
10953 if (self)
10954 {
10955 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10956 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10957 /* dlclose (self); */
10958 }
Reid Spencera773bd52006-08-04 18:18:08 +000010959 else
10960 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010961
10962 exit (status);
10963}
10964EOF
10965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10966 (eval $ac_link) 2>&5
10967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010970 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010971 lt_status=$?
10972 case x$lt_status in
10973 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10974 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010975 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010976 esac
10977 else :
10978 # compilation failed
10979
10980 fi
10981fi
10982rm -fr conftest*
10983
10984 LIBS="$save_LIBS"
10985
10986fi
Reid Spencera773bd52006-08-04 18:18:08 +000010987{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10988echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010989 fi
10990fi
10991
10992if test x"$libltdl_cv_need_uscore" = xyes; then
10993
10994cat >>confdefs.h <<\_ACEOF
10995#define NEED_USCORE 1
10996_ACEOF
10997
10998fi
10999
11000
Reid Spencera773bd52006-08-04 18:18:08 +000011001{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11002echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011003if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11005else
11006 # PORTME does your system automatically load deplibs for dlopen?
11007 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11008 # For now, we just catch OSes we know something about -- in the
11009 # future, we'll try test this programmatically.
11010 libltdl_cv_sys_dlopen_deplibs=unknown
11011 case "$host_os" in
11012 aix3*|aix4.1.*|aix4.2.*)
11013 # Unknown whether this is true for these versions of AIX, but
11014 # we want this `case' here to explicitly catch those versions.
11015 libltdl_cv_sys_dlopen_deplibs=unknown
11016 ;;
11017 aix[45]*)
11018 libltdl_cv_sys_dlopen_deplibs=yes
11019 ;;
11020 darwin*)
11021 # Assuming the user has installed a libdl from somewhere, this is true
11022 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11023 libltdl_cv_sys_dlopen_deplibs=yes
11024 ;;
11025 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11026 # GNU and its variants, using gnu ld.so (Glibc)
11027 libltdl_cv_sys_dlopen_deplibs=yes
11028 ;;
11029 hpux10*|hpux11*)
11030 libltdl_cv_sys_dlopen_deplibs=yes
11031 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011032 interix*)
11033 libltdl_cv_sys_dlopen_deplibs=yes
11034 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011035 irix[12345]*|irix6.[01]*)
11036 # Catch all versions of IRIX before 6.2, and indicate that we don't
11037 # know how it worked for any of those versions.
11038 libltdl_cv_sys_dlopen_deplibs=unknown
11039 ;;
11040 irix*)
11041 # The case above catches anything before 6.2, and it's known that
11042 # at 6.2 and later dlopen does load deplibs.
11043 libltdl_cv_sys_dlopen_deplibs=yes
11044 ;;
11045 netbsd*)
11046 libltdl_cv_sys_dlopen_deplibs=yes
11047 ;;
11048 openbsd*)
11049 libltdl_cv_sys_dlopen_deplibs=yes
11050 ;;
11051 osf[1234]*)
11052 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11053 # it did *not* use an RPATH in a shared library to find objects the
11054 # library depends on, so we explictly say `no'.
11055 libltdl_cv_sys_dlopen_deplibs=no
11056 ;;
11057 osf5.0|osf5.0a|osf5.1)
11058 # dlopen *does* load deplibs and with the right loader patch applied
11059 # it even uses RPATH in a shared library to search for shared objects
11060 # that the library depends on, but there's no easy way to know if that
11061 # patch is installed. Since this is the case, all we can really
11062 # say is unknown -- it depends on the patch being installed. If
11063 # it is, this changes to `yes'. Without it, it would be `no'.
11064 libltdl_cv_sys_dlopen_deplibs=unknown
11065 ;;
11066 osf*)
11067 # the two cases above should catch all versions of osf <= 5.1. Read
11068 # the comments above for what we know about them.
11069 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11070 # is used to find them so we can finally say `yes'.
11071 libltdl_cv_sys_dlopen_deplibs=yes
11072 ;;
11073 solaris*)
11074 libltdl_cv_sys_dlopen_deplibs=yes
11075 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11077 libltdl_cv_sys_dlopen_deplibs=yes
11078 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011079 esac
11080
11081fi
Reid Spencera773bd52006-08-04 18:18:08 +000011082{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11083echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011084if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11085
11086cat >>confdefs.h <<\_ACEOF
11087#define LTDL_DLOPEN_DEPLIBS 1
11088_ACEOF
11089
11090fi
11091
11092
11093for ac_header in argz.h
11094do
11095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011100 echo $ECHO_N "(cached) $ECHO_C" >&6
11101fi
Reid Spencera773bd52006-08-04 18:18:08 +000011102ac_res=`eval echo '${'$as_ac_Header'}'`
11103 { echo "$as_me:$LINENO: result: $ac_res" >&5
11104echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011105else
11106 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011107{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11108echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011109cat >conftest.$ac_ext <<_ACEOF
11110/* confdefs.h. */
11111_ACEOF
11112cat confdefs.h >>conftest.$ac_ext
11113cat >>conftest.$ac_ext <<_ACEOF
11114/* end confdefs.h. */
11115$ac_includes_default
11116#include <$ac_header>
11117_ACEOF
11118rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011119if { (ac_try="$ac_compile"
11120case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11123esac
11124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011126 ac_status=$?
11127 grep -v '^ *+' conftest.er1 >conftest.err
11128 rm -f conftest.er1
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011131 (exit $ac_status); } &&
11132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11136esac
11137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; } &&
11142 { ac_try='test -s conftest.$ac_objext'
11143 { (case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11146esac
11147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148 (eval "$ac_try") 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011152 ac_header_compiler=yes
11153else
11154 echo "$as_me: failed program was:" >&5
11155sed 's/^/| /' conftest.$ac_ext >&5
11156
Reid Spencera773bd52006-08-04 18:18:08 +000011157 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011158fi
Reid Spencera773bd52006-08-04 18:18:08 +000011159
11160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11161{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11162echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011163
11164# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011165{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11166echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011167cat >conftest.$ac_ext <<_ACEOF
11168/* confdefs.h. */
11169_ACEOF
11170cat confdefs.h >>conftest.$ac_ext
11171cat >>conftest.$ac_ext <<_ACEOF
11172/* end confdefs.h. */
11173#include <$ac_header>
11174_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011175if { (ac_try="$ac_cpp conftest.$ac_ext"
11176case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11179esac
11180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011182 ac_status=$?
11183 grep -v '^ *+' conftest.er1 >conftest.err
11184 rm -f conftest.er1
11185 cat conftest.err >&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011187 (exit $ac_status); } >/dev/null; then
11188 if test -s conftest.err; then
11189 ac_cpp_err=$ac_c_preproc_warn_flag
11190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11191 else
11192 ac_cpp_err=
11193 fi
11194else
11195 ac_cpp_err=yes
11196fi
11197if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011198 ac_header_preproc=yes
11199else
11200 echo "$as_me: failed program was:" >&5
11201sed 's/^/| /' conftest.$ac_ext >&5
11202
11203 ac_header_preproc=no
11204fi
Reid Spencera773bd52006-08-04 18:18:08 +000011205
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011206rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011207{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11208echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011209
11210# So? What about this header?
11211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11212 yes:no: )
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11217 ac_header_preproc=yes
11218 ;;
11219 no:yes:* )
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11223echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11227echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011232 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011233## ----------------------------------- ##
11234## Report this to llvmbugs@cs.uiuc.edu ##
11235## ----------------------------------- ##
11236_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011237 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011238 ;;
11239esac
Reid Spencera773bd52006-08-04 18:18:08 +000011240{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011243 echo $ECHO_N "(cached) $ECHO_C" >&6
11244else
11245 eval "$as_ac_Header=\$ac_header_preproc"
11246fi
Reid Spencera773bd52006-08-04 18:18:08 +000011247ac_res=`eval echo '${'$as_ac_Header'}'`
11248 { echo "$as_me:$LINENO: result: $ac_res" >&5
11249echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011250
11251fi
11252if test `eval echo '${'$as_ac_Header'}'` = yes; then
11253 cat >>confdefs.h <<_ACEOF
11254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11255_ACEOF
11256
11257fi
11258
11259done
11260
11261
Reid Spencera773bd52006-08-04 18:18:08 +000011262{ echo "$as_me:$LINENO: checking for error_t" >&5
11263echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011264if test "${ac_cv_type_error_t+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266else
11267 cat >conftest.$ac_ext <<_ACEOF
11268/* confdefs.h. */
11269_ACEOF
11270cat confdefs.h >>conftest.$ac_ext
11271cat >>conftest.$ac_ext <<_ACEOF
11272/* end confdefs.h. */
11273#if HAVE_ARGZ_H
11274# include <argz.h>
11275#endif
11276
Reid Spencera773bd52006-08-04 18:18:08 +000011277typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011278int
11279main ()
11280{
Reid Spencera773bd52006-08-04 18:18:08 +000011281if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011282 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011283if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011284 return 0;
11285 ;
11286 return 0;
11287}
11288_ACEOF
11289rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011290if { (ac_try="$ac_compile"
11291case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11294esac
11295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011297 ac_status=$?
11298 grep -v '^ *+' conftest.er1 >conftest.err
11299 rm -f conftest.er1
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011302 (exit $ac_status); } &&
11303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11304 { (case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11307esac
11308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_try") 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; } &&
11313 { ac_try='test -s conftest.$ac_objext'
11314 { (case "(($ac_try" in
11315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11316 *) ac_try_echo=$ac_try;;
11317esac
11318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11319 (eval "$ac_try") 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011323 ac_cv_type_error_t=yes
11324else
11325 echo "$as_me: failed program was:" >&5
11326sed 's/^/| /' conftest.$ac_ext >&5
11327
Reid Spencera773bd52006-08-04 18:18:08 +000011328 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011329fi
Reid Spencera773bd52006-08-04 18:18:08 +000011330
11331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011332fi
Reid Spencera773bd52006-08-04 18:18:08 +000011333{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11334echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011335if test $ac_cv_type_error_t = yes; then
11336
11337cat >>confdefs.h <<_ACEOF
11338#define HAVE_ERROR_T 1
11339_ACEOF
11340
11341
11342else
11343
11344cat >>confdefs.h <<\_ACEOF
11345#define error_t int
11346_ACEOF
11347
11348fi
11349
11350
11351
11352
11353
11354
11355
11356for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11357do
11358as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011359{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11360echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11361if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011362 echo $ECHO_N "(cached) $ECHO_C" >&6
11363else
11364 cat >conftest.$ac_ext <<_ACEOF
11365/* confdefs.h. */
11366_ACEOF
11367cat confdefs.h >>conftest.$ac_ext
11368cat >>conftest.$ac_ext <<_ACEOF
11369/* end confdefs.h. */
11370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11372#define $ac_func innocuous_$ac_func
11373
11374/* System header to define __stub macros and hopefully few prototypes,
11375 which can conflict with char $ac_func (); below.
11376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11377 <limits.h> exists even on freestanding compilers. */
11378
11379#ifdef __STDC__
11380# include <limits.h>
11381#else
11382# include <assert.h>
11383#endif
11384
11385#undef $ac_func
11386
Reid Spencera773bd52006-08-04 18:18:08 +000011387/* Override any GCC internal prototype to avoid an error.
11388 Use char because int might match the return type of a GCC
11389 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011390#ifdef __cplusplus
11391extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011392#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011393char $ac_func ();
11394/* The GNU C library defines this for functions which it implements
11395 to always fail with ENOSYS. Some functions are actually named
11396 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011397#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011398choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011399#endif
11400
11401int
11402main ()
11403{
Reid Spencera773bd52006-08-04 18:18:08 +000011404return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011405 ;
11406 return 0;
11407}
11408_ACEOF
11409rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011410if { (ac_try="$ac_link"
11411case "(($ac_try" in
11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413 *) ac_try_echo=$ac_try;;
11414esac
11415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011417 ac_status=$?
11418 grep -v '^ *+' conftest.er1 >conftest.err
11419 rm -f conftest.er1
11420 cat conftest.err >&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011422 (exit $ac_status); } &&
11423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11424 { (case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11427esac
11428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_try") 2>&5
11430 ac_status=$?
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); }; } &&
11433 { ac_try='test -s conftest$ac_exeext'
11434 { (case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11437esac
11438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_try") 2>&5
11440 ac_status=$?
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011443 eval "$as_ac_var=yes"
11444else
11445 echo "$as_me: failed program was:" >&5
11446sed 's/^/| /' conftest.$ac_ext >&5
11447
Reid Spencera773bd52006-08-04 18:18:08 +000011448 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011449fi
Reid Spencera773bd52006-08-04 18:18:08 +000011450
Bill Wendlingebcceee2009-04-18 11:20:33 +000011451rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011452 conftest$ac_exeext conftest.$ac_ext
11453fi
Reid Spencera773bd52006-08-04 18:18:08 +000011454ac_res=`eval echo '${'$as_ac_var'}'`
11455 { echo "$as_me:$LINENO: result: $ac_res" >&5
11456echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011457if test `eval echo '${'$as_ac_var'}'` = yes; then
11458 cat >>confdefs.h <<_ACEOF
11459#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11460_ACEOF
11461
11462fi
11463done
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11493 stdio.h unistd.h
11494do
11495as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011496if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011500 echo $ECHO_N "(cached) $ECHO_C" >&6
11501fi
Reid Spencera773bd52006-08-04 18:18:08 +000011502ac_res=`eval echo '${'$as_ac_Header'}'`
11503 { echo "$as_me:$LINENO: result: $ac_res" >&5
11504echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011505else
11506 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011507{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11508echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011509cat >conftest.$ac_ext <<_ACEOF
11510/* confdefs.h. */
11511_ACEOF
11512cat confdefs.h >>conftest.$ac_ext
11513cat >>conftest.$ac_ext <<_ACEOF
11514/* end confdefs.h. */
11515$ac_includes_default
11516#include <$ac_header>
11517_ACEOF
11518rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011519if { (ac_try="$ac_compile"
11520case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11523esac
11524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011526 ac_status=$?
11527 grep -v '^ *+' conftest.er1 >conftest.err
11528 rm -f conftest.er1
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011531 (exit $ac_status); } &&
11532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11533 { (case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11536esac
11537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_try") 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; } &&
11542 { ac_try='test -s conftest.$ac_objext'
11543 { (case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11546esac
11547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_try") 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011552 ac_header_compiler=yes
11553else
11554 echo "$as_me: failed program was:" >&5
11555sed 's/^/| /' conftest.$ac_ext >&5
11556
Reid Spencera773bd52006-08-04 18:18:08 +000011557 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011558fi
Reid Spencera773bd52006-08-04 18:18:08 +000011559
11560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11561{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11562echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011563
11564# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011565{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11566echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011567cat >conftest.$ac_ext <<_ACEOF
11568/* confdefs.h. */
11569_ACEOF
11570cat confdefs.h >>conftest.$ac_ext
11571cat >>conftest.$ac_ext <<_ACEOF
11572/* end confdefs.h. */
11573#include <$ac_header>
11574_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011575if { (ac_try="$ac_cpp conftest.$ac_ext"
11576case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11579esac
11580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011582 ac_status=$?
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011587 (exit $ac_status); } >/dev/null; then
11588 if test -s conftest.err; then
11589 ac_cpp_err=$ac_c_preproc_warn_flag
11590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11591 else
11592 ac_cpp_err=
11593 fi
11594else
11595 ac_cpp_err=yes
11596fi
11597if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011598 ac_header_preproc=yes
11599else
11600 echo "$as_me: failed program was:" >&5
11601sed 's/^/| /' conftest.$ac_ext >&5
11602
11603 ac_header_preproc=no
11604fi
Reid Spencera773bd52006-08-04 18:18:08 +000011605
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011606rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011607{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11608echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011609
11610# So? What about this header?
11611case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11612 yes:no: )
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11614echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11616echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11617 ac_header_preproc=yes
11618 ;;
11619 no:yes:* )
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11621echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11623echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11625echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11627echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11629echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11631echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011632 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011633## ----------------------------------- ##
11634## Report this to llvmbugs@cs.uiuc.edu ##
11635## ----------------------------------- ##
11636_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011637 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011638 ;;
11639esac
Reid Spencera773bd52006-08-04 18:18:08 +000011640{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011643 echo $ECHO_N "(cached) $ECHO_C" >&6
11644else
11645 eval "$as_ac_Header=\$ac_header_preproc"
11646fi
Reid Spencera773bd52006-08-04 18:18:08 +000011647ac_res=`eval echo '${'$as_ac_Header'}'`
11648 { echo "$as_me:$LINENO: result: $ac_res" >&5
11649echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011650
11651fi
11652if test `eval echo '${'$as_ac_Header'}'` = yes; then
11653 cat >>confdefs.h <<_ACEOF
11654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11655_ACEOF
11656
11657fi
11658
11659done
11660
11661
11662
11663
11664
11665for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11666do
11667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673fi
Reid Spencera773bd52006-08-04 18:18:08 +000011674ac_res=`eval echo '${'$as_ac_Header'}'`
11675 { echo "$as_me:$LINENO: result: $ac_res" >&5
11676echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011677else
11678 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011679{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011681cat >conftest.$ac_ext <<_ACEOF
11682/* confdefs.h. */
11683_ACEOF
11684cat confdefs.h >>conftest.$ac_ext
11685cat >>conftest.$ac_ext <<_ACEOF
11686/* end confdefs.h. */
11687$ac_includes_default
11688#include <$ac_header>
11689_ACEOF
11690rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011691if { (ac_try="$ac_compile"
11692case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11695esac
11696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011698 ac_status=$?
11699 grep -v '^ *+' conftest.er1 >conftest.err
11700 rm -f conftest.er1
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011703 (exit $ac_status); } &&
11704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11705 { (case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11708esac
11709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_try") 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest.$ac_objext'
11715 { (case "(($ac_try" in
11716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717 *) ac_try_echo=$ac_try;;
11718esac
11719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720 (eval "$ac_try") 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011724 ac_header_compiler=yes
11725else
11726 echo "$as_me: failed program was:" >&5
11727sed 's/^/| /' conftest.$ac_ext >&5
11728
Reid Spencera773bd52006-08-04 18:18:08 +000011729 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011730fi
Reid Spencera773bd52006-08-04 18:18:08 +000011731
11732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11733{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11734echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011735
11736# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011737{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11738echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011739cat >conftest.$ac_ext <<_ACEOF
11740/* confdefs.h. */
11741_ACEOF
11742cat confdefs.h >>conftest.$ac_ext
11743cat >>conftest.$ac_ext <<_ACEOF
11744/* end confdefs.h. */
11745#include <$ac_header>
11746_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011747if { (ac_try="$ac_cpp conftest.$ac_ext"
11748case "(($ac_try" in
11749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11750 *) ac_try_echo=$ac_try;;
11751esac
11752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011754 ac_status=$?
11755 grep -v '^ *+' conftest.er1 >conftest.err
11756 rm -f conftest.er1
11757 cat conftest.err >&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011759 (exit $ac_status); } >/dev/null; then
11760 if test -s conftest.err; then
11761 ac_cpp_err=$ac_c_preproc_warn_flag
11762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11763 else
11764 ac_cpp_err=
11765 fi
11766else
11767 ac_cpp_err=yes
11768fi
11769if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011770 ac_header_preproc=yes
11771else
11772 echo "$as_me: failed program was:" >&5
11773sed 's/^/| /' conftest.$ac_ext >&5
11774
11775 ac_header_preproc=no
11776fi
Reid Spencera773bd52006-08-04 18:18:08 +000011777
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011778rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011779{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11780echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011781
11782# So? What about this header?
11783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11784 yes:no: )
11785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11786echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11788echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11789 ac_header_preproc=yes
11790 ;;
11791 no:yes:* )
11792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11793echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11795echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11797echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11799echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11801echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11803echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011804 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011805## ----------------------------------- ##
11806## Report this to llvmbugs@cs.uiuc.edu ##
11807## ----------------------------------- ##
11808_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011809 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011810 ;;
11811esac
Reid Spencera773bd52006-08-04 18:18:08 +000011812{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11814if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011815 echo $ECHO_N "(cached) $ECHO_C" >&6
11816else
11817 eval "$as_ac_Header=\$ac_header_preproc"
11818fi
Reid Spencera773bd52006-08-04 18:18:08 +000011819ac_res=`eval echo '${'$as_ac_Header'}'`
11820 { echo "$as_me:$LINENO: result: $ac_res" >&5
11821echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011822
11823fi
11824if test `eval echo '${'$as_ac_Header'}'` = yes; then
11825 cat >>confdefs.h <<_ACEOF
11826#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11827_ACEOF
11828
11829fi
11830
11831done
11832
11833
11834
11835for ac_header in string.h strings.h
11836do
11837as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011838if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011842 echo $ECHO_N "(cached) $ECHO_C" >&6
11843fi
Reid Spencera773bd52006-08-04 18:18:08 +000011844ac_res=`eval echo '${'$as_ac_Header'}'`
11845 { echo "$as_me:$LINENO: result: $ac_res" >&5
11846echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011847else
11848 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011849{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11850echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011851cat >conftest.$ac_ext <<_ACEOF
11852/* confdefs.h. */
11853_ACEOF
11854cat confdefs.h >>conftest.$ac_ext
11855cat >>conftest.$ac_ext <<_ACEOF
11856/* end confdefs.h. */
11857$ac_includes_default
11858#include <$ac_header>
11859_ACEOF
11860rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011861if { (ac_try="$ac_compile"
11862case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11865esac
11866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011868 ac_status=$?
11869 grep -v '^ *+' conftest.er1 >conftest.err
11870 rm -f conftest.er1
11871 cat conftest.err >&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011873 (exit $ac_status); } &&
11874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11875 { (case "(($ac_try" in
11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11878esac
11879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880 (eval "$ac_try") 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; } &&
11884 { ac_try='test -s conftest.$ac_objext'
11885 { (case "(($ac_try" in
11886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887 *) ac_try_echo=$ac_try;;
11888esac
11889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890 (eval "$ac_try") 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011894 ac_header_compiler=yes
11895else
11896 echo "$as_me: failed program was:" >&5
11897sed 's/^/| /' conftest.$ac_ext >&5
11898
Reid Spencera773bd52006-08-04 18:18:08 +000011899 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011900fi
Reid Spencera773bd52006-08-04 18:18:08 +000011901
11902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11903{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11904echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011905
11906# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011907{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11908echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011909cat >conftest.$ac_ext <<_ACEOF
11910/* confdefs.h. */
11911_ACEOF
11912cat confdefs.h >>conftest.$ac_ext
11913cat >>conftest.$ac_ext <<_ACEOF
11914/* end confdefs.h. */
11915#include <$ac_header>
11916_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011917if { (ac_try="$ac_cpp conftest.$ac_ext"
11918case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921esac
11922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011924 ac_status=$?
11925 grep -v '^ *+' conftest.er1 >conftest.err
11926 rm -f conftest.er1
11927 cat conftest.err >&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011929 (exit $ac_status); } >/dev/null; then
11930 if test -s conftest.err; then
11931 ac_cpp_err=$ac_c_preproc_warn_flag
11932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11933 else
11934 ac_cpp_err=
11935 fi
11936else
11937 ac_cpp_err=yes
11938fi
11939if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011940 ac_header_preproc=yes
11941else
11942 echo "$as_me: failed program was:" >&5
11943sed 's/^/| /' conftest.$ac_ext >&5
11944
11945 ac_header_preproc=no
11946fi
Reid Spencera773bd52006-08-04 18:18:08 +000011947
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011948rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011949{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11950echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011951
11952# So? What about this header?
11953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11954 yes:no: )
11955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11956echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11958echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11959 ac_header_preproc=yes
11960 ;;
11961 no:yes:* )
11962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11963echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11965echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11967echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11969echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11971echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11973echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011974 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011975## ----------------------------------- ##
11976## Report this to llvmbugs@cs.uiuc.edu ##
11977## ----------------------------------- ##
11978_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011979 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011980 ;;
11981esac
Reid Spencera773bd52006-08-04 18:18:08 +000011982{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011985 echo $ECHO_N "(cached) $ECHO_C" >&6
11986else
11987 eval "$as_ac_Header=\$ac_header_preproc"
11988fi
Reid Spencera773bd52006-08-04 18:18:08 +000011989ac_res=`eval echo '${'$as_ac_Header'}'`
11990 { echo "$as_me:$LINENO: result: $ac_res" >&5
11991echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011992
11993fi
11994if test `eval echo '${'$as_ac_Header'}'` = yes; then
11995 cat >>confdefs.h <<_ACEOF
11996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11997_ACEOF
11998 break
11999fi
12000
12001done
12002
12003
12004
12005
12006for ac_func in strchr index
12007do
12008as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012009{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12010echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12011if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012012 echo $ECHO_N "(cached) $ECHO_C" >&6
12013else
12014 cat >conftest.$ac_ext <<_ACEOF
12015/* confdefs.h. */
12016_ACEOF
12017cat confdefs.h >>conftest.$ac_ext
12018cat >>conftest.$ac_ext <<_ACEOF
12019/* end confdefs.h. */
12020/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12022#define $ac_func innocuous_$ac_func
12023
12024/* System header to define __stub macros and hopefully few prototypes,
12025 which can conflict with char $ac_func (); below.
12026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12027 <limits.h> exists even on freestanding compilers. */
12028
12029#ifdef __STDC__
12030# include <limits.h>
12031#else
12032# include <assert.h>
12033#endif
12034
12035#undef $ac_func
12036
Reid Spencera773bd52006-08-04 18:18:08 +000012037/* Override any GCC internal prototype to avoid an error.
12038 Use char because int might match the return type of a GCC
12039 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012040#ifdef __cplusplus
12041extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012042#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012043char $ac_func ();
12044/* The GNU C library defines this for functions which it implements
12045 to always fail with ENOSYS. Some functions are actually named
12046 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012047#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012048choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012049#endif
12050
12051int
12052main ()
12053{
Reid Spencera773bd52006-08-04 18:18:08 +000012054return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012055 ;
12056 return 0;
12057}
12058_ACEOF
12059rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012060if { (ac_try="$ac_link"
12061case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12064esac
12065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012067 ac_status=$?
12068 grep -v '^ *+' conftest.er1 >conftest.err
12069 rm -f conftest.er1
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012072 (exit $ac_status); } &&
12073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12074 { (case "(($ac_try" in
12075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076 *) ac_try_echo=$ac_try;;
12077esac
12078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12079 (eval "$ac_try") 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; } &&
12083 { ac_try='test -s conftest$ac_exeext'
12084 { (case "(($ac_try" in
12085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086 *) ac_try_echo=$ac_try;;
12087esac
12088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089 (eval "$ac_try") 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012093 eval "$as_ac_var=yes"
12094else
12095 echo "$as_me: failed program was:" >&5
12096sed 's/^/| /' conftest.$ac_ext >&5
12097
Reid Spencera773bd52006-08-04 18:18:08 +000012098 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012099fi
Reid Spencera773bd52006-08-04 18:18:08 +000012100
Bill Wendlingebcceee2009-04-18 11:20:33 +000012101rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012102 conftest$ac_exeext conftest.$ac_ext
12103fi
Reid Spencera773bd52006-08-04 18:18:08 +000012104ac_res=`eval echo '${'$as_ac_var'}'`
12105 { echo "$as_me:$LINENO: result: $ac_res" >&5
12106echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012107if test `eval echo '${'$as_ac_var'}'` = yes; then
12108 cat >>confdefs.h <<_ACEOF
12109#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12110_ACEOF
12111 break
12112fi
12113done
12114
12115
12116
12117for ac_func in strrchr rindex
12118do
12119as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012120{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12121echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12122if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012123 echo $ECHO_N "(cached) $ECHO_C" >&6
12124else
12125 cat >conftest.$ac_ext <<_ACEOF
12126/* confdefs.h. */
12127_ACEOF
12128cat confdefs.h >>conftest.$ac_ext
12129cat >>conftest.$ac_ext <<_ACEOF
12130/* end confdefs.h. */
12131/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12133#define $ac_func innocuous_$ac_func
12134
12135/* System header to define __stub macros and hopefully few prototypes,
12136 which can conflict with char $ac_func (); below.
12137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12138 <limits.h> exists even on freestanding compilers. */
12139
12140#ifdef __STDC__
12141# include <limits.h>
12142#else
12143# include <assert.h>
12144#endif
12145
12146#undef $ac_func
12147
Reid Spencera773bd52006-08-04 18:18:08 +000012148/* Override any GCC internal prototype to avoid an error.
12149 Use char because int might match the return type of a GCC
12150 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012151#ifdef __cplusplus
12152extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012153#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012154char $ac_func ();
12155/* The GNU C library defines this for functions which it implements
12156 to always fail with ENOSYS. Some functions are actually named
12157 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012158#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012159choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012160#endif
12161
12162int
12163main ()
12164{
Reid Spencera773bd52006-08-04 18:18:08 +000012165return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012166 ;
12167 return 0;
12168}
12169_ACEOF
12170rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012171if { (ac_try="$ac_link"
12172case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12175esac
12176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012178 ac_status=$?
12179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012183 (exit $ac_status); } &&
12184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12185 { (case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12188esac
12189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_try") 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest$ac_exeext'
12195 { (case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198esac
12199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_try") 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012204 eval "$as_ac_var=yes"
12205else
12206 echo "$as_me: failed program was:" >&5
12207sed 's/^/| /' conftest.$ac_ext >&5
12208
Reid Spencera773bd52006-08-04 18:18:08 +000012209 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012210fi
Reid Spencera773bd52006-08-04 18:18:08 +000012211
Bill Wendlingebcceee2009-04-18 11:20:33 +000012212rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012213 conftest$ac_exeext conftest.$ac_ext
12214fi
Reid Spencera773bd52006-08-04 18:18:08 +000012215ac_res=`eval echo '${'$as_ac_var'}'`
12216 { echo "$as_me:$LINENO: result: $ac_res" >&5
12217echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012218if test `eval echo '${'$as_ac_var'}'` = yes; then
12219 cat >>confdefs.h <<_ACEOF
12220#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12221_ACEOF
12222 break
12223fi
12224done
12225
12226
12227
12228for ac_func in memcpy bcopy
12229do
12230as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012231{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12232echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12233if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012234 echo $ECHO_N "(cached) $ECHO_C" >&6
12235else
12236 cat >conftest.$ac_ext <<_ACEOF
12237/* confdefs.h. */
12238_ACEOF
12239cat confdefs.h >>conftest.$ac_ext
12240cat >>conftest.$ac_ext <<_ACEOF
12241/* end confdefs.h. */
12242/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12244#define $ac_func innocuous_$ac_func
12245
12246/* System header to define __stub macros and hopefully few prototypes,
12247 which can conflict with char $ac_func (); below.
12248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12249 <limits.h> exists even on freestanding compilers. */
12250
12251#ifdef __STDC__
12252# include <limits.h>
12253#else
12254# include <assert.h>
12255#endif
12256
12257#undef $ac_func
12258
Reid Spencera773bd52006-08-04 18:18:08 +000012259/* Override any GCC internal prototype to avoid an error.
12260 Use char because int might match the return type of a GCC
12261 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012262#ifdef __cplusplus
12263extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012264#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012265char $ac_func ();
12266/* The GNU C library defines this for functions which it implements
12267 to always fail with ENOSYS. Some functions are actually named
12268 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012269#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012270choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012271#endif
12272
12273int
12274main ()
12275{
Reid Spencera773bd52006-08-04 18:18:08 +000012276return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012277 ;
12278 return 0;
12279}
12280_ACEOF
12281rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012282if { (ac_try="$ac_link"
12283case "(($ac_try" in
12284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12286esac
12287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012289 ac_status=$?
12290 grep -v '^ *+' conftest.er1 >conftest.err
12291 rm -f conftest.er1
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012294 (exit $ac_status); } &&
12295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12296 { (case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12299esac
12300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12301 (eval "$ac_try") 2>&5
12302 ac_status=$?
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; } &&
12305 { ac_try='test -s conftest$ac_exeext'
12306 { (case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12309esac
12310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_try") 2>&5
12312 ac_status=$?
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012315 eval "$as_ac_var=yes"
12316else
12317 echo "$as_me: failed program was:" >&5
12318sed 's/^/| /' conftest.$ac_ext >&5
12319
Reid Spencera773bd52006-08-04 18:18:08 +000012320 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012321fi
Reid Spencera773bd52006-08-04 18:18:08 +000012322
Bill Wendlingebcceee2009-04-18 11:20:33 +000012323rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012324 conftest$ac_exeext conftest.$ac_ext
12325fi
Reid Spencera773bd52006-08-04 18:18:08 +000012326ac_res=`eval echo '${'$as_ac_var'}'`
12327 { echo "$as_me:$LINENO: result: $ac_res" >&5
12328echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012329if test `eval echo '${'$as_ac_var'}'` = yes; then
12330 cat >>confdefs.h <<_ACEOF
12331#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12332_ACEOF
12333 break
12334fi
12335done
12336
12337
12338
12339for ac_func in memmove strcmp
12340do
12341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012342{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12344if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012345 echo $ECHO_N "(cached) $ECHO_C" >&6
12346else
12347 cat >conftest.$ac_ext <<_ACEOF
12348/* confdefs.h. */
12349_ACEOF
12350cat confdefs.h >>conftest.$ac_ext
12351cat >>conftest.$ac_ext <<_ACEOF
12352/* end confdefs.h. */
12353/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12355#define $ac_func innocuous_$ac_func
12356
12357/* System header to define __stub macros and hopefully few prototypes,
12358 which can conflict with char $ac_func (); below.
12359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12360 <limits.h> exists even on freestanding compilers. */
12361
12362#ifdef __STDC__
12363# include <limits.h>
12364#else
12365# include <assert.h>
12366#endif
12367
12368#undef $ac_func
12369
Reid Spencera773bd52006-08-04 18:18:08 +000012370/* Override any GCC internal prototype to avoid an error.
12371 Use char because int might match the return type of a GCC
12372 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012373#ifdef __cplusplus
12374extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012375#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012376char $ac_func ();
12377/* The GNU C library defines this for functions which it implements
12378 to always fail with ENOSYS. Some functions are actually named
12379 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012380#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012381choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012382#endif
12383
12384int
12385main ()
12386{
Reid Spencera773bd52006-08-04 18:18:08 +000012387return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012388 ;
12389 return 0;
12390}
12391_ACEOF
12392rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012393if { (ac_try="$ac_link"
12394case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397esac
12398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012400 ac_status=$?
12401 grep -v '^ *+' conftest.er1 >conftest.err
12402 rm -f conftest.er1
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012405 (exit $ac_status); } &&
12406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12407 { (case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12410esac
12411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_try") 2>&5
12413 ac_status=$?
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; } &&
12416 { ac_try='test -s conftest$ac_exeext'
12417 { (case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12420esac
12421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_try") 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012426 eval "$as_ac_var=yes"
12427else
12428 echo "$as_me: failed program was:" >&5
12429sed 's/^/| /' conftest.$ac_ext >&5
12430
Reid Spencera773bd52006-08-04 18:18:08 +000012431 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012432fi
Reid Spencera773bd52006-08-04 18:18:08 +000012433
Bill Wendlingebcceee2009-04-18 11:20:33 +000012434rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012435 conftest$ac_exeext conftest.$ac_ext
12436fi
Reid Spencera773bd52006-08-04 18:18:08 +000012437ac_res=`eval echo '${'$as_ac_var'}'`
12438 { echo "$as_me:$LINENO: result: $ac_res" >&5
12439echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012440if test `eval echo '${'$as_ac_var'}'` = yes; then
12441 cat >>confdefs.h <<_ACEOF
12442#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12443_ACEOF
12444
12445fi
12446done
12447
12448
12449
12450
12451for ac_func in closedir opendir readdir
12452do
12453as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012454{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12456if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012457 echo $ECHO_N "(cached) $ECHO_C" >&6
12458else
12459 cat >conftest.$ac_ext <<_ACEOF
12460/* confdefs.h. */
12461_ACEOF
12462cat confdefs.h >>conftest.$ac_ext
12463cat >>conftest.$ac_ext <<_ACEOF
12464/* end confdefs.h. */
12465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12467#define $ac_func innocuous_$ac_func
12468
12469/* System header to define __stub macros and hopefully few prototypes,
12470 which can conflict with char $ac_func (); below.
12471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12472 <limits.h> exists even on freestanding compilers. */
12473
12474#ifdef __STDC__
12475# include <limits.h>
12476#else
12477# include <assert.h>
12478#endif
12479
12480#undef $ac_func
12481
Reid Spencera773bd52006-08-04 18:18:08 +000012482/* Override any GCC internal prototype to avoid an error.
12483 Use char because int might match the return type of a GCC
12484 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012485#ifdef __cplusplus
12486extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012487#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012488char $ac_func ();
12489/* The GNU C library defines this for functions which it implements
12490 to always fail with ENOSYS. Some functions are actually named
12491 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012492#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012493choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012494#endif
12495
12496int
12497main ()
12498{
Reid Spencera773bd52006-08-04 18:18:08 +000012499return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012500 ;
12501 return 0;
12502}
12503_ACEOF
12504rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012505if { (ac_try="$ac_link"
12506case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12509esac
12510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012512 ac_status=$?
12513 grep -v '^ *+' conftest.er1 >conftest.err
12514 rm -f conftest.er1
12515 cat conftest.err >&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012517 (exit $ac_status); } &&
12518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12519 { (case "(($ac_try" in
12520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521 *) ac_try_echo=$ac_try;;
12522esac
12523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524 (eval "$ac_try") 2>&5
12525 ac_status=$?
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; } &&
12528 { ac_try='test -s conftest$ac_exeext'
12529 { (case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12532esac
12533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_try") 2>&5
12535 ac_status=$?
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012538 eval "$as_ac_var=yes"
12539else
12540 echo "$as_me: failed program was:" >&5
12541sed 's/^/| /' conftest.$ac_ext >&5
12542
Reid Spencera773bd52006-08-04 18:18:08 +000012543 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012544fi
Reid Spencera773bd52006-08-04 18:18:08 +000012545
Bill Wendlingebcceee2009-04-18 11:20:33 +000012546rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012547 conftest$ac_exeext conftest.$ac_ext
12548fi
Reid Spencera773bd52006-08-04 18:18:08 +000012549ac_res=`eval echo '${'$as_ac_var'}'`
12550 { echo "$as_me:$LINENO: result: $ac_res" >&5
12551echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012552if test `eval echo '${'$as_ac_var'}'` = yes; then
12553 cat >>confdefs.h <<_ACEOF
12554#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12555_ACEOF
12556
12557fi
12558done
12559
12560
Reid Spencera773bd52006-08-04 18:18:08 +000012561# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012562if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012563 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012564 case $enableval in
12565 yes) enable_shared=yes ;;
12566 no) enable_shared=no ;;
12567 *)
12568 enable_shared=no
12569 # Look at the argument we got. We use all the common list separators.
12570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12571 for pkg in $enableval; do
12572 IFS="$lt_save_ifs"
12573 if test "X$pkg" = "X$p"; then
12574 enable_shared=yes
12575 fi
12576 done
12577 IFS="$lt_save_ifs"
12578 ;;
12579 esac
12580else
12581 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012582fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012583
Reid Spencera773bd52006-08-04 18:18:08 +000012584
12585# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012586if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012587 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012588 case $enableval in
12589 yes) enable_static=yes ;;
12590 no) enable_static=no ;;
12591 *)
12592 enable_static=no
12593 # Look at the argument we got. We use all the common list separators.
12594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12595 for pkg in $enableval; do
12596 IFS="$lt_save_ifs"
12597 if test "X$pkg" = "X$p"; then
12598 enable_static=yes
12599 fi
12600 done
12601 IFS="$lt_save_ifs"
12602 ;;
12603 esac
12604else
12605 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012606fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012607
Reid Spencera773bd52006-08-04 18:18:08 +000012608
12609# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012610if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012611 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012612 case $enableval in
12613 yes) enable_fast_install=yes ;;
12614 no) enable_fast_install=no ;;
12615 *)
12616 enable_fast_install=no
12617 # Look at the argument we got. We use all the common list separators.
12618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12619 for pkg in $enableval; do
12620 IFS="$lt_save_ifs"
12621 if test "X$pkg" = "X$p"; then
12622 enable_fast_install=yes
12623 fi
12624 done
12625 IFS="$lt_save_ifs"
12626 ;;
12627 esac
12628else
12629 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012630fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012631
Reid Spencera773bd52006-08-04 18:18:08 +000012632
12633{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12634echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012635if test "${lt_cv_path_SED+set}" = set; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12637else
12638 # Loop through the user's path and test for sed and gsed.
12639# Then use that list of sed's as ones to test for truncation.
12640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641for as_dir in $PATH
12642do
12643 IFS=$as_save_IFS
12644 test -z "$as_dir" && as_dir=.
12645 for lt_ac_prog in sed gsed; do
12646 for ac_exec_ext in '' $ac_executable_extensions; do
12647 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12648 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12649 fi
12650 done
12651 done
12652done
12653lt_ac_max=0
12654lt_ac_count=0
12655# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12656# along with /bin/sed that truncates output.
12657for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012658 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012659 cat /dev/null > conftest.in
12660 lt_ac_count=0
12661 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12662 # Check for GNU sed and select it if it is found.
12663 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12664 lt_cv_path_SED=$lt_ac_sed
12665 break
12666 fi
12667 while true; do
12668 cat conftest.in conftest.in >conftest.tmp
12669 mv conftest.tmp conftest.in
12670 cp conftest.in conftest.nl
12671 echo >>conftest.nl
12672 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12673 cmp -s conftest.out conftest.nl || break
12674 # 10000 chars as input seems more than enough
12675 test $lt_ac_count -gt 10 && break
12676 lt_ac_count=`expr $lt_ac_count + 1`
12677 if test $lt_ac_count -gt $lt_ac_max; then
12678 lt_ac_max=$lt_ac_count
12679 lt_cv_path_SED=$lt_ac_sed
12680 fi
12681 done
12682done
12683
12684fi
12685
12686SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012687{ echo "$as_me:$LINENO: result: $SED" >&5
12688echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012689
12690
Reid Spencera773bd52006-08-04 18:18:08 +000012691# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012692if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012693 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012694else
12695 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012696fi
12697
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012698ac_prog=ld
12699if test "$GCC" = yes; then
12700 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012701 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12702echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012703 case $host in
12704 *-*-mingw*)
12705 # gcc leaves a trailing carriage return which upsets mingw
12706 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12707 *)
12708 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12709 esac
12710 case $ac_prog in
12711 # Accept absolute paths.
12712 [\\/]* | ?:[\\/]*)
12713 re_direlt='/[^/][^/]*/\.\./'
12714 # Canonicalize the pathname of ld
12715 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12716 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12717 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12718 done
12719 test -z "$LD" && LD="$ac_prog"
12720 ;;
12721 "")
12722 # If it fails, then pretend we aren't using GCC.
12723 ac_prog=ld
12724 ;;
12725 *)
12726 # If it is relative, then search for the first ld in PATH.
12727 with_gnu_ld=unknown
12728 ;;
12729 esac
12730elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012731 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12732echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012733else
Reid Spencera773bd52006-08-04 18:18:08 +000012734 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12735echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012736fi
12737if test "${lt_cv_path_LD+set}" = set; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12739else
12740 if test -z "$LD"; then
12741 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12742 for ac_dir in $PATH; do
12743 IFS="$lt_save_ifs"
12744 test -z "$ac_dir" && ac_dir=.
12745 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12746 lt_cv_path_LD="$ac_dir/$ac_prog"
12747 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012748 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012749 # Break only if it was the GNU/non-GNU ld that we prefer.
12750 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12751 *GNU* | *'with BFD'*)
12752 test "$with_gnu_ld" != no && break
12753 ;;
12754 *)
12755 test "$with_gnu_ld" != yes && break
12756 ;;
12757 esac
12758 fi
12759 done
12760 IFS="$lt_save_ifs"
12761else
12762 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12763fi
12764fi
12765
12766LD="$lt_cv_path_LD"
12767if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012768 { echo "$as_me:$LINENO: result: $LD" >&5
12769echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012770else
Reid Spencera773bd52006-08-04 18:18:08 +000012771 { echo "$as_me:$LINENO: result: no" >&5
12772echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012773fi
12774test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12775echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12776 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012777{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12778echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012779if test "${lt_cv_prog_gnu_ld+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12781else
Reid Spencera773bd52006-08-04 18:18:08 +000012782 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012783case `$LD -v 2>&1 </dev/null` in
12784*GNU* | *'with BFD'*)
12785 lt_cv_prog_gnu_ld=yes
12786 ;;
12787*)
12788 lt_cv_prog_gnu_ld=no
12789 ;;
12790esac
12791fi
Reid Spencera773bd52006-08-04 18:18:08 +000012792{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12793echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012794with_gnu_ld=$lt_cv_prog_gnu_ld
12795
12796
Reid Spencera773bd52006-08-04 18:18:08 +000012797{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12798echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012799if test "${lt_cv_ld_reload_flag+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12801else
12802 lt_cv_ld_reload_flag='-r'
12803fi
Reid Spencera773bd52006-08-04 18:18:08 +000012804{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12805echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012806reload_flag=$lt_cv_ld_reload_flag
12807case $reload_flag in
12808"" | " "*) ;;
12809*) reload_flag=" $reload_flag" ;;
12810esac
12811reload_cmds='$LD$reload_flag -o $output$reload_objs'
12812case $host_os in
12813 darwin*)
12814 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012815 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012816 else
12817 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12818 fi
12819 ;;
12820esac
12821
Reid Spencera773bd52006-08-04 18:18:08 +000012822{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12823echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012824if test "${lt_cv_deplibs_check_method+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12826else
12827 lt_cv_file_magic_cmd='$MAGIC_CMD'
12828lt_cv_file_magic_test_file=
12829lt_cv_deplibs_check_method='unknown'
12830# Need to set the preceding variable on all platforms that support
12831# interlibrary dependencies.
12832# 'none' -- dependencies not supported.
12833# `unknown' -- same as none, but documents that we really don't know.
12834# 'pass_all' -- all dependencies passed with no checks.
12835# 'test_compile' -- check by making test program.
12836# 'file_magic [[regex]]' -- check by looking for files in library path
12837# which responds to the $file_magic_cmd with a given extended regex.
12838# If you have `file' or equivalent on your system and you're not sure
12839# whether `pass_all' will *always* work, you probably want this one.
12840
12841case $host_os in
12842aix4* | aix5*)
12843 lt_cv_deplibs_check_method=pass_all
12844 ;;
12845
12846beos*)
12847 lt_cv_deplibs_check_method=pass_all
12848 ;;
12849
12850bsdi[45]*)
12851 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12852 lt_cv_file_magic_cmd='/usr/bin/file -L'
12853 lt_cv_file_magic_test_file=/shlib/libc.so
12854 ;;
12855
12856cygwin*)
12857 # func_win32_libid is a shell function defined in ltmain.sh
12858 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12859 lt_cv_file_magic_cmd='func_win32_libid'
12860 ;;
12861
12862mingw* | pw32*)
12863 # Base MSYS/MinGW do not provide the 'file' command needed by
12864 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12865 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12866 lt_cv_file_magic_cmd='$OBJDUMP -f'
12867 ;;
12868
12869darwin* | rhapsody*)
12870 lt_cv_deplibs_check_method=pass_all
12871 ;;
12872
Reid Spencera773bd52006-08-04 18:18:08 +000012873freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012874 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12875 case $host_cpu in
12876 i*86 )
12877 # Not sure whether the presence of OpenBSD here was a mistake.
12878 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012879 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 +000012880 lt_cv_file_magic_cmd=/usr/bin/file
12881 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12882 ;;
12883 esac
12884 else
12885 lt_cv_deplibs_check_method=pass_all
12886 fi
12887 ;;
12888
12889gnu*)
12890 lt_cv_deplibs_check_method=pass_all
12891 ;;
12892
12893hpux10.20* | hpux11*)
12894 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012895 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012896 ia64*)
12897 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12898 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12899 ;;
12900 hppa*64*)
12901 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]'
12902 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12903 ;;
12904 *)
12905 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12906 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12907 ;;
12908 esac
12909 ;;
12910
Reid Spencera773bd52006-08-04 18:18:08 +000012911interix3*)
12912 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12913 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12914 ;;
12915
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012916irix5* | irix6* | nonstopux*)
12917 case $LD in
12918 *-32|*"-32 ") libmagic=32-bit;;
12919 *-n32|*"-n32 ") libmagic=N32;;
12920 *-64|*"-64 ") libmagic=64-bit;;
12921 *) libmagic=never-match;;
12922 esac
12923 lt_cv_deplibs_check_method=pass_all
12924 ;;
12925
12926# This must be Linux ELF.
12927linux*)
12928 lt_cv_deplibs_check_method=pass_all
12929 ;;
12930
12931netbsd*)
12932 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12934 else
12935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12936 fi
12937 ;;
12938
12939newos6*)
12940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12941 lt_cv_file_magic_cmd=/usr/bin/file
12942 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12943 ;;
12944
12945nto-qnx*)
12946 lt_cv_deplibs_check_method=unknown
12947 ;;
12948
12949openbsd*)
12950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12952 else
12953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12954 fi
12955 ;;
12956
12957osf3* | osf4* | osf5*)
12958 lt_cv_deplibs_check_method=pass_all
12959 ;;
12960
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012961solaris*)
12962 lt_cv_deplibs_check_method=pass_all
12963 ;;
12964
Reid Spencera773bd52006-08-04 18:18:08 +000012965sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012966 case $host_vendor in
12967 motorola)
12968 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]'
12969 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12970 ;;
12971 ncr)
12972 lt_cv_deplibs_check_method=pass_all
12973 ;;
12974 sequent)
12975 lt_cv_file_magic_cmd='/bin/file'
12976 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12977 ;;
12978 sni)
12979 lt_cv_file_magic_cmd='/bin/file'
12980 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12981 lt_cv_file_magic_test_file=/lib/libc.so
12982 ;;
12983 siemens)
12984 lt_cv_deplibs_check_method=pass_all
12985 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012986 pc)
12987 lt_cv_deplibs_check_method=pass_all
12988 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012989 esac
12990 ;;
12991
Reid Spencera773bd52006-08-04 18:18:08 +000012992sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012993 lt_cv_deplibs_check_method=pass_all
12994 ;;
12995esac
12996
12997fi
Reid Spencera773bd52006-08-04 18:18:08 +000012998{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12999echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013000file_magic_cmd=$lt_cv_file_magic_cmd
13001deplibs_check_method=$lt_cv_deplibs_check_method
13002test -z "$deplibs_check_method" && deplibs_check_method=unknown
13003
13004
13005
13006# If no C compiler was specified, use CC.
13007LTCC=${LTCC-"$CC"}
13008
Reid Spencera773bd52006-08-04 18:18:08 +000013009# If no C compiler flags were specified, use CFLAGS.
13010LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13011
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013012# Allow CC to be a program name with arguments.
13013compiler=$CC
13014
Reid Spencera773bd52006-08-04 18:18:08 +000013015# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013016if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013017 enableval=$enable_libtool_lock;
13018fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013019
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013020test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13021
13022# Some flags need to be propagated to the compiler or linker for good
13023# libtool support.
13024case $host in
13025ia64-*-hpux*)
13026 # Find out which ABI we are using.
13027 echo 'int i;' > conftest.$ac_ext
13028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13029 (eval $ac_compile) 2>&5
13030 ac_status=$?
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; then
13033 case `/usr/bin/file conftest.$ac_objext` in
13034 *ELF-32*)
13035 HPUX_IA64_MODE="32"
13036 ;;
13037 *ELF-64*)
13038 HPUX_IA64_MODE="64"
13039 ;;
13040 esac
13041 fi
13042 rm -rf conftest*
13043 ;;
13044*-*-irix6*)
13045 # Find out which ABI we are using.
David Greenef0b9eff2009-07-09 17:16:26 +000013046 echo '#line 13046 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048 (eval $ac_compile) 2>&5
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; then
13052 if test "$lt_cv_prog_gnu_ld" = yes; then
13053 case `/usr/bin/file conftest.$ac_objext` in
13054 *32-bit*)
13055 LD="${LD-ld} -melf32bsmip"
13056 ;;
13057 *N32*)
13058 LD="${LD-ld} -melf32bmipn32"
13059 ;;
13060 *64-bit*)
13061 LD="${LD-ld} -melf64bmip"
13062 ;;
13063 esac
13064 else
13065 case `/usr/bin/file conftest.$ac_objext` in
13066 *32-bit*)
13067 LD="${LD-ld} -32"
13068 ;;
13069 *N32*)
13070 LD="${LD-ld} -n32"
13071 ;;
13072 *64-bit*)
13073 LD="${LD-ld} -64"
13074 ;;
13075 esac
13076 fi
13077 fi
13078 rm -rf conftest*
13079 ;;
13080
13081x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13082 # Find out which ABI we are using.
13083 echo 'int i;' > conftest.$ac_ext
13084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13085 (eval $ac_compile) 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013089 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013090 *32-bit*)
13091 case $host in
13092 x86_64-*linux*)
13093 LD="${LD-ld} -m elf_i386"
13094 ;;
13095 ppc64-*linux*|powerpc64-*linux*)
13096 LD="${LD-ld} -m elf32ppclinux"
13097 ;;
13098 s390x-*linux*)
13099 LD="${LD-ld} -m elf_s390"
13100 ;;
13101 sparc64-*linux*)
13102 LD="${LD-ld} -m elf32_sparc"
13103 ;;
13104 esac
13105 ;;
13106 *64-bit*)
13107 case $host in
13108 x86_64-*linux*)
13109 LD="${LD-ld} -m elf_x86_64"
13110 ;;
13111 ppc*-*linux*|powerpc*-*linux*)
13112 LD="${LD-ld} -m elf64ppc"
13113 ;;
13114 s390*-*linux*)
13115 LD="${LD-ld} -m elf64_s390"
13116 ;;
13117 sparc*-*linux*)
13118 LD="${LD-ld} -m elf64_sparc"
13119 ;;
13120 esac
13121 ;;
13122 esac
13123 fi
13124 rm -rf conftest*
13125 ;;
13126
13127*-*-sco3.2v5*)
13128 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13129 SAVE_CFLAGS="$CFLAGS"
13130 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013131 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13132echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013133if test "${lt_cv_cc_needs_belf+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13135else
13136 ac_ext=c
13137ac_cpp='$CPP $CPPFLAGS'
13138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13140ac_compiler_gnu=$ac_cv_c_compiler_gnu
13141
13142 cat >conftest.$ac_ext <<_ACEOF
13143/* confdefs.h. */
13144_ACEOF
13145cat confdefs.h >>conftest.$ac_ext
13146cat >>conftest.$ac_ext <<_ACEOF
13147/* end confdefs.h. */
13148
Reid Spencera773bd52006-08-04 18:18:08 +000013149int
13150main ()
13151{
13152
13153 ;
13154 return 0;
13155}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013156_ACEOF
13157rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013158if { (ac_try="$ac_link"
13159case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13162esac
13163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013165 ac_status=$?
13166 grep -v '^ *+' conftest.er1 >conftest.err
13167 rm -f conftest.er1
13168 cat conftest.err >&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013170 (exit $ac_status); } &&
13171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13172 { (case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13175esac
13176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_try") 2>&5
13178 ac_status=$?
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; } &&
13181 { ac_try='test -s conftest$ac_exeext'
13182 { (case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13185esac
13186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_try") 2>&5
13188 ac_status=$?
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013191 lt_cv_cc_needs_belf=yes
13192else
13193 echo "$as_me: failed program was:" >&5
13194sed 's/^/| /' conftest.$ac_ext >&5
13195
Reid Spencera773bd52006-08-04 18:18:08 +000013196 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013197fi
Reid Spencera773bd52006-08-04 18:18:08 +000013198
Bill Wendlingebcceee2009-04-18 11:20:33 +000013199rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013200 conftest$ac_exeext conftest.$ac_ext
13201 ac_ext=c
13202ac_cpp='$CPP $CPPFLAGS'
13203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13205ac_compiler_gnu=$ac_cv_c_compiler_gnu
13206
13207fi
Reid Spencera773bd52006-08-04 18:18:08 +000013208{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13209echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013210 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13211 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13212 CFLAGS="$SAVE_CFLAGS"
13213 fi
13214 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013215sparc*-*solaris*)
13216 # Find out which ABI we are using.
13217 echo 'int i;' > conftest.$ac_ext
13218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13219 (eval $ac_compile) 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; then
13223 case `/usr/bin/file conftest.o` in
13224 *64-bit*)
13225 case $lt_cv_prog_gnu_ld in
13226 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13227 *) LD="${LD-ld} -64" ;;
13228 esac
13229 ;;
13230 esac
13231 fi
13232 rm -rf conftest*
13233 ;;
13234
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013235
13236esac
13237
13238need_locks="$enable_libtool_lock"
13239
13240
Reid Spencer2706f8c2004-09-19 23:53:36 +000013241
13242
13243if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13244 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13245 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013246 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013247ac_cpp='$CXXCPP $CPPFLAGS'
13248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013251{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13252echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013253if test -z "$CXXCPP"; then
13254 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013255 echo $ECHO_N "(cached) $ECHO_C" >&6
13256else
John Criswell47fdd832003-07-14 16:52:07 +000013257 # Double quotes because CXXCPP needs to be expanded
13258 for CXXCPP in "$CXX -E" "/lib/cpp"
13259 do
13260 ac_preproc_ok=false
13261for ac_cxx_preproc_warn_flag in '' yes
13262do
13263 # Use a header file that comes with gcc, so configuring glibc
13264 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13266 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013267 # On the NeXT, cc -E runs the code through the compiler's parser,
13268 # not just through cpp. "Syntax error" is here to catch this case.
13269 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013270/* confdefs.h. */
13271_ACEOF
13272cat confdefs.h >>conftest.$ac_ext
13273cat >>conftest.$ac_ext <<_ACEOF
13274/* end confdefs.h. */
13275#ifdef __STDC__
13276# include <limits.h>
13277#else
13278# include <assert.h>
13279#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013280 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013281_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013282if { (ac_try="$ac_cpp conftest.$ac_ext"
13283case "(($ac_try" in
13284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285 *) ac_try_echo=$ac_try;;
13286esac
13287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013289 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013290 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013291 rm -f conftest.er1
13292 cat conftest.err >&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013294 (exit $ac_status); } >/dev/null; then
13295 if test -s conftest.err; then
13296 ac_cpp_err=$ac_cxx_preproc_warn_flag
13297 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13298 else
13299 ac_cpp_err=
13300 fi
13301else
13302 ac_cpp_err=yes
13303fi
13304if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013305 :
13306else
13307 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013308sed 's/^/| /' conftest.$ac_ext >&5
13309
John Criswell47fdd832003-07-14 16:52:07 +000013310 # Broken: fails on valid input.
13311continue
13312fi
Reid Spencera773bd52006-08-04 18:18:08 +000013313
John Criswell47fdd832003-07-14 16:52:07 +000013314rm -f conftest.err conftest.$ac_ext
13315
Reid Spencera773bd52006-08-04 18:18:08 +000013316 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013317 # can be detected and how.
13318 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013319/* confdefs.h. */
13320_ACEOF
13321cat confdefs.h >>conftest.$ac_ext
13322cat >>conftest.$ac_ext <<_ACEOF
13323/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013324#include <ac_nonexistent.h>
13325_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013326if { (ac_try="$ac_cpp conftest.$ac_ext"
13327case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13330esac
13331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013333 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013334 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013335 rm -f conftest.er1
13336 cat conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013338 (exit $ac_status); } >/dev/null; then
13339 if test -s conftest.err; then
13340 ac_cpp_err=$ac_cxx_preproc_warn_flag
13341 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13342 else
13343 ac_cpp_err=
13344 fi
13345else
13346 ac_cpp_err=yes
13347fi
13348if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013349 # Broken: success on invalid input.
13350continue
13351else
13352 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013353sed 's/^/| /' conftest.$ac_ext >&5
13354
John Criswell47fdd832003-07-14 16:52:07 +000013355 # Passes both tests.
13356ac_preproc_ok=:
13357break
13358fi
Reid Spencera773bd52006-08-04 18:18:08 +000013359
John Criswell47fdd832003-07-14 16:52:07 +000013360rm -f conftest.err conftest.$ac_ext
13361
13362done
13363# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13364rm -f conftest.err conftest.$ac_ext
13365if $ac_preproc_ok; then
13366 break
John Criswell7a73b802003-06-30 21:59:07 +000013367fi
13368
John Criswell47fdd832003-07-14 16:52:07 +000013369 done
13370 ac_cv_prog_CXXCPP=$CXXCPP
13371
13372fi
13373 CXXCPP=$ac_cv_prog_CXXCPP
13374else
13375 ac_cv_prog_CXXCPP=$CXXCPP
13376fi
Reid Spencera773bd52006-08-04 18:18:08 +000013377{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13378echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013379ac_preproc_ok=false
13380for ac_cxx_preproc_warn_flag in '' yes
13381do
13382 # Use a header file that comes with gcc, so configuring glibc
13383 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13385 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013386 # On the NeXT, cc -E runs the code through the compiler's parser,
13387 # not just through cpp. "Syntax error" is here to catch this case.
13388 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013389/* confdefs.h. */
13390_ACEOF
13391cat confdefs.h >>conftest.$ac_ext
13392cat >>conftest.$ac_ext <<_ACEOF
13393/* end confdefs.h. */
13394#ifdef __STDC__
13395# include <limits.h>
13396#else
13397# include <assert.h>
13398#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013399 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013400_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013401if { (ac_try="$ac_cpp conftest.$ac_ext"
13402case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13405esac
13406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013408 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013409 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013410 rm -f conftest.er1
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013413 (exit $ac_status); } >/dev/null; then
13414 if test -s conftest.err; then
13415 ac_cpp_err=$ac_cxx_preproc_warn_flag
13416 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13417 else
13418 ac_cpp_err=
13419 fi
13420else
13421 ac_cpp_err=yes
13422fi
13423if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013424 :
13425else
13426 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013427sed 's/^/| /' conftest.$ac_ext >&5
13428
John Criswell47fdd832003-07-14 16:52:07 +000013429 # Broken: fails on valid input.
13430continue
13431fi
Reid Spencera773bd52006-08-04 18:18:08 +000013432
John Criswell47fdd832003-07-14 16:52:07 +000013433rm -f conftest.err conftest.$ac_ext
13434
Reid Spencera773bd52006-08-04 18:18:08 +000013435 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013436 # can be detected and how.
13437 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013438/* confdefs.h. */
13439_ACEOF
13440cat confdefs.h >>conftest.$ac_ext
13441cat >>conftest.$ac_ext <<_ACEOF
13442/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013443#include <ac_nonexistent.h>
13444_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013445if { (ac_try="$ac_cpp conftest.$ac_ext"
13446case "(($ac_try" in
13447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448 *) ac_try_echo=$ac_try;;
13449esac
13450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013452 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013453 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013454 rm -f conftest.er1
13455 cat conftest.err >&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013457 (exit $ac_status); } >/dev/null; then
13458 if test -s conftest.err; then
13459 ac_cpp_err=$ac_cxx_preproc_warn_flag
13460 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13461 else
13462 ac_cpp_err=
13463 fi
13464else
13465 ac_cpp_err=yes
13466fi
13467if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013468 # Broken: success on invalid input.
13469continue
13470else
13471 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013472sed 's/^/| /' conftest.$ac_ext >&5
13473
John Criswell47fdd832003-07-14 16:52:07 +000013474 # Passes both tests.
13475ac_preproc_ok=:
13476break
13477fi
Reid Spencera773bd52006-08-04 18:18:08 +000013478
John Criswell47fdd832003-07-14 16:52:07 +000013479rm -f conftest.err conftest.$ac_ext
13480
13481done
13482# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13483rm -f conftest.err conftest.$ac_ext
13484if $ac_preproc_ok; then
13485 :
13486else
John Criswell0c38eaf2003-09-10 15:17:25 +000013487 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13488See \`config.log' for more details." >&5
13489echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13490See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013491 { (exit 1); exit 1; }; }
13492fi
13493
Reid Spencera773bd52006-08-04 18:18:08 +000013494ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013495ac_cpp='$CXXCPP $CPPFLAGS'
13496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13499
Reid Spencer2706f8c2004-09-19 23:53:36 +000013500fi
13501
John Criswell47fdd832003-07-14 16:52:07 +000013502
13503ac_ext=f
13504ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13505ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13506ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13507if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013508 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 +000013509 do
13510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13511set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013514if test "${ac_cv_prog_F77+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13516else
13517 if test -n "$F77"; then
13518 ac_cv_prog_F77="$F77" # Let the user override the test.
13519else
13520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13521for as_dir in $PATH
13522do
13523 IFS=$as_save_IFS
13524 test -z "$as_dir" && as_dir=.
13525 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013526 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 +000013527 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13529 break 2
13530 fi
13531done
13532done
Reid Spencera773bd52006-08-04 18:18:08 +000013533IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013534
13535fi
13536fi
13537F77=$ac_cv_prog_F77
13538if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013539 { echo "$as_me:$LINENO: result: $F77" >&5
13540echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013541else
Reid Spencera773bd52006-08-04 18:18:08 +000013542 { echo "$as_me:$LINENO: result: no" >&5
13543echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013544fi
13545
Reid Spencera773bd52006-08-04 18:18:08 +000013546
John Criswell47fdd832003-07-14 16:52:07 +000013547 test -n "$F77" && break
13548 done
13549fi
13550if test -z "$F77"; then
13551 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013552 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 +000013553do
13554 # Extract the first word of "$ac_prog", so it can be a program name with args.
13555set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013558if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13560else
13561 if test -n "$ac_ct_F77"; then
13562 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13563else
13564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565for as_dir in $PATH
13566do
13567 IFS=$as_save_IFS
13568 test -z "$as_dir" && as_dir=.
13569 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013570 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 +000013571 ac_cv_prog_ac_ct_F77="$ac_prog"
13572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13573 break 2
13574 fi
13575done
13576done
Reid Spencera773bd52006-08-04 18:18:08 +000013577IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013578
13579fi
13580fi
13581ac_ct_F77=$ac_cv_prog_ac_ct_F77
13582if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013583 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13584echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013585else
Reid Spencera773bd52006-08-04 18:18:08 +000013586 { echo "$as_me:$LINENO: result: no" >&5
13587echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013588fi
13589
Reid Spencera773bd52006-08-04 18:18:08 +000013590
John Criswell47fdd832003-07-14 16:52:07 +000013591 test -n "$ac_ct_F77" && break
13592done
13593
Reid Spencera773bd52006-08-04 18:18:08 +000013594 if test "x$ac_ct_F77" = x; then
13595 F77=""
13596 else
13597 case $cross_compiling:$ac_tool_warned in
13598yes:)
13599{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13600whose name does not start with the host triplet. If you think this
13601configuration is useful to you, please write to autoconf@gnu.org." >&5
13602echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13603whose name does not start with the host triplet. If you think this
13604configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13605ac_tool_warned=yes ;;
13606esac
13607 F77=$ac_ct_F77
13608 fi
John Criswell47fdd832003-07-14 16:52:07 +000013609fi
13610
13611
13612# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013613echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013614ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013615{ (ac_try="$ac_compiler --version >&5"
13616case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13619esac
13620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013625{ (ac_try="$ac_compiler -v >&5"
13626case "(($ac_try" in
13627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628 *) ac_try_echo=$ac_try;;
13629esac
13630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013635{ (ac_try="$ac_compiler -V >&5"
13636case "(($ac_try" in
13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13639esac
13640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013645rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013646
13647# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013648# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013649ac_save_ext=$ac_ext
13650ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013651{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13652echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013653if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13655else
13656 cat >conftest.$ac_ext <<_ACEOF
13657 program main
13658#ifndef __GNUC__
13659 choke me
13660#endif
13661
13662 end
13663_ACEOF
13664rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013665if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013672 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013673 grep -v '^ *+' conftest.er1 >conftest.err
13674 rm -f conftest.er1
13675 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013677 (exit $ac_status); } &&
13678 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13679 { (case "(($ac_try" in
13680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681 *) ac_try_echo=$ac_try;;
13682esac
13683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13684 (eval "$ac_try") 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; } &&
13688 { ac_try='test -s conftest.$ac_objext'
13689 { (case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13692esac
13693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_try") 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013698 ac_compiler_gnu=yes
13699else
13700 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013701sed 's/^/| /' conftest.$ac_ext >&5
13702
Reid Spencera773bd52006-08-04 18:18:08 +000013703 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013704fi
Reid Spencera773bd52006-08-04 18:18:08 +000013705
13706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013707ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13708
13709fi
Reid Spencera773bd52006-08-04 18:18:08 +000013710{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13711echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013712ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013713ac_test_FFLAGS=${FFLAGS+set}
13714ac_save_FFLAGS=$FFLAGS
13715FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013716{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13717echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013718if test "${ac_cv_prog_f77_g+set}" = set; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13720else
13721 FFLAGS=-g
13722cat >conftest.$ac_ext <<_ACEOF
13723 program main
13724
13725 end
13726_ACEOF
13727rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013728if { (ac_try="$ac_compile"
13729case "(($ac_try" in
13730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13731 *) ac_try_echo=$ac_try;;
13732esac
13733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13734 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013735 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013736 grep -v '^ *+' conftest.er1 >conftest.err
13737 rm -f conftest.er1
13738 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013740 (exit $ac_status); } &&
13741 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13742 { (case "(($ac_try" in
13743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744 *) ac_try_echo=$ac_try;;
13745esac
13746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747 (eval "$ac_try") 2>&5
13748 ac_status=$?
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; } &&
13751 { ac_try='test -s conftest.$ac_objext'
13752 { (case "(($ac_try" in
13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13755esac
13756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_try") 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013761 ac_cv_prog_f77_g=yes
13762else
13763 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013764sed 's/^/| /' conftest.$ac_ext >&5
13765
Reid Spencera773bd52006-08-04 18:18:08 +000013766 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013767fi
Reid Spencera773bd52006-08-04 18:18:08 +000013768
13769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013770
13771fi
Reid Spencera773bd52006-08-04 18:18:08 +000013772{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13773echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013774if test "$ac_test_FFLAGS" = set; then
13775 FFLAGS=$ac_save_FFLAGS
13776elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013777 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013778 FFLAGS="-g -O2"
13779 else
13780 FFLAGS="-g"
13781 fi
13782else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013783 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013784 FFLAGS="-O2"
13785 else
13786 FFLAGS=
13787 fi
13788fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013789
13790G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013791ac_ext=c
13792ac_cpp='$CPP $CPPFLAGS'
13793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13795ac_compiler_gnu=$ac_cv_c_compiler_gnu
13796
13797
13798
13799# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13800
13801# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013802{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13803echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013804if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13806else
13807 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013808 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013809
13810 case $build_os in
13811 msdosdjgpp*)
13812 # On DJGPP, this test can blow up pretty badly due to problems in libc
13813 # (any single argument exceeding 2000 bytes causes a buffer overrun
13814 # during glob expansion). Even if it were fixed, the result of this
13815 # check would be larger than it should be.
13816 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13817 ;;
13818
13819 gnu*)
13820 # Under GNU Hurd, this test is not required because there is
13821 # no limit to the length of command line arguments.
13822 # Libtool will interpret -1 as no limit whatsoever
13823 lt_cv_sys_max_cmd_len=-1;
13824 ;;
13825
13826 cygwin* | mingw*)
13827 # On Win9x/ME, this test blows up -- it succeeds, but takes
13828 # about 5 minutes as the teststring grows exponentially.
13829 # Worse, since 9x/ME are not pre-emptively multitasking,
13830 # you end up with a "frozen" computer, even though with patience
13831 # the test eventually succeeds (with a max line length of 256k).
13832 # Instead, let's just punt: use the minimum linelength reported by
13833 # all of the supported platforms: 8192 (on NT/2K/XP).
13834 lt_cv_sys_max_cmd_len=8192;
13835 ;;
13836
Reid Spencer2706f8c2004-09-19 23:53:36 +000013837 amigaos*)
13838 # On AmigaOS with pdksh, this test takes hours, literally.
13839 # So we just punt and use a minimum line length of 8192.
13840 lt_cv_sys_max_cmd_len=8192;
13841 ;;
13842
Reid Spencera773bd52006-08-04 18:18:08 +000013843 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013844 # This has been around since 386BSD, at least. Likely further.
13845 if test -x /sbin/sysctl; then
13846 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13847 elif test -x /usr/sbin/sysctl; then
13848 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13849 else
Reid Spencera773bd52006-08-04 18:18:08 +000013850 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013851 fi
13852 # And add a safety zone
13853 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013854 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013855 ;;
13856
Reid Spencera773bd52006-08-04 18:18:08 +000013857 interix*)
13858 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13859 lt_cv_sys_max_cmd_len=196608
13860 ;;
13861
13862 osf*)
13863 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13864 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13865 # nice to cause kernel panics so lets avoid the loop below.
13866 # First set a reasonable default.
13867 lt_cv_sys_max_cmd_len=16384
13868 #
13869 if test -x /sbin/sysconfig; then
13870 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13871 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13872 esac
13873 fi
13874 ;;
13875 sco3.2v5*)
13876 lt_cv_sys_max_cmd_len=102400
13877 ;;
13878 sysv5* | sco5v6* | sysv4.2uw2*)
13879 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13880 if test -n "$kargmax"; then
13881 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13882 else
13883 lt_cv_sys_max_cmd_len=32768
13884 fi
13885 ;;
13886 *)
John Criswell47fdd832003-07-14 16:52:07 +000013887 # If test is not a shell built-in, we'll probably end up computing a
13888 # maximum length that is only half of the actual maximum length, but
13889 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013890 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13891 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13892 = "XX$teststring") >/dev/null 2>&1 &&
13893 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013894 lt_cv_sys_max_cmd_len=$new_result &&
13895 test $i != 17 # 1/2 MB should be enough
13896 do
13897 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013898 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013899 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013900 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013901 # Add a significant safety factor because C++ compilers can tack on massive
13902 # amounts of additional arguments before passing them to the linker.
13903 # It appears as though 1/2 is a usable value.
13904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13905 ;;
13906 esac
13907
13908fi
13909
13910if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013911 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13912echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013913else
Reid Spencera773bd52006-08-04 18:18:08 +000013914 { echo "$as_me:$LINENO: result: none" >&5
13915echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013916fi
13917
13918
13919
13920
13921# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013922{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13923echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013924if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13926else
13927
13928# These are sane defaults that work on at least a few old systems.
13929# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13930
13931# Character class describing NM global symbol codes.
13932symcode='[BCDEGRST]'
13933
13934# Regexp to match symbols that can be accessed directly from C.
13935sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13936
John Criswell47fdd832003-07-14 16:52:07 +000013937# Transform an extracted symbol line into a proper C declaration
13938lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13939
13940# Transform an extracted symbol line into symbol name and symbol address
13941lt_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'"
13942
13943# Define system-specific variables.
13944case $host_os in
13945aix*)
13946 symcode='[BCDT]'
13947 ;;
13948cygwin* | mingw* | pw32*)
13949 symcode='[ABCDGISTW]'
13950 ;;
13951hpux*) # Its linker distinguishes data from code symbols
13952 if test "$host_cpu" = ia64; then
13953 symcode='[ABCDEGRST]'
13954 fi
13955 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13956 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'"
13957 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013958linux*)
13959 if test "$host_cpu" = ia64; then
13960 symcode='[ABCDGIRSTW]'
13961 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13962 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'"
13963 fi
13964 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013965irix* | nonstopux*)
13966 symcode='[BCDEGRST]'
13967 ;;
13968osf*)
13969 symcode='[BCDEGQRST]'
13970 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013971solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013972 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013973 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013974sco3.2v5*)
13975 symcode='[DT]'
13976 ;;
13977sysv4.2uw2*)
13978 symcode='[DT]'
13979 ;;
13980sysv5* | sco5v6* | unixware* | OpenUNIX*)
13981 symcode='[ABDT]'
13982 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013983sysv4)
13984 symcode='[DFNSTU]'
13985 ;;
13986esac
13987
13988# Handle CRLF in mingw tool chain
13989opt_cr=
13990case $build_os in
13991mingw*)
13992 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13993 ;;
13994esac
13995
13996# If we're using GNU nm, then use its standard symbol codes.
13997case `$NM -V 2>&1` in
13998*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013999 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000014000esac
14001
14002# Try without a prefix undercore, then with it.
14003for ac_symprfx in "" "_"; do
14004
Reid Spencera773bd52006-08-04 18:18:08 +000014005 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14006 symxfrm="\\1 $ac_symprfx\\2 \\2"
14007
John Criswell47fdd832003-07-14 16:52:07 +000014008 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000014009 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 +000014010
14011 # Check to see that the pipe works correctly.
14012 pipe_works=no
14013
14014 rm -f conftest*
14015 cat > conftest.$ac_ext <<EOF
14016#ifdef __cplusplus
14017extern "C" {
14018#endif
14019char nm_test_var;
14020void nm_test_func(){}
14021#ifdef __cplusplus
14022}
14023#endif
14024int main(){nm_test_var='a';nm_test_func();return(0);}
14025EOF
14026
14027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14028 (eval $ac_compile) 2>&5
14029 ac_status=$?
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; then
14032 # Now try to grab the symbols.
14033 nlist=conftest.nm
14034 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14035 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } && test -s "$nlist"; then
14039 # Try sorting and uniquifying the output.
14040 if sort "$nlist" | uniq > "$nlist"T; then
14041 mv -f "$nlist"T "$nlist"
14042 else
14043 rm -f "$nlist"T
14044 fi
14045
14046 # Make sure that we snagged all the symbols we need.
14047 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14048 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14049 cat <<EOF > conftest.$ac_ext
14050#ifdef __cplusplus
14051extern "C" {
14052#endif
14053
14054EOF
14055 # Now generate the symbol file.
14056 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14057
14058 cat <<EOF >> conftest.$ac_ext
14059#if defined (__STDC__) && __STDC__
14060# define lt_ptr_t void *
14061#else
14062# define lt_ptr_t char *
14063# define const
14064#endif
14065
14066/* The mapping between symbol names and symbols. */
14067const struct {
14068 const char *name;
14069 lt_ptr_t address;
14070}
14071lt_preloaded_symbols[] =
14072{
14073EOF
14074 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14075 cat <<\EOF >> conftest.$ac_ext
14076 {0, (lt_ptr_t) 0}
14077};
14078
14079#ifdef __cplusplus
14080}
14081#endif
14082EOF
14083 # Now try linking the two files.
14084 mv conftest.$ac_objext conftstm.$ac_objext
14085 lt_save_LIBS="$LIBS"
14086 lt_save_CFLAGS="$CFLAGS"
14087 LIBS="conftstm.$ac_objext"
14088 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14090 (eval $ac_link) 2>&5
14091 ac_status=$?
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14094 pipe_works=yes
14095 fi
14096 LIBS="$lt_save_LIBS"
14097 CFLAGS="$lt_save_CFLAGS"
14098 else
14099 echo "cannot find nm_test_func in $nlist" >&5
14100 fi
14101 else
14102 echo "cannot find nm_test_var in $nlist" >&5
14103 fi
14104 else
14105 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14106 fi
14107 else
14108 echo "$progname: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14110 fi
14111 rm -f conftest* conftst*
14112
14113 # Do not use the global_symbol_pipe unless it works.
14114 if test "$pipe_works" = yes; then
14115 break
14116 else
14117 lt_cv_sys_global_symbol_pipe=
14118 fi
14119done
14120
14121fi
14122
14123if test -z "$lt_cv_sys_global_symbol_pipe"; then
14124 lt_cv_sys_global_symbol_to_cdecl=
14125fi
14126if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014127 { echo "$as_me:$LINENO: result: failed" >&5
14128echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014129else
Reid Spencera773bd52006-08-04 18:18:08 +000014130 { echo "$as_me:$LINENO: result: ok" >&5
14131echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014132fi
14133
Reid Spencera773bd52006-08-04 18:18:08 +000014134{ echo "$as_me:$LINENO: checking for objdir" >&5
14135echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014136if test "${lt_cv_objdir+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138else
14139 rm -f .libs 2>/dev/null
14140mkdir .libs 2>/dev/null
14141if test -d .libs; then
14142 lt_cv_objdir=.libs
14143else
14144 # MS-DOS does not allow filenames that begin with a dot.
14145 lt_cv_objdir=_libs
14146fi
14147rmdir .libs 2>/dev/null
14148fi
Reid Spencera773bd52006-08-04 18:18:08 +000014149{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14150echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014151objdir=$lt_cv_objdir
14152
14153
14154
14155
14156
14157case $host_os in
14158aix3*)
14159 # AIX sometimes has problems with the GCC collect2 program. For some
14160 # reason, if we set the COLLECT_NAMES environment variable, the problems
14161 # vanish in a puff of smoke.
14162 if test "X${COLLECT_NAMES+set}" != Xset; then
14163 COLLECT_NAMES=
14164 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014165 fi
14166 ;;
14167esac
14168
John Criswell47fdd832003-07-14 16:52:07 +000014169# Sed substitution that helps us do robust quoting. It backslashifies
14170# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014171Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014172sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14173
14174# Same as above, but do not quote variable references.
14175double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14176
14177# Sed substitution to delay expansion of an escaped shell variable in a
14178# double_quote_subst'ed string.
14179delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14180
14181# Sed substitution to avoid accidental globbing in evaled expressions
14182no_glob_subst='s/\*/\\\*/g'
14183
14184# Constants:
14185rm="rm -f"
14186
14187# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014188default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014189can_build_shared=yes
14190
Reid Spencera773bd52006-08-04 18:18:08 +000014191# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014192# which needs '.lib').
14193libext=a
14194ltmain="$ac_aux_dir/ltmain.sh"
14195ofile="$default_ofile"
14196with_gnu_ld="$lt_cv_prog_gnu_ld"
14197
14198if test -n "$ac_tool_prefix"; then
14199 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14200set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014201{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014203if test "${ac_cv_prog_AR+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14205else
14206 if test -n "$AR"; then
14207 ac_cv_prog_AR="$AR" # Let the user override the test.
14208else
14209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14210for as_dir in $PATH
14211do
14212 IFS=$as_save_IFS
14213 test -z "$as_dir" && as_dir=.
14214 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014215 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 +000014216 ac_cv_prog_AR="${ac_tool_prefix}ar"
14217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14218 break 2
14219 fi
14220done
14221done
Reid Spencera773bd52006-08-04 18:18:08 +000014222IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014223
14224fi
14225fi
14226AR=$ac_cv_prog_AR
14227if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014228 { echo "$as_me:$LINENO: result: $AR" >&5
14229echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014230else
Reid Spencera773bd52006-08-04 18:18:08 +000014231 { echo "$as_me:$LINENO: result: no" >&5
14232echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014233fi
14234
Reid Spencera773bd52006-08-04 18:18:08 +000014235
John Criswell47fdd832003-07-14 16:52:07 +000014236fi
14237if test -z "$ac_cv_prog_AR"; then
14238 ac_ct_AR=$AR
14239 # Extract the first word of "ar", so it can be a program name with args.
14240set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014241{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014243if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14244 echo $ECHO_N "(cached) $ECHO_C" >&6
14245else
14246 if test -n "$ac_ct_AR"; then
14247 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14248else
14249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250for as_dir in $PATH
14251do
14252 IFS=$as_save_IFS
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014255 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 +000014256 ac_cv_prog_ac_ct_AR="ar"
14257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14258 break 2
14259 fi
14260done
14261done
Reid Spencera773bd52006-08-04 18:18:08 +000014262IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014263
John Criswell47fdd832003-07-14 16:52:07 +000014264fi
14265fi
14266ac_ct_AR=$ac_cv_prog_ac_ct_AR
14267if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014268 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14269echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014270else
Reid Spencera773bd52006-08-04 18:18:08 +000014271 { echo "$as_me:$LINENO: result: no" >&5
14272echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014273fi
14274
Reid Spencera773bd52006-08-04 18:18:08 +000014275 if test "x$ac_ct_AR" = x; then
14276 AR="false"
14277 else
14278 case $cross_compiling:$ac_tool_warned in
14279yes:)
14280{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14281whose name does not start with the host triplet. If you think this
14282configuration is useful to you, please write to autoconf@gnu.org." >&5
14283echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14284whose name does not start with the host triplet. If you think this
14285configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14286ac_tool_warned=yes ;;
14287esac
14288 AR=$ac_ct_AR
14289 fi
John Criswell47fdd832003-07-14 16:52:07 +000014290else
14291 AR="$ac_cv_prog_AR"
14292fi
14293
John Criswell7a73b802003-06-30 21:59:07 +000014294if test -n "$ac_tool_prefix"; then
14295 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14296set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014297{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014299if test "${ac_cv_prog_RANLIB+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14301else
14302 if test -n "$RANLIB"; then
14303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14304else
14305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14306for as_dir in $PATH
14307do
14308 IFS=$as_save_IFS
14309 test -z "$as_dir" && as_dir=.
14310 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014311 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 +000014312 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14314 break 2
14315 fi
14316done
14317done
Reid Spencera773bd52006-08-04 18:18:08 +000014318IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014319
14320fi
14321fi
14322RANLIB=$ac_cv_prog_RANLIB
14323if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014324 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14325echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014326else
Reid Spencera773bd52006-08-04 18:18:08 +000014327 { echo "$as_me:$LINENO: result: no" >&5
14328echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014329fi
14330
Reid Spencera773bd52006-08-04 18:18:08 +000014331
John Criswell7a73b802003-06-30 21:59:07 +000014332fi
14333if test -z "$ac_cv_prog_RANLIB"; then
14334 ac_ct_RANLIB=$RANLIB
14335 # Extract the first word of "ranlib", so it can be a program name with args.
14336set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014339if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14340 echo $ECHO_N "(cached) $ECHO_C" >&6
14341else
14342 if test -n "$ac_ct_RANLIB"; then
14343 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14344else
14345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14346for as_dir in $PATH
14347do
14348 IFS=$as_save_IFS
14349 test -z "$as_dir" && as_dir=.
14350 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014351 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 +000014352 ac_cv_prog_ac_ct_RANLIB="ranlib"
14353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14354 break 2
14355 fi
14356done
14357done
Reid Spencera773bd52006-08-04 18:18:08 +000014358IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014359
John Criswell7a73b802003-06-30 21:59:07 +000014360fi
14361fi
14362ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14363if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014364 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14365echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014366else
Reid Spencera773bd52006-08-04 18:18:08 +000014367 { echo "$as_me:$LINENO: result: no" >&5
14368echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014369fi
14370
Reid Spencera773bd52006-08-04 18:18:08 +000014371 if test "x$ac_ct_RANLIB" = x; then
14372 RANLIB=":"
14373 else
14374 case $cross_compiling:$ac_tool_warned in
14375yes:)
14376{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14377whose name does not start with the host triplet. If you think this
14378configuration is useful to you, please write to autoconf@gnu.org." >&5
14379echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14380whose name does not start with the host triplet. If you think this
14381configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14382ac_tool_warned=yes ;;
14383esac
14384 RANLIB=$ac_ct_RANLIB
14385 fi
John Criswell7a73b802003-06-30 21:59:07 +000014386else
14387 RANLIB="$ac_cv_prog_RANLIB"
14388fi
14389
14390if test -n "$ac_tool_prefix"; then
14391 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14392set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014395if test "${ac_cv_prog_STRIP+set}" = set; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14397else
14398 if test -n "$STRIP"; then
14399 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14400else
14401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14402for as_dir in $PATH
14403do
14404 IFS=$as_save_IFS
14405 test -z "$as_dir" && as_dir=.
14406 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014407 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 +000014408 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14410 break 2
14411 fi
14412done
14413done
Reid Spencera773bd52006-08-04 18:18:08 +000014414IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014415
14416fi
14417fi
14418STRIP=$ac_cv_prog_STRIP
14419if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014420 { echo "$as_me:$LINENO: result: $STRIP" >&5
14421echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014422else
Reid Spencera773bd52006-08-04 18:18:08 +000014423 { echo "$as_me:$LINENO: result: no" >&5
14424echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014425fi
14426
Reid Spencera773bd52006-08-04 18:18:08 +000014427
John Criswell7a73b802003-06-30 21:59:07 +000014428fi
14429if test -z "$ac_cv_prog_STRIP"; then
14430 ac_ct_STRIP=$STRIP
14431 # Extract the first word of "strip", so it can be a program name with args.
14432set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014435if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14436 echo $ECHO_N "(cached) $ECHO_C" >&6
14437else
14438 if test -n "$ac_ct_STRIP"; then
14439 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14440else
14441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442for as_dir in $PATH
14443do
14444 IFS=$as_save_IFS
14445 test -z "$as_dir" && as_dir=.
14446 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014447 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 +000014448 ac_cv_prog_ac_ct_STRIP="strip"
14449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14450 break 2
14451 fi
14452done
14453done
Reid Spencera773bd52006-08-04 18:18:08 +000014454IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014455
John Criswell7a73b802003-06-30 21:59:07 +000014456fi
14457fi
14458ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14459if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014460 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14461echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014462else
Reid Spencera773bd52006-08-04 18:18:08 +000014463 { echo "$as_me:$LINENO: result: no" >&5
14464echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014465fi
14466
Reid Spencera773bd52006-08-04 18:18:08 +000014467 if test "x$ac_ct_STRIP" = x; then
14468 STRIP=":"
14469 else
14470 case $cross_compiling:$ac_tool_warned in
14471yes:)
14472{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14473whose name does not start with the host triplet. If you think this
14474configuration is useful to you, please write to autoconf@gnu.org." >&5
14475echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14476whose name does not start with the host triplet. If you think this
14477configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14478ac_tool_warned=yes ;;
14479esac
14480 STRIP=$ac_ct_STRIP
14481 fi
John Criswell7a73b802003-06-30 21:59:07 +000014482else
14483 STRIP="$ac_cv_prog_STRIP"
14484fi
14485
14486
John Criswell7a73b802003-06-30 21:59:07 +000014487old_CC="$CC"
14488old_CFLAGS="$CFLAGS"
14489
14490# Set sane defaults for various variables
14491test -z "$AR" && AR=ar
14492test -z "$AR_FLAGS" && AR_FLAGS=cru
14493test -z "$AS" && AS=as
14494test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014495test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014496test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014497test -z "$DLLTOOL" && DLLTOOL=dlltool
14498test -z "$LD" && LD=ld
14499test -z "$LN_S" && LN_S="ln -s"
14500test -z "$MAGIC_CMD" && MAGIC_CMD=file
14501test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014502test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014503test -z "$OBJDUMP" && OBJDUMP=objdump
14504test -z "$RANLIB" && RANLIB=:
14505test -z "$STRIP" && STRIP=:
14506test -z "$ac_objext" && ac_objext=o
14507
John Criswell7a73b802003-06-30 21:59:07 +000014508# Determine commands to create old-style static archives.
14509old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14510old_postinstall_cmds='chmod 644 $oldlib'
14511old_postuninstall_cmds=
14512
14513if test -n "$RANLIB"; then
14514 case $host_os in
14515 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014516 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014517 ;;
14518 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014519 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014520 ;;
14521 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014522 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014523fi
14524
Reid Spencera773bd52006-08-04 18:18:08 +000014525for cc_temp in $compiler""; do
14526 case $cc_temp in
14527 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14528 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14529 \-*) ;;
14530 *) break;;
14531 esac
14532done
14533cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14534
Reid Spencer2706f8c2004-09-19 23:53:36 +000014535
John Criswell47fdd832003-07-14 16:52:07 +000014536# Only perform the check for file, if the check method requires it
14537case $deplibs_check_method in
14538file_magic*)
14539 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014540 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14541echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014542if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14543 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014544else
John Criswell47fdd832003-07-14 16:52:07 +000014545 case $MAGIC_CMD in
14546[\\/*] | ?:[\\/]*)
14547 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14548 ;;
14549*)
14550 lt_save_MAGIC_CMD="$MAGIC_CMD"
14551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14552 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14553 for ac_dir in $ac_dummy; do
14554 IFS="$lt_save_ifs"
14555 test -z "$ac_dir" && ac_dir=.
14556 if test -f $ac_dir/${ac_tool_prefix}file; then
14557 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14558 if test -n "$file_magic_test_file"; then
14559 case $deplibs_check_method in
14560 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014561 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014562 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14563 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14564 $EGREP "$file_magic_regex" > /dev/null; then
14565 :
14566 else
14567 cat <<EOF 1>&2
14568
14569*** Warning: the command libtool uses to detect shared libraries,
14570*** $file_magic_cmd, produces output that libtool cannot recognize.
14571*** The result is that libtool may fail to recognize shared libraries
14572*** as such. This will affect the creation of libtool libraries that
14573*** depend on shared libraries, but programs linked with such libtool
14574*** libraries will work regardless of this problem. Nevertheless, you
14575*** may want to report the problem to your system manager and/or to
14576*** bug-libtool@gnu.org
14577
14578EOF
14579 fi ;;
14580 esac
14581 fi
14582 break
14583 fi
14584 done
14585 IFS="$lt_save_ifs"
14586 MAGIC_CMD="$lt_save_MAGIC_CMD"
14587 ;;
14588esac
John Criswell7a73b802003-06-30 21:59:07 +000014589fi
John Criswell7a73b802003-06-30 21:59:07 +000014590
John Criswell47fdd832003-07-14 16:52:07 +000014591MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14592if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014593 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14594echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014595else
Reid Spencera773bd52006-08-04 18:18:08 +000014596 { echo "$as_me:$LINENO: result: no" >&5
14597echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014598fi
John Criswell7a73b802003-06-30 21:59:07 +000014599
John Criswell47fdd832003-07-14 16:52:07 +000014600if test -z "$lt_cv_path_MAGIC_CMD"; then
14601 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014602 { echo "$as_me:$LINENO: checking for file" >&5
14603echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014604if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14606else
14607 case $MAGIC_CMD in
14608[\\/*] | ?:[\\/]*)
14609 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14610 ;;
14611*)
14612 lt_save_MAGIC_CMD="$MAGIC_CMD"
14613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14614 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14615 for ac_dir in $ac_dummy; do
14616 IFS="$lt_save_ifs"
14617 test -z "$ac_dir" && ac_dir=.
14618 if test -f $ac_dir/file; then
14619 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14620 if test -n "$file_magic_test_file"; then
14621 case $deplibs_check_method in
14622 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014623 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014624 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14625 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14626 $EGREP "$file_magic_regex" > /dev/null; then
14627 :
14628 else
14629 cat <<EOF 1>&2
14630
14631*** Warning: the command libtool uses to detect shared libraries,
14632*** $file_magic_cmd, produces output that libtool cannot recognize.
14633*** The result is that libtool may fail to recognize shared libraries
14634*** as such. This will affect the creation of libtool libraries that
14635*** depend on shared libraries, but programs linked with such libtool
14636*** libraries will work regardless of this problem. Nevertheless, you
14637*** may want to report the problem to your system manager and/or to
14638*** bug-libtool@gnu.org
14639
14640EOF
14641 fi ;;
14642 esac
14643 fi
14644 break
14645 fi
14646 done
14647 IFS="$lt_save_ifs"
14648 MAGIC_CMD="$lt_save_MAGIC_CMD"
14649 ;;
14650esac
14651fi
14652
14653MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14654if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014655 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14656echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014657else
Reid Spencera773bd52006-08-04 18:18:08 +000014658 { echo "$as_me:$LINENO: result: no" >&5
14659echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014660fi
14661
14662 else
14663 MAGIC_CMD=:
14664 fi
14665fi
14666
14667 fi
14668 ;;
14669esac
14670
Reid Spencer17795972004-11-18 09:47:37 +000014671enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014672enable_win32_dll=no
14673
Reid Spencera773bd52006-08-04 18:18:08 +000014674# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014675if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014676 enableval=$enable_libtool_lock;
14677fi
John Criswell47fdd832003-07-14 16:52:07 +000014678
John Criswell47fdd832003-07-14 16:52:07 +000014679test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14680
John Criswell7a73b802003-06-30 21:59:07 +000014681
Reid Spencera773bd52006-08-04 18:18:08 +000014682# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014683if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014684 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014685else
14686 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014687fi
14688
John Criswell7a73b802003-06-30 21:59:07 +000014689test -z "$pic_mode" && pic_mode=default
14690
John Criswell47fdd832003-07-14 16:52:07 +000014691# Use C for the default configuration in the libtool script
14692tagname=
14693lt_save_CC="$CC"
14694ac_ext=c
14695ac_cpp='$CPP $CPPFLAGS'
14696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14698ac_compiler_gnu=$ac_cv_c_compiler_gnu
14699
14700
14701# Source file extension for C test sources.
14702ac_ext=c
14703
14704# Object file extension for compiled C test sources.
14705objext=o
14706objext=$objext
14707
14708# Code to be used in simple compile tests
14709lt_simple_compile_test_code="int some_variable = 0;\n"
14710
14711# Code to be used in simple link tests
14712lt_simple_link_test_code='int main(){return(0);}\n'
14713
14714
14715# If no C compiler was specified, use CC.
14716LTCC=${LTCC-"$CC"}
14717
Reid Spencera773bd52006-08-04 18:18:08 +000014718# If no C compiler flags were specified, use CFLAGS.
14719LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14720
John Criswell47fdd832003-07-14 16:52:07 +000014721# Allow CC to be a program name with arguments.
14722compiler=$CC
14723
14724
Reid Spencera773bd52006-08-04 18:18:08 +000014725# save warnings/boilerplate of simple test code
14726ac_outfile=conftest.$ac_objext
14727printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14728eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14729_lt_compiler_boilerplate=`cat conftest.err`
14730$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014731
Reid Spencera773bd52006-08-04 18:18:08 +000014732ac_outfile=conftest.$ac_objext
14733printf "$lt_simple_link_test_code" >conftest.$ac_ext
14734eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14735_lt_linker_boilerplate=`cat conftest.err`
14736$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014737
14738
John Criswell47fdd832003-07-14 16:52:07 +000014739
14740lt_prog_compiler_no_builtin_flag=
14741
14742if test "$GCC" = yes; then
14743 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14744
Reid Spencer2706f8c2004-09-19 23:53:36 +000014745
Reid Spencera773bd52006-08-04 18:18:08 +000014746{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14747echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014748if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14750else
14751 lt_cv_prog_compiler_rtti_exceptions=no
14752 ac_outfile=conftest.$ac_objext
14753 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14754 lt_compiler_flag="-fno-rtti -fno-exceptions"
14755 # Insert the option either (1) after the last *FLAGS variable, or
14756 # (2) before a word containing "conftest.", or (3) at the end.
14757 # Note that $ac_compile itself does not contain backslashes and begins
14758 # with a dollar sign (not a hyphen), so the echo should work correctly.
14759 # The option is referenced via a variable to avoid confusing sed.
14760 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14763 -e 's:$: $lt_compiler_flag:'`
David Greenef0b9eff2009-07-09 17:16:26 +000014764 (eval echo "\"\$as_me:14764: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014765 (eval "$lt_compile" 2>conftest.err)
14766 ac_status=$?
14767 cat conftest.err >&5
David Greenef0b9eff2009-07-09 17:16:26 +000014768 echo "$as_me:14768: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014769 if (exit $ac_status) && test -s "$ac_outfile"; then
14770 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014771 # So say no if there are warnings other than the usual output.
14772 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14774 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014775 lt_cv_prog_compiler_rtti_exceptions=yes
14776 fi
14777 fi
14778 $rm conftest*
14779
14780fi
Reid Spencera773bd52006-08-04 18:18:08 +000014781{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14782echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014783
14784if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14785 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14786else
14787 :
14788fi
14789
14790fi
14791
14792lt_prog_compiler_wl=
14793lt_prog_compiler_pic=
14794lt_prog_compiler_static=
14795
Reid Spencera773bd52006-08-04 18:18:08 +000014796{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14797echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014798
14799 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014800 lt_prog_compiler_wl='-Wl,'
14801 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014802
14803 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014804 aix*)
14805 # All AIX code is PIC.
14806 if test "$host_cpu" = ia64; then
14807 # AIX 5 now supports IA64 processor
14808 lt_prog_compiler_static='-Bstatic'
14809 fi
John Criswell7a73b802003-06-30 21:59:07 +000014810 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014811
John Criswell7a73b802003-06-30 21:59:07 +000014812 amigaos*)
14813 # FIXME: we need at least 68020 code to build shared libraries, but
14814 # adding the `-m68020' flag to GCC prevents building anything better,
14815 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014816 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014817 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014818
14819 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014820 # PIC is the default for these OSes.
14821 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014822
14823 mingw* | pw32* | os2*)
14824 # This hack is so that the source file can tell whether it is being
14825 # built for inclusion in a dll (and should export symbols for example).
14826 lt_prog_compiler_pic='-DDLL_EXPORT'
14827 ;;
14828
John Criswell7a73b802003-06-30 21:59:07 +000014829 darwin* | rhapsody*)
14830 # PIC is the default on this platform
14831 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014832 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014833 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014834
Reid Spencera773bd52006-08-04 18:18:08 +000014835 interix3*)
14836 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14837 # Instead, we relocate shared libraries at runtime.
14838 ;;
14839
John Criswell47fdd832003-07-14 16:52:07 +000014840 msdosdjgpp*)
14841 # Just because we use GCC doesn't mean we suddenly get shared libraries
14842 # on systems that don't support them.
14843 lt_prog_compiler_can_build_shared=no
14844 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014845 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014846
John Criswell7a73b802003-06-30 21:59:07 +000014847 sysv4*MP*)
14848 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014849 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014850 fi
14851 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014852
14853 hpux*)
14854 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14855 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014856 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014857 hppa*64*|ia64*)
14858 # +Z the default
14859 ;;
14860 *)
14861 lt_prog_compiler_pic='-fPIC'
14862 ;;
14863 esac
14864 ;;
14865
John Criswell7a73b802003-06-30 21:59:07 +000014866 *)
John Criswell47fdd832003-07-14 16:52:07 +000014867 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014868 ;;
14869 esac
14870 else
John Criswell47fdd832003-07-14 16:52:07 +000014871 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014872 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014873 aix*)
14874 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014875 if test "$host_cpu" = ia64; then
14876 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014877 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014878 else
John Criswell47fdd832003-07-14 16:52:07 +000014879 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014880 fi
14881 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014882 darwin*)
14883 # PIC is the default on this platform
14884 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014885 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014886 xlc*)
14887 lt_prog_compiler_pic='-qnocommon'
14888 lt_prog_compiler_wl='-Wl,'
14889 ;;
14890 esac
14891 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014892
John Criswell47fdd832003-07-14 16:52:07 +000014893 mingw* | pw32* | os2*)
14894 # This hack is so that the source file can tell whether it is being
14895 # built for inclusion in a dll (and should export symbols for example).
14896 lt_prog_compiler_pic='-DDLL_EXPORT'
14897 ;;
14898
John Criswell7a73b802003-06-30 21:59:07 +000014899 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014900 lt_prog_compiler_wl='-Wl,'
14901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14902 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014903 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014904 hppa*64*|ia64*)
14905 # +Z the default
14906 ;;
14907 *)
14908 lt_prog_compiler_pic='+Z'
14909 ;;
14910 esac
14911 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14912 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014913 ;;
14914
John Criswell47fdd832003-07-14 16:52:07 +000014915 irix5* | irix6* | nonstopux*)
14916 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014917 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014918 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014919 ;;
14920
14921 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014922 lt_prog_compiler_pic='-KPIC'
14923 lt_prog_compiler_static='-Bstatic'
14924 ;;
14925
14926 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014927 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014928 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014929 lt_prog_compiler_wl='-Wl,'
14930 lt_prog_compiler_pic='-KPIC'
14931 lt_prog_compiler_static='-static'
14932 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014933 pgcc* | pgf77* | pgf90* | pgf95*)
14934 # Portland Group compilers (*not* the Pentium gcc compiler,
14935 # which looks to be a dead project)
14936 lt_prog_compiler_wl='-Wl,'
14937 lt_prog_compiler_pic='-fpic'
14938 lt_prog_compiler_static='-Bstatic'
14939 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014940 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014941 lt_prog_compiler_wl='-Wl,'
14942 # All Alpha code is PIC.
14943 lt_prog_compiler_static='-non_shared'
14944 ;;
14945 esac
John Criswell7a73b802003-06-30 21:59:07 +000014946 ;;
14947
14948 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014949 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014950 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014951 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014952 ;;
14953
John Criswell7a73b802003-06-30 21:59:07 +000014954 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014955 lt_prog_compiler_pic='-KPIC'
14956 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014957 case $cc_basename in
14958 f77* | f90* | f95*)
14959 lt_prog_compiler_wl='-Qoption ld ';;
14960 *)
14961 lt_prog_compiler_wl='-Wl,';;
14962 esac
John Criswell7a73b802003-06-30 21:59:07 +000014963 ;;
14964
14965 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014966 lt_prog_compiler_wl='-Qoption ld '
14967 lt_prog_compiler_pic='-PIC'
14968 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014969 ;;
14970
Reid Spencera773bd52006-08-04 18:18:08 +000014971 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014972 lt_prog_compiler_wl='-Wl,'
14973 lt_prog_compiler_pic='-KPIC'
14974 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014975 ;;
14976
14977 sysv4*MP*)
14978 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014979 lt_prog_compiler_pic='-Kconform_pic'
14980 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014981 fi
14982 ;;
14983
Reid Spencera773bd52006-08-04 18:18:08 +000014984 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14985 lt_prog_compiler_wl='-Wl,'
14986 lt_prog_compiler_pic='-KPIC'
14987 lt_prog_compiler_static='-Bstatic'
14988 ;;
14989
14990 unicos*)
14991 lt_prog_compiler_wl='-Wl,'
14992 lt_prog_compiler_can_build_shared=no
14993 ;;
14994
John Criswell47fdd832003-07-14 16:52:07 +000014995 uts4*)
14996 lt_prog_compiler_pic='-pic'
14997 lt_prog_compiler_static='-Bstatic'
14998 ;;
14999
John Criswell7a73b802003-06-30 21:59:07 +000015000 *)
John Criswell47fdd832003-07-14 16:52:07 +000015001 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015002 ;;
15003 esac
15004 fi
15005
Reid Spencera773bd52006-08-04 18:18:08 +000015006{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15007echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015008
John Criswell47fdd832003-07-14 16:52:07 +000015009#
15010# Check to make sure the PIC flag actually works.
15011#
15012if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015013
Reid Spencera773bd52006-08-04 18:18:08 +000015014{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15015echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015016if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015017 echo $ECHO_N "(cached) $ECHO_C" >&6
15018else
John Criswell47fdd832003-07-14 16:52:07 +000015019 lt_prog_compiler_pic_works=no
15020 ac_outfile=conftest.$ac_objext
15021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15022 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15023 # Insert the option either (1) after the last *FLAGS variable, or
15024 # (2) before a word containing "conftest.", or (3) at the end.
15025 # Note that $ac_compile itself does not contain backslashes and begins
15026 # with a dollar sign (not a hyphen), so the echo should work correctly.
15027 # The option is referenced via a variable to avoid confusing sed.
15028 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15031 -e 's:$: $lt_compiler_flag:'`
David Greenef0b9eff2009-07-09 17:16:26 +000015032 (eval echo "\"\$as_me:15032: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015033 (eval "$lt_compile" 2>conftest.err)
15034 ac_status=$?
15035 cat conftest.err >&5
David Greenef0b9eff2009-07-09 17:16:26 +000015036 echo "$as_me:15036: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015037 if (exit $ac_status) && test -s "$ac_outfile"; then
15038 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015039 # So say no if there are warnings other than the usual output.
15040 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15042 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015043 lt_prog_compiler_pic_works=yes
15044 fi
15045 fi
15046 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015047
John Criswell47fdd832003-07-14 16:52:07 +000015048fi
Reid Spencera773bd52006-08-04 18:18:08 +000015049{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15050echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015051
John Criswell47fdd832003-07-14 16:52:07 +000015052if test x"$lt_prog_compiler_pic_works" = xyes; then
15053 case $lt_prog_compiler_pic in
15054 "" | " "*) ;;
15055 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15056 esac
John Criswell7a73b802003-06-30 21:59:07 +000015057else
John Criswell47fdd832003-07-14 16:52:07 +000015058 lt_prog_compiler_pic=
15059 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015060fi
15061
John Criswell7a73b802003-06-30 21:59:07 +000015062fi
Reid Spencera773bd52006-08-04 18:18:08 +000015063case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015064 # For platforms which do not support PIC, -DPIC is meaningless:
15065 *djgpp*)
15066 lt_prog_compiler_pic=
15067 ;;
15068 *)
15069 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15070 ;;
15071esac
John Criswell7a73b802003-06-30 21:59:07 +000015072
Reid Spencera773bd52006-08-04 18:18:08 +000015073#
15074# Check to make sure the static flag actually works.
15075#
15076wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15077{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15078echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15079if test "${lt_prog_compiler_static_works+set}" = set; then
15080 echo $ECHO_N "(cached) $ECHO_C" >&6
15081else
15082 lt_prog_compiler_static_works=no
15083 save_LDFLAGS="$LDFLAGS"
15084 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15085 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15086 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15087 # The linker can only warn and ignore the option if not recognized
15088 # So say no if there are warnings
15089 if test -s conftest.err; then
15090 # Append any errors to the config.log.
15091 cat conftest.err 1>&5
15092 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15094 if diff conftest.exp conftest.er2 >/dev/null; then
15095 lt_prog_compiler_static_works=yes
15096 fi
15097 else
15098 lt_prog_compiler_static_works=yes
15099 fi
15100 fi
15101 $rm conftest*
15102 LDFLAGS="$save_LDFLAGS"
15103
15104fi
15105{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15106echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15107
15108if test x"$lt_prog_compiler_static_works" = xyes; then
15109 :
15110else
15111 lt_prog_compiler_static=
15112fi
15113
15114
15115{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15116echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015117if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015118 echo $ECHO_N "(cached) $ECHO_C" >&6
15119else
John Criswell47fdd832003-07-14 16:52:07 +000015120 lt_cv_prog_compiler_c_o=no
15121 $rm -r conftest 2>/dev/null
15122 mkdir conftest
15123 cd conftest
15124 mkdir out
15125 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015126
John Criswell47fdd832003-07-14 16:52:07 +000015127 lt_compiler_flag="-o out/conftest2.$ac_objext"
15128 # Insert the option either (1) after the last *FLAGS variable, or
15129 # (2) before a word containing "conftest.", or (3) at the end.
15130 # Note that $ac_compile itself does not contain backslashes and begins
15131 # with a dollar sign (not a hyphen), so the echo should work correctly.
15132 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15135 -e 's:$: $lt_compiler_flag:'`
David Greenef0b9eff2009-07-09 17:16:26 +000015136 (eval echo "\"\$as_me:15136: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015137 (eval "$lt_compile" 2>out/conftest.err)
15138 ac_status=$?
15139 cat out/conftest.err >&5
David Greenef0b9eff2009-07-09 17:16:26 +000015140 echo "$as_me:15140: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015141 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15142 then
15143 # The compiler can only warn and ignore the option if not recognized
15144 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015145 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15146 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15147 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015148 lt_cv_prog_compiler_c_o=yes
15149 fi
15150 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015151 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015152 $rm conftest*
15153 # SGI C++ compiler will create directory out/ii_files/ for
15154 # template instantiation
15155 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15156 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015157 cd ..
15158 rmdir conftest
15159 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015160
15161fi
Reid Spencera773bd52006-08-04 18:18:08 +000015162{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15163echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015164
John Criswell7a73b802003-06-30 21:59:07 +000015165
John Criswell7a73b802003-06-30 21:59:07 +000015166hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015167if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015168 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015169 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15170echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015171 hard_links=yes
15172 $rm conftest*
15173 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15174 touch conftest.a
15175 ln conftest.a conftest.b 2>&5 || hard_links=no
15176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015177 { echo "$as_me:$LINENO: result: $hard_links" >&5
15178echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015179 if test "$hard_links" = no; then
15180 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15181echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15182 need_locks=warn
15183 fi
15184else
15185 need_locks=no
15186fi
John Criswell7a73b802003-06-30 21:59:07 +000015187
Reid Spencera773bd52006-08-04 18:18:08 +000015188{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15189echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015190
15191 runpath_var=
15192 allow_undefined_flag=
15193 enable_shared_with_static_runtimes=no
15194 archive_cmds=
15195 archive_expsym_cmds=
15196 old_archive_From_new_cmds=
15197 old_archive_from_expsyms_cmds=
15198 export_dynamic_flag_spec=
15199 whole_archive_flag_spec=
15200 thread_safe_flag_spec=
15201 hardcode_libdir_flag_spec=
15202 hardcode_libdir_flag_spec_ld=
15203 hardcode_libdir_separator=
15204 hardcode_direct=no
15205 hardcode_minus_L=no
15206 hardcode_shlibpath_var=unsupported
15207 link_all_deplibs=unknown
15208 hardcode_automatic=no
15209 module_cmds=
15210 module_expsym_cmds=
15211 always_export_symbols=no
15212 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15213 # include_expsyms should be a list of space-separated symbols to be *always*
15214 # included in the symbol list
15215 include_expsyms=
15216 # exclude_expsyms can be an extended regexp of symbols to exclude
15217 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15218 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15219 # as well as any symbol that contains `d'.
15220 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15221 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15222 # platforms (ab)use it in PIC code, but their linkers get confused if
15223 # the symbol is explicitly referenced. Since portable code cannot
15224 # rely on this symbol name, it's probably fine to never include it in
15225 # preloaded symbol tables.
15226 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015227 # Just being paranoid about ensuring that cc_basename is set.
15228 for cc_temp in $compiler""; do
15229 case $cc_temp in
15230 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15231 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15232 \-*) ;;
15233 *) break;;
15234 esac
15235done
15236cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015237
15238 case $host_os in
15239 cygwin* | mingw* | pw32*)
15240 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15241 # When not using gcc, we currently assume that we are using
15242 # Microsoft Visual C++.
15243 if test "$GCC" != yes; then
15244 with_gnu_ld=no
15245 fi
15246 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015247 interix*)
15248 # we just hope/assume this is gcc and not c89 (= MSVC++)
15249 with_gnu_ld=yes
15250 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015251 openbsd*)
15252 with_gnu_ld=no
15253 ;;
15254 esac
15255
15256 ld_shlibs=yes
15257 if test "$with_gnu_ld" = yes; then
15258 # If archive_cmds runs LD, not CC, wlarc should be empty
15259 wlarc='${wl}'
15260
Reid Spencera773bd52006-08-04 18:18:08 +000015261 # Set some defaults for GNU ld with shared library support. These
15262 # are reset later if shared libraries are not supported. Putting them
15263 # here allows them to be overridden if necessary.
15264 runpath_var=LD_RUN_PATH
15265 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15266 export_dynamic_flag_spec='${wl}--export-dynamic'
15267 # ancient GNU ld didn't support --whole-archive et. al.
15268 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15269 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15270 else
15271 whole_archive_flag_spec=
15272 fi
15273 supports_anon_versioning=no
15274 case `$LD -v 2>/dev/null` in
15275 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15276 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15277 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15278 *\ 2.11.*) ;; # other 2.11 versions
15279 *) supports_anon_versioning=yes ;;
15280 esac
15281
John Criswell47fdd832003-07-14 16:52:07 +000015282 # See if GNU ld supports shared libraries.
15283 case $host_os in
15284 aix3* | aix4* | aix5*)
15285 # On AIX/PPC, the GNU linker is very broken
15286 if test "$host_cpu" != ia64; then
15287 ld_shlibs=no
15288 cat <<EOF 1>&2
15289
15290*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15291*** to be unable to reliably create shared libraries on AIX.
15292*** Therefore, libtool is disabling shared libraries support. If you
15293*** really care for shared libraries, you may want to modify your PATH
15294*** so that a non-GNU linker is found, and then restart.
15295
15296EOF
15297 fi
15298 ;;
15299
15300 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015301 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 +000015302 hardcode_libdir_flag_spec='-L$libdir'
15303 hardcode_minus_L=yes
15304
15305 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15306 # that the semantics of dynamic libraries on AmigaOS, at least up
15307 # to version 4, is to share data among multiple programs linked
15308 # with the same dynamic library. Since this doesn't match the
15309 # behavior of shared libraries on other platforms, we can't use
15310 # them.
15311 ld_shlibs=no
15312 ;;
15313
15314 beos*)
15315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15316 allow_undefined_flag=unsupported
15317 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15318 # support --undefined. This deserves some investigation. FIXME
15319 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15320 else
15321 ld_shlibs=no
15322 fi
15323 ;;
15324
15325 cygwin* | mingw* | pw32*)
15326 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15327 # as there is no search path for DLLs.
15328 hardcode_libdir_flag_spec='-L$libdir'
15329 allow_undefined_flag=unsupported
15330 always_export_symbols=no
15331 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015332 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 +000015333
15334 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015335 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 +000015336 # If the export-symbols file already is a .def file (1st line
15337 # is EXPORTS), use it as is; otherwise, prepend...
15338 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15339 cp $export_symbols $output_objdir/$soname.def;
15340 else
15341 echo EXPORTS > $output_objdir/$soname.def;
15342 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015343 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015344 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15345 else
15346 ld_shlibs=no
15347 fi
15348 ;;
15349
15350 interix3*)
15351 hardcode_direct=no
15352 hardcode_shlibpath_var=no
15353 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15354 export_dynamic_flag_spec='${wl}-E'
15355 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15356 # Instead, shared libraries are loaded at an image base (0x10000000 by
15357 # default) and relocated if they conflict, which is a slow very memory
15358 # consuming and fragmenting process. To avoid this, we pick a random,
15359 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15360 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15361 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15362 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'
15363 ;;
15364
15365 linux*)
15366 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15367 tmp_addflag=
15368 case $cc_basename,$host_cpu in
15369 pgcc*) # Portland Group C compiler
15370 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'
15371 tmp_addflag=' $pic_flag'
15372 ;;
15373 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15374 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'
15375 tmp_addflag=' $pic_flag -Mnomain' ;;
15376 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15377 tmp_addflag=' -i_dynamic' ;;
15378 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15379 tmp_addflag=' -i_dynamic -nofor_main' ;;
15380 ifc* | ifort*) # Intel Fortran compiler
15381 tmp_addflag=' -nofor_main' ;;
15382 esac
15383 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15384
15385 if test $supports_anon_versioning = yes; then
15386 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15388 $echo "local: *; };" >> $output_objdir/$libname.ver~
15389 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15390 fi
John Criswell47fdd832003-07-14 16:52:07 +000015391 else
15392 ld_shlibs=no
15393 fi
15394 ;;
15395
15396 netbsd*)
15397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15398 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15399 wlarc=
15400 else
15401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15403 fi
15404 ;;
15405
Reid Spencera773bd52006-08-04 18:18:08 +000015406 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015407 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15408 ld_shlibs=no
15409 cat <<EOF 1>&2
15410
15411*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15412*** create shared libraries on Solaris systems. Therefore, libtool
15413*** is disabling shared libraries support. We urge you to upgrade GNU
15414*** binutils to release 2.9.1 or newer. Another option is to modify
15415*** your PATH or compiler configuration so that the native linker is
15416*** used, and then restart.
15417
15418EOF
15419 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15421 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15422 else
15423 ld_shlibs=no
15424 fi
15425 ;;
15426
Reid Spencera773bd52006-08-04 18:18:08 +000015427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15428 case `$LD -v 2>&1` in
15429 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15430 ld_shlibs=no
15431 cat <<_LT_EOF 1>&2
15432
15433*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15434*** reliably create shared libraries on SCO systems. Therefore, libtool
15435*** is disabling shared libraries support. We urge you to upgrade GNU
15436*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15437*** your PATH or compiler configuration so that the native linker is
15438*** used, and then restart.
15439
15440_LT_EOF
15441 ;;
15442 *)
15443 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15444 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15446 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15447 else
15448 ld_shlibs=no
15449 fi
15450 ;;
15451 esac
15452 ;;
15453
John Criswell47fdd832003-07-14 16:52:07 +000015454 sunos4*)
15455 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15456 wlarc=
15457 hardcode_direct=yes
15458 hardcode_shlibpath_var=no
15459 ;;
15460
15461 *)
15462 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15464 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15465 else
15466 ld_shlibs=no
15467 fi
15468 ;;
15469 esac
15470
Reid Spencera773bd52006-08-04 18:18:08 +000015471 if test "$ld_shlibs" = no; then
15472 runpath_var=
15473 hardcode_libdir_flag_spec=
15474 export_dynamic_flag_spec=
15475 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015476 fi
15477 else
15478 # PORTME fill in a description of your system's linker (not GNU ld)
15479 case $host_os in
15480 aix3*)
15481 allow_undefined_flag=unsupported
15482 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015483 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 +000015484 # Note: this linker hardcodes the directories in LIBPATH if there
15485 # are no directories specified by -L.
15486 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015487 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015488 # Neither direct hardcoding nor static linking is supported with a
15489 # broken collect2.
15490 hardcode_direct=unsupported
15491 fi
15492 ;;
15493
15494 aix4* | aix5*)
15495 if test "$host_cpu" = ia64; then
15496 # On IA64, the linker does run time linking by default, so we don't
15497 # have to do anything special.
15498 aix_use_runtimelinking=no
15499 exp_sym_flag='-Bexport'
15500 no_entry_flag=""
15501 else
15502 # If we're using GNU nm, then we don't want the "-C" option.
15503 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15504 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15505 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'
15506 else
15507 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'
15508 fi
15509 aix_use_runtimelinking=no
15510
15511 # Test if we are trying to use run time linking or normal
15512 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15513 # need to do runtime linking.
15514 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15515 for ld_flag in $LDFLAGS; do
15516 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15517 aix_use_runtimelinking=yes
15518 break
15519 fi
15520 done
Reid Spencera773bd52006-08-04 18:18:08 +000015521 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015522 esac
15523
15524 exp_sym_flag='-bexport'
15525 no_entry_flag='-bnoentry'
15526 fi
15527
15528 # When large executables or shared objects are built, AIX ld can
15529 # have problems creating the table of contents. If linking a library
15530 # or program results in "error TOC overflow" add -mminimal-toc to
15531 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15532 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15533
15534 archive_cmds=''
15535 hardcode_direct=yes
15536 hardcode_libdir_separator=':'
15537 link_all_deplibs=yes
15538
15539 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015540 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015541 # We only want to do this on AIX 4.2 and lower, the check
15542 # below for broken collect2 doesn't work under 4.3+
15543 collect2name=`${CC} -print-prog-name=collect2`
15544 if test -f "$collect2name" && \
15545 strings "$collect2name" | grep resolve_lib_name >/dev/null
15546 then
15547 # We have reworked collect2
15548 hardcode_direct=yes
15549 else
15550 # We have old collect2
15551 hardcode_direct=unsupported
15552 # It fails to find uninstalled libraries when the uninstalled
15553 # path is not listed in the libpath. Setting hardcode_minus_L
15554 # to unsupported forces relinking
15555 hardcode_minus_L=yes
15556 hardcode_libdir_flag_spec='-L$libdir'
15557 hardcode_libdir_separator=
15558 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015559 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015560 esac
15561 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015562 if test "$aix_use_runtimelinking" = yes; then
15563 shared_flag="$shared_flag "'${wl}-G'
15564 fi
John Criswell47fdd832003-07-14 16:52:07 +000015565 else
15566 # not using gcc
15567 if test "$host_cpu" = ia64; then
15568 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15569 # chokes on -Wl,-G. The following line is correct:
15570 shared_flag='-G'
15571 else
Reid Spencera773bd52006-08-04 18:18:08 +000015572 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015573 shared_flag='${wl}-G'
15574 else
15575 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015576 fi
John Criswell47fdd832003-07-14 16:52:07 +000015577 fi
15578 fi
15579
15580 # It seems that -bexpall does not export symbols beginning with
15581 # underscore (_), so it is better to generate a list of symbols to export.
15582 always_export_symbols=yes
15583 if test "$aix_use_runtimelinking" = yes; then
15584 # Warning - without using the other runtime loading flags (-brtl),
15585 # -berok will link without error, but may produce a broken library.
15586 allow_undefined_flag='-berok'
15587 # Determine the default libpath from the value encoded in an empty executable.
15588 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015589/* confdefs.h. */
15590_ACEOF
15591cat confdefs.h >>conftest.$ac_ext
15592cat >>conftest.$ac_ext <<_ACEOF
15593/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015594
John Criswell7a73b802003-06-30 21:59:07 +000015595int
15596main ()
15597{
John Criswell47fdd832003-07-14 16:52:07 +000015598
John Criswell7a73b802003-06-30 21:59:07 +000015599 ;
15600 return 0;
15601}
15602_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015603rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015604if { (ac_try="$ac_link"
15605case "(($ac_try" in
15606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607 *) ac_try_echo=$ac_try;;
15608esac
15609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015611 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015612 grep -v '^ *+' conftest.er1 >conftest.err
15613 rm -f conftest.er1
15614 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015616 (exit $ac_status); } &&
15617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15618 { (case "(($ac_try" in
15619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620 *) ac_try_echo=$ac_try;;
15621esac
15622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623 (eval "$ac_try") 2>&5
15624 ac_status=$?
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; } &&
15627 { ac_try='test -s conftest$ac_exeext'
15628 { (case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15631esac
15632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633 (eval "$ac_try") 2>&5
15634 ac_status=$?
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015637
John Criswell47fdd832003-07-14 16:52:07 +000015638aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15639}'`
15640# Check for a 64-bit object if we didn't find anything.
15641if 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; }
15642}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015643else
15644 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015645sed 's/^/| /' conftest.$ac_ext >&5
15646
Reid Spencera773bd52006-08-04 18:18:08 +000015647
John Criswell7a73b802003-06-30 21:59:07 +000015648fi
Reid Spencera773bd52006-08-04 18:18:08 +000015649
Bill Wendlingebcceee2009-04-18 11:20:33 +000015650rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015651 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015652if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015653
John Criswell47fdd832003-07-14 16:52:07 +000015654 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015655 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 +000015656 else
15657 if test "$host_cpu" = ia64; then
15658 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15659 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015660 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 +000015661 else
15662 # Determine the default libpath from the value encoded in an empty executable.
15663 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015664/* confdefs.h. */
15665_ACEOF
15666cat confdefs.h >>conftest.$ac_ext
15667cat >>conftest.$ac_ext <<_ACEOF
15668/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015669
John Criswell47fdd832003-07-14 16:52:07 +000015670int
15671main ()
15672{
John Criswell7a73b802003-06-30 21:59:07 +000015673
John Criswell47fdd832003-07-14 16:52:07 +000015674 ;
15675 return 0;
15676}
15677_ACEOF
15678rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015679if { (ac_try="$ac_link"
15680case "(($ac_try" in
15681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682 *) ac_try_echo=$ac_try;;
15683esac
15684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15685 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015686 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015687 grep -v '^ *+' conftest.er1 >conftest.err
15688 rm -f conftest.er1
15689 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015691 (exit $ac_status); } &&
15692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15693 { (case "(($ac_try" in
15694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695 *) ac_try_echo=$ac_try;;
15696esac
15697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698 (eval "$ac_try") 2>&5
15699 ac_status=$?
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; } &&
15702 { ac_try='test -s conftest$ac_exeext'
15703 { (case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15706esac
15707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_try") 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015712
John Criswell47fdd832003-07-14 16:52:07 +000015713aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15714}'`
15715# Check for a 64-bit object if we didn't find anything.
15716if 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; }
15717}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015718else
John Criswell47fdd832003-07-14 16:52:07 +000015719 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015720sed 's/^/| /' conftest.$ac_ext >&5
15721
Reid Spencera773bd52006-08-04 18:18:08 +000015722
John Criswell47fdd832003-07-14 16:52:07 +000015723fi
Reid Spencera773bd52006-08-04 18:18:08 +000015724
Bill Wendlingebcceee2009-04-18 11:20:33 +000015725rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015726 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015727if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015728
John Criswell47fdd832003-07-14 16:52:07 +000015729 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15730 # Warning - without using the other run time loading flags,
15731 # -berok will link without error, but may produce a broken library.
15732 no_undefined_flag=' ${wl}-bernotok'
15733 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015734 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015735 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015736 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015737 # This is similar to how AIX traditionally builds its shared libraries.
15738 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 +000015739 fi
15740 fi
John Criswell7a73b802003-06-30 21:59:07 +000015741 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015742
15743 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015744 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 +000015745 hardcode_libdir_flag_spec='-L$libdir'
15746 hardcode_minus_L=yes
15747 # see comment about different semantics on the GNU ld section
15748 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015749 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015750
Reid Spencer2706f8c2004-09-19 23:53:36 +000015751 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015752 export_dynamic_flag_spec=-rdynamic
15753 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015754
John Criswell47fdd832003-07-14 16:52:07 +000015755 cygwin* | mingw* | pw32*)
15756 # When not using gcc, we currently assume that we are using
15757 # Microsoft Visual C++.
15758 # hardcode_libdir_flag_spec is actually meaningless, as there is
15759 # no search path for DLLs.
15760 hardcode_libdir_flag_spec=' '
15761 allow_undefined_flag=unsupported
15762 # Tell ltmain to make .lib files, not .a files.
15763 libext=lib
15764 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015765 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015766 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015767 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015768 # The linker will automatically build a .lib file if we build a DLL.
15769 old_archive_From_new_cmds='true'
15770 # FIXME: Should let the user specify the lib program.
15771 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15772 fix_srcfile_path='`cygpath -w "$srcfile"`'
15773 enable_shared_with_static_runtimes=yes
15774 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015775
John Criswell47fdd832003-07-14 16:52:07 +000015776 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015777 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015778 rhapsody* | darwin1.[012])
15779 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15780 ;;
15781 *) # Darwin 1.3 on
15782 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15783 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15784 else
15785 case ${MACOSX_DEPLOYMENT_TARGET} in
15786 10.[012])
15787 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15788 ;;
15789 10.*)
15790 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15791 ;;
15792 esac
15793 fi
15794 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015795 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015796 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015797 hardcode_direct=no
15798 hardcode_automatic=yes
15799 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015800 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015801 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015802 if test "$GCC" = yes ; then
15803 output_verbose_link_cmd='echo'
15804 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15805 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015806 # 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 +000015807 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}'
15808 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 +000015809 else
Reid Spencera773bd52006-08-04 18:18:08 +000015810 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015811 xlc*)
15812 output_verbose_link_cmd='echo'
15813 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15814 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015815 # 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 +000015816 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}'
15817 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 +000015818 ;;
15819 *)
15820 ld_shlibs=no
15821 ;;
15822 esac
John Criswell7a73b802003-06-30 21:59:07 +000015823 fi
John Criswell47fdd832003-07-14 16:52:07 +000015824 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015825
John Criswell47fdd832003-07-14 16:52:07 +000015826 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015828 hardcode_libdir_flag_spec='-L$libdir'
15829 hardcode_shlibpath_var=no
15830 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015831
John Criswell47fdd832003-07-14 16:52:07 +000015832 freebsd1*)
15833 ld_shlibs=no
15834 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015835
John Criswell47fdd832003-07-14 16:52:07 +000015836 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15837 # support. Future versions do this automatically, but an explicit c++rt0.o
15838 # does not break anything, and helps significantly (at the cost of a little
15839 # extra space).
15840 freebsd2.2*)
15841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15842 hardcode_libdir_flag_spec='-R$libdir'
15843 hardcode_direct=yes
15844 hardcode_shlibpath_var=no
15845 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015846
John Criswell47fdd832003-07-14 16:52:07 +000015847 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15848 freebsd2*)
15849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15850 hardcode_direct=yes
15851 hardcode_minus_L=yes
15852 hardcode_shlibpath_var=no
15853 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015854
John Criswell47fdd832003-07-14 16:52:07 +000015855 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015856 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015857 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15858 hardcode_libdir_flag_spec='-R$libdir'
15859 hardcode_direct=yes
15860 hardcode_shlibpath_var=no
15861 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015862
John Criswell47fdd832003-07-14 16:52:07 +000015863 hpux9*)
15864 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015865 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 +000015866 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015867 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 +000015868 fi
15869 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15870 hardcode_libdir_separator=:
15871 hardcode_direct=yes
15872
15873 # hardcode_minus_L: Not really in the search PATH,
15874 # but as the default location of the library.
15875 hardcode_minus_L=yes
15876 export_dynamic_flag_spec='${wl}-E'
15877 ;;
15878
Reid Spencera773bd52006-08-04 18:18:08 +000015879 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015880 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015881 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15882 else
15883 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15884 fi
15885 if test "$with_gnu_ld" = no; then
15886 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15887 hardcode_libdir_separator=:
15888
15889 hardcode_direct=yes
15890 export_dynamic_flag_spec='${wl}-E'
15891
15892 # hardcode_minus_L: Not really in the search PATH,
15893 # but as the default location of the library.
15894 hardcode_minus_L=yes
15895 fi
15896 ;;
15897
15898 hpux11*)
15899 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15900 case $host_cpu in
15901 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015902 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15903 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015904 ia64*)
15905 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15906 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015907 *)
15908 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15909 ;;
15910 esac
15911 else
Reid Spencera773bd52006-08-04 18:18:08 +000015912 case $host_cpu in
15913 hppa*64*)
15914 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15915 ;;
15916 ia64*)
15917 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015918 ;;
15919 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015920 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 +000015921 ;;
15922 esac
15923 fi
15924 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015925 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15926 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015927
Reid Spencera773bd52006-08-04 18:18:08 +000015928 case $host_cpu in
15929 hppa*64*|ia64*)
15930 hardcode_libdir_flag_spec_ld='+b $libdir'
15931 hardcode_direct=no
15932 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015933 ;;
15934 *)
John Criswell47fdd832003-07-14 16:52:07 +000015935 hardcode_direct=yes
15936 export_dynamic_flag_spec='${wl}-E'
15937
15938 # hardcode_minus_L: Not really in the search PATH,
15939 # but as the default location of the library.
15940 hardcode_minus_L=yes
15941 ;;
15942 esac
15943 fi
15944 ;;
15945
15946 irix5* | irix6* | nonstopux*)
15947 if test "$GCC" = yes; then
15948 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'
15949 else
15950 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'
15951 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15952 fi
15953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15954 hardcode_libdir_separator=:
15955 link_all_deplibs=yes
15956 ;;
15957
15958 netbsd*)
15959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15960 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15961 else
15962 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15963 fi
15964 hardcode_libdir_flag_spec='-R$libdir'
15965 hardcode_direct=yes
15966 hardcode_shlibpath_var=no
15967 ;;
15968
15969 newsos6)
15970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15971 hardcode_direct=yes
15972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15973 hardcode_libdir_separator=:
15974 hardcode_shlibpath_var=no
15975 ;;
15976
15977 openbsd*)
15978 hardcode_direct=yes
15979 hardcode_shlibpath_var=no
15980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15981 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015982 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 +000015983 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15984 export_dynamic_flag_spec='${wl}-E'
15985 else
15986 case $host_os in
15987 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15988 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15989 hardcode_libdir_flag_spec='-R$libdir'
15990 ;;
15991 *)
15992 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15993 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15994 ;;
15995 esac
15996 fi
15997 ;;
15998
15999 os2*)
16000 hardcode_libdir_flag_spec='-L$libdir'
16001 hardcode_minus_L=yes
16002 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016003 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 +000016004 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16005 ;;
16006
16007 osf3*)
16008 if test "$GCC" = yes; then
16009 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16010 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'
16011 else
16012 allow_undefined_flag=' -expect_unresolved \*'
16013 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'
16014 fi
16015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16016 hardcode_libdir_separator=:
16017 ;;
16018
16019 osf4* | osf5*) # as osf3* with the addition of -msym flag
16020 if test "$GCC" = yes; then
16021 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16022 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'
16023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16024 else
16025 allow_undefined_flag=' -expect_unresolved \*'
16026 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 +000016027 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 +000016028 $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 +000016029
John Criswell47fdd832003-07-14 16:52:07 +000016030 # Both c and cxx compiler support -rpath directly
16031 hardcode_libdir_flag_spec='-rpath $libdir'
16032 fi
16033 hardcode_libdir_separator=:
16034 ;;
16035
John Criswell47fdd832003-07-14 16:52:07 +000016036 solaris*)
16037 no_undefined_flag=' -z text'
16038 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016039 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016040 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016041 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16042 $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 +000016043 else
Reid Spencera773bd52006-08-04 18:18:08 +000016044 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016045 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016046 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16047 $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 +000016048 fi
16049 hardcode_libdir_flag_spec='-R$libdir'
16050 hardcode_shlibpath_var=no
16051 case $host_os in
16052 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016053 *)
16054 # The compiler driver will combine linker options so we
16055 # cannot just pass the convience library names through
16056 # without $wl, iff we do not link with $LD.
16057 # Luckily, gcc supports the same syntax we need for Sun Studio.
16058 # Supported since Solaris 2.6 (maybe 2.5.1?)
16059 case $wlarc in
16060 '')
16061 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16062 *)
16063 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' ;;
16064 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016065 esac
16066 link_all_deplibs=yes
16067 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016068
John Criswell47fdd832003-07-14 16:52:07 +000016069 sunos4*)
16070 if test "x$host_vendor" = xsequent; then
16071 # Use $CC to link under sequent, because it throws in some extra .o
16072 # files that make .init and .fini sections work.
16073 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16074 else
16075 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16076 fi
16077 hardcode_libdir_flag_spec='-L$libdir'
16078 hardcode_direct=yes
16079 hardcode_minus_L=yes
16080 hardcode_shlibpath_var=no
16081 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016082
John Criswell47fdd832003-07-14 16:52:07 +000016083 sysv4)
16084 case $host_vendor in
16085 sni)
16086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16087 hardcode_direct=yes # is this really true???
16088 ;;
16089 siemens)
16090 ## LD is ld it makes a PLAMLIB
16091 ## CC just makes a GrossModule.
16092 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16093 reload_cmds='$CC -r -o $output$reload_objs'
16094 hardcode_direct=no
16095 ;;
16096 motorola)
16097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16098 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16099 ;;
16100 esac
16101 runpath_var='LD_RUN_PATH'
16102 hardcode_shlibpath_var=no
16103 ;;
16104
16105 sysv4.3*)
16106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16107 hardcode_shlibpath_var=no
16108 export_dynamic_flag_spec='-Bexport'
16109 ;;
16110
16111 sysv4*MP*)
16112 if test -d /usr/nec; then
16113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16114 hardcode_shlibpath_var=no
16115 runpath_var=LD_RUN_PATH
16116 hardcode_runpath_var=yes
16117 ld_shlibs=yes
16118 fi
16119 ;;
16120
Reid Spencera773bd52006-08-04 18:18:08 +000016121 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16122 no_undefined_flag='${wl}-z,text'
16123 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016124 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016125 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016126
John Criswell47fdd832003-07-14 16:52:07 +000016127 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016128 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16129 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 +000016130 else
Reid Spencera773bd52006-08-04 18:18:08 +000016131 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16132 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 +000016133 fi
John Criswell47fdd832003-07-14 16:52:07 +000016134 ;;
16135
Reid Spencera773bd52006-08-04 18:18:08 +000016136 sysv5* | sco3.2v5* | sco5v6*)
16137 # Note: We can NOT use -z defs as we might desire, because we do not
16138 # link with -lc, and that would cause any symbols used from libc to
16139 # always be unresolved, which means just about no library would
16140 # ever link correctly. If we're not using GNU ld we use -z text
16141 # though, which does catch some bad symbols but isn't as heavy-handed
16142 # as -z defs.
16143 no_undefined_flag='${wl}-z,text'
16144 allow_undefined_flag='${wl}-z,nodefs'
16145 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016146 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016147 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16148 hardcode_libdir_separator=':'
16149 link_all_deplibs=yes
16150 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016151 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016152
16153 if test "$GCC" = yes; then
16154 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16155 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16156 else
16157 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16158 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16159 fi
John Criswell47fdd832003-07-14 16:52:07 +000016160 ;;
16161
16162 uts4*)
16163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16164 hardcode_libdir_flag_spec='-L$libdir'
16165 hardcode_shlibpath_var=no
16166 ;;
16167
16168 *)
16169 ld_shlibs=no
16170 ;;
16171 esac
16172 fi
16173
Reid Spencera773bd52006-08-04 18:18:08 +000016174{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16175echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016176test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016177
John Criswell47fdd832003-07-14 16:52:07 +000016178#
16179# Do we need to explicitly link libc?
16180#
16181case "x$archive_cmds_need_lc" in
16182x|xyes)
16183 # Assume -lc should be added
16184 archive_cmds_need_lc=yes
16185
16186 if test "$enable_shared" = yes && test "$GCC" = yes; then
16187 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016188 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016189 # FIXME: we may have to deal with multi-command sequences.
16190 ;;
16191 '$CC '*)
16192 # Test whether the compiler implicitly links with -lc since on some
16193 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16194 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016195 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16196echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016197 $rm conftest*
16198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16199
16200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16201 (eval $ac_compile) 2>&5
16202 ac_status=$?
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } 2>conftest.err; then
16205 soname=conftest
16206 lib=conftest
16207 libobjs=conftest.$ac_objext
16208 deplibs=
16209 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016210 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016211 compiler_flags=-v
16212 linker_flags=-v
16213 verstring=
16214 output_objdir=.
16215 libname=conftest
16216 lt_save_allow_undefined_flag=$allow_undefined_flag
16217 allow_undefined_flag=
16218 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16219 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16220 ac_status=$?
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }
16223 then
16224 archive_cmds_need_lc=no
16225 else
16226 archive_cmds_need_lc=yes
16227 fi
16228 allow_undefined_flag=$lt_save_allow_undefined_flag
16229 else
16230 cat conftest.err 1>&5
16231 fi
16232 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016233 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16234echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016235 ;;
16236 esac
16237 fi
16238 ;;
16239esac
16240
Reid Spencera773bd52006-08-04 18:18:08 +000016241{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16242echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016243library_names_spec=
16244libname_spec='lib$name'
16245soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016246shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016247postinstall_cmds=
16248postuninstall_cmds=
16249finish_cmds=
16250finish_eval=
16251shlibpath_var=
16252shlibpath_overrides_runpath=unknown
16253version_type=none
16254dynamic_linker="$host_os ld.so"
16255sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016256if test "$GCC" = yes; then
16257 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16258 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16259 # if the path contains ";" then we assume it to be the separator
16260 # otherwise default to the standard path separator (i.e. ":") - it is
16261 # assumed that no part of a normal pathname contains ";" but that should
16262 # okay in the real world where ";" in dirpaths is itself problematic.
16263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16264 else
16265 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16266 fi
16267else
16268 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16269fi
16270need_lib_prefix=unknown
16271hardcode_into_libs=no
16272
16273# when you set need_version to no, make sure it does not cause -set_version
16274# flags to be left without arguments
16275need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016276
16277case $host_os in
16278aix3*)
16279 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016281 shlibpath_var=LIBPATH
16282
John Criswell47fdd832003-07-14 16:52:07 +000016283 # AIX 3 has no versioning support, so we append a major version to the name.
16284 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016285 ;;
16286
16287aix4* | aix5*)
16288 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016289 need_lib_prefix=no
16290 need_version=no
16291 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016292 if test "$host_cpu" = ia64; then
16293 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016294 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016295 shlibpath_var=LD_LIBRARY_PATH
16296 else
16297 # With GCC up to 2.95.x, collect2 would create an import file
16298 # for dependence libraries. The import file would start with
16299 # the line `#! .'. This would cause the generated library to
16300 # depend on `.', always an invalid library. This was fixed in
16301 # development snapshots of GCC prior to 3.0.
16302 case $host_os in
16303 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016304 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16305 echo ' yes '
16306 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16307 :
16308 else
16309 can_build_shared=no
16310 fi
16311 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016312 esac
John Criswell47fdd832003-07-14 16:52:07 +000016313 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16314 # soname into executable. Probably we can add versioning support to
16315 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016316 if test "$aix_use_runtimelinking" = yes; then
16317 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16318 # instead of lib<name>.a to let people know that these are not
16319 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016321 else
16322 # We preserve .a as extension for shared libraries through AIX4.2
16323 # and later when we are not doing run time linking.
16324 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016325 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016326 fi
16327 shlibpath_var=LIBPATH
16328 fi
16329 ;;
16330
16331amigaos*)
16332 library_names_spec='$libname.ixlibrary $libname.a'
16333 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016334 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 +000016335 ;;
16336
16337beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016338 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016339 dynamic_linker="$host_os ld.so"
16340 shlibpath_var=LIBRARY_PATH
16341 ;;
16342
Reid Spencer2706f8c2004-09-19 23:53:36 +000016343bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016344 version_type=linux
16345 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016348 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16349 shlibpath_var=LD_LIBRARY_PATH
16350 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16351 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016352 # the default ld.so.conf also contains /usr/contrib/lib and
16353 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16354 # libtool to hard-code these into programs
16355 ;;
16356
16357cygwin* | mingw* | pw32*)
16358 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016359 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016360 need_version=no
16361 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016362
John Criswell7a73b802003-06-30 21:59:07 +000016363 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016364 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016365 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016366 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016367 postinstall_cmds='base_file=`basename \${file}`~
16368 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16369 dldir=$destdir/`dirname \$dlpath`~
16370 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016371 $install_prog $dir/$dlname \$dldir/$dlname~
16372 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016373 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16374 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016375 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016376 shlibpath_overrides_runpath=yes
16377
16378 case $host_os in
16379 cygwin*)
16380 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16381 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 +000016382 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016383 ;;
16384 mingw*)
16385 # MinGW DLLs use traditional 'lib' prefix
16386 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16387 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16388 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16389 # It is most probably a Windows format PATH printed by
16390 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16391 # path with ; separators, and with drive letters. We can handle the
16392 # drive letters (cygwin fileutils understands them), so leave them,
16393 # especially as we might pass files found there to a mingw objdump,
16394 # which wouldn't understand a cygwinified path. Ahh.
16395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16396 else
16397 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16398 fi
16399 ;;
16400 pw32*)
16401 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016402 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 +000016403 ;;
16404 esac
John Criswell7a73b802003-06-30 21:59:07 +000016405 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016406
John Criswell7a73b802003-06-30 21:59:07 +000016407 *)
John Criswell47fdd832003-07-14 16:52:07 +000016408 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016409 ;;
16410 esac
16411 dynamic_linker='Win32 ld.exe'
16412 # FIXME: first we should search . and the directory the executable is in
16413 shlibpath_var=PATH
16414 ;;
16415
16416darwin* | rhapsody*)
16417 dynamic_linker="$host_os dyld"
16418 version_type=darwin
16419 need_lib_prefix=no
16420 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016421 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016422 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016423 shlibpath_overrides_runpath=yes
16424 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016425 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016426 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016427 if test "$GCC" = yes; then
16428 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"`
16429 else
16430 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016431 fi
16432 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16433 ;;
16434
16435dgux*)
16436 version_type=linux
16437 need_lib_prefix=no
16438 need_version=no
16439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16440 soname_spec='${libname}${release}${shared_ext}$major'
16441 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016442 ;;
16443
16444freebsd1*)
16445 dynamic_linker=no
16446 ;;
16447
Reid Spencer2706f8c2004-09-19 23:53:36 +000016448kfreebsd*-gnu)
16449 version_type=linux
16450 need_lib_prefix=no
16451 need_version=no
16452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16453 soname_spec='${libname}${release}${shared_ext}$major'
16454 shlibpath_var=LD_LIBRARY_PATH
16455 shlibpath_overrides_runpath=no
16456 hardcode_into_libs=yes
16457 dynamic_linker='GNU ld.so'
16458 ;;
16459
Reid Spencera773bd52006-08-04 18:18:08 +000016460freebsd* | dragonfly*)
16461 # DragonFly does not have aout. When/if they implement a new
16462 # versioning mechanism, adjust this.
16463 if test -x /usr/bin/objformat; then
16464 objformat=`/usr/bin/objformat`
16465 else
16466 case $host_os in
16467 freebsd[123]*) objformat=aout ;;
16468 *) objformat=elf ;;
16469 esac
16470 fi
John Criswell7a73b802003-06-30 21:59:07 +000016471 version_type=freebsd-$objformat
16472 case $version_type in
16473 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016475 need_version=no
16476 need_lib_prefix=no
16477 ;;
16478 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016479 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016480 need_version=yes
16481 ;;
16482 esac
16483 shlibpath_var=LD_LIBRARY_PATH
16484 case $host_os in
16485 freebsd2*)
16486 shlibpath_overrides_runpath=yes
16487 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016488 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016489 shlibpath_overrides_runpath=yes
16490 hardcode_into_libs=yes
16491 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016492 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16493 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016494 shlibpath_overrides_runpath=no
16495 hardcode_into_libs=yes
16496 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016497 freebsd*) # from 4.6 on
16498 shlibpath_overrides_runpath=yes
16499 hardcode_into_libs=yes
16500 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016501 esac
16502 ;;
16503
16504gnu*)
16505 version_type=linux
16506 need_lib_prefix=no
16507 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16509 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016510 shlibpath_var=LD_LIBRARY_PATH
16511 hardcode_into_libs=yes
16512 ;;
16513
16514hpux9* | hpux10* | hpux11*)
16515 # Give a soname corresponding to the major version so that dld.sl refuses to
16516 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016517 version_type=sunos
16518 need_lib_prefix=no
16519 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016520 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016521 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016522 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016523 hardcode_into_libs=yes
16524 dynamic_linker="$host_os dld.so"
16525 shlibpath_var=LD_LIBRARY_PATH
16526 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16528 soname_spec='${libname}${release}${shared_ext}$major'
16529 if test "X$HPUX_IA64_MODE" = X32; then
16530 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16531 else
16532 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16533 fi
16534 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16535 ;;
16536 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016537 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016538 hardcode_into_libs=yes
16539 dynamic_linker="$host_os dld.sl"
16540 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16541 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16543 soname_spec='${libname}${release}${shared_ext}$major'
16544 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16545 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16546 ;;
16547 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016548 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016549 dynamic_linker="$host_os dld.sl"
16550 shlibpath_var=SHLIB_PATH
16551 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553 soname_spec='${libname}${release}${shared_ext}$major'
16554 ;;
16555 esac
John Criswell7a73b802003-06-30 21:59:07 +000016556 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16557 postinstall_cmds='chmod 555 $lib'
16558 ;;
16559
Reid Spencera773bd52006-08-04 18:18:08 +000016560interix3*)
16561 version_type=linux
16562 need_lib_prefix=no
16563 need_version=no
16564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16565 soname_spec='${libname}${release}${shared_ext}$major'
16566 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16567 shlibpath_var=LD_LIBRARY_PATH
16568 shlibpath_overrides_runpath=no
16569 hardcode_into_libs=yes
16570 ;;
16571
John Criswell47fdd832003-07-14 16:52:07 +000016572irix5* | irix6* | nonstopux*)
16573 case $host_os in
16574 nonstopux*) version_type=nonstopux ;;
16575 *)
16576 if test "$lt_cv_prog_gnu_ld" = yes; then
16577 version_type=linux
16578 else
16579 version_type=irix
16580 fi ;;
16581 esac
John Criswell7a73b802003-06-30 21:59:07 +000016582 need_lib_prefix=no
16583 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016584 soname_spec='${libname}${release}${shared_ext}$major'
16585 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 +000016586 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016587 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016588 libsuff= shlibsuff=
16589 ;;
16590 *)
16591 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016592 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16593 libsuff= shlibsuff= libmagic=32-bit;;
16594 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16595 libsuff=32 shlibsuff=N32 libmagic=N32;;
16596 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16597 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016598 *) libsuff= shlibsuff= libmagic=never-match;;
16599 esac
16600 ;;
16601 esac
16602 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16603 shlibpath_overrides_runpath=no
16604 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16605 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016606 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016607 ;;
16608
16609# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016610linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016611 dynamic_linker=no
16612 ;;
16613
16614# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016615linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016616 version_type=linux
16617 need_lib_prefix=no
16618 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16622 shlibpath_var=LD_LIBRARY_PATH
16623 shlibpath_overrides_runpath=no
16624 # This implies no fast_install, which is unacceptable.
16625 # Some rework will be needed to allow for fast_install
16626 # before this can be enabled.
16627 hardcode_into_libs=yes
16628
Reid Spencer2706f8c2004-09-19 23:53:36 +000016629 # Append ld.so.conf contents to the search path
16630 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016631 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 +000016632 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16633 fi
16634
John Criswell7a73b802003-06-30 21:59:07 +000016635 # We used to test for /lib/ld.so.1 and disable shared libraries on
16636 # powerpc, because MkLinux only supported shared libraries with the
16637 # GNU dynamic linker. Since this was broken with cross compilers,
16638 # most powerpc-linux boxes support dynamic linking these days and
16639 # people can always --disable-shared, the test was removed, and we
16640 # assume the GNU/Linux dynamic linker is in use.
16641 dynamic_linker='GNU/Linux ld.so'
16642 ;;
16643
Reid Spencer2706f8c2004-09-19 23:53:36 +000016644knetbsd*-gnu)
16645 version_type=linux
16646 need_lib_prefix=no
16647 need_version=no
16648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16649 soname_spec='${libname}${release}${shared_ext}$major'
16650 shlibpath_var=LD_LIBRARY_PATH
16651 shlibpath_overrides_runpath=no
16652 hardcode_into_libs=yes
16653 dynamic_linker='GNU ld.so'
16654 ;;
16655
John Criswell7a73b802003-06-30 21:59:07 +000016656netbsd*)
16657 version_type=sunos
16658 need_lib_prefix=no
16659 need_version=no
16660 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16663 dynamic_linker='NetBSD (a.out) ld.so'
16664 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016666 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016667 dynamic_linker='NetBSD ld.elf_so'
16668 fi
16669 shlibpath_var=LD_LIBRARY_PATH
16670 shlibpath_overrides_runpath=yes
16671 hardcode_into_libs=yes
16672 ;;
16673
16674newsos6)
16675 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16677 shlibpath_var=LD_LIBRARY_PATH
16678 shlibpath_overrides_runpath=yes
16679 ;;
16680
Reid Spencer2706f8c2004-09-19 23:53:36 +000016681nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016682 version_type=linux
16683 need_lib_prefix=no
16684 need_version=no
16685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16686 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016687 shlibpath_var=LD_LIBRARY_PATH
16688 shlibpath_overrides_runpath=yes
16689 ;;
16690
16691openbsd*)
16692 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016693 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016694 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016695 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16696 case $host_os in
16697 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16698 *) need_version=no ;;
16699 esac
John Criswell47fdd832003-07-14 16:52:07 +000016700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16702 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016703 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 +000016704 case $host_os in
16705 openbsd2.[89] | openbsd2.[89].*)
16706 shlibpath_overrides_runpath=no
16707 ;;
16708 *)
16709 shlibpath_overrides_runpath=yes
16710 ;;
16711 esac
John Criswell7a73b802003-06-30 21:59:07 +000016712 else
16713 shlibpath_overrides_runpath=yes
16714 fi
John Criswell7a73b802003-06-30 21:59:07 +000016715 ;;
16716
16717os2*)
16718 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016719 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016720 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016721 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016722 dynamic_linker='OS/2 ld.exe'
16723 shlibpath_var=LIBPATH
16724 ;;
16725
16726osf3* | osf4* | osf5*)
16727 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016728 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016729 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016730 soname_spec='${libname}${release}${shared_ext}$major'
16731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016732 shlibpath_var=LD_LIBRARY_PATH
16733 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16734 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16735 ;;
16736
John Criswell7a73b802003-06-30 21:59:07 +000016737solaris*)
16738 version_type=linux
16739 need_lib_prefix=no
16740 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016743 shlibpath_var=LD_LIBRARY_PATH
16744 shlibpath_overrides_runpath=yes
16745 hardcode_into_libs=yes
16746 # ldd complains unless libraries are executable
16747 postinstall_cmds='chmod +x $lib'
16748 ;;
16749
16750sunos4*)
16751 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016753 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16754 shlibpath_var=LD_LIBRARY_PATH
16755 shlibpath_overrides_runpath=yes
16756 if test "$with_gnu_ld" = yes; then
16757 need_lib_prefix=no
16758 fi
16759 need_version=yes
16760 ;;
16761
Reid Spencera773bd52006-08-04 18:18:08 +000016762sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016763 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16765 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016766 shlibpath_var=LD_LIBRARY_PATH
16767 case $host_vendor in
16768 sni)
16769 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016770 need_lib_prefix=no
16771 export_dynamic_flag_spec='${wl}-Blargedynsym'
16772 runpath_var=LD_RUN_PATH
16773 ;;
16774 siemens)
16775 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016776 ;;
16777 motorola)
16778 need_lib_prefix=no
16779 need_version=no
16780 shlibpath_overrides_runpath=no
16781 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16782 ;;
16783 esac
16784 ;;
16785
John Criswell7a73b802003-06-30 21:59:07 +000016786sysv4*MP*)
16787 if test -d /usr/nec ;then
16788 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016789 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16790 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016791 shlibpath_var=LD_LIBRARY_PATH
16792 fi
16793 ;;
16794
Reid Spencera773bd52006-08-04 18:18:08 +000016795sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16796 version_type=freebsd-elf
16797 need_lib_prefix=no
16798 need_version=no
16799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16800 soname_spec='${libname}${release}${shared_ext}$major'
16801 shlibpath_var=LD_LIBRARY_PATH
16802 hardcode_into_libs=yes
16803 if test "$with_gnu_ld" = yes; then
16804 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16805 shlibpath_overrides_runpath=no
16806 else
16807 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16808 shlibpath_overrides_runpath=yes
16809 case $host_os in
16810 sco3.2v5*)
16811 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16812 ;;
16813 esac
16814 fi
16815 sys_lib_dlsearch_path_spec='/usr/lib'
16816 ;;
16817
John Criswell47fdd832003-07-14 16:52:07 +000016818uts4*)
16819 version_type=linux
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821 soname_spec='${libname}${release}${shared_ext}$major'
16822 shlibpath_var=LD_LIBRARY_PATH
16823 ;;
16824
John Criswell7a73b802003-06-30 21:59:07 +000016825*)
16826 dynamic_linker=no
16827 ;;
16828esac
Reid Spencera773bd52006-08-04 18:18:08 +000016829{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16830echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016831test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016832
Reid Spencera773bd52006-08-04 18:18:08 +000016833variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16834if test "$GCC" = yes; then
16835 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16836fi
16837
16838{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16839echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016840hardcode_action=
16841if test -n "$hardcode_libdir_flag_spec" || \
16842 test -n "$runpath_var" || \
16843 test "X$hardcode_automatic" = "Xyes" ; then
16844
16845 # We can hardcode non-existant directories.
16846 if test "$hardcode_direct" != no &&
16847 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16848 # have to relink, otherwise we might link with an installed library
16849 # when we should be linking with a yet-to-be-installed one
16850 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16851 test "$hardcode_minus_L" != no; then
16852 # Linking always hardcodes the temporary library directory.
16853 hardcode_action=relink
16854 else
16855 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16856 hardcode_action=immediate
16857 fi
16858else
16859 # We cannot hardcode anything, or else we can only hardcode existing
16860 # directories.
16861 hardcode_action=unsupported
16862fi
Reid Spencera773bd52006-08-04 18:18:08 +000016863{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16864echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016865
16866if test "$hardcode_action" = relink; then
16867 # Fast installation is not supported
16868 enable_fast_install=no
16869elif test "$shlibpath_overrides_runpath" = yes ||
16870 test "$enable_shared" = no; then
16871 # Fast installation is not necessary
16872 enable_fast_install=needless
16873fi
16874
16875striplib=
16876old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016877{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16878echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016879if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16880 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16881 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016882 { echo "$as_me:$LINENO: result: yes" >&5
16883echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016884else
16885# FIXME - insert some real tests, host_os isn't really good enough
16886 case $host_os in
16887 darwin*)
16888 if test -n "$STRIP" ; then
16889 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016890 { echo "$as_me:$LINENO: result: yes" >&5
16891echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016892 else
Reid Spencera773bd52006-08-04 18:18:08 +000016893 { echo "$as_me:$LINENO: result: no" >&5
16894echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016895fi
16896 ;;
16897 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016898 { echo "$as_me:$LINENO: result: no" >&5
16899echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016900 ;;
16901 esac
16902fi
16903
John Criswell7a73b802003-06-30 21:59:07 +000016904if test "x$enable_dlopen" != xyes; then
16905 enable_dlopen=unknown
16906 enable_dlopen_self=unknown
16907 enable_dlopen_self_static=unknown
16908else
16909 lt_cv_dlopen=no
16910 lt_cv_dlopen_libs=
16911
16912 case $host_os in
16913 beos*)
16914 lt_cv_dlopen="load_add_on"
16915 lt_cv_dlopen_libs=
16916 lt_cv_dlopen_self=yes
16917 ;;
16918
John Criswell47fdd832003-07-14 16:52:07 +000016919 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016920 lt_cv_dlopen="LoadLibrary"
16921 lt_cv_dlopen_libs=
16922 ;;
16923
John Criswell47fdd832003-07-14 16:52:07 +000016924 cygwin*)
16925 lt_cv_dlopen="dlopen"
16926 lt_cv_dlopen_libs=
16927 ;;
16928
16929 darwin*)
16930 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016931 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16932echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016933if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935else
16936 ac_check_lib_save_LIBS=$LIBS
16937LIBS="-ldl $LIBS"
16938cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016939/* confdefs.h. */
16940_ACEOF
16941cat confdefs.h >>conftest.$ac_ext
16942cat >>conftest.$ac_ext <<_ACEOF
16943/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016944
Reid Spencera773bd52006-08-04 18:18:08 +000016945/* Override any GCC internal prototype to avoid an error.
16946 Use char because int might match the return type of a GCC
16947 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016948#ifdef __cplusplus
16949extern "C"
16950#endif
John Criswell47fdd832003-07-14 16:52:07 +000016951char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016952int
16953main ()
16954{
Reid Spencera773bd52006-08-04 18:18:08 +000016955return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016956 ;
16957 return 0;
16958}
16959_ACEOF
16960rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016961if { (ac_try="$ac_link"
16962case "(($ac_try" in
16963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964 *) ac_try_echo=$ac_try;;
16965esac
16966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16967 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016968 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016969 grep -v '^ *+' conftest.er1 >conftest.err
16970 rm -f conftest.er1
16971 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016973 (exit $ac_status); } &&
16974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16975 { (case "(($ac_try" in
16976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16977 *) ac_try_echo=$ac_try;;
16978esac
16979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16980 (eval "$ac_try") 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; } &&
16984 { ac_try='test -s conftest$ac_exeext'
16985 { (case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16988esac
16989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_try") 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016994 ac_cv_lib_dl_dlopen=yes
16995else
16996 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016997sed 's/^/| /' conftest.$ac_ext >&5
16998
Reid Spencera773bd52006-08-04 18:18:08 +000016999 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000017000fi
Reid Spencera773bd52006-08-04 18:18:08 +000017001
Bill Wendlingebcceee2009-04-18 11:20:33 +000017002rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017003 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017004LIBS=$ac_check_lib_save_LIBS
17005fi
Reid Spencera773bd52006-08-04 18:18:08 +000017006{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17007echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017008if test $ac_cv_lib_dl_dlopen = yes; then
17009 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17010else
17011
17012 lt_cv_dlopen="dyld"
17013 lt_cv_dlopen_libs=
17014 lt_cv_dlopen_self=yes
17015
17016fi
17017
17018 ;;
17019
John Criswell7a73b802003-06-30 21:59:07 +000017020 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017021 { echo "$as_me:$LINENO: checking for shl_load" >&5
17022echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017023if test "${ac_cv_func_shl_load+set}" = set; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17025else
17026 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017027/* confdefs.h. */
17028_ACEOF
17029cat confdefs.h >>conftest.$ac_ext
17030cat >>conftest.$ac_ext <<_ACEOF
17031/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017032/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17034#define shl_load innocuous_shl_load
17035
John Criswell7a73b802003-06-30 21:59:07 +000017036/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017037 which can conflict with char shl_load (); below.
17038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17039 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017040
John Criswell0c38eaf2003-09-10 15:17:25 +000017041#ifdef __STDC__
17042# include <limits.h>
17043#else
17044# include <assert.h>
17045#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017046
17047#undef shl_load
17048
Reid Spencera773bd52006-08-04 18:18:08 +000017049/* Override any GCC internal prototype to avoid an error.
17050 Use char because int might match the return type of a GCC
17051 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017052#ifdef __cplusplus
17053extern "C"
17054#endif
John Criswell7a73b802003-06-30 21:59:07 +000017055char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017056/* The GNU C library defines this for functions which it implements
17057 to always fail with ENOSYS. Some functions are actually named
17058 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017059#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017060choke me
John Criswell7a73b802003-06-30 21:59:07 +000017061#endif
17062
John Criswell0c38eaf2003-09-10 15:17:25 +000017063int
17064main ()
17065{
Reid Spencera773bd52006-08-04 18:18:08 +000017066return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017067 ;
17068 return 0;
17069}
17070_ACEOF
17071rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017072if { (ac_try="$ac_link"
17073case "(($ac_try" in
17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075 *) ac_try_echo=$ac_try;;
17076esac
17077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017079 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017080 grep -v '^ *+' conftest.er1 >conftest.err
17081 rm -f conftest.er1
17082 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017084 (exit $ac_status); } &&
17085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17089esac
17090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } &&
17095 { ac_try='test -s conftest$ac_exeext'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17099esac
17100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017105 ac_cv_func_shl_load=yes
17106else
17107 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017108sed 's/^/| /' conftest.$ac_ext >&5
17109
Reid Spencera773bd52006-08-04 18:18:08 +000017110 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017111fi
Reid Spencera773bd52006-08-04 18:18:08 +000017112
Bill Wendlingebcceee2009-04-18 11:20:33 +000017113rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017114 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017115fi
Reid Spencera773bd52006-08-04 18:18:08 +000017116{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17117echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017118if test $ac_cv_func_shl_load = yes; then
17119 lt_cv_dlopen="shl_load"
17120else
Reid Spencera773bd52006-08-04 18:18:08 +000017121 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17122echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017123if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17124 echo $ECHO_N "(cached) $ECHO_C" >&6
17125else
17126 ac_check_lib_save_LIBS=$LIBS
17127LIBS="-ldld $LIBS"
17128cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017129/* confdefs.h. */
17130_ACEOF
17131cat confdefs.h >>conftest.$ac_ext
17132cat >>conftest.$ac_ext <<_ACEOF
17133/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017134
Reid Spencera773bd52006-08-04 18:18:08 +000017135/* Override any GCC internal prototype to avoid an error.
17136 Use char because int might match the return type of a GCC
17137 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017138#ifdef __cplusplus
17139extern "C"
17140#endif
John Criswell7a73b802003-06-30 21:59:07 +000017141char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017142int
17143main ()
17144{
Reid Spencera773bd52006-08-04 18:18:08 +000017145return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017146 ;
17147 return 0;
17148}
17149_ACEOF
17150rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017151if { (ac_try="$ac_link"
17152case "(($ac_try" in
17153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154 *) ac_try_echo=$ac_try;;
17155esac
17156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017158 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017159 grep -v '^ *+' conftest.er1 >conftest.err
17160 rm -f conftest.er1
17161 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017163 (exit $ac_status); } &&
17164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17165 { (case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168esac
17169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_try") 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; } &&
17174 { ac_try='test -s conftest$ac_exeext'
17175 { (case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17178esac
17179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_try") 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017184 ac_cv_lib_dld_shl_load=yes
17185else
17186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017187sed 's/^/| /' conftest.$ac_ext >&5
17188
Reid Spencera773bd52006-08-04 18:18:08 +000017189 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017190fi
Reid Spencera773bd52006-08-04 18:18:08 +000017191
Bill Wendlingebcceee2009-04-18 11:20:33 +000017192rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017193 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017194LIBS=$ac_check_lib_save_LIBS
17195fi
Reid Spencera773bd52006-08-04 18:18:08 +000017196{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17197echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017198if test $ac_cv_lib_dld_shl_load = yes; then
17199 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17200else
Reid Spencera773bd52006-08-04 18:18:08 +000017201 { echo "$as_me:$LINENO: checking for dlopen" >&5
17202echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017203if test "${ac_cv_func_dlopen+set}" = set; then
17204 echo $ECHO_N "(cached) $ECHO_C" >&6
17205else
17206 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017207/* confdefs.h. */
17208_ACEOF
17209cat confdefs.h >>conftest.$ac_ext
17210cat >>conftest.$ac_ext <<_ACEOF
17211/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017212/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17214#define dlopen innocuous_dlopen
17215
John Criswell7a73b802003-06-30 21:59:07 +000017216/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017217 which can conflict with char dlopen (); below.
17218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17219 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017220
John Criswell0c38eaf2003-09-10 15:17:25 +000017221#ifdef __STDC__
17222# include <limits.h>
17223#else
17224# include <assert.h>
17225#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017226
17227#undef dlopen
17228
Reid Spencera773bd52006-08-04 18:18:08 +000017229/* Override any GCC internal prototype to avoid an error.
17230 Use char because int might match the return type of a GCC
17231 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017232#ifdef __cplusplus
17233extern "C"
17234#endif
John Criswell7a73b802003-06-30 21:59:07 +000017235char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017236/* The GNU C library defines this for functions which it implements
17237 to always fail with ENOSYS. Some functions are actually named
17238 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017239#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017240choke me
John Criswell7a73b802003-06-30 21:59:07 +000017241#endif
17242
John Criswell0c38eaf2003-09-10 15:17:25 +000017243int
17244main ()
17245{
Reid Spencera773bd52006-08-04 18:18:08 +000017246return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017247 ;
17248 return 0;
17249}
17250_ACEOF
17251rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017252if { (ac_try="$ac_link"
17253case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17256esac
17257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017259 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017260 grep -v '^ *+' conftest.er1 >conftest.err
17261 rm -f conftest.er1
17262 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017264 (exit $ac_status); } &&
17265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17266 { (case "(($ac_try" in
17267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268 *) ac_try_echo=$ac_try;;
17269esac
17270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271 (eval "$ac_try") 2>&5
17272 ac_status=$?
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; } &&
17275 { ac_try='test -s conftest$ac_exeext'
17276 { (case "(($ac_try" in
17277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278 *) ac_try_echo=$ac_try;;
17279esac
17280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281 (eval "$ac_try") 2>&5
17282 ac_status=$?
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017285 ac_cv_func_dlopen=yes
17286else
17287 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017288sed 's/^/| /' conftest.$ac_ext >&5
17289
Reid Spencera773bd52006-08-04 18:18:08 +000017290 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017291fi
Reid Spencera773bd52006-08-04 18:18:08 +000017292
Bill Wendlingebcceee2009-04-18 11:20:33 +000017293rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017294 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017295fi
Reid Spencera773bd52006-08-04 18:18:08 +000017296{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17297echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017298if test $ac_cv_func_dlopen = yes; then
17299 lt_cv_dlopen="dlopen"
17300else
Reid Spencera773bd52006-08-04 18:18:08 +000017301 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17302echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017303if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17305else
17306 ac_check_lib_save_LIBS=$LIBS
17307LIBS="-ldl $LIBS"
17308cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017309/* confdefs.h. */
17310_ACEOF
17311cat confdefs.h >>conftest.$ac_ext
17312cat >>conftest.$ac_ext <<_ACEOF
17313/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017314
Reid Spencera773bd52006-08-04 18:18:08 +000017315/* Override any GCC internal prototype to avoid an error.
17316 Use char because int might match the return type of a GCC
17317 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017318#ifdef __cplusplus
17319extern "C"
17320#endif
John Criswell7a73b802003-06-30 21:59:07 +000017321char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017322int
17323main ()
17324{
Reid Spencera773bd52006-08-04 18:18:08 +000017325return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017326 ;
17327 return 0;
17328}
17329_ACEOF
17330rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017331if { (ac_try="$ac_link"
17332case "(($ac_try" in
17333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17335esac
17336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017338 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017339 grep -v '^ *+' conftest.er1 >conftest.err
17340 rm -f conftest.er1
17341 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017343 (exit $ac_status); } &&
17344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17345 { (case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17348esac
17349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_try") 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; } &&
17354 { ac_try='test -s conftest$ac_exeext'
17355 { (case "(($ac_try" in
17356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17358esac
17359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360 (eval "$ac_try") 2>&5
17361 ac_status=$?
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017364 ac_cv_lib_dl_dlopen=yes
17365else
17366 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017367sed 's/^/| /' conftest.$ac_ext >&5
17368
Reid Spencera773bd52006-08-04 18:18:08 +000017369 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017370fi
Reid Spencera773bd52006-08-04 18:18:08 +000017371
Bill Wendlingebcceee2009-04-18 11:20:33 +000017372rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017373 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017374LIBS=$ac_check_lib_save_LIBS
17375fi
Reid Spencera773bd52006-08-04 18:18:08 +000017376{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17377echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017378if test $ac_cv_lib_dl_dlopen = yes; then
17379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17380else
Reid Spencera773bd52006-08-04 18:18:08 +000017381 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17382echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017383if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17384 echo $ECHO_N "(cached) $ECHO_C" >&6
17385else
17386 ac_check_lib_save_LIBS=$LIBS
17387LIBS="-lsvld $LIBS"
17388cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017389/* confdefs.h. */
17390_ACEOF
17391cat confdefs.h >>conftest.$ac_ext
17392cat >>conftest.$ac_ext <<_ACEOF
17393/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017394
Reid Spencera773bd52006-08-04 18:18:08 +000017395/* Override any GCC internal prototype to avoid an error.
17396 Use char because int might match the return type of a GCC
17397 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017398#ifdef __cplusplus
17399extern "C"
17400#endif
John Criswell7a73b802003-06-30 21:59:07 +000017401char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017402int
17403main ()
17404{
Reid Spencera773bd52006-08-04 18:18:08 +000017405return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017406 ;
17407 return 0;
17408}
17409_ACEOF
17410rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017411if { (ac_try="$ac_link"
17412case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17415esac
17416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017418 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017419 grep -v '^ *+' conftest.er1 >conftest.err
17420 rm -f conftest.er1
17421 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017423 (exit $ac_status); } &&
17424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17425 { (case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17428esac
17429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_try") 2>&5
17431 ac_status=$?
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; } &&
17434 { ac_try='test -s conftest$ac_exeext'
17435 { (case "(($ac_try" in
17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437 *) ac_try_echo=$ac_try;;
17438esac
17439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440 (eval "$ac_try") 2>&5
17441 ac_status=$?
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017444 ac_cv_lib_svld_dlopen=yes
17445else
17446 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017447sed 's/^/| /' conftest.$ac_ext >&5
17448
Reid Spencera773bd52006-08-04 18:18:08 +000017449 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017450fi
Reid Spencera773bd52006-08-04 18:18:08 +000017451
Bill Wendlingebcceee2009-04-18 11:20:33 +000017452rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017453 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017454LIBS=$ac_check_lib_save_LIBS
17455fi
Reid Spencera773bd52006-08-04 18:18:08 +000017456{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17457echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017458if test $ac_cv_lib_svld_dlopen = yes; then
17459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17460else
Reid Spencera773bd52006-08-04 18:18:08 +000017461 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17462echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017463if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17464 echo $ECHO_N "(cached) $ECHO_C" >&6
17465else
17466 ac_check_lib_save_LIBS=$LIBS
17467LIBS="-ldld $LIBS"
17468cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017469/* confdefs.h. */
17470_ACEOF
17471cat confdefs.h >>conftest.$ac_ext
17472cat >>conftest.$ac_ext <<_ACEOF
17473/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017474
Reid Spencera773bd52006-08-04 18:18:08 +000017475/* Override any GCC internal prototype to avoid an error.
17476 Use char because int might match the return type of a GCC
17477 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017478#ifdef __cplusplus
17479extern "C"
17480#endif
John Criswell7a73b802003-06-30 21:59:07 +000017481char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017482int
17483main ()
17484{
Reid Spencera773bd52006-08-04 18:18:08 +000017485return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017486 ;
17487 return 0;
17488}
17489_ACEOF
17490rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017491if { (ac_try="$ac_link"
17492case "(($ac_try" in
17493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494 *) ac_try_echo=$ac_try;;
17495esac
17496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017498 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017499 grep -v '^ *+' conftest.er1 >conftest.err
17500 rm -f conftest.er1
17501 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017503 (exit $ac_status); } &&
17504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17505 { (case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17508esac
17509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_try") 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } &&
17514 { ac_try='test -s conftest$ac_exeext'
17515 { (case "(($ac_try" in
17516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517 *) ac_try_echo=$ac_try;;
17518esac
17519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520 (eval "$ac_try") 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017524 ac_cv_lib_dld_dld_link=yes
17525else
17526 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017527sed 's/^/| /' conftest.$ac_ext >&5
17528
Reid Spencera773bd52006-08-04 18:18:08 +000017529 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017530fi
Reid Spencera773bd52006-08-04 18:18:08 +000017531
Bill Wendlingebcceee2009-04-18 11:20:33 +000017532rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017533 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017534LIBS=$ac_check_lib_save_LIBS
17535fi
Reid Spencera773bd52006-08-04 18:18:08 +000017536{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17537echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017538if test $ac_cv_lib_dld_dld_link = yes; then
17539 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17540fi
17541
17542
17543fi
17544
17545
17546fi
17547
17548
17549fi
17550
17551
17552fi
17553
17554
17555fi
17556
17557 ;;
17558 esac
17559
17560 if test "x$lt_cv_dlopen" != xno; then
17561 enable_dlopen=yes
17562 else
17563 enable_dlopen=no
17564 fi
17565
17566 case $lt_cv_dlopen in
17567 dlopen)
17568 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017569 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017570
17571 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017572 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017573
17574 save_LIBS="$LIBS"
17575 LIBS="$lt_cv_dlopen_libs $LIBS"
17576
Reid Spencera773bd52006-08-04 18:18:08 +000017577 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17578echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017579if test "${lt_cv_dlopen_self+set}" = set; then
17580 echo $ECHO_N "(cached) $ECHO_C" >&6
17581else
17582 if test "$cross_compiling" = yes; then :
17583 lt_cv_dlopen_self=cross
17584else
John Criswell47fdd832003-07-14 16:52:07 +000017585 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017586 lt_status=$lt_dlunknown
17587 cat > conftest.$ac_ext <<EOF
David Greenef0b9eff2009-07-09 17:16:26 +000017588#line 17588 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017589#include "confdefs.h"
17590
17591#if HAVE_DLFCN_H
17592#include <dlfcn.h>
17593#endif
17594
17595#include <stdio.h>
17596
17597#ifdef RTLD_GLOBAL
17598# define LT_DLGLOBAL RTLD_GLOBAL
17599#else
17600# ifdef DL_GLOBAL
17601# define LT_DLGLOBAL DL_GLOBAL
17602# else
17603# define LT_DLGLOBAL 0
17604# endif
17605#endif
17606
17607/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17608 find out it does not work in some platform. */
17609#ifndef LT_DLLAZY_OR_NOW
17610# ifdef RTLD_LAZY
17611# define LT_DLLAZY_OR_NOW RTLD_LAZY
17612# else
17613# ifdef DL_LAZY
17614# define LT_DLLAZY_OR_NOW DL_LAZY
17615# else
17616# ifdef RTLD_NOW
17617# define LT_DLLAZY_OR_NOW RTLD_NOW
17618# else
17619# ifdef DL_NOW
17620# define LT_DLLAZY_OR_NOW DL_NOW
17621# else
17622# define LT_DLLAZY_OR_NOW 0
17623# endif
17624# endif
17625# endif
17626# endif
17627#endif
17628
17629#ifdef __cplusplus
17630extern "C" void exit (int);
17631#endif
17632
17633void fnord() { int i=42;}
17634int main ()
17635{
17636 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17637 int status = $lt_dlunknown;
17638
17639 if (self)
17640 {
17641 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17642 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17643 /* dlclose (self); */
17644 }
Reid Spencera773bd52006-08-04 18:18:08 +000017645 else
17646 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017647
17648 exit (status);
17649}
17650EOF
17651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17652 (eval $ac_link) 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017656 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017657 lt_status=$?
17658 case x$lt_status in
17659 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17660 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017661 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017662 esac
17663 else :
17664 # compilation failed
17665 lt_cv_dlopen_self=no
17666 fi
17667fi
17668rm -fr conftest*
17669
17670
17671fi
Reid Spencera773bd52006-08-04 18:18:08 +000017672{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17673echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017674
17675 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017676 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17677 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17678echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017679if test "${lt_cv_dlopen_self_static+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17681else
17682 if test "$cross_compiling" = yes; then :
17683 lt_cv_dlopen_self_static=cross
17684else
John Criswell47fdd832003-07-14 16:52:07 +000017685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017686 lt_status=$lt_dlunknown
17687 cat > conftest.$ac_ext <<EOF
David Greenef0b9eff2009-07-09 17:16:26 +000017688#line 17688 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017689#include "confdefs.h"
17690
17691#if HAVE_DLFCN_H
17692#include <dlfcn.h>
17693#endif
17694
17695#include <stdio.h>
17696
17697#ifdef RTLD_GLOBAL
17698# define LT_DLGLOBAL RTLD_GLOBAL
17699#else
17700# ifdef DL_GLOBAL
17701# define LT_DLGLOBAL DL_GLOBAL
17702# else
17703# define LT_DLGLOBAL 0
17704# endif
17705#endif
17706
17707/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17708 find out it does not work in some platform. */
17709#ifndef LT_DLLAZY_OR_NOW
17710# ifdef RTLD_LAZY
17711# define LT_DLLAZY_OR_NOW RTLD_LAZY
17712# else
17713# ifdef DL_LAZY
17714# define LT_DLLAZY_OR_NOW DL_LAZY
17715# else
17716# ifdef RTLD_NOW
17717# define LT_DLLAZY_OR_NOW RTLD_NOW
17718# else
17719# ifdef DL_NOW
17720# define LT_DLLAZY_OR_NOW DL_NOW
17721# else
17722# define LT_DLLAZY_OR_NOW 0
17723# endif
17724# endif
17725# endif
17726# endif
17727#endif
17728
17729#ifdef __cplusplus
17730extern "C" void exit (int);
17731#endif
17732
17733void fnord() { int i=42;}
17734int main ()
17735{
17736 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17737 int status = $lt_dlunknown;
17738
17739 if (self)
17740 {
17741 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17742 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17743 /* dlclose (self); */
17744 }
Reid Spencera773bd52006-08-04 18:18:08 +000017745 else
17746 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017747
17748 exit (status);
17749}
17750EOF
17751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17752 (eval $ac_link) 2>&5
17753 ac_status=$?
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017756 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017757 lt_status=$?
17758 case x$lt_status in
17759 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17760 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017761 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017762 esac
17763 else :
17764 # compilation failed
17765 lt_cv_dlopen_self_static=no
17766 fi
17767fi
17768rm -fr conftest*
17769
17770
17771fi
Reid Spencera773bd52006-08-04 18:18:08 +000017772{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17773echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017774 fi
17775
17776 CPPFLAGS="$save_CPPFLAGS"
17777 LDFLAGS="$save_LDFLAGS"
17778 LIBS="$save_LIBS"
17779 ;;
17780 esac
17781
17782 case $lt_cv_dlopen_self in
17783 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17784 *) enable_dlopen_self=unknown ;;
17785 esac
17786
17787 case $lt_cv_dlopen_self_static in
17788 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17789 *) enable_dlopen_self_static=unknown ;;
17790 esac
17791fi
17792
17793
Reid Spencera773bd52006-08-04 18:18:08 +000017794# Report which library types will actually be built
17795{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17796echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17797{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17798echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017799
Reid Spencera773bd52006-08-04 18:18:08 +000017800{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17801echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017802test "$can_build_shared" = "no" && enable_shared=no
17803
17804# On AIX, shared libraries and static libraries use the same namespace, and
17805# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017806case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017807aix3*)
17808 test "$enable_shared" = yes && enable_static=no
17809 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017810 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017811 postinstall_cmds='$RANLIB $lib'
17812 fi
17813 ;;
17814
Reid Spencer2706f8c2004-09-19 23:53:36 +000017815aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017816 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17817 test "$enable_shared" = yes && enable_static=no
17818 fi
John Criswell7a73b802003-06-30 21:59:07 +000017819 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017820esac
Reid Spencera773bd52006-08-04 18:18:08 +000017821{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17822echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017823
Reid Spencera773bd52006-08-04 18:18:08 +000017824{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17825echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017826# Make sure either enable_shared or enable_static is yes.
17827test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017828{ echo "$as_me:$LINENO: result: $enable_static" >&5
17829echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017830
17831# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017832# libtool distribution, otherwise you forgot to ship ltmain.sh
17833# with your package, and you will get complaints that there are
17834# no rules to generate ltmain.sh.
17835if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017836 # See if we are running on zsh, and set the options which allow our commands through
17837 # without removal of \ escapes.
17838 if test -n "${ZSH_VERSION+set}" ; then
17839 setopt NO_GLOB_SUBST
17840 fi
John Criswell7a73b802003-06-30 21:59:07 +000017841 # Now quote all the things that may contain metacharacters while being
17842 # careful not to overquote the AC_SUBSTed values. We take copies of the
17843 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017844 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 +000017845 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017846 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17847 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17848 deplibs_check_method reload_flag reload_cmds need_locks \
17849 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17850 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017851 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017852 old_postinstall_cmds old_postuninstall_cmds \
17853 compiler \
17854 CC \
17855 LD \
17856 lt_prog_compiler_wl \
17857 lt_prog_compiler_pic \
17858 lt_prog_compiler_static \
17859 lt_prog_compiler_no_builtin_flag \
17860 export_dynamic_flag_spec \
17861 thread_safe_flag_spec \
17862 whole_archive_flag_spec \
17863 enable_shared_with_static_runtimes \
17864 old_archive_cmds \
17865 old_archive_from_new_cmds \
17866 predep_objects \
17867 postdep_objects \
17868 predeps \
17869 postdeps \
17870 compiler_lib_search_path \
17871 archive_cmds \
17872 archive_expsym_cmds \
17873 postinstall_cmds \
17874 postuninstall_cmds \
17875 old_archive_from_expsyms_cmds \
17876 allow_undefined_flag \
17877 no_undefined_flag \
17878 export_symbols_cmds \
17879 hardcode_libdir_flag_spec \
17880 hardcode_libdir_flag_spec_ld \
17881 hardcode_libdir_separator \
17882 hardcode_automatic \
17883 module_cmds \
17884 module_expsym_cmds \
17885 lt_cv_prog_compiler_c_o \
17886 exclude_expsyms \
17887 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017888
17889 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017890 old_archive_cmds | \
17891 old_archive_from_new_cmds | \
17892 archive_cmds | \
17893 archive_expsym_cmds | \
17894 module_cmds | \
17895 module_expsym_cmds | \
17896 old_archive_from_expsyms_cmds | \
17897 export_symbols_cmds | \
17898 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017899 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017900 old_postinstall_cmds | old_postuninstall_cmds | \
17901 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017902 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017903 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 +000017904 ;;
17905 *)
17906 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17907 ;;
17908 esac
17909 done
17910
John Criswell47fdd832003-07-14 16:52:07 +000017911 case $lt_echo in
17912 *'\$0 --fallback-echo"')
17913 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17914 ;;
17915 esac
17916
17917cfgfile="${ofile}T"
17918 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17919 $rm -f "$cfgfile"
17920 { echo "$as_me:$LINENO: creating $ofile" >&5
17921echo "$as_me: creating $ofile" >&6;}
17922
17923 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017924#! $SHELL
17925
John Criswell47fdd832003-07-14 16:52:07 +000017926# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017927# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17928# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17929#
John Criswell47fdd832003-07-14 16:52:07 +000017930# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17931# Free Software Foundation, Inc.
17932#
17933# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017934# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17935#
17936# This program is free software; you can redistribute it and/or modify
17937# it under the terms of the GNU General Public License as published by
17938# the Free Software Foundation; either version 2 of the License, or
17939# (at your option) any later version.
17940#
17941# This program is distributed in the hope that it will be useful, but
17942# WITHOUT ANY WARRANTY; without even the implied warranty of
17943# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17944# General Public License for more details.
17945#
17946# You should have received a copy of the GNU General Public License
17947# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017948# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017949#
17950# As a special exception to the GNU General Public License, if you
17951# distribute this file as part of a program that contains a
17952# configuration script generated by Autoconf, you may include it under
17953# the same distribution terms that you use for the rest of that program.
17954
John Criswell47fdd832003-07-14 16:52:07 +000017955# A sed program that does not truncate output.
17956SED=$lt_SED
17957
John Criswell7a73b802003-06-30 21:59:07 +000017958# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017959Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017960
17961# The HP-UX ksh and POSIX shell print the target directory to stdout
17962# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017963(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017964
John Criswell47fdd832003-07-14 16:52:07 +000017965# The names of the tagged configurations supported by this script.
17966available_tags=
17967
John Criswell7a73b802003-06-30 21:59:07 +000017968# ### BEGIN LIBTOOL CONFIG
17969
17970# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17971
17972# Shell to use when invoking shell scripts.
17973SHELL=$lt_SHELL
17974
17975# Whether or not to build shared libraries.
17976build_libtool_libs=$enable_shared
17977
17978# Whether or not to build static libraries.
17979build_old_libs=$enable_static
17980
17981# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017982build_libtool_need_lc=$archive_cmds_need_lc
17983
17984# Whether or not to disallow shared libs when runtime libs are static
17985allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017986
17987# Whether or not to optimize for fast installation.
17988fast_install=$enable_fast_install
17989
17990# The host system.
17991host_alias=$host_alias
17992host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017993host_os=$host_os
17994
17995# The build system.
17996build_alias=$build_alias
17997build=$build
17998build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017999
18000# An echo program that does not interpret backslashes.
18001echo=$lt_echo
18002
18003# The archiver.
18004AR=$lt_AR
18005AR_FLAGS=$lt_AR_FLAGS
18006
John Criswell47fdd832003-07-14 16:52:07 +000018007# A C compiler.
18008LTCC=$lt_LTCC
18009
Reid Spencera773bd52006-08-04 18:18:08 +000018010# LTCC compiler flags.
18011LTCFLAGS=$lt_LTCFLAGS
18012
John Criswell47fdd832003-07-14 16:52:07 +000018013# A language-specific compiler.
18014CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000018015
18016# Is the compiler the GNU C compiler?
18017with_gcc=$GCC
18018
John Criswell47fdd832003-07-14 16:52:07 +000018019# An ERE matcher.
18020EGREP=$lt_EGREP
18021
John Criswell7a73b802003-06-30 21:59:07 +000018022# The linker used to build libraries.
18023LD=$lt_LD
18024
18025# Whether we need hard or soft links.
18026LN_S=$lt_LN_S
18027
18028# A BSD-compatible nm program.
18029NM=$lt_NM
18030
18031# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018032STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000018033
18034# Used to examine libraries when file_magic_cmd begins "file"
18035MAGIC_CMD=$MAGIC_CMD
18036
18037# Used on cygwin: DLL creation program.
18038DLLTOOL="$DLLTOOL"
18039
18040# Used on cygwin: object dumper.
18041OBJDUMP="$OBJDUMP"
18042
18043# Used on cygwin: assembler.
18044AS="$AS"
18045
18046# The name of the directory that contains temporary libtool files.
18047objdir=$objdir
18048
18049# How to create reloadable object files.
18050reload_flag=$lt_reload_flag
18051reload_cmds=$lt_reload_cmds
18052
18053# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018054wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018055
18056# Object file suffix (normally "o").
18057objext="$ac_objext"
18058
18059# Old archive suffix (normally "a").
18060libext="$libext"
18061
John Criswell47fdd832003-07-14 16:52:07 +000018062# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018063shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018064
John Criswell7a73b802003-06-30 21:59:07 +000018065# Executable file suffix (normally "").
18066exeext="$exeext"
18067
18068# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018069pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018070pic_mode=$pic_mode
18071
John Criswell47fdd832003-07-14 16:52:07 +000018072# What is the maximum length of a command?
18073max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018074
John Criswell47fdd832003-07-14 16:52:07 +000018075# Does compiler simultaneously support -c and -o options?
18076compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018077
Reid Spencera773bd52006-08-04 18:18:08 +000018078# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018079need_locks=$lt_need_locks
18080
18081# Do we need the lib prefix for modules?
18082need_lib_prefix=$need_lib_prefix
18083
18084# Do we need a version for libraries?
18085need_version=$need_version
18086
18087# Whether dlopen is supported.
18088dlopen_support=$enable_dlopen
18089
18090# Whether dlopen of programs is supported.
18091dlopen_self=$enable_dlopen_self
18092
18093# Whether dlopen of statically linked programs is supported.
18094dlopen_self_static=$enable_dlopen_self_static
18095
18096# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018097link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018098
18099# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018100no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018101
18102# Compiler flag to allow reflexive dlopens.
18103export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18104
18105# Compiler flag to generate shared objects directly from archives.
18106whole_archive_flag_spec=$lt_whole_archive_flag_spec
18107
18108# Compiler flag to generate thread-safe objects.
18109thread_safe_flag_spec=$lt_thread_safe_flag_spec
18110
18111# Library versioning type.
18112version_type=$version_type
18113
18114# Format of library name prefix.
18115libname_spec=$lt_libname_spec
18116
18117# List of archive names. First name is the real one, the rest are links.
18118# The last name is the one that the linker finds with -lNAME.
18119library_names_spec=$lt_library_names_spec
18120
18121# The coded name of the library, if different from the real name.
18122soname_spec=$lt_soname_spec
18123
18124# Commands used to build and install an old-style archive.
18125RANLIB=$lt_RANLIB
18126old_archive_cmds=$lt_old_archive_cmds
18127old_postinstall_cmds=$lt_old_postinstall_cmds
18128old_postuninstall_cmds=$lt_old_postuninstall_cmds
18129
18130# Create an old-style archive from a shared archive.
18131old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18132
18133# Create a temporary old-style archive to link instead of a shared archive.
18134old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18135
18136# Commands used to build and install a shared archive.
18137archive_cmds=$lt_archive_cmds
18138archive_expsym_cmds=$lt_archive_expsym_cmds
18139postinstall_cmds=$lt_postinstall_cmds
18140postuninstall_cmds=$lt_postuninstall_cmds
18141
John Criswell47fdd832003-07-14 16:52:07 +000018142# Commands used to build a loadable module (assumed same as above if empty)
18143module_cmds=$lt_module_cmds
18144module_expsym_cmds=$lt_module_expsym_cmds
18145
John Criswell7a73b802003-06-30 21:59:07 +000018146# Commands to strip libraries.
18147old_striplib=$lt_old_striplib
18148striplib=$lt_striplib
18149
John Criswell47fdd832003-07-14 16:52:07 +000018150# Dependencies to place before the objects being linked to create a
18151# shared library.
18152predep_objects=$lt_predep_objects
18153
18154# Dependencies to place after the objects being linked to create a
18155# shared library.
18156postdep_objects=$lt_postdep_objects
18157
18158# Dependencies to place before the objects being linked to create a
18159# shared library.
18160predeps=$lt_predeps
18161
18162# Dependencies to place after the objects being linked to create a
18163# shared library.
18164postdeps=$lt_postdeps
18165
18166# The library search path used internally by the compiler when linking
18167# a shared library.
18168compiler_lib_search_path=$lt_compiler_lib_search_path
18169
John Criswell7a73b802003-06-30 21:59:07 +000018170# Method to check whether dependent libraries are shared objects.
18171deplibs_check_method=$lt_deplibs_check_method
18172
18173# Command to use when deplibs_check_method == file_magic.
18174file_magic_cmd=$lt_file_magic_cmd
18175
18176# Flag that allows shared libraries with undefined symbols to be built.
18177allow_undefined_flag=$lt_allow_undefined_flag
18178
18179# Flag that forces no undefined symbols.
18180no_undefined_flag=$lt_no_undefined_flag
18181
18182# Commands used to finish a libtool library installation in a directory.
18183finish_cmds=$lt_finish_cmds
18184
18185# Same as above, but a single script fragment to be evaled but not shown.
18186finish_eval=$lt_finish_eval
18187
18188# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018189global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018190
18191# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018192global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018193
18194# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018195global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018196
18197# This is the shared library runtime path variable.
18198runpath_var=$runpath_var
18199
18200# This is the shared library path variable.
18201shlibpath_var=$shlibpath_var
18202
18203# Is shlibpath searched before the hard-coded library search path?
18204shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18205
18206# How to hardcode a shared library path into an executable.
18207hardcode_action=$hardcode_action
18208
18209# Whether we should hardcode library paths into libraries.
18210hardcode_into_libs=$hardcode_into_libs
18211
18212# Flag to hardcode \$libdir into a binary during linking.
18213# This must work even if \$libdir does not exist.
18214hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18215
John Criswell47fdd832003-07-14 16:52:07 +000018216# If ld is used when linking, flag to hardcode \$libdir into
18217# a binary during linking. This must work even if \$libdir does
18218# not exist.
18219hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18220
John Criswell7a73b802003-06-30 21:59:07 +000018221# Whether we need a single -rpath flag with a separated argument.
18222hardcode_libdir_separator=$lt_hardcode_libdir_separator
18223
John Criswell47fdd832003-07-14 16:52:07 +000018224# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018225# resulting binary.
18226hardcode_direct=$hardcode_direct
18227
18228# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18229# resulting binary.
18230hardcode_minus_L=$hardcode_minus_L
18231
18232# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18233# the resulting binary.
18234hardcode_shlibpath_var=$hardcode_shlibpath_var
18235
John Criswell47fdd832003-07-14 16:52:07 +000018236# Set to yes if building a shared library automatically hardcodes DIR into the library
18237# and all subsequent libraries and executables linked against it.
18238hardcode_automatic=$hardcode_automatic
18239
John Criswell7a73b802003-06-30 21:59:07 +000018240# Variables whose values should be saved in libtool wrapper scripts and
18241# restored at relink time.
18242variables_saved_for_relink="$variables_saved_for_relink"
18243
18244# Whether libtool must link a program against all its dependency libraries.
18245link_all_deplibs=$link_all_deplibs
18246
18247# Compile-time system search path for libraries
18248sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18249
18250# Run-time system search path for libraries
18251sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18252
18253# Fix the shell variable \$srcfile for the compiler.
18254fix_srcfile_path="$fix_srcfile_path"
18255
18256# Set to yes if exported symbols are required.
18257always_export_symbols=$always_export_symbols
18258
18259# The commands to list exported symbols.
18260export_symbols_cmds=$lt_export_symbols_cmds
18261
18262# The commands to extract the exported symbol list from a shared archive.
18263extract_expsyms_cmds=$lt_extract_expsyms_cmds
18264
18265# Symbols that should not be listed in the preloaded symbols.
18266exclude_expsyms=$lt_exclude_expsyms
18267
18268# Symbols that must always be exported.
18269include_expsyms=$lt_include_expsyms
18270
18271# ### END LIBTOOL CONFIG
18272
18273__EOF__
18274
John Criswell47fdd832003-07-14 16:52:07 +000018275
John Criswell7a73b802003-06-30 21:59:07 +000018276 case $host_os in
18277 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018278 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018279
18280# AIX sometimes has problems with the GCC collect2 program. For some
18281# reason, if we set the COLLECT_NAMES environment variable, the problems
18282# vanish in a puff of smoke.
18283if test "X${COLLECT_NAMES+set}" != Xset; then
18284 COLLECT_NAMES=
18285 export COLLECT_NAMES
18286fi
18287EOF
18288 ;;
18289 esac
18290
John Criswell7a73b802003-06-30 21:59:07 +000018291 # We use sed instead of cat because bash on DJGPP gets confused if
18292 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18293 # text mode, it properly converts lines to CR/LF. This bash problem
18294 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018295 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018296
John Criswell47fdd832003-07-14 16:52:07 +000018297 mv -f "$cfgfile" "$ofile" || \
18298 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018299 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018300
18301else
18302 # If there is no Makefile yet, we rely on a make rule to execute
18303 # `config.status --recheck' to rerun these tests and create the
18304 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018305 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18306 if test -f "$ltmain_in"; then
18307 test -f Makefile && make "$ltmain"
18308 fi
John Criswell7a73b802003-06-30 21:59:07 +000018309fi
John Criswell7a73b802003-06-30 21:59:07 +000018310
18311
John Criswell47fdd832003-07-14 16:52:07 +000018312ac_ext=c
18313ac_cpp='$CPP $CPPFLAGS'
18314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18316ac_compiler_gnu=$ac_cv_c_compiler_gnu
18317
18318CC="$lt_save_CC"
18319
18320
Reid Spencera773bd52006-08-04 18:18:08 +000018321# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018322if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018323 withval=$with_tags; tagnames="$withval"
18324fi
18325
John Criswell47fdd832003-07-14 16:52:07 +000018326
18327if test -f "$ltmain" && test -n "$tagnames"; then
18328 if test ! -f "${ofile}"; then
18329 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18330echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18331 fi
18332
18333 if test -z "$LTCC"; then
18334 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18335 if test -z "$LTCC"; then
18336 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18337echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18338 else
18339 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18340echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18341 fi
18342 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018343 if test -z "$LTCFLAGS"; then
18344 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18345 fi
John Criswell47fdd832003-07-14 16:52:07 +000018346
18347 # Extract list of available tagged configurations in $ofile.
18348 # Note that this assumes the entire list is on one line.
18349 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18350
18351 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18352 for tagname in $tagnames; do
18353 IFS="$lt_save_ifs"
18354 # Check whether tagname contains only valid characters
18355 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18356 "") ;;
18357 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18358echo "$as_me: error: invalid tag name: $tagname" >&2;}
18359 { (exit 1); exit 1; }; }
18360 ;;
18361 esac
18362
18363 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18364 then
18365 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18366echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18367 { (exit 1); exit 1; }; }
18368 fi
18369
18370 # Update the list of available tags.
18371 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018372 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018373
18374 case $tagname in
18375 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018376 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18377 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18378 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018379 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018380ac_cpp='$CXXCPP $CPPFLAGS'
18381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18384
18385
18386
18387
18388archive_cmds_need_lc_CXX=no
18389allow_undefined_flag_CXX=
18390always_export_symbols_CXX=no
18391archive_expsym_cmds_CXX=
18392export_dynamic_flag_spec_CXX=
18393hardcode_direct_CXX=no
18394hardcode_libdir_flag_spec_CXX=
18395hardcode_libdir_flag_spec_ld_CXX=
18396hardcode_libdir_separator_CXX=
18397hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018398hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018399hardcode_automatic_CXX=no
18400module_cmds_CXX=
18401module_expsym_cmds_CXX=
18402link_all_deplibs_CXX=unknown
18403old_archive_cmds_CXX=$old_archive_cmds
18404no_undefined_flag_CXX=
18405whole_archive_flag_spec_CXX=
18406enable_shared_with_static_runtimes_CXX=no
18407
18408# Dependencies to place before and after the object being linked:
18409predep_objects_CXX=
18410postdep_objects_CXX=
18411predeps_CXX=
18412postdeps_CXX=
18413compiler_lib_search_path_CXX=
18414
18415# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018416ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018417
18418# Object file extension for compiled C++ test sources.
18419objext=o
18420objext_CXX=$objext
18421
18422# Code to be used in simple compile tests
18423lt_simple_compile_test_code="int some_variable = 0;\n"
18424
18425# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018426lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018427
18428# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18429
18430# If no C compiler was specified, use CC.
18431LTCC=${LTCC-"$CC"}
18432
Reid Spencera773bd52006-08-04 18:18:08 +000018433# If no C compiler flags were specified, use CFLAGS.
18434LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18435
John Criswell47fdd832003-07-14 16:52:07 +000018436# Allow CC to be a program name with arguments.
18437compiler=$CC
18438
18439
Reid Spencera773bd52006-08-04 18:18:08 +000018440# save warnings/boilerplate of simple test code
18441ac_outfile=conftest.$ac_objext
18442printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18443eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18444_lt_compiler_boilerplate=`cat conftest.err`
18445$rm conftest*
18446
18447ac_outfile=conftest.$ac_objext
18448printf "$lt_simple_link_test_code" >conftest.$ac_ext
18449eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18450_lt_linker_boilerplate=`cat conftest.err`
18451$rm conftest*
18452
18453
John Criswell47fdd832003-07-14 16:52:07 +000018454# Allow CC to be a program name with arguments.
18455lt_save_CC=$CC
18456lt_save_LD=$LD
18457lt_save_GCC=$GCC
18458GCC=$GXX
18459lt_save_with_gnu_ld=$with_gnu_ld
18460lt_save_path_LD=$lt_cv_path_LD
18461if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18462 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18463else
Reid Spencera773bd52006-08-04 18:18:08 +000018464 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018465fi
18466if test -n "${lt_cv_path_LDCXX+set}"; then
18467 lt_cv_path_LD=$lt_cv_path_LDCXX
18468else
Reid Spencera773bd52006-08-04 18:18:08 +000018469 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018470fi
18471test -z "${LDCXX+set}" || LD=$LDCXX
18472CC=${CXX-"c++"}
18473compiler=$CC
18474compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018475for cc_temp in $compiler""; do
18476 case $cc_temp in
18477 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18478 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18479 \-*) ;;
18480 *) break;;
18481 esac
18482done
18483cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18484
John Criswell47fdd832003-07-14 16:52:07 +000018485
18486# We don't want -fno-exception wen compiling C++ code, so set the
18487# no_builtin_flag separately
18488if test "$GXX" = yes; then
18489 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18490else
18491 lt_prog_compiler_no_builtin_flag_CXX=
18492fi
18493
18494if test "$GXX" = yes; then
18495 # Set up default GNU C++ configuration
18496
18497
Reid Spencera773bd52006-08-04 18:18:08 +000018498# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018499if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018500 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018501else
18502 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018503fi
18504
John Criswell47fdd832003-07-14 16:52:07 +000018505ac_prog=ld
18506if test "$GCC" = yes; then
18507 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018508 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18509echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018510 case $host in
18511 *-*-mingw*)
18512 # gcc leaves a trailing carriage return which upsets mingw
18513 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18514 *)
18515 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18516 esac
18517 case $ac_prog in
18518 # Accept absolute paths.
18519 [\\/]* | ?:[\\/]*)
18520 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018521 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018522 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18523 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18524 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18525 done
18526 test -z "$LD" && LD="$ac_prog"
18527 ;;
18528 "")
18529 # If it fails, then pretend we aren't using GCC.
18530 ac_prog=ld
18531 ;;
18532 *)
18533 # If it is relative, then search for the first ld in PATH.
18534 with_gnu_ld=unknown
18535 ;;
18536 esac
18537elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018538 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18539echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018540else
Reid Spencera773bd52006-08-04 18:18:08 +000018541 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18542echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018543fi
18544if test "${lt_cv_path_LD+set}" = set; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18546else
18547 if test -z "$LD"; then
18548 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18549 for ac_dir in $PATH; do
18550 IFS="$lt_save_ifs"
18551 test -z "$ac_dir" && ac_dir=.
18552 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18553 lt_cv_path_LD="$ac_dir/$ac_prog"
18554 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018555 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018556 # Break only if it was the GNU/non-GNU ld that we prefer.
18557 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18558 *GNU* | *'with BFD'*)
18559 test "$with_gnu_ld" != no && break
18560 ;;
18561 *)
18562 test "$with_gnu_ld" != yes && break
18563 ;;
18564 esac
18565 fi
18566 done
18567 IFS="$lt_save_ifs"
18568else
18569 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18570fi
18571fi
18572
18573LD="$lt_cv_path_LD"
18574if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018575 { echo "$as_me:$LINENO: result: $LD" >&5
18576echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018577else
Reid Spencera773bd52006-08-04 18:18:08 +000018578 { echo "$as_me:$LINENO: result: no" >&5
18579echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018580fi
18581test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18582echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18583 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018584{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18585echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018586if test "${lt_cv_prog_gnu_ld+set}" = set; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18588else
Reid Spencera773bd52006-08-04 18:18:08 +000018589 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018590case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018591*GNU* | *'with BFD'*)
18592 lt_cv_prog_gnu_ld=yes
18593 ;;
18594*)
18595 lt_cv_prog_gnu_ld=no
18596 ;;
18597esac
18598fi
Reid Spencera773bd52006-08-04 18:18:08 +000018599{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18600echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018601with_gnu_ld=$lt_cv_prog_gnu_ld
18602
18603
18604
18605 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18606 # archiving commands below assume that GNU ld is being used.
18607 if test "$with_gnu_ld" = yes; then
18608 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18609 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'
18610
18611 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18612 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18613
18614 # If archive_cmds runs LD, not CC, wlarc should be empty
18615 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18616 # investigate it a little bit more. (MM)
18617 wlarc='${wl}'
18618
18619 # ancient GNU ld didn't support --whole-archive et. al.
18620 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18621 grep 'no-whole-archive' > /dev/null; then
18622 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18623 else
18624 whole_archive_flag_spec_CXX=
18625 fi
18626 else
18627 with_gnu_ld=no
18628 wlarc=
18629
18630 # A generic and very simple default shared library creation
18631 # command for GNU C++ for the case where it uses the native
18632 # linker, instead of GNU ld. If possible, this setting should
18633 # overridden to take advantage of the native linker features on
18634 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018635 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018636 fi
18637
18638 # Commands to make compiler produce verbose output that lists
18639 # what "hidden" libraries, object files and flags are used when
18640 # linking a shared library.
18641 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18642
18643else
18644 GXX=no
18645 with_gnu_ld=no
18646 wlarc=
18647fi
18648
18649# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018650{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18651echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018652ld_shlibs_CXX=yes
18653case $host_os in
18654 aix3*)
18655 # FIXME: insert proper C++ library support
18656 ld_shlibs_CXX=no
18657 ;;
18658 aix4* | aix5*)
18659 if test "$host_cpu" = ia64; then
18660 # On IA64, the linker does run time linking by default, so we don't
18661 # have to do anything special.
18662 aix_use_runtimelinking=no
18663 exp_sym_flag='-Bexport'
18664 no_entry_flag=""
18665 else
18666 aix_use_runtimelinking=no
18667
18668 # Test if we are trying to use run time linking or normal
18669 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18670 # need to do runtime linking.
18671 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18672 for ld_flag in $LDFLAGS; do
18673 case $ld_flag in
18674 *-brtl*)
18675 aix_use_runtimelinking=yes
18676 break
18677 ;;
18678 esac
18679 done
Reid Spencera773bd52006-08-04 18:18:08 +000018680 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018681 esac
18682
18683 exp_sym_flag='-bexport'
18684 no_entry_flag='-bnoentry'
18685 fi
18686
18687 # When large executables or shared objects are built, AIX ld can
18688 # have problems creating the table of contents. If linking a library
18689 # or program results in "error TOC overflow" add -mminimal-toc to
18690 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18691 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18692
18693 archive_cmds_CXX=''
18694 hardcode_direct_CXX=yes
18695 hardcode_libdir_separator_CXX=':'
18696 link_all_deplibs_CXX=yes
18697
18698 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018699 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018700 # We only want to do this on AIX 4.2 and lower, the check
18701 # below for broken collect2 doesn't work under 4.3+
18702 collect2name=`${CC} -print-prog-name=collect2`
18703 if test -f "$collect2name" && \
18704 strings "$collect2name" | grep resolve_lib_name >/dev/null
18705 then
18706 # We have reworked collect2
18707 hardcode_direct_CXX=yes
18708 else
18709 # We have old collect2
18710 hardcode_direct_CXX=unsupported
18711 # It fails to find uninstalled libraries when the uninstalled
18712 # path is not listed in the libpath. Setting hardcode_minus_L
18713 # to unsupported forces relinking
18714 hardcode_minus_L_CXX=yes
18715 hardcode_libdir_flag_spec_CXX='-L$libdir'
18716 hardcode_libdir_separator_CXX=
18717 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018718 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018719 esac
18720 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018721 if test "$aix_use_runtimelinking" = yes; then
18722 shared_flag="$shared_flag "'${wl}-G'
18723 fi
John Criswell47fdd832003-07-14 16:52:07 +000018724 else
18725 # not using gcc
18726 if test "$host_cpu" = ia64; then
18727 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18728 # chokes on -Wl,-G. The following line is correct:
18729 shared_flag='-G'
18730 else
18731 if test "$aix_use_runtimelinking" = yes; then
18732 shared_flag='${wl}-G'
18733 else
18734 shared_flag='${wl}-bM:SRE'
18735 fi
18736 fi
18737 fi
18738
18739 # It seems that -bexpall does not export symbols beginning with
18740 # underscore (_), so it is better to generate a list of symbols to export.
18741 always_export_symbols_CXX=yes
18742 if test "$aix_use_runtimelinking" = yes; then
18743 # Warning - without using the other runtime loading flags (-brtl),
18744 # -berok will link without error, but may produce a broken library.
18745 allow_undefined_flag_CXX='-berok'
18746 # Determine the default libpath from the value encoded in an empty executable.
18747 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018748/* confdefs.h. */
18749_ACEOF
18750cat confdefs.h >>conftest.$ac_ext
18751cat >>conftest.$ac_ext <<_ACEOF
18752/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018753
John Criswell47fdd832003-07-14 16:52:07 +000018754int
18755main ()
18756{
18757
18758 ;
18759 return 0;
18760}
18761_ACEOF
18762rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018763if { (ac_try="$ac_link"
18764case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18767esac
18768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018770 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018771 grep -v '^ *+' conftest.er1 >conftest.err
18772 rm -f conftest.er1
18773 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018775 (exit $ac_status); } &&
18776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18777 { (case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18780esac
18781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_try") 2>&5
18783 ac_status=$?
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; } &&
18786 { ac_try='test -s conftest$ac_exeext'
18787 { (case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18790esac
18791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_try") 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018796
18797aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18798}'`
18799# Check for a 64-bit object if we didn't find anything.
18800if 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; }
18801}'`; fi
18802else
18803 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018804sed 's/^/| /' conftest.$ac_ext >&5
18805
Reid Spencera773bd52006-08-04 18:18:08 +000018806
John Criswell47fdd832003-07-14 16:52:07 +000018807fi
Reid Spencera773bd52006-08-04 18:18:08 +000018808
Bill Wendlingebcceee2009-04-18 11:20:33 +000018809rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018810 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018811if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18812
18813 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18814
Reid Spencera773bd52006-08-04 18:18:08 +000018815 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 +000018816 else
18817 if test "$host_cpu" = ia64; then
18818 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18819 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018820 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 +000018821 else
18822 # Determine the default libpath from the value encoded in an empty executable.
18823 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018824/* confdefs.h. */
18825_ACEOF
18826cat confdefs.h >>conftest.$ac_ext
18827cat >>conftest.$ac_ext <<_ACEOF
18828/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018829
John Criswell47fdd832003-07-14 16:52:07 +000018830int
18831main ()
18832{
18833
18834 ;
18835 return 0;
18836}
18837_ACEOF
18838rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018839if { (ac_try="$ac_link"
18840case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18843esac
18844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018846 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018847 grep -v '^ *+' conftest.er1 >conftest.err
18848 rm -f conftest.er1
18849 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018851 (exit $ac_status); } &&
18852 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18853 { (case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18856esac
18857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_try") 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; } &&
18862 { ac_try='test -s conftest$ac_exeext'
18863 { (case "(($ac_try" in
18864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18866esac
18867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868 (eval "$ac_try") 2>&5
18869 ac_status=$?
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018872
18873aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18874}'`
18875# Check for a 64-bit object if we didn't find anything.
18876if 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; }
18877}'`; fi
18878else
18879 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018880sed 's/^/| /' conftest.$ac_ext >&5
18881
Reid Spencera773bd52006-08-04 18:18:08 +000018882
John Criswell47fdd832003-07-14 16:52:07 +000018883fi
Reid Spencera773bd52006-08-04 18:18:08 +000018884
Bill Wendlingebcceee2009-04-18 11:20:33 +000018885rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018886 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018887if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18888
18889 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18890 # Warning - without using the other run time loading flags,
18891 # -berok will link without error, but may produce a broken library.
18892 no_undefined_flag_CXX=' ${wl}-bernotok'
18893 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018894 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018895 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018896 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018897 # This is similar to how AIX traditionally builds its shared libraries.
18898 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 +000018899 fi
18900 fi
18901 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018902
18903 beos*)
18904 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18905 allow_undefined_flag_CXX=unsupported
18906 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18907 # support --undefined. This deserves some investigation. FIXME
18908 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18909 else
18910 ld_shlibs_CXX=no
18911 fi
18912 ;;
18913
John Criswell47fdd832003-07-14 16:52:07 +000018914 chorus*)
18915 case $cc_basename in
18916 *)
18917 # FIXME: insert proper C++ library support
18918 ld_shlibs_CXX=no
18919 ;;
18920 esac
18921 ;;
18922
18923 cygwin* | mingw* | pw32*)
18924 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18925 # as there is no search path for DLLs.
18926 hardcode_libdir_flag_spec_CXX='-L$libdir'
18927 allow_undefined_flag_CXX=unsupported
18928 always_export_symbols_CXX=no
18929 enable_shared_with_static_runtimes_CXX=yes
18930
18931 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018932 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 +000018933 # If the export-symbols file already is a .def file (1st line
18934 # is EXPORTS), use it as is; otherwise, prepend...
18935 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18936 cp $export_symbols $output_objdir/$soname.def;
18937 else
18938 echo EXPORTS > $output_objdir/$soname.def;
18939 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018940 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018941 $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 +000018942 else
18943 ld_shlibs_CXX=no
18944 fi
18945 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018946 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018947 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018948 rhapsody* | darwin1.[012])
18949 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18950 ;;
18951 *) # Darwin 1.3 on
18952 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18953 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18954 else
18955 case ${MACOSX_DEPLOYMENT_TARGET} in
18956 10.[012])
18957 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18958 ;;
18959 10.*)
18960 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18961 ;;
18962 esac
18963 fi
18964 ;;
18965 esac
18966 archive_cmds_need_lc_CXX=no
18967 hardcode_direct_CXX=no
18968 hardcode_automatic_CXX=yes
18969 hardcode_shlibpath_var_CXX=unsupported
18970 whole_archive_flag_spec_CXX=''
18971 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018972
Reid Spencer2706f8c2004-09-19 23:53:36 +000018973 if test "$GXX" = yes ; then
18974 lt_int_apple_cc_single_mod=no
18975 output_verbose_link_cmd='echo'
18976 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18977 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018978 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018979 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018980 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 +000018981 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018982 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 +000018983 fi
18984 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018985 # 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 +000018986 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018987 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 +000018988 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018989 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 +000018990 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018991 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 +000018992 else
Reid Spencera773bd52006-08-04 18:18:08 +000018993 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018994 xlc*)
18995 output_verbose_link_cmd='echo'
18996 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'
18997 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018998 # 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 +000018999 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}'
19000 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 +000019001 ;;
19002 *)
19003 ld_shlibs_CXX=no
19004 ;;
19005 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000019006 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019007 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019008
19009 dgux*)
19010 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019011 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019012 # FIXME: insert proper C++ library support
19013 ld_shlibs_CXX=no
19014 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019015 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019016 # Green Hills C++ Compiler
19017 # FIXME: insert proper C++ library support
19018 ld_shlibs_CXX=no
19019 ;;
19020 *)
19021 # FIXME: insert proper C++ library support
19022 ld_shlibs_CXX=no
19023 ;;
19024 esac
19025 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019026 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000019027 # C++ shared libraries reported to be fairly broken before switch to ELF
19028 ld_shlibs_CXX=no
19029 ;;
19030 freebsd-elf*)
19031 archive_cmds_need_lc_CXX=no
19032 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019033 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019034 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19035 # conventions
19036 ld_shlibs_CXX=yes
19037 ;;
19038 gnu*)
19039 ;;
19040 hpux9*)
19041 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19042 hardcode_libdir_separator_CXX=:
19043 export_dynamic_flag_spec_CXX='${wl}-E'
19044 hardcode_direct_CXX=yes
19045 hardcode_minus_L_CXX=yes # Not in the search PATH,
19046 # but as the default
19047 # location of the library.
19048
19049 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019050 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019051 # FIXME: insert proper C++ library support
19052 ld_shlibs_CXX=no
19053 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019054 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019055 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 +000019056 # Commands to make compiler produce verbose output that lists
19057 # what "hidden" libraries, object files and flags are used when
19058 # linking a shared library.
19059 #
19060 # There doesn't appear to be a way to prevent this compiler from
19061 # explicitly linking system object files so we need to strip them
19062 # from the output so that they don't get included in the library
19063 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019064 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 +000019065 ;;
19066 *)
19067 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019068 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 +000019069 else
19070 # FIXME: insert proper C++ library support
19071 ld_shlibs_CXX=no
19072 fi
19073 ;;
19074 esac
19075 ;;
19076 hpux10*|hpux11*)
19077 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019078 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19079 hardcode_libdir_separator_CXX=:
19080
19081 case $host_cpu in
19082 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019083 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019084 ;;
19085 *)
John Criswell47fdd832003-07-14 16:52:07 +000019086 export_dynamic_flag_spec_CXX='${wl}-E'
19087 ;;
19088 esac
19089 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019090 case $host_cpu in
19091 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019092 hardcode_direct_CXX=no
19093 hardcode_shlibpath_var_CXX=no
19094 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019095 *)
19096 hardcode_direct_CXX=yes
19097 hardcode_minus_L_CXX=yes # Not in the search PATH,
19098 # but as the default
19099 # location of the library.
19100 ;;
19101 esac
19102
19103 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019104 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019105 # FIXME: insert proper C++ library support
19106 ld_shlibs_CXX=no
19107 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019108 aCC*)
19109 case $host_cpu in
19110 hppa*64*)
19111 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19112 ;;
19113 ia64*)
19114 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 +000019115 ;;
19116 *)
19117 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19118 ;;
19119 esac
19120 # Commands to make compiler produce verbose output that lists
19121 # what "hidden" libraries, object files and flags are used when
19122 # linking a shared library.
19123 #
19124 # There doesn't appear to be a way to prevent this compiler from
19125 # explicitly linking system object files so we need to strip them
19126 # from the output so that they don't get included in the library
19127 # dependencies.
19128 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'
19129 ;;
19130 *)
19131 if test "$GXX" = yes; then
19132 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019133 case $host_cpu in
19134 hppa*64*)
19135 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19136 ;;
19137 ia64*)
19138 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 +000019139 ;;
19140 *)
19141 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'
19142 ;;
19143 esac
19144 fi
19145 else
19146 # FIXME: insert proper C++ library support
19147 ld_shlibs_CXX=no
19148 fi
19149 ;;
19150 esac
19151 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019152 interix3*)
19153 hardcode_direct_CXX=no
19154 hardcode_shlibpath_var_CXX=no
19155 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19156 export_dynamic_flag_spec_CXX='${wl}-E'
19157 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19158 # Instead, shared libraries are loaded at an image base (0x10000000 by
19159 # default) and relocated if they conflict, which is a slow very memory
19160 # consuming and fragmenting process. To avoid this, we pick a random,
19161 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19162 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19163 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'
19164 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'
19165 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019166 irix5* | irix6*)
19167 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019168 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019169 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019170 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 +000019171
19172 # Archives containing C++ object files must be created using
19173 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19174 # necessary to make sure instantiated templates are included
19175 # in the archive.
19176 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19177 ;;
19178 *)
19179 if test "$GXX" = yes; then
19180 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019181 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 +000019182 else
19183 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'
19184 fi
19185 fi
19186 link_all_deplibs_CXX=yes
19187 ;;
19188 esac
19189 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19190 hardcode_libdir_separator_CXX=:
19191 ;;
19192 linux*)
19193 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019194 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019195 # Kuck and Associates, Inc. (KAI) C++ Compiler
19196
19197 # KCC will only create a shared library if the output file
19198 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19199 # to its proper name (with version) after linking.
19200 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'
19201 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'
19202 # Commands to make compiler produce verbose output that lists
19203 # what "hidden" libraries, object files and flags are used when
19204 # linking a shared library.
19205 #
19206 # There doesn't appear to be a way to prevent this compiler from
19207 # explicitly linking system object files so we need to strip them
19208 # from the output so that they don't get included in the library
19209 # dependencies.
19210 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'
19211
19212 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19213 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19214
19215 # Archives containing C++ object files must be created using
19216 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19217 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19218 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019219 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019220 # Intel C++
19221 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019222 # version 8.0 and above of icpc choke on multiply defined symbols
19223 # if we add $predep_objects and $postdep_objects, however 7.1 and
19224 # earlier do not add the objects themselves.
19225 case `$CC -V 2>&1` in
19226 *"Version 7."*)
19227 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19228 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'
19229 ;;
19230 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019231 tmp_idyn=
19232 case $host_cpu in
19233 ia64*) tmp_idyn=' -i_dynamic';;
19234 esac
19235 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19236 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 +000019237 ;;
19238 esac
John Criswell47fdd832003-07-14 16:52:07 +000019239 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019240 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19241 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19242 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19243 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019244 pgCC*)
19245 # Portland Group C++ compiler
19246 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19247 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'
19248
19249 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19250 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19251 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'
19252 ;;
19253 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019254 # Compaq C++
19255 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19256 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'
19257
19258 runpath_var=LD_RUN_PATH
19259 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19260 hardcode_libdir_separator_CXX=:
19261
19262 # Commands to make compiler produce verbose output that lists
19263 # what "hidden" libraries, object files and flags are used when
19264 # linking a shared library.
19265 #
19266 # There doesn't appear to be a way to prevent this compiler from
19267 # explicitly linking system object files so we need to strip them
19268 # from the output so that they don't get included in the library
19269 # dependencies.
19270 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'
19271 ;;
19272 esac
19273 ;;
19274 lynxos*)
19275 # FIXME: insert proper C++ library support
19276 ld_shlibs_CXX=no
19277 ;;
19278 m88k*)
19279 # FIXME: insert proper C++ library support
19280 ld_shlibs_CXX=no
19281 ;;
19282 mvs*)
19283 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019284 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019285 # FIXME: insert proper C++ library support
19286 ld_shlibs_CXX=no
19287 ;;
19288 *)
19289 # FIXME: insert proper C++ library support
19290 ld_shlibs_CXX=no
19291 ;;
19292 esac
19293 ;;
19294 netbsd*)
19295 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19296 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19297 wlarc=
19298 hardcode_libdir_flag_spec_CXX='-R$libdir'
19299 hardcode_direct_CXX=yes
19300 hardcode_shlibpath_var_CXX=no
19301 fi
19302 # Workaround some broken pre-1.5 toolchains
19303 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19304 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019305 openbsd2*)
19306 # C++ shared libraries are fairly broken
19307 ld_shlibs_CXX=no
19308 ;;
19309 openbsd*)
19310 hardcode_direct_CXX=yes
19311 hardcode_shlibpath_var_CXX=no
19312 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19313 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19314 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19315 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19316 export_dynamic_flag_spec_CXX='${wl}-E'
19317 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19318 fi
19319 output_verbose_link_cmd='echo'
19320 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019321 osf3*)
19322 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019323 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019324 # Kuck and Associates, Inc. (KAI) C++ Compiler
19325
19326 # KCC will only create a shared library if the output file
19327 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19328 # to its proper name (with version) after linking.
19329 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'
19330
19331 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19332 hardcode_libdir_separator_CXX=:
19333
19334 # Archives containing C++ object files must be created using
19335 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19336 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19337
19338 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019339 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019340 # Rational C++ 2.4.1
19341 # FIXME: insert proper C++ library support
19342 ld_shlibs_CXX=no
19343 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019344 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019345 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019346 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 +000019347
19348 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19349 hardcode_libdir_separator_CXX=:
19350
19351 # Commands to make compiler produce verbose output that lists
19352 # what "hidden" libraries, object files and flags are used when
19353 # linking a shared library.
19354 #
19355 # There doesn't appear to be a way to prevent this compiler from
19356 # explicitly linking system object files so we need to strip them
19357 # from the output so that they don't get included in the library
19358 # dependencies.
19359 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'
19360 ;;
19361 *)
19362 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19363 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019364 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 +000019365
19366 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19367 hardcode_libdir_separator_CXX=:
19368
19369 # Commands to make compiler produce verbose output that lists
19370 # what "hidden" libraries, object files and flags are used when
19371 # linking a shared library.
19372 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19373
19374 else
19375 # FIXME: insert proper C++ library support
19376 ld_shlibs_CXX=no
19377 fi
19378 ;;
19379 esac
19380 ;;
19381 osf4* | osf5*)
19382 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019383 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019384 # Kuck and Associates, Inc. (KAI) C++ Compiler
19385
19386 # KCC will only create a shared library if the output file
19387 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19388 # to its proper name (with version) after linking.
19389 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'
19390
19391 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19392 hardcode_libdir_separator_CXX=:
19393
19394 # Archives containing C++ object files must be created using
19395 # the KAI C++ compiler.
19396 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19397 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019398 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019399 # Rational C++ 2.4.1
19400 # FIXME: insert proper C++ library support
19401 ld_shlibs_CXX=no
19402 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019403 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019404 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019405 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 +000019406 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19407 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019408 $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 +000019409 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019410
19411 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19412 hardcode_libdir_separator_CXX=:
19413
19414 # Commands to make compiler produce verbose output that lists
19415 # what "hidden" libraries, object files and flags are used when
19416 # linking a shared library.
19417 #
19418 # There doesn't appear to be a way to prevent this compiler from
19419 # explicitly linking system object files so we need to strip them
19420 # from the output so that they don't get included in the library
19421 # dependencies.
19422 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'
19423 ;;
19424 *)
19425 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19426 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019427 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 +000019428
19429 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19430 hardcode_libdir_separator_CXX=:
19431
19432 # Commands to make compiler produce verbose output that lists
19433 # what "hidden" libraries, object files and flags are used when
19434 # linking a shared library.
19435 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19436
19437 else
19438 # FIXME: insert proper C++ library support
19439 ld_shlibs_CXX=no
19440 fi
19441 ;;
19442 esac
19443 ;;
19444 psos*)
19445 # FIXME: insert proper C++ library support
19446 ld_shlibs_CXX=no
19447 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019448 sunos4*)
19449 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019450 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019451 # Sun C++ 4.x
19452 # FIXME: insert proper C++ library support
19453 ld_shlibs_CXX=no
19454 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019455 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019456 # Lucid
19457 # FIXME: insert proper C++ library support
19458 ld_shlibs_CXX=no
19459 ;;
19460 *)
19461 # FIXME: insert proper C++ library support
19462 ld_shlibs_CXX=no
19463 ;;
19464 esac
19465 ;;
19466 solaris*)
19467 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019468 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019469 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019470 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019471 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019472 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 +000019473 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 +000019474 $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 +000019475
19476 hardcode_libdir_flag_spec_CXX='-R$libdir'
19477 hardcode_shlibpath_var_CXX=no
19478 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019479 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019480 *)
19481 # The C++ compiler is used as linker so we must use $wl
19482 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019483 # linker. We must also pass each convience library through
19484 # to the system linker between allextract/defaultextract.
19485 # The C++ compiler will combine linker options so we
19486 # cannot just pass the convience library names through
19487 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019488 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019489 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 +000019490 ;;
19491 esac
19492 link_all_deplibs_CXX=yes
19493
Reid Spencera773bd52006-08-04 18:18:08 +000019494 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019495
19496 # Archives containing C++ object files must be created using
19497 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19498 # necessary to make sure instantiated templates are included
19499 # in the archive.
19500 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19501 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019502 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019503 # Green Hills C++ Compiler
19504 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19505
19506 # The C++ compiler must be used to create the archive.
19507 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19508 ;;
19509 *)
19510 # GNU C++ compiler with Solaris linker
19511 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19512 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19513 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019514 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 +000019515 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19516 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19517
John Criswell47fdd832003-07-14 16:52:07 +000019518 # Commands to make compiler produce verbose output that lists
19519 # what "hidden" libraries, object files and flags are used when
19520 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019521 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019522 else
19523 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19524 # platform.
19525 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 +000019526 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19527 $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 +000019528
19529 # Commands to make compiler produce verbose output that lists
19530 # what "hidden" libraries, object files and flags are used when
19531 # linking a shared library.
19532 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19533 fi
19534
19535 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19536 fi
19537 ;;
19538 esac
19539 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019540 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19541 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019542 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019543 hardcode_shlibpath_var_CXX=no
19544 runpath_var='LD_RUN_PATH'
19545
19546 case $cc_basename in
19547 CC*)
19548 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19549 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19550 ;;
19551 *)
19552 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19553 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19554 ;;
19555 esac
19556 ;;
19557 sysv5* | sco3.2v5* | sco5v6*)
19558 # Note: We can NOT use -z defs as we might desire, because we do not
19559 # link with -lc, and that would cause any symbols used from libc to
19560 # always be unresolved, which means just about no library would
19561 # ever link correctly. If we're not using GNU ld we use -z text
19562 # though, which does catch some bad symbols but isn't as heavy-handed
19563 # as -z defs.
19564 # For security reasons, it is highly recommended that you always
19565 # use absolute paths for naming shared libraries, and exclude the
19566 # DT_RUNPATH tag from executables and libraries. But doing so
19567 # requires that you compile everything twice, which is a pain.
19568 # So that behaviour is only enabled if SCOABSPATH is set to a
19569 # non-empty value in the environment. Most likely only useful for
19570 # creating official distributions of packages.
19571 # This is a hack until libtool officially supports absolute path
19572 # names for shared libraries.
19573 no_undefined_flag_CXX='${wl}-z,text'
19574 allow_undefined_flag_CXX='${wl}-z,nodefs'
19575 archive_cmds_need_lc_CXX=no
19576 hardcode_shlibpath_var_CXX=no
19577 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19578 hardcode_libdir_separator_CXX=':'
19579 link_all_deplibs_CXX=yes
19580 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19581 runpath_var='LD_RUN_PATH'
19582
19583 case $cc_basename in
19584 CC*)
19585 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19586 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19587 ;;
19588 *)
19589 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19590 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19591 ;;
19592 esac
John Criswell47fdd832003-07-14 16:52:07 +000019593 ;;
19594 tandem*)
19595 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019596 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019597 # NonStop-UX NCC 3.20
19598 # FIXME: insert proper C++ library support
19599 ld_shlibs_CXX=no
19600 ;;
19601 *)
19602 # FIXME: insert proper C++ library support
19603 ld_shlibs_CXX=no
19604 ;;
19605 esac
19606 ;;
19607 vxworks*)
19608 # FIXME: insert proper C++ library support
19609 ld_shlibs_CXX=no
19610 ;;
19611 *)
19612 # FIXME: insert proper C++ library support
19613 ld_shlibs_CXX=no
19614 ;;
19615esac
Reid Spencera773bd52006-08-04 18:18:08 +000019616{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19617echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019618test "$ld_shlibs_CXX" = no && can_build_shared=no
19619
19620GCC_CXX="$GXX"
19621LD_CXX="$LD"
19622
John Criswell47fdd832003-07-14 16:52:07 +000019623
19624cat > conftest.$ac_ext <<EOF
19625class Foo
19626{
19627public:
19628 Foo (void) { a = 0; }
19629private:
19630 int a;
19631};
19632EOF
19633
19634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19635 (eval $ac_compile) 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; then
19639 # Parse the compiler output and extract the necessary
19640 # objects, libraries and library flags.
19641
19642 # Sentinel used to keep track of whether or not we are before
19643 # the conftest object file.
19644 pre_test_object_deps_done=no
19645
19646 # The `*' in the case matches for architectures that use `case' in
19647 # $output_verbose_cmd can trigger glob expansion during the loop
19648 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019649 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019650
19651 for p in `eval $output_verbose_link_cmd`; do
19652 case $p in
19653
19654 -L* | -R* | -l*)
19655 # Some compilers place space between "-{L,R}" and the path.
19656 # Remove the space.
19657 if test $p = "-L" \
19658 || test $p = "-R"; then
19659 prev=$p
19660 continue
19661 else
19662 prev=
19663 fi
19664
19665 if test "$pre_test_object_deps_done" = no; then
19666 case $p in
19667 -L* | -R*)
19668 # Internal compiler library paths should come after those
19669 # provided the user. The postdeps already come after the
19670 # user supplied libs so there is no need to process them.
19671 if test -z "$compiler_lib_search_path_CXX"; then
19672 compiler_lib_search_path_CXX="${prev}${p}"
19673 else
19674 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19675 fi
19676 ;;
19677 # The "-l" case would never come before the object being
19678 # linked, so don't bother handling this case.
19679 esac
19680 else
19681 if test -z "$postdeps_CXX"; then
19682 postdeps_CXX="${prev}${p}"
19683 else
19684 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19685 fi
19686 fi
19687 ;;
19688
19689 *.$objext)
19690 # This assumes that the test object file only shows up
19691 # once in the compiler output.
19692 if test "$p" = "conftest.$objext"; then
19693 pre_test_object_deps_done=yes
19694 continue
19695 fi
19696
19697 if test "$pre_test_object_deps_done" = no; then
19698 if test -z "$predep_objects_CXX"; then
19699 predep_objects_CXX="$p"
19700 else
19701 predep_objects_CXX="$predep_objects_CXX $p"
19702 fi
19703 else
19704 if test -z "$postdep_objects_CXX"; then
19705 postdep_objects_CXX="$p"
19706 else
19707 postdep_objects_CXX="$postdep_objects_CXX $p"
19708 fi
19709 fi
19710 ;;
19711
19712 *) ;; # Ignore the rest.
19713
19714 esac
19715 done
19716
19717 # Clean up.
19718 rm -f a.out a.exe
19719else
19720 echo "libtool.m4: error: problem compiling CXX test program"
19721fi
19722
19723$rm -f confest.$objext
19724
Reid Spencera773bd52006-08-04 18:18:08 +000019725# PORTME: override above test on systems where it is broken
19726case $host_os in
19727interix3*)
19728 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19729 # hack all around it, let's just trust "g++" to DTRT.
19730 predep_objects_CXX=
19731 postdep_objects_CXX=
19732 postdeps_CXX=
19733 ;;
19734
19735solaris*)
19736 case $cc_basename in
19737 CC*)
19738 # Adding this requires a known-good setup of shared libraries for
19739 # Sun compiler versions before 5.6, else PIC objects from an old
19740 # archive will be linked into the output, leading to subtle bugs.
19741 postdeps_CXX='-lCstd -lCrun'
19742 ;;
19743 esac
19744 ;;
19745esac
19746
19747
John Criswell47fdd832003-07-14 16:52:07 +000019748case " $postdeps_CXX " in
19749*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19750esac
19751
19752lt_prog_compiler_wl_CXX=
19753lt_prog_compiler_pic_CXX=
19754lt_prog_compiler_static_CXX=
19755
Reid Spencera773bd52006-08-04 18:18:08 +000019756{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19757echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019758
19759 # C++ specific cases for pic, static, wl, etc.
19760 if test "$GXX" = yes; then
19761 lt_prog_compiler_wl_CXX='-Wl,'
19762 lt_prog_compiler_static_CXX='-static'
19763
19764 case $host_os in
19765 aix*)
19766 # All AIX code is PIC.
19767 if test "$host_cpu" = ia64; then
19768 # AIX 5 now supports IA64 processor
19769 lt_prog_compiler_static_CXX='-Bstatic'
19770 fi
19771 ;;
19772 amigaos*)
19773 # FIXME: we need at least 68020 code to build shared libraries, but
19774 # adding the `-m68020' flag to GCC prevents building anything better,
19775 # like `-m68040'.
19776 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19777 ;;
19778 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19779 # PIC is the default for these OSes.
19780 ;;
19781 mingw* | os2* | pw32*)
19782 # This hack is so that the source file can tell whether it is being
19783 # built for inclusion in a dll (and should export symbols for example).
19784 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19785 ;;
19786 darwin* | rhapsody*)
19787 # PIC is the default on this platform
19788 # Common symbols not allowed in MH_DYLIB files
19789 lt_prog_compiler_pic_CXX='-fno-common'
19790 ;;
19791 *djgpp*)
19792 # DJGPP does not support shared libraries at all
19793 lt_prog_compiler_pic_CXX=
19794 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019795 interix3*)
19796 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19797 # Instead, we relocate shared libraries at runtime.
19798 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019799 sysv4*MP*)
19800 if test -d /usr/nec; then
19801 lt_prog_compiler_pic_CXX=-Kconform_pic
19802 fi
19803 ;;
19804 hpux*)
19805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19806 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019807 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019808 hppa*64*|ia64*)
19809 ;;
19810 *)
19811 lt_prog_compiler_pic_CXX='-fPIC'
19812 ;;
19813 esac
19814 ;;
19815 *)
19816 lt_prog_compiler_pic_CXX='-fPIC'
19817 ;;
19818 esac
19819 else
19820 case $host_os in
19821 aix4* | aix5*)
19822 # All AIX code is PIC.
19823 if test "$host_cpu" = ia64; then
19824 # AIX 5 now supports IA64 processor
19825 lt_prog_compiler_static_CXX='-Bstatic'
19826 else
19827 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19828 fi
19829 ;;
19830 chorus*)
19831 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019832 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019833 # Green Hills C++ Compiler
19834 # _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"
19835 ;;
19836 esac
19837 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019838 darwin*)
19839 # PIC is the default on this platform
19840 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019841 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019842 xlc*)
19843 lt_prog_compiler_pic_CXX='-qnocommon'
19844 lt_prog_compiler_wl_CXX='-Wl,'
19845 ;;
19846 esac
19847 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019848 dgux*)
19849 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019850 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019851 lt_prog_compiler_pic_CXX='-KPIC'
19852 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019853 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019854 # Green Hills C++ Compiler
19855 lt_prog_compiler_pic_CXX='-pic'
19856 ;;
19857 *)
19858 ;;
19859 esac
19860 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019861 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019862 # FreeBSD uses GNU C++
19863 ;;
19864 hpux9* | hpux10* | hpux11*)
19865 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019866 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019867 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019868 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019869 if test "$host_cpu" != ia64; then
19870 lt_prog_compiler_pic_CXX='+Z'
19871 fi
19872 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019873 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019874 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019875 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19876 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019877 hppa*64*|ia64*)
19878 # +Z the default
19879 ;;
19880 *)
19881 lt_prog_compiler_pic_CXX='+Z'
19882 ;;
19883 esac
19884 ;;
19885 *)
19886 ;;
19887 esac
19888 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019889 interix*)
19890 # This is c89, which is MS Visual C++ (no shared libs)
19891 # Anyone wants to do a port?
19892 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019893 irix5* | irix6* | nonstopux*)
19894 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019895 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019896 lt_prog_compiler_wl_CXX='-Wl,'
19897 lt_prog_compiler_static_CXX='-non_shared'
19898 # CC pic flag -KPIC is the default.
19899 ;;
19900 *)
19901 ;;
19902 esac
19903 ;;
19904 linux*)
19905 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019906 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019907 # KAI C++ Compiler
19908 lt_prog_compiler_wl_CXX='--backend -Wl,'
19909 lt_prog_compiler_pic_CXX='-fPIC'
19910 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019911 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019912 # Intel C++
19913 lt_prog_compiler_wl_CXX='-Wl,'
19914 lt_prog_compiler_pic_CXX='-KPIC'
19915 lt_prog_compiler_static_CXX='-static'
19916 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019917 pgCC*)
19918 # Portland Group C++ compiler.
19919 lt_prog_compiler_wl_CXX='-Wl,'
19920 lt_prog_compiler_pic_CXX='-fpic'
19921 lt_prog_compiler_static_CXX='-Bstatic'
19922 ;;
19923 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019924 # Compaq C++
19925 # Make sure the PIC flag is empty. It appears that all Alpha
19926 # Linux and Compaq Tru64 Unix objects are PIC.
19927 lt_prog_compiler_pic_CXX=
19928 lt_prog_compiler_static_CXX='-non_shared'
19929 ;;
19930 *)
19931 ;;
19932 esac
19933 ;;
19934 lynxos*)
19935 ;;
19936 m88k*)
19937 ;;
19938 mvs*)
19939 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019940 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019941 lt_prog_compiler_pic_CXX='-W c,exportall'
19942 ;;
19943 *)
19944 ;;
19945 esac
19946 ;;
19947 netbsd*)
19948 ;;
19949 osf3* | osf4* | osf5*)
19950 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019951 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019952 lt_prog_compiler_wl_CXX='--backend -Wl,'
19953 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019954 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019955 # Rational C++ 2.4.1
19956 lt_prog_compiler_pic_CXX='-pic'
19957 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019958 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019959 # Digital/Compaq C++
19960 lt_prog_compiler_wl_CXX='-Wl,'
19961 # Make sure the PIC flag is empty. It appears that all Alpha
19962 # Linux and Compaq Tru64 Unix objects are PIC.
19963 lt_prog_compiler_pic_CXX=
19964 lt_prog_compiler_static_CXX='-non_shared'
19965 ;;
19966 *)
19967 ;;
19968 esac
19969 ;;
19970 psos*)
19971 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019972 solaris*)
19973 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019974 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019975 # Sun C++ 4.2, 5.x and Centerline C++
19976 lt_prog_compiler_pic_CXX='-KPIC'
19977 lt_prog_compiler_static_CXX='-Bstatic'
19978 lt_prog_compiler_wl_CXX='-Qoption ld '
19979 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019980 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019981 # Green Hills C++ Compiler
19982 lt_prog_compiler_pic_CXX='-PIC'
19983 ;;
19984 *)
19985 ;;
19986 esac
19987 ;;
19988 sunos4*)
19989 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019990 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019991 # Sun C++ 4.x
19992 lt_prog_compiler_pic_CXX='-pic'
19993 lt_prog_compiler_static_CXX='-Bstatic'
19994 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019995 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019996 # Lucid
19997 lt_prog_compiler_pic_CXX='-pic'
19998 ;;
19999 *)
20000 ;;
20001 esac
20002 ;;
20003 tandem*)
20004 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020005 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020006 # NonStop-UX NCC 3.20
20007 lt_prog_compiler_pic_CXX='-KPIC'
20008 ;;
20009 *)
20010 ;;
20011 esac
20012 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020013 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20014 case $cc_basename in
20015 CC*)
20016 lt_prog_compiler_wl_CXX='-Wl,'
20017 lt_prog_compiler_pic_CXX='-KPIC'
20018 lt_prog_compiler_static_CXX='-Bstatic'
20019 ;;
20020 esac
John Criswell47fdd832003-07-14 16:52:07 +000020021 ;;
20022 vxworks*)
20023 ;;
20024 *)
20025 lt_prog_compiler_can_build_shared_CXX=no
20026 ;;
20027 esac
20028 fi
20029
Reid Spencera773bd52006-08-04 18:18:08 +000020030{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20031echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020032
20033#
20034# Check to make sure the PIC flag actually works.
20035#
20036if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020037
Reid Spencera773bd52006-08-04 18:18:08 +000020038{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20039echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020040if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20042else
20043 lt_prog_compiler_pic_works_CXX=no
20044 ac_outfile=conftest.$ac_objext
20045 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20046 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20047 # Insert the option either (1) after the last *FLAGS variable, or
20048 # (2) before a word containing "conftest.", or (3) at the end.
20049 # Note that $ac_compile itself does not contain backslashes and begins
20050 # with a dollar sign (not a hyphen), so the echo should work correctly.
20051 # The option is referenced via a variable to avoid confusing sed.
20052 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20055 -e 's:$: $lt_compiler_flag:'`
David Greenef0b9eff2009-07-09 17:16:26 +000020056 (eval echo "\"\$as_me:20056: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020057 (eval "$lt_compile" 2>conftest.err)
20058 ac_status=$?
20059 cat conftest.err >&5
David Greenef0b9eff2009-07-09 17:16:26 +000020060 echo "$as_me:20060: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020061 if (exit $ac_status) && test -s "$ac_outfile"; then
20062 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020063 # So say no if there are warnings other than the usual output.
20064 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20066 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020067 lt_prog_compiler_pic_works_CXX=yes
20068 fi
20069 fi
20070 $rm conftest*
20071
20072fi
Reid Spencera773bd52006-08-04 18:18:08 +000020073{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20074echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020075
20076if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20077 case $lt_prog_compiler_pic_CXX in
20078 "" | " "*) ;;
20079 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20080 esac
20081else
20082 lt_prog_compiler_pic_CXX=
20083 lt_prog_compiler_can_build_shared_CXX=no
20084fi
20085
20086fi
Reid Spencera773bd52006-08-04 18:18:08 +000020087case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020088 # For platforms which do not support PIC, -DPIC is meaningless:
20089 *djgpp*)
20090 lt_prog_compiler_pic_CXX=
20091 ;;
20092 *)
20093 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20094 ;;
20095esac
20096
Reid Spencera773bd52006-08-04 18:18:08 +000020097#
20098# Check to make sure the static flag actually works.
20099#
20100wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20101{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20102echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20103if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20104 echo $ECHO_N "(cached) $ECHO_C" >&6
20105else
20106 lt_prog_compiler_static_works_CXX=no
20107 save_LDFLAGS="$LDFLAGS"
20108 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20109 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20110 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20111 # The linker can only warn and ignore the option if not recognized
20112 # So say no if there are warnings
20113 if test -s conftest.err; then
20114 # Append any errors to the config.log.
20115 cat conftest.err 1>&5
20116 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20118 if diff conftest.exp conftest.er2 >/dev/null; then
20119 lt_prog_compiler_static_works_CXX=yes
20120 fi
20121 else
20122 lt_prog_compiler_static_works_CXX=yes
20123 fi
20124 fi
20125 $rm conftest*
20126 LDFLAGS="$save_LDFLAGS"
20127
20128fi
20129{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20130echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20131
20132if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20133 :
20134else
20135 lt_prog_compiler_static_CXX=
20136fi
20137
20138
20139{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20140echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020141if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20142 echo $ECHO_N "(cached) $ECHO_C" >&6
20143else
20144 lt_cv_prog_compiler_c_o_CXX=no
20145 $rm -r conftest 2>/dev/null
20146 mkdir conftest
20147 cd conftest
20148 mkdir out
20149 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20150
John Criswell47fdd832003-07-14 16:52:07 +000020151 lt_compiler_flag="-o out/conftest2.$ac_objext"
20152 # Insert the option either (1) after the last *FLAGS variable, or
20153 # (2) before a word containing "conftest.", or (3) at the end.
20154 # Note that $ac_compile itself does not contain backslashes and begins
20155 # with a dollar sign (not a hyphen), so the echo should work correctly.
20156 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20159 -e 's:$: $lt_compiler_flag:'`
David Greenef0b9eff2009-07-09 17:16:26 +000020160 (eval echo "\"\$as_me:20160: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020161 (eval "$lt_compile" 2>out/conftest.err)
20162 ac_status=$?
20163 cat out/conftest.err >&5
David Greenef0b9eff2009-07-09 17:16:26 +000020164 echo "$as_me:20164: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020165 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20166 then
20167 # The compiler can only warn and ignore the option if not recognized
20168 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020169 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20170 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20171 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020172 lt_cv_prog_compiler_c_o_CXX=yes
20173 fi
20174 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020175 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020176 $rm conftest*
20177 # SGI C++ compiler will create directory out/ii_files/ for
20178 # template instantiation
20179 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20180 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020181 cd ..
20182 rmdir conftest
20183 $rm conftest*
20184
20185fi
Reid Spencera773bd52006-08-04 18:18:08 +000020186{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20187echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020188
20189
20190hard_links="nottested"
20191if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20192 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020193 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20194echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020195 hard_links=yes
20196 $rm conftest*
20197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20198 touch conftest.a
20199 ln conftest.a conftest.b 2>&5 || hard_links=no
20200 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020201 { echo "$as_me:$LINENO: result: $hard_links" >&5
20202echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020203 if test "$hard_links" = no; then
20204 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20205echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20206 need_locks=warn
20207 fi
20208else
20209 need_locks=no
20210fi
20211
Reid Spencera773bd52006-08-04 18:18:08 +000020212{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20213echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020214
20215 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20216 case $host_os in
20217 aix4* | aix5*)
20218 # If we're using GNU nm, then we don't want the "-C" option.
20219 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20220 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20221 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'
20222 else
20223 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'
20224 fi
20225 ;;
20226 pw32*)
20227 export_symbols_cmds_CXX="$ltdll_cmds"
20228 ;;
20229 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020230 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 +000020231 ;;
20232 *)
20233 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20234 ;;
20235 esac
20236
Reid Spencera773bd52006-08-04 18:18:08 +000020237{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20238echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020239test "$ld_shlibs_CXX" = no && can_build_shared=no
20240
John Criswell47fdd832003-07-14 16:52:07 +000020241#
20242# Do we need to explicitly link libc?
20243#
20244case "x$archive_cmds_need_lc_CXX" in
20245x|xyes)
20246 # Assume -lc should be added
20247 archive_cmds_need_lc_CXX=yes
20248
20249 if test "$enable_shared" = yes && test "$GCC" = yes; then
20250 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020251 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020252 # FIXME: we may have to deal with multi-command sequences.
20253 ;;
20254 '$CC '*)
20255 # Test whether the compiler implicitly links with -lc since on some
20256 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20257 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020258 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20259echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020260 $rm conftest*
20261 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20262
20263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20264 (eval $ac_compile) 2>&5
20265 ac_status=$?
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } 2>conftest.err; then
20268 soname=conftest
20269 lib=conftest
20270 libobjs=conftest.$ac_objext
20271 deplibs=
20272 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020273 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020274 compiler_flags=-v
20275 linker_flags=-v
20276 verstring=
20277 output_objdir=.
20278 libname=conftest
20279 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20280 allow_undefined_flag_CXX=
20281 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20282 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20283 ac_status=$?
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }
20286 then
20287 archive_cmds_need_lc_CXX=no
20288 else
20289 archive_cmds_need_lc_CXX=yes
20290 fi
20291 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20292 else
20293 cat conftest.err 1>&5
20294 fi
20295 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020296 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20297echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020298 ;;
20299 esac
20300 fi
20301 ;;
20302esac
20303
Reid Spencera773bd52006-08-04 18:18:08 +000020304{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20305echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020306library_names_spec=
20307libname_spec='lib$name'
20308soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020309shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020310postinstall_cmds=
20311postuninstall_cmds=
20312finish_cmds=
20313finish_eval=
20314shlibpath_var=
20315shlibpath_overrides_runpath=unknown
20316version_type=none
20317dynamic_linker="$host_os ld.so"
20318sys_lib_dlsearch_path_spec="/lib /usr/lib"
20319if test "$GCC" = yes; then
20320 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20321 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20322 # if the path contains ";" then we assume it to be the separator
20323 # otherwise default to the standard path separator (i.e. ":") - it is
20324 # assumed that no part of a normal pathname contains ";" but that should
20325 # okay in the real world where ";" in dirpaths is itself problematic.
20326 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20327 else
20328 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20329 fi
20330else
20331 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20332fi
20333need_lib_prefix=unknown
20334hardcode_into_libs=no
20335
20336# when you set need_version to no, make sure it does not cause -set_version
20337# flags to be left without arguments
20338need_version=unknown
20339
20340case $host_os in
20341aix3*)
20342 version_type=linux
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20344 shlibpath_var=LIBPATH
20345
20346 # AIX 3 has no versioning support, so we append a major version to the name.
20347 soname_spec='${libname}${release}${shared_ext}$major'
20348 ;;
20349
20350aix4* | aix5*)
20351 version_type=linux
20352 need_lib_prefix=no
20353 need_version=no
20354 hardcode_into_libs=yes
20355 if test "$host_cpu" = ia64; then
20356 # AIX 5 supports IA64
20357 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20358 shlibpath_var=LD_LIBRARY_PATH
20359 else
20360 # With GCC up to 2.95.x, collect2 would create an import file
20361 # for dependence libraries. The import file would start with
20362 # the line `#! .'. This would cause the generated library to
20363 # depend on `.', always an invalid library. This was fixed in
20364 # development snapshots of GCC prior to 3.0.
20365 case $host_os in
20366 aix4 | aix4.[01] | aix4.[01].*)
20367 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20368 echo ' yes '
20369 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20370 :
20371 else
20372 can_build_shared=no
20373 fi
20374 ;;
20375 esac
20376 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20377 # soname into executable. Probably we can add versioning support to
20378 # collect2, so additional links can be useful in future.
20379 if test "$aix_use_runtimelinking" = yes; then
20380 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20381 # instead of lib<name>.a to let people know that these are not
20382 # typical AIX shared libraries.
20383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20384 else
20385 # We preserve .a as extension for shared libraries through AIX4.2
20386 # and later when we are not doing run time linking.
20387 library_names_spec='${libname}${release}.a $libname.a'
20388 soname_spec='${libname}${release}${shared_ext}$major'
20389 fi
20390 shlibpath_var=LIBPATH
20391 fi
20392 ;;
20393
20394amigaos*)
20395 library_names_spec='$libname.ixlibrary $libname.a'
20396 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020397 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 +000020398 ;;
20399
20400beos*)
20401 library_names_spec='${libname}${shared_ext}'
20402 dynamic_linker="$host_os ld.so"
20403 shlibpath_var=LIBRARY_PATH
20404 ;;
20405
Reid Spencer2706f8c2004-09-19 23:53:36 +000020406bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020407 version_type=linux
20408 need_version=no
20409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20410 soname_spec='${libname}${release}${shared_ext}$major'
20411 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20412 shlibpath_var=LD_LIBRARY_PATH
20413 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20414 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20415 # the default ld.so.conf also contains /usr/contrib/lib and
20416 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20417 # libtool to hard-code these into programs
20418 ;;
20419
20420cygwin* | mingw* | pw32*)
20421 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020422 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020423 need_version=no
20424 need_lib_prefix=no
20425
20426 case $GCC,$host_os in
20427 yes,cygwin* | yes,mingw* | yes,pw32*)
20428 library_names_spec='$libname.dll.a'
20429 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020430 postinstall_cmds='base_file=`basename \${file}`~
20431 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20432 dldir=$destdir/`dirname \$dlpath`~
20433 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020434 $install_prog $dir/$dlname \$dldir/$dlname~
20435 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020436 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20437 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020438 $rm \$dlpath'
20439 shlibpath_overrides_runpath=yes
20440
20441 case $host_os in
20442 cygwin*)
20443 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20444 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 +000020445 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020446 ;;
20447 mingw*)
20448 # MinGW DLLs use traditional 'lib' prefix
20449 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20450 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20451 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20452 # It is most probably a Windows format PATH printed by
20453 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20454 # path with ; separators, and with drive letters. We can handle the
20455 # drive letters (cygwin fileutils understands them), so leave them,
20456 # especially as we might pass files found there to a mingw objdump,
20457 # which wouldn't understand a cygwinified path. Ahh.
20458 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20459 else
20460 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20461 fi
20462 ;;
20463 pw32*)
20464 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020465 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 +000020466 ;;
20467 esac
20468 ;;
20469
20470 *)
20471 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20472 ;;
20473 esac
20474 dynamic_linker='Win32 ld.exe'
20475 # FIXME: first we should search . and the directory the executable is in
20476 shlibpath_var=PATH
20477 ;;
20478
20479darwin* | rhapsody*)
20480 dynamic_linker="$host_os dyld"
20481 version_type=darwin
20482 need_lib_prefix=no
20483 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020484 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020485 soname_spec='${libname}${release}${major}$shared_ext'
20486 shlibpath_overrides_runpath=yes
20487 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020488 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020489 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020490 if test "$GCC" = yes; then
20491 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"`
20492 else
20493 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020494 fi
20495 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20496 ;;
20497
20498dgux*)
20499 version_type=linux
20500 need_lib_prefix=no
20501 need_version=no
20502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20503 soname_spec='${libname}${release}${shared_ext}$major'
20504 shlibpath_var=LD_LIBRARY_PATH
20505 ;;
20506
20507freebsd1*)
20508 dynamic_linker=no
20509 ;;
20510
Reid Spencer2706f8c2004-09-19 23:53:36 +000020511kfreebsd*-gnu)
20512 version_type=linux
20513 need_lib_prefix=no
20514 need_version=no
20515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20516 soname_spec='${libname}${release}${shared_ext}$major'
20517 shlibpath_var=LD_LIBRARY_PATH
20518 shlibpath_overrides_runpath=no
20519 hardcode_into_libs=yes
20520 dynamic_linker='GNU ld.so'
20521 ;;
20522
Reid Spencera773bd52006-08-04 18:18:08 +000020523freebsd* | dragonfly*)
20524 # DragonFly does not have aout. When/if they implement a new
20525 # versioning mechanism, adjust this.
20526 if test -x /usr/bin/objformat; then
20527 objformat=`/usr/bin/objformat`
20528 else
20529 case $host_os in
20530 freebsd[123]*) objformat=aout ;;
20531 *) objformat=elf ;;
20532 esac
20533 fi
John Criswell47fdd832003-07-14 16:52:07 +000020534 version_type=freebsd-$objformat
20535 case $version_type in
20536 freebsd-elf*)
20537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20538 need_version=no
20539 need_lib_prefix=no
20540 ;;
20541 freebsd-*)
20542 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20543 need_version=yes
20544 ;;
20545 esac
20546 shlibpath_var=LD_LIBRARY_PATH
20547 case $host_os in
20548 freebsd2*)
20549 shlibpath_overrides_runpath=yes
20550 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020551 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020552 shlibpath_overrides_runpath=yes
20553 hardcode_into_libs=yes
20554 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020555 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20556 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020557 shlibpath_overrides_runpath=no
20558 hardcode_into_libs=yes
20559 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020560 freebsd*) # from 4.6 on
20561 shlibpath_overrides_runpath=yes
20562 hardcode_into_libs=yes
20563 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020564 esac
20565 ;;
20566
20567gnu*)
20568 version_type=linux
20569 need_lib_prefix=no
20570 need_version=no
20571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20572 soname_spec='${libname}${release}${shared_ext}$major'
20573 shlibpath_var=LD_LIBRARY_PATH
20574 hardcode_into_libs=yes
20575 ;;
20576
20577hpux9* | hpux10* | hpux11*)
20578 # Give a soname corresponding to the major version so that dld.sl refuses to
20579 # link against other versions.
20580 version_type=sunos
20581 need_lib_prefix=no
20582 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020583 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020584 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020585 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020586 hardcode_into_libs=yes
20587 dynamic_linker="$host_os dld.so"
20588 shlibpath_var=LD_LIBRARY_PATH
20589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20591 soname_spec='${libname}${release}${shared_ext}$major'
20592 if test "X$HPUX_IA64_MODE" = X32; then
20593 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20594 else
20595 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20596 fi
20597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20598 ;;
20599 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020600 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020601 hardcode_into_libs=yes
20602 dynamic_linker="$host_os dld.sl"
20603 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20606 soname_spec='${libname}${release}${shared_ext}$major'
20607 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20609 ;;
20610 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020611 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020612 dynamic_linker="$host_os dld.sl"
20613 shlibpath_var=SHLIB_PATH
20614 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20616 soname_spec='${libname}${release}${shared_ext}$major'
20617 ;;
20618 esac
20619 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20620 postinstall_cmds='chmod 555 $lib'
20621 ;;
20622
Reid Spencera773bd52006-08-04 18:18:08 +000020623interix3*)
20624 version_type=linux
20625 need_lib_prefix=no
20626 need_version=no
20627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20628 soname_spec='${libname}${release}${shared_ext}$major'
20629 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20630 shlibpath_var=LD_LIBRARY_PATH
20631 shlibpath_overrides_runpath=no
20632 hardcode_into_libs=yes
20633 ;;
20634
John Criswell47fdd832003-07-14 16:52:07 +000020635irix5* | irix6* | nonstopux*)
20636 case $host_os in
20637 nonstopux*) version_type=nonstopux ;;
20638 *)
20639 if test "$lt_cv_prog_gnu_ld" = yes; then
20640 version_type=linux
20641 else
20642 version_type=irix
20643 fi ;;
20644 esac
20645 need_lib_prefix=no
20646 need_version=no
20647 soname_spec='${libname}${release}${shared_ext}$major'
20648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20649 case $host_os in
20650 irix5* | nonstopux*)
20651 libsuff= shlibsuff=
20652 ;;
20653 *)
20654 case $LD in # libtool.m4 will add one of these switches to LD
20655 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20656 libsuff= shlibsuff= libmagic=32-bit;;
20657 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20658 libsuff=32 shlibsuff=N32 libmagic=N32;;
20659 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20660 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20661 *) libsuff= shlibsuff= libmagic=never-match;;
20662 esac
20663 ;;
20664 esac
20665 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20666 shlibpath_overrides_runpath=no
20667 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20668 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20669 hardcode_into_libs=yes
20670 ;;
20671
20672# No shared lib support for Linux oldld, aout, or coff.
20673linux*oldld* | linux*aout* | linux*coff*)
20674 dynamic_linker=no
20675 ;;
20676
20677# This must be Linux ELF.
20678linux*)
20679 version_type=linux
20680 need_lib_prefix=no
20681 need_version=no
20682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20683 soname_spec='${libname}${release}${shared_ext}$major'
20684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20685 shlibpath_var=LD_LIBRARY_PATH
20686 shlibpath_overrides_runpath=no
20687 # This implies no fast_install, which is unacceptable.
20688 # Some rework will be needed to allow for fast_install
20689 # before this can be enabled.
20690 hardcode_into_libs=yes
20691
Reid Spencer2706f8c2004-09-19 23:53:36 +000020692 # Append ld.so.conf contents to the search path
20693 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020694 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 +000020695 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20696 fi
20697
John Criswell47fdd832003-07-14 16:52:07 +000020698 # We used to test for /lib/ld.so.1 and disable shared libraries on
20699 # powerpc, because MkLinux only supported shared libraries with the
20700 # GNU dynamic linker. Since this was broken with cross compilers,
20701 # most powerpc-linux boxes support dynamic linking these days and
20702 # people can always --disable-shared, the test was removed, and we
20703 # assume the GNU/Linux dynamic linker is in use.
20704 dynamic_linker='GNU/Linux ld.so'
20705 ;;
20706
Reid Spencer2706f8c2004-09-19 23:53:36 +000020707knetbsd*-gnu)
20708 version_type=linux
20709 need_lib_prefix=no
20710 need_version=no
20711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20712 soname_spec='${libname}${release}${shared_ext}$major'
20713 shlibpath_var=LD_LIBRARY_PATH
20714 shlibpath_overrides_runpath=no
20715 hardcode_into_libs=yes
20716 dynamic_linker='GNU ld.so'
20717 ;;
20718
John Criswell47fdd832003-07-14 16:52:07 +000020719netbsd*)
20720 version_type=sunos
20721 need_lib_prefix=no
20722 need_version=no
20723 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20726 dynamic_linker='NetBSD (a.out) ld.so'
20727 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020729 soname_spec='${libname}${release}${shared_ext}$major'
20730 dynamic_linker='NetBSD ld.elf_so'
20731 fi
20732 shlibpath_var=LD_LIBRARY_PATH
20733 shlibpath_overrides_runpath=yes
20734 hardcode_into_libs=yes
20735 ;;
20736
20737newsos6)
20738 version_type=linux
20739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20740 shlibpath_var=LD_LIBRARY_PATH
20741 shlibpath_overrides_runpath=yes
20742 ;;
20743
Reid Spencer2706f8c2004-09-19 23:53:36 +000020744nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020745 version_type=linux
20746 need_lib_prefix=no
20747 need_version=no
20748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20749 soname_spec='${libname}${release}${shared_ext}$major'
20750 shlibpath_var=LD_LIBRARY_PATH
20751 shlibpath_overrides_runpath=yes
20752 ;;
20753
20754openbsd*)
20755 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020756 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020757 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020758 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20759 case $host_os in
20760 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20761 *) need_version=no ;;
20762 esac
John Criswell47fdd832003-07-14 16:52:07 +000020763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20765 shlibpath_var=LD_LIBRARY_PATH
20766 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20767 case $host_os in
20768 openbsd2.[89] | openbsd2.[89].*)
20769 shlibpath_overrides_runpath=no
20770 ;;
20771 *)
20772 shlibpath_overrides_runpath=yes
20773 ;;
20774 esac
20775 else
20776 shlibpath_overrides_runpath=yes
20777 fi
20778 ;;
20779
20780os2*)
20781 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020782 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020783 need_lib_prefix=no
20784 library_names_spec='$libname${shared_ext} $libname.a'
20785 dynamic_linker='OS/2 ld.exe'
20786 shlibpath_var=LIBPATH
20787 ;;
20788
20789osf3* | osf4* | osf5*)
20790 version_type=osf
20791 need_lib_prefix=no
20792 need_version=no
20793 soname_spec='${libname}${release}${shared_ext}$major'
20794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20795 shlibpath_var=LD_LIBRARY_PATH
20796 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20797 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20798 ;;
20799
John Criswell47fdd832003-07-14 16:52:07 +000020800solaris*)
20801 version_type=linux
20802 need_lib_prefix=no
20803 need_version=no
20804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20805 soname_spec='${libname}${release}${shared_ext}$major'
20806 shlibpath_var=LD_LIBRARY_PATH
20807 shlibpath_overrides_runpath=yes
20808 hardcode_into_libs=yes
20809 # ldd complains unless libraries are executable
20810 postinstall_cmds='chmod +x $lib'
20811 ;;
20812
20813sunos4*)
20814 version_type=sunos
20815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20816 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20817 shlibpath_var=LD_LIBRARY_PATH
20818 shlibpath_overrides_runpath=yes
20819 if test "$with_gnu_ld" = yes; then
20820 need_lib_prefix=no
20821 fi
20822 need_version=yes
20823 ;;
20824
Reid Spencera773bd52006-08-04 18:18:08 +000020825sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020826 version_type=linux
20827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20828 soname_spec='${libname}${release}${shared_ext}$major'
20829 shlibpath_var=LD_LIBRARY_PATH
20830 case $host_vendor in
20831 sni)
20832 shlibpath_overrides_runpath=no
20833 need_lib_prefix=no
20834 export_dynamic_flag_spec='${wl}-Blargedynsym'
20835 runpath_var=LD_RUN_PATH
20836 ;;
20837 siemens)
20838 need_lib_prefix=no
20839 ;;
20840 motorola)
20841 need_lib_prefix=no
20842 need_version=no
20843 shlibpath_overrides_runpath=no
20844 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20845 ;;
20846 esac
20847 ;;
20848
20849sysv4*MP*)
20850 if test -d /usr/nec ;then
20851 version_type=linux
20852 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20853 soname_spec='$libname${shared_ext}.$major'
20854 shlibpath_var=LD_LIBRARY_PATH
20855 fi
20856 ;;
20857
Reid Spencera773bd52006-08-04 18:18:08 +000020858sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20859 version_type=freebsd-elf
20860 need_lib_prefix=no
20861 need_version=no
20862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20863 soname_spec='${libname}${release}${shared_ext}$major'
20864 shlibpath_var=LD_LIBRARY_PATH
20865 hardcode_into_libs=yes
20866 if test "$with_gnu_ld" = yes; then
20867 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20868 shlibpath_overrides_runpath=no
20869 else
20870 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20871 shlibpath_overrides_runpath=yes
20872 case $host_os in
20873 sco3.2v5*)
20874 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20875 ;;
20876 esac
20877 fi
20878 sys_lib_dlsearch_path_spec='/usr/lib'
20879 ;;
20880
John Criswell47fdd832003-07-14 16:52:07 +000020881uts4*)
20882 version_type=linux
20883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20884 soname_spec='${libname}${release}${shared_ext}$major'
20885 shlibpath_var=LD_LIBRARY_PATH
20886 ;;
20887
20888*)
20889 dynamic_linker=no
20890 ;;
20891esac
Reid Spencera773bd52006-08-04 18:18:08 +000020892{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20893echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020894test "$dynamic_linker" = no && can_build_shared=no
20895
Reid Spencera773bd52006-08-04 18:18:08 +000020896variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20897if test "$GCC" = yes; then
20898 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20899fi
20900
20901{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20902echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020903hardcode_action_CXX=
20904if test -n "$hardcode_libdir_flag_spec_CXX" || \
20905 test -n "$runpath_var_CXX" || \
20906 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20907
20908 # We can hardcode non-existant directories.
20909 if test "$hardcode_direct_CXX" != no &&
20910 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20911 # have to relink, otherwise we might link with an installed library
20912 # when we should be linking with a yet-to-be-installed one
20913 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20914 test "$hardcode_minus_L_CXX" != no; then
20915 # Linking always hardcodes the temporary library directory.
20916 hardcode_action_CXX=relink
20917 else
20918 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20919 hardcode_action_CXX=immediate
20920 fi
20921else
20922 # We cannot hardcode anything, or else we can only hardcode existing
20923 # directories.
20924 hardcode_action_CXX=unsupported
20925fi
Reid Spencera773bd52006-08-04 18:18:08 +000020926{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20927echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020928
20929if test "$hardcode_action_CXX" = relink; then
20930 # Fast installation is not supported
20931 enable_fast_install=no
20932elif test "$shlibpath_overrides_runpath" = yes ||
20933 test "$enable_shared" = no; then
20934 # Fast installation is not necessary
20935 enable_fast_install=needless
20936fi
20937
John Criswell47fdd832003-07-14 16:52:07 +000020938
20939# The else clause should only fire when bootstrapping the
20940# libtool distribution, otherwise you forgot to ship ltmain.sh
20941# with your package, and you will get complaints that there are
20942# no rules to generate ltmain.sh.
20943if test -f "$ltmain"; then
20944 # See if we are running on zsh, and set the options which allow our commands through
20945 # without removal of \ escapes.
20946 if test -n "${ZSH_VERSION+set}" ; then
20947 setopt NO_GLOB_SUBST
20948 fi
20949 # Now quote all the things that may contain metacharacters while being
20950 # careful not to overquote the AC_SUBSTed values. We take copies of the
20951 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020952 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 +000020953 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020954 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20955 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20956 deplibs_check_method reload_flag reload_cmds need_locks \
20957 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20958 lt_cv_sys_global_symbol_to_c_name_address \
20959 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20960 old_postinstall_cmds old_postuninstall_cmds \
20961 compiler_CXX \
20962 CC_CXX \
20963 LD_CXX \
20964 lt_prog_compiler_wl_CXX \
20965 lt_prog_compiler_pic_CXX \
20966 lt_prog_compiler_static_CXX \
20967 lt_prog_compiler_no_builtin_flag_CXX \
20968 export_dynamic_flag_spec_CXX \
20969 thread_safe_flag_spec_CXX \
20970 whole_archive_flag_spec_CXX \
20971 enable_shared_with_static_runtimes_CXX \
20972 old_archive_cmds_CXX \
20973 old_archive_from_new_cmds_CXX \
20974 predep_objects_CXX \
20975 postdep_objects_CXX \
20976 predeps_CXX \
20977 postdeps_CXX \
20978 compiler_lib_search_path_CXX \
20979 archive_cmds_CXX \
20980 archive_expsym_cmds_CXX \
20981 postinstall_cmds_CXX \
20982 postuninstall_cmds_CXX \
20983 old_archive_from_expsyms_cmds_CXX \
20984 allow_undefined_flag_CXX \
20985 no_undefined_flag_CXX \
20986 export_symbols_cmds_CXX \
20987 hardcode_libdir_flag_spec_CXX \
20988 hardcode_libdir_flag_spec_ld_CXX \
20989 hardcode_libdir_separator_CXX \
20990 hardcode_automatic_CXX \
20991 module_cmds_CXX \
20992 module_expsym_cmds_CXX \
20993 lt_cv_prog_compiler_c_o_CXX \
20994 exclude_expsyms_CXX \
20995 include_expsyms_CXX; do
20996
20997 case $var in
20998 old_archive_cmds_CXX | \
20999 old_archive_from_new_cmds_CXX | \
21000 archive_cmds_CXX | \
21001 archive_expsym_cmds_CXX | \
21002 module_cmds_CXX | \
21003 module_expsym_cmds_CXX | \
21004 old_archive_from_expsyms_cmds_CXX | \
21005 export_symbols_cmds_CXX | \
21006 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21007 postinstall_cmds | postuninstall_cmds | \
21008 old_postinstall_cmds | old_postuninstall_cmds | \
21009 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21010 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021011 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 +000021012 ;;
21013 *)
21014 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21015 ;;
21016 esac
21017 done
21018
21019 case $lt_echo in
21020 *'\$0 --fallback-echo"')
21021 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21022 ;;
21023 esac
21024
21025cfgfile="$ofile"
21026
21027 cat <<__EOF__ >> "$cfgfile"
21028# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21029
21030# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21031
21032# Shell to use when invoking shell scripts.
21033SHELL=$lt_SHELL
21034
21035# Whether or not to build shared libraries.
21036build_libtool_libs=$enable_shared
21037
21038# Whether or not to build static libraries.
21039build_old_libs=$enable_static
21040
21041# Whether or not to add -lc for building shared libraries.
21042build_libtool_need_lc=$archive_cmds_need_lc_CXX
21043
21044# Whether or not to disallow shared libs when runtime libs are static
21045allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21046
21047# Whether or not to optimize for fast installation.
21048fast_install=$enable_fast_install
21049
21050# The host system.
21051host_alias=$host_alias
21052host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021053host_os=$host_os
21054
21055# The build system.
21056build_alias=$build_alias
21057build=$build
21058build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021059
21060# An echo program that does not interpret backslashes.
21061echo=$lt_echo
21062
21063# The archiver.
21064AR=$lt_AR
21065AR_FLAGS=$lt_AR_FLAGS
21066
21067# A C compiler.
21068LTCC=$lt_LTCC
21069
Reid Spencera773bd52006-08-04 18:18:08 +000021070# LTCC compiler flags.
21071LTCFLAGS=$lt_LTCFLAGS
21072
John Criswell47fdd832003-07-14 16:52:07 +000021073# A language-specific compiler.
21074CC=$lt_compiler_CXX
21075
21076# Is the compiler the GNU C compiler?
21077with_gcc=$GCC_CXX
21078
21079# An ERE matcher.
21080EGREP=$lt_EGREP
21081
21082# The linker used to build libraries.
21083LD=$lt_LD_CXX
21084
21085# Whether we need hard or soft links.
21086LN_S=$lt_LN_S
21087
21088# A BSD-compatible nm program.
21089NM=$lt_NM
21090
21091# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021092STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021093
21094# Used to examine libraries when file_magic_cmd begins "file"
21095MAGIC_CMD=$MAGIC_CMD
21096
21097# Used on cygwin: DLL creation program.
21098DLLTOOL="$DLLTOOL"
21099
21100# Used on cygwin: object dumper.
21101OBJDUMP="$OBJDUMP"
21102
21103# Used on cygwin: assembler.
21104AS="$AS"
21105
21106# The name of the directory that contains temporary libtool files.
21107objdir=$objdir
21108
21109# How to create reloadable object files.
21110reload_flag=$lt_reload_flag
21111reload_cmds=$lt_reload_cmds
21112
21113# How to pass a linker flag through the compiler.
21114wl=$lt_lt_prog_compiler_wl_CXX
21115
21116# Object file suffix (normally "o").
21117objext="$ac_objext"
21118
21119# Old archive suffix (normally "a").
21120libext="$libext"
21121
21122# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021123shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021124
21125# Executable file suffix (normally "").
21126exeext="$exeext"
21127
21128# Additional compiler flags for building library objects.
21129pic_flag=$lt_lt_prog_compiler_pic_CXX
21130pic_mode=$pic_mode
21131
21132# What is the maximum length of a command?
21133max_cmd_len=$lt_cv_sys_max_cmd_len
21134
21135# Does compiler simultaneously support -c and -o options?
21136compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21137
Reid Spencera773bd52006-08-04 18:18:08 +000021138# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021139need_locks=$lt_need_locks
21140
21141# Do we need the lib prefix for modules?
21142need_lib_prefix=$need_lib_prefix
21143
21144# Do we need a version for libraries?
21145need_version=$need_version
21146
21147# Whether dlopen is supported.
21148dlopen_support=$enable_dlopen
21149
21150# Whether dlopen of programs is supported.
21151dlopen_self=$enable_dlopen_self
21152
21153# Whether dlopen of statically linked programs is supported.
21154dlopen_self_static=$enable_dlopen_self_static
21155
21156# Compiler flag to prevent dynamic linking.
21157link_static_flag=$lt_lt_prog_compiler_static_CXX
21158
21159# Compiler flag to turn off builtin functions.
21160no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21161
21162# Compiler flag to allow reflexive dlopens.
21163export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21164
21165# Compiler flag to generate shared objects directly from archives.
21166whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21167
21168# Compiler flag to generate thread-safe objects.
21169thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21170
21171# Library versioning type.
21172version_type=$version_type
21173
21174# Format of library name prefix.
21175libname_spec=$lt_libname_spec
21176
21177# List of archive names. First name is the real one, the rest are links.
21178# The last name is the one that the linker finds with -lNAME.
21179library_names_spec=$lt_library_names_spec
21180
21181# The coded name of the library, if different from the real name.
21182soname_spec=$lt_soname_spec
21183
21184# Commands used to build and install an old-style archive.
21185RANLIB=$lt_RANLIB
21186old_archive_cmds=$lt_old_archive_cmds_CXX
21187old_postinstall_cmds=$lt_old_postinstall_cmds
21188old_postuninstall_cmds=$lt_old_postuninstall_cmds
21189
21190# Create an old-style archive from a shared archive.
21191old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21192
21193# Create a temporary old-style archive to link instead of a shared archive.
21194old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21195
21196# Commands used to build and install a shared archive.
21197archive_cmds=$lt_archive_cmds_CXX
21198archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21199postinstall_cmds=$lt_postinstall_cmds
21200postuninstall_cmds=$lt_postuninstall_cmds
21201
21202# Commands used to build a loadable module (assumed same as above if empty)
21203module_cmds=$lt_module_cmds_CXX
21204module_expsym_cmds=$lt_module_expsym_cmds_CXX
21205
21206# Commands to strip libraries.
21207old_striplib=$lt_old_striplib
21208striplib=$lt_striplib
21209
21210# Dependencies to place before the objects being linked to create a
21211# shared library.
21212predep_objects=$lt_predep_objects_CXX
21213
21214# Dependencies to place after the objects being linked to create a
21215# shared library.
21216postdep_objects=$lt_postdep_objects_CXX
21217
21218# Dependencies to place before the objects being linked to create a
21219# shared library.
21220predeps=$lt_predeps_CXX
21221
21222# Dependencies to place after the objects being linked to create a
21223# shared library.
21224postdeps=$lt_postdeps_CXX
21225
21226# The library search path used internally by the compiler when linking
21227# a shared library.
21228compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21229
21230# Method to check whether dependent libraries are shared objects.
21231deplibs_check_method=$lt_deplibs_check_method
21232
21233# Command to use when deplibs_check_method == file_magic.
21234file_magic_cmd=$lt_file_magic_cmd
21235
21236# Flag that allows shared libraries with undefined symbols to be built.
21237allow_undefined_flag=$lt_allow_undefined_flag_CXX
21238
21239# Flag that forces no undefined symbols.
21240no_undefined_flag=$lt_no_undefined_flag_CXX
21241
21242# Commands used to finish a libtool library installation in a directory.
21243finish_cmds=$lt_finish_cmds
21244
21245# Same as above, but a single script fragment to be evaled but not shown.
21246finish_eval=$lt_finish_eval
21247
21248# Take the output of nm and produce a listing of raw symbols and C names.
21249global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21250
21251# Transform the output of nm in a proper C declaration
21252global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21253
21254# Transform the output of nm in a C name address pair
21255global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21256
21257# This is the shared library runtime path variable.
21258runpath_var=$runpath_var
21259
21260# This is the shared library path variable.
21261shlibpath_var=$shlibpath_var
21262
21263# Is shlibpath searched before the hard-coded library search path?
21264shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21265
21266# How to hardcode a shared library path into an executable.
21267hardcode_action=$hardcode_action_CXX
21268
21269# Whether we should hardcode library paths into libraries.
21270hardcode_into_libs=$hardcode_into_libs
21271
21272# Flag to hardcode \$libdir into a binary during linking.
21273# This must work even if \$libdir does not exist.
21274hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21275
21276# If ld is used when linking, flag to hardcode \$libdir into
21277# a binary during linking. This must work even if \$libdir does
21278# not exist.
21279hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21280
21281# Whether we need a single -rpath flag with a separated argument.
21282hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21283
21284# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21285# resulting binary.
21286hardcode_direct=$hardcode_direct_CXX
21287
21288# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21289# resulting binary.
21290hardcode_minus_L=$hardcode_minus_L_CXX
21291
21292# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21293# the resulting binary.
21294hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21295
21296# Set to yes if building a shared library automatically hardcodes DIR into the library
21297# and all subsequent libraries and executables linked against it.
21298hardcode_automatic=$hardcode_automatic_CXX
21299
21300# Variables whose values should be saved in libtool wrapper scripts and
21301# restored at relink time.
21302variables_saved_for_relink="$variables_saved_for_relink"
21303
21304# Whether libtool must link a program against all its dependency libraries.
21305link_all_deplibs=$link_all_deplibs_CXX
21306
21307# Compile-time system search path for libraries
21308sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21309
21310# Run-time system search path for libraries
21311sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21312
21313# Fix the shell variable \$srcfile for the compiler.
21314fix_srcfile_path="$fix_srcfile_path_CXX"
21315
21316# Set to yes if exported symbols are required.
21317always_export_symbols=$always_export_symbols_CXX
21318
21319# The commands to list exported symbols.
21320export_symbols_cmds=$lt_export_symbols_cmds_CXX
21321
21322# The commands to extract the exported symbol list from a shared archive.
21323extract_expsyms_cmds=$lt_extract_expsyms_cmds
21324
21325# Symbols that should not be listed in the preloaded symbols.
21326exclude_expsyms=$lt_exclude_expsyms_CXX
21327
21328# Symbols that must always be exported.
21329include_expsyms=$lt_include_expsyms_CXX
21330
21331# ### END LIBTOOL TAG CONFIG: $tagname
21332
21333__EOF__
21334
21335
21336else
21337 # If there is no Makefile yet, we rely on a make rule to execute
21338 # `config.status --recheck' to rerun these tests and create the
21339 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021340 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21341 if test -f "$ltmain_in"; then
21342 test -f Makefile && make "$ltmain"
21343 fi
John Criswell47fdd832003-07-14 16:52:07 +000021344fi
21345
21346
21347ac_ext=c
21348ac_cpp='$CPP $CPPFLAGS'
21349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21351ac_compiler_gnu=$ac_cv_c_compiler_gnu
21352
21353CC=$lt_save_CC
21354LDCXX=$LD
21355LD=$lt_save_LD
21356GCC=$lt_save_GCC
21357with_gnu_ldcxx=$with_gnu_ld
21358with_gnu_ld=$lt_save_with_gnu_ld
21359lt_cv_path_LDCXX=$lt_cv_path_LD
21360lt_cv_path_LD=$lt_save_path_LD
21361lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21362lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21363
21364 else
21365 tagname=""
21366 fi
21367 ;;
21368
21369 F77)
21370 if test -n "$F77" && test "X$F77" != "Xno"; then
21371
21372ac_ext=f
21373ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21374ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21375ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21376
21377
21378archive_cmds_need_lc_F77=no
21379allow_undefined_flag_F77=
21380always_export_symbols_F77=no
21381archive_expsym_cmds_F77=
21382export_dynamic_flag_spec_F77=
21383hardcode_direct_F77=no
21384hardcode_libdir_flag_spec_F77=
21385hardcode_libdir_flag_spec_ld_F77=
21386hardcode_libdir_separator_F77=
21387hardcode_minus_L_F77=no
21388hardcode_automatic_F77=no
21389module_cmds_F77=
21390module_expsym_cmds_F77=
21391link_all_deplibs_F77=unknown
21392old_archive_cmds_F77=$old_archive_cmds
21393no_undefined_flag_F77=
21394whole_archive_flag_spec_F77=
21395enable_shared_with_static_runtimes_F77=no
21396
21397# Source file extension for f77 test sources.
21398ac_ext=f
21399
21400# Object file extension for compiled f77 test sources.
21401objext=o
21402objext_F77=$objext
21403
21404# Code to be used in simple compile tests
21405lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21406
21407# Code to be used in simple link tests
21408lt_simple_link_test_code=" program t\n end\n"
21409
21410# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21411
21412# If no C compiler was specified, use CC.
21413LTCC=${LTCC-"$CC"}
21414
Reid Spencera773bd52006-08-04 18:18:08 +000021415# If no C compiler flags were specified, use CFLAGS.
21416LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21417
John Criswell47fdd832003-07-14 16:52:07 +000021418# Allow CC to be a program name with arguments.
21419compiler=$CC
21420
21421
Reid Spencera773bd52006-08-04 18:18:08 +000021422# save warnings/boilerplate of simple test code
21423ac_outfile=conftest.$ac_objext
21424printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21425eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21426_lt_compiler_boilerplate=`cat conftest.err`
21427$rm conftest*
21428
21429ac_outfile=conftest.$ac_objext
21430printf "$lt_simple_link_test_code" >conftest.$ac_ext
21431eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21432_lt_linker_boilerplate=`cat conftest.err`
21433$rm conftest*
21434
21435
John Criswell47fdd832003-07-14 16:52:07 +000021436# Allow CC to be a program name with arguments.
21437lt_save_CC="$CC"
21438CC=${F77-"f77"}
21439compiler=$CC
21440compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021441for cc_temp in $compiler""; do
21442 case $cc_temp in
21443 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21444 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21445 \-*) ;;
21446 *) break;;
21447 esac
21448done
21449cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021450
John Criswell47fdd832003-07-14 16:52:07 +000021451
Reid Spencera773bd52006-08-04 18:18:08 +000021452{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21453echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21454{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21455echo "${ECHO_T}$can_build_shared" >&6; }
21456
21457{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21458echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021459test "$can_build_shared" = "no" && enable_shared=no
21460
21461# On AIX, shared libraries and static libraries use the same namespace, and
21462# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021463case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021464aix3*)
21465 test "$enable_shared" = yes && enable_static=no
21466 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021467 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021468 postinstall_cmds='$RANLIB $lib'
21469 fi
21470 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021471aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021472 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21473 test "$enable_shared" = yes && enable_static=no
21474 fi
John Criswell47fdd832003-07-14 16:52:07 +000021475 ;;
21476esac
Reid Spencera773bd52006-08-04 18:18:08 +000021477{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21478echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021479
Reid Spencera773bd52006-08-04 18:18:08 +000021480{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21481echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021482# Make sure either enable_shared or enable_static is yes.
21483test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021484{ echo "$as_me:$LINENO: result: $enable_static" >&5
21485echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021486
21487GCC_F77="$G77"
21488LD_F77="$LD"
21489
21490lt_prog_compiler_wl_F77=
21491lt_prog_compiler_pic_F77=
21492lt_prog_compiler_static_F77=
21493
Reid Spencera773bd52006-08-04 18:18:08 +000021494{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21495echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021496
21497 if test "$GCC" = yes; then
21498 lt_prog_compiler_wl_F77='-Wl,'
21499 lt_prog_compiler_static_F77='-static'
21500
21501 case $host_os in
21502 aix*)
21503 # All AIX code is PIC.
21504 if test "$host_cpu" = ia64; then
21505 # AIX 5 now supports IA64 processor
21506 lt_prog_compiler_static_F77='-Bstatic'
21507 fi
21508 ;;
21509
21510 amigaos*)
21511 # FIXME: we need at least 68020 code to build shared libraries, but
21512 # adding the `-m68020' flag to GCC prevents building anything better,
21513 # like `-m68040'.
21514 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21515 ;;
21516
21517 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21518 # PIC is the default for these OSes.
21519 ;;
21520
21521 mingw* | pw32* | os2*)
21522 # This hack is so that the source file can tell whether it is being
21523 # built for inclusion in a dll (and should export symbols for example).
21524 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21525 ;;
21526
21527 darwin* | rhapsody*)
21528 # PIC is the default on this platform
21529 # Common symbols not allowed in MH_DYLIB files
21530 lt_prog_compiler_pic_F77='-fno-common'
21531 ;;
21532
Reid Spencera773bd52006-08-04 18:18:08 +000021533 interix3*)
21534 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21535 # Instead, we relocate shared libraries at runtime.
21536 ;;
21537
John Criswell47fdd832003-07-14 16:52:07 +000021538 msdosdjgpp*)
21539 # Just because we use GCC doesn't mean we suddenly get shared libraries
21540 # on systems that don't support them.
21541 lt_prog_compiler_can_build_shared_F77=no
21542 enable_shared=no
21543 ;;
21544
21545 sysv4*MP*)
21546 if test -d /usr/nec; then
21547 lt_prog_compiler_pic_F77=-Kconform_pic
21548 fi
21549 ;;
21550
21551 hpux*)
21552 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21553 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021554 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021555 hppa*64*|ia64*)
21556 # +Z the default
21557 ;;
21558 *)
21559 lt_prog_compiler_pic_F77='-fPIC'
21560 ;;
21561 esac
21562 ;;
21563
21564 *)
21565 lt_prog_compiler_pic_F77='-fPIC'
21566 ;;
21567 esac
21568 else
21569 # PORTME Check for flag to pass linker flags through the system compiler.
21570 case $host_os in
21571 aix*)
21572 lt_prog_compiler_wl_F77='-Wl,'
21573 if test "$host_cpu" = ia64; then
21574 # AIX 5 now supports IA64 processor
21575 lt_prog_compiler_static_F77='-Bstatic'
21576 else
21577 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21578 fi
21579 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021580 darwin*)
21581 # PIC is the default on this platform
21582 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021583 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021584 xlc*)
21585 lt_prog_compiler_pic_F77='-qnocommon'
21586 lt_prog_compiler_wl_F77='-Wl,'
21587 ;;
21588 esac
21589 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021590
21591 mingw* | pw32* | os2*)
21592 # This hack is so that the source file can tell whether it is being
21593 # built for inclusion in a dll (and should export symbols for example).
21594 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21595 ;;
21596
21597 hpux9* | hpux10* | hpux11*)
21598 lt_prog_compiler_wl_F77='-Wl,'
21599 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21600 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021601 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021602 hppa*64*|ia64*)
21603 # +Z the default
21604 ;;
21605 *)
21606 lt_prog_compiler_pic_F77='+Z'
21607 ;;
21608 esac
21609 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21610 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21611 ;;
21612
21613 irix5* | irix6* | nonstopux*)
21614 lt_prog_compiler_wl_F77='-Wl,'
21615 # PIC (with -KPIC) is the default.
21616 lt_prog_compiler_static_F77='-non_shared'
21617 ;;
21618
21619 newsos6)
21620 lt_prog_compiler_pic_F77='-KPIC'
21621 lt_prog_compiler_static_F77='-Bstatic'
21622 ;;
21623
21624 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021625 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021626 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021627 lt_prog_compiler_wl_F77='-Wl,'
21628 lt_prog_compiler_pic_F77='-KPIC'
21629 lt_prog_compiler_static_F77='-static'
21630 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021631 pgcc* | pgf77* | pgf90* | pgf95*)
21632 # Portland Group compilers (*not* the Pentium gcc compiler,
21633 # which looks to be a dead project)
21634 lt_prog_compiler_wl_F77='-Wl,'
21635 lt_prog_compiler_pic_F77='-fpic'
21636 lt_prog_compiler_static_F77='-Bstatic'
21637 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021638 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021639 lt_prog_compiler_wl_F77='-Wl,'
21640 # All Alpha code is PIC.
21641 lt_prog_compiler_static_F77='-non_shared'
21642 ;;
21643 esac
21644 ;;
21645
21646 osf3* | osf4* | osf5*)
21647 lt_prog_compiler_wl_F77='-Wl,'
21648 # All OSF/1 code is PIC.
21649 lt_prog_compiler_static_F77='-non_shared'
21650 ;;
21651
John Criswell47fdd832003-07-14 16:52:07 +000021652 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021653 lt_prog_compiler_pic_F77='-KPIC'
21654 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021655 case $cc_basename in
21656 f77* | f90* | f95*)
21657 lt_prog_compiler_wl_F77='-Qoption ld ';;
21658 *)
21659 lt_prog_compiler_wl_F77='-Wl,';;
21660 esac
John Criswell47fdd832003-07-14 16:52:07 +000021661 ;;
21662
21663 sunos4*)
21664 lt_prog_compiler_wl_F77='-Qoption ld '
21665 lt_prog_compiler_pic_F77='-PIC'
21666 lt_prog_compiler_static_F77='-Bstatic'
21667 ;;
21668
Reid Spencera773bd52006-08-04 18:18:08 +000021669 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021670 lt_prog_compiler_wl_F77='-Wl,'
21671 lt_prog_compiler_pic_F77='-KPIC'
21672 lt_prog_compiler_static_F77='-Bstatic'
21673 ;;
21674
21675 sysv4*MP*)
21676 if test -d /usr/nec ;then
21677 lt_prog_compiler_pic_F77='-Kconform_pic'
21678 lt_prog_compiler_static_F77='-Bstatic'
21679 fi
21680 ;;
21681
Reid Spencera773bd52006-08-04 18:18:08 +000021682 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21683 lt_prog_compiler_wl_F77='-Wl,'
21684 lt_prog_compiler_pic_F77='-KPIC'
21685 lt_prog_compiler_static_F77='-Bstatic'
21686 ;;
21687
21688 unicos*)
21689 lt_prog_compiler_wl_F77='-Wl,'
21690 lt_prog_compiler_can_build_shared_F77=no
21691 ;;
21692
John Criswell47fdd832003-07-14 16:52:07 +000021693 uts4*)
21694 lt_prog_compiler_pic_F77='-pic'
21695 lt_prog_compiler_static_F77='-Bstatic'
21696 ;;
21697
21698 *)
21699 lt_prog_compiler_can_build_shared_F77=no
21700 ;;
21701 esac
21702 fi
21703
Reid Spencera773bd52006-08-04 18:18:08 +000021704{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21705echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021706
21707#
21708# Check to make sure the PIC flag actually works.
21709#
21710if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021711
Reid Spencera773bd52006-08-04 18:18:08 +000021712{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21713echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021714if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21715 echo $ECHO_N "(cached) $ECHO_C" >&6
21716else
21717 lt_prog_compiler_pic_works_F77=no
21718 ac_outfile=conftest.$ac_objext
21719 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21720 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21721 # Insert the option either (1) after the last *FLAGS variable, or
21722 # (2) before a word containing "conftest.", or (3) at the end.
21723 # Note that $ac_compile itself does not contain backslashes and begins
21724 # with a dollar sign (not a hyphen), so the echo should work correctly.
21725 # The option is referenced via a variable to avoid confusing sed.
21726 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21729 -e 's:$: $lt_compiler_flag:'`
David Greenef0b9eff2009-07-09 17:16:26 +000021730 (eval echo "\"\$as_me:21730: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021731 (eval "$lt_compile" 2>conftest.err)
21732 ac_status=$?
21733 cat conftest.err >&5
David Greenef0b9eff2009-07-09 17:16:26 +000021734 echo "$as_me:21734: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021735 if (exit $ac_status) && test -s "$ac_outfile"; then
21736 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021737 # So say no if there are warnings other than the usual output.
21738 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021741 lt_prog_compiler_pic_works_F77=yes
21742 fi
21743 fi
21744 $rm conftest*
21745
21746fi
Reid Spencera773bd52006-08-04 18:18:08 +000021747{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21748echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021749
21750if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21751 case $lt_prog_compiler_pic_F77 in
21752 "" | " "*) ;;
21753 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21754 esac
21755else
21756 lt_prog_compiler_pic_F77=
21757 lt_prog_compiler_can_build_shared_F77=no
21758fi
21759
21760fi
Reid Spencera773bd52006-08-04 18:18:08 +000021761case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021762 # For platforms which do not support PIC, -DPIC is meaningless:
21763 *djgpp*)
21764 lt_prog_compiler_pic_F77=
21765 ;;
21766 *)
21767 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21768 ;;
21769esac
21770
Reid Spencera773bd52006-08-04 18:18:08 +000021771#
21772# Check to make sure the static flag actually works.
21773#
21774wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21775{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21776echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21777if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21778 echo $ECHO_N "(cached) $ECHO_C" >&6
21779else
21780 lt_prog_compiler_static_works_F77=no
21781 save_LDFLAGS="$LDFLAGS"
21782 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21783 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21784 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21785 # The linker can only warn and ignore the option if not recognized
21786 # So say no if there are warnings
21787 if test -s conftest.err; then
21788 # Append any errors to the config.log.
21789 cat conftest.err 1>&5
21790 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21792 if diff conftest.exp conftest.er2 >/dev/null; then
21793 lt_prog_compiler_static_works_F77=yes
21794 fi
21795 else
21796 lt_prog_compiler_static_works_F77=yes
21797 fi
21798 fi
21799 $rm conftest*
21800 LDFLAGS="$save_LDFLAGS"
21801
21802fi
21803{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21804echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21805
21806if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21807 :
21808else
21809 lt_prog_compiler_static_F77=
21810fi
21811
21812
21813{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21814echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021815if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21816 echo $ECHO_N "(cached) $ECHO_C" >&6
21817else
21818 lt_cv_prog_compiler_c_o_F77=no
21819 $rm -r conftest 2>/dev/null
21820 mkdir conftest
21821 cd conftest
21822 mkdir out
21823 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21824
John Criswell47fdd832003-07-14 16:52:07 +000021825 lt_compiler_flag="-o out/conftest2.$ac_objext"
21826 # Insert the option either (1) after the last *FLAGS variable, or
21827 # (2) before a word containing "conftest.", or (3) at the end.
21828 # Note that $ac_compile itself does not contain backslashes and begins
21829 # with a dollar sign (not a hyphen), so the echo should work correctly.
21830 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21833 -e 's:$: $lt_compiler_flag:'`
David Greenef0b9eff2009-07-09 17:16:26 +000021834 (eval echo "\"\$as_me:21834: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021835 (eval "$lt_compile" 2>out/conftest.err)
21836 ac_status=$?
21837 cat out/conftest.err >&5
David Greenef0b9eff2009-07-09 17:16:26 +000021838 echo "$as_me:21838: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021839 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21840 then
21841 # The compiler can only warn and ignore the option if not recognized
21842 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021843 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21844 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21845 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021846 lt_cv_prog_compiler_c_o_F77=yes
21847 fi
21848 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021849 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021850 $rm conftest*
21851 # SGI C++ compiler will create directory out/ii_files/ for
21852 # template instantiation
21853 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21854 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021855 cd ..
21856 rmdir conftest
21857 $rm conftest*
21858
21859fi
Reid Spencera773bd52006-08-04 18:18:08 +000021860{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21861echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021862
21863
21864hard_links="nottested"
21865if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21866 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021867 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21868echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021869 hard_links=yes
21870 $rm conftest*
21871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21872 touch conftest.a
21873 ln conftest.a conftest.b 2>&5 || hard_links=no
21874 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021875 { echo "$as_me:$LINENO: result: $hard_links" >&5
21876echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021877 if test "$hard_links" = no; then
21878 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21879echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21880 need_locks=warn
21881 fi
21882else
21883 need_locks=no
21884fi
21885
Reid Spencera773bd52006-08-04 18:18:08 +000021886{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21887echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021888
21889 runpath_var=
21890 allow_undefined_flag_F77=
21891 enable_shared_with_static_runtimes_F77=no
21892 archive_cmds_F77=
21893 archive_expsym_cmds_F77=
21894 old_archive_From_new_cmds_F77=
21895 old_archive_from_expsyms_cmds_F77=
21896 export_dynamic_flag_spec_F77=
21897 whole_archive_flag_spec_F77=
21898 thread_safe_flag_spec_F77=
21899 hardcode_libdir_flag_spec_F77=
21900 hardcode_libdir_flag_spec_ld_F77=
21901 hardcode_libdir_separator_F77=
21902 hardcode_direct_F77=no
21903 hardcode_minus_L_F77=no
21904 hardcode_shlibpath_var_F77=unsupported
21905 link_all_deplibs_F77=unknown
21906 hardcode_automatic_F77=no
21907 module_cmds_F77=
21908 module_expsym_cmds_F77=
21909 always_export_symbols_F77=no
21910 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21911 # include_expsyms should be a list of space-separated symbols to be *always*
21912 # included in the symbol list
21913 include_expsyms_F77=
21914 # exclude_expsyms can be an extended regexp of symbols to exclude
21915 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21916 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21917 # as well as any symbol that contains `d'.
21918 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21919 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21920 # platforms (ab)use it in PIC code, but their linkers get confused if
21921 # the symbol is explicitly referenced. Since portable code cannot
21922 # rely on this symbol name, it's probably fine to never include it in
21923 # preloaded symbol tables.
21924 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021925 # Just being paranoid about ensuring that cc_basename is set.
21926 for cc_temp in $compiler""; do
21927 case $cc_temp in
21928 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21929 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21930 \-*) ;;
21931 *) break;;
21932 esac
21933done
21934cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021935
21936 case $host_os in
21937 cygwin* | mingw* | pw32*)
21938 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21939 # When not using gcc, we currently assume that we are using
21940 # Microsoft Visual C++.
21941 if test "$GCC" != yes; then
21942 with_gnu_ld=no
21943 fi
21944 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021945 interix*)
21946 # we just hope/assume this is gcc and not c89 (= MSVC++)
21947 with_gnu_ld=yes
21948 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021949 openbsd*)
21950 with_gnu_ld=no
21951 ;;
21952 esac
21953
21954 ld_shlibs_F77=yes
21955 if test "$with_gnu_ld" = yes; then
21956 # If archive_cmds runs LD, not CC, wlarc should be empty
21957 wlarc='${wl}'
21958
Reid Spencera773bd52006-08-04 18:18:08 +000021959 # Set some defaults for GNU ld with shared library support. These
21960 # are reset later if shared libraries are not supported. Putting them
21961 # here allows them to be overridden if necessary.
21962 runpath_var=LD_RUN_PATH
21963 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21964 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21965 # ancient GNU ld didn't support --whole-archive et. al.
21966 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21967 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21968 else
21969 whole_archive_flag_spec_F77=
21970 fi
21971 supports_anon_versioning=no
21972 case `$LD -v 2>/dev/null` in
21973 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21974 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21975 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21976 *\ 2.11.*) ;; # other 2.11 versions
21977 *) supports_anon_versioning=yes ;;
21978 esac
21979
John Criswell47fdd832003-07-14 16:52:07 +000021980 # See if GNU ld supports shared libraries.
21981 case $host_os in
21982 aix3* | aix4* | aix5*)
21983 # On AIX/PPC, the GNU linker is very broken
21984 if test "$host_cpu" != ia64; then
21985 ld_shlibs_F77=no
21986 cat <<EOF 1>&2
21987
21988*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21989*** to be unable to reliably create shared libraries on AIX.
21990*** Therefore, libtool is disabling shared libraries support. If you
21991*** really care for shared libraries, you may want to modify your PATH
21992*** so that a non-GNU linker is found, and then restart.
21993
21994EOF
21995 fi
21996 ;;
21997
21998 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021999 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 +000022000 hardcode_libdir_flag_spec_F77='-L$libdir'
22001 hardcode_minus_L_F77=yes
22002
22003 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22004 # that the semantics of dynamic libraries on AmigaOS, at least up
22005 # to version 4, is to share data among multiple programs linked
22006 # with the same dynamic library. Since this doesn't match the
22007 # behavior of shared libraries on other platforms, we can't use
22008 # them.
22009 ld_shlibs_F77=no
22010 ;;
22011
22012 beos*)
22013 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22014 allow_undefined_flag_F77=unsupported
22015 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22016 # support --undefined. This deserves some investigation. FIXME
22017 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22018 else
22019 ld_shlibs_F77=no
22020 fi
22021 ;;
22022
22023 cygwin* | mingw* | pw32*)
22024 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22025 # as there is no search path for DLLs.
22026 hardcode_libdir_flag_spec_F77='-L$libdir'
22027 allow_undefined_flag_F77=unsupported
22028 always_export_symbols_F77=no
22029 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022030 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 +000022031
22032 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000022033 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 +000022034 # If the export-symbols file already is a .def file (1st line
22035 # is EXPORTS), use it as is; otherwise, prepend...
22036 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22037 cp $export_symbols $output_objdir/$soname.def;
22038 else
22039 echo EXPORTS > $output_objdir/$soname.def;
22040 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022041 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022042 $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 +000022043 else
Reid Spencera773bd52006-08-04 18:18:08 +000022044 ld_shlibs_F77=no
22045 fi
22046 ;;
22047
22048 interix3*)
22049 hardcode_direct_F77=no
22050 hardcode_shlibpath_var_F77=no
22051 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22052 export_dynamic_flag_spec_F77='${wl}-E'
22053 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22054 # Instead, shared libraries are loaded at an image base (0x10000000 by
22055 # default) and relocated if they conflict, which is a slow very memory
22056 # consuming and fragmenting process. To avoid this, we pick a random,
22057 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22058 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22059 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'
22060 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'
22061 ;;
22062
22063 linux*)
22064 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22065 tmp_addflag=
22066 case $cc_basename,$host_cpu in
22067 pgcc*) # Portland Group C compiler
22068 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'
22069 tmp_addflag=' $pic_flag'
22070 ;;
22071 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22072 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'
22073 tmp_addflag=' $pic_flag -Mnomain' ;;
22074 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22075 tmp_addflag=' -i_dynamic' ;;
22076 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22077 tmp_addflag=' -i_dynamic -nofor_main' ;;
22078 ifc* | ifort*) # Intel Fortran compiler
22079 tmp_addflag=' -nofor_main' ;;
22080 esac
22081 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22082
22083 if test $supports_anon_versioning = yes; then
22084 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22085 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22086 $echo "local: *; };" >> $output_objdir/$libname.ver~
22087 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22088 fi
22089 else
22090 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022091 fi
22092 ;;
22093
22094 netbsd*)
22095 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22096 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22097 wlarc=
22098 else
22099 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22100 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22101 fi
22102 ;;
22103
Reid Spencera773bd52006-08-04 18:18:08 +000022104 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022105 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22106 ld_shlibs_F77=no
22107 cat <<EOF 1>&2
22108
22109*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22110*** create shared libraries on Solaris systems. Therefore, libtool
22111*** is disabling shared libraries support. We urge you to upgrade GNU
22112*** binutils to release 2.9.1 or newer. Another option is to modify
22113*** your PATH or compiler configuration so that the native linker is
22114*** used, and then restart.
22115
22116EOF
22117 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22118 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22119 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22120 else
22121 ld_shlibs_F77=no
22122 fi
22123 ;;
22124
Reid Spencera773bd52006-08-04 18:18:08 +000022125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22126 case `$LD -v 2>&1` in
22127 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22128 ld_shlibs_F77=no
22129 cat <<_LT_EOF 1>&2
22130
22131*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22132*** reliably create shared libraries on SCO systems. Therefore, libtool
22133*** is disabling shared libraries support. We urge you to upgrade GNU
22134*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22135*** your PATH or compiler configuration so that the native linker is
22136*** used, and then restart.
22137
22138_LT_EOF
22139 ;;
22140 *)
22141 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22142 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22143 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22144 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22145 else
22146 ld_shlibs_F77=no
22147 fi
22148 ;;
22149 esac
22150 ;;
22151
John Criswell47fdd832003-07-14 16:52:07 +000022152 sunos4*)
22153 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22154 wlarc=
22155 hardcode_direct_F77=yes
22156 hardcode_shlibpath_var_F77=no
22157 ;;
22158
22159 *)
22160 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22161 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22162 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22163 else
22164 ld_shlibs_F77=no
22165 fi
22166 ;;
22167 esac
22168
Reid Spencera773bd52006-08-04 18:18:08 +000022169 if test "$ld_shlibs_F77" = no; then
22170 runpath_var=
22171 hardcode_libdir_flag_spec_F77=
22172 export_dynamic_flag_spec_F77=
22173 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022174 fi
22175 else
22176 # PORTME fill in a description of your system's linker (not GNU ld)
22177 case $host_os in
22178 aix3*)
22179 allow_undefined_flag_F77=unsupported
22180 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022181 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 +000022182 # Note: this linker hardcodes the directories in LIBPATH if there
22183 # are no directories specified by -L.
22184 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022185 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022186 # Neither direct hardcoding nor static linking is supported with a
22187 # broken collect2.
22188 hardcode_direct_F77=unsupported
22189 fi
22190 ;;
22191
22192 aix4* | aix5*)
22193 if test "$host_cpu" = ia64; then
22194 # On IA64, the linker does run time linking by default, so we don't
22195 # have to do anything special.
22196 aix_use_runtimelinking=no
22197 exp_sym_flag='-Bexport'
22198 no_entry_flag=""
22199 else
22200 # If we're using GNU nm, then we don't want the "-C" option.
22201 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22202 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22203 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'
22204 else
22205 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'
22206 fi
22207 aix_use_runtimelinking=no
22208
22209 # Test if we are trying to use run time linking or normal
22210 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22211 # need to do runtime linking.
22212 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22213 for ld_flag in $LDFLAGS; do
22214 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22215 aix_use_runtimelinking=yes
22216 break
22217 fi
22218 done
Reid Spencera773bd52006-08-04 18:18:08 +000022219 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022220 esac
22221
22222 exp_sym_flag='-bexport'
22223 no_entry_flag='-bnoentry'
22224 fi
22225
22226 # When large executables or shared objects are built, AIX ld can
22227 # have problems creating the table of contents. If linking a library
22228 # or program results in "error TOC overflow" add -mminimal-toc to
22229 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22230 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22231
22232 archive_cmds_F77=''
22233 hardcode_direct_F77=yes
22234 hardcode_libdir_separator_F77=':'
22235 link_all_deplibs_F77=yes
22236
22237 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022238 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022239 # We only want to do this on AIX 4.2 and lower, the check
22240 # below for broken collect2 doesn't work under 4.3+
22241 collect2name=`${CC} -print-prog-name=collect2`
22242 if test -f "$collect2name" && \
22243 strings "$collect2name" | grep resolve_lib_name >/dev/null
22244 then
22245 # We have reworked collect2
22246 hardcode_direct_F77=yes
22247 else
22248 # We have old collect2
22249 hardcode_direct_F77=unsupported
22250 # It fails to find uninstalled libraries when the uninstalled
22251 # path is not listed in the libpath. Setting hardcode_minus_L
22252 # to unsupported forces relinking
22253 hardcode_minus_L_F77=yes
22254 hardcode_libdir_flag_spec_F77='-L$libdir'
22255 hardcode_libdir_separator_F77=
22256 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022257 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022258 esac
22259 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022260 if test "$aix_use_runtimelinking" = yes; then
22261 shared_flag="$shared_flag "'${wl}-G'
22262 fi
John Criswell47fdd832003-07-14 16:52:07 +000022263 else
22264 # not using gcc
22265 if test "$host_cpu" = ia64; then
22266 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22267 # chokes on -Wl,-G. The following line is correct:
22268 shared_flag='-G'
22269 else
Reid Spencera773bd52006-08-04 18:18:08 +000022270 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022271 shared_flag='${wl}-G'
22272 else
22273 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022274 fi
John Criswell47fdd832003-07-14 16:52:07 +000022275 fi
22276 fi
22277
22278 # It seems that -bexpall does not export symbols beginning with
22279 # underscore (_), so it is better to generate a list of symbols to export.
22280 always_export_symbols_F77=yes
22281 if test "$aix_use_runtimelinking" = yes; then
22282 # Warning - without using the other runtime loading flags (-brtl),
22283 # -berok will link without error, but may produce a broken library.
22284 allow_undefined_flag_F77='-berok'
22285 # Determine the default libpath from the value encoded in an empty executable.
22286 cat >conftest.$ac_ext <<_ACEOF
22287 program main
22288
22289 end
22290_ACEOF
22291rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022292if { (ac_try="$ac_link"
22293case "(($ac_try" in
22294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22295 *) ac_try_echo=$ac_try;;
22296esac
22297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22298 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022299 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022300 grep -v '^ *+' conftest.er1 >conftest.err
22301 rm -f conftest.er1
22302 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022304 (exit $ac_status); } &&
22305 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22306 { (case "(($ac_try" in
22307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308 *) ac_try_echo=$ac_try;;
22309esac
22310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22311 (eval "$ac_try") 2>&5
22312 ac_status=$?
22313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314 (exit $ac_status); }; } &&
22315 { ac_try='test -s conftest$ac_exeext'
22316 { (case "(($ac_try" in
22317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22318 *) ac_try_echo=$ac_try;;
22319esac
22320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22321 (eval "$ac_try") 2>&5
22322 ac_status=$?
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022325
22326aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22327}'`
22328# Check for a 64-bit object if we didn't find anything.
22329if 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; }
22330}'`; fi
22331else
22332 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022333sed 's/^/| /' conftest.$ac_ext >&5
22334
Reid Spencera773bd52006-08-04 18:18:08 +000022335
John Criswell47fdd832003-07-14 16:52:07 +000022336fi
Reid Spencera773bd52006-08-04 18:18:08 +000022337
Bill Wendlingebcceee2009-04-18 11:20:33 +000022338rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022339 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022340if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22341
22342 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022343 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 +000022344 else
22345 if test "$host_cpu" = ia64; then
22346 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22347 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022348 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 +000022349 else
22350 # Determine the default libpath from the value encoded in an empty executable.
22351 cat >conftest.$ac_ext <<_ACEOF
22352 program main
22353
22354 end
22355_ACEOF
22356rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022357if { (ac_try="$ac_link"
22358case "(($ac_try" in
22359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22360 *) ac_try_echo=$ac_try;;
22361esac
22362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22363 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022364 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022365 grep -v '^ *+' conftest.er1 >conftest.err
22366 rm -f conftest.er1
22367 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022369 (exit $ac_status); } &&
22370 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22371 { (case "(($ac_try" in
22372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373 *) ac_try_echo=$ac_try;;
22374esac
22375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22376 (eval "$ac_try") 2>&5
22377 ac_status=$?
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; } &&
22380 { ac_try='test -s conftest$ac_exeext'
22381 { (case "(($ac_try" in
22382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22383 *) ac_try_echo=$ac_try;;
22384esac
22385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22386 (eval "$ac_try") 2>&5
22387 ac_status=$?
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022390
22391aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22392}'`
22393# Check for a 64-bit object if we didn't find anything.
22394if 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; }
22395}'`; fi
22396else
22397 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022398sed 's/^/| /' conftest.$ac_ext >&5
22399
Reid Spencera773bd52006-08-04 18:18:08 +000022400
John Criswell47fdd832003-07-14 16:52:07 +000022401fi
Reid Spencera773bd52006-08-04 18:18:08 +000022402
Bill Wendlingebcceee2009-04-18 11:20:33 +000022403rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022404 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022405if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22406
22407 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22408 # Warning - without using the other run time loading flags,
22409 # -berok will link without error, but may produce a broken library.
22410 no_undefined_flag_F77=' ${wl}-bernotok'
22411 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022412 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022413 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022414 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022415 # This is similar to how AIX traditionally builds its shared libraries.
22416 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 +000022417 fi
22418 fi
22419 ;;
22420
22421 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022422 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 +000022423 hardcode_libdir_flag_spec_F77='-L$libdir'
22424 hardcode_minus_L_F77=yes
22425 # see comment about different semantics on the GNU ld section
22426 ld_shlibs_F77=no
22427 ;;
22428
Reid Spencer2706f8c2004-09-19 23:53:36 +000022429 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022430 export_dynamic_flag_spec_F77=-rdynamic
22431 ;;
22432
22433 cygwin* | mingw* | pw32*)
22434 # When not using gcc, we currently assume that we are using
22435 # Microsoft Visual C++.
22436 # hardcode_libdir_flag_spec is actually meaningless, as there is
22437 # no search path for DLLs.
22438 hardcode_libdir_flag_spec_F77=' '
22439 allow_undefined_flag_F77=unsupported
22440 # Tell ltmain to make .lib files, not .a files.
22441 libext=lib
22442 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022443 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022444 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022445 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 +000022446 # The linker will automatically build a .lib file if we build a DLL.
22447 old_archive_From_new_cmds_F77='true'
22448 # FIXME: Should let the user specify the lib program.
22449 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022450 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022451 enable_shared_with_static_runtimes_F77=yes
22452 ;;
22453
22454 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022455 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022456 rhapsody* | darwin1.[012])
22457 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22458 ;;
22459 *) # Darwin 1.3 on
22460 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22461 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22462 else
22463 case ${MACOSX_DEPLOYMENT_TARGET} in
22464 10.[012])
22465 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22466 ;;
22467 10.*)
22468 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22469 ;;
22470 esac
22471 fi
22472 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022473 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022474 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022475 hardcode_direct_F77=no
22476 hardcode_automatic_F77=yes
22477 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022478 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022479 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022480 if test "$GCC" = yes ; then
22481 output_verbose_link_cmd='echo'
22482 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22483 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022484 # 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 +000022485 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}'
22486 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 +000022487 else
Reid Spencera773bd52006-08-04 18:18:08 +000022488 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022489 xlc*)
22490 output_verbose_link_cmd='echo'
22491 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22492 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022493 # 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 +000022494 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}'
22495 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 +000022496 ;;
22497 *)
22498 ld_shlibs_F77=no
22499 ;;
22500 esac
John Criswell47fdd832003-07-14 16:52:07 +000022501 fi
22502 ;;
22503
22504 dgux*)
22505 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22506 hardcode_libdir_flag_spec_F77='-L$libdir'
22507 hardcode_shlibpath_var_F77=no
22508 ;;
22509
22510 freebsd1*)
22511 ld_shlibs_F77=no
22512 ;;
22513
22514 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22515 # support. Future versions do this automatically, but an explicit c++rt0.o
22516 # does not break anything, and helps significantly (at the cost of a little
22517 # extra space).
22518 freebsd2.2*)
22519 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22520 hardcode_libdir_flag_spec_F77='-R$libdir'
22521 hardcode_direct_F77=yes
22522 hardcode_shlibpath_var_F77=no
22523 ;;
22524
22525 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22526 freebsd2*)
22527 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22528 hardcode_direct_F77=yes
22529 hardcode_minus_L_F77=yes
22530 hardcode_shlibpath_var_F77=no
22531 ;;
22532
22533 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022534 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022535 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22536 hardcode_libdir_flag_spec_F77='-R$libdir'
22537 hardcode_direct_F77=yes
22538 hardcode_shlibpath_var_F77=no
22539 ;;
22540
22541 hpux9*)
22542 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022543 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 +000022544 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022545 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 +000022546 fi
22547 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22548 hardcode_libdir_separator_F77=:
22549 hardcode_direct_F77=yes
22550
22551 # hardcode_minus_L: Not really in the search PATH,
22552 # but as the default location of the library.
22553 hardcode_minus_L_F77=yes
22554 export_dynamic_flag_spec_F77='${wl}-E'
22555 ;;
22556
Reid Spencera773bd52006-08-04 18:18:08 +000022557 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022558 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022559 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22560 else
22561 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22562 fi
22563 if test "$with_gnu_ld" = no; then
22564 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22565 hardcode_libdir_separator_F77=:
22566
22567 hardcode_direct_F77=yes
22568 export_dynamic_flag_spec_F77='${wl}-E'
22569
22570 # hardcode_minus_L: Not really in the search PATH,
22571 # but as the default location of the library.
22572 hardcode_minus_L_F77=yes
22573 fi
22574 ;;
22575
22576 hpux11*)
22577 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22578 case $host_cpu in
22579 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022580 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22581 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022582 ia64*)
22583 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22584 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022585 *)
22586 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22587 ;;
22588 esac
22589 else
Reid Spencera773bd52006-08-04 18:18:08 +000022590 case $host_cpu in
22591 hppa*64*)
22592 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22593 ;;
22594 ia64*)
22595 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022596 ;;
22597 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022598 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 +000022599 ;;
22600 esac
22601 fi
22602 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022603 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22604 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022605
Reid Spencera773bd52006-08-04 18:18:08 +000022606 case $host_cpu in
22607 hppa*64*|ia64*)
22608 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22609 hardcode_direct_F77=no
22610 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022611 ;;
22612 *)
John Criswell47fdd832003-07-14 16:52:07 +000022613 hardcode_direct_F77=yes
22614 export_dynamic_flag_spec_F77='${wl}-E'
22615
22616 # hardcode_minus_L: Not really in the search PATH,
22617 # but as the default location of the library.
22618 hardcode_minus_L_F77=yes
22619 ;;
22620 esac
22621 fi
22622 ;;
22623
22624 irix5* | irix6* | nonstopux*)
22625 if test "$GCC" = yes; then
22626 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'
22627 else
22628 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'
22629 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22630 fi
22631 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22632 hardcode_libdir_separator_F77=:
22633 link_all_deplibs_F77=yes
22634 ;;
22635
22636 netbsd*)
22637 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22638 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22639 else
22640 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22641 fi
22642 hardcode_libdir_flag_spec_F77='-R$libdir'
22643 hardcode_direct_F77=yes
22644 hardcode_shlibpath_var_F77=no
22645 ;;
22646
22647 newsos6)
22648 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22649 hardcode_direct_F77=yes
22650 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22651 hardcode_libdir_separator_F77=:
22652 hardcode_shlibpath_var_F77=no
22653 ;;
22654
22655 openbsd*)
22656 hardcode_direct_F77=yes
22657 hardcode_shlibpath_var_F77=no
22658 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22659 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022660 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 +000022661 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22662 export_dynamic_flag_spec_F77='${wl}-E'
22663 else
22664 case $host_os in
22665 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22666 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22667 hardcode_libdir_flag_spec_F77='-R$libdir'
22668 ;;
22669 *)
22670 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22671 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22672 ;;
22673 esac
22674 fi
22675 ;;
22676
22677 os2*)
22678 hardcode_libdir_flag_spec_F77='-L$libdir'
22679 hardcode_minus_L_F77=yes
22680 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022681 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 +000022682 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22683 ;;
22684
22685 osf3*)
22686 if test "$GCC" = yes; then
22687 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22688 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'
22689 else
22690 allow_undefined_flag_F77=' -expect_unresolved \*'
22691 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'
22692 fi
22693 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22694 hardcode_libdir_separator_F77=:
22695 ;;
22696
22697 osf4* | osf5*) # as osf3* with the addition of -msym flag
22698 if test "$GCC" = yes; then
22699 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22700 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'
22701 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22702 else
22703 allow_undefined_flag_F77=' -expect_unresolved \*'
22704 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 +000022705 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 +000022706 $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 +000022707
John Criswell47fdd832003-07-14 16:52:07 +000022708 # Both c and cxx compiler support -rpath directly
22709 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22710 fi
22711 hardcode_libdir_separator_F77=:
22712 ;;
22713
John Criswell47fdd832003-07-14 16:52:07 +000022714 solaris*)
22715 no_undefined_flag_F77=' -z text'
22716 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022717 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022718 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022719 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22720 $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 +000022721 else
Reid Spencera773bd52006-08-04 18:18:08 +000022722 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022723 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022724 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22725 $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 +000022726 fi
22727 hardcode_libdir_flag_spec_F77='-R$libdir'
22728 hardcode_shlibpath_var_F77=no
22729 case $host_os in
22730 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022731 *)
22732 # The compiler driver will combine linker options so we
22733 # cannot just pass the convience library names through
22734 # without $wl, iff we do not link with $LD.
22735 # Luckily, gcc supports the same syntax we need for Sun Studio.
22736 # Supported since Solaris 2.6 (maybe 2.5.1?)
22737 case $wlarc in
22738 '')
22739 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22740 *)
22741 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' ;;
22742 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022743 esac
22744 link_all_deplibs_F77=yes
22745 ;;
22746
22747 sunos4*)
22748 if test "x$host_vendor" = xsequent; then
22749 # Use $CC to link under sequent, because it throws in some extra .o
22750 # files that make .init and .fini sections work.
22751 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22752 else
22753 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22754 fi
22755 hardcode_libdir_flag_spec_F77='-L$libdir'
22756 hardcode_direct_F77=yes
22757 hardcode_minus_L_F77=yes
22758 hardcode_shlibpath_var_F77=no
22759 ;;
22760
22761 sysv4)
22762 case $host_vendor in
22763 sni)
22764 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22765 hardcode_direct_F77=yes # is this really true???
22766 ;;
22767 siemens)
22768 ## LD is ld it makes a PLAMLIB
22769 ## CC just makes a GrossModule.
22770 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22771 reload_cmds_F77='$CC -r -o $output$reload_objs'
22772 hardcode_direct_F77=no
22773 ;;
22774 motorola)
22775 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22776 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22777 ;;
22778 esac
22779 runpath_var='LD_RUN_PATH'
22780 hardcode_shlibpath_var_F77=no
22781 ;;
22782
22783 sysv4.3*)
22784 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22785 hardcode_shlibpath_var_F77=no
22786 export_dynamic_flag_spec_F77='-Bexport'
22787 ;;
22788
22789 sysv4*MP*)
22790 if test -d /usr/nec; then
22791 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22792 hardcode_shlibpath_var_F77=no
22793 runpath_var=LD_RUN_PATH
22794 hardcode_runpath_var=yes
22795 ld_shlibs_F77=yes
22796 fi
22797 ;;
22798
Reid Spencera773bd52006-08-04 18:18:08 +000022799 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22800 no_undefined_flag_F77='${wl}-z,text'
22801 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022802 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022803 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022804
John Criswell47fdd832003-07-14 16:52:07 +000022805 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022806 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22807 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 +000022808 else
Reid Spencera773bd52006-08-04 18:18:08 +000022809 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22810 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 +000022811 fi
John Criswell47fdd832003-07-14 16:52:07 +000022812 ;;
22813
Reid Spencera773bd52006-08-04 18:18:08 +000022814 sysv5* | sco3.2v5* | sco5v6*)
22815 # Note: We can NOT use -z defs as we might desire, because we do not
22816 # link with -lc, and that would cause any symbols used from libc to
22817 # always be unresolved, which means just about no library would
22818 # ever link correctly. If we're not using GNU ld we use -z text
22819 # though, which does catch some bad symbols but isn't as heavy-handed
22820 # as -z defs.
22821 no_undefined_flag_F77='${wl}-z,text'
22822 allow_undefined_flag_F77='${wl}-z,nodefs'
22823 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022824 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022825 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22826 hardcode_libdir_separator_F77=':'
22827 link_all_deplibs_F77=yes
22828 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022829 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022830
22831 if test "$GCC" = yes; then
22832 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22833 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22834 else
22835 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22836 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22837 fi
John Criswell47fdd832003-07-14 16:52:07 +000022838 ;;
22839
22840 uts4*)
22841 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22842 hardcode_libdir_flag_spec_F77='-L$libdir'
22843 hardcode_shlibpath_var_F77=no
22844 ;;
22845
22846 *)
22847 ld_shlibs_F77=no
22848 ;;
22849 esac
22850 fi
22851
Reid Spencera773bd52006-08-04 18:18:08 +000022852{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22853echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022854test "$ld_shlibs_F77" = no && can_build_shared=no
22855
John Criswell47fdd832003-07-14 16:52:07 +000022856#
22857# Do we need to explicitly link libc?
22858#
22859case "x$archive_cmds_need_lc_F77" in
22860x|xyes)
22861 # Assume -lc should be added
22862 archive_cmds_need_lc_F77=yes
22863
22864 if test "$enable_shared" = yes && test "$GCC" = yes; then
22865 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022866 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022867 # FIXME: we may have to deal with multi-command sequences.
22868 ;;
22869 '$CC '*)
22870 # Test whether the compiler implicitly links with -lc since on some
22871 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22872 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022873 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22874echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022875 $rm conftest*
22876 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22877
22878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22879 (eval $ac_compile) 2>&5
22880 ac_status=$?
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); } 2>conftest.err; then
22883 soname=conftest
22884 lib=conftest
22885 libobjs=conftest.$ac_objext
22886 deplibs=
22887 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022888 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022889 compiler_flags=-v
22890 linker_flags=-v
22891 verstring=
22892 output_objdir=.
22893 libname=conftest
22894 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22895 allow_undefined_flag_F77=
22896 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22897 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22898 ac_status=$?
22899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900 (exit $ac_status); }
22901 then
22902 archive_cmds_need_lc_F77=no
22903 else
22904 archive_cmds_need_lc_F77=yes
22905 fi
22906 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22907 else
22908 cat conftest.err 1>&5
22909 fi
22910 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022911 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22912echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022913 ;;
22914 esac
22915 fi
22916 ;;
22917esac
22918
Reid Spencera773bd52006-08-04 18:18:08 +000022919{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22920echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022921library_names_spec=
22922libname_spec='lib$name'
22923soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022924shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022925postinstall_cmds=
22926postuninstall_cmds=
22927finish_cmds=
22928finish_eval=
22929shlibpath_var=
22930shlibpath_overrides_runpath=unknown
22931version_type=none
22932dynamic_linker="$host_os ld.so"
22933sys_lib_dlsearch_path_spec="/lib /usr/lib"
22934if test "$GCC" = yes; then
22935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22936 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22937 # if the path contains ";" then we assume it to be the separator
22938 # otherwise default to the standard path separator (i.e. ":") - it is
22939 # assumed that no part of a normal pathname contains ";" but that should
22940 # okay in the real world where ";" in dirpaths is itself problematic.
22941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22942 else
22943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22944 fi
22945else
22946 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22947fi
22948need_lib_prefix=unknown
22949hardcode_into_libs=no
22950
22951# when you set need_version to no, make sure it does not cause -set_version
22952# flags to be left without arguments
22953need_version=unknown
22954
22955case $host_os in
22956aix3*)
22957 version_type=linux
22958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22959 shlibpath_var=LIBPATH
22960
22961 # AIX 3 has no versioning support, so we append a major version to the name.
22962 soname_spec='${libname}${release}${shared_ext}$major'
22963 ;;
22964
22965aix4* | aix5*)
22966 version_type=linux
22967 need_lib_prefix=no
22968 need_version=no
22969 hardcode_into_libs=yes
22970 if test "$host_cpu" = ia64; then
22971 # AIX 5 supports IA64
22972 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22973 shlibpath_var=LD_LIBRARY_PATH
22974 else
22975 # With GCC up to 2.95.x, collect2 would create an import file
22976 # for dependence libraries. The import file would start with
22977 # the line `#! .'. This would cause the generated library to
22978 # depend on `.', always an invalid library. This was fixed in
22979 # development snapshots of GCC prior to 3.0.
22980 case $host_os in
22981 aix4 | aix4.[01] | aix4.[01].*)
22982 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22983 echo ' yes '
22984 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22985 :
22986 else
22987 can_build_shared=no
22988 fi
22989 ;;
22990 esac
22991 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22992 # soname into executable. Probably we can add versioning support to
22993 # collect2, so additional links can be useful in future.
22994 if test "$aix_use_runtimelinking" = yes; then
22995 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22996 # instead of lib<name>.a to let people know that these are not
22997 # typical AIX shared libraries.
22998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22999 else
23000 # We preserve .a as extension for shared libraries through AIX4.2
23001 # and later when we are not doing run time linking.
23002 library_names_spec='${libname}${release}.a $libname.a'
23003 soname_spec='${libname}${release}${shared_ext}$major'
23004 fi
23005 shlibpath_var=LIBPATH
23006 fi
23007 ;;
23008
23009amigaos*)
23010 library_names_spec='$libname.ixlibrary $libname.a'
23011 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023012 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 +000023013 ;;
23014
23015beos*)
23016 library_names_spec='${libname}${shared_ext}'
23017 dynamic_linker="$host_os ld.so"
23018 shlibpath_var=LIBRARY_PATH
23019 ;;
23020
Reid Spencer2706f8c2004-09-19 23:53:36 +000023021bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023022 version_type=linux
23023 need_version=no
23024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23025 soname_spec='${libname}${release}${shared_ext}$major'
23026 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23027 shlibpath_var=LD_LIBRARY_PATH
23028 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23029 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23030 # the default ld.so.conf also contains /usr/contrib/lib and
23031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23032 # libtool to hard-code these into programs
23033 ;;
23034
23035cygwin* | mingw* | pw32*)
23036 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000023037 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023038 need_version=no
23039 need_lib_prefix=no
23040
23041 case $GCC,$host_os in
23042 yes,cygwin* | yes,mingw* | yes,pw32*)
23043 library_names_spec='$libname.dll.a'
23044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023045 postinstall_cmds='base_file=`basename \${file}`~
23046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23047 dldir=$destdir/`dirname \$dlpath`~
23048 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023049 $install_prog $dir/$dlname \$dldir/$dlname~
23050 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023051 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23052 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023053 $rm \$dlpath'
23054 shlibpath_overrides_runpath=yes
23055
23056 case $host_os in
23057 cygwin*)
23058 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23059 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 +000023060 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023061 ;;
23062 mingw*)
23063 # MinGW DLLs use traditional 'lib' prefix
23064 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23065 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23066 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23067 # It is most probably a Windows format PATH printed by
23068 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23069 # path with ; separators, and with drive letters. We can handle the
23070 # drive letters (cygwin fileutils understands them), so leave them,
23071 # especially as we might pass files found there to a mingw objdump,
23072 # which wouldn't understand a cygwinified path. Ahh.
23073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23074 else
23075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23076 fi
23077 ;;
23078 pw32*)
23079 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023080 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 +000023081 ;;
23082 esac
23083 ;;
23084
23085 *)
23086 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23087 ;;
23088 esac
23089 dynamic_linker='Win32 ld.exe'
23090 # FIXME: first we should search . and the directory the executable is in
23091 shlibpath_var=PATH
23092 ;;
23093
23094darwin* | rhapsody*)
23095 dynamic_linker="$host_os dyld"
23096 version_type=darwin
23097 need_lib_prefix=no
23098 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023099 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023100 soname_spec='${libname}${release}${major}$shared_ext'
23101 shlibpath_overrides_runpath=yes
23102 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023103 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023104 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023105 if test "$GCC" = yes; then
23106 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"`
23107 else
23108 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023109 fi
23110 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23111 ;;
23112
23113dgux*)
23114 version_type=linux
23115 need_lib_prefix=no
23116 need_version=no
23117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23118 soname_spec='${libname}${release}${shared_ext}$major'
23119 shlibpath_var=LD_LIBRARY_PATH
23120 ;;
23121
23122freebsd1*)
23123 dynamic_linker=no
23124 ;;
23125
Reid Spencer2706f8c2004-09-19 23:53:36 +000023126kfreebsd*-gnu)
23127 version_type=linux
23128 need_lib_prefix=no
23129 need_version=no
23130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23131 soname_spec='${libname}${release}${shared_ext}$major'
23132 shlibpath_var=LD_LIBRARY_PATH
23133 shlibpath_overrides_runpath=no
23134 hardcode_into_libs=yes
23135 dynamic_linker='GNU ld.so'
23136 ;;
23137
Reid Spencera773bd52006-08-04 18:18:08 +000023138freebsd* | dragonfly*)
23139 # DragonFly does not have aout. When/if they implement a new
23140 # versioning mechanism, adjust this.
23141 if test -x /usr/bin/objformat; then
23142 objformat=`/usr/bin/objformat`
23143 else
23144 case $host_os in
23145 freebsd[123]*) objformat=aout ;;
23146 *) objformat=elf ;;
23147 esac
23148 fi
John Criswell47fdd832003-07-14 16:52:07 +000023149 version_type=freebsd-$objformat
23150 case $version_type in
23151 freebsd-elf*)
23152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23153 need_version=no
23154 need_lib_prefix=no
23155 ;;
23156 freebsd-*)
23157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23158 need_version=yes
23159 ;;
23160 esac
23161 shlibpath_var=LD_LIBRARY_PATH
23162 case $host_os in
23163 freebsd2*)
23164 shlibpath_overrides_runpath=yes
23165 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023166 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023167 shlibpath_overrides_runpath=yes
23168 hardcode_into_libs=yes
23169 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023170 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23171 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023172 shlibpath_overrides_runpath=no
23173 hardcode_into_libs=yes
23174 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023175 freebsd*) # from 4.6 on
23176 shlibpath_overrides_runpath=yes
23177 hardcode_into_libs=yes
23178 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023179 esac
23180 ;;
23181
23182gnu*)
23183 version_type=linux
23184 need_lib_prefix=no
23185 need_version=no
23186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23187 soname_spec='${libname}${release}${shared_ext}$major'
23188 shlibpath_var=LD_LIBRARY_PATH
23189 hardcode_into_libs=yes
23190 ;;
23191
23192hpux9* | hpux10* | hpux11*)
23193 # Give a soname corresponding to the major version so that dld.sl refuses to
23194 # link against other versions.
23195 version_type=sunos
23196 need_lib_prefix=no
23197 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023198 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023199 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023200 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023201 hardcode_into_libs=yes
23202 dynamic_linker="$host_os dld.so"
23203 shlibpath_var=LD_LIBRARY_PATH
23204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23206 soname_spec='${libname}${release}${shared_ext}$major'
23207 if test "X$HPUX_IA64_MODE" = X32; then
23208 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23209 else
23210 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23211 fi
23212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23213 ;;
23214 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023215 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023216 hardcode_into_libs=yes
23217 dynamic_linker="$host_os dld.sl"
23218 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23221 soname_spec='${libname}${release}${shared_ext}$major'
23222 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23224 ;;
23225 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023226 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023227 dynamic_linker="$host_os dld.sl"
23228 shlibpath_var=SHLIB_PATH
23229 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23231 soname_spec='${libname}${release}${shared_ext}$major'
23232 ;;
23233 esac
23234 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23235 postinstall_cmds='chmod 555 $lib'
23236 ;;
23237
Reid Spencera773bd52006-08-04 18:18:08 +000023238interix3*)
23239 version_type=linux
23240 need_lib_prefix=no
23241 need_version=no
23242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23243 soname_spec='${libname}${release}${shared_ext}$major'
23244 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23245 shlibpath_var=LD_LIBRARY_PATH
23246 shlibpath_overrides_runpath=no
23247 hardcode_into_libs=yes
23248 ;;
23249
John Criswell47fdd832003-07-14 16:52:07 +000023250irix5* | irix6* | nonstopux*)
23251 case $host_os in
23252 nonstopux*) version_type=nonstopux ;;
23253 *)
23254 if test "$lt_cv_prog_gnu_ld" = yes; then
23255 version_type=linux
23256 else
23257 version_type=irix
23258 fi ;;
23259 esac
23260 need_lib_prefix=no
23261 need_version=no
23262 soname_spec='${libname}${release}${shared_ext}$major'
23263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23264 case $host_os in
23265 irix5* | nonstopux*)
23266 libsuff= shlibsuff=
23267 ;;
23268 *)
23269 case $LD in # libtool.m4 will add one of these switches to LD
23270 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23271 libsuff= shlibsuff= libmagic=32-bit;;
23272 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23273 libsuff=32 shlibsuff=N32 libmagic=N32;;
23274 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23275 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23276 *) libsuff= shlibsuff= libmagic=never-match;;
23277 esac
23278 ;;
23279 esac
23280 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23281 shlibpath_overrides_runpath=no
23282 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23283 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23284 hardcode_into_libs=yes
23285 ;;
23286
23287# No shared lib support for Linux oldld, aout, or coff.
23288linux*oldld* | linux*aout* | linux*coff*)
23289 dynamic_linker=no
23290 ;;
23291
23292# This must be Linux ELF.
23293linux*)
23294 version_type=linux
23295 need_lib_prefix=no
23296 need_version=no
23297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23298 soname_spec='${libname}${release}${shared_ext}$major'
23299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23300 shlibpath_var=LD_LIBRARY_PATH
23301 shlibpath_overrides_runpath=no
23302 # This implies no fast_install, which is unacceptable.
23303 # Some rework will be needed to allow for fast_install
23304 # before this can be enabled.
23305 hardcode_into_libs=yes
23306
Reid Spencer2706f8c2004-09-19 23:53:36 +000023307 # Append ld.so.conf contents to the search path
23308 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023309 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 +000023310 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23311 fi
23312
John Criswell47fdd832003-07-14 16:52:07 +000023313 # We used to test for /lib/ld.so.1 and disable shared libraries on
23314 # powerpc, because MkLinux only supported shared libraries with the
23315 # GNU dynamic linker. Since this was broken with cross compilers,
23316 # most powerpc-linux boxes support dynamic linking these days and
23317 # people can always --disable-shared, the test was removed, and we
23318 # assume the GNU/Linux dynamic linker is in use.
23319 dynamic_linker='GNU/Linux ld.so'
23320 ;;
23321
Reid Spencer2706f8c2004-09-19 23:53:36 +000023322knetbsd*-gnu)
23323 version_type=linux
23324 need_lib_prefix=no
23325 need_version=no
23326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23327 soname_spec='${libname}${release}${shared_ext}$major'
23328 shlibpath_var=LD_LIBRARY_PATH
23329 shlibpath_overrides_runpath=no
23330 hardcode_into_libs=yes
23331 dynamic_linker='GNU ld.so'
23332 ;;
23333
John Criswell47fdd832003-07-14 16:52:07 +000023334netbsd*)
23335 version_type=sunos
23336 need_lib_prefix=no
23337 need_version=no
23338 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23341 dynamic_linker='NetBSD (a.out) ld.so'
23342 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023344 soname_spec='${libname}${release}${shared_ext}$major'
23345 dynamic_linker='NetBSD ld.elf_so'
23346 fi
23347 shlibpath_var=LD_LIBRARY_PATH
23348 shlibpath_overrides_runpath=yes
23349 hardcode_into_libs=yes
23350 ;;
23351
23352newsos6)
23353 version_type=linux
23354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23355 shlibpath_var=LD_LIBRARY_PATH
23356 shlibpath_overrides_runpath=yes
23357 ;;
23358
Reid Spencer2706f8c2004-09-19 23:53:36 +000023359nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023360 version_type=linux
23361 need_lib_prefix=no
23362 need_version=no
23363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23364 soname_spec='${libname}${release}${shared_ext}$major'
23365 shlibpath_var=LD_LIBRARY_PATH
23366 shlibpath_overrides_runpath=yes
23367 ;;
23368
23369openbsd*)
23370 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023371 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023372 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023373 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23374 case $host_os in
23375 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23376 *) need_version=no ;;
23377 esac
John Criswell47fdd832003-07-14 16:52:07 +000023378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23380 shlibpath_var=LD_LIBRARY_PATH
23381 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23382 case $host_os in
23383 openbsd2.[89] | openbsd2.[89].*)
23384 shlibpath_overrides_runpath=no
23385 ;;
23386 *)
23387 shlibpath_overrides_runpath=yes
23388 ;;
23389 esac
23390 else
23391 shlibpath_overrides_runpath=yes
23392 fi
23393 ;;
23394
23395os2*)
23396 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023397 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023398 need_lib_prefix=no
23399 library_names_spec='$libname${shared_ext} $libname.a'
23400 dynamic_linker='OS/2 ld.exe'
23401 shlibpath_var=LIBPATH
23402 ;;
23403
23404osf3* | osf4* | osf5*)
23405 version_type=osf
23406 need_lib_prefix=no
23407 need_version=no
23408 soname_spec='${libname}${release}${shared_ext}$major'
23409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23410 shlibpath_var=LD_LIBRARY_PATH
23411 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23412 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23413 ;;
23414
John Criswell47fdd832003-07-14 16:52:07 +000023415solaris*)
23416 version_type=linux
23417 need_lib_prefix=no
23418 need_version=no
23419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23420 soname_spec='${libname}${release}${shared_ext}$major'
23421 shlibpath_var=LD_LIBRARY_PATH
23422 shlibpath_overrides_runpath=yes
23423 hardcode_into_libs=yes
23424 # ldd complains unless libraries are executable
23425 postinstall_cmds='chmod +x $lib'
23426 ;;
23427
23428sunos4*)
23429 version_type=sunos
23430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23431 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23432 shlibpath_var=LD_LIBRARY_PATH
23433 shlibpath_overrides_runpath=yes
23434 if test "$with_gnu_ld" = yes; then
23435 need_lib_prefix=no
23436 fi
23437 need_version=yes
23438 ;;
23439
Reid Spencera773bd52006-08-04 18:18:08 +000023440sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023441 version_type=linux
23442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23443 soname_spec='${libname}${release}${shared_ext}$major'
23444 shlibpath_var=LD_LIBRARY_PATH
23445 case $host_vendor in
23446 sni)
23447 shlibpath_overrides_runpath=no
23448 need_lib_prefix=no
23449 export_dynamic_flag_spec='${wl}-Blargedynsym'
23450 runpath_var=LD_RUN_PATH
23451 ;;
23452 siemens)
23453 need_lib_prefix=no
23454 ;;
23455 motorola)
23456 need_lib_prefix=no
23457 need_version=no
23458 shlibpath_overrides_runpath=no
23459 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23460 ;;
23461 esac
23462 ;;
23463
23464sysv4*MP*)
23465 if test -d /usr/nec ;then
23466 version_type=linux
23467 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23468 soname_spec='$libname${shared_ext}.$major'
23469 shlibpath_var=LD_LIBRARY_PATH
23470 fi
23471 ;;
23472
Reid Spencera773bd52006-08-04 18:18:08 +000023473sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23474 version_type=freebsd-elf
23475 need_lib_prefix=no
23476 need_version=no
23477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23478 soname_spec='${libname}${release}${shared_ext}$major'
23479 shlibpath_var=LD_LIBRARY_PATH
23480 hardcode_into_libs=yes
23481 if test "$with_gnu_ld" = yes; then
23482 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23483 shlibpath_overrides_runpath=no
23484 else
23485 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23486 shlibpath_overrides_runpath=yes
23487 case $host_os in
23488 sco3.2v5*)
23489 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23490 ;;
23491 esac
23492 fi
23493 sys_lib_dlsearch_path_spec='/usr/lib'
23494 ;;
23495
John Criswell47fdd832003-07-14 16:52:07 +000023496uts4*)
23497 version_type=linux
23498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23499 soname_spec='${libname}${release}${shared_ext}$major'
23500 shlibpath_var=LD_LIBRARY_PATH
23501 ;;
23502
23503*)
23504 dynamic_linker=no
23505 ;;
23506esac
Reid Spencera773bd52006-08-04 18:18:08 +000023507{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23508echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023509test "$dynamic_linker" = no && can_build_shared=no
23510
Reid Spencera773bd52006-08-04 18:18:08 +000023511variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23512if test "$GCC" = yes; then
23513 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23514fi
23515
23516{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23517echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023518hardcode_action_F77=
23519if test -n "$hardcode_libdir_flag_spec_F77" || \
23520 test -n "$runpath_var_F77" || \
23521 test "X$hardcode_automatic_F77" = "Xyes" ; then
23522
23523 # We can hardcode non-existant directories.
23524 if test "$hardcode_direct_F77" != no &&
23525 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23526 # have to relink, otherwise we might link with an installed library
23527 # when we should be linking with a yet-to-be-installed one
23528 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23529 test "$hardcode_minus_L_F77" != no; then
23530 # Linking always hardcodes the temporary library directory.
23531 hardcode_action_F77=relink
23532 else
23533 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23534 hardcode_action_F77=immediate
23535 fi
23536else
23537 # We cannot hardcode anything, or else we can only hardcode existing
23538 # directories.
23539 hardcode_action_F77=unsupported
23540fi
Reid Spencera773bd52006-08-04 18:18:08 +000023541{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23542echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023543
23544if test "$hardcode_action_F77" = relink; then
23545 # Fast installation is not supported
23546 enable_fast_install=no
23547elif test "$shlibpath_overrides_runpath" = yes ||
23548 test "$enable_shared" = no; then
23549 # Fast installation is not necessary
23550 enable_fast_install=needless
23551fi
23552
John Criswell47fdd832003-07-14 16:52:07 +000023553
23554# The else clause should only fire when bootstrapping the
23555# libtool distribution, otherwise you forgot to ship ltmain.sh
23556# with your package, and you will get complaints that there are
23557# no rules to generate ltmain.sh.
23558if test -f "$ltmain"; then
23559 # See if we are running on zsh, and set the options which allow our commands through
23560 # without removal of \ escapes.
23561 if test -n "${ZSH_VERSION+set}" ; then
23562 setopt NO_GLOB_SUBST
23563 fi
23564 # Now quote all the things that may contain metacharacters while being
23565 # careful not to overquote the AC_SUBSTed values. We take copies of the
23566 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023567 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 +000023568 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023569 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23570 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23571 deplibs_check_method reload_flag reload_cmds need_locks \
23572 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23573 lt_cv_sys_global_symbol_to_c_name_address \
23574 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23575 old_postinstall_cmds old_postuninstall_cmds \
23576 compiler_F77 \
23577 CC_F77 \
23578 LD_F77 \
23579 lt_prog_compiler_wl_F77 \
23580 lt_prog_compiler_pic_F77 \
23581 lt_prog_compiler_static_F77 \
23582 lt_prog_compiler_no_builtin_flag_F77 \
23583 export_dynamic_flag_spec_F77 \
23584 thread_safe_flag_spec_F77 \
23585 whole_archive_flag_spec_F77 \
23586 enable_shared_with_static_runtimes_F77 \
23587 old_archive_cmds_F77 \
23588 old_archive_from_new_cmds_F77 \
23589 predep_objects_F77 \
23590 postdep_objects_F77 \
23591 predeps_F77 \
23592 postdeps_F77 \
23593 compiler_lib_search_path_F77 \
23594 archive_cmds_F77 \
23595 archive_expsym_cmds_F77 \
23596 postinstall_cmds_F77 \
23597 postuninstall_cmds_F77 \
23598 old_archive_from_expsyms_cmds_F77 \
23599 allow_undefined_flag_F77 \
23600 no_undefined_flag_F77 \
23601 export_symbols_cmds_F77 \
23602 hardcode_libdir_flag_spec_F77 \
23603 hardcode_libdir_flag_spec_ld_F77 \
23604 hardcode_libdir_separator_F77 \
23605 hardcode_automatic_F77 \
23606 module_cmds_F77 \
23607 module_expsym_cmds_F77 \
23608 lt_cv_prog_compiler_c_o_F77 \
23609 exclude_expsyms_F77 \
23610 include_expsyms_F77; do
23611
23612 case $var in
23613 old_archive_cmds_F77 | \
23614 old_archive_from_new_cmds_F77 | \
23615 archive_cmds_F77 | \
23616 archive_expsym_cmds_F77 | \
23617 module_cmds_F77 | \
23618 module_expsym_cmds_F77 | \
23619 old_archive_from_expsyms_cmds_F77 | \
23620 export_symbols_cmds_F77 | \
23621 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23622 postinstall_cmds | postuninstall_cmds | \
23623 old_postinstall_cmds | old_postuninstall_cmds | \
23624 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23625 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023626 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 +000023627 ;;
23628 *)
23629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23630 ;;
23631 esac
23632 done
23633
23634 case $lt_echo in
23635 *'\$0 --fallback-echo"')
23636 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23637 ;;
23638 esac
23639
23640cfgfile="$ofile"
23641
23642 cat <<__EOF__ >> "$cfgfile"
23643# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23644
23645# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23646
23647# Shell to use when invoking shell scripts.
23648SHELL=$lt_SHELL
23649
23650# Whether or not to build shared libraries.
23651build_libtool_libs=$enable_shared
23652
23653# Whether or not to build static libraries.
23654build_old_libs=$enable_static
23655
23656# Whether or not to add -lc for building shared libraries.
23657build_libtool_need_lc=$archive_cmds_need_lc_F77
23658
23659# Whether or not to disallow shared libs when runtime libs are static
23660allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23661
23662# Whether or not to optimize for fast installation.
23663fast_install=$enable_fast_install
23664
23665# The host system.
23666host_alias=$host_alias
23667host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023668host_os=$host_os
23669
23670# The build system.
23671build_alias=$build_alias
23672build=$build
23673build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023674
23675# An echo program that does not interpret backslashes.
23676echo=$lt_echo
23677
23678# The archiver.
23679AR=$lt_AR
23680AR_FLAGS=$lt_AR_FLAGS
23681
23682# A C compiler.
23683LTCC=$lt_LTCC
23684
Reid Spencera773bd52006-08-04 18:18:08 +000023685# LTCC compiler flags.
23686LTCFLAGS=$lt_LTCFLAGS
23687
John Criswell47fdd832003-07-14 16:52:07 +000023688# A language-specific compiler.
23689CC=$lt_compiler_F77
23690
23691# Is the compiler the GNU C compiler?
23692with_gcc=$GCC_F77
23693
23694# An ERE matcher.
23695EGREP=$lt_EGREP
23696
23697# The linker used to build libraries.
23698LD=$lt_LD_F77
23699
23700# Whether we need hard or soft links.
23701LN_S=$lt_LN_S
23702
23703# A BSD-compatible nm program.
23704NM=$lt_NM
23705
23706# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023707STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023708
23709# Used to examine libraries when file_magic_cmd begins "file"
23710MAGIC_CMD=$MAGIC_CMD
23711
23712# Used on cygwin: DLL creation program.
23713DLLTOOL="$DLLTOOL"
23714
23715# Used on cygwin: object dumper.
23716OBJDUMP="$OBJDUMP"
23717
23718# Used on cygwin: assembler.
23719AS="$AS"
23720
23721# The name of the directory that contains temporary libtool files.
23722objdir=$objdir
23723
23724# How to create reloadable object files.
23725reload_flag=$lt_reload_flag
23726reload_cmds=$lt_reload_cmds
23727
23728# How to pass a linker flag through the compiler.
23729wl=$lt_lt_prog_compiler_wl_F77
23730
23731# Object file suffix (normally "o").
23732objext="$ac_objext"
23733
23734# Old archive suffix (normally "a").
23735libext="$libext"
23736
23737# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023738shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023739
23740# Executable file suffix (normally "").
23741exeext="$exeext"
23742
23743# Additional compiler flags for building library objects.
23744pic_flag=$lt_lt_prog_compiler_pic_F77
23745pic_mode=$pic_mode
23746
23747# What is the maximum length of a command?
23748max_cmd_len=$lt_cv_sys_max_cmd_len
23749
23750# Does compiler simultaneously support -c and -o options?
23751compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23752
Reid Spencera773bd52006-08-04 18:18:08 +000023753# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023754need_locks=$lt_need_locks
23755
23756# Do we need the lib prefix for modules?
23757need_lib_prefix=$need_lib_prefix
23758
23759# Do we need a version for libraries?
23760need_version=$need_version
23761
23762# Whether dlopen is supported.
23763dlopen_support=$enable_dlopen
23764
23765# Whether dlopen of programs is supported.
23766dlopen_self=$enable_dlopen_self
23767
23768# Whether dlopen of statically linked programs is supported.
23769dlopen_self_static=$enable_dlopen_self_static
23770
23771# Compiler flag to prevent dynamic linking.
23772link_static_flag=$lt_lt_prog_compiler_static_F77
23773
23774# Compiler flag to turn off builtin functions.
23775no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23776
23777# Compiler flag to allow reflexive dlopens.
23778export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23779
23780# Compiler flag to generate shared objects directly from archives.
23781whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23782
23783# Compiler flag to generate thread-safe objects.
23784thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23785
23786# Library versioning type.
23787version_type=$version_type
23788
23789# Format of library name prefix.
23790libname_spec=$lt_libname_spec
23791
23792# List of archive names. First name is the real one, the rest are links.
23793# The last name is the one that the linker finds with -lNAME.
23794library_names_spec=$lt_library_names_spec
23795
23796# The coded name of the library, if different from the real name.
23797soname_spec=$lt_soname_spec
23798
23799# Commands used to build and install an old-style archive.
23800RANLIB=$lt_RANLIB
23801old_archive_cmds=$lt_old_archive_cmds_F77
23802old_postinstall_cmds=$lt_old_postinstall_cmds
23803old_postuninstall_cmds=$lt_old_postuninstall_cmds
23804
23805# Create an old-style archive from a shared archive.
23806old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23807
23808# Create a temporary old-style archive to link instead of a shared archive.
23809old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23810
23811# Commands used to build and install a shared archive.
23812archive_cmds=$lt_archive_cmds_F77
23813archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23814postinstall_cmds=$lt_postinstall_cmds
23815postuninstall_cmds=$lt_postuninstall_cmds
23816
23817# Commands used to build a loadable module (assumed same as above if empty)
23818module_cmds=$lt_module_cmds_F77
23819module_expsym_cmds=$lt_module_expsym_cmds_F77
23820
23821# Commands to strip libraries.
23822old_striplib=$lt_old_striplib
23823striplib=$lt_striplib
23824
23825# Dependencies to place before the objects being linked to create a
23826# shared library.
23827predep_objects=$lt_predep_objects_F77
23828
23829# Dependencies to place after the objects being linked to create a
23830# shared library.
23831postdep_objects=$lt_postdep_objects_F77
23832
23833# Dependencies to place before the objects being linked to create a
23834# shared library.
23835predeps=$lt_predeps_F77
23836
23837# Dependencies to place after the objects being linked to create a
23838# shared library.
23839postdeps=$lt_postdeps_F77
23840
23841# The library search path used internally by the compiler when linking
23842# a shared library.
23843compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23844
23845# Method to check whether dependent libraries are shared objects.
23846deplibs_check_method=$lt_deplibs_check_method
23847
23848# Command to use when deplibs_check_method == file_magic.
23849file_magic_cmd=$lt_file_magic_cmd
23850
23851# Flag that allows shared libraries with undefined symbols to be built.
23852allow_undefined_flag=$lt_allow_undefined_flag_F77
23853
23854# Flag that forces no undefined symbols.
23855no_undefined_flag=$lt_no_undefined_flag_F77
23856
23857# Commands used to finish a libtool library installation in a directory.
23858finish_cmds=$lt_finish_cmds
23859
23860# Same as above, but a single script fragment to be evaled but not shown.
23861finish_eval=$lt_finish_eval
23862
23863# Take the output of nm and produce a listing of raw symbols and C names.
23864global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23865
23866# Transform the output of nm in a proper C declaration
23867global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23868
23869# Transform the output of nm in a C name address pair
23870global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23871
23872# This is the shared library runtime path variable.
23873runpath_var=$runpath_var
23874
23875# This is the shared library path variable.
23876shlibpath_var=$shlibpath_var
23877
23878# Is shlibpath searched before the hard-coded library search path?
23879shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23880
23881# How to hardcode a shared library path into an executable.
23882hardcode_action=$hardcode_action_F77
23883
23884# Whether we should hardcode library paths into libraries.
23885hardcode_into_libs=$hardcode_into_libs
23886
23887# Flag to hardcode \$libdir into a binary during linking.
23888# This must work even if \$libdir does not exist.
23889hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23890
23891# If ld is used when linking, flag to hardcode \$libdir into
23892# a binary during linking. This must work even if \$libdir does
23893# not exist.
23894hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23895
23896# Whether we need a single -rpath flag with a separated argument.
23897hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23898
23899# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23900# resulting binary.
23901hardcode_direct=$hardcode_direct_F77
23902
23903# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23904# resulting binary.
23905hardcode_minus_L=$hardcode_minus_L_F77
23906
23907# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23908# the resulting binary.
23909hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23910
23911# Set to yes if building a shared library automatically hardcodes DIR into the library
23912# and all subsequent libraries and executables linked against it.
23913hardcode_automatic=$hardcode_automatic_F77
23914
23915# Variables whose values should be saved in libtool wrapper scripts and
23916# restored at relink time.
23917variables_saved_for_relink="$variables_saved_for_relink"
23918
23919# Whether libtool must link a program against all its dependency libraries.
23920link_all_deplibs=$link_all_deplibs_F77
23921
23922# Compile-time system search path for libraries
23923sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23924
23925# Run-time system search path for libraries
23926sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23927
23928# Fix the shell variable \$srcfile for the compiler.
23929fix_srcfile_path="$fix_srcfile_path_F77"
23930
23931# Set to yes if exported symbols are required.
23932always_export_symbols=$always_export_symbols_F77
23933
23934# The commands to list exported symbols.
23935export_symbols_cmds=$lt_export_symbols_cmds_F77
23936
23937# The commands to extract the exported symbol list from a shared archive.
23938extract_expsyms_cmds=$lt_extract_expsyms_cmds
23939
23940# Symbols that should not be listed in the preloaded symbols.
23941exclude_expsyms=$lt_exclude_expsyms_F77
23942
23943# Symbols that must always be exported.
23944include_expsyms=$lt_include_expsyms_F77
23945
23946# ### END LIBTOOL TAG CONFIG: $tagname
23947
23948__EOF__
23949
23950
23951else
23952 # If there is no Makefile yet, we rely on a make rule to execute
23953 # `config.status --recheck' to rerun these tests and create the
23954 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023955 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23956 if test -f "$ltmain_in"; then
23957 test -f Makefile && make "$ltmain"
23958 fi
John Criswell47fdd832003-07-14 16:52:07 +000023959fi
23960
23961
23962ac_ext=c
23963ac_cpp='$CPP $CPPFLAGS'
23964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23966ac_compiler_gnu=$ac_cv_c_compiler_gnu
23967
23968CC="$lt_save_CC"
23969
23970 else
23971 tagname=""
23972 fi
23973 ;;
23974
23975 GCJ)
23976 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023977 ac_ext=c
23978ac_cpp='$CPP $CPPFLAGS'
23979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23981ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023982
23983
23984# Source file extension for Java test sources.
23985ac_ext=java
23986
23987# Object file extension for compiled Java test sources.
23988objext=o
23989objext_GCJ=$objext
23990
23991# Code to be used in simple compile tests
23992lt_simple_compile_test_code="class foo {}\n"
23993
23994# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023995lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023996
23997# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23998
23999# If no C compiler was specified, use CC.
24000LTCC=${LTCC-"$CC"}
24001
Reid Spencera773bd52006-08-04 18:18:08 +000024002# If no C compiler flags were specified, use CFLAGS.
24003LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24004
John Criswell47fdd832003-07-14 16:52:07 +000024005# Allow CC to be a program name with arguments.
24006compiler=$CC
24007
24008
Reid Spencera773bd52006-08-04 18:18:08 +000024009# save warnings/boilerplate of simple test code
24010ac_outfile=conftest.$ac_objext
24011printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24012eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24013_lt_compiler_boilerplate=`cat conftest.err`
24014$rm conftest*
24015
24016ac_outfile=conftest.$ac_objext
24017printf "$lt_simple_link_test_code" >conftest.$ac_ext
24018eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24019_lt_linker_boilerplate=`cat conftest.err`
24020$rm conftest*
24021
24022
John Criswell47fdd832003-07-14 16:52:07 +000024023# Allow CC to be a program name with arguments.
24024lt_save_CC="$CC"
24025CC=${GCJ-"gcj"}
24026compiler=$CC
24027compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000024028for cc_temp in $compiler""; do
24029 case $cc_temp in
24030 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24031 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24032 \-*) ;;
24033 *) break;;
24034 esac
24035done
24036cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24037
John Criswell47fdd832003-07-14 16:52:07 +000024038
24039# GCJ did not exist at the time GCC didn't implicitly link libc in.
24040archive_cmds_need_lc_GCJ=no
24041
Reid Spencera773bd52006-08-04 18:18:08 +000024042old_archive_cmds_GCJ=$old_archive_cmds
24043
John Criswell47fdd832003-07-14 16:52:07 +000024044
24045lt_prog_compiler_no_builtin_flag_GCJ=
24046
24047if test "$GCC" = yes; then
24048 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24049
Reid Spencer2706f8c2004-09-19 23:53:36 +000024050
Reid Spencera773bd52006-08-04 18:18:08 +000024051{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24052echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024053if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24054 echo $ECHO_N "(cached) $ECHO_C" >&6
24055else
24056 lt_cv_prog_compiler_rtti_exceptions=no
24057 ac_outfile=conftest.$ac_objext
24058 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24059 lt_compiler_flag="-fno-rtti -fno-exceptions"
24060 # Insert the option either (1) after the last *FLAGS variable, or
24061 # (2) before a word containing "conftest.", or (3) at the end.
24062 # Note that $ac_compile itself does not contain backslashes and begins
24063 # with a dollar sign (not a hyphen), so the echo should work correctly.
24064 # The option is referenced via a variable to avoid confusing sed.
24065 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24068 -e 's:$: $lt_compiler_flag:'`
David Greenef0b9eff2009-07-09 17:16:26 +000024069 (eval echo "\"\$as_me:24069: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024070 (eval "$lt_compile" 2>conftest.err)
24071 ac_status=$?
24072 cat conftest.err >&5
David Greenef0b9eff2009-07-09 17:16:26 +000024073 echo "$as_me:24073: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024074 if (exit $ac_status) && test -s "$ac_outfile"; then
24075 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024076 # So say no if there are warnings other than the usual output.
24077 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24079 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024080 lt_cv_prog_compiler_rtti_exceptions=yes
24081 fi
24082 fi
24083 $rm conftest*
24084
24085fi
Reid Spencera773bd52006-08-04 18:18:08 +000024086{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24087echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024088
24089if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24090 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24091else
24092 :
24093fi
24094
24095fi
24096
24097lt_prog_compiler_wl_GCJ=
24098lt_prog_compiler_pic_GCJ=
24099lt_prog_compiler_static_GCJ=
24100
Reid Spencera773bd52006-08-04 18:18:08 +000024101{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24102echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024103
24104 if test "$GCC" = yes; then
24105 lt_prog_compiler_wl_GCJ='-Wl,'
24106 lt_prog_compiler_static_GCJ='-static'
24107
24108 case $host_os in
24109 aix*)
24110 # All AIX code is PIC.
24111 if test "$host_cpu" = ia64; then
24112 # AIX 5 now supports IA64 processor
24113 lt_prog_compiler_static_GCJ='-Bstatic'
24114 fi
24115 ;;
24116
24117 amigaos*)
24118 # FIXME: we need at least 68020 code to build shared libraries, but
24119 # adding the `-m68020' flag to GCC prevents building anything better,
24120 # like `-m68040'.
24121 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24122 ;;
24123
24124 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24125 # PIC is the default for these OSes.
24126 ;;
24127
24128 mingw* | pw32* | os2*)
24129 # This hack is so that the source file can tell whether it is being
24130 # built for inclusion in a dll (and should export symbols for example).
24131 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24132 ;;
24133
24134 darwin* | rhapsody*)
24135 # PIC is the default on this platform
24136 # Common symbols not allowed in MH_DYLIB files
24137 lt_prog_compiler_pic_GCJ='-fno-common'
24138 ;;
24139
Reid Spencera773bd52006-08-04 18:18:08 +000024140 interix3*)
24141 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24142 # Instead, we relocate shared libraries at runtime.
24143 ;;
24144
John Criswell47fdd832003-07-14 16:52:07 +000024145 msdosdjgpp*)
24146 # Just because we use GCC doesn't mean we suddenly get shared libraries
24147 # on systems that don't support them.
24148 lt_prog_compiler_can_build_shared_GCJ=no
24149 enable_shared=no
24150 ;;
24151
24152 sysv4*MP*)
24153 if test -d /usr/nec; then
24154 lt_prog_compiler_pic_GCJ=-Kconform_pic
24155 fi
24156 ;;
24157
24158 hpux*)
24159 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24160 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024161 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024162 hppa*64*|ia64*)
24163 # +Z the default
24164 ;;
24165 *)
24166 lt_prog_compiler_pic_GCJ='-fPIC'
24167 ;;
24168 esac
24169 ;;
24170
24171 *)
24172 lt_prog_compiler_pic_GCJ='-fPIC'
24173 ;;
24174 esac
24175 else
24176 # PORTME Check for flag to pass linker flags through the system compiler.
24177 case $host_os in
24178 aix*)
24179 lt_prog_compiler_wl_GCJ='-Wl,'
24180 if test "$host_cpu" = ia64; then
24181 # AIX 5 now supports IA64 processor
24182 lt_prog_compiler_static_GCJ='-Bstatic'
24183 else
24184 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24185 fi
24186 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024187 darwin*)
24188 # PIC is the default on this platform
24189 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024190 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024191 xlc*)
24192 lt_prog_compiler_pic_GCJ='-qnocommon'
24193 lt_prog_compiler_wl_GCJ='-Wl,'
24194 ;;
24195 esac
24196 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024197
24198 mingw* | pw32* | os2*)
24199 # This hack is so that the source file can tell whether it is being
24200 # built for inclusion in a dll (and should export symbols for example).
24201 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24202 ;;
24203
24204 hpux9* | hpux10* | hpux11*)
24205 lt_prog_compiler_wl_GCJ='-Wl,'
24206 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24207 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024208 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024209 hppa*64*|ia64*)
24210 # +Z the default
24211 ;;
24212 *)
24213 lt_prog_compiler_pic_GCJ='+Z'
24214 ;;
24215 esac
24216 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24217 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24218 ;;
24219
24220 irix5* | irix6* | nonstopux*)
24221 lt_prog_compiler_wl_GCJ='-Wl,'
24222 # PIC (with -KPIC) is the default.
24223 lt_prog_compiler_static_GCJ='-non_shared'
24224 ;;
24225
24226 newsos6)
24227 lt_prog_compiler_pic_GCJ='-KPIC'
24228 lt_prog_compiler_static_GCJ='-Bstatic'
24229 ;;
24230
24231 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024232 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024233 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024234 lt_prog_compiler_wl_GCJ='-Wl,'
24235 lt_prog_compiler_pic_GCJ='-KPIC'
24236 lt_prog_compiler_static_GCJ='-static'
24237 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024238 pgcc* | pgf77* | pgf90* | pgf95*)
24239 # Portland Group compilers (*not* the Pentium gcc compiler,
24240 # which looks to be a dead project)
24241 lt_prog_compiler_wl_GCJ='-Wl,'
24242 lt_prog_compiler_pic_GCJ='-fpic'
24243 lt_prog_compiler_static_GCJ='-Bstatic'
24244 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024245 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024246 lt_prog_compiler_wl_GCJ='-Wl,'
24247 # All Alpha code is PIC.
24248 lt_prog_compiler_static_GCJ='-non_shared'
24249 ;;
24250 esac
24251 ;;
24252
24253 osf3* | osf4* | osf5*)
24254 lt_prog_compiler_wl_GCJ='-Wl,'
24255 # All OSF/1 code is PIC.
24256 lt_prog_compiler_static_GCJ='-non_shared'
24257 ;;
24258
John Criswell47fdd832003-07-14 16:52:07 +000024259 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024260 lt_prog_compiler_pic_GCJ='-KPIC'
24261 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024262 case $cc_basename in
24263 f77* | f90* | f95*)
24264 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24265 *)
24266 lt_prog_compiler_wl_GCJ='-Wl,';;
24267 esac
John Criswell47fdd832003-07-14 16:52:07 +000024268 ;;
24269
24270 sunos4*)
24271 lt_prog_compiler_wl_GCJ='-Qoption ld '
24272 lt_prog_compiler_pic_GCJ='-PIC'
24273 lt_prog_compiler_static_GCJ='-Bstatic'
24274 ;;
24275
Reid Spencera773bd52006-08-04 18:18:08 +000024276 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024277 lt_prog_compiler_wl_GCJ='-Wl,'
24278 lt_prog_compiler_pic_GCJ='-KPIC'
24279 lt_prog_compiler_static_GCJ='-Bstatic'
24280 ;;
24281
24282 sysv4*MP*)
24283 if test -d /usr/nec ;then
24284 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24285 lt_prog_compiler_static_GCJ='-Bstatic'
24286 fi
24287 ;;
24288
Reid Spencera773bd52006-08-04 18:18:08 +000024289 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24290 lt_prog_compiler_wl_GCJ='-Wl,'
24291 lt_prog_compiler_pic_GCJ='-KPIC'
24292 lt_prog_compiler_static_GCJ='-Bstatic'
24293 ;;
24294
24295 unicos*)
24296 lt_prog_compiler_wl_GCJ='-Wl,'
24297 lt_prog_compiler_can_build_shared_GCJ=no
24298 ;;
24299
John Criswell47fdd832003-07-14 16:52:07 +000024300 uts4*)
24301 lt_prog_compiler_pic_GCJ='-pic'
24302 lt_prog_compiler_static_GCJ='-Bstatic'
24303 ;;
24304
24305 *)
24306 lt_prog_compiler_can_build_shared_GCJ=no
24307 ;;
24308 esac
24309 fi
24310
Reid Spencera773bd52006-08-04 18:18:08 +000024311{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24312echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024313
24314#
24315# Check to make sure the PIC flag actually works.
24316#
24317if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024318
Reid Spencera773bd52006-08-04 18:18:08 +000024319{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24320echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024321if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24322 echo $ECHO_N "(cached) $ECHO_C" >&6
24323else
24324 lt_prog_compiler_pic_works_GCJ=no
24325 ac_outfile=conftest.$ac_objext
24326 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24327 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24328 # Insert the option either (1) after the last *FLAGS variable, or
24329 # (2) before a word containing "conftest.", or (3) at the end.
24330 # Note that $ac_compile itself does not contain backslashes and begins
24331 # with a dollar sign (not a hyphen), so the echo should work correctly.
24332 # The option is referenced via a variable to avoid confusing sed.
24333 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24336 -e 's:$: $lt_compiler_flag:'`
David Greenef0b9eff2009-07-09 17:16:26 +000024337 (eval echo "\"\$as_me:24337: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024338 (eval "$lt_compile" 2>conftest.err)
24339 ac_status=$?
24340 cat conftest.err >&5
David Greenef0b9eff2009-07-09 17:16:26 +000024341 echo "$as_me:24341: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024342 if (exit $ac_status) && test -s "$ac_outfile"; then
24343 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024344 # So say no if there are warnings other than the usual output.
24345 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24347 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024348 lt_prog_compiler_pic_works_GCJ=yes
24349 fi
24350 fi
24351 $rm conftest*
24352
24353fi
Reid Spencera773bd52006-08-04 18:18:08 +000024354{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24355echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024356
24357if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24358 case $lt_prog_compiler_pic_GCJ in
24359 "" | " "*) ;;
24360 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24361 esac
24362else
24363 lt_prog_compiler_pic_GCJ=
24364 lt_prog_compiler_can_build_shared_GCJ=no
24365fi
24366
24367fi
Reid Spencera773bd52006-08-04 18:18:08 +000024368case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024369 # For platforms which do not support PIC, -DPIC is meaningless:
24370 *djgpp*)
24371 lt_prog_compiler_pic_GCJ=
24372 ;;
24373 *)
24374 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24375 ;;
24376esac
24377
Reid Spencera773bd52006-08-04 18:18:08 +000024378#
24379# Check to make sure the static flag actually works.
24380#
24381wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24382{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24383echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24384if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24385 echo $ECHO_N "(cached) $ECHO_C" >&6
24386else
24387 lt_prog_compiler_static_works_GCJ=no
24388 save_LDFLAGS="$LDFLAGS"
24389 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24390 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24391 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24392 # The linker can only warn and ignore the option if not recognized
24393 # So say no if there are warnings
24394 if test -s conftest.err; then
24395 # Append any errors to the config.log.
24396 cat conftest.err 1>&5
24397 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24399 if diff conftest.exp conftest.er2 >/dev/null; then
24400 lt_prog_compiler_static_works_GCJ=yes
24401 fi
24402 else
24403 lt_prog_compiler_static_works_GCJ=yes
24404 fi
24405 fi
24406 $rm conftest*
24407 LDFLAGS="$save_LDFLAGS"
24408
24409fi
24410{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24411echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24412
24413if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24414 :
24415else
24416 lt_prog_compiler_static_GCJ=
24417fi
24418
24419
24420{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24421echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024422if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24423 echo $ECHO_N "(cached) $ECHO_C" >&6
24424else
24425 lt_cv_prog_compiler_c_o_GCJ=no
24426 $rm -r conftest 2>/dev/null
24427 mkdir conftest
24428 cd conftest
24429 mkdir out
24430 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24431
John Criswell47fdd832003-07-14 16:52:07 +000024432 lt_compiler_flag="-o out/conftest2.$ac_objext"
24433 # Insert the option either (1) after the last *FLAGS variable, or
24434 # (2) before a word containing "conftest.", or (3) at the end.
24435 # Note that $ac_compile itself does not contain backslashes and begins
24436 # with a dollar sign (not a hyphen), so the echo should work correctly.
24437 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24440 -e 's:$: $lt_compiler_flag:'`
David Greenef0b9eff2009-07-09 17:16:26 +000024441 (eval echo "\"\$as_me:24441: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024442 (eval "$lt_compile" 2>out/conftest.err)
24443 ac_status=$?
24444 cat out/conftest.err >&5
David Greenef0b9eff2009-07-09 17:16:26 +000024445 echo "$as_me:24445: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024446 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24447 then
24448 # The compiler can only warn and ignore the option if not recognized
24449 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024450 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24451 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24452 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024453 lt_cv_prog_compiler_c_o_GCJ=yes
24454 fi
24455 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024456 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024457 $rm conftest*
24458 # SGI C++ compiler will create directory out/ii_files/ for
24459 # template instantiation
24460 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24461 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024462 cd ..
24463 rmdir conftest
24464 $rm conftest*
24465
24466fi
Reid Spencera773bd52006-08-04 18:18:08 +000024467{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24468echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024469
24470
24471hard_links="nottested"
24472if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24473 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024474 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24475echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024476 hard_links=yes
24477 $rm conftest*
24478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24479 touch conftest.a
24480 ln conftest.a conftest.b 2>&5 || hard_links=no
24481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024482 { echo "$as_me:$LINENO: result: $hard_links" >&5
24483echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024484 if test "$hard_links" = no; then
24485 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24486echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24487 need_locks=warn
24488 fi
24489else
24490 need_locks=no
24491fi
24492
Reid Spencera773bd52006-08-04 18:18:08 +000024493{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24494echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024495
24496 runpath_var=
24497 allow_undefined_flag_GCJ=
24498 enable_shared_with_static_runtimes_GCJ=no
24499 archive_cmds_GCJ=
24500 archive_expsym_cmds_GCJ=
24501 old_archive_From_new_cmds_GCJ=
24502 old_archive_from_expsyms_cmds_GCJ=
24503 export_dynamic_flag_spec_GCJ=
24504 whole_archive_flag_spec_GCJ=
24505 thread_safe_flag_spec_GCJ=
24506 hardcode_libdir_flag_spec_GCJ=
24507 hardcode_libdir_flag_spec_ld_GCJ=
24508 hardcode_libdir_separator_GCJ=
24509 hardcode_direct_GCJ=no
24510 hardcode_minus_L_GCJ=no
24511 hardcode_shlibpath_var_GCJ=unsupported
24512 link_all_deplibs_GCJ=unknown
24513 hardcode_automatic_GCJ=no
24514 module_cmds_GCJ=
24515 module_expsym_cmds_GCJ=
24516 always_export_symbols_GCJ=no
24517 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24518 # include_expsyms should be a list of space-separated symbols to be *always*
24519 # included in the symbol list
24520 include_expsyms_GCJ=
24521 # exclude_expsyms can be an extended regexp of symbols to exclude
24522 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24523 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24524 # as well as any symbol that contains `d'.
24525 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24526 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24527 # platforms (ab)use it in PIC code, but their linkers get confused if
24528 # the symbol is explicitly referenced. Since portable code cannot
24529 # rely on this symbol name, it's probably fine to never include it in
24530 # preloaded symbol tables.
24531 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024532 # Just being paranoid about ensuring that cc_basename is set.
24533 for cc_temp in $compiler""; do
24534 case $cc_temp in
24535 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24536 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24537 \-*) ;;
24538 *) break;;
24539 esac
24540done
24541cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024542
24543 case $host_os in
24544 cygwin* | mingw* | pw32*)
24545 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24546 # When not using gcc, we currently assume that we are using
24547 # Microsoft Visual C++.
24548 if test "$GCC" != yes; then
24549 with_gnu_ld=no
24550 fi
24551 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024552 interix*)
24553 # we just hope/assume this is gcc and not c89 (= MSVC++)
24554 with_gnu_ld=yes
24555 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024556 openbsd*)
24557 with_gnu_ld=no
24558 ;;
24559 esac
24560
24561 ld_shlibs_GCJ=yes
24562 if test "$with_gnu_ld" = yes; then
24563 # If archive_cmds runs LD, not CC, wlarc should be empty
24564 wlarc='${wl}'
24565
Reid Spencera773bd52006-08-04 18:18:08 +000024566 # Set some defaults for GNU ld with shared library support. These
24567 # are reset later if shared libraries are not supported. Putting them
24568 # here allows them to be overridden if necessary.
24569 runpath_var=LD_RUN_PATH
24570 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24571 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24572 # ancient GNU ld didn't support --whole-archive et. al.
24573 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24574 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24575 else
24576 whole_archive_flag_spec_GCJ=
24577 fi
24578 supports_anon_versioning=no
24579 case `$LD -v 2>/dev/null` in
24580 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24581 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24582 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24583 *\ 2.11.*) ;; # other 2.11 versions
24584 *) supports_anon_versioning=yes ;;
24585 esac
24586
John Criswell47fdd832003-07-14 16:52:07 +000024587 # See if GNU ld supports shared libraries.
24588 case $host_os in
24589 aix3* | aix4* | aix5*)
24590 # On AIX/PPC, the GNU linker is very broken
24591 if test "$host_cpu" != ia64; then
24592 ld_shlibs_GCJ=no
24593 cat <<EOF 1>&2
24594
24595*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24596*** to be unable to reliably create shared libraries on AIX.
24597*** Therefore, libtool is disabling shared libraries support. If you
24598*** really care for shared libraries, you may want to modify your PATH
24599*** so that a non-GNU linker is found, and then restart.
24600
24601EOF
24602 fi
24603 ;;
24604
24605 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024606 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 +000024607 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24608 hardcode_minus_L_GCJ=yes
24609
24610 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24611 # that the semantics of dynamic libraries on AmigaOS, at least up
24612 # to version 4, is to share data among multiple programs linked
24613 # with the same dynamic library. Since this doesn't match the
24614 # behavior of shared libraries on other platforms, we can't use
24615 # them.
24616 ld_shlibs_GCJ=no
24617 ;;
24618
24619 beos*)
24620 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24621 allow_undefined_flag_GCJ=unsupported
24622 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24623 # support --undefined. This deserves some investigation. FIXME
24624 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24625 else
24626 ld_shlibs_GCJ=no
24627 fi
24628 ;;
24629
24630 cygwin* | mingw* | pw32*)
24631 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24632 # as there is no search path for DLLs.
24633 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24634 allow_undefined_flag_GCJ=unsupported
24635 always_export_symbols_GCJ=no
24636 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024637 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 +000024638
24639 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024640 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 +000024641 # If the export-symbols file already is a .def file (1st line
24642 # is EXPORTS), use it as is; otherwise, prepend...
24643 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24644 cp $export_symbols $output_objdir/$soname.def;
24645 else
24646 echo EXPORTS > $output_objdir/$soname.def;
24647 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024648 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024649 $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 +000024650 else
Reid Spencera773bd52006-08-04 18:18:08 +000024651 ld_shlibs_GCJ=no
24652 fi
24653 ;;
24654
24655 interix3*)
24656 hardcode_direct_GCJ=no
24657 hardcode_shlibpath_var_GCJ=no
24658 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24659 export_dynamic_flag_spec_GCJ='${wl}-E'
24660 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24661 # Instead, shared libraries are loaded at an image base (0x10000000 by
24662 # default) and relocated if they conflict, which is a slow very memory
24663 # consuming and fragmenting process. To avoid this, we pick a random,
24664 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24665 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24666 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'
24667 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'
24668 ;;
24669
24670 linux*)
24671 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24672 tmp_addflag=
24673 case $cc_basename,$host_cpu in
24674 pgcc*) # Portland Group C compiler
24675 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'
24676 tmp_addflag=' $pic_flag'
24677 ;;
24678 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24679 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'
24680 tmp_addflag=' $pic_flag -Mnomain' ;;
24681 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24682 tmp_addflag=' -i_dynamic' ;;
24683 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24684 tmp_addflag=' -i_dynamic -nofor_main' ;;
24685 ifc* | ifort*) # Intel Fortran compiler
24686 tmp_addflag=' -nofor_main' ;;
24687 esac
24688 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24689
24690 if test $supports_anon_versioning = yes; then
24691 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24692 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24693 $echo "local: *; };" >> $output_objdir/$libname.ver~
24694 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24695 fi
24696 else
24697 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024698 fi
24699 ;;
24700
24701 netbsd*)
24702 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24703 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24704 wlarc=
24705 else
24706 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24707 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24708 fi
24709 ;;
24710
Reid Spencera773bd52006-08-04 18:18:08 +000024711 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024712 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24713 ld_shlibs_GCJ=no
24714 cat <<EOF 1>&2
24715
24716*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24717*** create shared libraries on Solaris systems. Therefore, libtool
24718*** is disabling shared libraries support. We urge you to upgrade GNU
24719*** binutils to release 2.9.1 or newer. Another option is to modify
24720*** your PATH or compiler configuration so that the native linker is
24721*** used, and then restart.
24722
24723EOF
24724 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24725 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24726 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24727 else
24728 ld_shlibs_GCJ=no
24729 fi
24730 ;;
24731
Reid Spencera773bd52006-08-04 18:18:08 +000024732 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24733 case `$LD -v 2>&1` in
24734 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24735 ld_shlibs_GCJ=no
24736 cat <<_LT_EOF 1>&2
24737
24738*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24739*** reliably create shared libraries on SCO systems. Therefore, libtool
24740*** is disabling shared libraries support. We urge you to upgrade GNU
24741*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24742*** your PATH or compiler configuration so that the native linker is
24743*** used, and then restart.
24744
24745_LT_EOF
24746 ;;
24747 *)
24748 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24749 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24750 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24751 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24752 else
24753 ld_shlibs_GCJ=no
24754 fi
24755 ;;
24756 esac
24757 ;;
24758
John Criswell47fdd832003-07-14 16:52:07 +000024759 sunos4*)
24760 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24761 wlarc=
24762 hardcode_direct_GCJ=yes
24763 hardcode_shlibpath_var_GCJ=no
24764 ;;
24765
24766 *)
24767 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24768 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24769 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24770 else
24771 ld_shlibs_GCJ=no
24772 fi
24773 ;;
24774 esac
24775
Reid Spencera773bd52006-08-04 18:18:08 +000024776 if test "$ld_shlibs_GCJ" = no; then
24777 runpath_var=
24778 hardcode_libdir_flag_spec_GCJ=
24779 export_dynamic_flag_spec_GCJ=
24780 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024781 fi
24782 else
24783 # PORTME fill in a description of your system's linker (not GNU ld)
24784 case $host_os in
24785 aix3*)
24786 allow_undefined_flag_GCJ=unsupported
24787 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024788 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 +000024789 # Note: this linker hardcodes the directories in LIBPATH if there
24790 # are no directories specified by -L.
24791 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024792 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024793 # Neither direct hardcoding nor static linking is supported with a
24794 # broken collect2.
24795 hardcode_direct_GCJ=unsupported
24796 fi
24797 ;;
24798
24799 aix4* | aix5*)
24800 if test "$host_cpu" = ia64; then
24801 # On IA64, the linker does run time linking by default, so we don't
24802 # have to do anything special.
24803 aix_use_runtimelinking=no
24804 exp_sym_flag='-Bexport'
24805 no_entry_flag=""
24806 else
24807 # If we're using GNU nm, then we don't want the "-C" option.
24808 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24809 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24810 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'
24811 else
24812 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'
24813 fi
24814 aix_use_runtimelinking=no
24815
24816 # Test if we are trying to use run time linking or normal
24817 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24818 # need to do runtime linking.
24819 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24820 for ld_flag in $LDFLAGS; do
24821 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24822 aix_use_runtimelinking=yes
24823 break
24824 fi
24825 done
Reid Spencera773bd52006-08-04 18:18:08 +000024826 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024827 esac
24828
24829 exp_sym_flag='-bexport'
24830 no_entry_flag='-bnoentry'
24831 fi
24832
24833 # When large executables or shared objects are built, AIX ld can
24834 # have problems creating the table of contents. If linking a library
24835 # or program results in "error TOC overflow" add -mminimal-toc to
24836 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24837 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24838
24839 archive_cmds_GCJ=''
24840 hardcode_direct_GCJ=yes
24841 hardcode_libdir_separator_GCJ=':'
24842 link_all_deplibs_GCJ=yes
24843
24844 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024845 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024846 # We only want to do this on AIX 4.2 and lower, the check
24847 # below for broken collect2 doesn't work under 4.3+
24848 collect2name=`${CC} -print-prog-name=collect2`
24849 if test -f "$collect2name" && \
24850 strings "$collect2name" | grep resolve_lib_name >/dev/null
24851 then
24852 # We have reworked collect2
24853 hardcode_direct_GCJ=yes
24854 else
24855 # We have old collect2
24856 hardcode_direct_GCJ=unsupported
24857 # It fails to find uninstalled libraries when the uninstalled
24858 # path is not listed in the libpath. Setting hardcode_minus_L
24859 # to unsupported forces relinking
24860 hardcode_minus_L_GCJ=yes
24861 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24862 hardcode_libdir_separator_GCJ=
24863 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024864 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024865 esac
24866 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024867 if test "$aix_use_runtimelinking" = yes; then
24868 shared_flag="$shared_flag "'${wl}-G'
24869 fi
John Criswell47fdd832003-07-14 16:52:07 +000024870 else
24871 # not using gcc
24872 if test "$host_cpu" = ia64; then
24873 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24874 # chokes on -Wl,-G. The following line is correct:
24875 shared_flag='-G'
24876 else
Reid Spencera773bd52006-08-04 18:18:08 +000024877 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024878 shared_flag='${wl}-G'
24879 else
24880 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024881 fi
John Criswell47fdd832003-07-14 16:52:07 +000024882 fi
24883 fi
24884
24885 # It seems that -bexpall does not export symbols beginning with
24886 # underscore (_), so it is better to generate a list of symbols to export.
24887 always_export_symbols_GCJ=yes
24888 if test "$aix_use_runtimelinking" = yes; then
24889 # Warning - without using the other runtime loading flags (-brtl),
24890 # -berok will link without error, but may produce a broken library.
24891 allow_undefined_flag_GCJ='-berok'
24892 # Determine the default libpath from the value encoded in an empty executable.
24893 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024894/* confdefs.h. */
24895_ACEOF
24896cat confdefs.h >>conftest.$ac_ext
24897cat >>conftest.$ac_ext <<_ACEOF
24898/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024899
John Criswell47fdd832003-07-14 16:52:07 +000024900int
24901main ()
24902{
24903
24904 ;
24905 return 0;
24906}
24907_ACEOF
24908rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024909if { (ac_try="$ac_link"
24910case "(($ac_try" in
24911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24912 *) ac_try_echo=$ac_try;;
24913esac
24914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24915 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024916 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024917 grep -v '^ *+' conftest.er1 >conftest.err
24918 rm -f conftest.er1
24919 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024921 (exit $ac_status); } &&
24922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24923 { (case "(($ac_try" in
24924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24925 *) ac_try_echo=$ac_try;;
24926esac
24927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24928 (eval "$ac_try") 2>&5
24929 ac_status=$?
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); }; } &&
24932 { ac_try='test -s conftest$ac_exeext'
24933 { (case "(($ac_try" in
24934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24935 *) ac_try_echo=$ac_try;;
24936esac
24937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24938 (eval "$ac_try") 2>&5
24939 ac_status=$?
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024942
24943aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24944}'`
24945# Check for a 64-bit object if we didn't find anything.
24946if 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; }
24947}'`; fi
24948else
24949 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024950sed 's/^/| /' conftest.$ac_ext >&5
24951
Reid Spencera773bd52006-08-04 18:18:08 +000024952
John Criswell47fdd832003-07-14 16:52:07 +000024953fi
Reid Spencera773bd52006-08-04 18:18:08 +000024954
Bill Wendlingebcceee2009-04-18 11:20:33 +000024955rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024956 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024957if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24958
24959 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024960 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 +000024961 else
24962 if test "$host_cpu" = ia64; then
24963 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24964 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024965 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 +000024966 else
24967 # Determine the default libpath from the value encoded in an empty executable.
24968 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024969/* confdefs.h. */
24970_ACEOF
24971cat confdefs.h >>conftest.$ac_ext
24972cat >>conftest.$ac_ext <<_ACEOF
24973/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024974
John Criswell47fdd832003-07-14 16:52:07 +000024975int
24976main ()
24977{
24978
24979 ;
24980 return 0;
24981}
24982_ACEOF
24983rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024984if { (ac_try="$ac_link"
24985case "(($ac_try" in
24986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24987 *) ac_try_echo=$ac_try;;
24988esac
24989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24990 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024991 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024992 grep -v '^ *+' conftest.er1 >conftest.err
24993 rm -f conftest.er1
24994 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024996 (exit $ac_status); } &&
24997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24998 { (case "(($ac_try" in
24999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25000 *) ac_try_echo=$ac_try;;
25001esac
25002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25003 (eval "$ac_try") 2>&5
25004 ac_status=$?
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); }; } &&
25007 { ac_try='test -s conftest$ac_exeext'
25008 { (case "(($ac_try" in
25009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25010 *) ac_try_echo=$ac_try;;
25011esac
25012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25013 (eval "$ac_try") 2>&5
25014 ac_status=$?
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025017
25018aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25019}'`
25020# Check for a 64-bit object if we didn't find anything.
25021if 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; }
25022}'`; fi
25023else
25024 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025025sed 's/^/| /' conftest.$ac_ext >&5
25026
Reid Spencera773bd52006-08-04 18:18:08 +000025027
John Criswell47fdd832003-07-14 16:52:07 +000025028fi
Reid Spencera773bd52006-08-04 18:18:08 +000025029
Bill Wendlingebcceee2009-04-18 11:20:33 +000025030rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025031 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025032if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25033
25034 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25035 # Warning - without using the other run time loading flags,
25036 # -berok will link without error, but may produce a broken library.
25037 no_undefined_flag_GCJ=' ${wl}-bernotok'
25038 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025039 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025040 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025041 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025042 # This is similar to how AIX traditionally builds its shared libraries.
25043 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 +000025044 fi
25045 fi
25046 ;;
25047
25048 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025049 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 +000025050 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25051 hardcode_minus_L_GCJ=yes
25052 # see comment about different semantics on the GNU ld section
25053 ld_shlibs_GCJ=no
25054 ;;
25055
Reid Spencer2706f8c2004-09-19 23:53:36 +000025056 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025057 export_dynamic_flag_spec_GCJ=-rdynamic
25058 ;;
25059
25060 cygwin* | mingw* | pw32*)
25061 # When not using gcc, we currently assume that we are using
25062 # Microsoft Visual C++.
25063 # hardcode_libdir_flag_spec is actually meaningless, as there is
25064 # no search path for DLLs.
25065 hardcode_libdir_flag_spec_GCJ=' '
25066 allow_undefined_flag_GCJ=unsupported
25067 # Tell ltmain to make .lib files, not .a files.
25068 libext=lib
25069 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025070 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025071 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025072 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 +000025073 # The linker will automatically build a .lib file if we build a DLL.
25074 old_archive_From_new_cmds_GCJ='true'
25075 # FIXME: Should let the user specify the lib program.
25076 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025077 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025078 enable_shared_with_static_runtimes_GCJ=yes
25079 ;;
25080
25081 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025082 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025083 rhapsody* | darwin1.[012])
25084 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25085 ;;
25086 *) # Darwin 1.3 on
25087 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25088 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25089 else
25090 case ${MACOSX_DEPLOYMENT_TARGET} in
25091 10.[012])
25092 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25093 ;;
25094 10.*)
25095 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25096 ;;
25097 esac
25098 fi
25099 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025100 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025101 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025102 hardcode_direct_GCJ=no
25103 hardcode_automatic_GCJ=yes
25104 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025105 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025106 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025107 if test "$GCC" = yes ; then
25108 output_verbose_link_cmd='echo'
25109 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25110 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025111 # 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 +000025112 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}'
25113 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 +000025114 else
Reid Spencera773bd52006-08-04 18:18:08 +000025115 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025116 xlc*)
25117 output_verbose_link_cmd='echo'
25118 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25119 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025120 # 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 +000025121 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}'
25122 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 +000025123 ;;
25124 *)
25125 ld_shlibs_GCJ=no
25126 ;;
25127 esac
John Criswell47fdd832003-07-14 16:52:07 +000025128 fi
25129 ;;
25130
25131 dgux*)
25132 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25133 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25134 hardcode_shlibpath_var_GCJ=no
25135 ;;
25136
25137 freebsd1*)
25138 ld_shlibs_GCJ=no
25139 ;;
25140
25141 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25142 # support. Future versions do this automatically, but an explicit c++rt0.o
25143 # does not break anything, and helps significantly (at the cost of a little
25144 # extra space).
25145 freebsd2.2*)
25146 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25147 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25148 hardcode_direct_GCJ=yes
25149 hardcode_shlibpath_var_GCJ=no
25150 ;;
25151
25152 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25153 freebsd2*)
25154 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25155 hardcode_direct_GCJ=yes
25156 hardcode_minus_L_GCJ=yes
25157 hardcode_shlibpath_var_GCJ=no
25158 ;;
25159
25160 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025161 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025162 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25163 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25164 hardcode_direct_GCJ=yes
25165 hardcode_shlibpath_var_GCJ=no
25166 ;;
25167
25168 hpux9*)
25169 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025170 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 +000025171 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025172 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 +000025173 fi
25174 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25175 hardcode_libdir_separator_GCJ=:
25176 hardcode_direct_GCJ=yes
25177
25178 # hardcode_minus_L: Not really in the search PATH,
25179 # but as the default location of the library.
25180 hardcode_minus_L_GCJ=yes
25181 export_dynamic_flag_spec_GCJ='${wl}-E'
25182 ;;
25183
Reid Spencera773bd52006-08-04 18:18:08 +000025184 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025185 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025186 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25187 else
25188 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25189 fi
25190 if test "$with_gnu_ld" = no; then
25191 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25192 hardcode_libdir_separator_GCJ=:
25193
25194 hardcode_direct_GCJ=yes
25195 export_dynamic_flag_spec_GCJ='${wl}-E'
25196
25197 # hardcode_minus_L: Not really in the search PATH,
25198 # but as the default location of the library.
25199 hardcode_minus_L_GCJ=yes
25200 fi
25201 ;;
25202
25203 hpux11*)
25204 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25205 case $host_cpu in
25206 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025207 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25208 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025209 ia64*)
25210 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25211 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025212 *)
25213 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25214 ;;
25215 esac
25216 else
Reid Spencera773bd52006-08-04 18:18:08 +000025217 case $host_cpu in
25218 hppa*64*)
25219 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25220 ;;
25221 ia64*)
25222 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025223 ;;
25224 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025225 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 +000025226 ;;
25227 esac
25228 fi
25229 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025230 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25231 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025232
Reid Spencera773bd52006-08-04 18:18:08 +000025233 case $host_cpu in
25234 hppa*64*|ia64*)
25235 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25236 hardcode_direct_GCJ=no
25237 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025238 ;;
25239 *)
John Criswell47fdd832003-07-14 16:52:07 +000025240 hardcode_direct_GCJ=yes
25241 export_dynamic_flag_spec_GCJ='${wl}-E'
25242
25243 # hardcode_minus_L: Not really in the search PATH,
25244 # but as the default location of the library.
25245 hardcode_minus_L_GCJ=yes
25246 ;;
25247 esac
25248 fi
25249 ;;
25250
25251 irix5* | irix6* | nonstopux*)
25252 if test "$GCC" = yes; then
25253 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'
25254 else
25255 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'
25256 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25257 fi
25258 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25259 hardcode_libdir_separator_GCJ=:
25260 link_all_deplibs_GCJ=yes
25261 ;;
25262
25263 netbsd*)
25264 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25265 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25266 else
25267 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25268 fi
25269 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25270 hardcode_direct_GCJ=yes
25271 hardcode_shlibpath_var_GCJ=no
25272 ;;
25273
25274 newsos6)
25275 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25276 hardcode_direct_GCJ=yes
25277 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25278 hardcode_libdir_separator_GCJ=:
25279 hardcode_shlibpath_var_GCJ=no
25280 ;;
25281
25282 openbsd*)
25283 hardcode_direct_GCJ=yes
25284 hardcode_shlibpath_var_GCJ=no
25285 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25286 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025287 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 +000025288 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25289 export_dynamic_flag_spec_GCJ='${wl}-E'
25290 else
25291 case $host_os in
25292 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25293 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25294 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25295 ;;
25296 *)
25297 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25298 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25299 ;;
25300 esac
25301 fi
25302 ;;
25303
25304 os2*)
25305 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25306 hardcode_minus_L_GCJ=yes
25307 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025308 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 +000025309 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25310 ;;
25311
25312 osf3*)
25313 if test "$GCC" = yes; then
25314 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25315 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'
25316 else
25317 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25318 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'
25319 fi
25320 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25321 hardcode_libdir_separator_GCJ=:
25322 ;;
25323
25324 osf4* | osf5*) # as osf3* with the addition of -msym flag
25325 if test "$GCC" = yes; then
25326 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25327 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'
25328 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25329 else
25330 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25331 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 +000025332 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 +000025333 $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 +000025334
John Criswell47fdd832003-07-14 16:52:07 +000025335 # Both c and cxx compiler support -rpath directly
25336 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25337 fi
25338 hardcode_libdir_separator_GCJ=:
25339 ;;
25340
John Criswell47fdd832003-07-14 16:52:07 +000025341 solaris*)
25342 no_undefined_flag_GCJ=' -z text'
25343 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025344 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025345 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025346 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25347 $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 +000025348 else
Reid Spencera773bd52006-08-04 18:18:08 +000025349 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025350 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025351 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25352 $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 +000025353 fi
25354 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25355 hardcode_shlibpath_var_GCJ=no
25356 case $host_os in
25357 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025358 *)
25359 # The compiler driver will combine linker options so we
25360 # cannot just pass the convience library names through
25361 # without $wl, iff we do not link with $LD.
25362 # Luckily, gcc supports the same syntax we need for Sun Studio.
25363 # Supported since Solaris 2.6 (maybe 2.5.1?)
25364 case $wlarc in
25365 '')
25366 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25367 *)
25368 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' ;;
25369 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025370 esac
25371 link_all_deplibs_GCJ=yes
25372 ;;
25373
25374 sunos4*)
25375 if test "x$host_vendor" = xsequent; then
25376 # Use $CC to link under sequent, because it throws in some extra .o
25377 # files that make .init and .fini sections work.
25378 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25379 else
25380 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25381 fi
25382 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25383 hardcode_direct_GCJ=yes
25384 hardcode_minus_L_GCJ=yes
25385 hardcode_shlibpath_var_GCJ=no
25386 ;;
25387
25388 sysv4)
25389 case $host_vendor in
25390 sni)
25391 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25392 hardcode_direct_GCJ=yes # is this really true???
25393 ;;
25394 siemens)
25395 ## LD is ld it makes a PLAMLIB
25396 ## CC just makes a GrossModule.
25397 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25398 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25399 hardcode_direct_GCJ=no
25400 ;;
25401 motorola)
25402 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25403 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25404 ;;
25405 esac
25406 runpath_var='LD_RUN_PATH'
25407 hardcode_shlibpath_var_GCJ=no
25408 ;;
25409
25410 sysv4.3*)
25411 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25412 hardcode_shlibpath_var_GCJ=no
25413 export_dynamic_flag_spec_GCJ='-Bexport'
25414 ;;
25415
25416 sysv4*MP*)
25417 if test -d /usr/nec; then
25418 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25419 hardcode_shlibpath_var_GCJ=no
25420 runpath_var=LD_RUN_PATH
25421 hardcode_runpath_var=yes
25422 ld_shlibs_GCJ=yes
25423 fi
25424 ;;
25425
Reid Spencera773bd52006-08-04 18:18:08 +000025426 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25427 no_undefined_flag_GCJ='${wl}-z,text'
25428 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025429 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025430 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025431
John Criswell47fdd832003-07-14 16:52:07 +000025432 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025433 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25434 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 +000025435 else
Reid Spencera773bd52006-08-04 18:18:08 +000025436 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25437 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 +000025438 fi
John Criswell47fdd832003-07-14 16:52:07 +000025439 ;;
25440
Reid Spencera773bd52006-08-04 18:18:08 +000025441 sysv5* | sco3.2v5* | sco5v6*)
25442 # Note: We can NOT use -z defs as we might desire, because we do not
25443 # link with -lc, and that would cause any symbols used from libc to
25444 # always be unresolved, which means just about no library would
25445 # ever link correctly. If we're not using GNU ld we use -z text
25446 # though, which does catch some bad symbols but isn't as heavy-handed
25447 # as -z defs.
25448 no_undefined_flag_GCJ='${wl}-z,text'
25449 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25450 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025451 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025452 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25453 hardcode_libdir_separator_GCJ=':'
25454 link_all_deplibs_GCJ=yes
25455 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025456 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025457
25458 if test "$GCC" = yes; then
25459 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25460 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25461 else
25462 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25463 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25464 fi
John Criswell47fdd832003-07-14 16:52:07 +000025465 ;;
25466
25467 uts4*)
25468 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25469 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25470 hardcode_shlibpath_var_GCJ=no
25471 ;;
25472
25473 *)
25474 ld_shlibs_GCJ=no
25475 ;;
25476 esac
25477 fi
25478
Reid Spencera773bd52006-08-04 18:18:08 +000025479{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25480echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025481test "$ld_shlibs_GCJ" = no && can_build_shared=no
25482
John Criswell47fdd832003-07-14 16:52:07 +000025483#
25484# Do we need to explicitly link libc?
25485#
25486case "x$archive_cmds_need_lc_GCJ" in
25487x|xyes)
25488 # Assume -lc should be added
25489 archive_cmds_need_lc_GCJ=yes
25490
25491 if test "$enable_shared" = yes && test "$GCC" = yes; then
25492 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025493 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025494 # FIXME: we may have to deal with multi-command sequences.
25495 ;;
25496 '$CC '*)
25497 # Test whether the compiler implicitly links with -lc since on some
25498 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25499 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025500 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25501echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025502 $rm conftest*
25503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25504
25505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25506 (eval $ac_compile) 2>&5
25507 ac_status=$?
25508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); } 2>conftest.err; then
25510 soname=conftest
25511 lib=conftest
25512 libobjs=conftest.$ac_objext
25513 deplibs=
25514 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025515 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025516 compiler_flags=-v
25517 linker_flags=-v
25518 verstring=
25519 output_objdir=.
25520 libname=conftest
25521 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25522 allow_undefined_flag_GCJ=
25523 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25524 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25525 ac_status=$?
25526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527 (exit $ac_status); }
25528 then
25529 archive_cmds_need_lc_GCJ=no
25530 else
25531 archive_cmds_need_lc_GCJ=yes
25532 fi
25533 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25534 else
25535 cat conftest.err 1>&5
25536 fi
25537 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025538 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25539echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025540 ;;
25541 esac
25542 fi
25543 ;;
25544esac
25545
Reid Spencera773bd52006-08-04 18:18:08 +000025546{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25547echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025548library_names_spec=
25549libname_spec='lib$name'
25550soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025551shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025552postinstall_cmds=
25553postuninstall_cmds=
25554finish_cmds=
25555finish_eval=
25556shlibpath_var=
25557shlibpath_overrides_runpath=unknown
25558version_type=none
25559dynamic_linker="$host_os ld.so"
25560sys_lib_dlsearch_path_spec="/lib /usr/lib"
25561if test "$GCC" = yes; then
25562 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25563 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25564 # if the path contains ";" then we assume it to be the separator
25565 # otherwise default to the standard path separator (i.e. ":") - it is
25566 # assumed that no part of a normal pathname contains ";" but that should
25567 # okay in the real world where ";" in dirpaths is itself problematic.
25568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25569 else
25570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25571 fi
25572else
25573 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25574fi
25575need_lib_prefix=unknown
25576hardcode_into_libs=no
25577
25578# when you set need_version to no, make sure it does not cause -set_version
25579# flags to be left without arguments
25580need_version=unknown
25581
25582case $host_os in
25583aix3*)
25584 version_type=linux
25585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25586 shlibpath_var=LIBPATH
25587
25588 # AIX 3 has no versioning support, so we append a major version to the name.
25589 soname_spec='${libname}${release}${shared_ext}$major'
25590 ;;
25591
25592aix4* | aix5*)
25593 version_type=linux
25594 need_lib_prefix=no
25595 need_version=no
25596 hardcode_into_libs=yes
25597 if test "$host_cpu" = ia64; then
25598 # AIX 5 supports IA64
25599 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25600 shlibpath_var=LD_LIBRARY_PATH
25601 else
25602 # With GCC up to 2.95.x, collect2 would create an import file
25603 # for dependence libraries. The import file would start with
25604 # the line `#! .'. This would cause the generated library to
25605 # depend on `.', always an invalid library. This was fixed in
25606 # development snapshots of GCC prior to 3.0.
25607 case $host_os in
25608 aix4 | aix4.[01] | aix4.[01].*)
25609 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25610 echo ' yes '
25611 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25612 :
25613 else
25614 can_build_shared=no
25615 fi
25616 ;;
25617 esac
25618 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25619 # soname into executable. Probably we can add versioning support to
25620 # collect2, so additional links can be useful in future.
25621 if test "$aix_use_runtimelinking" = yes; then
25622 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25623 # instead of lib<name>.a to let people know that these are not
25624 # typical AIX shared libraries.
25625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25626 else
25627 # We preserve .a as extension for shared libraries through AIX4.2
25628 # and later when we are not doing run time linking.
25629 library_names_spec='${libname}${release}.a $libname.a'
25630 soname_spec='${libname}${release}${shared_ext}$major'
25631 fi
25632 shlibpath_var=LIBPATH
25633 fi
25634 ;;
25635
25636amigaos*)
25637 library_names_spec='$libname.ixlibrary $libname.a'
25638 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025639 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 +000025640 ;;
25641
25642beos*)
25643 library_names_spec='${libname}${shared_ext}'
25644 dynamic_linker="$host_os ld.so"
25645 shlibpath_var=LIBRARY_PATH
25646 ;;
25647
Reid Spencer2706f8c2004-09-19 23:53:36 +000025648bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025649 version_type=linux
25650 need_version=no
25651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25652 soname_spec='${libname}${release}${shared_ext}$major'
25653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25654 shlibpath_var=LD_LIBRARY_PATH
25655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25657 # the default ld.so.conf also contains /usr/contrib/lib and
25658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25659 # libtool to hard-code these into programs
25660 ;;
25661
25662cygwin* | mingw* | pw32*)
25663 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025664 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025665 need_version=no
25666 need_lib_prefix=no
25667
25668 case $GCC,$host_os in
25669 yes,cygwin* | yes,mingw* | yes,pw32*)
25670 library_names_spec='$libname.dll.a'
25671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025672 postinstall_cmds='base_file=`basename \${file}`~
25673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25674 dldir=$destdir/`dirname \$dlpath`~
25675 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025676 $install_prog $dir/$dlname \$dldir/$dlname~
25677 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25679 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025680 $rm \$dlpath'
25681 shlibpath_overrides_runpath=yes
25682
25683 case $host_os in
25684 cygwin*)
25685 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25686 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 +000025687 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025688 ;;
25689 mingw*)
25690 # MinGW DLLs use traditional 'lib' prefix
25691 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25692 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25693 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25694 # It is most probably a Windows format PATH printed by
25695 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25696 # path with ; separators, and with drive letters. We can handle the
25697 # drive letters (cygwin fileutils understands them), so leave them,
25698 # especially as we might pass files found there to a mingw objdump,
25699 # which wouldn't understand a cygwinified path. Ahh.
25700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25701 else
25702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25703 fi
25704 ;;
25705 pw32*)
25706 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025707 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 +000025708 ;;
25709 esac
25710 ;;
25711
25712 *)
25713 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25714 ;;
25715 esac
25716 dynamic_linker='Win32 ld.exe'
25717 # FIXME: first we should search . and the directory the executable is in
25718 shlibpath_var=PATH
25719 ;;
25720
25721darwin* | rhapsody*)
25722 dynamic_linker="$host_os dyld"
25723 version_type=darwin
25724 need_lib_prefix=no
25725 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025726 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025727 soname_spec='${libname}${release}${major}$shared_ext'
25728 shlibpath_overrides_runpath=yes
25729 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025730 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025731 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025732 if test "$GCC" = yes; then
25733 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"`
25734 else
25735 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025736 fi
25737 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25738 ;;
25739
25740dgux*)
25741 version_type=linux
25742 need_lib_prefix=no
25743 need_version=no
25744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25745 soname_spec='${libname}${release}${shared_ext}$major'
25746 shlibpath_var=LD_LIBRARY_PATH
25747 ;;
25748
25749freebsd1*)
25750 dynamic_linker=no
25751 ;;
25752
Reid Spencer2706f8c2004-09-19 23:53:36 +000025753kfreebsd*-gnu)
25754 version_type=linux
25755 need_lib_prefix=no
25756 need_version=no
25757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25758 soname_spec='${libname}${release}${shared_ext}$major'
25759 shlibpath_var=LD_LIBRARY_PATH
25760 shlibpath_overrides_runpath=no
25761 hardcode_into_libs=yes
25762 dynamic_linker='GNU ld.so'
25763 ;;
25764
Reid Spencera773bd52006-08-04 18:18:08 +000025765freebsd* | dragonfly*)
25766 # DragonFly does not have aout. When/if they implement a new
25767 # versioning mechanism, adjust this.
25768 if test -x /usr/bin/objformat; then
25769 objformat=`/usr/bin/objformat`
25770 else
25771 case $host_os in
25772 freebsd[123]*) objformat=aout ;;
25773 *) objformat=elf ;;
25774 esac
25775 fi
John Criswell47fdd832003-07-14 16:52:07 +000025776 version_type=freebsd-$objformat
25777 case $version_type in
25778 freebsd-elf*)
25779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25780 need_version=no
25781 need_lib_prefix=no
25782 ;;
25783 freebsd-*)
25784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25785 need_version=yes
25786 ;;
25787 esac
25788 shlibpath_var=LD_LIBRARY_PATH
25789 case $host_os in
25790 freebsd2*)
25791 shlibpath_overrides_runpath=yes
25792 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025793 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025794 shlibpath_overrides_runpath=yes
25795 hardcode_into_libs=yes
25796 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025797 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25798 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025799 shlibpath_overrides_runpath=no
25800 hardcode_into_libs=yes
25801 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025802 freebsd*) # from 4.6 on
25803 shlibpath_overrides_runpath=yes
25804 hardcode_into_libs=yes
25805 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025806 esac
25807 ;;
25808
25809gnu*)
25810 version_type=linux
25811 need_lib_prefix=no
25812 need_version=no
25813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25814 soname_spec='${libname}${release}${shared_ext}$major'
25815 shlibpath_var=LD_LIBRARY_PATH
25816 hardcode_into_libs=yes
25817 ;;
25818
25819hpux9* | hpux10* | hpux11*)
25820 # Give a soname corresponding to the major version so that dld.sl refuses to
25821 # link against other versions.
25822 version_type=sunos
25823 need_lib_prefix=no
25824 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025825 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025826 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025827 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025828 hardcode_into_libs=yes
25829 dynamic_linker="$host_os dld.so"
25830 shlibpath_var=LD_LIBRARY_PATH
25831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25833 soname_spec='${libname}${release}${shared_ext}$major'
25834 if test "X$HPUX_IA64_MODE" = X32; then
25835 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25836 else
25837 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25838 fi
25839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25840 ;;
25841 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025842 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025843 hardcode_into_libs=yes
25844 dynamic_linker="$host_os dld.sl"
25845 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25848 soname_spec='${libname}${release}${shared_ext}$major'
25849 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25851 ;;
25852 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025853 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025854 dynamic_linker="$host_os dld.sl"
25855 shlibpath_var=SHLIB_PATH
25856 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25858 soname_spec='${libname}${release}${shared_ext}$major'
25859 ;;
25860 esac
25861 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25862 postinstall_cmds='chmod 555 $lib'
25863 ;;
25864
Reid Spencera773bd52006-08-04 18:18:08 +000025865interix3*)
25866 version_type=linux
25867 need_lib_prefix=no
25868 need_version=no
25869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25870 soname_spec='${libname}${release}${shared_ext}$major'
25871 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25872 shlibpath_var=LD_LIBRARY_PATH
25873 shlibpath_overrides_runpath=no
25874 hardcode_into_libs=yes
25875 ;;
25876
John Criswell47fdd832003-07-14 16:52:07 +000025877irix5* | irix6* | nonstopux*)
25878 case $host_os in
25879 nonstopux*) version_type=nonstopux ;;
25880 *)
25881 if test "$lt_cv_prog_gnu_ld" = yes; then
25882 version_type=linux
25883 else
25884 version_type=irix
25885 fi ;;
25886 esac
25887 need_lib_prefix=no
25888 need_version=no
25889 soname_spec='${libname}${release}${shared_ext}$major'
25890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25891 case $host_os in
25892 irix5* | nonstopux*)
25893 libsuff= shlibsuff=
25894 ;;
25895 *)
25896 case $LD in # libtool.m4 will add one of these switches to LD
25897 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25898 libsuff= shlibsuff= libmagic=32-bit;;
25899 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25900 libsuff=32 shlibsuff=N32 libmagic=N32;;
25901 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25902 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25903 *) libsuff= shlibsuff= libmagic=never-match;;
25904 esac
25905 ;;
25906 esac
25907 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25908 shlibpath_overrides_runpath=no
25909 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25910 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25911 hardcode_into_libs=yes
25912 ;;
25913
25914# No shared lib support for Linux oldld, aout, or coff.
25915linux*oldld* | linux*aout* | linux*coff*)
25916 dynamic_linker=no
25917 ;;
25918
25919# This must be Linux ELF.
25920linux*)
25921 version_type=linux
25922 need_lib_prefix=no
25923 need_version=no
25924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25925 soname_spec='${libname}${release}${shared_ext}$major'
25926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25927 shlibpath_var=LD_LIBRARY_PATH
25928 shlibpath_overrides_runpath=no
25929 # This implies no fast_install, which is unacceptable.
25930 # Some rework will be needed to allow for fast_install
25931 # before this can be enabled.
25932 hardcode_into_libs=yes
25933
Reid Spencer2706f8c2004-09-19 23:53:36 +000025934 # Append ld.so.conf contents to the search path
25935 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025936 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 +000025937 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25938 fi
25939
John Criswell47fdd832003-07-14 16:52:07 +000025940 # We used to test for /lib/ld.so.1 and disable shared libraries on
25941 # powerpc, because MkLinux only supported shared libraries with the
25942 # GNU dynamic linker. Since this was broken with cross compilers,
25943 # most powerpc-linux boxes support dynamic linking these days and
25944 # people can always --disable-shared, the test was removed, and we
25945 # assume the GNU/Linux dynamic linker is in use.
25946 dynamic_linker='GNU/Linux ld.so'
25947 ;;
25948
Reid Spencer2706f8c2004-09-19 23:53:36 +000025949knetbsd*-gnu)
25950 version_type=linux
25951 need_lib_prefix=no
25952 need_version=no
25953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25954 soname_spec='${libname}${release}${shared_ext}$major'
25955 shlibpath_var=LD_LIBRARY_PATH
25956 shlibpath_overrides_runpath=no
25957 hardcode_into_libs=yes
25958 dynamic_linker='GNU ld.so'
25959 ;;
25960
John Criswell47fdd832003-07-14 16:52:07 +000025961netbsd*)
25962 version_type=sunos
25963 need_lib_prefix=no
25964 need_version=no
25965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25968 dynamic_linker='NetBSD (a.out) ld.so'
25969 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025971 soname_spec='${libname}${release}${shared_ext}$major'
25972 dynamic_linker='NetBSD ld.elf_so'
25973 fi
25974 shlibpath_var=LD_LIBRARY_PATH
25975 shlibpath_overrides_runpath=yes
25976 hardcode_into_libs=yes
25977 ;;
25978
25979newsos6)
25980 version_type=linux
25981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25982 shlibpath_var=LD_LIBRARY_PATH
25983 shlibpath_overrides_runpath=yes
25984 ;;
25985
Reid Spencer2706f8c2004-09-19 23:53:36 +000025986nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025987 version_type=linux
25988 need_lib_prefix=no
25989 need_version=no
25990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25991 soname_spec='${libname}${release}${shared_ext}$major'
25992 shlibpath_var=LD_LIBRARY_PATH
25993 shlibpath_overrides_runpath=yes
25994 ;;
25995
25996openbsd*)
25997 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025998 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025999 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000026000 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26001 case $host_os in
26002 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26003 *) need_version=no ;;
26004 esac
John Criswell47fdd832003-07-14 16:52:07 +000026005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26007 shlibpath_var=LD_LIBRARY_PATH
26008 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26009 case $host_os in
26010 openbsd2.[89] | openbsd2.[89].*)
26011 shlibpath_overrides_runpath=no
26012 ;;
26013 *)
26014 shlibpath_overrides_runpath=yes
26015 ;;
26016 esac
26017 else
26018 shlibpath_overrides_runpath=yes
26019 fi
26020 ;;
26021
26022os2*)
26023 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000026024 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000026025 need_lib_prefix=no
26026 library_names_spec='$libname${shared_ext} $libname.a'
26027 dynamic_linker='OS/2 ld.exe'
26028 shlibpath_var=LIBPATH
26029 ;;
26030
26031osf3* | osf4* | osf5*)
26032 version_type=osf
26033 need_lib_prefix=no
26034 need_version=no
26035 soname_spec='${libname}${release}${shared_ext}$major'
26036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26037 shlibpath_var=LD_LIBRARY_PATH
26038 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26039 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26040 ;;
26041
John Criswell47fdd832003-07-14 16:52:07 +000026042solaris*)
26043 version_type=linux
26044 need_lib_prefix=no
26045 need_version=no
26046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26047 soname_spec='${libname}${release}${shared_ext}$major'
26048 shlibpath_var=LD_LIBRARY_PATH
26049 shlibpath_overrides_runpath=yes
26050 hardcode_into_libs=yes
26051 # ldd complains unless libraries are executable
26052 postinstall_cmds='chmod +x $lib'
26053 ;;
26054
26055sunos4*)
26056 version_type=sunos
26057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26058 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26059 shlibpath_var=LD_LIBRARY_PATH
26060 shlibpath_overrides_runpath=yes
26061 if test "$with_gnu_ld" = yes; then
26062 need_lib_prefix=no
26063 fi
26064 need_version=yes
26065 ;;
26066
Reid Spencera773bd52006-08-04 18:18:08 +000026067sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026068 version_type=linux
26069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26070 soname_spec='${libname}${release}${shared_ext}$major'
26071 shlibpath_var=LD_LIBRARY_PATH
26072 case $host_vendor in
26073 sni)
26074 shlibpath_overrides_runpath=no
26075 need_lib_prefix=no
26076 export_dynamic_flag_spec='${wl}-Blargedynsym'
26077 runpath_var=LD_RUN_PATH
26078 ;;
26079 siemens)
26080 need_lib_prefix=no
26081 ;;
26082 motorola)
26083 need_lib_prefix=no
26084 need_version=no
26085 shlibpath_overrides_runpath=no
26086 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26087 ;;
26088 esac
26089 ;;
26090
26091sysv4*MP*)
26092 if test -d /usr/nec ;then
26093 version_type=linux
26094 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26095 soname_spec='$libname${shared_ext}.$major'
26096 shlibpath_var=LD_LIBRARY_PATH
26097 fi
26098 ;;
26099
Reid Spencera773bd52006-08-04 18:18:08 +000026100sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26101 version_type=freebsd-elf
26102 need_lib_prefix=no
26103 need_version=no
26104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26105 soname_spec='${libname}${release}${shared_ext}$major'
26106 shlibpath_var=LD_LIBRARY_PATH
26107 hardcode_into_libs=yes
26108 if test "$with_gnu_ld" = yes; then
26109 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26110 shlibpath_overrides_runpath=no
26111 else
26112 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26113 shlibpath_overrides_runpath=yes
26114 case $host_os in
26115 sco3.2v5*)
26116 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26117 ;;
26118 esac
26119 fi
26120 sys_lib_dlsearch_path_spec='/usr/lib'
26121 ;;
26122
John Criswell47fdd832003-07-14 16:52:07 +000026123uts4*)
26124 version_type=linux
26125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26126 soname_spec='${libname}${release}${shared_ext}$major'
26127 shlibpath_var=LD_LIBRARY_PATH
26128 ;;
26129
26130*)
26131 dynamic_linker=no
26132 ;;
26133esac
Reid Spencera773bd52006-08-04 18:18:08 +000026134{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26135echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026136test "$dynamic_linker" = no && can_build_shared=no
26137
Reid Spencera773bd52006-08-04 18:18:08 +000026138variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26139if test "$GCC" = yes; then
26140 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26141fi
26142
26143{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26144echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026145hardcode_action_GCJ=
26146if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26147 test -n "$runpath_var_GCJ" || \
26148 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26149
26150 # We can hardcode non-existant directories.
26151 if test "$hardcode_direct_GCJ" != no &&
26152 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26153 # have to relink, otherwise we might link with an installed library
26154 # when we should be linking with a yet-to-be-installed one
26155 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26156 test "$hardcode_minus_L_GCJ" != no; then
26157 # Linking always hardcodes the temporary library directory.
26158 hardcode_action_GCJ=relink
26159 else
26160 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26161 hardcode_action_GCJ=immediate
26162 fi
26163else
26164 # We cannot hardcode anything, or else we can only hardcode existing
26165 # directories.
26166 hardcode_action_GCJ=unsupported
26167fi
Reid Spencera773bd52006-08-04 18:18:08 +000026168{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26169echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026170
26171if test "$hardcode_action_GCJ" = relink; then
26172 # Fast installation is not supported
26173 enable_fast_install=no
26174elif test "$shlibpath_overrides_runpath" = yes ||
26175 test "$enable_shared" = no; then
26176 # Fast installation is not necessary
26177 enable_fast_install=needless
26178fi
26179
John Criswell47fdd832003-07-14 16:52:07 +000026180
26181# The else clause should only fire when bootstrapping the
26182# libtool distribution, otherwise you forgot to ship ltmain.sh
26183# with your package, and you will get complaints that there are
26184# no rules to generate ltmain.sh.
26185if test -f "$ltmain"; then
26186 # See if we are running on zsh, and set the options which allow our commands through
26187 # without removal of \ escapes.
26188 if test -n "${ZSH_VERSION+set}" ; then
26189 setopt NO_GLOB_SUBST
26190 fi
26191 # Now quote all the things that may contain metacharacters while being
26192 # careful not to overquote the AC_SUBSTed values. We take copies of the
26193 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026194 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 +000026195 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026196 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26197 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26198 deplibs_check_method reload_flag reload_cmds need_locks \
26199 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26200 lt_cv_sys_global_symbol_to_c_name_address \
26201 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26202 old_postinstall_cmds old_postuninstall_cmds \
26203 compiler_GCJ \
26204 CC_GCJ \
26205 LD_GCJ \
26206 lt_prog_compiler_wl_GCJ \
26207 lt_prog_compiler_pic_GCJ \
26208 lt_prog_compiler_static_GCJ \
26209 lt_prog_compiler_no_builtin_flag_GCJ \
26210 export_dynamic_flag_spec_GCJ \
26211 thread_safe_flag_spec_GCJ \
26212 whole_archive_flag_spec_GCJ \
26213 enable_shared_with_static_runtimes_GCJ \
26214 old_archive_cmds_GCJ \
26215 old_archive_from_new_cmds_GCJ \
26216 predep_objects_GCJ \
26217 postdep_objects_GCJ \
26218 predeps_GCJ \
26219 postdeps_GCJ \
26220 compiler_lib_search_path_GCJ \
26221 archive_cmds_GCJ \
26222 archive_expsym_cmds_GCJ \
26223 postinstall_cmds_GCJ \
26224 postuninstall_cmds_GCJ \
26225 old_archive_from_expsyms_cmds_GCJ \
26226 allow_undefined_flag_GCJ \
26227 no_undefined_flag_GCJ \
26228 export_symbols_cmds_GCJ \
26229 hardcode_libdir_flag_spec_GCJ \
26230 hardcode_libdir_flag_spec_ld_GCJ \
26231 hardcode_libdir_separator_GCJ \
26232 hardcode_automatic_GCJ \
26233 module_cmds_GCJ \
26234 module_expsym_cmds_GCJ \
26235 lt_cv_prog_compiler_c_o_GCJ \
26236 exclude_expsyms_GCJ \
26237 include_expsyms_GCJ; do
26238
26239 case $var in
26240 old_archive_cmds_GCJ | \
26241 old_archive_from_new_cmds_GCJ | \
26242 archive_cmds_GCJ | \
26243 archive_expsym_cmds_GCJ | \
26244 module_cmds_GCJ | \
26245 module_expsym_cmds_GCJ | \
26246 old_archive_from_expsyms_cmds_GCJ | \
26247 export_symbols_cmds_GCJ | \
26248 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26249 postinstall_cmds | postuninstall_cmds | \
26250 old_postinstall_cmds | old_postuninstall_cmds | \
26251 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26252 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026253 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 +000026254 ;;
26255 *)
26256 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26257 ;;
26258 esac
26259 done
26260
26261 case $lt_echo in
26262 *'\$0 --fallback-echo"')
26263 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26264 ;;
26265 esac
26266
26267cfgfile="$ofile"
26268
26269 cat <<__EOF__ >> "$cfgfile"
26270# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26271
26272# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26273
26274# Shell to use when invoking shell scripts.
26275SHELL=$lt_SHELL
26276
26277# Whether or not to build shared libraries.
26278build_libtool_libs=$enable_shared
26279
26280# Whether or not to build static libraries.
26281build_old_libs=$enable_static
26282
26283# Whether or not to add -lc for building shared libraries.
26284build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26285
26286# Whether or not to disallow shared libs when runtime libs are static
26287allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26288
26289# Whether or not to optimize for fast installation.
26290fast_install=$enable_fast_install
26291
26292# The host system.
26293host_alias=$host_alias
26294host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026295host_os=$host_os
26296
26297# The build system.
26298build_alias=$build_alias
26299build=$build
26300build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026301
26302# An echo program that does not interpret backslashes.
26303echo=$lt_echo
26304
26305# The archiver.
26306AR=$lt_AR
26307AR_FLAGS=$lt_AR_FLAGS
26308
26309# A C compiler.
26310LTCC=$lt_LTCC
26311
Reid Spencera773bd52006-08-04 18:18:08 +000026312# LTCC compiler flags.
26313LTCFLAGS=$lt_LTCFLAGS
26314
John Criswell47fdd832003-07-14 16:52:07 +000026315# A language-specific compiler.
26316CC=$lt_compiler_GCJ
26317
26318# Is the compiler the GNU C compiler?
26319with_gcc=$GCC_GCJ
26320
26321# An ERE matcher.
26322EGREP=$lt_EGREP
26323
26324# The linker used to build libraries.
26325LD=$lt_LD_GCJ
26326
26327# Whether we need hard or soft links.
26328LN_S=$lt_LN_S
26329
26330# A BSD-compatible nm program.
26331NM=$lt_NM
26332
26333# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026334STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026335
26336# Used to examine libraries when file_magic_cmd begins "file"
26337MAGIC_CMD=$MAGIC_CMD
26338
26339# Used on cygwin: DLL creation program.
26340DLLTOOL="$DLLTOOL"
26341
26342# Used on cygwin: object dumper.
26343OBJDUMP="$OBJDUMP"
26344
26345# Used on cygwin: assembler.
26346AS="$AS"
26347
26348# The name of the directory that contains temporary libtool files.
26349objdir=$objdir
26350
26351# How to create reloadable object files.
26352reload_flag=$lt_reload_flag
26353reload_cmds=$lt_reload_cmds
26354
26355# How to pass a linker flag through the compiler.
26356wl=$lt_lt_prog_compiler_wl_GCJ
26357
26358# Object file suffix (normally "o").
26359objext="$ac_objext"
26360
26361# Old archive suffix (normally "a").
26362libext="$libext"
26363
26364# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026365shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026366
26367# Executable file suffix (normally "").
26368exeext="$exeext"
26369
26370# Additional compiler flags for building library objects.
26371pic_flag=$lt_lt_prog_compiler_pic_GCJ
26372pic_mode=$pic_mode
26373
26374# What is the maximum length of a command?
26375max_cmd_len=$lt_cv_sys_max_cmd_len
26376
26377# Does compiler simultaneously support -c and -o options?
26378compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26379
Reid Spencera773bd52006-08-04 18:18:08 +000026380# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026381need_locks=$lt_need_locks
26382
26383# Do we need the lib prefix for modules?
26384need_lib_prefix=$need_lib_prefix
26385
26386# Do we need a version for libraries?
26387need_version=$need_version
26388
26389# Whether dlopen is supported.
26390dlopen_support=$enable_dlopen
26391
26392# Whether dlopen of programs is supported.
26393dlopen_self=$enable_dlopen_self
26394
26395# Whether dlopen of statically linked programs is supported.
26396dlopen_self_static=$enable_dlopen_self_static
26397
26398# Compiler flag to prevent dynamic linking.
26399link_static_flag=$lt_lt_prog_compiler_static_GCJ
26400
26401# Compiler flag to turn off builtin functions.
26402no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26403
26404# Compiler flag to allow reflexive dlopens.
26405export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26406
26407# Compiler flag to generate shared objects directly from archives.
26408whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26409
26410# Compiler flag to generate thread-safe objects.
26411thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26412
26413# Library versioning type.
26414version_type=$version_type
26415
26416# Format of library name prefix.
26417libname_spec=$lt_libname_spec
26418
26419# List of archive names. First name is the real one, the rest are links.
26420# The last name is the one that the linker finds with -lNAME.
26421library_names_spec=$lt_library_names_spec
26422
26423# The coded name of the library, if different from the real name.
26424soname_spec=$lt_soname_spec
26425
26426# Commands used to build and install an old-style archive.
26427RANLIB=$lt_RANLIB
26428old_archive_cmds=$lt_old_archive_cmds_GCJ
26429old_postinstall_cmds=$lt_old_postinstall_cmds
26430old_postuninstall_cmds=$lt_old_postuninstall_cmds
26431
26432# Create an old-style archive from a shared archive.
26433old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26434
26435# Create a temporary old-style archive to link instead of a shared archive.
26436old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26437
26438# Commands used to build and install a shared archive.
26439archive_cmds=$lt_archive_cmds_GCJ
26440archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26441postinstall_cmds=$lt_postinstall_cmds
26442postuninstall_cmds=$lt_postuninstall_cmds
26443
26444# Commands used to build a loadable module (assumed same as above if empty)
26445module_cmds=$lt_module_cmds_GCJ
26446module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26447
26448# Commands to strip libraries.
26449old_striplib=$lt_old_striplib
26450striplib=$lt_striplib
26451
26452# Dependencies to place before the objects being linked to create a
26453# shared library.
26454predep_objects=$lt_predep_objects_GCJ
26455
26456# Dependencies to place after the objects being linked to create a
26457# shared library.
26458postdep_objects=$lt_postdep_objects_GCJ
26459
26460# Dependencies to place before the objects being linked to create a
26461# shared library.
26462predeps=$lt_predeps_GCJ
26463
26464# Dependencies to place after the objects being linked to create a
26465# shared library.
26466postdeps=$lt_postdeps_GCJ
26467
26468# The library search path used internally by the compiler when linking
26469# a shared library.
26470compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26471
26472# Method to check whether dependent libraries are shared objects.
26473deplibs_check_method=$lt_deplibs_check_method
26474
26475# Command to use when deplibs_check_method == file_magic.
26476file_magic_cmd=$lt_file_magic_cmd
26477
26478# Flag that allows shared libraries with undefined symbols to be built.
26479allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26480
26481# Flag that forces no undefined symbols.
26482no_undefined_flag=$lt_no_undefined_flag_GCJ
26483
26484# Commands used to finish a libtool library installation in a directory.
26485finish_cmds=$lt_finish_cmds
26486
26487# Same as above, but a single script fragment to be evaled but not shown.
26488finish_eval=$lt_finish_eval
26489
26490# Take the output of nm and produce a listing of raw symbols and C names.
26491global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26492
26493# Transform the output of nm in a proper C declaration
26494global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26495
26496# Transform the output of nm in a C name address pair
26497global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26498
26499# This is the shared library runtime path variable.
26500runpath_var=$runpath_var
26501
26502# This is the shared library path variable.
26503shlibpath_var=$shlibpath_var
26504
26505# Is shlibpath searched before the hard-coded library search path?
26506shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26507
26508# How to hardcode a shared library path into an executable.
26509hardcode_action=$hardcode_action_GCJ
26510
26511# Whether we should hardcode library paths into libraries.
26512hardcode_into_libs=$hardcode_into_libs
26513
26514# Flag to hardcode \$libdir into a binary during linking.
26515# This must work even if \$libdir does not exist.
26516hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26517
26518# If ld is used when linking, flag to hardcode \$libdir into
26519# a binary during linking. This must work even if \$libdir does
26520# not exist.
26521hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26522
26523# Whether we need a single -rpath flag with a separated argument.
26524hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26525
26526# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26527# resulting binary.
26528hardcode_direct=$hardcode_direct_GCJ
26529
26530# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26531# resulting binary.
26532hardcode_minus_L=$hardcode_minus_L_GCJ
26533
26534# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26535# the resulting binary.
26536hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26537
26538# Set to yes if building a shared library automatically hardcodes DIR into the library
26539# and all subsequent libraries and executables linked against it.
26540hardcode_automatic=$hardcode_automatic_GCJ
26541
26542# Variables whose values should be saved in libtool wrapper scripts and
26543# restored at relink time.
26544variables_saved_for_relink="$variables_saved_for_relink"
26545
26546# Whether libtool must link a program against all its dependency libraries.
26547link_all_deplibs=$link_all_deplibs_GCJ
26548
26549# Compile-time system search path for libraries
26550sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26551
26552# Run-time system search path for libraries
26553sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26554
26555# Fix the shell variable \$srcfile for the compiler.
26556fix_srcfile_path="$fix_srcfile_path_GCJ"
26557
26558# Set to yes if exported symbols are required.
26559always_export_symbols=$always_export_symbols_GCJ
26560
26561# The commands to list exported symbols.
26562export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26563
26564# The commands to extract the exported symbol list from a shared archive.
26565extract_expsyms_cmds=$lt_extract_expsyms_cmds
26566
26567# Symbols that should not be listed in the preloaded symbols.
26568exclude_expsyms=$lt_exclude_expsyms_GCJ
26569
26570# Symbols that must always be exported.
26571include_expsyms=$lt_include_expsyms_GCJ
26572
26573# ### END LIBTOOL TAG CONFIG: $tagname
26574
26575__EOF__
26576
26577
26578else
26579 # If there is no Makefile yet, we rely on a make rule to execute
26580 # `config.status --recheck' to rerun these tests and create the
26581 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026582 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26583 if test -f "$ltmain_in"; then
26584 test -f Makefile && make "$ltmain"
26585 fi
John Criswell47fdd832003-07-14 16:52:07 +000026586fi
26587
26588
26589ac_ext=c
26590ac_cpp='$CPP $CPPFLAGS'
26591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26593ac_compiler_gnu=$ac_cv_c_compiler_gnu
26594
26595CC="$lt_save_CC"
26596
26597 else
26598 tagname=""
26599 fi
26600 ;;
26601
26602 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026603 ac_ext=c
26604ac_cpp='$CPP $CPPFLAGS'
26605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26607ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026608
26609
26610# Source file extension for RC test sources.
26611ac_ext=rc
26612
26613# Object file extension for compiled RC test sources.
26614objext=o
26615objext_RC=$objext
26616
26617# Code to be used in simple compile tests
26618lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26619
26620# Code to be used in simple link tests
26621lt_simple_link_test_code="$lt_simple_compile_test_code"
26622
26623# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26624
26625# If no C compiler was specified, use CC.
26626LTCC=${LTCC-"$CC"}
26627
Reid Spencera773bd52006-08-04 18:18:08 +000026628# If no C compiler flags were specified, use CFLAGS.
26629LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26630
John Criswell47fdd832003-07-14 16:52:07 +000026631# Allow CC to be a program name with arguments.
26632compiler=$CC
26633
26634
Reid Spencera773bd52006-08-04 18:18:08 +000026635# save warnings/boilerplate of simple test code
26636ac_outfile=conftest.$ac_objext
26637printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26638eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26639_lt_compiler_boilerplate=`cat conftest.err`
26640$rm conftest*
26641
26642ac_outfile=conftest.$ac_objext
26643printf "$lt_simple_link_test_code" >conftest.$ac_ext
26644eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26645_lt_linker_boilerplate=`cat conftest.err`
26646$rm conftest*
26647
26648
John Criswell47fdd832003-07-14 16:52:07 +000026649# Allow CC to be a program name with arguments.
26650lt_save_CC="$CC"
26651CC=${RC-"windres"}
26652compiler=$CC
26653compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026654for cc_temp in $compiler""; do
26655 case $cc_temp in
26656 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26657 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26658 \-*) ;;
26659 *) break;;
26660 esac
26661done
26662cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26663
John Criswell47fdd832003-07-14 16:52:07 +000026664lt_cv_prog_compiler_c_o_RC=yes
26665
26666# The else clause should only fire when bootstrapping the
26667# libtool distribution, otherwise you forgot to ship ltmain.sh
26668# with your package, and you will get complaints that there are
26669# no rules to generate ltmain.sh.
26670if test -f "$ltmain"; then
26671 # See if we are running on zsh, and set the options which allow our commands through
26672 # without removal of \ escapes.
26673 if test -n "${ZSH_VERSION+set}" ; then
26674 setopt NO_GLOB_SUBST
26675 fi
26676 # Now quote all the things that may contain metacharacters while being
26677 # careful not to overquote the AC_SUBSTed values. We take copies of the
26678 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026679 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 +000026680 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026681 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26682 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26683 deplibs_check_method reload_flag reload_cmds need_locks \
26684 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26685 lt_cv_sys_global_symbol_to_c_name_address \
26686 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26687 old_postinstall_cmds old_postuninstall_cmds \
26688 compiler_RC \
26689 CC_RC \
26690 LD_RC \
26691 lt_prog_compiler_wl_RC \
26692 lt_prog_compiler_pic_RC \
26693 lt_prog_compiler_static_RC \
26694 lt_prog_compiler_no_builtin_flag_RC \
26695 export_dynamic_flag_spec_RC \
26696 thread_safe_flag_spec_RC \
26697 whole_archive_flag_spec_RC \
26698 enable_shared_with_static_runtimes_RC \
26699 old_archive_cmds_RC \
26700 old_archive_from_new_cmds_RC \
26701 predep_objects_RC \
26702 postdep_objects_RC \
26703 predeps_RC \
26704 postdeps_RC \
26705 compiler_lib_search_path_RC \
26706 archive_cmds_RC \
26707 archive_expsym_cmds_RC \
26708 postinstall_cmds_RC \
26709 postuninstall_cmds_RC \
26710 old_archive_from_expsyms_cmds_RC \
26711 allow_undefined_flag_RC \
26712 no_undefined_flag_RC \
26713 export_symbols_cmds_RC \
26714 hardcode_libdir_flag_spec_RC \
26715 hardcode_libdir_flag_spec_ld_RC \
26716 hardcode_libdir_separator_RC \
26717 hardcode_automatic_RC \
26718 module_cmds_RC \
26719 module_expsym_cmds_RC \
26720 lt_cv_prog_compiler_c_o_RC \
26721 exclude_expsyms_RC \
26722 include_expsyms_RC; do
26723
26724 case $var in
26725 old_archive_cmds_RC | \
26726 old_archive_from_new_cmds_RC | \
26727 archive_cmds_RC | \
26728 archive_expsym_cmds_RC | \
26729 module_cmds_RC | \
26730 module_expsym_cmds_RC | \
26731 old_archive_from_expsyms_cmds_RC | \
26732 export_symbols_cmds_RC | \
26733 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26734 postinstall_cmds | postuninstall_cmds | \
26735 old_postinstall_cmds | old_postuninstall_cmds | \
26736 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26737 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026738 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 +000026739 ;;
26740 *)
26741 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26742 ;;
26743 esac
26744 done
26745
26746 case $lt_echo in
26747 *'\$0 --fallback-echo"')
26748 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26749 ;;
26750 esac
26751
26752cfgfile="$ofile"
26753
26754 cat <<__EOF__ >> "$cfgfile"
26755# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26756
26757# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26758
26759# Shell to use when invoking shell scripts.
26760SHELL=$lt_SHELL
26761
26762# Whether or not to build shared libraries.
26763build_libtool_libs=$enable_shared
26764
26765# Whether or not to build static libraries.
26766build_old_libs=$enable_static
26767
26768# Whether or not to add -lc for building shared libraries.
26769build_libtool_need_lc=$archive_cmds_need_lc_RC
26770
26771# Whether or not to disallow shared libs when runtime libs are static
26772allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26773
26774# Whether or not to optimize for fast installation.
26775fast_install=$enable_fast_install
26776
26777# The host system.
26778host_alias=$host_alias
26779host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026780host_os=$host_os
26781
26782# The build system.
26783build_alias=$build_alias
26784build=$build
26785build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026786
26787# An echo program that does not interpret backslashes.
26788echo=$lt_echo
26789
26790# The archiver.
26791AR=$lt_AR
26792AR_FLAGS=$lt_AR_FLAGS
26793
26794# A C compiler.
26795LTCC=$lt_LTCC
26796
Reid Spencera773bd52006-08-04 18:18:08 +000026797# LTCC compiler flags.
26798LTCFLAGS=$lt_LTCFLAGS
26799
John Criswell47fdd832003-07-14 16:52:07 +000026800# A language-specific compiler.
26801CC=$lt_compiler_RC
26802
26803# Is the compiler the GNU C compiler?
26804with_gcc=$GCC_RC
26805
26806# An ERE matcher.
26807EGREP=$lt_EGREP
26808
26809# The linker used to build libraries.
26810LD=$lt_LD_RC
26811
26812# Whether we need hard or soft links.
26813LN_S=$lt_LN_S
26814
26815# A BSD-compatible nm program.
26816NM=$lt_NM
26817
26818# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026819STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026820
26821# Used to examine libraries when file_magic_cmd begins "file"
26822MAGIC_CMD=$MAGIC_CMD
26823
26824# Used on cygwin: DLL creation program.
26825DLLTOOL="$DLLTOOL"
26826
26827# Used on cygwin: object dumper.
26828OBJDUMP="$OBJDUMP"
26829
26830# Used on cygwin: assembler.
26831AS="$AS"
26832
26833# The name of the directory that contains temporary libtool files.
26834objdir=$objdir
26835
26836# How to create reloadable object files.
26837reload_flag=$lt_reload_flag
26838reload_cmds=$lt_reload_cmds
26839
26840# How to pass a linker flag through the compiler.
26841wl=$lt_lt_prog_compiler_wl_RC
26842
26843# Object file suffix (normally "o").
26844objext="$ac_objext"
26845
26846# Old archive suffix (normally "a").
26847libext="$libext"
26848
26849# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026850shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026851
26852# Executable file suffix (normally "").
26853exeext="$exeext"
26854
26855# Additional compiler flags for building library objects.
26856pic_flag=$lt_lt_prog_compiler_pic_RC
26857pic_mode=$pic_mode
26858
26859# What is the maximum length of a command?
26860max_cmd_len=$lt_cv_sys_max_cmd_len
26861
26862# Does compiler simultaneously support -c and -o options?
26863compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26864
Reid Spencera773bd52006-08-04 18:18:08 +000026865# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026866need_locks=$lt_need_locks
26867
26868# Do we need the lib prefix for modules?
26869need_lib_prefix=$need_lib_prefix
26870
26871# Do we need a version for libraries?
26872need_version=$need_version
26873
26874# Whether dlopen is supported.
26875dlopen_support=$enable_dlopen
26876
26877# Whether dlopen of programs is supported.
26878dlopen_self=$enable_dlopen_self
26879
26880# Whether dlopen of statically linked programs is supported.
26881dlopen_self_static=$enable_dlopen_self_static
26882
26883# Compiler flag to prevent dynamic linking.
26884link_static_flag=$lt_lt_prog_compiler_static_RC
26885
26886# Compiler flag to turn off builtin functions.
26887no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26888
26889# Compiler flag to allow reflexive dlopens.
26890export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26891
26892# Compiler flag to generate shared objects directly from archives.
26893whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26894
26895# Compiler flag to generate thread-safe objects.
26896thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26897
26898# Library versioning type.
26899version_type=$version_type
26900
26901# Format of library name prefix.
26902libname_spec=$lt_libname_spec
26903
26904# List of archive names. First name is the real one, the rest are links.
26905# The last name is the one that the linker finds with -lNAME.
26906library_names_spec=$lt_library_names_spec
26907
26908# The coded name of the library, if different from the real name.
26909soname_spec=$lt_soname_spec
26910
26911# Commands used to build and install an old-style archive.
26912RANLIB=$lt_RANLIB
26913old_archive_cmds=$lt_old_archive_cmds_RC
26914old_postinstall_cmds=$lt_old_postinstall_cmds
26915old_postuninstall_cmds=$lt_old_postuninstall_cmds
26916
26917# Create an old-style archive from a shared archive.
26918old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26919
26920# Create a temporary old-style archive to link instead of a shared archive.
26921old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26922
26923# Commands used to build and install a shared archive.
26924archive_cmds=$lt_archive_cmds_RC
26925archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26926postinstall_cmds=$lt_postinstall_cmds
26927postuninstall_cmds=$lt_postuninstall_cmds
26928
26929# Commands used to build a loadable module (assumed same as above if empty)
26930module_cmds=$lt_module_cmds_RC
26931module_expsym_cmds=$lt_module_expsym_cmds_RC
26932
26933# Commands to strip libraries.
26934old_striplib=$lt_old_striplib
26935striplib=$lt_striplib
26936
26937# Dependencies to place before the objects being linked to create a
26938# shared library.
26939predep_objects=$lt_predep_objects_RC
26940
26941# Dependencies to place after the objects being linked to create a
26942# shared library.
26943postdep_objects=$lt_postdep_objects_RC
26944
26945# Dependencies to place before the objects being linked to create a
26946# shared library.
26947predeps=$lt_predeps_RC
26948
26949# Dependencies to place after the objects being linked to create a
26950# shared library.
26951postdeps=$lt_postdeps_RC
26952
26953# The library search path used internally by the compiler when linking
26954# a shared library.
26955compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26956
26957# Method to check whether dependent libraries are shared objects.
26958deplibs_check_method=$lt_deplibs_check_method
26959
26960# Command to use when deplibs_check_method == file_magic.
26961file_magic_cmd=$lt_file_magic_cmd
26962
26963# Flag that allows shared libraries with undefined symbols to be built.
26964allow_undefined_flag=$lt_allow_undefined_flag_RC
26965
26966# Flag that forces no undefined symbols.
26967no_undefined_flag=$lt_no_undefined_flag_RC
26968
26969# Commands used to finish a libtool library installation in a directory.
26970finish_cmds=$lt_finish_cmds
26971
26972# Same as above, but a single script fragment to be evaled but not shown.
26973finish_eval=$lt_finish_eval
26974
26975# Take the output of nm and produce a listing of raw symbols and C names.
26976global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26977
26978# Transform the output of nm in a proper C declaration
26979global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26980
26981# Transform the output of nm in a C name address pair
26982global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26983
26984# This is the shared library runtime path variable.
26985runpath_var=$runpath_var
26986
26987# This is the shared library path variable.
26988shlibpath_var=$shlibpath_var
26989
26990# Is shlibpath searched before the hard-coded library search path?
26991shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26992
26993# How to hardcode a shared library path into an executable.
26994hardcode_action=$hardcode_action_RC
26995
26996# Whether we should hardcode library paths into libraries.
26997hardcode_into_libs=$hardcode_into_libs
26998
26999# Flag to hardcode \$libdir into a binary during linking.
27000# This must work even if \$libdir does not exist.
27001hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27002
27003# If ld is used when linking, flag to hardcode \$libdir into
27004# a binary during linking. This must work even if \$libdir does
27005# not exist.
27006hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27007
27008# Whether we need a single -rpath flag with a separated argument.
27009hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27010
27011# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27012# resulting binary.
27013hardcode_direct=$hardcode_direct_RC
27014
27015# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27016# resulting binary.
27017hardcode_minus_L=$hardcode_minus_L_RC
27018
27019# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27020# the resulting binary.
27021hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27022
27023# Set to yes if building a shared library automatically hardcodes DIR into the library
27024# and all subsequent libraries and executables linked against it.
27025hardcode_automatic=$hardcode_automatic_RC
27026
27027# Variables whose values should be saved in libtool wrapper scripts and
27028# restored at relink time.
27029variables_saved_for_relink="$variables_saved_for_relink"
27030
27031# Whether libtool must link a program against all its dependency libraries.
27032link_all_deplibs=$link_all_deplibs_RC
27033
27034# Compile-time system search path for libraries
27035sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27036
27037# Run-time system search path for libraries
27038sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27039
27040# Fix the shell variable \$srcfile for the compiler.
27041fix_srcfile_path="$fix_srcfile_path_RC"
27042
27043# Set to yes if exported symbols are required.
27044always_export_symbols=$always_export_symbols_RC
27045
27046# The commands to list exported symbols.
27047export_symbols_cmds=$lt_export_symbols_cmds_RC
27048
27049# The commands to extract the exported symbol list from a shared archive.
27050extract_expsyms_cmds=$lt_extract_expsyms_cmds
27051
27052# Symbols that should not be listed in the preloaded symbols.
27053exclude_expsyms=$lt_exclude_expsyms_RC
27054
27055# Symbols that must always be exported.
27056include_expsyms=$lt_include_expsyms_RC
27057
27058# ### END LIBTOOL TAG CONFIG: $tagname
27059
27060__EOF__
27061
27062
27063else
27064 # If there is no Makefile yet, we rely on a make rule to execute
27065 # `config.status --recheck' to rerun these tests and create the
27066 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027067 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27068 if test -f "$ltmain_in"; then
27069 test -f Makefile && make "$ltmain"
27070 fi
John Criswell47fdd832003-07-14 16:52:07 +000027071fi
27072
27073
27074ac_ext=c
27075ac_cpp='$CPP $CPPFLAGS'
27076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27078ac_compiler_gnu=$ac_cv_c_compiler_gnu
27079
27080CC="$lt_save_CC"
27081
27082 ;;
27083
27084 *)
27085 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27086echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27087 { (exit 1); exit 1; }; }
27088 ;;
27089 esac
27090
27091 # Append the new tag name to the list of available tags.
27092 if test -n "$tagname" ; then
27093 available_tags="$available_tags $tagname"
27094 fi
27095 fi
27096 done
27097 IFS="$lt_save_ifs"
27098
27099 # Now substitute the updated list of available tags.
27100 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27101 mv "${ofile}T" "$ofile"
27102 chmod +x "$ofile"
27103 else
27104 rm -f "${ofile}T"
27105 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27106echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27107 { (exit 1); exit 1; }; }
27108 fi
27109fi
John Criswell7a73b802003-06-30 21:59:07 +000027110
27111
27112
27113# This can be used to rebuild libtool when needed
27114LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27115
27116# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027117LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027118
27119# Prevent multiple expansion
27120
27121
27122
John Criswell47fdd832003-07-14 16:52:07 +000027123
27124
27125
27126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027140
Reid Spencer582a23c2004-12-29 07:07:57 +000027141if test "$lt_cv_dlopen_self" = "yes" ; then
27142
27143cat >>confdefs.h <<\_ACEOF
27144#define CAN_DLOPEN_SELF 1
27145_ACEOF
27146
27147fi
27148
Douglas Gregor01746742009-05-11 18:05:52 +000027149
Reid Spencer7931a782004-12-27 06:15:02 +000027150if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027151 LLVMGCC="llvm-gcc${EXEEXT}"
27152 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027153 LLVMGCCCOMMAND="$LLVMGCC"
27154 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027155 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27156
27157 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27158
Reid Spencerc84492c2005-06-02 22:34:49 +000027159 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27160set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027161{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027163if test "${ac_cv_path_LLVMGCC+set}" = set; then
27164 echo $ECHO_N "(cached) $ECHO_C" >&6
27165else
27166 case $LLVMGCC in
27167 [\\/]* | ?:[\\/]*)
27168 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27169 ;;
27170 *)
27171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27172for as_dir in $PATH
27173do
27174 IFS=$as_save_IFS
27175 test -z "$as_dir" && as_dir=.
27176 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027177 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 +000027178 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27180 break 2
27181 fi
27182done
27183done
Reid Spencera773bd52006-08-04 18:18:08 +000027184IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027185
Reid Spencer59473af2004-12-25 07:31:29 +000027186 ;;
27187esac
27188fi
27189LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027190if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027191 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27192echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027193else
Reid Spencera773bd52006-08-04 18:18:08 +000027194 { echo "$as_me:$LINENO: result: no" >&5
27195echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027196fi
27197
Reid Spencera773bd52006-08-04 18:18:08 +000027198
Reid Spencerc84492c2005-06-02 22:34:49 +000027199 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27200set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027201{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027203if test "${ac_cv_path_LLVMGXX+set}" = set; then
27204 echo $ECHO_N "(cached) $ECHO_C" >&6
27205else
27206 case $LLVMGXX in
27207 [\\/]* | ?:[\\/]*)
27208 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27209 ;;
27210 *)
27211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27212for as_dir in $PATH
27213do
27214 IFS=$as_save_IFS
27215 test -z "$as_dir" && as_dir=.
27216 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027217 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 +000027218 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27220 break 2
27221 fi
27222done
27223done
Reid Spencera773bd52006-08-04 18:18:08 +000027224IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027225
Reid Spencer59473af2004-12-25 07:31:29 +000027226 ;;
27227esac
27228fi
27229LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027230if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027231 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27232echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027233else
Reid Spencera773bd52006-08-04 18:18:08 +000027234 { echo "$as_me:$LINENO: result: no" >&5
27235echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027236fi
27237
Reid Spencera773bd52006-08-04 18:18:08 +000027238
Reid Spencer59473af2004-12-25 07:31:29 +000027239else
Devang Patel5d28b882007-12-04 22:54:47 +000027240 if test -z "$LLVMGCC"; then
27241 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027242 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000027243 fi
27244 if test -z "$LLVMGXX"; then
27245 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027246 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000027247 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027248
Reid Spencer59473af2004-12-25 07:31:29 +000027249 LLVMGCC=$LLVMGCC
27250
27251 LLVMGXX=$LLVMGXX
27252
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027253 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27254
27255 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27256
Reid Spencer59473af2004-12-25 07:31:29 +000027257fi
27258
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027259
Reid Spencera773bd52006-08-04 18:18:08 +000027260{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27261echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027262
Reid Spencer86901802004-12-08 23:07:27 +000027263ICC=no
27264IXX=no
27265case $CC in
27266 icc*|icpc*)
27267 ICC=yes
27268 IXX=yes
27269 ;;
27270 *)
27271 ;;
27272esac
27273
Duraid Madina937c60a2006-02-15 07:57:42 +000027274if test "$GCC" != "yes" && test "$ICC" != "yes"
27275then
27276 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27277echo "$as_me: error: gcc|icc required but not found" >&2;}
27278 { (exit 1); exit 1; }; }
27279fi
27280
27281if test "$GXX" != "yes" && test "$IXX" != "yes"
27282then
27283 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27284echo "$as_me: error: g++|icc required but not found" >&2;}
27285 { (exit 1); exit 1; }; }
27286fi
27287
Reid Spencer86901802004-12-08 23:07:27 +000027288if test "$GCC" = "yes"
27289then
Chris Lattner399c7c72008-02-05 19:43:53 +000027290 cat >conftest.$ac_ext <<_ACEOF
27291#if !defined(__GNUC__) || __GNUC__ < 3
27292#error Unsupported GCC version
27293#endif
27294
27295_ACEOF
27296rm -f conftest.$ac_objext
27297if { (ac_try="$ac_compile"
27298case "(($ac_try" in
27299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300 *) ac_try_echo=$ac_try;;
27301esac
27302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27303 (eval "$ac_compile") 2>conftest.er1
27304 ac_status=$?
27305 grep -v '^ *+' conftest.er1 >conftest.err
27306 rm -f conftest.er1
27307 cat conftest.err >&5
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027309 (exit $ac_status); } &&
27310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27311 { (case "(($ac_try" in
27312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27313 *) ac_try_echo=$ac_try;;
27314esac
27315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27316 (eval "$ac_try") 2>&5
27317 ac_status=$?
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); }; } &&
27320 { ac_try='test -s conftest.$ac_objext'
27321 { (case "(($ac_try" in
27322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27323 *) ac_try_echo=$ac_try;;
27324esac
27325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27326 (eval "$ac_try") 2>&5
27327 ac_status=$?
27328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027330 :
27331else
27332 echo "$as_me: failed program was:" >&5
27333sed 's/^/| /' conftest.$ac_ext >&5
27334
27335 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027336echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27337 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027338fi
27339
27340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027341fi
27342
27343if test -z "$llvm_cv_gnu_make_command"
27344then
27345 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27346echo "$as_me: error: GNU Make required but not found" >&2;}
27347 { (exit 1); exit 1; }; }
27348fi
27349
Reid Spencera773bd52006-08-04 18:18:08 +000027350{ echo "$as_me:$LINENO: result: ok" >&5
27351echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027352
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027353
John Criswell7a73b802003-06-30 21:59:07 +000027354
Reid Spencera773bd52006-08-04 18:18:08 +000027355{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27356echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027357if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27358 echo $ECHO_N "(cached) $ECHO_C" >&6
27359else
27360 ac_check_lib_save_LIBS=$LIBS
27361LIBS="-lelf $LIBS"
27362cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027363/* confdefs.h. */
27364_ACEOF
27365cat confdefs.h >>conftest.$ac_ext
27366cat >>conftest.$ac_ext <<_ACEOF
27367/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027368
Reid Spencera773bd52006-08-04 18:18:08 +000027369/* Override any GCC internal prototype to avoid an error.
27370 Use char because int might match the return type of a GCC
27371 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027372#ifdef __cplusplus
27373extern "C"
27374#endif
John Criswell7a73b802003-06-30 21:59:07 +000027375char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027376int
27377main ()
27378{
Reid Spencera773bd52006-08-04 18:18:08 +000027379return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027380 ;
27381 return 0;
27382}
27383_ACEOF
27384rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027385if { (ac_try="$ac_link"
27386case "(($ac_try" in
27387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27388 *) ac_try_echo=$ac_try;;
27389esac
27390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27391 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027392 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027393 grep -v '^ *+' conftest.er1 >conftest.err
27394 rm -f conftest.er1
27395 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027397 (exit $ac_status); } &&
27398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27399 { (case "(($ac_try" in
27400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401 *) ac_try_echo=$ac_try;;
27402esac
27403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27404 (eval "$ac_try") 2>&5
27405 ac_status=$?
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); }; } &&
27408 { ac_try='test -s conftest$ac_exeext'
27409 { (case "(($ac_try" in
27410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27411 *) ac_try_echo=$ac_try;;
27412esac
27413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27414 (eval "$ac_try") 2>&5
27415 ac_status=$?
27416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027418 ac_cv_lib_elf_elf_begin=yes
27419else
27420 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027421sed 's/^/| /' conftest.$ac_ext >&5
27422
Reid Spencera773bd52006-08-04 18:18:08 +000027423 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027424fi
Reid Spencera773bd52006-08-04 18:18:08 +000027425
Bill Wendlingebcceee2009-04-18 11:20:33 +000027426rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027427 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027428LIBS=$ac_check_lib_save_LIBS
27429fi
Reid Spencera773bd52006-08-04 18:18:08 +000027430{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27431echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027432if test $ac_cv_lib_elf_elf_begin = yes; then
27433 cat >>confdefs.h <<_ACEOF
27434#define HAVE_LIBELF 1
27435_ACEOF
27436
27437 LIBS="-lelf $LIBS"
27438
27439fi
27440
27441
Reid Spencera773bd52006-08-04 18:18:08 +000027442{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27443echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027444if test "${ac_cv_lib_m_sin+set}" = set; then
27445 echo $ECHO_N "(cached) $ECHO_C" >&6
27446else
27447 ac_check_lib_save_LIBS=$LIBS
27448LIBS="-lm $LIBS"
27449cat >conftest.$ac_ext <<_ACEOF
27450/* confdefs.h. */
27451_ACEOF
27452cat confdefs.h >>conftest.$ac_ext
27453cat >>conftest.$ac_ext <<_ACEOF
27454/* end confdefs.h. */
27455
Reid Spencera773bd52006-08-04 18:18:08 +000027456/* Override any GCC internal prototype to avoid an error.
27457 Use char because int might match the return type of a GCC
27458 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027459#ifdef __cplusplus
27460extern "C"
27461#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027462char sin ();
27463int
27464main ()
27465{
Reid Spencera773bd52006-08-04 18:18:08 +000027466return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027467 ;
27468 return 0;
27469}
27470_ACEOF
27471rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027472if { (ac_try="$ac_link"
27473case "(($ac_try" in
27474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475 *) ac_try_echo=$ac_try;;
27476esac
27477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027479 ac_status=$?
27480 grep -v '^ *+' conftest.er1 >conftest.err
27481 rm -f conftest.er1
27482 cat conftest.err >&5
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027484 (exit $ac_status); } &&
27485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27486 { (case "(($ac_try" in
27487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488 *) ac_try_echo=$ac_try;;
27489esac
27490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27491 (eval "$ac_try") 2>&5
27492 ac_status=$?
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); }; } &&
27495 { ac_try='test -s conftest$ac_exeext'
27496 { (case "(($ac_try" in
27497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498 *) ac_try_echo=$ac_try;;
27499esac
27500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501 (eval "$ac_try") 2>&5
27502 ac_status=$?
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027505 ac_cv_lib_m_sin=yes
27506else
27507 echo "$as_me: failed program was:" >&5
27508sed 's/^/| /' conftest.$ac_ext >&5
27509
Reid Spencera773bd52006-08-04 18:18:08 +000027510 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027511fi
Reid Spencera773bd52006-08-04 18:18:08 +000027512
Bill Wendlingebcceee2009-04-18 11:20:33 +000027513rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027514 conftest$ac_exeext conftest.$ac_ext
27515LIBS=$ac_check_lib_save_LIBS
27516fi
Reid Spencera773bd52006-08-04 18:18:08 +000027517{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27518echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027519if test $ac_cv_lib_m_sin = yes; then
27520 cat >>confdefs.h <<_ACEOF
27521#define HAVE_LIBM 1
27522_ACEOF
27523
27524 LIBS="-lm $LIBS"
27525
27526fi
27527
Jeff Cohen28783c32007-01-12 18:22:38 +000027528if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027529
Reid Spencera773bd52006-08-04 18:18:08 +000027530{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27531echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027532if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027533 echo $ECHO_N "(cached) $ECHO_C" >&6
27534else
27535 ac_check_lib_save_LIBS=$LIBS
27536LIBS="-limagehlp $LIBS"
27537cat >conftest.$ac_ext <<_ACEOF
27538/* confdefs.h. */
27539_ACEOF
27540cat confdefs.h >>conftest.$ac_ext
27541cat >>conftest.$ac_ext <<_ACEOF
27542/* end confdefs.h. */
27543
Reid Spencer48fdf912006-06-01 19:03:21 +000027544
Reid Spencer484fc8e2006-06-01 16:55:59 +000027545int
27546main ()
27547{
Reid Spencera773bd52006-08-04 18:18:08 +000027548return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027549 ;
27550 return 0;
27551}
27552_ACEOF
27553rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027554if { (ac_try="$ac_link"
27555case "(($ac_try" in
27556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557 *) ac_try_echo=$ac_try;;
27558esac
27559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27560 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027561 ac_status=$?
27562 grep -v '^ *+' conftest.er1 >conftest.err
27563 rm -f conftest.er1
27564 cat conftest.err >&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027566 (exit $ac_status); } &&
27567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27568 { (case "(($ac_try" in
27569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570 *) ac_try_echo=$ac_try;;
27571esac
27572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573 (eval "$ac_try") 2>&5
27574 ac_status=$?
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); }; } &&
27577 { ac_try='test -s conftest$ac_exeext'
27578 { (case "(($ac_try" in
27579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27580 *) ac_try_echo=$ac_try;;
27581esac
27582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27583 (eval "$ac_try") 2>&5
27584 ac_status=$?
27585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027587 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027588else
27589 echo "$as_me: failed program was:" >&5
27590sed 's/^/| /' conftest.$ac_ext >&5
27591
Reid Spencera773bd52006-08-04 18:18:08 +000027592 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027593fi
Reid Spencera773bd52006-08-04 18:18:08 +000027594
Bill Wendlingebcceee2009-04-18 11:20:33 +000027595rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027596 conftest$ac_exeext conftest.$ac_ext
27597LIBS=$ac_check_lib_save_LIBS
27598fi
Reid Spencera773bd52006-08-04 18:18:08 +000027599{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27600echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027601if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027602 cat >>confdefs.h <<_ACEOF
27603#define HAVE_LIBIMAGEHLP 1
27604_ACEOF
27605
27606 LIBS="-limagehlp $LIBS"
27607
27608fi
27609
27610
Reid Spencera773bd52006-08-04 18:18:08 +000027611{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27612echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027613if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027614 echo $ECHO_N "(cached) $ECHO_C" >&6
27615else
27616 ac_check_lib_save_LIBS=$LIBS
27617LIBS="-lpsapi $LIBS"
27618cat >conftest.$ac_ext <<_ACEOF
27619/* confdefs.h. */
27620_ACEOF
27621cat confdefs.h >>conftest.$ac_ext
27622cat >>conftest.$ac_ext <<_ACEOF
27623/* end confdefs.h. */
27624
Reid Spencer48fdf912006-06-01 19:03:21 +000027625
Reid Spencer484fc8e2006-06-01 16:55:59 +000027626int
27627main ()
27628{
Reid Spencera773bd52006-08-04 18:18:08 +000027629return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027630 ;
27631 return 0;
27632}
27633_ACEOF
27634rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027635if { (ac_try="$ac_link"
27636case "(($ac_try" in
27637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27638 *) ac_try_echo=$ac_try;;
27639esac
27640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27641 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027642 ac_status=$?
27643 grep -v '^ *+' conftest.er1 >conftest.err
27644 rm -f conftest.er1
27645 cat conftest.err >&5
27646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027647 (exit $ac_status); } &&
27648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27649 { (case "(($ac_try" in
27650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27651 *) ac_try_echo=$ac_try;;
27652esac
27653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27654 (eval "$ac_try") 2>&5
27655 ac_status=$?
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); }; } &&
27658 { ac_try='test -s conftest$ac_exeext'
27659 { (case "(($ac_try" in
27660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27661 *) ac_try_echo=$ac_try;;
27662esac
27663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27664 (eval "$ac_try") 2>&5
27665 ac_status=$?
27666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027668 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027669else
27670 echo "$as_me: failed program was:" >&5
27671sed 's/^/| /' conftest.$ac_ext >&5
27672
Reid Spencera773bd52006-08-04 18:18:08 +000027673 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027674fi
Reid Spencera773bd52006-08-04 18:18:08 +000027675
Bill Wendlingebcceee2009-04-18 11:20:33 +000027676rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027677 conftest$ac_exeext conftest.$ac_ext
27678LIBS=$ac_check_lib_save_LIBS
27679fi
Reid Spencera773bd52006-08-04 18:18:08 +000027680{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27681echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027682if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027683 cat >>confdefs.h <<_ACEOF
27684#define HAVE_LIBPSAPI 1
27685_ACEOF
27686
27687 LIBS="-lpsapi $LIBS"
27688
27689fi
27690
27691fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027692
Reid Spencera773bd52006-08-04 18:18:08 +000027693{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27694echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027695if test "${ac_cv_search_dlopen+set}" = set; then
27696 echo $ECHO_N "(cached) $ECHO_C" >&6
27697else
27698 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027699cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027700/* confdefs.h. */
27701_ACEOF
27702cat confdefs.h >>conftest.$ac_ext
27703cat >>conftest.$ac_ext <<_ACEOF
27704/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027705
Reid Spencera773bd52006-08-04 18:18:08 +000027706/* Override any GCC internal prototype to avoid an error.
27707 Use char because int might match the return type of a GCC
27708 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027709#ifdef __cplusplus
27710extern "C"
27711#endif
John Criswell7a73b802003-06-30 21:59:07 +000027712char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027713int
27714main ()
27715{
Reid Spencera773bd52006-08-04 18:18:08 +000027716return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027717 ;
27718 return 0;
27719}
27720_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027721for ac_lib in '' dl; do
27722 if test -z "$ac_lib"; then
27723 ac_res="none required"
27724 else
27725 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027727 fi
27728 rm -f conftest.$ac_objext conftest$ac_exeext
27729if { (ac_try="$ac_link"
27730case "(($ac_try" in
27731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27732 *) ac_try_echo=$ac_try;;
27733esac
27734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27735 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027736 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027737 grep -v '^ *+' conftest.er1 >conftest.err
27738 rm -f conftest.er1
27739 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027741 (exit $ac_status); } &&
27742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27743 { (case "(($ac_try" in
27744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27745 *) ac_try_echo=$ac_try;;
27746esac
27747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27748 (eval "$ac_try") 2>&5
27749 ac_status=$?
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); }; } &&
27752 { ac_try='test -s conftest$ac_exeext'
27753 { (case "(($ac_try" in
27754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27755 *) ac_try_echo=$ac_try;;
27756esac
27757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27758 (eval "$ac_try") 2>&5
27759 ac_status=$?
27760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027762 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027763else
27764 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027765sed 's/^/| /' conftest.$ac_ext >&5
27766
Reid Spencera773bd52006-08-04 18:18:08 +000027767
John Criswell7a73b802003-06-30 21:59:07 +000027768fi
Reid Spencera773bd52006-08-04 18:18:08 +000027769
Bill Wendlingebcceee2009-04-18 11:20:33 +000027770rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027771 conftest$ac_exeext
27772 if test "${ac_cv_search_dlopen+set}" = set; then
27773 break
John Criswell7a73b802003-06-30 21:59:07 +000027774fi
Reid Spencera773bd52006-08-04 18:18:08 +000027775done
27776if test "${ac_cv_search_dlopen+set}" = set; then
27777 :
27778else
27779 ac_cv_search_dlopen=no
27780fi
27781rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027782LIBS=$ac_func_search_save_LIBS
27783fi
Reid Spencera773bd52006-08-04 18:18:08 +000027784{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27785echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27786ac_res=$ac_cv_search_dlopen
27787if test "$ac_res" != no; then
27788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027789
27790cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027791#define HAVE_DLOPEN 1
27792_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027793
27794else
Brian Gaekec45be042003-10-07 06:01:34 +000027795 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27796echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027797fi
27798
27799
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027800if test "$llvm_cv_enable_libffi" = "yes" ; then
27801 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027802echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27803if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027804 echo $ECHO_N "(cached) $ECHO_C" >&6
27805else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027806 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027807cat >conftest.$ac_ext <<_ACEOF
27808/* confdefs.h. */
27809_ACEOF
27810cat confdefs.h >>conftest.$ac_ext
27811cat >>conftest.$ac_ext <<_ACEOF
27812/* end confdefs.h. */
27813
27814/* Override any GCC internal prototype to avoid an error.
27815 Use char because int might match the return type of a GCC
27816 builtin and then its argument prototype would still apply. */
27817#ifdef __cplusplus
27818extern "C"
27819#endif
27820char ffi_call ();
27821int
27822main ()
27823{
27824return ffi_call ();
27825 ;
27826 return 0;
27827}
27828_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027829for ac_lib in '' ffi; do
27830 if test -z "$ac_lib"; then
27831 ac_res="none required"
27832 else
27833 ac_res=-l$ac_lib
27834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27835 fi
27836 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027837if { (ac_try="$ac_link"
27838case "(($ac_try" in
27839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27840 *) ac_try_echo=$ac_try;;
27841esac
27842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27843 (eval "$ac_link") 2>conftest.er1
27844 ac_status=$?
27845 grep -v '^ *+' conftest.er1 >conftest.err
27846 rm -f conftest.er1
27847 cat conftest.err >&5
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027849 (exit $ac_status); } &&
27850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27851 { (case "(($ac_try" in
27852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27853 *) ac_try_echo=$ac_try;;
27854esac
27855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27856 (eval "$ac_try") 2>&5
27857 ac_status=$?
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); }; } &&
27860 { ac_try='test -s conftest$ac_exeext'
27861 { (case "(($ac_try" in
27862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27863 *) ac_try_echo=$ac_try;;
27864esac
27865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27866 (eval "$ac_try") 2>&5
27867 ac_status=$?
27868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027870 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027871else
27872 echo "$as_me: failed program was:" >&5
27873sed 's/^/| /' conftest.$ac_ext >&5
27874
Nick Lewycky267fddb2009-04-13 04:26:27 +000027875
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027876fi
27877
Bill Wendlingebcceee2009-04-18 11:20:33 +000027878rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027879 conftest$ac_exeext
27880 if test "${ac_cv_search_ffi_call+set}" = set; then
27881 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027882fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027883done
27884if test "${ac_cv_search_ffi_call+set}" = set; then
27885 :
27886else
27887 ac_cv_search_ffi_call=no
27888fi
27889rm conftest.$ac_ext
27890LIBS=$ac_func_search_save_LIBS
27891fi
27892{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27893echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27894ac_res=$ac_cv_search_ffi_call
27895if test "$ac_res" != no; then
27896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27897
27898cat >>confdefs.h <<\_ACEOF
27899#define HAVE_FFI_CALL 1
27900_ACEOF
27901
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027902else
27903 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27904echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27905fi
27906
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027907fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027908
Reid Spencera773bd52006-08-04 18:18:08 +000027909{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27910echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027911if test "${ac_cv_search_mallinfo+set}" = set; then
27912 echo $ECHO_N "(cached) $ECHO_C" >&6
27913else
27914 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027915cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027916/* confdefs.h. */
27917_ACEOF
27918cat confdefs.h >>conftest.$ac_ext
27919cat >>conftest.$ac_ext <<_ACEOF
27920/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027921
Reid Spencera773bd52006-08-04 18:18:08 +000027922/* Override any GCC internal prototype to avoid an error.
27923 Use char because int might match the return type of a GCC
27924 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027925#ifdef __cplusplus
27926extern "C"
27927#endif
John Criswell7a73b802003-06-30 21:59:07 +000027928char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027929int
27930main ()
27931{
Reid Spencera773bd52006-08-04 18:18:08 +000027932return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027933 ;
27934 return 0;
27935}
27936_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027937for ac_lib in '' malloc; do
27938 if test -z "$ac_lib"; then
27939 ac_res="none required"
27940 else
27941 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027943 fi
27944 rm -f conftest.$ac_objext conftest$ac_exeext
27945if { (ac_try="$ac_link"
27946case "(($ac_try" in
27947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27948 *) ac_try_echo=$ac_try;;
27949esac
27950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27951 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027952 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027953 grep -v '^ *+' conftest.er1 >conftest.err
27954 rm -f conftest.er1
27955 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027957 (exit $ac_status); } &&
27958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27959 { (case "(($ac_try" in
27960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27961 *) ac_try_echo=$ac_try;;
27962esac
27963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27964 (eval "$ac_try") 2>&5
27965 ac_status=$?
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); }; } &&
27968 { ac_try='test -s conftest$ac_exeext'
27969 { (case "(($ac_try" in
27970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27971 *) ac_try_echo=$ac_try;;
27972esac
27973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27974 (eval "$ac_try") 2>&5
27975 ac_status=$?
27976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27977 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027978 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027979else
27980 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027981sed 's/^/| /' conftest.$ac_ext >&5
27982
Reid Spencera773bd52006-08-04 18:18:08 +000027983
John Criswell7a73b802003-06-30 21:59:07 +000027984fi
Reid Spencera773bd52006-08-04 18:18:08 +000027985
Bill Wendlingebcceee2009-04-18 11:20:33 +000027986rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027987 conftest$ac_exeext
27988 if test "${ac_cv_search_mallinfo+set}" = set; then
27989 break
John Criswell7a73b802003-06-30 21:59:07 +000027990fi
Reid Spencera773bd52006-08-04 18:18:08 +000027991done
27992if test "${ac_cv_search_mallinfo+set}" = set; then
27993 :
27994else
27995 ac_cv_search_mallinfo=no
27996fi
27997rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027998LIBS=$ac_func_search_save_LIBS
27999fi
Reid Spencera773bd52006-08-04 18:18:08 +000028000{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28001echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28002ac_res=$ac_cv_search_mallinfo
28003if test "$ac_res" != no; then
28004 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000028005
28006cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000028007#define HAVE_MALLINFO 1
28008_ACEOF
28009
28010fi
28011
28012
Reid Spencer0a262ba2005-08-24 10:07:20 +000028013if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028014
Reid Spencera773bd52006-08-04 18:18:08 +000028015{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28016echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000028017if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28018 echo $ECHO_N "(cached) $ECHO_C" >&6
28019else
28020 ac_check_lib_save_LIBS=$LIBS
28021LIBS="-lpthread $LIBS"
28022cat >conftest.$ac_ext <<_ACEOF
28023/* confdefs.h. */
28024_ACEOF
28025cat confdefs.h >>conftest.$ac_ext
28026cat >>conftest.$ac_ext <<_ACEOF
28027/* end confdefs.h. */
28028
Reid Spencera773bd52006-08-04 18:18:08 +000028029/* Override any GCC internal prototype to avoid an error.
28030 Use char because int might match the return type of a GCC
28031 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000028032#ifdef __cplusplus
28033extern "C"
28034#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000028035char pthread_mutex_init ();
28036int
28037main ()
28038{
Reid Spencera773bd52006-08-04 18:18:08 +000028039return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000028040 ;
28041 return 0;
28042}
28043_ACEOF
28044rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028045if { (ac_try="$ac_link"
28046case "(($ac_try" in
28047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28048 *) ac_try_echo=$ac_try;;
28049esac
28050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28051 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000028052 ac_status=$?
28053 grep -v '^ *+' conftest.er1 >conftest.err
28054 rm -f conftest.er1
28055 cat conftest.err >&5
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028057 (exit $ac_status); } &&
28058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28059 { (case "(($ac_try" in
28060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28061 *) ac_try_echo=$ac_try;;
28062esac
28063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28064 (eval "$ac_try") 2>&5
28065 ac_status=$?
28066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); }; } &&
28068 { ac_try='test -s conftest$ac_exeext'
28069 { (case "(($ac_try" in
28070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28071 *) ac_try_echo=$ac_try;;
28072esac
28073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28074 (eval "$ac_try") 2>&5
28075 ac_status=$?
28076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028078 ac_cv_lib_pthread_pthread_mutex_init=yes
28079else
28080 echo "$as_me: failed program was:" >&5
28081sed 's/^/| /' conftest.$ac_ext >&5
28082
Reid Spencera773bd52006-08-04 18:18:08 +000028083 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000028084fi
Reid Spencera773bd52006-08-04 18:18:08 +000028085
Bill Wendlingebcceee2009-04-18 11:20:33 +000028086rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000028087 conftest$ac_exeext conftest.$ac_ext
28088LIBS=$ac_check_lib_save_LIBS
28089fi
Reid Spencera773bd52006-08-04 18:18:08 +000028090{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28091echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000028092if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28093 cat >>confdefs.h <<_ACEOF
28094#define HAVE_LIBPTHREAD 1
28095_ACEOF
28096
28097 LIBS="-lpthread $LIBS"
28098
28099fi
28100
Reid Spencera773bd52006-08-04 18:18:08 +000028101 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28102echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000028103if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28104 echo $ECHO_N "(cached) $ECHO_C" >&6
28105else
28106 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000028107cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000028108/* confdefs.h. */
28109_ACEOF
28110cat confdefs.h >>conftest.$ac_ext
28111cat >>conftest.$ac_ext <<_ACEOF
28112/* end confdefs.h. */
28113
Reid Spencera773bd52006-08-04 18:18:08 +000028114/* Override any GCC internal prototype to avoid an error.
28115 Use char because int might match the return type of a GCC
28116 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000028117#ifdef __cplusplus
28118extern "C"
28119#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000028120char pthread_mutex_lock ();
28121int
28122main ()
28123{
Reid Spencera773bd52006-08-04 18:18:08 +000028124return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000028125 ;
28126 return 0;
28127}
28128_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028129for ac_lib in '' pthread; do
28130 if test -z "$ac_lib"; then
28131 ac_res="none required"
28132 else
28133 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000028134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028135 fi
28136 rm -f conftest.$ac_objext conftest$ac_exeext
28137if { (ac_try="$ac_link"
28138case "(($ac_try" in
28139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28140 *) ac_try_echo=$ac_try;;
28141esac
28142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28143 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000028144 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028145 grep -v '^ *+' conftest.er1 >conftest.err
28146 rm -f conftest.er1
28147 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000028148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028149 (exit $ac_status); } &&
28150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28151 { (case "(($ac_try" in
28152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28153 *) ac_try_echo=$ac_try;;
28154esac
28155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28156 (eval "$ac_try") 2>&5
28157 ac_status=$?
28158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159 (exit $ac_status); }; } &&
28160 { ac_try='test -s conftest$ac_exeext'
28161 { (case "(($ac_try" in
28162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28163 *) ac_try_echo=$ac_try;;
28164esac
28165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28166 (eval "$ac_try") 2>&5
28167 ac_status=$?
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028170 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028171else
28172 echo "$as_me: failed program was:" >&5
28173sed 's/^/| /' conftest.$ac_ext >&5
28174
Reid Spencera773bd52006-08-04 18:18:08 +000028175
Brian Gaeke5f268f72003-12-05 19:29:01 +000028176fi
Reid Spencera773bd52006-08-04 18:18:08 +000028177
Bill Wendlingebcceee2009-04-18 11:20:33 +000028178rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028179 conftest$ac_exeext
28180 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28181 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028182fi
Reid Spencera773bd52006-08-04 18:18:08 +000028183done
28184if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28185 :
28186else
28187 ac_cv_search_pthread_mutex_lock=no
28188fi
28189rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028190LIBS=$ac_func_search_save_LIBS
28191fi
Reid Spencera773bd52006-08-04 18:18:08 +000028192{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28193echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28194ac_res=$ac_cv_search_pthread_mutex_lock
28195if test "$ac_res" != no; then
28196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028197
John Criswell40468462004-09-24 21:19:06 +000028198cat >>confdefs.h <<\_ACEOF
28199#define HAVE_PTHREAD_MUTEX_LOCK 1
28200_ACEOF
28201
28202fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028203
Owen Andersonde8aed22009-06-16 18:20:20 +000028204 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28205echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28206if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28207 echo $ECHO_N "(cached) $ECHO_C" >&6
28208else
28209 ac_func_search_save_LIBS=$LIBS
28210cat >conftest.$ac_ext <<_ACEOF
28211/* confdefs.h. */
28212_ACEOF
28213cat confdefs.h >>conftest.$ac_ext
28214cat >>conftest.$ac_ext <<_ACEOF
28215/* end confdefs.h. */
28216
28217/* Override any GCC internal prototype to avoid an error.
28218 Use char because int might match the return type of a GCC
28219 builtin and then its argument prototype would still apply. */
28220#ifdef __cplusplus
28221extern "C"
28222#endif
28223char pthread_rwlock_init ();
28224int
28225main ()
28226{
28227return pthread_rwlock_init ();
28228 ;
28229 return 0;
28230}
28231_ACEOF
28232for ac_lib in '' pthread; do
28233 if test -z "$ac_lib"; then
28234 ac_res="none required"
28235 else
28236 ac_res=-l$ac_lib
28237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28238 fi
28239 rm -f conftest.$ac_objext conftest$ac_exeext
28240if { (ac_try="$ac_link"
28241case "(($ac_try" in
28242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28243 *) ac_try_echo=$ac_try;;
28244esac
28245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28246 (eval "$ac_link") 2>conftest.er1
28247 ac_status=$?
28248 grep -v '^ *+' conftest.er1 >conftest.err
28249 rm -f conftest.er1
28250 cat conftest.err >&5
28251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); } &&
28253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28254 { (case "(($ac_try" in
28255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28256 *) ac_try_echo=$ac_try;;
28257esac
28258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28259 (eval "$ac_try") 2>&5
28260 ac_status=$?
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); }; } &&
28263 { ac_try='test -s conftest$ac_exeext'
28264 { (case "(($ac_try" in
28265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266 *) ac_try_echo=$ac_try;;
28267esac
28268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28269 (eval "$ac_try") 2>&5
28270 ac_status=$?
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272 (exit $ac_status); }; }; then
28273 ac_cv_search_pthread_rwlock_init=$ac_res
28274else
28275 echo "$as_me: failed program was:" >&5
28276sed 's/^/| /' conftest.$ac_ext >&5
28277
28278
28279fi
28280
28281rm -f core conftest.err conftest.$ac_objext \
28282 conftest$ac_exeext
28283 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28284 break
28285fi
28286done
28287if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28288 :
28289else
28290 ac_cv_search_pthread_rwlock_init=no
28291fi
28292rm conftest.$ac_ext
28293LIBS=$ac_func_search_save_LIBS
28294fi
28295{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28296echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28297ac_res=$ac_cv_search_pthread_rwlock_init
28298if test "$ac_res" != no; then
28299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28300
28301cat >>confdefs.h <<\_ACEOF
28302#define HAVE_PTHREAD_RWLOCK_INIT 1
28303_ACEOF
28304
28305fi
28306
Owen Anderson27fcfe12009-06-25 23:10:26 +000028307 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28308echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28309if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28310 echo $ECHO_N "(cached) $ECHO_C" >&6
28311else
28312 ac_func_search_save_LIBS=$LIBS
28313cat >conftest.$ac_ext <<_ACEOF
28314/* confdefs.h. */
28315_ACEOF
28316cat confdefs.h >>conftest.$ac_ext
28317cat >>conftest.$ac_ext <<_ACEOF
28318/* end confdefs.h. */
28319
28320/* Override any GCC internal prototype to avoid an error.
28321 Use char because int might match the return type of a GCC
28322 builtin and then its argument prototype would still apply. */
28323#ifdef __cplusplus
28324extern "C"
28325#endif
28326char pthread_getspecific ();
28327int
28328main ()
28329{
28330return pthread_getspecific ();
28331 ;
28332 return 0;
28333}
28334_ACEOF
28335for ac_lib in '' pthread; do
28336 if test -z "$ac_lib"; then
28337 ac_res="none required"
28338 else
28339 ac_res=-l$ac_lib
28340 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28341 fi
28342 rm -f conftest.$ac_objext conftest$ac_exeext
28343if { (ac_try="$ac_link"
28344case "(($ac_try" in
28345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28346 *) ac_try_echo=$ac_try;;
28347esac
28348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28349 (eval "$ac_link") 2>conftest.er1
28350 ac_status=$?
28351 grep -v '^ *+' conftest.er1 >conftest.err
28352 rm -f conftest.er1
28353 cat conftest.err >&5
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); } &&
28356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28357 { (case "(($ac_try" in
28358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28359 *) ac_try_echo=$ac_try;;
28360esac
28361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28362 (eval "$ac_try") 2>&5
28363 ac_status=$?
28364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365 (exit $ac_status); }; } &&
28366 { ac_try='test -s conftest$ac_exeext'
28367 { (case "(($ac_try" in
28368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28369 *) ac_try_echo=$ac_try;;
28370esac
28371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28372 (eval "$ac_try") 2>&5
28373 ac_status=$?
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); }; }; then
28376 ac_cv_search_pthread_getspecific=$ac_res
28377else
28378 echo "$as_me: failed program was:" >&5
28379sed 's/^/| /' conftest.$ac_ext >&5
28380
28381
28382fi
28383
28384rm -f core conftest.err conftest.$ac_objext \
28385 conftest$ac_exeext
28386 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28387 break
28388fi
28389done
28390if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28391 :
28392else
28393 ac_cv_search_pthread_getspecific=no
28394fi
28395rm conftest.$ac_ext
28396LIBS=$ac_func_search_save_LIBS
28397fi
28398{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28399echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28400ac_res=$ac_cv_search_pthread_getspecific
28401if test "$ac_res" != no; then
28402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28403
28404cat >>confdefs.h <<\_ACEOF
28405#define HAVE_PTHREAD_GETSPECIFIC 1
28406_ACEOF
28407
28408fi
28409
Reid Spencer0a262ba2005-08-24 10:07:20 +000028410fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028411
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028412
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028413# Check whether --with-udis86 was given.
28414if test "${with_udis86+set}" = set; then
28415 withval=$with_udis86;
28416 USE_UDIS86=1
28417
28418 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028419 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028420 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28421 esac
28422
28423{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28424echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28425if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28426 echo $ECHO_N "(cached) $ECHO_C" >&6
28427else
28428 ac_check_lib_save_LIBS=$LIBS
28429LIBS="-ludis86 $LIBS"
28430cat >conftest.$ac_ext <<_ACEOF
28431/* confdefs.h. */
28432_ACEOF
28433cat confdefs.h >>conftest.$ac_ext
28434cat >>conftest.$ac_ext <<_ACEOF
28435/* end confdefs.h. */
28436
28437/* Override any GCC internal prototype to avoid an error.
28438 Use char because int might match the return type of a GCC
28439 builtin and then its argument prototype would still apply. */
28440#ifdef __cplusplus
28441extern "C"
28442#endif
28443char ud_init ();
28444int
28445main ()
28446{
28447return ud_init ();
28448 ;
28449 return 0;
28450}
28451_ACEOF
28452rm -f conftest.$ac_objext conftest$ac_exeext
28453if { (ac_try="$ac_link"
28454case "(($ac_try" in
28455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28456 *) ac_try_echo=$ac_try;;
28457esac
28458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28459 (eval "$ac_link") 2>conftest.er1
28460 ac_status=$?
28461 grep -v '^ *+' conftest.er1 >conftest.err
28462 rm -f conftest.er1
28463 cat conftest.err >&5
28464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028465 (exit $ac_status); } &&
28466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28467 { (case "(($ac_try" in
28468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469 *) ac_try_echo=$ac_try;;
28470esac
28471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472 (eval "$ac_try") 2>&5
28473 ac_status=$?
28474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475 (exit $ac_status); }; } &&
28476 { ac_try='test -s conftest$ac_exeext'
28477 { (case "(($ac_try" in
28478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28479 *) ac_try_echo=$ac_try;;
28480esac
28481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28482 (eval "$ac_try") 2>&5
28483 ac_status=$?
28484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028486 ac_cv_lib_udis86_ud_init=yes
28487else
28488 echo "$as_me: failed program was:" >&5
28489sed 's/^/| /' conftest.$ac_ext >&5
28490
28491 ac_cv_lib_udis86_ud_init=no
28492fi
28493
Bill Wendlingebcceee2009-04-18 11:20:33 +000028494rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028495 conftest$ac_exeext conftest.$ac_ext
28496LIBS=$ac_check_lib_save_LIBS
28497fi
28498{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28499echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28500if test $ac_cv_lib_udis86_ud_init = yes; then
28501 cat >>confdefs.h <<_ACEOF
28502#define HAVE_LIBUDIS86 1
28503_ACEOF
28504
28505 LIBS="-ludis86 $LIBS"
28506
28507else
28508
28509 echo "Error! You need to have libudis86 around."
28510 exit -1
28511
28512fi
28513
28514
28515else
28516 USE_UDIS86=0
28517
28518fi
28519
28520
28521cat >>confdefs.h <<_ACEOF
28522#define USE_UDIS86 $USE_UDIS86
28523_ACEOF
28524
28525
28526
Reid Spencer59473af2004-12-25 07:31:29 +000028527
28528
28529
28530
28531
28532ac_header_dirent=no
28533for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28534 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028535{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28536echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028538 echo $ECHO_N "(cached) $ECHO_C" >&6
28539else
28540 cat >conftest.$ac_ext <<_ACEOF
28541/* confdefs.h. */
28542_ACEOF
28543cat confdefs.h >>conftest.$ac_ext
28544cat >>conftest.$ac_ext <<_ACEOF
28545/* end confdefs.h. */
28546#include <sys/types.h>
28547#include <$ac_hdr>
28548
28549int
28550main ()
28551{
28552if ((DIR *) 0)
28553return 0;
28554 ;
28555 return 0;
28556}
28557_ACEOF
28558rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028559if { (ac_try="$ac_compile"
28560case "(($ac_try" in
28561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28562 *) ac_try_echo=$ac_try;;
28563esac
28564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28565 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028566 ac_status=$?
28567 grep -v '^ *+' conftest.er1 >conftest.err
28568 rm -f conftest.er1
28569 cat conftest.err >&5
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028571 (exit $ac_status); } &&
28572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28573 { (case "(($ac_try" in
28574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28575 *) ac_try_echo=$ac_try;;
28576esac
28577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28578 (eval "$ac_try") 2>&5
28579 ac_status=$?
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); }; } &&
28582 { ac_try='test -s conftest.$ac_objext'
28583 { (case "(($ac_try" in
28584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28585 *) ac_try_echo=$ac_try;;
28586esac
28587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28588 (eval "$ac_try") 2>&5
28589 ac_status=$?
28590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028592 eval "$as_ac_Header=yes"
28593else
28594 echo "$as_me: failed program was:" >&5
28595sed 's/^/| /' conftest.$ac_ext >&5
28596
Reid Spencera773bd52006-08-04 18:18:08 +000028597 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028598fi
Reid Spencera773bd52006-08-04 18:18:08 +000028599
28600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028601fi
Reid Spencera773bd52006-08-04 18:18:08 +000028602ac_res=`eval echo '${'$as_ac_Header'}'`
28603 { echo "$as_me:$LINENO: result: $ac_res" >&5
28604echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028605if test `eval echo '${'$as_ac_Header'}'` = yes; then
28606 cat >>confdefs.h <<_ACEOF
28607#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28608_ACEOF
28609
28610ac_header_dirent=$ac_hdr; break
28611fi
28612
28613done
28614# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28615if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028616 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28617echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028618if test "${ac_cv_search_opendir+set}" = set; then
28619 echo $ECHO_N "(cached) $ECHO_C" >&6
28620else
28621 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028622cat >conftest.$ac_ext <<_ACEOF
28623/* confdefs.h. */
28624_ACEOF
28625cat confdefs.h >>conftest.$ac_ext
28626cat >>conftest.$ac_ext <<_ACEOF
28627/* end confdefs.h. */
28628
Reid Spencera773bd52006-08-04 18:18:08 +000028629/* Override any GCC internal prototype to avoid an error.
28630 Use char because int might match the return type of a GCC
28631 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028632#ifdef __cplusplus
28633extern "C"
28634#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028635char opendir ();
28636int
28637main ()
28638{
Reid Spencera773bd52006-08-04 18:18:08 +000028639return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028640 ;
28641 return 0;
28642}
28643_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028644for ac_lib in '' dir; do
28645 if test -z "$ac_lib"; then
28646 ac_res="none required"
28647 else
28648 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028650 fi
28651 rm -f conftest.$ac_objext conftest$ac_exeext
28652if { (ac_try="$ac_link"
28653case "(($ac_try" in
28654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28655 *) ac_try_echo=$ac_try;;
28656esac
28657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28658 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028659 ac_status=$?
28660 grep -v '^ *+' conftest.er1 >conftest.err
28661 rm -f conftest.er1
28662 cat conftest.err >&5
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028664 (exit $ac_status); } &&
28665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28666 { (case "(($ac_try" in
28667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28668 *) ac_try_echo=$ac_try;;
28669esac
28670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28671 (eval "$ac_try") 2>&5
28672 ac_status=$?
28673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674 (exit $ac_status); }; } &&
28675 { ac_try='test -s conftest$ac_exeext'
28676 { (case "(($ac_try" in
28677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678 *) ac_try_echo=$ac_try;;
28679esac
28680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28681 (eval "$ac_try") 2>&5
28682 ac_status=$?
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028685 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028686else
28687 echo "$as_me: failed program was:" >&5
28688sed 's/^/| /' conftest.$ac_ext >&5
28689
Reid Spencera773bd52006-08-04 18:18:08 +000028690
Reid Spencer59473af2004-12-25 07:31:29 +000028691fi
Reid Spencera773bd52006-08-04 18:18:08 +000028692
Bill Wendlingebcceee2009-04-18 11:20:33 +000028693rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028694 conftest$ac_exeext
28695 if test "${ac_cv_search_opendir+set}" = set; then
28696 break
Reid Spencer59473af2004-12-25 07:31:29 +000028697fi
Reid Spencera773bd52006-08-04 18:18:08 +000028698done
28699if test "${ac_cv_search_opendir+set}" = set; then
28700 :
28701else
28702 ac_cv_search_opendir=no
28703fi
28704rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028705LIBS=$ac_func_search_save_LIBS
28706fi
Reid Spencera773bd52006-08-04 18:18:08 +000028707{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28708echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28709ac_res=$ac_cv_search_opendir
28710if test "$ac_res" != no; then
28711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028712
28713fi
28714
28715else
Reid Spencera773bd52006-08-04 18:18:08 +000028716 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28717echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028718if test "${ac_cv_search_opendir+set}" = set; then
28719 echo $ECHO_N "(cached) $ECHO_C" >&6
28720else
28721 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028722cat >conftest.$ac_ext <<_ACEOF
28723/* confdefs.h. */
28724_ACEOF
28725cat confdefs.h >>conftest.$ac_ext
28726cat >>conftest.$ac_ext <<_ACEOF
28727/* end confdefs.h. */
28728
Reid Spencera773bd52006-08-04 18:18:08 +000028729/* Override any GCC internal prototype to avoid an error.
28730 Use char because int might match the return type of a GCC
28731 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028732#ifdef __cplusplus
28733extern "C"
28734#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028735char opendir ();
28736int
28737main ()
28738{
Reid Spencera773bd52006-08-04 18:18:08 +000028739return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028740 ;
28741 return 0;
28742}
28743_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028744for ac_lib in '' x; do
28745 if test -z "$ac_lib"; then
28746 ac_res="none required"
28747 else
28748 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028750 fi
28751 rm -f conftest.$ac_objext conftest$ac_exeext
28752if { (ac_try="$ac_link"
28753case "(($ac_try" in
28754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755 *) ac_try_echo=$ac_try;;
28756esac
28757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028759 ac_status=$?
28760 grep -v '^ *+' conftest.er1 >conftest.err
28761 rm -f conftest.er1
28762 cat conftest.err >&5
28763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028764 (exit $ac_status); } &&
28765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28766 { (case "(($ac_try" in
28767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768 *) ac_try_echo=$ac_try;;
28769esac
28770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28771 (eval "$ac_try") 2>&5
28772 ac_status=$?
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); }; } &&
28775 { ac_try='test -s conftest$ac_exeext'
28776 { (case "(($ac_try" in
28777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28778 *) ac_try_echo=$ac_try;;
28779esac
28780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28781 (eval "$ac_try") 2>&5
28782 ac_status=$?
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028785 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028786else
28787 echo "$as_me: failed program was:" >&5
28788sed 's/^/| /' conftest.$ac_ext >&5
28789
Reid Spencera773bd52006-08-04 18:18:08 +000028790
Reid Spencer59473af2004-12-25 07:31:29 +000028791fi
Reid Spencera773bd52006-08-04 18:18:08 +000028792
Bill Wendlingebcceee2009-04-18 11:20:33 +000028793rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028794 conftest$ac_exeext
28795 if test "${ac_cv_search_opendir+set}" = set; then
28796 break
Reid Spencer59473af2004-12-25 07:31:29 +000028797fi
Reid Spencera773bd52006-08-04 18:18:08 +000028798done
28799if test "${ac_cv_search_opendir+set}" = set; then
28800 :
28801else
28802 ac_cv_search_opendir=no
28803fi
28804rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028805LIBS=$ac_func_search_save_LIBS
28806fi
Reid Spencera773bd52006-08-04 18:18:08 +000028807{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28808echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28809ac_res=$ac_cv_search_opendir
28810if test "$ac_res" != no; then
28811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028812
28813fi
28814
28815fi
28816
Reid Spencera773bd52006-08-04 18:18:08 +000028817{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28818echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028819if test "${ac_cv_header_mmap_anon+set}" = set; then
28820 echo $ECHO_N "(cached) $ECHO_C" >&6
28821else
28822 ac_ext=c
28823ac_cpp='$CPP $CPPFLAGS'
28824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28826ac_compiler_gnu=$ac_cv_c_compiler_gnu
28827
28828 cat >conftest.$ac_ext <<_ACEOF
28829/* confdefs.h. */
28830_ACEOF
28831cat confdefs.h >>conftest.$ac_ext
28832cat >>conftest.$ac_ext <<_ACEOF
28833/* end confdefs.h. */
28834#include <sys/mman.h>
28835#include <unistd.h>
28836#include <fcntl.h>
28837int
28838main ()
28839{
28840mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28841 ;
28842 return 0;
28843}
28844_ACEOF
28845rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028846if { (ac_try="$ac_compile"
28847case "(($ac_try" in
28848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28849 *) ac_try_echo=$ac_try;;
28850esac
28851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28852 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028853 ac_status=$?
28854 grep -v '^ *+' conftest.er1 >conftest.err
28855 rm -f conftest.er1
28856 cat conftest.err >&5
28857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028858 (exit $ac_status); } &&
28859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28860 { (case "(($ac_try" in
28861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28862 *) ac_try_echo=$ac_try;;
28863esac
28864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28865 (eval "$ac_try") 2>&5
28866 ac_status=$?
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); }; } &&
28869 { ac_try='test -s conftest.$ac_objext'
28870 { (case "(($ac_try" in
28871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28872 *) ac_try_echo=$ac_try;;
28873esac
28874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28875 (eval "$ac_try") 2>&5
28876 ac_status=$?
28877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028879 ac_cv_header_mmap_anon=yes
28880else
28881 echo "$as_me: failed program was:" >&5
28882sed 's/^/| /' conftest.$ac_ext >&5
28883
Reid Spencera773bd52006-08-04 18:18:08 +000028884 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028885fi
Reid Spencera773bd52006-08-04 18:18:08 +000028886
28887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028888 ac_ext=c
28889ac_cpp='$CPP $CPPFLAGS'
28890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28892ac_compiler_gnu=$ac_cv_c_compiler_gnu
28893
28894
28895fi
Reid Spencera773bd52006-08-04 18:18:08 +000028896{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28897echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028898if test "$ac_cv_header_mmap_anon" = yes; then
28899
28900cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028901#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028902_ACEOF
28903
28904fi
28905
Reid Spencera773bd52006-08-04 18:18:08 +000028906{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28907echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028908if test "${ac_cv_header_stat_broken+set}" = set; then
28909 echo $ECHO_N "(cached) $ECHO_C" >&6
28910else
28911 cat >conftest.$ac_ext <<_ACEOF
28912/* confdefs.h. */
28913_ACEOF
28914cat confdefs.h >>conftest.$ac_ext
28915cat >>conftest.$ac_ext <<_ACEOF
28916/* end confdefs.h. */
28917#include <sys/types.h>
28918#include <sys/stat.h>
28919
Reid Spencera773bd52006-08-04 18:18:08 +000028920#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000028921# if S_ISBLK (S_IFDIR)
28922You lose.
28923# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028924#endif
28925
Reid Spencera773bd52006-08-04 18:18:08 +000028926#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000028927# if S_ISBLK (S_IFCHR)
28928You lose.
28929# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028930#endif
28931
Reid Spencera773bd52006-08-04 18:18:08 +000028932#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000028933# if S_ISLNK (S_IFREG)
28934You lose.
28935# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028936#endif
28937
Reid Spencera773bd52006-08-04 18:18:08 +000028938#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000028939# if S_ISSOCK (S_IFREG)
28940You lose.
28941# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028942#endif
28943
28944_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000028945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28946 $EGREP "You lose" >/dev/null 2>&1; then
28947 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028948else
Bill Wendlingebcceee2009-04-18 11:20:33 +000028949 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028950fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028951rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028952
Reid Spencer59473af2004-12-25 07:31:29 +000028953fi
Reid Spencera773bd52006-08-04 18:18:08 +000028954{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28955echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028956if test $ac_cv_header_stat_broken = yes; then
28957
28958cat >>confdefs.h <<\_ACEOF
28959#define STAT_MACROS_BROKEN 1
28960_ACEOF
28961
28962fi
28963
Reid Spencera773bd52006-08-04 18:18:08 +000028964{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28965echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028966if test "${ac_cv_header_stdc+set}" = set; then
28967 echo $ECHO_N "(cached) $ECHO_C" >&6
28968else
28969 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028970/* confdefs.h. */
28971_ACEOF
28972cat confdefs.h >>conftest.$ac_ext
28973cat >>conftest.$ac_ext <<_ACEOF
28974/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028975#include <stdlib.h>
28976#include <stdarg.h>
28977#include <string.h>
28978#include <float.h>
28979
John Criswell0c38eaf2003-09-10 15:17:25 +000028980int
28981main ()
28982{
28983
28984 ;
28985 return 0;
28986}
John Criswell7a73b802003-06-30 21:59:07 +000028987_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028988rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028989if { (ac_try="$ac_compile"
28990case "(($ac_try" in
28991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28992 *) ac_try_echo=$ac_try;;
28993esac
28994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28995 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028996 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028997 grep -v '^ *+' conftest.er1 >conftest.err
28998 rm -f conftest.er1
28999 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029001 (exit $ac_status); } &&
29002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29003 { (case "(($ac_try" in
29004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29005 *) ac_try_echo=$ac_try;;
29006esac
29007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29008 (eval "$ac_try") 2>&5
29009 ac_status=$?
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); }; } &&
29012 { ac_try='test -s conftest.$ac_objext'
29013 { (case "(($ac_try" in
29014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29015 *) ac_try_echo=$ac_try;;
29016esac
29017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29018 (eval "$ac_try") 2>&5
29019 ac_status=$?
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029022 ac_cv_header_stdc=yes
29023else
29024 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029025sed 's/^/| /' conftest.$ac_ext >&5
29026
Reid Spencera773bd52006-08-04 18:18:08 +000029027 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000029028fi
Reid Spencera773bd52006-08-04 18:18:08 +000029029
29030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029031
29032if test $ac_cv_header_stdc = yes; then
29033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29034 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029035/* confdefs.h. */
29036_ACEOF
29037cat confdefs.h >>conftest.$ac_ext
29038cat >>conftest.$ac_ext <<_ACEOF
29039/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029040#include <string.h>
29041
29042_ACEOF
29043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029044 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029045 :
29046else
29047 ac_cv_header_stdc=no
29048fi
29049rm -f conftest*
29050
29051fi
29052
29053if test $ac_cv_header_stdc = yes; then
29054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29055 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029056/* confdefs.h. */
29057_ACEOF
29058cat confdefs.h >>conftest.$ac_ext
29059cat >>conftest.$ac_ext <<_ACEOF
29060/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029061#include <stdlib.h>
29062
29063_ACEOF
29064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029065 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029066 :
29067else
29068 ac_cv_header_stdc=no
29069fi
29070rm -f conftest*
29071
29072fi
29073
29074if test $ac_cv_header_stdc = yes; then
29075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29076 if test "$cross_compiling" = yes; then
29077 :
29078else
29079 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029080/* confdefs.h. */
29081_ACEOF
29082cat confdefs.h >>conftest.$ac_ext
29083cat >>conftest.$ac_ext <<_ACEOF
29084/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029085#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000029086#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000029087#if ((' ' & 0x0FF) == 0x020)
29088# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29089# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29090#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029091# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029092 (('a' <= (c) && (c) <= 'i') \
29093 || ('j' <= (c) && (c) <= 'r') \
29094 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000029095# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29096#endif
29097
29098#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29099int
29100main ()
29101{
29102 int i;
29103 for (i = 0; i < 256; i++)
29104 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000029105 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000029106 return 2;
29107 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029108}
29109_ACEOF
29110rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029111if { (ac_try="$ac_link"
29112case "(($ac_try" in
29113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29114 *) ac_try_echo=$ac_try;;
29115esac
29116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29117 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029118 ac_status=$?
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029121 { (case "(($ac_try" in
29122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29123 *) ac_try_echo=$ac_try;;
29124esac
29125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29126 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029127 ac_status=$?
29128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129 (exit $ac_status); }; }; then
29130 :
29131else
29132 echo "$as_me: program exited with status $ac_status" >&5
29133echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029134sed 's/^/| /' conftest.$ac_ext >&5
29135
John Criswell7a73b802003-06-30 21:59:07 +000029136( exit $ac_status )
29137ac_cv_header_stdc=no
29138fi
Reid Spencera773bd52006-08-04 18:18:08 +000029139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29140fi
29141
29142
John Criswell7a73b802003-06-30 21:59:07 +000029143fi
29144fi
Reid Spencera773bd52006-08-04 18:18:08 +000029145{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29146echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029147if test $ac_cv_header_stdc = yes; then
29148
29149cat >>confdefs.h <<\_ACEOF
29150#define STDC_HEADERS 1
29151_ACEOF
29152
29153fi
29154
Reid Spencera773bd52006-08-04 18:18:08 +000029155{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29156echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029157if test "${ac_cv_header_sys_wait_h+set}" = set; then
29158 echo $ECHO_N "(cached) $ECHO_C" >&6
29159else
29160 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029161/* confdefs.h. */
29162_ACEOF
29163cat confdefs.h >>conftest.$ac_ext
29164cat >>conftest.$ac_ext <<_ACEOF
29165/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029166#include <sys/types.h>
29167#include <sys/wait.h>
29168#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000029169# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000029170#endif
29171#ifndef WIFEXITED
29172# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29173#endif
29174
John Criswell7a73b802003-06-30 21:59:07 +000029175int
29176main ()
29177{
29178 int s;
29179 wait (&s);
29180 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29181 ;
29182 return 0;
29183}
29184_ACEOF
29185rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029186if { (ac_try="$ac_compile"
29187case "(($ac_try" in
29188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29189 *) ac_try_echo=$ac_try;;
29190esac
29191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29192 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029193 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029194 grep -v '^ *+' conftest.er1 >conftest.err
29195 rm -f conftest.er1
29196 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029198 (exit $ac_status); } &&
29199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29200 { (case "(($ac_try" in
29201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29202 *) ac_try_echo=$ac_try;;
29203esac
29204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29205 (eval "$ac_try") 2>&5
29206 ac_status=$?
29207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208 (exit $ac_status); }; } &&
29209 { ac_try='test -s conftest.$ac_objext'
29210 { (case "(($ac_try" in
29211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29212 *) ac_try_echo=$ac_try;;
29213esac
29214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29215 (eval "$ac_try") 2>&5
29216 ac_status=$?
29217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029219 ac_cv_header_sys_wait_h=yes
29220else
29221 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029222sed 's/^/| /' conftest.$ac_ext >&5
29223
Reid Spencera773bd52006-08-04 18:18:08 +000029224 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000029225fi
Reid Spencera773bd52006-08-04 18:18:08 +000029226
29227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029228fi
Reid Spencera773bd52006-08-04 18:18:08 +000029229{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29230echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029231if test $ac_cv_header_sys_wait_h = yes; then
29232
29233cat >>confdefs.h <<\_ACEOF
29234#define HAVE_SYS_WAIT_H 1
29235_ACEOF
29236
29237fi
29238
Reid Spencera773bd52006-08-04 18:18:08 +000029239{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29240echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029241if test "${ac_cv_header_time+set}" = set; then
29242 echo $ECHO_N "(cached) $ECHO_C" >&6
29243else
29244 cat >conftest.$ac_ext <<_ACEOF
29245/* confdefs.h. */
29246_ACEOF
29247cat confdefs.h >>conftest.$ac_ext
29248cat >>conftest.$ac_ext <<_ACEOF
29249/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029250#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029251#include <sys/time.h>
29252#include <time.h>
29253
29254int
29255main ()
29256{
29257if ((struct tm *) 0)
29258return 0;
29259 ;
29260 return 0;
29261}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029262_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029263rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029264if { (ac_try="$ac_compile"
29265case "(($ac_try" in
29266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29267 *) ac_try_echo=$ac_try;;
29268esac
29269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29270 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029271 ac_status=$?
29272 grep -v '^ *+' conftest.er1 >conftest.err
29273 rm -f conftest.er1
29274 cat conftest.err >&5
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029276 (exit $ac_status); } &&
29277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29278 { (case "(($ac_try" in
29279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29280 *) ac_try_echo=$ac_try;;
29281esac
29282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29283 (eval "$ac_try") 2>&5
29284 ac_status=$?
29285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29286 (exit $ac_status); }; } &&
29287 { ac_try='test -s conftest.$ac_objext'
29288 { (case "(($ac_try" in
29289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29290 *) ac_try_echo=$ac_try;;
29291esac
29292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29293 (eval "$ac_try") 2>&5
29294 ac_status=$?
29295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29296 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029297 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029298else
29299 echo "$as_me: failed program was:" >&5
29300sed 's/^/| /' conftest.$ac_ext >&5
29301
Reid Spencera773bd52006-08-04 18:18:08 +000029302 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029303fi
Reid Spencera773bd52006-08-04 18:18:08 +000029304
29305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029306fi
Reid Spencera773bd52006-08-04 18:18:08 +000029307{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29308echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029309if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029310
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029311cat >>confdefs.h <<\_ACEOF
29312#define TIME_WITH_SYS_TIME 1
29313_ACEOF
29314
29315fi
29316
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029317
Reid Spencer59473af2004-12-25 07:31:29 +000029318
29319
29320
29321
29322
29323
29324for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29325do
29326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029331 echo $ECHO_N "(cached) $ECHO_C" >&6
29332fi
Reid Spencera773bd52006-08-04 18:18:08 +000029333ac_res=`eval echo '${'$as_ac_Header'}'`
29334 { echo "$as_me:$LINENO: result: $ac_res" >&5
29335echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029336else
29337 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029338{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029340cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029341/* confdefs.h. */
29342_ACEOF
29343cat confdefs.h >>conftest.$ac_ext
29344cat >>conftest.$ac_ext <<_ACEOF
29345/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029346$ac_includes_default
29347#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029348_ACEOF
29349rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029350if { (ac_try="$ac_compile"
29351case "(($ac_try" in
29352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29353 *) ac_try_echo=$ac_try;;
29354esac
29355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29356 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029357 ac_status=$?
29358 grep -v '^ *+' conftest.er1 >conftest.err
29359 rm -f conftest.er1
29360 cat conftest.err >&5
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029362 (exit $ac_status); } &&
29363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29364 { (case "(($ac_try" in
29365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29366 *) ac_try_echo=$ac_try;;
29367esac
29368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29369 (eval "$ac_try") 2>&5
29370 ac_status=$?
29371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372 (exit $ac_status); }; } &&
29373 { ac_try='test -s conftest.$ac_objext'
29374 { (case "(($ac_try" in
29375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29376 *) ac_try_echo=$ac_try;;
29377esac
29378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29379 (eval "$ac_try") 2>&5
29380 ac_status=$?
29381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029383 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029384else
29385 echo "$as_me: failed program was:" >&5
29386sed 's/^/| /' conftest.$ac_ext >&5
29387
Reid Spencera773bd52006-08-04 18:18:08 +000029388 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029389fi
Reid Spencera773bd52006-08-04 18:18:08 +000029390
29391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29392{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29393echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029394
Reid Spencer59473af2004-12-25 07:31:29 +000029395# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029396{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29397echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029398cat >conftest.$ac_ext <<_ACEOF
29399/* confdefs.h. */
29400_ACEOF
29401cat confdefs.h >>conftest.$ac_ext
29402cat >>conftest.$ac_ext <<_ACEOF
29403/* end confdefs.h. */
29404#include <$ac_header>
29405_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029406if { (ac_try="$ac_cpp conftest.$ac_ext"
29407case "(($ac_try" in
29408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29409 *) ac_try_echo=$ac_try;;
29410esac
29411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029413 ac_status=$?
29414 grep -v '^ *+' conftest.er1 >conftest.err
29415 rm -f conftest.er1
29416 cat conftest.err >&5
29417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029418 (exit $ac_status); } >/dev/null; then
29419 if test -s conftest.err; then
29420 ac_cpp_err=$ac_c_preproc_warn_flag
29421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29422 else
29423 ac_cpp_err=
29424 fi
29425else
29426 ac_cpp_err=yes
29427fi
29428if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029429 ac_header_preproc=yes
29430else
29431 echo "$as_me: failed program was:" >&5
29432sed 's/^/| /' conftest.$ac_ext >&5
29433
29434 ac_header_preproc=no
29435fi
Reid Spencera773bd52006-08-04 18:18:08 +000029436
Reid Spencer59473af2004-12-25 07:31:29 +000029437rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029438{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29439echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029440
29441# So? What about this header?
29442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29443 yes:no: )
29444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29445echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29447echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29448 ac_header_preproc=yes
29449 ;;
29450 no:yes:* )
29451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29452echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29454echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29456echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29458echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29460echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29462echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029463 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029464## ----------------------------------- ##
29465## Report this to llvmbugs@cs.uiuc.edu ##
29466## ----------------------------------- ##
29467_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029468 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029469 ;;
29470esac
Reid Spencera773bd52006-08-04 18:18:08 +000029471{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029474 echo $ECHO_N "(cached) $ECHO_C" >&6
29475else
29476 eval "$as_ac_Header=\$ac_header_preproc"
29477fi
Reid Spencera773bd52006-08-04 18:18:08 +000029478ac_res=`eval echo '${'$as_ac_Header'}'`
29479 { echo "$as_me:$LINENO: result: $ac_res" >&5
29480echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029481
29482fi
Reid Spencer59473af2004-12-25 07:31:29 +000029483if test `eval echo '${'$as_ac_Header'}'` = yes; then
29484 cat >>confdefs.h <<_ACEOF
29485#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029486_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029487
29488fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029489
Reid Spencer59473af2004-12-25 07:31:29 +000029490done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029491
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029492
29493
Reid Spencer59473af2004-12-25 07:31:29 +000029494
29495
29496
29497
Douglas Gregor071d73d2009-05-18 17:21:34 +000029498for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000029499do
29500as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029505 echo $ECHO_N "(cached) $ECHO_C" >&6
29506fi
Reid Spencera773bd52006-08-04 18:18:08 +000029507ac_res=`eval echo '${'$as_ac_Header'}'`
29508 { echo "$as_me:$LINENO: result: $ac_res" >&5
29509echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029510else
29511 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029512{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29513echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029514cat >conftest.$ac_ext <<_ACEOF
29515/* confdefs.h. */
29516_ACEOF
29517cat confdefs.h >>conftest.$ac_ext
29518cat >>conftest.$ac_ext <<_ACEOF
29519/* end confdefs.h. */
29520$ac_includes_default
29521#include <$ac_header>
29522_ACEOF
29523rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029524if { (ac_try="$ac_compile"
29525case "(($ac_try" in
29526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29527 *) ac_try_echo=$ac_try;;
29528esac
29529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29530 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029531 ac_status=$?
29532 grep -v '^ *+' conftest.er1 >conftest.err
29533 rm -f conftest.er1
29534 cat conftest.err >&5
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029536 (exit $ac_status); } &&
29537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29538 { (case "(($ac_try" in
29539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29540 *) ac_try_echo=$ac_try;;
29541esac
29542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543 (eval "$ac_try") 2>&5
29544 ac_status=$?
29545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546 (exit $ac_status); }; } &&
29547 { ac_try='test -s conftest.$ac_objext'
29548 { (case "(($ac_try" in
29549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29550 *) ac_try_echo=$ac_try;;
29551esac
29552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29553 (eval "$ac_try") 2>&5
29554 ac_status=$?
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029557 ac_header_compiler=yes
29558else
29559 echo "$as_me: failed program was:" >&5
29560sed 's/^/| /' conftest.$ac_ext >&5
29561
Reid Spencera773bd52006-08-04 18:18:08 +000029562 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029563fi
Reid Spencera773bd52006-08-04 18:18:08 +000029564
29565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29566{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29567echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029568
29569# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029570{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29571echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029572cat >conftest.$ac_ext <<_ACEOF
29573/* confdefs.h. */
29574_ACEOF
29575cat confdefs.h >>conftest.$ac_ext
29576cat >>conftest.$ac_ext <<_ACEOF
29577/* end confdefs.h. */
29578#include <$ac_header>
29579_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029580if { (ac_try="$ac_cpp conftest.$ac_ext"
29581case "(($ac_try" in
29582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29583 *) ac_try_echo=$ac_try;;
29584esac
29585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029587 ac_status=$?
29588 grep -v '^ *+' conftest.er1 >conftest.err
29589 rm -f conftest.er1
29590 cat conftest.err >&5
29591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029592 (exit $ac_status); } >/dev/null; then
29593 if test -s conftest.err; then
29594 ac_cpp_err=$ac_c_preproc_warn_flag
29595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29596 else
29597 ac_cpp_err=
29598 fi
29599else
29600 ac_cpp_err=yes
29601fi
29602if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029603 ac_header_preproc=yes
29604else
29605 echo "$as_me: failed program was:" >&5
29606sed 's/^/| /' conftest.$ac_ext >&5
29607
29608 ac_header_preproc=no
29609fi
Reid Spencera773bd52006-08-04 18:18:08 +000029610
Reid Spencer59473af2004-12-25 07:31:29 +000029611rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029612{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29613echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029614
29615# So? What about this header?
29616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29617 yes:no: )
29618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29619echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29621echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29622 ac_header_preproc=yes
29623 ;;
29624 no:yes:* )
29625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29626echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29628echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29630echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29632echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29634echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29636echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029637 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029638## ----------------------------------- ##
29639## Report this to llvmbugs@cs.uiuc.edu ##
29640## ----------------------------------- ##
29641_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029642 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029643 ;;
29644esac
Reid Spencera773bd52006-08-04 18:18:08 +000029645{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029648 echo $ECHO_N "(cached) $ECHO_C" >&6
29649else
29650 eval "$as_ac_Header=\$ac_header_preproc"
29651fi
Reid Spencera773bd52006-08-04 18:18:08 +000029652ac_res=`eval echo '${'$as_ac_Header'}'`
29653 { echo "$as_me:$LINENO: result: $ac_res" >&5
29654echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029655
29656fi
29657if test `eval echo '${'$as_ac_Header'}'` = yes; then
29658 cat >>confdefs.h <<_ACEOF
29659#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29660_ACEOF
29661
29662fi
29663
29664done
29665
29666
Douglas Gregor071d73d2009-05-18 17:21:34 +000029667
29668for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000029669do
29670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29675 echo $ECHO_N "(cached) $ECHO_C" >&6
29676fi
29677ac_res=`eval echo '${'$as_ac_Header'}'`
29678 { echo "$as_me:$LINENO: result: $ac_res" >&5
29679echo "${ECHO_T}$ac_res" >&6; }
29680else
29681 # Is the header compilable?
29682{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29684cat >conftest.$ac_ext <<_ACEOF
29685/* confdefs.h. */
29686_ACEOF
29687cat confdefs.h >>conftest.$ac_ext
29688cat >>conftest.$ac_ext <<_ACEOF
29689/* end confdefs.h. */
29690$ac_includes_default
29691#include <$ac_header>
29692_ACEOF
29693rm -f conftest.$ac_objext
29694if { (ac_try="$ac_compile"
29695case "(($ac_try" in
29696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29697 *) ac_try_echo=$ac_try;;
29698esac
29699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29700 (eval "$ac_compile") 2>conftest.er1
29701 ac_status=$?
29702 grep -v '^ *+' conftest.er1 >conftest.err
29703 rm -f conftest.er1
29704 cat conftest.err >&5
29705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029706 (exit $ac_status); } &&
29707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29708 { (case "(($ac_try" in
29709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29710 *) ac_try_echo=$ac_try;;
29711esac
29712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29713 (eval "$ac_try") 2>&5
29714 ac_status=$?
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); }; } &&
29717 { ac_try='test -s conftest.$ac_objext'
29718 { (case "(($ac_try" in
29719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29720 *) ac_try_echo=$ac_try;;
29721esac
29722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29723 (eval "$ac_try") 2>&5
29724 ac_status=$?
29725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029727 ac_header_compiler=yes
29728else
29729 echo "$as_me: failed program was:" >&5
29730sed 's/^/| /' conftest.$ac_ext >&5
29731
29732 ac_header_compiler=no
29733fi
29734
29735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29736{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29737echo "${ECHO_T}$ac_header_compiler" >&6; }
29738
29739# Is the header present?
29740{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29741echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29742cat >conftest.$ac_ext <<_ACEOF
29743/* confdefs.h. */
29744_ACEOF
29745cat confdefs.h >>conftest.$ac_ext
29746cat >>conftest.$ac_ext <<_ACEOF
29747/* end confdefs.h. */
29748#include <$ac_header>
29749_ACEOF
29750if { (ac_try="$ac_cpp conftest.$ac_ext"
29751case "(($ac_try" in
29752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753 *) ac_try_echo=$ac_try;;
29754esac
29755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29757 ac_status=$?
29758 grep -v '^ *+' conftest.er1 >conftest.err
29759 rm -f conftest.er1
29760 cat conftest.err >&5
29761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029762 (exit $ac_status); } >/dev/null; then
29763 if test -s conftest.err; then
29764 ac_cpp_err=$ac_c_preproc_warn_flag
29765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29766 else
29767 ac_cpp_err=
29768 fi
29769else
29770 ac_cpp_err=yes
29771fi
29772if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029773 ac_header_preproc=yes
29774else
29775 echo "$as_me: failed program was:" >&5
29776sed 's/^/| /' conftest.$ac_ext >&5
29777
29778 ac_header_preproc=no
29779fi
29780
29781rm -f conftest.err conftest.$ac_ext
29782{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29783echo "${ECHO_T}$ac_header_preproc" >&6; }
29784
29785# So? What about this header?
29786case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29787 yes:no: )
29788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29789echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29791echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29792 ac_header_preproc=yes
29793 ;;
29794 no:yes:* )
29795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29796echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29798echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29800echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29802echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29804echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29806echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29807 ( cat <<\_ASBOX
29808## ----------------------------------- ##
29809## Report this to llvmbugs@cs.uiuc.edu ##
29810## ----------------------------------- ##
29811_ASBOX
29812 ) | sed "s/^/$as_me: WARNING: /" >&2
29813 ;;
29814esac
29815{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29818 echo $ECHO_N "(cached) $ECHO_C" >&6
29819else
29820 eval "$as_ac_Header=\$ac_header_preproc"
29821fi
29822ac_res=`eval echo '${'$as_ac_Header'}'`
29823 { echo "$as_me:$LINENO: result: $ac_res" >&5
29824echo "${ECHO_T}$ac_res" >&6; }
29825
29826fi
29827if test `eval echo '${'$as_ac_Header'}'` = yes; then
29828 cat >>confdefs.h <<_ACEOF
29829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29830_ACEOF
29831
29832fi
29833
29834done
Reid Spencer59473af2004-12-25 07:31:29 +000029835
29836
29837
29838
Reid Spencerbe3e4192007-08-17 05:45:26 +000029839
29840for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029841do
29842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029847 echo $ECHO_N "(cached) $ECHO_C" >&6
29848fi
Reid Spencera773bd52006-08-04 18:18:08 +000029849ac_res=`eval echo '${'$as_ac_Header'}'`
29850 { echo "$as_me:$LINENO: result: $ac_res" >&5
29851echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029852else
29853 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029854{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29855echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029856cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029857/* confdefs.h. */
29858_ACEOF
29859cat confdefs.h >>conftest.$ac_ext
29860cat >>conftest.$ac_ext <<_ACEOF
29861/* end confdefs.h. */
29862$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029863#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029864_ACEOF
29865rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029866if { (ac_try="$ac_compile"
29867case "(($ac_try" in
29868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29869 *) ac_try_echo=$ac_try;;
29870esac
29871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29872 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029873 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029874 grep -v '^ *+' conftest.er1 >conftest.err
29875 rm -f conftest.er1
29876 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029878 (exit $ac_status); } &&
29879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
29889 { ac_try='test -s conftest.$ac_objext'
29890 { (case "(($ac_try" in
29891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29892 *) ac_try_echo=$ac_try;;
29893esac
29894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29895 (eval "$ac_try") 2>&5
29896 ac_status=$?
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029899 ac_header_compiler=yes
29900else
29901 echo "$as_me: failed program was:" >&5
29902sed 's/^/| /' conftest.$ac_ext >&5
29903
Reid Spencera773bd52006-08-04 18:18:08 +000029904 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029905fi
Reid Spencera773bd52006-08-04 18:18:08 +000029906
29907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29908{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29909echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029910
29911# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029912{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029914cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029915/* confdefs.h. */
29916_ACEOF
29917cat confdefs.h >>conftest.$ac_ext
29918cat >>conftest.$ac_ext <<_ACEOF
29919/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029920#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029921_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029922if { (ac_try="$ac_cpp conftest.$ac_ext"
29923case "(($ac_try" in
29924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29925 *) ac_try_echo=$ac_try;;
29926esac
29927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029929 ac_status=$?
29930 grep -v '^ *+' conftest.er1 >conftest.err
29931 rm -f conftest.er1
29932 cat conftest.err >&5
29933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029934 (exit $ac_status); } >/dev/null; then
29935 if test -s conftest.err; then
29936 ac_cpp_err=$ac_c_preproc_warn_flag
29937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29938 else
29939 ac_cpp_err=
29940 fi
29941else
29942 ac_cpp_err=yes
29943fi
29944if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029945 ac_header_preproc=yes
29946else
29947 echo "$as_me: failed program was:" >&5
29948sed 's/^/| /' conftest.$ac_ext >&5
29949
29950 ac_header_preproc=no
29951fi
Reid Spencera773bd52006-08-04 18:18:08 +000029952
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029953rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029954{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29955echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029956
29957# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29959 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29961echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29963echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029964 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029965 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029966 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29968echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29970echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29972echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29974echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29976echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29978echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029979 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029980## ----------------------------------- ##
29981## Report this to llvmbugs@cs.uiuc.edu ##
29982## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029983_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029984 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029985 ;;
29986esac
Reid Spencera773bd52006-08-04 18:18:08 +000029987{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029990 echo $ECHO_N "(cached) $ECHO_C" >&6
29991else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029992 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029993fi
Reid Spencera773bd52006-08-04 18:18:08 +000029994ac_res=`eval echo '${'$as_ac_Header'}'`
29995 { echo "$as_me:$LINENO: result: $ac_res" >&5
29996echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029997
29998fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029999if test `eval echo '${'$as_ac_Header'}'` = yes; then
30000 cat >>confdefs.h <<_ACEOF
30001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000030002_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000030003
30004fi
John Criswell7ed43ad2004-07-19 16:12:29 +000030005
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030006done
30007
John Criswell7ed43ad2004-07-19 16:12:29 +000030008
Reid Spencercdb08a32006-06-05 16:11:07 +000030009
Reid Spencera6d990a2006-09-14 06:17:21 +000030010
Douglas Gregor01746742009-05-11 18:05:52 +000030011
30012for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000030013do
30014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030019 echo $ECHO_N "(cached) $ECHO_C" >&6
30020fi
Reid Spencera773bd52006-08-04 18:18:08 +000030021ac_res=`eval echo '${'$as_ac_Header'}'`
30022 { echo "$as_me:$LINENO: result: $ac_res" >&5
30023echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030024else
30025 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030026{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30027echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030028cat >conftest.$ac_ext <<_ACEOF
30029/* confdefs.h. */
30030_ACEOF
30031cat confdefs.h >>conftest.$ac_ext
30032cat >>conftest.$ac_ext <<_ACEOF
30033/* end confdefs.h. */
30034$ac_includes_default
30035#include <$ac_header>
30036_ACEOF
30037rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030038if { (ac_try="$ac_compile"
30039case "(($ac_try" in
30040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30041 *) ac_try_echo=$ac_try;;
30042esac
30043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30044 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030045 ac_status=$?
30046 grep -v '^ *+' conftest.er1 >conftest.err
30047 rm -f conftest.er1
30048 cat conftest.err >&5
30049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030050 (exit $ac_status); } &&
30051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30052 { (case "(($ac_try" in
30053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30054 *) ac_try_echo=$ac_try;;
30055esac
30056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30057 (eval "$ac_try") 2>&5
30058 ac_status=$?
30059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); }; } &&
30061 { ac_try='test -s conftest.$ac_objext'
30062 { (case "(($ac_try" in
30063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30064 *) ac_try_echo=$ac_try;;
30065esac
30066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30067 (eval "$ac_try") 2>&5
30068 ac_status=$?
30069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030071 ac_header_compiler=yes
30072else
30073 echo "$as_me: failed program was:" >&5
30074sed 's/^/| /' conftest.$ac_ext >&5
30075
Reid Spencera773bd52006-08-04 18:18:08 +000030076 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000030077fi
Reid Spencera773bd52006-08-04 18:18:08 +000030078
30079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30080{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30081echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030082
30083# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030084{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30085echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030086cat >conftest.$ac_ext <<_ACEOF
30087/* confdefs.h. */
30088_ACEOF
30089cat confdefs.h >>conftest.$ac_ext
30090cat >>conftest.$ac_ext <<_ACEOF
30091/* end confdefs.h. */
30092#include <$ac_header>
30093_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030094if { (ac_try="$ac_cpp conftest.$ac_ext"
30095case "(($ac_try" in
30096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30097 *) ac_try_echo=$ac_try;;
30098esac
30099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030101 ac_status=$?
30102 grep -v '^ *+' conftest.er1 >conftest.err
30103 rm -f conftest.er1
30104 cat conftest.err >&5
30105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030106 (exit $ac_status); } >/dev/null; then
30107 if test -s conftest.err; then
30108 ac_cpp_err=$ac_c_preproc_warn_flag
30109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30110 else
30111 ac_cpp_err=
30112 fi
30113else
30114 ac_cpp_err=yes
30115fi
30116if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000030117 ac_header_preproc=yes
30118else
30119 echo "$as_me: failed program was:" >&5
30120sed 's/^/| /' conftest.$ac_ext >&5
30121
30122 ac_header_preproc=no
30123fi
Reid Spencera773bd52006-08-04 18:18:08 +000030124
Chris Lattner0b142592005-11-14 06:57:34 +000030125rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030126{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30127echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030128
30129# So? What about this header?
30130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30131 yes:no: )
30132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30135echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30136 ac_header_preproc=yes
30137 ;;
30138 no:yes:* )
30139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30142echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30144echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30146echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30150echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030151 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000030152## ----------------------------------- ##
30153## Report this to llvmbugs@cs.uiuc.edu ##
30154## ----------------------------------- ##
30155_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030156 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000030157 ;;
30158esac
Reid Spencera773bd52006-08-04 18:18:08 +000030159{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030162 echo $ECHO_N "(cached) $ECHO_C" >&6
30163else
30164 eval "$as_ac_Header=\$ac_header_preproc"
30165fi
Reid Spencera773bd52006-08-04 18:18:08 +000030166ac_res=`eval echo '${'$as_ac_Header'}'`
30167 { echo "$as_me:$LINENO: result: $ac_res" >&5
30168echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030169
30170fi
30171if test `eval echo '${'$as_ac_Header'}'` = yes; then
30172 cat >>confdefs.h <<_ACEOF
30173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30174_ACEOF
30175
30176fi
30177
30178done
30179
Reid Spencer0a262ba2005-08-24 10:07:20 +000030180if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030181
30182for ac_header in pthread.h
30183do
30184as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030189 echo $ECHO_N "(cached) $ECHO_C" >&6
30190fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030191ac_res=`eval echo '${'$as_ac_Header'}'`
30192 { echo "$as_me:$LINENO: result: $ac_res" >&5
30193echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030194else
30195 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030196{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30197echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030198cat >conftest.$ac_ext <<_ACEOF
30199/* confdefs.h. */
30200_ACEOF
30201cat confdefs.h >>conftest.$ac_ext
30202cat >>conftest.$ac_ext <<_ACEOF
30203/* end confdefs.h. */
30204$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000030205#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030206_ACEOF
30207rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030208if { (ac_try="$ac_compile"
30209case "(($ac_try" in
30210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30211 *) ac_try_echo=$ac_try;;
30212esac
30213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30214 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030215 ac_status=$?
30216 grep -v '^ *+' conftest.er1 >conftest.err
30217 rm -f conftest.er1
30218 cat conftest.err >&5
30219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030220 (exit $ac_status); } &&
30221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30222 { (case "(($ac_try" in
30223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30224 *) ac_try_echo=$ac_try;;
30225esac
30226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30227 (eval "$ac_try") 2>&5
30228 ac_status=$?
30229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230 (exit $ac_status); }; } &&
30231 { ac_try='test -s conftest.$ac_objext'
30232 { (case "(($ac_try" in
30233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30234 *) ac_try_echo=$ac_try;;
30235esac
30236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30237 (eval "$ac_try") 2>&5
30238 ac_status=$?
30239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30240 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030241 ac_header_compiler=yes
30242else
30243 echo "$as_me: failed program was:" >&5
30244sed 's/^/| /' conftest.$ac_ext >&5
30245
Reid Spencera773bd52006-08-04 18:18:08 +000030246 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000030247fi
Reid Spencera773bd52006-08-04 18:18:08 +000030248
30249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30250{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30251echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030252
30253# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030254{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30255echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030256cat >conftest.$ac_ext <<_ACEOF
30257/* confdefs.h. */
30258_ACEOF
30259cat confdefs.h >>conftest.$ac_ext
30260cat >>conftest.$ac_ext <<_ACEOF
30261/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000030262#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030263_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030264if { (ac_try="$ac_cpp conftest.$ac_ext"
30265case "(($ac_try" in
30266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30267 *) ac_try_echo=$ac_try;;
30268esac
30269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030271 ac_status=$?
30272 grep -v '^ *+' conftest.er1 >conftest.err
30273 rm -f conftest.er1
30274 cat conftest.err >&5
30275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030276 (exit $ac_status); } >/dev/null; then
30277 if test -s conftest.err; then
30278 ac_cpp_err=$ac_c_preproc_warn_flag
30279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30280 else
30281 ac_cpp_err=
30282 fi
30283else
30284 ac_cpp_err=yes
30285fi
30286if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030287 ac_header_preproc=yes
30288else
30289 echo "$as_me: failed program was:" >&5
30290sed 's/^/| /' conftest.$ac_ext >&5
30291
30292 ac_header_preproc=no
30293fi
Reid Spencera773bd52006-08-04 18:18:08 +000030294
Reid Spencer0a262ba2005-08-24 10:07:20 +000030295rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030296{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30297echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030298
30299# So? What about this header?
30300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30301 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30303echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30305echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030306 ac_header_preproc=yes
30307 ;;
30308 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30310echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30312echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30314echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30316echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30318echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30320echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030321 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030322## ----------------------------------- ##
30323## Report this to llvmbugs@cs.uiuc.edu ##
30324## ----------------------------------- ##
30325_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030326 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030327 ;;
30328esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030329{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030332 echo $ECHO_N "(cached) $ECHO_C" >&6
30333else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030334 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030335fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030336ac_res=`eval echo '${'$as_ac_Header'}'`
30337 { echo "$as_me:$LINENO: result: $ac_res" >&5
30338echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030339
30340fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030341if test `eval echo '${'$as_ac_Header'}'` = yes; then
30342 cat >>confdefs.h <<_ACEOF
30343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30344_ACEOF
30345 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030346
30347else
30348 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030349
30350fi
30351
Reid Spencerbe3e4192007-08-17 05:45:26 +000030352done
Reid Spencer1000b732006-12-01 00:37:14 +000030353
30354else
30355 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030356
30357fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030358
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030359if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030360
30361
30362for ac_header in ffi.h ffi/ffi.h
30363do
30364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30369 echo $ECHO_N "(cached) $ECHO_C" >&6
30370fi
30371ac_res=`eval echo '${'$as_ac_Header'}'`
30372 { echo "$as_me:$LINENO: result: $ac_res" >&5
30373echo "${ECHO_T}$ac_res" >&6; }
30374else
30375 # Is the header compilable?
30376{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30377echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30378cat >conftest.$ac_ext <<_ACEOF
30379/* confdefs.h. */
30380_ACEOF
30381cat confdefs.h >>conftest.$ac_ext
30382cat >>conftest.$ac_ext <<_ACEOF
30383/* end confdefs.h. */
30384$ac_includes_default
30385#include <$ac_header>
30386_ACEOF
30387rm -f conftest.$ac_objext
30388if { (ac_try="$ac_compile"
30389case "(($ac_try" in
30390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30391 *) ac_try_echo=$ac_try;;
30392esac
30393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30394 (eval "$ac_compile") 2>conftest.er1
30395 ac_status=$?
30396 grep -v '^ *+' conftest.er1 >conftest.err
30397 rm -f conftest.er1
30398 cat conftest.err >&5
30399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030400 (exit $ac_status); } &&
30401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30402 { (case "(($ac_try" in
30403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30404 *) ac_try_echo=$ac_try;;
30405esac
30406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30407 (eval "$ac_try") 2>&5
30408 ac_status=$?
30409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410 (exit $ac_status); }; } &&
30411 { ac_try='test -s conftest.$ac_objext'
30412 { (case "(($ac_try" in
30413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30414 *) ac_try_echo=$ac_try;;
30415esac
30416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30417 (eval "$ac_try") 2>&5
30418 ac_status=$?
30419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030421 ac_header_compiler=yes
30422else
30423 echo "$as_me: failed program was:" >&5
30424sed 's/^/| /' conftest.$ac_ext >&5
30425
30426 ac_header_compiler=no
30427fi
30428
30429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30430{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30431echo "${ECHO_T}$ac_header_compiler" >&6; }
30432
30433# Is the header present?
30434{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30436cat >conftest.$ac_ext <<_ACEOF
30437/* confdefs.h. */
30438_ACEOF
30439cat confdefs.h >>conftest.$ac_ext
30440cat >>conftest.$ac_ext <<_ACEOF
30441/* end confdefs.h. */
30442#include <$ac_header>
30443_ACEOF
30444if { (ac_try="$ac_cpp conftest.$ac_ext"
30445case "(($ac_try" in
30446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30447 *) ac_try_echo=$ac_try;;
30448esac
30449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30451 ac_status=$?
30452 grep -v '^ *+' conftest.er1 >conftest.err
30453 rm -f conftest.er1
30454 cat conftest.err >&5
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030456 (exit $ac_status); } >/dev/null; then
30457 if test -s conftest.err; then
30458 ac_cpp_err=$ac_c_preproc_warn_flag
30459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30460 else
30461 ac_cpp_err=
30462 fi
30463else
30464 ac_cpp_err=yes
30465fi
30466if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030467 ac_header_preproc=yes
30468else
30469 echo "$as_me: failed program was:" >&5
30470sed 's/^/| /' conftest.$ac_ext >&5
30471
30472 ac_header_preproc=no
30473fi
30474
30475rm -f conftest.err conftest.$ac_ext
30476{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30477echo "${ECHO_T}$ac_header_preproc" >&6; }
30478
30479# So? What about this header?
30480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30481 yes:no: )
30482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30486 ac_header_preproc=yes
30487 ;;
30488 no:yes:* )
30489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30501 ( cat <<\_ASBOX
30502## ----------------------------------- ##
30503## Report this to llvmbugs@cs.uiuc.edu ##
30504## ----------------------------------- ##
30505_ASBOX
30506 ) | sed "s/^/$as_me: WARNING: /" >&2
30507 ;;
30508esac
30509{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30512 echo $ECHO_N "(cached) $ECHO_C" >&6
30513else
30514 eval "$as_ac_Header=\$ac_header_preproc"
30515fi
30516ac_res=`eval echo '${'$as_ac_Header'}'`
30517 { echo "$as_me:$LINENO: result: $ac_res" >&5
30518echo "${ECHO_T}$ac_res" >&6; }
30519
30520fi
30521if test `eval echo '${'$as_ac_Header'}'` = yes; then
30522 cat >>confdefs.h <<_ACEOF
30523#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30524_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030525
30526fi
30527
30528done
30529
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030530fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030531
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030532
Reid Spencer8085cff2005-01-16 02:58:39 +000030533
Reid Spencerb2ed05262006-11-03 18:04:08 +000030534 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30535echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30536if test "${ac_cv_huge_val_sanity+set}" = set; then
30537 echo $ECHO_N "(cached) $ECHO_C" >&6
30538else
30539
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030540 ac_ext=cpp
30541ac_cpp='$CXXCPP $CPPFLAGS'
30542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000030545
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030546 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000030547 if test "$cross_compiling" = yes; then
30548 ac_cv_huge_val_sanity=yes
30549else
30550 cat >conftest.$ac_ext <<_ACEOF
30551/* confdefs.h. */
30552_ACEOF
30553cat confdefs.h >>conftest.$ac_ext
30554cat >>conftest.$ac_ext <<_ACEOF
30555/* end confdefs.h. */
30556#include <math.h>
30557int
30558main ()
30559{
30560double x = HUGE_VAL; return x != x;
30561 ;
30562 return 0;
30563}
30564_ACEOF
30565rm -f conftest$ac_exeext
30566if { (ac_try="$ac_link"
30567case "(($ac_try" in
30568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30569 *) ac_try_echo=$ac_try;;
30570esac
30571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30572 (eval "$ac_link") 2>&5
30573 ac_status=$?
30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30576 { (case "(($ac_try" in
30577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30578 *) ac_try_echo=$ac_try;;
30579esac
30580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30581 (eval "$ac_try") 2>&5
30582 ac_status=$?
30583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30584 (exit $ac_status); }; }; then
30585 ac_cv_huge_val_sanity=yes
30586else
30587 echo "$as_me: program exited with status $ac_status" >&5
30588echo "$as_me: failed program was:" >&5
30589sed 's/^/| /' conftest.$ac_ext >&5
30590
30591( exit $ac_status )
30592ac_cv_huge_val_sanity=no
30593fi
30594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30595fi
30596
30597
30598 ac_ext=c
30599ac_cpp='$CPP $CPPFLAGS'
30600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30602ac_compiler_gnu=$ac_cv_c_compiler_gnu
30603
30604
30605fi
30606{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30607echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30608 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30609
30610
Reid Spencera773bd52006-08-04 18:18:08 +000030611{ echo "$as_me:$LINENO: checking for pid_t" >&5
30612echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030613if test "${ac_cv_type_pid_t+set}" = set; then
30614 echo $ECHO_N "(cached) $ECHO_C" >&6
30615else
30616 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030617/* confdefs.h. */
30618_ACEOF
30619cat confdefs.h >>conftest.$ac_ext
30620cat >>conftest.$ac_ext <<_ACEOF
30621/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030622$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030623typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030624int
30625main ()
30626{
Reid Spencera773bd52006-08-04 18:18:08 +000030627if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030628 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030629if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030630 return 0;
30631 ;
30632 return 0;
30633}
30634_ACEOF
30635rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030636if { (ac_try="$ac_compile"
30637case "(($ac_try" in
30638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30639 *) ac_try_echo=$ac_try;;
30640esac
30641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30642 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030643 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030644 grep -v '^ *+' conftest.er1 >conftest.err
30645 rm -f conftest.er1
30646 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030648 (exit $ac_status); } &&
30649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30650 { (case "(($ac_try" in
30651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30652 *) ac_try_echo=$ac_try;;
30653esac
30654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30655 (eval "$ac_try") 2>&5
30656 ac_status=$?
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); }; } &&
30659 { ac_try='test -s conftest.$ac_objext'
30660 { (case "(($ac_try" in
30661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30662 *) ac_try_echo=$ac_try;;
30663esac
30664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30665 (eval "$ac_try") 2>&5
30666 ac_status=$?
30667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030669 ac_cv_type_pid_t=yes
30670else
30671 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030672sed 's/^/| /' conftest.$ac_ext >&5
30673
Reid Spencera773bd52006-08-04 18:18:08 +000030674 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030675fi
Reid Spencera773bd52006-08-04 18:18:08 +000030676
30677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030678fi
Reid Spencera773bd52006-08-04 18:18:08 +000030679{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30680echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030681if test $ac_cv_type_pid_t = yes; then
30682 :
30683else
30684
30685cat >>confdefs.h <<_ACEOF
30686#define pid_t int
30687_ACEOF
30688
30689fi
30690
Reid Spencera773bd52006-08-04 18:18:08 +000030691{ echo "$as_me:$LINENO: checking for size_t" >&5
30692echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030693if test "${ac_cv_type_size_t+set}" = set; then
30694 echo $ECHO_N "(cached) $ECHO_C" >&6
30695else
30696 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030697/* confdefs.h. */
30698_ACEOF
30699cat confdefs.h >>conftest.$ac_ext
30700cat >>conftest.$ac_ext <<_ACEOF
30701/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030702$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030703typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030704int
30705main ()
30706{
Reid Spencera773bd52006-08-04 18:18:08 +000030707if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030708 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030709if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030710 return 0;
30711 ;
30712 return 0;
30713}
30714_ACEOF
30715rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030716if { (ac_try="$ac_compile"
30717case "(($ac_try" in
30718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30719 *) ac_try_echo=$ac_try;;
30720esac
30721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030723 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030724 grep -v '^ *+' conftest.er1 >conftest.err
30725 rm -f conftest.er1
30726 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030728 (exit $ac_status); } &&
30729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30730 { (case "(($ac_try" in
30731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30732 *) ac_try_echo=$ac_try;;
30733esac
30734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30735 (eval "$ac_try") 2>&5
30736 ac_status=$?
30737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738 (exit $ac_status); }; } &&
30739 { ac_try='test -s conftest.$ac_objext'
30740 { (case "(($ac_try" in
30741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30742 *) ac_try_echo=$ac_try;;
30743esac
30744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30745 (eval "$ac_try") 2>&5
30746 ac_status=$?
30747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030749 ac_cv_type_size_t=yes
30750else
30751 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030752sed 's/^/| /' conftest.$ac_ext >&5
30753
Reid Spencera773bd52006-08-04 18:18:08 +000030754 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030755fi
Reid Spencera773bd52006-08-04 18:18:08 +000030756
30757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030758fi
Reid Spencera773bd52006-08-04 18:18:08 +000030759{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30760echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030761if test $ac_cv_type_size_t = yes; then
30762 :
30763else
30764
30765cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030766#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030767_ACEOF
30768
30769fi
30770
Reid Spencera773bd52006-08-04 18:18:08 +000030771{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30772echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030773if test "${ac_cv_type_signal+set}" = set; then
30774 echo $ECHO_N "(cached) $ECHO_C" >&6
30775else
30776 cat >conftest.$ac_ext <<_ACEOF
30777/* confdefs.h. */
30778_ACEOF
30779cat confdefs.h >>conftest.$ac_ext
30780cat >>conftest.$ac_ext <<_ACEOF
30781/* end confdefs.h. */
30782#include <sys/types.h>
30783#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030784
30785int
30786main ()
30787{
Reid Spencera773bd52006-08-04 18:18:08 +000030788return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030789 ;
30790 return 0;
30791}
30792_ACEOF
30793rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030794if { (ac_try="$ac_compile"
30795case "(($ac_try" in
30796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30797 *) ac_try_echo=$ac_try;;
30798esac
30799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30800 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030801 ac_status=$?
30802 grep -v '^ *+' conftest.er1 >conftest.err
30803 rm -f conftest.er1
30804 cat conftest.err >&5
30805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030806 (exit $ac_status); } &&
30807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30808 { (case "(($ac_try" in
30809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30810 *) ac_try_echo=$ac_try;;
30811esac
30812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30813 (eval "$ac_try") 2>&5
30814 ac_status=$?
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816 (exit $ac_status); }; } &&
30817 { ac_try='test -s conftest.$ac_objext'
30818 { (case "(($ac_try" in
30819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820 *) ac_try_echo=$ac_try;;
30821esac
30822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823 (eval "$ac_try") 2>&5
30824 ac_status=$?
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030827 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030828else
30829 echo "$as_me: failed program was:" >&5
30830sed 's/^/| /' conftest.$ac_ext >&5
30831
Reid Spencera773bd52006-08-04 18:18:08 +000030832 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030833fi
Reid Spencera773bd52006-08-04 18:18:08 +000030834
30835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030836fi
Reid Spencera773bd52006-08-04 18:18:08 +000030837{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30838echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030839
30840cat >>confdefs.h <<_ACEOF
30841#define RETSIGTYPE $ac_cv_type_signal
30842_ACEOF
30843
30844
Reid Spencera773bd52006-08-04 18:18:08 +000030845{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30846echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030847if test "${ac_cv_struct_tm+set}" = set; then
30848 echo $ECHO_N "(cached) $ECHO_C" >&6
30849else
30850 cat >conftest.$ac_ext <<_ACEOF
30851/* confdefs.h. */
30852_ACEOF
30853cat confdefs.h >>conftest.$ac_ext
30854cat >>conftest.$ac_ext <<_ACEOF
30855/* end confdefs.h. */
30856#include <sys/types.h>
30857#include <time.h>
30858
30859int
30860main ()
30861{
Bill Wendlingebcceee2009-04-18 11:20:33 +000030862struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030863 ;
30864 return 0;
30865}
30866_ACEOF
30867rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030868if { (ac_try="$ac_compile"
30869case "(($ac_try" in
30870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30871 *) ac_try_echo=$ac_try;;
30872esac
30873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30874 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030875 ac_status=$?
30876 grep -v '^ *+' conftest.er1 >conftest.err
30877 rm -f conftest.er1
30878 cat conftest.err >&5
30879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030880 (exit $ac_status); } &&
30881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30882 { (case "(($ac_try" in
30883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30884 *) ac_try_echo=$ac_try;;
30885esac
30886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30887 (eval "$ac_try") 2>&5
30888 ac_status=$?
30889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890 (exit $ac_status); }; } &&
30891 { ac_try='test -s conftest.$ac_objext'
30892 { (case "(($ac_try" in
30893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30894 *) ac_try_echo=$ac_try;;
30895esac
30896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30897 (eval "$ac_try") 2>&5
30898 ac_status=$?
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030901 ac_cv_struct_tm=time.h
30902else
30903 echo "$as_me: failed program was:" >&5
30904sed 's/^/| /' conftest.$ac_ext >&5
30905
Reid Spencera773bd52006-08-04 18:18:08 +000030906 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030907fi
Reid Spencera773bd52006-08-04 18:18:08 +000030908
30909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030910fi
Reid Spencera773bd52006-08-04 18:18:08 +000030911{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30912echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030913if test $ac_cv_struct_tm = sys/time.h; then
30914
30915cat >>confdefs.h <<\_ACEOF
30916#define TM_IN_SYS_TIME 1
30917_ACEOF
30918
30919fi
30920
Reid Spencera773bd52006-08-04 18:18:08 +000030921{ echo "$as_me:$LINENO: checking for int64_t" >&5
30922echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030923if test "${ac_cv_type_int64_t+set}" = set; then
30924 echo $ECHO_N "(cached) $ECHO_C" >&6
30925else
30926 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030927/* confdefs.h. */
30928_ACEOF
30929cat confdefs.h >>conftest.$ac_ext
30930cat >>conftest.$ac_ext <<_ACEOF
30931/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030932$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030933typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030934int
30935main ()
30936{
Reid Spencera773bd52006-08-04 18:18:08 +000030937if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030938 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030939if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030940 return 0;
30941 ;
30942 return 0;
30943}
30944_ACEOF
30945rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030946if { (ac_try="$ac_compile"
30947case "(($ac_try" in
30948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30949 *) ac_try_echo=$ac_try;;
30950esac
30951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30952 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030953 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030954 grep -v '^ *+' conftest.er1 >conftest.err
30955 rm -f conftest.er1
30956 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030958 (exit $ac_status); } &&
30959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30960 { (case "(($ac_try" in
30961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30962 *) ac_try_echo=$ac_try;;
30963esac
30964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30965 (eval "$ac_try") 2>&5
30966 ac_status=$?
30967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30968 (exit $ac_status); }; } &&
30969 { ac_try='test -s conftest.$ac_objext'
30970 { (case "(($ac_try" in
30971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30972 *) ac_try_echo=$ac_try;;
30973esac
30974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30975 (eval "$ac_try") 2>&5
30976 ac_status=$?
30977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030979 ac_cv_type_int64_t=yes
30980else
30981 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030982sed 's/^/| /' conftest.$ac_ext >&5
30983
Reid Spencera773bd52006-08-04 18:18:08 +000030984 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030985fi
Reid Spencera773bd52006-08-04 18:18:08 +000030986
30987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030988fi
Reid Spencera773bd52006-08-04 18:18:08 +000030989{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30990echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030991if test $ac_cv_type_int64_t = yes; then
30992
30993cat >>confdefs.h <<_ACEOF
30994#define HAVE_INT64_T 1
30995_ACEOF
30996
30997
30998else
30999 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31000echo "$as_me: error: Type int64_t required but not found" >&2;}
31001 { (exit 1); exit 1; }; }
31002fi
31003
Reid Spencera773bd52006-08-04 18:18:08 +000031004{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31005echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031006if test "${ac_cv_type_uint64_t+set}" = set; then
31007 echo $ECHO_N "(cached) $ECHO_C" >&6
31008else
31009 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031010/* confdefs.h. */
31011_ACEOF
31012cat confdefs.h >>conftest.$ac_ext
31013cat >>conftest.$ac_ext <<_ACEOF
31014/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031015$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031016typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031017int
31018main ()
31019{
Reid Spencera773bd52006-08-04 18:18:08 +000031020if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031021 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031022if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031023 return 0;
31024 ;
31025 return 0;
31026}
31027_ACEOF
31028rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031029if { (ac_try="$ac_compile"
31030case "(($ac_try" in
31031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31032 *) ac_try_echo=$ac_try;;
31033esac
31034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31035 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031036 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031037 grep -v '^ *+' conftest.er1 >conftest.err
31038 rm -f conftest.er1
31039 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031041 (exit $ac_status); } &&
31042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31043 { (case "(($ac_try" in
31044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31045 *) ac_try_echo=$ac_try;;
31046esac
31047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31048 (eval "$ac_try") 2>&5
31049 ac_status=$?
31050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31051 (exit $ac_status); }; } &&
31052 { ac_try='test -s conftest.$ac_objext'
31053 { (case "(($ac_try" in
31054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31055 *) ac_try_echo=$ac_try;;
31056esac
31057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31058 (eval "$ac_try") 2>&5
31059 ac_status=$?
31060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31061 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031062 ac_cv_type_uint64_t=yes
31063else
31064 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031065sed 's/^/| /' conftest.$ac_ext >&5
31066
Reid Spencera773bd52006-08-04 18:18:08 +000031067 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031068fi
Reid Spencera773bd52006-08-04 18:18:08 +000031069
31070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031071fi
Reid Spencera773bd52006-08-04 18:18:08 +000031072{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31073echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031074if test $ac_cv_type_uint64_t = yes; then
31075
31076cat >>confdefs.h <<_ACEOF
31077#define HAVE_UINT64_T 1
31078_ACEOF
31079
31080
31081else
Reid Spencera773bd52006-08-04 18:18:08 +000031082 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31083echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031084if test "${ac_cv_type_u_int64_t+set}" = set; then
31085 echo $ECHO_N "(cached) $ECHO_C" >&6
31086else
31087 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000031088/* confdefs.h. */
31089_ACEOF
31090cat confdefs.h >>conftest.$ac_ext
31091cat >>conftest.$ac_ext <<_ACEOF
31092/* end confdefs.h. */
31093$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031094typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000031095int
31096main ()
31097{
Reid Spencera773bd52006-08-04 18:18:08 +000031098if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000031099 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031100if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000031101 return 0;
31102 ;
31103 return 0;
31104}
31105_ACEOF
31106rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031107if { (ac_try="$ac_compile"
31108case "(($ac_try" in
31109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31110 *) ac_try_echo=$ac_try;;
31111esac
31112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31113 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000031114 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031115 grep -v '^ *+' conftest.er1 >conftest.err
31116 rm -f conftest.er1
31117 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000031118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031119 (exit $ac_status); } &&
31120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31121 { (case "(($ac_try" in
31122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31123 *) ac_try_echo=$ac_try;;
31124esac
31125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31126 (eval "$ac_try") 2>&5
31127 ac_status=$?
31128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31129 (exit $ac_status); }; } &&
31130 { ac_try='test -s conftest.$ac_objext'
31131 { (case "(($ac_try" in
31132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31133 *) ac_try_echo=$ac_try;;
31134esac
31135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31136 (eval "$ac_try") 2>&5
31137 ac_status=$?
31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000031140 ac_cv_type_u_int64_t=yes
31141else
31142 echo "$as_me: failed program was:" >&5
31143sed 's/^/| /' conftest.$ac_ext >&5
31144
Reid Spencera773bd52006-08-04 18:18:08 +000031145 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000031146fi
Reid Spencera773bd52006-08-04 18:18:08 +000031147
31148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000031149fi
Reid Spencera773bd52006-08-04 18:18:08 +000031150{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31151echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031152if test $ac_cv_type_u_int64_t = yes; then
31153
31154cat >>confdefs.h <<_ACEOF
31155#define HAVE_U_INT64_T 1
31156_ACEOF
31157
31158
Misha Brukmanceca9042004-09-02 23:02:30 +000031159else
31160 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31161echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31162 { (exit 1); exit 1; }; }
31163fi
31164
John Criswell679ff312004-09-02 18:44:44 +000031165fi
31166
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031167
31168
31169
31170
31171
31172
31173
Reid Spencerf4bb9b12006-01-19 08:22:40 +000031174
31175
Reid Spencerdf3be822006-01-23 08:15:53 +000031176for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031177do
31178as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031179{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31180echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31181if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031182 echo $ECHO_N "(cached) $ECHO_C" >&6
31183else
31184 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031185/* confdefs.h. */
31186_ACEOF
31187cat confdefs.h >>conftest.$ac_ext
31188cat >>conftest.$ac_ext <<_ACEOF
31189/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031190/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31192#define $ac_func innocuous_$ac_func
31193
31194/* System header to define __stub macros and hopefully few prototypes,
31195 which can conflict with char $ac_func (); below.
31196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31197 <limits.h> exists even on freestanding compilers. */
31198
31199#ifdef __STDC__
31200# include <limits.h>
31201#else
31202# include <assert.h>
31203#endif
31204
31205#undef $ac_func
31206
Reid Spencera773bd52006-08-04 18:18:08 +000031207/* Override any GCC internal prototype to avoid an error.
31208 Use char because int might match the return type of a GCC
31209 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031210#ifdef __cplusplus
31211extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031212#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031213char $ac_func ();
31214/* The GNU C library defines this for functions which it implements
31215 to always fail with ENOSYS. Some functions are actually named
31216 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031217#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031218choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031219#endif
John Criswell7a73b802003-06-30 21:59:07 +000031220
John Criswell7a73b802003-06-30 21:59:07 +000031221int
31222main ()
31223{
Reid Spencera773bd52006-08-04 18:18:08 +000031224return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031225 ;
31226 return 0;
31227}
31228_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031229rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031230if { (ac_try="$ac_link"
31231case "(($ac_try" in
31232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233 *) ac_try_echo=$ac_try;;
31234esac
31235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031237 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031238 grep -v '^ *+' conftest.er1 >conftest.err
31239 rm -f conftest.er1
31240 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031242 (exit $ac_status); } &&
31243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31244 { (case "(($ac_try" in
31245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31246 *) ac_try_echo=$ac_try;;
31247esac
31248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31249 (eval "$ac_try") 2>&5
31250 ac_status=$?
31251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); }; } &&
31253 { ac_try='test -s conftest$ac_exeext'
31254 { (case "(($ac_try" in
31255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31256 *) ac_try_echo=$ac_try;;
31257esac
31258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31259 (eval "$ac_try") 2>&5
31260 ac_status=$?
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031263 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031264else
31265 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031266sed 's/^/| /' conftest.$ac_ext >&5
31267
Reid Spencera773bd52006-08-04 18:18:08 +000031268 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031269fi
Reid Spencera773bd52006-08-04 18:18:08 +000031270
Bill Wendlingebcceee2009-04-18 11:20:33 +000031271rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031272 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031273fi
Reid Spencera773bd52006-08-04 18:18:08 +000031274ac_res=`eval echo '${'$as_ac_var'}'`
31275 { echo "$as_me:$LINENO: result: $ac_res" >&5
31276echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031277if test `eval echo '${'$as_ac_var'}'` = yes; then
31278 cat >>confdefs.h <<_ACEOF
31279#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031280_ACEOF
31281
31282fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031283done
John Criswell7a73b802003-06-30 21:59:07 +000031284
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031285
31286
31287
Reid Spencer6af3d262004-12-15 04:01:48 +000031288
Reid Spencer96cf5872007-07-13 10:05:30 +000031289for ac_func in powf fmodf strtof round
31290do
31291as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31292{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31293echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31294if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31295 echo $ECHO_N "(cached) $ECHO_C" >&6
31296else
31297 cat >conftest.$ac_ext <<_ACEOF
31298/* confdefs.h. */
31299_ACEOF
31300cat confdefs.h >>conftest.$ac_ext
31301cat >>conftest.$ac_ext <<_ACEOF
31302/* end confdefs.h. */
31303/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31305#define $ac_func innocuous_$ac_func
31306
31307/* System header to define __stub macros and hopefully few prototypes,
31308 which can conflict with char $ac_func (); below.
31309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31310 <limits.h> exists even on freestanding compilers. */
31311
31312#ifdef __STDC__
31313# include <limits.h>
31314#else
31315# include <assert.h>
31316#endif
31317
31318#undef $ac_func
31319
31320/* Override any GCC internal prototype to avoid an error.
31321 Use char because int might match the return type of a GCC
31322 builtin and then its argument prototype would still apply. */
31323#ifdef __cplusplus
31324extern "C"
31325#endif
31326char $ac_func ();
31327/* The GNU C library defines this for functions which it implements
31328 to always fail with ENOSYS. Some functions are actually named
31329 something starting with __ and the normal name is an alias. */
31330#if defined __stub_$ac_func || defined __stub___$ac_func
31331choke me
31332#endif
31333
31334int
31335main ()
31336{
31337return $ac_func ();
31338 ;
31339 return 0;
31340}
31341_ACEOF
31342rm -f conftest.$ac_objext conftest$ac_exeext
31343if { (ac_try="$ac_link"
31344case "(($ac_try" in
31345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31346 *) ac_try_echo=$ac_try;;
31347esac
31348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31349 (eval "$ac_link") 2>conftest.er1
31350 ac_status=$?
31351 grep -v '^ *+' conftest.er1 >conftest.err
31352 rm -f conftest.er1
31353 cat conftest.err >&5
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031355 (exit $ac_status); } &&
31356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31357 { (case "(($ac_try" in
31358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31359 *) ac_try_echo=$ac_try;;
31360esac
31361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31362 (eval "$ac_try") 2>&5
31363 ac_status=$?
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); }; } &&
31366 { ac_try='test -s conftest$ac_exeext'
31367 { (case "(($ac_try" in
31368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31369 *) ac_try_echo=$ac_try;;
31370esac
31371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372 (eval "$ac_try") 2>&5
31373 ac_status=$?
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031376 eval "$as_ac_var=yes"
31377else
31378 echo "$as_me: failed program was:" >&5
31379sed 's/^/| /' conftest.$ac_ext >&5
31380
31381 eval "$as_ac_var=no"
31382fi
31383
Bill Wendlingebcceee2009-04-18 11:20:33 +000031384rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031385 conftest$ac_exeext conftest.$ac_ext
31386fi
31387ac_res=`eval echo '${'$as_ac_var'}'`
31388 { echo "$as_me:$LINENO: result: $ac_res" >&5
31389echo "${ECHO_T}$ac_res" >&6; }
31390if test `eval echo '${'$as_ac_var'}'` = yes; then
31391 cat >>confdefs.h <<_ACEOF
31392#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31393_ACEOF
31394
31395fi
31396done
31397
31398
31399
31400
31401
Reid Spencer6af3d262004-12-15 04:01:48 +000031402
Reid Spencerb90645c2007-02-16 19:17:20 +000031403for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31404do
31405as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31406{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31407echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31408if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31409 echo $ECHO_N "(cached) $ECHO_C" >&6
31410else
31411 cat >conftest.$ac_ext <<_ACEOF
31412/* confdefs.h. */
31413_ACEOF
31414cat confdefs.h >>conftest.$ac_ext
31415cat >>conftest.$ac_ext <<_ACEOF
31416/* end confdefs.h. */
31417/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31419#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031420
Reid Spencerb90645c2007-02-16 19:17:20 +000031421/* System header to define __stub macros and hopefully few prototypes,
31422 which can conflict with char $ac_func (); below.
31423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31424 <limits.h> exists even on freestanding compilers. */
31425
31426#ifdef __STDC__
31427# include <limits.h>
31428#else
31429# include <assert.h>
31430#endif
31431
31432#undef $ac_func
31433
31434/* Override any GCC internal prototype to avoid an error.
31435 Use char because int might match the return type of a GCC
31436 builtin and then its argument prototype would still apply. */
31437#ifdef __cplusplus
31438extern "C"
31439#endif
31440char $ac_func ();
31441/* The GNU C library defines this for functions which it implements
31442 to always fail with ENOSYS. Some functions are actually named
31443 something starting with __ and the normal name is an alias. */
31444#if defined __stub_$ac_func || defined __stub___$ac_func
31445choke me
31446#endif
31447
31448int
31449main ()
31450{
31451return $ac_func ();
31452 ;
31453 return 0;
31454}
31455_ACEOF
31456rm -f conftest.$ac_objext conftest$ac_exeext
31457if { (ac_try="$ac_link"
31458case "(($ac_try" in
31459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31460 *) ac_try_echo=$ac_try;;
31461esac
31462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31463 (eval "$ac_link") 2>conftest.er1
31464 ac_status=$?
31465 grep -v '^ *+' conftest.er1 >conftest.err
31466 rm -f conftest.er1
31467 cat conftest.err >&5
31468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031469 (exit $ac_status); } &&
31470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31471 { (case "(($ac_try" in
31472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31473 *) ac_try_echo=$ac_try;;
31474esac
31475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31476 (eval "$ac_try") 2>&5
31477 ac_status=$?
31478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31479 (exit $ac_status); }; } &&
31480 { ac_try='test -s conftest$ac_exeext'
31481 { (case "(($ac_try" in
31482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31483 *) ac_try_echo=$ac_try;;
31484esac
31485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31486 (eval "$ac_try") 2>&5
31487 ac_status=$?
31488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000031490 eval "$as_ac_var=yes"
31491else
31492 echo "$as_me: failed program was:" >&5
31493sed 's/^/| /' conftest.$ac_ext >&5
31494
31495 eval "$as_ac_var=no"
31496fi
31497
Bill Wendlingebcceee2009-04-18 11:20:33 +000031498rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000031499 conftest$ac_exeext conftest.$ac_ext
31500fi
31501ac_res=`eval echo '${'$as_ac_var'}'`
31502 { echo "$as_me:$LINENO: result: $ac_res" >&5
31503echo "${ECHO_T}$ac_res" >&6; }
31504if test `eval echo '${'$as_ac_var'}'` = yes; then
31505 cat >>confdefs.h <<_ACEOF
31506#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31507_ACEOF
31508
31509fi
31510done
31511
31512
31513
31514
31515for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000031516do
31517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031518{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31520if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031521 echo $ECHO_N "(cached) $ECHO_C" >&6
31522else
31523 cat >conftest.$ac_ext <<_ACEOF
31524/* confdefs.h. */
31525_ACEOF
31526cat confdefs.h >>conftest.$ac_ext
31527cat >>conftest.$ac_ext <<_ACEOF
31528/* end confdefs.h. */
31529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31531#define $ac_func innocuous_$ac_func
31532
31533/* System header to define __stub macros and hopefully few prototypes,
31534 which can conflict with char $ac_func (); below.
31535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31536 <limits.h> exists even on freestanding compilers. */
31537
31538#ifdef __STDC__
31539# include <limits.h>
31540#else
31541# include <assert.h>
31542#endif
31543
31544#undef $ac_func
31545
Reid Spencera773bd52006-08-04 18:18:08 +000031546/* Override any GCC internal prototype to avoid an error.
31547 Use char because int might match the return type of a GCC
31548 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000031549#ifdef __cplusplus
31550extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000031551#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000031552char $ac_func ();
31553/* The GNU C library defines this for functions which it implements
31554 to always fail with ENOSYS. Some functions are actually named
31555 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031556#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000031557choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000031558#endif
31559
31560int
31561main ()
31562{
Reid Spencera773bd52006-08-04 18:18:08 +000031563return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000031564 ;
31565 return 0;
31566}
31567_ACEOF
31568rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031569if { (ac_try="$ac_link"
31570case "(($ac_try" in
31571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31572 *) ac_try_echo=$ac_try;;
31573esac
31574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31575 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000031576 ac_status=$?
31577 grep -v '^ *+' conftest.er1 >conftest.err
31578 rm -f conftest.er1
31579 cat conftest.err >&5
31580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031581 (exit $ac_status); } &&
31582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31583 { (case "(($ac_try" in
31584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31585 *) ac_try_echo=$ac_try;;
31586esac
31587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31588 (eval "$ac_try") 2>&5
31589 ac_status=$?
31590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31591 (exit $ac_status); }; } &&
31592 { ac_try='test -s conftest$ac_exeext'
31593 { (case "(($ac_try" in
31594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31595 *) ac_try_echo=$ac_try;;
31596esac
31597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31598 (eval "$ac_try") 2>&5
31599 ac_status=$?
31600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031602 eval "$as_ac_var=yes"
31603else
31604 echo "$as_me: failed program was:" >&5
31605sed 's/^/| /' conftest.$ac_ext >&5
31606
Reid Spencera773bd52006-08-04 18:18:08 +000031607 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000031608fi
Reid Spencera773bd52006-08-04 18:18:08 +000031609
Bill Wendlingebcceee2009-04-18 11:20:33 +000031610rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000031611 conftest$ac_exeext conftest.$ac_ext
31612fi
Reid Spencera773bd52006-08-04 18:18:08 +000031613ac_res=`eval echo '${'$as_ac_var'}'`
31614 { echo "$as_me:$LINENO: result: $ac_res" >&5
31615echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000031616if test `eval echo '${'$as_ac_var'}'` = yes; then
31617 cat >>confdefs.h <<_ACEOF
31618#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31619_ACEOF
31620
31621fi
31622done
31623
31624
31625
31626
31627
31628
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000031629for ac_func in mktemp realpath sbrk setrlimit strdup
31630do
31631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31632{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31634if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31635 echo $ECHO_N "(cached) $ECHO_C" >&6
31636else
31637 cat >conftest.$ac_ext <<_ACEOF
31638/* confdefs.h. */
31639_ACEOF
31640cat confdefs.h >>conftest.$ac_ext
31641cat >>conftest.$ac_ext <<_ACEOF
31642/* end confdefs.h. */
31643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31645#define $ac_func innocuous_$ac_func
31646
31647/* System header to define __stub macros and hopefully few prototypes,
31648 which can conflict with char $ac_func (); below.
31649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31650 <limits.h> exists even on freestanding compilers. */
31651
31652#ifdef __STDC__
31653# include <limits.h>
31654#else
31655# include <assert.h>
31656#endif
31657
31658#undef $ac_func
31659
31660/* Override any GCC internal prototype to avoid an error.
31661 Use char because int might match the return type of a GCC
31662 builtin and then its argument prototype would still apply. */
31663#ifdef __cplusplus
31664extern "C"
31665#endif
31666char $ac_func ();
31667/* The GNU C library defines this for functions which it implements
31668 to always fail with ENOSYS. Some functions are actually named
31669 something starting with __ and the normal name is an alias. */
31670#if defined __stub_$ac_func || defined __stub___$ac_func
31671choke me
31672#endif
31673
31674int
31675main ()
31676{
31677return $ac_func ();
31678 ;
31679 return 0;
31680}
31681_ACEOF
31682rm -f conftest.$ac_objext conftest$ac_exeext
31683if { (ac_try="$ac_link"
31684case "(($ac_try" in
31685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31686 *) ac_try_echo=$ac_try;;
31687esac
31688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31689 (eval "$ac_link") 2>conftest.er1
31690 ac_status=$?
31691 grep -v '^ *+' conftest.er1 >conftest.err
31692 rm -f conftest.er1
31693 cat conftest.err >&5
31694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695 (exit $ac_status); } &&
31696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31697 { (case "(($ac_try" in
31698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31699 *) ac_try_echo=$ac_try;;
31700esac
31701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31702 (eval "$ac_try") 2>&5
31703 ac_status=$?
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); }; } &&
31706 { ac_try='test -s conftest$ac_exeext'
31707 { (case "(($ac_try" in
31708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31709 *) ac_try_echo=$ac_try;;
31710esac
31711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31712 (eval "$ac_try") 2>&5
31713 ac_status=$?
31714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715 (exit $ac_status); }; }; then
31716 eval "$as_ac_var=yes"
31717else
31718 echo "$as_me: failed program was:" >&5
31719sed 's/^/| /' conftest.$ac_ext >&5
31720
31721 eval "$as_ac_var=no"
31722fi
31723
31724rm -f core conftest.err conftest.$ac_objext \
31725 conftest$ac_exeext conftest.$ac_ext
31726fi
31727ac_res=`eval echo '${'$as_ac_var'}'`
31728 { echo "$as_me:$LINENO: result: $ac_res" >&5
31729echo "${ECHO_T}$ac_res" >&6; }
31730if test `eval echo '${'$as_ac_var'}'` = yes; then
31731 cat >>confdefs.h <<_ACEOF
31732#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31733_ACEOF
31734
31735fi
31736done
Reid Spencerdf3be822006-01-23 08:15:53 +000031737
31738
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000031739
31740
31741for ac_func in strerror strerror_r strerror_s
Reid Spencer7931a782004-12-27 06:15:02 +000031742do
31743as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031744{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31745echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31746if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031747 echo $ECHO_N "(cached) $ECHO_C" >&6
31748else
31749 cat >conftest.$ac_ext <<_ACEOF
31750/* confdefs.h. */
31751_ACEOF
31752cat confdefs.h >>conftest.$ac_ext
31753cat >>conftest.$ac_ext <<_ACEOF
31754/* end confdefs.h. */
31755/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31757#define $ac_func innocuous_$ac_func
31758
31759/* System header to define __stub macros and hopefully few prototypes,
31760 which can conflict with char $ac_func (); below.
31761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31762 <limits.h> exists even on freestanding compilers. */
31763
31764#ifdef __STDC__
31765# include <limits.h>
31766#else
31767# include <assert.h>
31768#endif
31769
31770#undef $ac_func
31771
Reid Spencera773bd52006-08-04 18:18:08 +000031772/* Override any GCC internal prototype to avoid an error.
31773 Use char because int might match the return type of a GCC
31774 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000031775#ifdef __cplusplus
31776extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000031777#endif
Reid Spencer7931a782004-12-27 06:15:02 +000031778char $ac_func ();
31779/* The GNU C library defines this for functions which it implements
31780 to always fail with ENOSYS. Some functions are actually named
31781 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031782#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000031783choke me
Reid Spencer7931a782004-12-27 06:15:02 +000031784#endif
31785
31786int
31787main ()
31788{
Reid Spencera773bd52006-08-04 18:18:08 +000031789return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000031790 ;
31791 return 0;
31792}
31793_ACEOF
31794rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031795if { (ac_try="$ac_link"
31796case "(($ac_try" in
31797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798 *) ac_try_echo=$ac_try;;
31799esac
31800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000031802 ac_status=$?
31803 grep -v '^ *+' conftest.er1 >conftest.err
31804 rm -f conftest.er1
31805 cat conftest.err >&5
31806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031807 (exit $ac_status); } &&
31808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31809 { (case "(($ac_try" in
31810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31811 *) ac_try_echo=$ac_try;;
31812esac
31813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31814 (eval "$ac_try") 2>&5
31815 ac_status=$?
31816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817 (exit $ac_status); }; } &&
31818 { ac_try='test -s conftest$ac_exeext'
31819 { (case "(($ac_try" in
31820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31821 *) ac_try_echo=$ac_try;;
31822esac
31823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31824 (eval "$ac_try") 2>&5
31825 ac_status=$?
31826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031828 eval "$as_ac_var=yes"
31829else
31830 echo "$as_me: failed program was:" >&5
31831sed 's/^/| /' conftest.$ac_ext >&5
31832
Reid Spencera773bd52006-08-04 18:18:08 +000031833 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031834fi
Reid Spencera773bd52006-08-04 18:18:08 +000031835
Bill Wendlingebcceee2009-04-18 11:20:33 +000031836rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031837 conftest$ac_exeext conftest.$ac_ext
31838fi
Reid Spencera773bd52006-08-04 18:18:08 +000031839ac_res=`eval echo '${'$as_ac_var'}'`
31840 { echo "$as_me:$LINENO: result: $ac_res" >&5
31841echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031842if test `eval echo '${'$as_ac_var'}'` = yes; then
31843 cat >>confdefs.h <<_ACEOF
31844#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31845_ACEOF
31846
31847fi
31848done
31849
31850
Reid Spencerba46ca32004-12-31 05:49:15 +000031851
31852
Chris Lattner0b142592005-11-14 06:57:34 +000031853
Chris Lattner511f11d2005-11-14 07:25:50 +000031854for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031855do
31856as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031857{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31858echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31859if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031860 echo $ECHO_N "(cached) $ECHO_C" >&6
31861else
31862 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031863/* confdefs.h. */
31864_ACEOF
31865cat confdefs.h >>conftest.$ac_ext
31866cat >>conftest.$ac_ext <<_ACEOF
31867/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031868/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31870#define $ac_func innocuous_$ac_func
31871
31872/* System header to define __stub macros and hopefully few prototypes,
31873 which can conflict with char $ac_func (); below.
31874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31875 <limits.h> exists even on freestanding compilers. */
31876
31877#ifdef __STDC__
31878# include <limits.h>
31879#else
31880# include <assert.h>
31881#endif
31882
31883#undef $ac_func
31884
Reid Spencera773bd52006-08-04 18:18:08 +000031885/* Override any GCC internal prototype to avoid an error.
31886 Use char because int might match the return type of a GCC
31887 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031888#ifdef __cplusplus
31889extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031890#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031891char $ac_func ();
31892/* The GNU C library defines this for functions which it implements
31893 to always fail with ENOSYS. Some functions are actually named
31894 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031895#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031896choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031897#endif
John Criswell7a73b802003-06-30 21:59:07 +000031898
John Criswell7a73b802003-06-30 21:59:07 +000031899int
31900main ()
31901{
Reid Spencera773bd52006-08-04 18:18:08 +000031902return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031903 ;
31904 return 0;
31905}
31906_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031907rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031908if { (ac_try="$ac_link"
31909case "(($ac_try" in
31910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31911 *) ac_try_echo=$ac_try;;
31912esac
31913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31914 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031915 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031916 grep -v '^ *+' conftest.er1 >conftest.err
31917 rm -f conftest.er1
31918 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031920 (exit $ac_status); } &&
31921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31922 { (case "(($ac_try" in
31923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31924 *) ac_try_echo=$ac_try;;
31925esac
31926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31927 (eval "$ac_try") 2>&5
31928 ac_status=$?
31929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930 (exit $ac_status); }; } &&
31931 { ac_try='test -s conftest$ac_exeext'
31932 { (case "(($ac_try" in
31933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31934 *) ac_try_echo=$ac_try;;
31935esac
31936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31937 (eval "$ac_try") 2>&5
31938 ac_status=$?
31939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031941 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031942else
31943 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031944sed 's/^/| /' conftest.$ac_ext >&5
31945
Reid Spencera773bd52006-08-04 18:18:08 +000031946 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031947fi
Reid Spencera773bd52006-08-04 18:18:08 +000031948
Bill Wendlingebcceee2009-04-18 11:20:33 +000031949rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031950 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031951fi
Reid Spencera773bd52006-08-04 18:18:08 +000031952ac_res=`eval echo '${'$as_ac_var'}'`
31953 { echo "$as_me:$LINENO: result: $ac_res" >&5
31954echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031955if test `eval echo '${'$as_ac_var'}'` = yes; then
31956 cat >>confdefs.h <<_ACEOF
31957#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031958_ACEOF
31959
31960fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031961done
John Criswell7a73b802003-06-30 21:59:07 +000031962
Reid Spencercdb08a32006-06-05 16:11:07 +000031963
31964
31965
31966
Reid Spencerafa22e22006-12-10 23:29:19 +000031967for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031968do
31969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031970{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31972if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031973 echo $ECHO_N "(cached) $ECHO_C" >&6
31974else
31975 cat >conftest.$ac_ext <<_ACEOF
31976/* confdefs.h. */
31977_ACEOF
31978cat confdefs.h >>conftest.$ac_ext
31979cat >>conftest.$ac_ext <<_ACEOF
31980/* end confdefs.h. */
31981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31983#define $ac_func innocuous_$ac_func
31984
31985/* System header to define __stub macros and hopefully few prototypes,
31986 which can conflict with char $ac_func (); below.
31987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31988 <limits.h> exists even on freestanding compilers. */
31989
31990#ifdef __STDC__
31991# include <limits.h>
31992#else
31993# include <assert.h>
31994#endif
31995
31996#undef $ac_func
31997
Reid Spencera773bd52006-08-04 18:18:08 +000031998/* Override any GCC internal prototype to avoid an error.
31999 Use char because int might match the return type of a GCC
32000 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000032001#ifdef __cplusplus
32002extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000032003#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000032004char $ac_func ();
32005/* The GNU C library defines this for functions which it implements
32006 to always fail with ENOSYS. Some functions are actually named
32007 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032008#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000032009choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000032010#endif
32011
32012int
32013main ()
32014{
Reid Spencera773bd52006-08-04 18:18:08 +000032015return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000032016 ;
32017 return 0;
32018}
32019_ACEOF
32020rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032021if { (ac_try="$ac_link"
32022case "(($ac_try" in
32023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024 *) ac_try_echo=$ac_try;;
32025esac
32026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000032028 ac_status=$?
32029 grep -v '^ *+' conftest.er1 >conftest.err
32030 rm -f conftest.er1
32031 cat conftest.err >&5
32032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032033 (exit $ac_status); } &&
32034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32035 { (case "(($ac_try" in
32036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32037 *) ac_try_echo=$ac_try;;
32038esac
32039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32040 (eval "$ac_try") 2>&5
32041 ac_status=$?
32042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043 (exit $ac_status); }; } &&
32044 { ac_try='test -s conftest$ac_exeext'
32045 { (case "(($ac_try" in
32046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32047 *) ac_try_echo=$ac_try;;
32048esac
32049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32050 (eval "$ac_try") 2>&5
32051 ac_status=$?
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032054 eval "$as_ac_var=yes"
32055else
32056 echo "$as_me: failed program was:" >&5
32057sed 's/^/| /' conftest.$ac_ext >&5
32058
Reid Spencera773bd52006-08-04 18:18:08 +000032059 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000032060fi
Reid Spencera773bd52006-08-04 18:18:08 +000032061
Bill Wendlingebcceee2009-04-18 11:20:33 +000032062rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000032063 conftest$ac_exeext conftest.$ac_ext
32064fi
Reid Spencera773bd52006-08-04 18:18:08 +000032065ac_res=`eval echo '${'$as_ac_var'}'`
32066 { echo "$as_me:$LINENO: result: $ac_res" >&5
32067echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000032068if test `eval echo '${'$as_ac_var'}'` = yes; then
32069 cat >>confdefs.h <<_ACEOF
32070#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32071_ACEOF
32072
32073fi
32074done
32075
Reid Spencera773bd52006-08-04 18:18:08 +000032076{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32077echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032078if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032079 echo $ECHO_N "(cached) $ECHO_C" >&6
32080else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032081 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032082ac_cpp='$CPP $CPPFLAGS'
32083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32085ac_compiler_gnu=$ac_cv_c_compiler_gnu
32086
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032087 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032088 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032089else
32090 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032091
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032092 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000032093_ACEOF
32094cat confdefs.h >>conftest.$ac_ext
32095cat >>conftest.$ac_ext <<_ACEOF
32096/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032097
John Criswella0137d32003-10-13 16:22:01 +000032098#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000032099#include <stdlib.h>
32100
John Criswella0137d32003-10-13 16:22:01 +000032101int
32102main ()
32103{
32104
Reid Spencer2706f8c2004-09-19 23:53:36 +000032105volatile double A, B;
32106char Buffer[100];
32107A = 1;
32108A /= 10.0;
32109sprintf(Buffer, "%a", A);
32110B = atof(Buffer);
32111if (A != B)
32112 return (1);
32113if (A != 0x1.999999999999ap-4)
32114 return (1);
32115return (0);
John Criswella0137d32003-10-13 16:22:01 +000032116 ;
32117 return 0;
32118}
32119_ACEOF
32120rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032121if { (ac_try="$ac_link"
32122case "(($ac_try" in
32123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124 *) ac_try_echo=$ac_try;;
32125esac
32126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32127 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032128 ac_status=$?
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032131 { (case "(($ac_try" in
32132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32133 *) ac_try_echo=$ac_try;;
32134esac
32135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32136 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032137 ac_status=$?
32138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032140 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000032141else
32142 echo "$as_me: program exited with status $ac_status" >&5
32143echo "$as_me: failed program was:" >&5
32144sed 's/^/| /' conftest.$ac_ext >&5
32145
32146( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000032147llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032148fi
Reid Spencera773bd52006-08-04 18:18:08 +000032149rm -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 +000032150fi
Reid Spencera773bd52006-08-04 18:18:08 +000032151
32152
Reid Spencer2706f8c2004-09-19 23:53:36 +000032153 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032154ac_cpp='$CPP $CPPFLAGS'
32155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32157ac_compiler_gnu=$ac_cv_c_compiler_gnu
32158
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032159fi
Reid Spencera773bd52006-08-04 18:18:08 +000032160{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32161echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032162 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000032163
32164cat >>confdefs.h <<\_ACEOF
32165#define HAVE_PRINTF_A 1
32166_ACEOF
32167
Reid Spencer2706f8c2004-09-19 23:53:36 +000032168 fi
John Criswella0137d32003-10-13 16:22:01 +000032169
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032170# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32171# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000032172{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32173echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032174if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000032175 echo $ECHO_N "(cached) $ECHO_C" >&6
32176else
John Criswell0021c312004-02-13 21:57:29 +000032177 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000032178/* confdefs.h. */
32179_ACEOF
32180cat confdefs.h >>conftest.$ac_ext
32181cat >>conftest.$ac_ext <<_ACEOF
32182/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032183#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000032184int
32185main ()
32186{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032187char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000032188 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000032189 ;
32190 return 0;
32191}
32192_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032193rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032194if { (ac_try="$ac_link"
32195case "(($ac_try" in
32196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32197 *) ac_try_echo=$ac_try;;
32198esac
32199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32200 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000032201 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032202 grep -v '^ *+' conftest.er1 >conftest.err
32203 rm -f conftest.er1
32204 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000032205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032206 (exit $ac_status); } &&
32207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32208 { (case "(($ac_try" in
32209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32210 *) ac_try_echo=$ac_try;;
32211esac
32212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32213 (eval "$ac_try") 2>&5
32214 ac_status=$?
32215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216 (exit $ac_status); }; } &&
32217 { ac_try='test -s conftest$ac_exeext'
32218 { (case "(($ac_try" in
32219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32220 *) ac_try_echo=$ac_try;;
32221esac
32222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32223 (eval "$ac_try") 2>&5
32224 ac_status=$?
32225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032227 ac_cv_working_alloca_h=yes
32228else
32229 echo "$as_me: failed program was:" >&5
32230sed 's/^/| /' conftest.$ac_ext >&5
32231
Reid Spencera773bd52006-08-04 18:18:08 +000032232 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000032233fi
Reid Spencera773bd52006-08-04 18:18:08 +000032234
Bill Wendlingebcceee2009-04-18 11:20:33 +000032235rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032236 conftest$ac_exeext conftest.$ac_ext
32237fi
Reid Spencera773bd52006-08-04 18:18:08 +000032238{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32239echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032240if test $ac_cv_working_alloca_h = yes; then
32241
32242cat >>confdefs.h <<\_ACEOF
32243#define HAVE_ALLOCA_H 1
32244_ACEOF
32245
32246fi
32247
Reid Spencera773bd52006-08-04 18:18:08 +000032248{ echo "$as_me:$LINENO: checking for alloca" >&5
32249echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032250if test "${ac_cv_func_alloca_works+set}" = set; then
32251 echo $ECHO_N "(cached) $ECHO_C" >&6
32252else
32253 cat >conftest.$ac_ext <<_ACEOF
32254/* confdefs.h. */
32255_ACEOF
32256cat confdefs.h >>conftest.$ac_ext
32257cat >>conftest.$ac_ext <<_ACEOF
32258/* end confdefs.h. */
32259#ifdef __GNUC__
32260# define alloca __builtin_alloca
32261#else
32262# ifdef _MSC_VER
32263# include <malloc.h>
32264# define alloca _alloca
32265# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000032266# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032267# include <alloca.h>
32268# else
32269# ifdef _AIX
32270 #pragma alloca
32271# else
32272# ifndef alloca /* predefined by HP cc +Olibcalls */
32273char *alloca ();
32274# endif
32275# endif
32276# endif
32277# endif
32278#endif
32279
32280int
32281main ()
32282{
32283char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032284 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032285 ;
32286 return 0;
32287}
32288_ACEOF
32289rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032290if { (ac_try="$ac_link"
32291case "(($ac_try" in
32292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293 *) ac_try_echo=$ac_try;;
32294esac
32295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032297 ac_status=$?
32298 grep -v '^ *+' conftest.er1 >conftest.err
32299 rm -f conftest.er1
32300 cat conftest.err >&5
32301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032302 (exit $ac_status); } &&
32303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32304 { (case "(($ac_try" in
32305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306 *) ac_try_echo=$ac_try;;
32307esac
32308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309 (eval "$ac_try") 2>&5
32310 ac_status=$?
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; } &&
32313 { ac_try='test -s conftest$ac_exeext'
32314 { (case "(($ac_try" in
32315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32316 *) ac_try_echo=$ac_try;;
32317esac
32318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32319 (eval "$ac_try") 2>&5
32320 ac_status=$?
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032323 ac_cv_func_alloca_works=yes
32324else
32325 echo "$as_me: failed program was:" >&5
32326sed 's/^/| /' conftest.$ac_ext >&5
32327
Reid Spencera773bd52006-08-04 18:18:08 +000032328 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032329fi
Reid Spencera773bd52006-08-04 18:18:08 +000032330
Bill Wendlingebcceee2009-04-18 11:20:33 +000032331rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032332 conftest$ac_exeext conftest.$ac_ext
32333fi
Reid Spencera773bd52006-08-04 18:18:08 +000032334{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32335echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032336
32337if test $ac_cv_func_alloca_works = yes; then
32338
32339cat >>confdefs.h <<\_ACEOF
32340#define HAVE_ALLOCA 1
32341_ACEOF
32342
32343else
32344 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32345# that cause trouble. Some versions do not even contain alloca or
32346# contain a buggy version. If you still want to use their alloca,
32347# use ar to extract alloca.o from them instead of compiling alloca.c.
32348
Reid Spencera773bd52006-08-04 18:18:08 +000032349ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032350
32351cat >>confdefs.h <<\_ACEOF
32352#define C_ALLOCA 1
32353_ACEOF
32354
32355
Reid Spencera773bd52006-08-04 18:18:08 +000032356{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32357echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032358if test "${ac_cv_os_cray+set}" = set; then
32359 echo $ECHO_N "(cached) $ECHO_C" >&6
32360else
32361 cat >conftest.$ac_ext <<_ACEOF
32362/* confdefs.h. */
32363_ACEOF
32364cat confdefs.h >>conftest.$ac_ext
32365cat >>conftest.$ac_ext <<_ACEOF
32366/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032367#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032368webecray
32369#else
32370wenotbecray
32371#endif
32372
32373_ACEOF
32374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32375 $EGREP "webecray" >/dev/null 2>&1; then
32376 ac_cv_os_cray=yes
32377else
32378 ac_cv_os_cray=no
32379fi
32380rm -f conftest*
32381
32382fi
Reid Spencera773bd52006-08-04 18:18:08 +000032383{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32384echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032385if test $ac_cv_os_cray = yes; then
32386 for ac_func in _getb67 GETB67 getb67; do
32387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032388{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32390if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032391 echo $ECHO_N "(cached) $ECHO_C" >&6
32392else
32393 cat >conftest.$ac_ext <<_ACEOF
32394/* confdefs.h. */
32395_ACEOF
32396cat confdefs.h >>conftest.$ac_ext
32397cat >>conftest.$ac_ext <<_ACEOF
32398/* end confdefs.h. */
32399/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32401#define $ac_func innocuous_$ac_func
32402
32403/* System header to define __stub macros and hopefully few prototypes,
32404 which can conflict with char $ac_func (); below.
32405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32406 <limits.h> exists even on freestanding compilers. */
32407
32408#ifdef __STDC__
32409# include <limits.h>
32410#else
32411# include <assert.h>
32412#endif
32413
32414#undef $ac_func
32415
Reid Spencera773bd52006-08-04 18:18:08 +000032416/* Override any GCC internal prototype to avoid an error.
32417 Use char because int might match the return type of a GCC
32418 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032419#ifdef __cplusplus
32420extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032421#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032422char $ac_func ();
32423/* The GNU C library defines this for functions which it implements
32424 to always fail with ENOSYS. Some functions are actually named
32425 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032426#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032427choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032428#endif
32429
32430int
32431main ()
32432{
Reid Spencera773bd52006-08-04 18:18:08 +000032433return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032434 ;
32435 return 0;
32436}
32437_ACEOF
32438rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032439if { (ac_try="$ac_link"
32440case "(($ac_try" in
32441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32442 *) ac_try_echo=$ac_try;;
32443esac
32444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32445 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032446 ac_status=$?
32447 grep -v '^ *+' conftest.er1 >conftest.err
32448 rm -f conftest.er1
32449 cat conftest.err >&5
32450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032451 (exit $ac_status); } &&
32452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32453 { (case "(($ac_try" in
32454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32455 *) ac_try_echo=$ac_try;;
32456esac
32457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32458 (eval "$ac_try") 2>&5
32459 ac_status=$?
32460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32461 (exit $ac_status); }; } &&
32462 { ac_try='test -s conftest$ac_exeext'
32463 { (case "(($ac_try" in
32464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32465 *) ac_try_echo=$ac_try;;
32466esac
32467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32468 (eval "$ac_try") 2>&5
32469 ac_status=$?
32470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032472 eval "$as_ac_var=yes"
32473else
32474 echo "$as_me: failed program was:" >&5
32475sed 's/^/| /' conftest.$ac_ext >&5
32476
Reid Spencera773bd52006-08-04 18:18:08 +000032477 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032478fi
Reid Spencera773bd52006-08-04 18:18:08 +000032479
Bill Wendlingebcceee2009-04-18 11:20:33 +000032480rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032481 conftest$ac_exeext conftest.$ac_ext
32482fi
Reid Spencera773bd52006-08-04 18:18:08 +000032483ac_res=`eval echo '${'$as_ac_var'}'`
32484 { echo "$as_me:$LINENO: result: $ac_res" >&5
32485echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032486if test `eval echo '${'$as_ac_var'}'` = yes; then
32487
32488cat >>confdefs.h <<_ACEOF
32489#define CRAY_STACKSEG_END $ac_func
32490_ACEOF
32491
32492 break
32493fi
32494
32495 done
32496fi
32497
Reid Spencera773bd52006-08-04 18:18:08 +000032498{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32499echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032500if test "${ac_cv_c_stack_direction+set}" = set; then
32501 echo $ECHO_N "(cached) $ECHO_C" >&6
32502else
32503 if test "$cross_compiling" = yes; then
32504 ac_cv_c_stack_direction=0
32505else
32506 cat >conftest.$ac_ext <<_ACEOF
32507/* confdefs.h. */
32508_ACEOF
32509cat confdefs.h >>conftest.$ac_ext
32510cat >>conftest.$ac_ext <<_ACEOF
32511/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032512$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032513int
32514find_stack_direction ()
32515{
32516 static char *addr = 0;
32517 auto char dummy;
32518 if (addr == 0)
32519 {
32520 addr = &dummy;
32521 return find_stack_direction ();
32522 }
John Criswell0021c312004-02-13 21:57:29 +000032523 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032524 return (&dummy > addr) ? 1 : -1;
32525}
John Criswell0021c312004-02-13 21:57:29 +000032526
John Criswell0021c312004-02-13 21:57:29 +000032527int
32528main ()
32529{
Reid Spencera773bd52006-08-04 18:18:08 +000032530 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000032531}
32532_ACEOF
32533rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032534if { (ac_try="$ac_link"
32535case "(($ac_try" in
32536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32537 *) ac_try_echo=$ac_try;;
32538esac
32539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32540 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032541 ac_status=$?
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032544 { (case "(($ac_try" in
32545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32546 *) ac_try_echo=$ac_try;;
32547esac
32548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32549 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032550 ac_status=$?
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032553 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000032554else
32555 echo "$as_me: program exited with status $ac_status" >&5
32556echo "$as_me: failed program was:" >&5
32557sed 's/^/| /' conftest.$ac_ext >&5
32558
32559( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032560ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000032561fi
Reid Spencera773bd52006-08-04 18:18:08 +000032562rm -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 +000032563fi
Reid Spencera773bd52006-08-04 18:18:08 +000032564
32565
John Criswell0021c312004-02-13 21:57:29 +000032566fi
Reid Spencera773bd52006-08-04 18:18:08 +000032567{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32568echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032569
32570cat >>confdefs.h <<_ACEOF
32571#define STACK_DIRECTION $ac_cv_c_stack_direction
32572_ACEOF
32573
32574
John Criswell0021c312004-02-13 21:57:29 +000032575fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032576
32577
Reid Spencera773bd52006-08-04 18:18:08 +000032578{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32579echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032580if test "${ac_cv_func_rand48+set}" = set; then
32581 echo $ECHO_N "(cached) $ECHO_C" >&6
32582else
Reid Spencera773bd52006-08-04 18:18:08 +000032583 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032584ac_cpp='$CXXCPP $CPPFLAGS'
32585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32588
32589 cat >conftest.$ac_ext <<_ACEOF
32590/* confdefs.h. */
32591_ACEOF
32592cat confdefs.h >>conftest.$ac_ext
32593cat >>conftest.$ac_ext <<_ACEOF
32594/* end confdefs.h. */
32595#include <stdlib.h>
32596int
32597main ()
32598{
32599srand48(0);lrand48();drand48();
32600 ;
32601 return 0;
32602}
32603_ACEOF
32604rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032605if { (ac_try="$ac_compile"
32606case "(($ac_try" in
32607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32608 *) ac_try_echo=$ac_try;;
32609esac
32610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032612 ac_status=$?
32613 grep -v '^ *+' conftest.er1 >conftest.err
32614 rm -f conftest.er1
32615 cat conftest.err >&5
32616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032617 (exit $ac_status); } &&
32618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32619 { (case "(($ac_try" in
32620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32621 *) ac_try_echo=$ac_try;;
32622esac
32623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32624 (eval "$ac_try") 2>&5
32625 ac_status=$?
32626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32627 (exit $ac_status); }; } &&
32628 { ac_try='test -s conftest.$ac_objext'
32629 { (case "(($ac_try" in
32630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32631 *) ac_try_echo=$ac_try;;
32632esac
32633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32634 (eval "$ac_try") 2>&5
32635 ac_status=$?
32636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32637 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032638 ac_cv_func_rand48=yes
32639else
32640 echo "$as_me: failed program was:" >&5
32641sed 's/^/| /' conftest.$ac_ext >&5
32642
Reid Spencera773bd52006-08-04 18:18:08 +000032643 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032644fi
Reid Spencera773bd52006-08-04 18:18:08 +000032645
32646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032647 ac_ext=c
32648ac_cpp='$CPP $CPPFLAGS'
32649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32651ac_compiler_gnu=$ac_cv_c_compiler_gnu
32652
32653fi
Reid Spencera773bd52006-08-04 18:18:08 +000032654{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32655echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032656
32657if test "$ac_cv_func_rand48" = "yes" ; then
32658
32659cat >>confdefs.h <<\_ACEOF
32660#define HAVE_RAND48 1
32661_ACEOF
32662
32663fi
John Criswell0021c312004-02-13 21:57:29 +000032664
32665
Reid Spencera773bd52006-08-04 18:18:08 +000032666{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32667echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032668if test "${ac_cv_cxx_namespaces+set}" = set; then
32669 echo $ECHO_N "(cached) $ECHO_C" >&6
32670else
Reid Spencera773bd52006-08-04 18:18:08 +000032671 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032672ac_cpp='$CXXCPP $CPPFLAGS'
32673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32676
32677 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032678/* confdefs.h. */
32679_ACEOF
32680cat confdefs.h >>conftest.$ac_ext
32681cat >>conftest.$ac_ext <<_ACEOF
32682/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032683namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000032684int
32685main ()
32686{
32687using namespace Outer::Inner; return i;
32688 ;
32689 return 0;
32690}
32691_ACEOF
32692rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032693if { (ac_try="$ac_compile"
32694case "(($ac_try" in
32695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32696 *) ac_try_echo=$ac_try;;
32697esac
32698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32699 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032700 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032701 grep -v '^ *+' conftest.er1 >conftest.err
32702 rm -f conftest.er1
32703 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032705 (exit $ac_status); } &&
32706 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32707 { (case "(($ac_try" in
32708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32709 *) ac_try_echo=$ac_try;;
32710esac
32711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32712 (eval "$ac_try") 2>&5
32713 ac_status=$?
32714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32715 (exit $ac_status); }; } &&
32716 { ac_try='test -s conftest.$ac_objext'
32717 { (case "(($ac_try" in
32718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32719 *) ac_try_echo=$ac_try;;
32720esac
32721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32722 (eval "$ac_try") 2>&5
32723 ac_status=$?
32724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32725 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032726 ac_cv_cxx_namespaces=yes
32727else
32728 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032729sed 's/^/| /' conftest.$ac_ext >&5
32730
Reid Spencera773bd52006-08-04 18:18:08 +000032731 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000032732fi
Reid Spencera773bd52006-08-04 18:18:08 +000032733
32734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032735 ac_ext=c
32736ac_cpp='$CPP $CPPFLAGS'
32737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32739ac_compiler_gnu=$ac_cv_c_compiler_gnu
32740
32741
32742fi
Reid Spencera773bd52006-08-04 18:18:08 +000032743{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32744echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032745if test "$ac_cv_cxx_namespaces" = yes; then
32746
32747cat >>confdefs.h <<\_ACEOF
32748#define HAVE_NAMESPACES
32749_ACEOF
32750
32751fi
32752
Reid Spencera773bd52006-08-04 18:18:08 +000032753{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32754echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032755if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32756 echo $ECHO_N "(cached) $ECHO_C" >&6
32757else
32758
Reid Spencera773bd52006-08-04 18:18:08 +000032759 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032760ac_cpp='$CXXCPP $CPPFLAGS'
32761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32764
32765 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032766/* confdefs.h. */
32767_ACEOF
32768cat confdefs.h >>conftest.$ac_ext
32769cat >>conftest.$ac_ext <<_ACEOF
32770/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032771#include <iterator>
32772#ifdef HAVE_NAMESPACES
32773using namespace std;
32774#endif
John Criswell7a73b802003-06-30 21:59:07 +000032775int
32776main ()
32777{
32778iterator<int,int,int> t; return 0;
32779 ;
32780 return 0;
32781}
32782_ACEOF
32783rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032784if { (ac_try="$ac_compile"
32785case "(($ac_try" in
32786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32787 *) ac_try_echo=$ac_try;;
32788esac
32789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32790 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032791 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032792 grep -v '^ *+' conftest.er1 >conftest.err
32793 rm -f conftest.er1
32794 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032796 (exit $ac_status); } &&
32797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32798 { (case "(($ac_try" in
32799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32800 *) ac_try_echo=$ac_try;;
32801esac
32802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32803 (eval "$ac_try") 2>&5
32804 ac_status=$?
32805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806 (exit $ac_status); }; } &&
32807 { ac_try='test -s conftest.$ac_objext'
32808 { (case "(($ac_try" in
32809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32810 *) ac_try_echo=$ac_try;;
32811esac
32812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32813 (eval "$ac_try") 2>&5
32814 ac_status=$?
32815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032817 ac_cv_cxx_have_std_iterator=yes
32818else
32819 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032820sed 's/^/| /' conftest.$ac_ext >&5
32821
Reid Spencera773bd52006-08-04 18:18:08 +000032822 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032823fi
Reid Spencera773bd52006-08-04 18:18:08 +000032824
32825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032826 ac_ext=c
32827ac_cpp='$CPP $CPPFLAGS'
32828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32830ac_compiler_gnu=$ac_cv_c_compiler_gnu
32831
32832
32833fi
Reid Spencera773bd52006-08-04 18:18:08 +000032834{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32835echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032836if test "$ac_cv_cxx_have_std_iterator" = yes
32837then
John Criswell40468462004-09-24 21:19:06 +000032838
32839cat >>confdefs.h <<\_ACEOF
32840#define HAVE_STD_ITERATOR 1
32841_ACEOF
32842
32843else
32844
32845cat >>confdefs.h <<\_ACEOF
32846#define HAVE_STD_ITERATOR 0
32847_ACEOF
32848
John Criswell7a73b802003-06-30 21:59:07 +000032849fi
32850
Reid Spencera773bd52006-08-04 18:18:08 +000032851{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32852echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032853if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32854 echo $ECHO_N "(cached) $ECHO_C" >&6
32855else
32856
Reid Spencera773bd52006-08-04 18:18:08 +000032857 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032858ac_cpp='$CXXCPP $CPPFLAGS'
32859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32862
32863 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032864/* confdefs.h. */
32865_ACEOF
32866cat confdefs.h >>conftest.$ac_ext
32867cat >>conftest.$ac_ext <<_ACEOF
32868/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032869#include <iterator>
32870#ifdef HAVE_NAMESPACES
32871using namespace std;
32872#endif
John Criswell7a73b802003-06-30 21:59:07 +000032873int
32874main ()
32875{
John Criswellc78022e2003-07-29 19:11:58 +000032876bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032877 ;
32878 return 0;
32879}
32880_ACEOF
32881rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032882if { (ac_try="$ac_compile"
32883case "(($ac_try" in
32884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32885 *) ac_try_echo=$ac_try;;
32886esac
32887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32888 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032889 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032890 grep -v '^ *+' conftest.er1 >conftest.err
32891 rm -f conftest.er1
32892 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032894 (exit $ac_status); } &&
32895 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32896 { (case "(($ac_try" in
32897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32898 *) ac_try_echo=$ac_try;;
32899esac
32900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32901 (eval "$ac_try") 2>&5
32902 ac_status=$?
32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904 (exit $ac_status); }; } &&
32905 { ac_try='test -s conftest.$ac_objext'
32906 { (case "(($ac_try" in
32907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32908 *) ac_try_echo=$ac_try;;
32909esac
32910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32911 (eval "$ac_try") 2>&5
32912 ac_status=$?
32913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032915 ac_cv_cxx_have_bi_iterator=yes
32916else
32917 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032918sed 's/^/| /' conftest.$ac_ext >&5
32919
Reid Spencera773bd52006-08-04 18:18:08 +000032920 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032921fi
Reid Spencera773bd52006-08-04 18:18:08 +000032922
32923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032924 ac_ext=c
32925ac_cpp='$CPP $CPPFLAGS'
32926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32928ac_compiler_gnu=$ac_cv_c_compiler_gnu
32929
32930
32931fi
Reid Spencera773bd52006-08-04 18:18:08 +000032932{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32933echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032934if test "$ac_cv_cxx_have_bi_iterator" = yes
32935then
John Criswell40468462004-09-24 21:19:06 +000032936
32937cat >>confdefs.h <<\_ACEOF
32938#define HAVE_BI_ITERATOR 1
32939_ACEOF
32940
32941else
32942
32943cat >>confdefs.h <<\_ACEOF
32944#define HAVE_BI_ITERATOR 0
32945_ACEOF
32946
John Criswell7a73b802003-06-30 21:59:07 +000032947fi
32948
Reid Spencera773bd52006-08-04 18:18:08 +000032949{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32950echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032951if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32952 echo $ECHO_N "(cached) $ECHO_C" >&6
32953else
32954
Reid Spencera773bd52006-08-04 18:18:08 +000032955 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032956ac_cpp='$CXXCPP $CPPFLAGS'
32957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32960
32961 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032962/* confdefs.h. */
32963_ACEOF
32964cat confdefs.h >>conftest.$ac_ext
32965cat >>conftest.$ac_ext <<_ACEOF
32966/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032967#include <iterator>
32968#ifdef HAVE_NAMESPACES
32969using namespace std;
32970#endif
John Criswell7a73b802003-06-30 21:59:07 +000032971int
32972main ()
32973{
John Criswellc78022e2003-07-29 19:11:58 +000032974forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032975 ;
32976 return 0;
32977}
32978_ACEOF
32979rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032980if { (ac_try="$ac_compile"
32981case "(($ac_try" in
32982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32983 *) ac_try_echo=$ac_try;;
32984esac
32985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32986 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032987 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032988 grep -v '^ *+' conftest.er1 >conftest.err
32989 rm -f conftest.er1
32990 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032992 (exit $ac_status); } &&
32993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32994 { (case "(($ac_try" in
32995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32996 *) ac_try_echo=$ac_try;;
32997esac
32998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32999 (eval "$ac_try") 2>&5
33000 ac_status=$?
33001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002 (exit $ac_status); }; } &&
33003 { ac_try='test -s conftest.$ac_objext'
33004 { (case "(($ac_try" in
33005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33006 *) ac_try_echo=$ac_try;;
33007esac
33008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33009 (eval "$ac_try") 2>&5
33010 ac_status=$?
33011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33012 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033013 ac_cv_cxx_have_fwd_iterator=yes
33014else
33015 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033016sed 's/^/| /' conftest.$ac_ext >&5
33017
Reid Spencera773bd52006-08-04 18:18:08 +000033018 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033019fi
Reid Spencera773bd52006-08-04 18:18:08 +000033020
33021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033022 ac_ext=c
33023ac_cpp='$CPP $CPPFLAGS'
33024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33026ac_compiler_gnu=$ac_cv_c_compiler_gnu
33027
33028
33029fi
Reid Spencera773bd52006-08-04 18:18:08 +000033030{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33031echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033032if test "$ac_cv_cxx_have_fwd_iterator" = yes
33033then
John Criswell40468462004-09-24 21:19:06 +000033034
33035cat >>confdefs.h <<\_ACEOF
33036#define HAVE_FWD_ITERATOR 1
33037_ACEOF
33038
33039else
33040
33041cat >>confdefs.h <<\_ACEOF
33042#define HAVE_FWD_ITERATOR 0
33043_ACEOF
33044
John Criswell7a73b802003-06-30 21:59:07 +000033045fi
33046
33047
Reid Spencera773bd52006-08-04 18:18:08 +000033048{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33049echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033050if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33051 echo $ECHO_N "(cached) $ECHO_C" >&6
33052else
Reid Spencera773bd52006-08-04 18:18:08 +000033053 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033054ac_cpp='$CXXCPP $CPPFLAGS'
33055ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33056ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33057ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33058
Reid Spencerabec8f92004-10-27 23:03:44 +000033059 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033060/* confdefs.h. */
33061_ACEOF
33062cat confdefs.h >>conftest.$ac_ext
33063cat >>conftest.$ac_ext <<_ACEOF
33064/* end confdefs.h. */
33065#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033066int
33067main ()
33068{
33069float f; isnan(f);
33070 ;
33071 return 0;
33072}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033073_ACEOF
33074rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033075if { (ac_try="$ac_compile"
33076case "(($ac_try" in
33077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33078 *) ac_try_echo=$ac_try;;
33079esac
33080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33081 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033082 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033083 grep -v '^ *+' conftest.er1 >conftest.err
33084 rm -f conftest.er1
33085 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033087 (exit $ac_status); } &&
33088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33089 { (case "(($ac_try" in
33090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33091 *) ac_try_echo=$ac_try;;
33092esac
33093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33094 (eval "$ac_try") 2>&5
33095 ac_status=$?
33096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33097 (exit $ac_status); }; } &&
33098 { ac_try='test -s conftest.$ac_objext'
33099 { (case "(($ac_try" in
33100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33101 *) ac_try_echo=$ac_try;;
33102esac
33103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33104 (eval "$ac_try") 2>&5
33105 ac_status=$?
33106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33107 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033108 ac_cv_func_isnan_in_math_h=yes
33109else
33110 echo "$as_me: failed program was:" >&5
33111sed 's/^/| /' conftest.$ac_ext >&5
33112
Reid Spencera773bd52006-08-04 18:18:08 +000033113 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033114fi
Reid Spencera773bd52006-08-04 18:18:08 +000033115
33116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033117 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033118ac_cpp='$CPP $CPPFLAGS'
33119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33121ac_compiler_gnu=$ac_cv_c_compiler_gnu
33122
33123fi
Reid Spencera773bd52006-08-04 18:18:08 +000033124{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33125echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033126
33127
33128if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033129
33130cat >>confdefs.h <<\_ACEOF
33131#define HAVE_ISNAN_IN_MATH_H 1
33132_ACEOF
33133
Reid Spencerabec8f92004-10-27 23:03:44 +000033134fi
33135
Reid Spencera773bd52006-08-04 18:18:08 +000033136{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33137echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033138if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33139 echo $ECHO_N "(cached) $ECHO_C" >&6
33140else
Reid Spencera773bd52006-08-04 18:18:08 +000033141 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033142ac_cpp='$CXXCPP $CPPFLAGS'
33143ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33144ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33145ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33146
Reid Spencerabec8f92004-10-27 23:03:44 +000033147 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033148/* confdefs.h. */
33149_ACEOF
33150cat confdefs.h >>conftest.$ac_ext
33151cat >>conftest.$ac_ext <<_ACEOF
33152/* end confdefs.h. */
33153#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033154int
33155main ()
33156{
33157float f; isnan(f);
33158 ;
33159 return 0;
33160}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033161_ACEOF
33162rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033163if { (ac_try="$ac_compile"
33164case "(($ac_try" in
33165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33166 *) ac_try_echo=$ac_try;;
33167esac
33168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33169 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033170 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033171 grep -v '^ *+' conftest.er1 >conftest.err
33172 rm -f conftest.er1
33173 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033175 (exit $ac_status); } &&
33176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33177 { (case "(($ac_try" in
33178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33179 *) ac_try_echo=$ac_try;;
33180esac
33181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33182 (eval "$ac_try") 2>&5
33183 ac_status=$?
33184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185 (exit $ac_status); }; } &&
33186 { ac_try='test -s conftest.$ac_objext'
33187 { (case "(($ac_try" in
33188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33189 *) ac_try_echo=$ac_try;;
33190esac
33191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33192 (eval "$ac_try") 2>&5
33193 ac_status=$?
33194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033196 ac_cv_func_isnan_in_cmath=yes
33197else
33198 echo "$as_me: failed program was:" >&5
33199sed 's/^/| /' conftest.$ac_ext >&5
33200
Reid Spencera773bd52006-08-04 18:18:08 +000033201 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033202fi
Reid Spencera773bd52006-08-04 18:18:08 +000033203
33204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033205 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033206ac_cpp='$CPP $CPPFLAGS'
33207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33209ac_compiler_gnu=$ac_cv_c_compiler_gnu
33210
33211fi
Reid Spencera773bd52006-08-04 18:18:08 +000033212{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33213echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033214
33215if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033216
33217cat >>confdefs.h <<\_ACEOF
33218#define HAVE_ISNAN_IN_CMATH 1
33219_ACEOF
33220
Reid Spencerabec8f92004-10-27 23:03:44 +000033221fi
33222
Reid Spencera773bd52006-08-04 18:18:08 +000033223{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33224echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033225if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33226 echo $ECHO_N "(cached) $ECHO_C" >&6
33227else
Reid Spencera773bd52006-08-04 18:18:08 +000033228 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033229ac_cpp='$CXXCPP $CPPFLAGS'
33230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33233
Reid Spencerabec8f92004-10-27 23:03:44 +000033234 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033235/* confdefs.h. */
33236_ACEOF
33237cat confdefs.h >>conftest.$ac_ext
33238cat >>conftest.$ac_ext <<_ACEOF
33239/* end confdefs.h. */
33240#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033241int
33242main ()
33243{
33244float f; std::isnan(f);
33245 ;
33246 return 0;
33247}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033248_ACEOF
33249rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033250if { (ac_try="$ac_compile"
33251case "(($ac_try" in
33252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33253 *) ac_try_echo=$ac_try;;
33254esac
33255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33256 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033257 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033258 grep -v '^ *+' conftest.er1 >conftest.err
33259 rm -f conftest.er1
33260 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033262 (exit $ac_status); } &&
33263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33264 { (case "(($ac_try" in
33265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33266 *) ac_try_echo=$ac_try;;
33267esac
33268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33269 (eval "$ac_try") 2>&5
33270 ac_status=$?
33271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272 (exit $ac_status); }; } &&
33273 { ac_try='test -s conftest.$ac_objext'
33274 { (case "(($ac_try" in
33275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33276 *) ac_try_echo=$ac_try;;
33277esac
33278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33279 (eval "$ac_try") 2>&5
33280 ac_status=$?
33281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033283 ac_cv_func_std_isnan_in_cmath=yes
33284else
33285 echo "$as_me: failed program was:" >&5
33286sed 's/^/| /' conftest.$ac_ext >&5
33287
Reid Spencera773bd52006-08-04 18:18:08 +000033288 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033289fi
Reid Spencera773bd52006-08-04 18:18:08 +000033290
33291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033292 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033293ac_cpp='$CPP $CPPFLAGS'
33294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33296ac_compiler_gnu=$ac_cv_c_compiler_gnu
33297
33298fi
Reid Spencera773bd52006-08-04 18:18:08 +000033299{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33300echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033301
33302if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033303
33304cat >>confdefs.h <<\_ACEOF
33305#define HAVE_STD_ISNAN_IN_CMATH 1
33306_ACEOF
33307
Reid Spencerabec8f92004-10-27 23:03:44 +000033308fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033309
33310
Reid Spencera773bd52006-08-04 18:18:08 +000033311{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33312echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033313if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33314 echo $ECHO_N "(cached) $ECHO_C" >&6
33315else
Reid Spencera773bd52006-08-04 18:18:08 +000033316 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033317ac_cpp='$CXXCPP $CPPFLAGS'
33318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33321
Reid Spencerabec8f92004-10-27 23:03:44 +000033322 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033323/* confdefs.h. */
33324_ACEOF
33325cat confdefs.h >>conftest.$ac_ext
33326cat >>conftest.$ac_ext <<_ACEOF
33327/* end confdefs.h. */
33328#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033329int
33330main ()
33331{
33332float f; isinf(f);
33333 ;
33334 return 0;
33335}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033336_ACEOF
33337rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033338if { (ac_try="$ac_compile"
33339case "(($ac_try" in
33340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33341 *) ac_try_echo=$ac_try;;
33342esac
33343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33344 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033345 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033346 grep -v '^ *+' conftest.er1 >conftest.err
33347 rm -f conftest.er1
33348 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033350 (exit $ac_status); } &&
33351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33352 { (case "(($ac_try" in
33353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33354 *) ac_try_echo=$ac_try;;
33355esac
33356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33357 (eval "$ac_try") 2>&5
33358 ac_status=$?
33359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33360 (exit $ac_status); }; } &&
33361 { ac_try='test -s conftest.$ac_objext'
33362 { (case "(($ac_try" in
33363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33364 *) ac_try_echo=$ac_try;;
33365esac
33366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33367 (eval "$ac_try") 2>&5
33368 ac_status=$?
33369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033371 ac_cv_func_isinf_in_math_h=yes
33372else
33373 echo "$as_me: failed program was:" >&5
33374sed 's/^/| /' conftest.$ac_ext >&5
33375
Reid Spencera773bd52006-08-04 18:18:08 +000033376 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033377fi
Reid Spencera773bd52006-08-04 18:18:08 +000033378
33379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033380 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033381ac_cpp='$CPP $CPPFLAGS'
33382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33384ac_compiler_gnu=$ac_cv_c_compiler_gnu
33385
33386fi
Reid Spencera773bd52006-08-04 18:18:08 +000033387{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33388echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033389
33390if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033391
33392cat >>confdefs.h <<\_ACEOF
33393#define HAVE_ISINF_IN_MATH_H 1
33394_ACEOF
33395
Reid Spencerabec8f92004-10-27 23:03:44 +000033396fi
33397
Reid Spencera773bd52006-08-04 18:18:08 +000033398{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33399echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033400if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33401 echo $ECHO_N "(cached) $ECHO_C" >&6
33402else
Reid Spencera773bd52006-08-04 18:18:08 +000033403 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033404ac_cpp='$CXXCPP $CPPFLAGS'
33405ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33406ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33407ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33408
Reid Spencerabec8f92004-10-27 23:03:44 +000033409 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033410/* confdefs.h. */
33411_ACEOF
33412cat confdefs.h >>conftest.$ac_ext
33413cat >>conftest.$ac_ext <<_ACEOF
33414/* end confdefs.h. */
33415#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033416int
33417main ()
33418{
33419float f; isinf(f);
33420 ;
33421 return 0;
33422}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033423_ACEOF
33424rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033425if { (ac_try="$ac_compile"
33426case "(($ac_try" in
33427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33428 *) ac_try_echo=$ac_try;;
33429esac
33430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33431 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033432 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033433 grep -v '^ *+' conftest.er1 >conftest.err
33434 rm -f conftest.er1
33435 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033437 (exit $ac_status); } &&
33438 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33439 { (case "(($ac_try" in
33440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33441 *) ac_try_echo=$ac_try;;
33442esac
33443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33444 (eval "$ac_try") 2>&5
33445 ac_status=$?
33446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447 (exit $ac_status); }; } &&
33448 { ac_try='test -s conftest.$ac_objext'
33449 { (case "(($ac_try" in
33450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33451 *) ac_try_echo=$ac_try;;
33452esac
33453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33454 (eval "$ac_try") 2>&5
33455 ac_status=$?
33456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033458 ac_cv_func_isinf_in_cmath=yes
33459else
33460 echo "$as_me: failed program was:" >&5
33461sed 's/^/| /' conftest.$ac_ext >&5
33462
Reid Spencera773bd52006-08-04 18:18:08 +000033463 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033464fi
Reid Spencera773bd52006-08-04 18:18:08 +000033465
33466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033467 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033468ac_cpp='$CPP $CPPFLAGS'
33469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33471ac_compiler_gnu=$ac_cv_c_compiler_gnu
33472
33473fi
Reid Spencera773bd52006-08-04 18:18:08 +000033474{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33475echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033476
33477if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033478
33479cat >>confdefs.h <<\_ACEOF
33480#define HAVE_ISINF_IN_CMATH 1
33481_ACEOF
33482
Reid Spencerabec8f92004-10-27 23:03:44 +000033483fi
33484
Reid Spencera773bd52006-08-04 18:18:08 +000033485{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33486echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033487if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33488 echo $ECHO_N "(cached) $ECHO_C" >&6
33489else
Reid Spencera773bd52006-08-04 18:18:08 +000033490 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033491ac_cpp='$CXXCPP $CPPFLAGS'
33492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33495
Reid Spencerabec8f92004-10-27 23:03:44 +000033496 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033497/* confdefs.h. */
33498_ACEOF
33499cat confdefs.h >>conftest.$ac_ext
33500cat >>conftest.$ac_ext <<_ACEOF
33501/* end confdefs.h. */
33502#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033503int
33504main ()
33505{
33506float f; std::isinf(f)}
33507 ;
33508 return 0;
33509}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033510_ACEOF
33511rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033512if { (ac_try="$ac_compile"
33513case "(($ac_try" in
33514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33515 *) ac_try_echo=$ac_try;;
33516esac
33517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33518 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033519 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033520 grep -v '^ *+' conftest.er1 >conftest.err
33521 rm -f conftest.er1
33522 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033524 (exit $ac_status); } &&
33525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33526 { (case "(($ac_try" in
33527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33528 *) ac_try_echo=$ac_try;;
33529esac
33530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33531 (eval "$ac_try") 2>&5
33532 ac_status=$?
33533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534 (exit $ac_status); }; } &&
33535 { ac_try='test -s conftest.$ac_objext'
33536 { (case "(($ac_try" in
33537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33538 *) ac_try_echo=$ac_try;;
33539esac
33540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33541 (eval "$ac_try") 2>&5
33542 ac_status=$?
33543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033545 ac_cv_func_std_isinf_in_cmath=yes
33546else
33547 echo "$as_me: failed program was:" >&5
33548sed 's/^/| /' conftest.$ac_ext >&5
33549
Reid Spencera773bd52006-08-04 18:18:08 +000033550 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033551fi
Reid Spencera773bd52006-08-04 18:18:08 +000033552
33553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033554 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033555ac_cpp='$CPP $CPPFLAGS'
33556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33558ac_compiler_gnu=$ac_cv_c_compiler_gnu
33559
33560fi
Reid Spencera773bd52006-08-04 18:18:08 +000033561{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33562echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033563
33564if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033565
33566cat >>confdefs.h <<\_ACEOF
33567#define HAVE_STD_ISINF_IN_CMATH 1
33568_ACEOF
33569
Reid Spencerabec8f92004-10-27 23:03:44 +000033570fi
33571
Reid Spencera773bd52006-08-04 18:18:08 +000033572{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33573echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033574if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33575 echo $ECHO_N "(cached) $ECHO_C" >&6
33576else
Reid Spencera773bd52006-08-04 18:18:08 +000033577 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033578ac_cpp='$CXXCPP $CPPFLAGS'
33579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33582
Reid Spencerabec8f92004-10-27 23:03:44 +000033583 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033584/* confdefs.h. */
33585_ACEOF
33586cat confdefs.h >>conftest.$ac_ext
33587cat >>conftest.$ac_ext <<_ACEOF
33588/* end confdefs.h. */
33589#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033590int
33591main ()
33592{
33593float f; finite(f);
33594 ;
33595 return 0;
33596}
Brian Gaeked59a6472004-07-21 03:33:58 +000033597_ACEOF
33598rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033599if { (ac_try="$ac_compile"
33600case "(($ac_try" in
33601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33602 *) ac_try_echo=$ac_try;;
33603esac
33604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33605 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033606 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033607 grep -v '^ *+' conftest.er1 >conftest.err
33608 rm -f conftest.er1
33609 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033611 (exit $ac_status); } &&
33612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33613 { (case "(($ac_try" in
33614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33615 *) ac_try_echo=$ac_try;;
33616esac
33617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33618 (eval "$ac_try") 2>&5
33619 ac_status=$?
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); }; } &&
33622 { ac_try='test -s conftest.$ac_objext'
33623 { (case "(($ac_try" in
33624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33625 *) ac_try_echo=$ac_try;;
33626esac
33627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33628 (eval "$ac_try") 2>&5
33629 ac_status=$?
33630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033632 ac_cv_func_finite_in_ieeefp_h=yes
33633else
33634 echo "$as_me: failed program was:" >&5
33635sed 's/^/| /' conftest.$ac_ext >&5
33636
Reid Spencera773bd52006-08-04 18:18:08 +000033637 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033638fi
Reid Spencera773bd52006-08-04 18:18:08 +000033639
33640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033641 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033642ac_cpp='$CPP $CPPFLAGS'
33643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33645ac_compiler_gnu=$ac_cv_c_compiler_gnu
33646
33647fi
Reid Spencera773bd52006-08-04 18:18:08 +000033648{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33649echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033650
Brian Gaeke6802b552004-10-28 05:06:45 +000033651if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033652
33653cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033654#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033655_ACEOF
33656
Reid Spencerabec8f92004-10-27 23:03:44 +000033657fi
33658
33659
33660
Reid Spencer30fe5262007-01-20 07:48:49 +000033661if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033662
33663
33664for ac_header in stdlib.h unistd.h
33665do
33666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033671 echo $ECHO_N "(cached) $ECHO_C" >&6
33672fi
Reid Spencera773bd52006-08-04 18:18:08 +000033673ac_res=`eval echo '${'$as_ac_Header'}'`
33674 { echo "$as_me:$LINENO: result: $ac_res" >&5
33675echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033676else
33677 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033678{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033680cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033681/* confdefs.h. */
33682_ACEOF
33683cat confdefs.h >>conftest.$ac_ext
33684cat >>conftest.$ac_ext <<_ACEOF
33685/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033686$ac_includes_default
33687#include <$ac_header>
33688_ACEOF
33689rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033690if { (ac_try="$ac_compile"
33691case "(($ac_try" in
33692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33693 *) ac_try_echo=$ac_try;;
33694esac
33695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33696 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033697 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033698 grep -v '^ *+' conftest.er1 >conftest.err
33699 rm -f conftest.er1
33700 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033702 (exit $ac_status); } &&
33703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33704 { (case "(($ac_try" in
33705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33706 *) ac_try_echo=$ac_try;;
33707esac
33708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33709 (eval "$ac_try") 2>&5
33710 ac_status=$?
33711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712 (exit $ac_status); }; } &&
33713 { ac_try='test -s conftest.$ac_objext'
33714 { (case "(($ac_try" in
33715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33716 *) ac_try_echo=$ac_try;;
33717esac
33718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33719 (eval "$ac_try") 2>&5
33720 ac_status=$?
33721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33722 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033723 ac_header_compiler=yes
33724else
33725 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033726sed 's/^/| /' conftest.$ac_ext >&5
33727
Reid Spencera773bd52006-08-04 18:18:08 +000033728 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033729fi
Reid Spencera773bd52006-08-04 18:18:08 +000033730
33731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33732{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33733echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033734
33735# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033736{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33737echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033738cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033739/* confdefs.h. */
33740_ACEOF
33741cat confdefs.h >>conftest.$ac_ext
33742cat >>conftest.$ac_ext <<_ACEOF
33743/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033744#include <$ac_header>
33745_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033746if { (ac_try="$ac_cpp conftest.$ac_ext"
33747case "(($ac_try" in
33748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33749 *) ac_try_echo=$ac_try;;
33750esac
33751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033753 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033754 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033755 rm -f conftest.er1
33756 cat conftest.err >&5
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033758 (exit $ac_status); } >/dev/null; then
33759 if test -s conftest.err; then
33760 ac_cpp_err=$ac_c_preproc_warn_flag
33761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33762 else
33763 ac_cpp_err=
33764 fi
33765else
33766 ac_cpp_err=yes
33767fi
33768if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033769 ac_header_preproc=yes
33770else
33771 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033772sed 's/^/| /' conftest.$ac_ext >&5
33773
John Criswell7a73b802003-06-30 21:59:07 +000033774 ac_header_preproc=no
33775fi
Reid Spencera773bd52006-08-04 18:18:08 +000033776
John Criswell7a73b802003-06-30 21:59:07 +000033777rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033778{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33779echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033780
33781# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33783 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33788 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033789 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033790 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033803 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033804## ----------------------------------- ##
33805## Report this to llvmbugs@cs.uiuc.edu ##
33806## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033807_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033808 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033809 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033810esac
Reid Spencera773bd52006-08-04 18:18:08 +000033811{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033814 echo $ECHO_N "(cached) $ECHO_C" >&6
33815else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033816 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033817fi
Reid Spencera773bd52006-08-04 18:18:08 +000033818ac_res=`eval echo '${'$as_ac_Header'}'`
33819 { echo "$as_me:$LINENO: result: $ac_res" >&5
33820echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033821
33822fi
33823if test `eval echo '${'$as_ac_Header'}'` = yes; then
33824 cat >>confdefs.h <<_ACEOF
33825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33826_ACEOF
33827
33828fi
33829
33830done
33831
33832
33833for ac_func in getpagesize
33834do
33835as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033836{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33837echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33838if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033839 echo $ECHO_N "(cached) $ECHO_C" >&6
33840else
33841 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033842/* confdefs.h. */
33843_ACEOF
33844cat confdefs.h >>conftest.$ac_ext
33845cat >>conftest.$ac_ext <<_ACEOF
33846/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033847/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33849#define $ac_func innocuous_$ac_func
33850
John Criswell7a73b802003-06-30 21:59:07 +000033851/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033852 which can conflict with char $ac_func (); below.
33853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33854 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033855
John Criswell0c38eaf2003-09-10 15:17:25 +000033856#ifdef __STDC__
33857# include <limits.h>
33858#else
33859# include <assert.h>
33860#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033861
33862#undef $ac_func
33863
Reid Spencera773bd52006-08-04 18:18:08 +000033864/* Override any GCC internal prototype to avoid an error.
33865 Use char because int might match the return type of a GCC
33866 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033867#ifdef __cplusplus
33868extern "C"
33869#endif
John Criswell7a73b802003-06-30 21:59:07 +000033870char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033871/* The GNU C library defines this for functions which it implements
33872 to always fail with ENOSYS. Some functions are actually named
33873 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033874#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033875choke me
John Criswell7a73b802003-06-30 21:59:07 +000033876#endif
33877
John Criswell0c38eaf2003-09-10 15:17:25 +000033878int
33879main ()
33880{
Reid Spencera773bd52006-08-04 18:18:08 +000033881return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033882 ;
33883 return 0;
33884}
33885_ACEOF
33886rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033887if { (ac_try="$ac_link"
33888case "(($ac_try" in
33889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33890 *) ac_try_echo=$ac_try;;
33891esac
33892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33893 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033894 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033895 grep -v '^ *+' conftest.er1 >conftest.err
33896 rm -f conftest.er1
33897 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033899 (exit $ac_status); } &&
33900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33901 { (case "(($ac_try" in
33902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33903 *) ac_try_echo=$ac_try;;
33904esac
33905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33906 (eval "$ac_try") 2>&5
33907 ac_status=$?
33908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33909 (exit $ac_status); }; } &&
33910 { ac_try='test -s conftest$ac_exeext'
33911 { (case "(($ac_try" in
33912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33913 *) ac_try_echo=$ac_try;;
33914esac
33915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33916 (eval "$ac_try") 2>&5
33917 ac_status=$?
33918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033920 eval "$as_ac_var=yes"
33921else
33922 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033923sed 's/^/| /' conftest.$ac_ext >&5
33924
Reid Spencera773bd52006-08-04 18:18:08 +000033925 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033926fi
Reid Spencera773bd52006-08-04 18:18:08 +000033927
Bill Wendlingebcceee2009-04-18 11:20:33 +000033928rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033929 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033930fi
Reid Spencera773bd52006-08-04 18:18:08 +000033931ac_res=`eval echo '${'$as_ac_var'}'`
33932 { echo "$as_me:$LINENO: result: $ac_res" >&5
33933echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033934if test `eval echo '${'$as_ac_var'}'` = yes; then
33935 cat >>confdefs.h <<_ACEOF
33936#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33937_ACEOF
33938
33939fi
33940done
33941
Reid Spencera773bd52006-08-04 18:18:08 +000033942{ echo "$as_me:$LINENO: checking for working mmap" >&5
33943echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033944if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33945 echo $ECHO_N "(cached) $ECHO_C" >&6
33946else
33947 if test "$cross_compiling" = yes; then
33948 ac_cv_func_mmap_fixed_mapped=no
33949else
33950 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033951/* confdefs.h. */
33952_ACEOF
33953cat confdefs.h >>conftest.$ac_ext
33954cat >>conftest.$ac_ext <<_ACEOF
33955/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033956$ac_includes_default
33957/* malloc might have been renamed as rpl_malloc. */
33958#undef malloc
33959
33960/* Thanks to Mike Haertel and Jim Avera for this test.
33961 Here is a matrix of mmap possibilities:
33962 mmap private not fixed
33963 mmap private fixed at somewhere currently unmapped
33964 mmap private fixed at somewhere already mapped
33965 mmap shared not fixed
33966 mmap shared fixed at somewhere currently unmapped
33967 mmap shared fixed at somewhere already mapped
33968 For private mappings, we should verify that changes cannot be read()
33969 back from the file, nor mmap's back from the file at a different
33970 address. (There have been systems where private was not correctly
33971 implemented like the infamous i386 svr4.0, and systems where the
33972 VM page cache was not coherent with the file system buffer cache
33973 like early versions of FreeBSD and possibly contemporary NetBSD.)
33974 For shared mappings, we should conversely verify that changes get
33975 propagated back to all the places they're supposed to be.
33976
33977 Grep wants private fixed already mapped.
33978 The main things grep needs to know about mmap are:
33979 * does it exist and is it safe to write into the mmap'd area
33980 * how to use it (BSD variants) */
33981
33982#include <fcntl.h>
33983#include <sys/mman.h>
33984
Bill Wendlingebcceee2009-04-18 11:20:33 +000033985#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033986char *malloc ();
33987#endif
33988
33989/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033990#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033991/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033992# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033993# define HAVE_SYS_PARAM_H 1
33994# endif
33995
33996# ifdef _SC_PAGESIZE
33997# define getpagesize() sysconf(_SC_PAGESIZE)
33998# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033999# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034000# include <sys/param.h>
34001# ifdef EXEC_PAGESIZE
34002# define getpagesize() EXEC_PAGESIZE
34003# else /* no EXEC_PAGESIZE */
34004# ifdef NBPG
34005# define getpagesize() NBPG * CLSIZE
34006# ifndef CLSIZE
34007# define CLSIZE 1
34008# endif /* no CLSIZE */
34009# else /* no NBPG */
34010# ifdef NBPC
34011# define getpagesize() NBPC
34012# else /* no NBPC */
34013# ifdef PAGESIZE
34014# define getpagesize() PAGESIZE
34015# endif /* PAGESIZE */
34016# endif /* no NBPC */
34017# endif /* no NBPG */
34018# endif /* no EXEC_PAGESIZE */
34019# else /* no HAVE_SYS_PARAM_H */
34020# define getpagesize() 8192 /* punt totally */
34021# endif /* no HAVE_SYS_PARAM_H */
34022# endif /* no _SC_PAGESIZE */
34023
34024#endif /* no HAVE_GETPAGESIZE */
34025
34026int
34027main ()
34028{
34029 char *data, *data2, *data3;
34030 int i, pagesize;
34031 int fd;
34032
34033 pagesize = getpagesize ();
34034
34035 /* First, make a file with some known garbage in it. */
34036 data = (char *) malloc (pagesize);
34037 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000034038 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034039 for (i = 0; i < pagesize; ++i)
34040 *(data + i) = rand ();
34041 umask (0);
34042 fd = creat ("conftest.mmap", 0600);
34043 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034044 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034045 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034046 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034047 close (fd);
34048
34049 /* Next, try to mmap the file at a fixed address which already has
34050 something else allocated at it. If we can, also make sure that
34051 we see the same garbage. */
34052 fd = open ("conftest.mmap", O_RDWR);
34053 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034054 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034055 data2 = (char *) malloc (2 * pagesize);
34056 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000034057 return 1;
34058 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000034059 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000034060 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000034061 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034062 for (i = 0; i < pagesize; ++i)
34063 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034064 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034065
34066 /* Finally, make sure that changes to the mapped area do not
34067 percolate back to the file as seen by read(). (This is a bug on
34068 some variants of i386 svr4.0.) */
34069 for (i = 0; i < pagesize; ++i)
34070 *(data2 + i) = *(data2 + i) + 1;
34071 data3 = (char *) malloc (pagesize);
34072 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000034073 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034074 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034075 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034076 for (i = 0; i < pagesize; ++i)
34077 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034078 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034079 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034080 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034081}
34082_ACEOF
34083rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034084if { (ac_try="$ac_link"
34085case "(($ac_try" in
34086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34087 *) ac_try_echo=$ac_try;;
34088esac
34089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34090 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034091 ac_status=$?
34092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034094 { (case "(($ac_try" in
34095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34096 *) ac_try_echo=$ac_try;;
34097esac
34098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34099 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034100 ac_status=$?
34101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34102 (exit $ac_status); }; }; then
34103 ac_cv_func_mmap_fixed_mapped=yes
34104else
34105 echo "$as_me: program exited with status $ac_status" >&5
34106echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034107sed 's/^/| /' conftest.$ac_ext >&5
34108
John Criswell7a73b802003-06-30 21:59:07 +000034109( exit $ac_status )
34110ac_cv_func_mmap_fixed_mapped=no
34111fi
Reid Spencera773bd52006-08-04 18:18:08 +000034112rm -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 +000034113fi
Reid Spencera773bd52006-08-04 18:18:08 +000034114
34115
John Criswell7a73b802003-06-30 21:59:07 +000034116fi
Reid Spencera773bd52006-08-04 18:18:08 +000034117{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34118echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034119if test $ac_cv_func_mmap_fixed_mapped = yes; then
34120
34121cat >>confdefs.h <<\_ACEOF
34122#define HAVE_MMAP 1
34123_ACEOF
34124
34125fi
34126rm -f conftest.mmap
34127
Reid Spencer30fe5262007-01-20 07:48:49 +000034128 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034129echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034130if test "${ac_cv_func_mmap_file+set}" = set; then
34131 echo $ECHO_N "(cached) $ECHO_C" >&6
34132else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034133 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034134ac_cpp='$CPP $CPPFLAGS'
34135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34137ac_compiler_gnu=$ac_cv_c_compiler_gnu
34138
34139 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034140 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034141else
34142 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034143
Reid Spencer777ce172004-09-20 04:09:56 +000034144 /* confdefs.h. */
34145_ACEOF
34146cat confdefs.h >>conftest.$ac_ext
34147cat >>conftest.$ac_ext <<_ACEOF
34148/* end confdefs.h. */
34149
John Criswell7a73b802003-06-30 21:59:07 +000034150#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034151#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034152#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034153
34154int
34155main ()
34156{
John Criswell7a73b802003-06-30 21:59:07 +000034157
34158 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034159 fd = creat ("foo",0777);
34160 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34161 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034162 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034163 ;
34164 return 0;
34165}
John Criswell7a73b802003-06-30 21:59:07 +000034166_ACEOF
34167rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034168if { (ac_try="$ac_link"
34169case "(($ac_try" in
34170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34171 *) ac_try_echo=$ac_try;;
34172esac
34173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34174 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034175 ac_status=$?
34176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034178 { (case "(($ac_try" in
34179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34180 *) ac_try_echo=$ac_try;;
34181esac
34182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34183 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034184 ac_status=$?
34185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186 (exit $ac_status); }; }; then
34187 ac_cv_func_mmap_file=yes
34188else
34189 echo "$as_me: program exited with status $ac_status" >&5
34190echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034191sed 's/^/| /' conftest.$ac_ext >&5
34192
John Criswell7a73b802003-06-30 21:59:07 +000034193( exit $ac_status )
34194ac_cv_func_mmap_file=no
34195fi
Reid Spencera773bd52006-08-04 18:18:08 +000034196rm -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 +000034197fi
Reid Spencera773bd52006-08-04 18:18:08 +000034198
34199
John Criswell7a73b802003-06-30 21:59:07 +000034200 ac_ext=c
34201ac_cpp='$CPP $CPPFLAGS'
34202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34204ac_compiler_gnu=$ac_cv_c_compiler_gnu
34205
34206
34207fi
Reid Spencera773bd52006-08-04 18:18:08 +000034208{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34209echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034210if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034211
34212cat >>confdefs.h <<\_ACEOF
34213#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034214_ACEOF
34215
34216 MMAP_FILE=yes
34217
34218fi
34219
Reid Spencer30fe5262007-01-20 07:48:49 +000034220 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034221echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034222if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34223 echo $ECHO_N "(cached) $ECHO_C" >&6
34224else
Reid Spencer582a23c2004-12-29 07:07:57 +000034225 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034226 ac_cv_need_dev_zero_for_mmap=yes
34227 else
34228 ac_cv_need_dev_zero_for_mmap=no
34229 fi
34230
34231fi
Reid Spencera773bd52006-08-04 18:18:08 +000034232{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34233echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034234if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34235
34236cat >>confdefs.h <<\_ACEOF
34237#define NEED_DEV_ZERO_FOR_MMAP 1
34238_ACEOF
34239
34240fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034241
Reid Spencer30fe5262007-01-20 07:48:49 +000034242 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34243 then
34244 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034245echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034246 fi
34247 if test "$ac_cv_func_mmap_file" = "no"
34248 then
34249 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034250echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034251 fi
John Criswellb13092b2003-07-22 21:00:24 +000034252fi
John Criswell7a73b802003-06-30 21:59:07 +000034253
Owen Andersona8603702009-05-19 22:18:56 +000034254{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000034255echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034256cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000034257/* confdefs.h. */
34258_ACEOF
34259cat confdefs.h >>conftest.$ac_ext
34260cat >>conftest.$ac_ext <<_ACEOF
34261/* end confdefs.h. */
34262int main() {
Owen Andersona8603702009-05-19 22:18:56 +000034263 volatile unsigned long val = 1;
34264 __sync_synchronize();
34265 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000034266 __sync_add_and_fetch(&val, 1);
34267 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000034268 return 0;
34269 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034270
34271_ACEOF
34272rm -f conftest.$ac_objext conftest$ac_exeext
34273if { (ac_try="$ac_link"
34274case "(($ac_try" in
34275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34276 *) ac_try_echo=$ac_try;;
34277esac
34278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34279 (eval "$ac_link") 2>conftest.er1
34280 ac_status=$?
34281 grep -v '^ *+' conftest.er1 >conftest.err
34282 rm -f conftest.er1
34283 cat conftest.err >&5
34284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34285 (exit $ac_status); } &&
34286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34287 { (case "(($ac_try" in
34288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34289 *) ac_try_echo=$ac_try;;
34290esac
34291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34292 (eval "$ac_try") 2>&5
34293 ac_status=$?
34294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34295 (exit $ac_status); }; } &&
34296 { ac_try='test -s conftest$ac_exeext'
34297 { (case "(($ac_try" in
34298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34299 *) ac_try_echo=$ac_try;;
34300esac
34301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34302 (eval "$ac_try") 2>&5
34303 ac_status=$?
34304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34305 (exit $ac_status); }; }; then
34306 { echo "$as_me:$LINENO: result: yes" >&5
34307echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034308
34309cat >>confdefs.h <<\_ACEOF
34310#define LLVM_MULTITHREADED 1
34311_ACEOF
34312
Owen Andersond4b272b2009-05-18 23:58:51 +000034313else
34314 echo "$as_me: failed program was:" >&5
34315sed 's/^/| /' conftest.$ac_ext >&5
34316
34317 { echo "$as_me:$LINENO: result: no" >&5
34318echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034319
Owen Andersona8603702009-05-19 22:18:56 +000034320cat >>confdefs.h <<\_ACEOF
34321#define LLVM_MULTITHREADED 0
34322_ACEOF
34323
34324 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34325echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034326fi
34327
34328rm -f core conftest.err conftest.$ac_objext \
34329 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034330
34331
John Criswell7a73b802003-06-30 21:59:07 +000034332
Reid Spencer9372f152007-07-30 20:13:24 +000034333
34334for ac_func in __dso_handle
34335do
34336as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34337{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34338echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34339if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34340 echo $ECHO_N "(cached) $ECHO_C" >&6
34341else
34342 cat >conftest.$ac_ext <<_ACEOF
34343/* confdefs.h. */
34344_ACEOF
34345cat confdefs.h >>conftest.$ac_ext
34346cat >>conftest.$ac_ext <<_ACEOF
34347/* end confdefs.h. */
34348/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34350#define $ac_func innocuous_$ac_func
34351
34352/* System header to define __stub macros and hopefully few prototypes,
34353 which can conflict with char $ac_func (); below.
34354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34355 <limits.h> exists even on freestanding compilers. */
34356
34357#ifdef __STDC__
34358# include <limits.h>
34359#else
34360# include <assert.h>
34361#endif
34362
34363#undef $ac_func
34364
34365/* Override any GCC internal prototype to avoid an error.
34366 Use char because int might match the return type of a GCC
34367 builtin and then its argument prototype would still apply. */
34368#ifdef __cplusplus
34369extern "C"
34370#endif
34371char $ac_func ();
34372/* The GNU C library defines this for functions which it implements
34373 to always fail with ENOSYS. Some functions are actually named
34374 something starting with __ and the normal name is an alias. */
34375#if defined __stub_$ac_func || defined __stub___$ac_func
34376choke me
34377#endif
34378
34379int
34380main ()
34381{
34382return $ac_func ();
34383 ;
34384 return 0;
34385}
34386_ACEOF
34387rm -f conftest.$ac_objext conftest$ac_exeext
34388if { (ac_try="$ac_link"
34389case "(($ac_try" in
34390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34391 *) ac_try_echo=$ac_try;;
34392esac
34393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34394 (eval "$ac_link") 2>conftest.er1
34395 ac_status=$?
34396 grep -v '^ *+' conftest.er1 >conftest.err
34397 rm -f conftest.er1
34398 cat conftest.err >&5
34399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034400 (exit $ac_status); } &&
34401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34402 { (case "(($ac_try" in
34403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34404 *) ac_try_echo=$ac_try;;
34405esac
34406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34407 (eval "$ac_try") 2>&5
34408 ac_status=$?
34409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410 (exit $ac_status); }; } &&
34411 { ac_try='test -s conftest$ac_exeext'
34412 { (case "(($ac_try" in
34413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34414 *) ac_try_echo=$ac_try;;
34415esac
34416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34417 (eval "$ac_try") 2>&5
34418 ac_status=$?
34419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34420 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034421 eval "$as_ac_var=yes"
34422else
34423 echo "$as_me: failed program was:" >&5
34424sed 's/^/| /' conftest.$ac_ext >&5
34425
34426 eval "$as_ac_var=no"
34427fi
34428
Bill Wendlingebcceee2009-04-18 11:20:33 +000034429rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034430 conftest$ac_exeext conftest.$ac_ext
34431fi
34432ac_res=`eval echo '${'$as_ac_var'}'`
34433 { echo "$as_me:$LINENO: result: $ac_res" >&5
34434echo "${ECHO_T}$ac_res" >&6; }
34435if test `eval echo '${'$as_ac_var'}'` = yes; then
34436 cat >>confdefs.h <<_ACEOF
34437#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34438_ACEOF
34439
34440fi
34441done
34442
34443
Reid Spencera773bd52006-08-04 18:18:08 +000034444{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34445echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034446if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34447 echo $ECHO_N "(cached) $ECHO_C" >&6
34448else
34449 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034450if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034451 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034452 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34453 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034454 if test $? -eq 0 ; then
34455 llvm_cv_llvmgcc_sanity="yes"
34456 fi
34457 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034458fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034459fi
Reid Spencera773bd52006-08-04 18:18:08 +000034460{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34461echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034462
34463if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034464 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34465echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034466 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034467 LLVMCC1=$llvmcc1path
34468
Reid Spencer502935f2004-12-22 05:56:56 +000034469 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034470 LLVMCC1PLUS=$llvmcc1pluspath
34471
Reid Spencer502935f2004-12-22 05:56:56 +000034472 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34473 LLVMGCCDIR=$llvmgccdir
34474
Reid Spencer282d8c12006-12-21 22:55:41 +000034475 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34476 LLVMGCCLIBEXEC=$llvmgcclibexec
34477
Reid Spencerb5d75b82006-05-09 00:31:01 +000034478 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034479 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34480 LLVMGCC_VERSION=$llvmgccversion
34481
34482 LLVMGCC_MAJVERS=$llvmgccmajvers
34483
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000034484 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000034485 LLVMGCC_LANGS=$llvmgcclangs
34486
34487 { echo "$as_me:$LINENO: result: ok" >&5
34488echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034489fi
34490
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034491SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034492
34493
Reid Spencere9de0912004-08-20 09:03:57 +000034494# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034495# information into substitutions that will end up in Makefile.config.in
34496# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034497if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034498 prefix="/usr/local"
34499fi
Reid Spencere9de0912004-08-20 09:03:57 +000034500eval LLVM_PREFIX="${prefix}";
34501eval LLVM_BINDIR="${prefix}/bin";
34502eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034503eval LLVM_DATADIR="${prefix}/share/llvm";
34504eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34505eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034506eval LLVM_INCLUDEDIR="${prefix}/include";
34507eval LLVM_INFODIR="${prefix}/info";
34508eval LLVM_MANDIR="${prefix}/man";
34509LLVM_CONFIGTIME=`date`
34510
34511
34512
34513
34514
34515
34516
34517
34518
34519
34520
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034521# Place the various directores into the config.h file as #defines so that we
34522# can know about the installation paths within LLVM.
34523
Reid Spencere9de0912004-08-20 09:03:57 +000034524cat >>confdefs.h <<_ACEOF
34525#define LLVM_PREFIX "$LLVM_PREFIX"
34526_ACEOF
34527
34528
34529cat >>confdefs.h <<_ACEOF
34530#define LLVM_BINDIR "$LLVM_BINDIR"
34531_ACEOF
34532
34533
34534cat >>confdefs.h <<_ACEOF
34535#define LLVM_LIBDIR "$LLVM_LIBDIR"
34536_ACEOF
34537
34538
34539cat >>confdefs.h <<_ACEOF
34540#define LLVM_DATADIR "$LLVM_DATADIR"
34541_ACEOF
34542
34543
34544cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034545#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034546_ACEOF
34547
34548
34549cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034550#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034551_ACEOF
34552
34553
34554cat >>confdefs.h <<_ACEOF
34555#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34556_ACEOF
34557
34558
34559cat >>confdefs.h <<_ACEOF
34560#define LLVM_INFODIR "$LLVM_INFODIR"
34561_ACEOF
34562
34563
34564cat >>confdefs.h <<_ACEOF
34565#define LLVM_MANDIR "$LLVM_MANDIR"
34566_ACEOF
34567
34568
34569cat >>confdefs.h <<_ACEOF
34570#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34571_ACEOF
34572
34573
Eric Christopher790e11c2007-12-01 00:34:39 +000034574cat >>confdefs.h <<_ACEOF
34575#define LLVM_HOSTTRIPLE "$host"
34576_ACEOF
34577
34578
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034579# Determine which bindings to build.
34580if test "$BINDINGS_TO_BUILD" = auto ; then
34581 BINDINGS_TO_BUILD=""
34582 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34583 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34584 fi
34585fi
34586BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34587
34588
34589# This isn't really configurey, but it avoids having to repeat the list in
34590# other files.
34591ALL_BINDINGS=ocaml
34592
34593
Gordon Henriksenf0915682007-10-02 16:42:22 +000034594# Do any work necessary to ensure that bindings have what they need.
34595binding_prereqs_failed=0
34596for a_binding in $BINDINGS_TO_BUILD ; do
34597 case "$a_binding" in
34598 ocaml)
34599 if test "x$OCAMLC" = x ; then
34600 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34601echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34602 binding_prereqs_failed=1
34603 fi
34604 if test "x$OCAMLDEP" = x ; then
34605 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34606echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34607 binding_prereqs_failed=1
34608 fi
34609 if test "x$OCAMLOPT" = x ; then
34610 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34611echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34612 fi
34613 if test "x$with_ocaml_libdir" != xauto ; then
34614 OCAML_LIBDIR=$with_ocaml_libdir
34615
34616 else
34617 ocaml_stdlib="`"$OCAMLC" -where`"
34618 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34619 then
34620 # ocaml stdlib is beneath our prefix; use stdlib
34621 OCAML_LIBDIR=$ocaml_stdlib
34622
34623 else
34624 # ocaml stdlib is outside our prefix; use libdir/ocaml
34625 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34626
34627 fi
34628 fi
34629 ;;
34630 esac
34631done
34632if test "$binding_prereqs_failed" = 1 ; then
34633 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34634echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34635 { (exit 1); exit 1; }; }
34636fi
34637
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034638{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34639echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34640if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34641 echo $ECHO_N "(cached) $ECHO_C" >&6
34642else
34643 ac_ext=cpp
34644ac_cpp='$CXXCPP $CPPFLAGS'
34645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34648
34649 oldcxxflags="$CXXFLAGS"
34650 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34651 cat >conftest.$ac_ext <<_ACEOF
34652/* confdefs.h. */
34653_ACEOF
34654cat confdefs.h >>conftest.$ac_ext
34655cat >>conftest.$ac_ext <<_ACEOF
34656/* end confdefs.h. */
34657
34658int
34659main ()
34660{
34661
34662 ;
34663 return 0;
34664}
34665_ACEOF
34666rm -f conftest.$ac_objext
34667if { (ac_try="$ac_compile"
34668case "(($ac_try" in
34669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34670 *) ac_try_echo=$ac_try;;
34671esac
34672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34673 (eval "$ac_compile") 2>conftest.er1
34674 ac_status=$?
34675 grep -v '^ *+' conftest.er1 >conftest.err
34676 rm -f conftest.er1
34677 cat conftest.err >&5
34678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034679 (exit $ac_status); } &&
34680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34681 { (case "(($ac_try" in
34682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34683 *) ac_try_echo=$ac_try;;
34684esac
34685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34686 (eval "$ac_try") 2>&5
34687 ac_status=$?
34688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689 (exit $ac_status); }; } &&
34690 { ac_try='test -s conftest.$ac_objext'
34691 { (case "(($ac_try" in
34692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34693 *) ac_try_echo=$ac_try;;
34694esac
34695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34696 (eval "$ac_try") 2>&5
34697 ac_status=$?
34698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34699 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034700 llvm_cv_cxx_visibility_inlines_hidden=yes
34701else
34702 echo "$as_me: failed program was:" >&5
34703sed 's/^/| /' conftest.$ac_ext >&5
34704
34705 llvm_cv_cxx_visibility_inlines_hidden=no
34706fi
34707
34708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34709 CXXFLAGS="$oldcxxflags"
34710 ac_ext=c
34711ac_cpp='$CPP $CPPFLAGS'
34712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34714ac_compiler_gnu=$ac_cv_c_compiler_gnu
34715
34716
34717fi
34718{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34719echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34720if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34721 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34722
34723else
34724 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34725
34726fi
34727
Gordon Henriksenf0915682007-10-02 16:42:22 +000034728
Nick Lewycky731c6ab2009-03-05 08:20:44 +000034729if test "$llvm_cv_link_use_r" = "yes" ; then
34730 RPATH="-Wl,-R"
34731else
34732 RPATH="-Wl,-rpath"
34733fi
34734
34735
34736if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34737 RDYNAMIC="-Wl,-export-dynamic"
34738else
34739 RDYNAMIC=""
34740fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000034741
34742
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034743
Reid Spencera773bd52006-08-04 18:18:08 +000034744ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034745
Douglas Gregor1555a232009-06-16 20:12:29 +000034746ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
34747
34748ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
34749
Reid Spencera773bd52006-08-04 18:18:08 +000034750ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034751
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034752ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034753
34754
Reid Spencera773bd52006-08-04 18:18:08 +000034755ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034756
34757
Reid Spencerea949cf2006-08-16 00:45:38 +000034758ac_config_files="$ac_config_files llvm.spec"
34759
34760
Reid Spencera773bd52006-08-04 18:18:08 +000034761ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034762
34763
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000034764ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34765
34766
Reid Spencera773bd52006-08-04 18:18:08 +000034767ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034768
34769
Reid Spencera773bd52006-08-04 18:18:08 +000034770ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034771
Reid Spencera773bd52006-08-04 18:18:08 +000034772ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034773
34774
Reid Spencera773bd52006-08-04 18:18:08 +000034775ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034776
34777
Reid Spencera773bd52006-08-04 18:18:08 +000034778ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034779
34780
Reid Spencera773bd52006-08-04 18:18:08 +000034781ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034782
34783
Reid Spencer8b2e1412006-11-17 03:32:33 +000034784ac_config_commands="$ac_config_commands runtime/Makefile"
34785
34786
Reid Spencera773bd52006-08-04 18:18:08 +000034787ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034788
34789
Reid Spencera773bd52006-08-04 18:18:08 +000034790ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034791
34792
Bill Wendlingf24eb392009-01-04 23:12:30 +000034793ac_config_commands="$ac_config_commands unittests/Makefile"
34794
34795
Reid Spencera773bd52006-08-04 18:18:08 +000034796ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034797
34798
Reid Spencera773bd52006-08-04 18:18:08 +000034799ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034800
34801
Reid Spencera773bd52006-08-04 18:18:08 +000034802ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034803
34804
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034805ac_config_commands="$ac_config_commands bindings/Makefile"
34806
34807
34808ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34809
34810
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034811
John Criswell7a73b802003-06-30 21:59:07 +000034812cat >confcache <<\_ACEOF
34813# This file is a shell script that caches the results of configure
34814# tests run on this system so they can be shared between configure
34815# scripts and configure runs, see configure's option --config-cache.
34816# It is not useful on other systems. If it contains results you don't
34817# want to keep, you may remove or edit it.
34818#
34819# config.status only pays attention to the cache file if you give it
34820# the --recheck option to rerun configure.
34821#
John Criswell0c38eaf2003-09-10 15:17:25 +000034822# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034823# loading this file, other *unset* `ac_cv_foo' will be assigned the
34824# following values.
34825
34826_ACEOF
34827
34828# The following way of writing the cache mishandles newlines in values,
34829# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034830# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034831# Ultrix sh set writes to stderr and can't be redirected directly,
34832# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034833(
34834 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34835 eval ac_val=\$$ac_var
34836 case $ac_val in #(
34837 *${as_nl}*)
34838 case $ac_var in #(
34839 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34840echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34841 esac
34842 case $ac_var in #(
34843 _ | IFS | as_nl) ;; #(
34844 *) $as_unset $ac_var ;;
34845 esac ;;
34846 esac
34847 done
34848
John Criswell7a73b802003-06-30 21:59:07 +000034849 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034850 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34851 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034852 # `set' does not quote correctly, so add quotes (double-quote
34853 # substitution turns \\\\ into \\, and sed turns \\ into \).
34854 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034855 "s/'/'\\\\''/g;
34856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034857 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034858 *)
34859 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034861 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034862 esac |
34863 sort
34864) |
John Criswell7a73b802003-06-30 21:59:07 +000034865 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034866 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034867 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034868 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034869 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34870 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034871 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34872 :end' >>confcache
34873if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34874 if test -w "$cache_file"; then
34875 test "x$cache_file" != "x/dev/null" &&
34876 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34877echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034878 cat confcache >$cache_file
34879 else
Reid Spencera773bd52006-08-04 18:18:08 +000034880 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34881echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034882 fi
34883fi
34884rm -f confcache
34885
34886test "x$prefix" = xNONE && prefix=$ac_default_prefix
34887# Let make expand exec_prefix.
34888test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34889
John Criswell7a73b802003-06-30 21:59:07 +000034890DEFS=-DHAVE_CONFIG_H
34891
John Criswell0c38eaf2003-09-10 15:17:25 +000034892ac_libobjs=
34893ac_ltlibobjs=
34894for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34895 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034896 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34897 ac_i=`echo "$ac_i" | sed "$ac_script"`
34898 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34899 # will be set to the directory where LIBOBJS objects are built.
34900 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34901 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034902done
34903LIBOBJS=$ac_libobjs
34904
34905LTLIBOBJS=$ac_ltlibobjs
34906
34907
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034908if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34909 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34910Usually this means the macro was only invoked conditionally." >&5
34911echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34912Usually this means the macro was only invoked conditionally." >&2;}
34913 { (exit 1); exit 1; }; }
34914fi
34915if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34916 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34917Usually this means the macro was only invoked conditionally." >&5
34918echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34919Usually this means the macro was only invoked conditionally." >&2;}
34920 { (exit 1); exit 1; }; }
34921fi
John Criswell7a73b802003-06-30 21:59:07 +000034922
34923: ${CONFIG_STATUS=./config.status}
34924ac_clean_files_save=$ac_clean_files
34925ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34926{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34927echo "$as_me: creating $CONFIG_STATUS" >&6;}
34928cat >$CONFIG_STATUS <<_ACEOF
34929#! $SHELL
34930# Generated by $as_me.
34931# Run this file to recreate the current configuration.
34932# Compiler output produced by configure, useful for debugging
34933# configure, is in config.log if it exists.
34934
34935debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034936ac_cs_recheck=false
34937ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034938SHELL=\${CONFIG_SHELL-$SHELL}
34939_ACEOF
34940
34941cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034942## --------------------- ##
34943## M4sh Initialization. ##
34944## --------------------- ##
34945
Bill Wendlingebcceee2009-04-18 11:20:33 +000034946# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034947if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34948 emulate sh
34949 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034950 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34951 # is contrary to our usage. Disable this feature.
34952 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034953 setopt NO_GLOB_SUBST
34954else
Bill Wendlingebcceee2009-04-18 11:20:33 +000034955 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034956fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000034957BIN_SH=xpg4; export BIN_SH # for Tru64
34958DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034959
John Criswell7a73b802003-06-30 21:59:07 +000034960
Reid Spencera773bd52006-08-04 18:18:08 +000034961# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034962# Avoid depending upon Character Ranges.
34963as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34964as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34965as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34966as_cr_digits='0123456789'
34967as_cr_alnum=$as_cr_Letters$as_cr_digits
34968
34969# The user is always right.
34970if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034971 echo "#! /bin/sh" >conf$$.sh
34972 echo "exit 0" >>conf$$.sh
34973 chmod +x conf$$.sh
34974 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034975 PATH_SEPARATOR=';'
34976 else
34977 PATH_SEPARATOR=:
34978 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034979 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034980fi
34981
Reid Spencera773bd52006-08-04 18:18:08 +000034982# Support unset when possible.
34983if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34984 as_unset=unset
34985else
34986 as_unset=false
34987fi
John Criswell7a73b802003-06-30 21:59:07 +000034988
Reid Spencera773bd52006-08-04 18:18:08 +000034989
34990# IFS
34991# We need space, tab and new line, in precisely that order. Quoting is
34992# there to prevent editors from complaining about space-tab.
34993# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34994# splitting by setting IFS to empty value.)
34995as_nl='
34996'
34997IFS=" "" $as_nl"
34998
34999# Find who we are. Look in the path if we contain no directory separator.
35000case $0 in
35001 *[\\/]* ) as_myself=$0 ;;
35002 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000035003for as_dir in $PATH
35004do
35005 IFS=$as_save_IFS
35006 test -z "$as_dir" && as_dir=.
35007 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35008done
Reid Spencera773bd52006-08-04 18:18:08 +000035009IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000035010
Reid Spencera773bd52006-08-04 18:18:08 +000035011 ;;
35012esac
35013# We did not find ourselves, most probably we were run as `sh COMMAND'
35014# in which case we are not to be found in the path.
35015if test "x$as_myself" = x; then
35016 as_myself=$0
35017fi
35018if test ! -f "$as_myself"; then
35019 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35020 { (exit 1); exit 1; }
35021fi
35022
35023# Work around bugs in pre-3.0 UWIN ksh.
35024for as_var in ENV MAIL MAILPATH
35025do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35026done
35027PS1='$ '
35028PS2='> '
35029PS4='+ '
35030
35031# NLS nuisances.
35032for as_var in \
35033 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35034 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35035 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000035036do
Reid Spencera773bd52006-08-04 18:18:08 +000035037 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35038 eval $as_var=C; export $as_var
35039 else
35040 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35041 fi
35042done
35043
35044# Required to use basename.
35045if expr a : '\(a\)' >/dev/null 2>&1 &&
35046 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35047 as_expr=expr
35048else
35049 as_expr=false
35050fi
35051
35052if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35053 as_basename=basename
35054else
35055 as_basename=false
35056fi
35057
35058
35059# Name of the executable.
35060as_me=`$as_basename -- "$0" ||
35061$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35062 X"$0" : 'X\(//\)$' \| \
35063 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35064echo X/"$0" |
35065 sed '/^.*\/\([^/][^/]*\)\/*$/{
35066 s//\1/
35067 q
35068 }
35069 /^X\/\(\/\/\)$/{
35070 s//\1/
35071 q
35072 }
35073 /^X\/\(\/\).*/{
35074 s//\1/
35075 q
35076 }
35077 s/.*/./; q'`
35078
35079# CDPATH.
35080$as_unset CDPATH
35081
35082
35083
John Criswell7a73b802003-06-30 21:59:07 +000035084 as_lineno_1=$LINENO
35085 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000035086 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000035087 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000035088
35089 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35090 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000035091 # line-number line after each line using $LINENO; the second 'sed'
35092 # does the real work. The second script uses 'N' to pair each
35093 # line-number line with the line containing $LINENO, and appends
35094 # trailing '-' during substitution so that $LINENO is not a special
35095 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000035096 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000035097 # scripts with optimization help from Paolo Bonzini. Blame Lee
35098 # E. McMahon (1931-1989) for sed's syntax. :-)
35099 sed -n '
35100 p
35101 /[$]LINENO/=
35102 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000035103 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035104 s/[$]LINENO.*/&-/
35105 t lineno
35106 b
35107 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000035108 N
Reid Spencera773bd52006-08-04 18:18:08 +000035109 :loop
35110 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000035111 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000035112 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000035113 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000035114 chmod +x "$as_me.lineno" ||
35115 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000035116 { (exit 1); exit 1; }; }
35117
35118 # Don't try to exec as it changes $[0], causing all sort of problems
35119 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000035120 # original and so on. Autoconf is especially sensitive to this).
35121 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000035122 # Exit status is that of the last command.
35123 exit
35124}
35125
35126
Reid Spencera773bd52006-08-04 18:18:08 +000035127if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35128 as_dirname=dirname
35129else
35130 as_dirname=false
35131fi
35132
35133ECHO_C= ECHO_N= ECHO_T=
35134case `echo -n x` in
35135-n*)
35136 case `echo 'x\c'` in
35137 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35138 *) ECHO_C='\c';;
35139 esac;;
35140*)
35141 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000035142esac
35143
Reid Spencera773bd52006-08-04 18:18:08 +000035144if expr a : '\(a\)' >/dev/null 2>&1 &&
35145 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000035146 as_expr=expr
35147else
35148 as_expr=false
35149fi
35150
35151rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000035152if test -d conf$$.dir; then
35153 rm -f conf$$.dir/conf$$.file
35154else
35155 rm -f conf$$.dir
35156 mkdir conf$$.dir
35157fi
John Criswell7a73b802003-06-30 21:59:07 +000035158echo >conf$$.file
35159if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000035160 as_ln_s='ln -s'
35161 # ... but there are two gotchas:
35162 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35163 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35164 # In both cases, we have to default to `cp -p'.
35165 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000035166 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000035167elif ln conf$$.file conf$$ 2>/dev/null; then
35168 as_ln_s=ln
35169else
35170 as_ln_s='cp -p'
35171fi
Reid Spencera773bd52006-08-04 18:18:08 +000035172rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35173rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035174
John Criswell0c38eaf2003-09-10 15:17:25 +000035175if mkdir -p . 2>/dev/null; then
35176 as_mkdir_p=:
35177else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035178 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035179 as_mkdir_p=false
35180fi
35181
Bill Wendlingebcceee2009-04-18 11:20:33 +000035182# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35183# systems may use methods other than mode bits to determine executability.
35184cat >conf$$.file <<_ASEOF
35185#! /bin/sh
35186exit 0
35187_ASEOF
35188chmod +x conf$$.file
35189if test -x conf$$.file >/dev/null 2>&1; then
35190 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035191else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035192 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035193fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035194rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035195
35196# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035197as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035198
35199# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035200as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035201
35202
John Criswell7a73b802003-06-30 21:59:07 +000035203exec 6>&1
35204
Reid Spencera773bd52006-08-04 18:18:08 +000035205# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035206# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035207# values after options handling.
35208ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035209This file was extended by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000035210generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035211
35212 CONFIG_FILES = $CONFIG_FILES
35213 CONFIG_HEADERS = $CONFIG_HEADERS
35214 CONFIG_LINKS = $CONFIG_LINKS
35215 CONFIG_COMMANDS = $CONFIG_COMMANDS
35216 $ $0 $@
35217
Reid Spencera773bd52006-08-04 18:18:08 +000035218on `(hostname || uname -n) 2>/dev/null | sed 1q`
35219"
35220
John Criswell7a73b802003-06-30 21:59:07 +000035221_ACEOF
35222
Reid Spencera773bd52006-08-04 18:18:08 +000035223cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035224# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035225config_files="$ac_config_files"
35226config_headers="$ac_config_headers"
35227config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035228
Reid Spencera773bd52006-08-04 18:18:08 +000035229_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035230
35231cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035232ac_cs_usage="\
35233\`$as_me' instantiates files from templates according to the
35234current configuration.
35235
35236Usage: $0 [OPTIONS] [FILE]...
35237
35238 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000035239 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035240 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035241 -d, --debug don't remove temporary files
35242 --recheck update $as_me by reconfiguring in the same conditions
35243 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035244 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035245 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035246 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035247
35248Configuration files:
35249$config_files
35250
35251Configuration headers:
35252$config_headers
35253
John Criswellc764fbc2003-09-06 15:17:13 +000035254Configuration commands:
35255$config_commands
35256
John Criswell7a73b802003-06-30 21:59:07 +000035257Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035258
Reid Spencera773bd52006-08-04 18:18:08 +000035259_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035260cat >>$CONFIG_STATUS <<_ACEOF
35261ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035262llvm config.status 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000035263configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035264 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035265
Reid Spencera773bd52006-08-04 18:18:08 +000035266Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035267This config.status script is free software; the Free Software Foundation
35268gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035269
35270ac_pwd='$ac_pwd'
35271srcdir='$srcdir'
35272INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035273_ACEOF
35274
35275cat >>$CONFIG_STATUS <<\_ACEOF
35276# If no file are specified by the user, then we need to provide default
35277# value. By we need to know if files were specified by the user.
35278ac_need_defaults=:
35279while test $# != 0
35280do
35281 case $1 in
35282 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035283 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35284 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035285 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035286 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035287 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035288 ac_option=$1
35289 ac_optarg=$2
35290 ac_shift=shift
35291 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035292 esac
35293
John Criswell0c38eaf2003-09-10 15:17:25 +000035294 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035295 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035296 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35297 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035298 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35299 echo "$ac_cs_version"; exit ;;
35300 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035301 debug=: ;;
35302 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035303 $ac_shift
35304 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035305 ac_need_defaults=false;;
35306 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035307 $ac_shift
35308 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035309 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035310 --he | --h)
35311 # Conflict between --help and --header
35312 { echo "$as_me: error: ambiguous option: $1
35313Try \`$0 --help' for more information." >&2
35314 { (exit 1); exit 1; }; };;
35315 --help | --hel | -h )
35316 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35318 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35319 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035320
35321 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035322 -*) { echo "$as_me: error: unrecognized option: $1
35323Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035324 { (exit 1); exit 1; }; } ;;
35325
Reid Spencera773bd52006-08-04 18:18:08 +000035326 *) ac_config_targets="$ac_config_targets $1"
35327 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035328
35329 esac
35330 shift
35331done
35332
John Criswell0c38eaf2003-09-10 15:17:25 +000035333ac_configure_extra_args=
35334
35335if $ac_cs_silent; then
35336 exec 6>/dev/null
35337 ac_configure_extra_args="$ac_configure_extra_args --silent"
35338fi
35339
35340_ACEOF
35341cat >>$CONFIG_STATUS <<_ACEOF
35342if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035343 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35344 CONFIG_SHELL=$SHELL
35345 export CONFIG_SHELL
35346 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035347fi
35348
John Criswell7a73b802003-06-30 21:59:07 +000035349_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035350cat >>$CONFIG_STATUS <<\_ACEOF
35351exec 5>>config.log
35352{
35353 echo
35354 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35355## Running $as_me. ##
35356_ASBOX
35357 echo "$ac_log"
35358} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035359
Reid Spencera773bd52006-08-04 18:18:08 +000035360_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035361cat >>$CONFIG_STATUS <<_ACEOF
35362#
Reid Spencera773bd52006-08-04 18:18:08 +000035363# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035364#
Reid Spencerc0682832005-02-24 19:05:19 +000035365llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035366
35367_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035368
John Criswell7a73b802003-06-30 21:59:07 +000035369cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035370
35371# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035372for ac_config_target in $ac_config_targets
35373do
Reid Spencera773bd52006-08-04 18:18:08 +000035374 case $ac_config_target in
35375 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000035376 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35377 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035378 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035379 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035380 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035381 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035382 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035383 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035384 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35385 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35386 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35387 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35388 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35389 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035390 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035391 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35392 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035393 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035394 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35395 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35396 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035397 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35398 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035399
John Criswell7a73b802003-06-30 21:59:07 +000035400 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35401echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35402 { (exit 1); exit 1; }; };;
35403 esac
35404done
35405
Reid Spencera773bd52006-08-04 18:18:08 +000035406
John Criswell7a73b802003-06-30 21:59:07 +000035407# If the user did not use the arguments to specify the items to instantiate,
35408# then the envvar interface is used. Set only those that are not.
35409# We use the long form for the default assignment because of an extremely
35410# bizarre bug on SunOS 4.1.3.
35411if $ac_need_defaults; then
35412 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35413 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035414 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035415fi
35416
John Criswell0c38eaf2003-09-10 15:17:25 +000035417# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035418# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035419# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035420# Hook for its removal unless debugging.
35421# Note that there is a small window in which the directory will not be cleaned:
35422# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035423$debug ||
35424{
Reid Spencera773bd52006-08-04 18:18:08 +000035425 tmp=
35426 trap 'exit_status=$?
35427 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35428' 0
John Criswell7a73b802003-06-30 21:59:07 +000035429 trap '{ (exit 1); exit 1; }' 1 2 13 15
35430}
John Criswell7a73b802003-06-30 21:59:07 +000035431# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035432
John Criswell7a73b802003-06-30 21:59:07 +000035433{
Reid Spencera773bd52006-08-04 18:18:08 +000035434 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035435 test -n "$tmp" && test -d "$tmp"
35436} ||
35437{
Reid Spencera773bd52006-08-04 18:18:08 +000035438 tmp=./conf$$-$RANDOM
35439 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035440} ||
35441{
John Criswell0c38eaf2003-09-10 15:17:25 +000035442 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035443 { (exit 1); exit 1; }
35444}
35445
John Criswell7a73b802003-06-30 21:59:07 +000035446#
Reid Spencera773bd52006-08-04 18:18:08 +000035447# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035448#
35449
35450# No need to generate the scripts if there are no CONFIG_FILES.
35451# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035452if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035453
35454_ACEOF
35455
Reid Spencera773bd52006-08-04 18:18:08 +000035456
35457
35458ac_delim='%!_!# '
35459for ac_last_try in false false false false false :; do
35460 cat >conf$$subs.sed <<_ACEOF
35461SHELL!$SHELL$ac_delim
35462PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35463PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35464PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35465PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35466PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35467PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35468exec_prefix!$exec_prefix$ac_delim
35469prefix!$prefix$ac_delim
35470program_transform_name!$program_transform_name$ac_delim
35471bindir!$bindir$ac_delim
35472sbindir!$sbindir$ac_delim
35473libexecdir!$libexecdir$ac_delim
35474datarootdir!$datarootdir$ac_delim
35475datadir!$datadir$ac_delim
35476sysconfdir!$sysconfdir$ac_delim
35477sharedstatedir!$sharedstatedir$ac_delim
35478localstatedir!$localstatedir$ac_delim
35479includedir!$includedir$ac_delim
35480oldincludedir!$oldincludedir$ac_delim
35481docdir!$docdir$ac_delim
35482infodir!$infodir$ac_delim
35483htmldir!$htmldir$ac_delim
35484dvidir!$dvidir$ac_delim
35485pdfdir!$pdfdir$ac_delim
35486psdir!$psdir$ac_delim
35487libdir!$libdir$ac_delim
35488localedir!$localedir$ac_delim
35489mandir!$mandir$ac_delim
35490DEFS!$DEFS$ac_delim
35491ECHO_C!$ECHO_C$ac_delim
35492ECHO_N!$ECHO_N$ac_delim
35493ECHO_T!$ECHO_T$ac_delim
35494LIBS!$LIBS$ac_delim
35495build_alias!$build_alias$ac_delim
35496host_alias!$host_alias$ac_delim
35497target_alias!$target_alias$ac_delim
35498LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35499subdirs!$subdirs$ac_delim
35500build!$build$ac_delim
35501build_cpu!$build_cpu$ac_delim
35502build_vendor!$build_vendor$ac_delim
35503build_os!$build_os$ac_delim
35504host!$host$ac_delim
35505host_cpu!$host_cpu$ac_delim
35506host_vendor!$host_vendor$ac_delim
35507host_os!$host_os$ac_delim
35508target!$target$ac_delim
35509target_cpu!$target_cpu$ac_delim
35510target_vendor!$target_vendor$ac_delim
35511target_os!$target_os$ac_delim
35512OS!$OS$ac_delim
35513LINKALL!$LINKALL$ac_delim
35514NOLINKALL!$NOLINKALL$ac_delim
35515LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35516LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000035517ARCH!$ARCH$ac_delim
35518ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035519CC!$CC$ac_delim
35520CFLAGS!$CFLAGS$ac_delim
35521LDFLAGS!$LDFLAGS$ac_delim
35522CPPFLAGS!$CPPFLAGS$ac_delim
35523ac_ct_CC!$ac_ct_CC$ac_delim
35524EXEEXT!$EXEEXT$ac_delim
35525OBJEXT!$OBJEXT$ac_delim
35526CPP!$CPP$ac_delim
35527GREP!$GREP$ac_delim
35528EGREP!$EGREP$ac_delim
35529LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35530BUILD_CC!$BUILD_CC$ac_delim
35531BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000035532BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035533CVSBUILD!$CVSBUILD$ac_delim
35534ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000035535ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035536DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035537ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35538EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035539DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035540JIT!$JIT$ac_delim
35541TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35542ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35543ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035544ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035545TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000035546LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
35547LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035548ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035549EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000035550BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000035551ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
35552ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035553CXX!$CXX$ac_delim
35554CXXFLAGS!$CXXFLAGS$ac_delim
35555ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000035556NM!$NM$ac_delim
35557ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035558_ACEOF
35559
35560 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35561 break
35562 elif $ac_last_try; then
35563 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35564echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35565 { (exit 1); exit 1; }; }
35566 else
35567 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035568 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035569done
35570
35571ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35572if test -n "$ac_eof"; then
35573 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35574 ac_eof=`expr $ac_eof + 1`
35575fi
35576
35577cat >>$CONFIG_STATUS <<_ACEOF
35578cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35579/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35580_ACEOF
35581sed '
35582s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35583s/^/s,@/; s/!/@,|#_!!_#|/
35584:n
35585t n
35586s/'"$ac_delim"'$/,g/; t
35587s/$/\\/; p
35588N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35589' >>$CONFIG_STATUS <conf$$subs.sed
35590rm -f conf$$subs.sed
35591cat >>$CONFIG_STATUS <<_ACEOF
35592CEOF$ac_eof
35593_ACEOF
35594
35595
35596ac_delim='%!_!# '
35597for ac_last_try in false false false false false :; do
35598 cat >conf$$subs.sed <<_ACEOF
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000035599LN_S!$LN_S$ac_delim
35600CMP!$CMP$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000035601CP!$CP$ac_delim
35602DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000035603FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035604MKDIR!$MKDIR$ac_delim
35605MV!$MV$ac_delim
35606RANLIB!$RANLIB$ac_delim
35607RM!$RM$ac_delim
35608SED!$SED$ac_delim
35609TAR!$TAR$ac_delim
35610BINPWD!$BINPWD$ac_delim
35611GRAPHVIZ!$GRAPHVIZ$ac_delim
35612DOT!$DOT$ac_delim
David Greenef0b9eff2009-07-09 17:16:26 +000035613FDP!$FDP$ac_delim
35614NEATO!$NEATO$ac_delim
35615TWOPI!$TWOPI$ac_delim
35616CIRCO!$CIRCO$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035617GV!$GV$ac_delim
35618DOTTY!$DOTTY$ac_delim
35619PERL!$PERL$ac_delim
35620HAVE_PERL!$HAVE_PERL$ac_delim
35621INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35622INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35623INSTALL_DATA!$INSTALL_DATA$ac_delim
35624BZIP2!$BZIP2$ac_delim
35625DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035626GROFF!$GROFF$ac_delim
35627GZIP!$GZIP$ac_delim
35628POD2HTML!$POD2HTML$ac_delim
35629POD2MAN!$POD2MAN$ac_delim
35630RUNTEST!$RUNTEST$ac_delim
35631TCLSH!$TCLSH$ac_delim
35632ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035633OCAMLC!$OCAMLC$ac_delim
35634OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035635OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035636OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000035637GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035638INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35639INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35640CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35641CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35642LIBADD_DL!$LIBADD_DL$ac_delim
35643ECHO!$ECHO$ac_delim
35644AR!$AR$ac_delim
35645STRIP!$STRIP$ac_delim
35646CXXCPP!$CXXCPP$ac_delim
35647F77!$F77$ac_delim
35648FFLAGS!$FFLAGS$ac_delim
35649ac_ct_F77!$ac_ct_F77$ac_delim
35650LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035651LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
35652LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000035653LLVMGCC!$LLVMGCC$ac_delim
35654LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035655USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035656HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035657HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035658ALLOCA!$ALLOCA$ac_delim
35659MMAP_FILE!$MMAP_FILE$ac_delim
35660LLVMCC1!$LLVMCC1$ac_delim
35661LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35662LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035663LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035664LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35665LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035666LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035667SHLIBEXT!$SHLIBEXT$ac_delim
35668LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35669LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35670LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35671LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35672LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35673LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35674LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35675LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35676LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35677LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035678BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35679ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035680OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035681ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035682RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035683RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035684LIBOBJS!$LIBOBJS$ac_delim
35685LTLIBOBJS!$LTLIBOBJS$ac_delim
35686_ACEOF
35687
David Greenef0b9eff2009-07-09 17:16:26 +000035688 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 87; then
Reid Spencera773bd52006-08-04 18:18:08 +000035689 break
35690 elif $ac_last_try; then
35691 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35692echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35693 { (exit 1); exit 1; }; }
35694 else
35695 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35696 fi
35697done
35698
35699ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35700if test -n "$ac_eof"; then
35701 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35702 ac_eof=`expr $ac_eof + 1`
35703fi
35704
35705cat >>$CONFIG_STATUS <<_ACEOF
35706cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35707/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35708_ACEOF
35709sed '
35710s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35711s/^/s,@/; s/!/@,|#_!!_#|/
35712:n
35713t n
35714s/'"$ac_delim"'$/,g/; t
35715s/$/\\/; p
35716N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35717' >>$CONFIG_STATUS <conf$$subs.sed
35718rm -f conf$$subs.sed
35719cat >>$CONFIG_STATUS <<_ACEOF
35720:end
35721s/|#_!!_#|//g
35722CEOF$ac_eof
35723_ACEOF
35724
35725
35726# VPATH may cause trouble with some makes, so we remove $(srcdir),
35727# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35728# trailing colons and then remove the whole line if VPATH becomes empty
35729# (actually we leave an empty line to preserve line numbers).
35730if test "x$srcdir" = x.; then
35731 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35732s/:*\$(srcdir):*/:/
35733s/:*\${srcdir}:*/:/
35734s/:*@srcdir@:*/:/
35735s/^\([^=]*=[ ]*\):*/\1/
35736s/:*$//
35737s/^[^=]*=[ ]*$//
35738}'
35739fi
35740
35741cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035742fi # test -n "$CONFIG_FILES"
35743
Reid Spencera773bd52006-08-04 18:18:08 +000035744
35745for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35746do
35747 case $ac_tag in
35748 :[FHLC]) ac_mode=$ac_tag; continue;;
35749 esac
35750 case $ac_mode$ac_tag in
35751 :[FHL]*:*);;
35752 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35753echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35754 { (exit 1); exit 1; }; };;
35755 :[FH]-) ac_tag=-:-;;
35756 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35757 esac
35758 ac_save_IFS=$IFS
35759 IFS=:
35760 set x $ac_tag
35761 IFS=$ac_save_IFS
35762 shift
35763 ac_file=$1
35764 shift
35765
35766 case $ac_mode in
35767 :L) ac_source=$1;;
35768 :[FH])
35769 ac_file_inputs=
35770 for ac_f
35771 do
35772 case $ac_f in
35773 -) ac_f="$tmp/stdin";;
35774 *) # Look for the file first in the build tree, then in the source tree
35775 # (if the path is not absolute). The absolute path cannot be DOS-style,
35776 # because $ac_f cannot contain `:'.
35777 test -f "$ac_f" ||
35778 case $ac_f in
35779 [\\/$]*) false;;
35780 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35781 esac ||
35782 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35783echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35784 { (exit 1); exit 1; }; };;
35785 esac
35786 ac_file_inputs="$ac_file_inputs $ac_f"
35787 done
35788
35789 # Let's still pretend it is `configure' which instantiates (i.e., don't
35790 # use $as_me), people would be surprised to read:
35791 # /* config.h. Generated by config.status. */
35792 configure_input="Generated from "`IFS=:
35793 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35794 if test x"$ac_file" != x-; then
35795 configure_input="$ac_file. $configure_input"
35796 { echo "$as_me:$LINENO: creating $ac_file" >&5
35797echo "$as_me: creating $ac_file" >&6;}
35798 fi
35799
35800 case $ac_tag in
35801 *:-:* | *:-) cat >"$tmp/stdin";;
35802 esac
35803 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035804 esac
35805
Reid Spencera773bd52006-08-04 18:18:08 +000035806 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035807$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035808 X"$ac_file" : 'X\(//\)[^/]' \| \
35809 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035810 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035811echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35813 s//\1/
35814 q
35815 }
35816 /^X\(\/\/\)[^/].*/{
35817 s//\1/
35818 q
35819 }
35820 /^X\(\/\/\)$/{
35821 s//\1/
35822 q
35823 }
35824 /^X\(\/\).*/{
35825 s//\1/
35826 q
35827 }
35828 s/.*/./; q'`
35829 { as_dir="$ac_dir"
35830 case $as_dir in #(
35831 -*) as_dir=./$as_dir;;
35832 esac
35833 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035834 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035835 while :; do
35836 case $as_dir in #(
35837 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35838 *) as_qdir=$as_dir;;
35839 esac
35840 as_dirs="'$as_qdir' $as_dirs"
35841 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035842$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035843 X"$as_dir" : 'X\(//\)[^/]' \| \
35844 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035845 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035846echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35848 s//\1/
35849 q
35850 }
35851 /^X\(\/\/\)[^/].*/{
35852 s//\1/
35853 q
35854 }
35855 /^X\(\/\/\)$/{
35856 s//\1/
35857 q
35858 }
35859 /^X\(\/\).*/{
35860 s//\1/
35861 q
35862 }
35863 s/.*/./; q'`
35864 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035865 done
Reid Spencera773bd52006-08-04 18:18:08 +000035866 test -z "$as_dirs" || eval "mkdir $as_dirs"
35867 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35868echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035869 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035870 ac_builddir=.
35871
Reid Spencera773bd52006-08-04 18:18:08 +000035872case "$ac_dir" in
35873.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35874*)
John Criswell7a73b802003-06-30 21:59:07 +000035875 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035876 # A ".." for each directory in $ac_dir_suffix.
35877 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35878 case $ac_top_builddir_sub in
35879 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35880 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35881 esac ;;
35882esac
35883ac_abs_top_builddir=$ac_pwd
35884ac_abs_builddir=$ac_pwd$ac_dir_suffix
35885# for backward compatibility:
35886ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035887
35888case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035889 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035890 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035891 ac_top_srcdir=$ac_top_builddir_sub
35892 ac_abs_top_srcdir=$ac_pwd ;;
35893 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035894 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035895 ac_top_srcdir=$srcdir
35896 ac_abs_top_srcdir=$srcdir ;;
35897 *) # Relative name.
35898 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35899 ac_top_srcdir=$ac_top_build_prefix$srcdir
35900 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035901esac
Reid Spencera773bd52006-08-04 18:18:08 +000035902ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035903
John Criswell7a73b802003-06-30 21:59:07 +000035904
Reid Spencera773bd52006-08-04 18:18:08 +000035905 case $ac_mode in
35906 :F)
35907 #
35908 # CONFIG_FILE
35909 #
John Criswell7a73b802003-06-30 21:59:07 +000035910
35911 case $INSTALL in
35912 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035913 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035914 esac
John Criswell7a73b802003-06-30 21:59:07 +000035915_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035916
35917cat >>$CONFIG_STATUS <<\_ACEOF
35918# If the template does not know about datarootdir, expand it.
35919# FIXME: This hack should be removed a few years after 2.60.
35920ac_datarootdir_hack=; ac_datarootdir_seen=
35921
35922case `sed -n '/datarootdir/ {
35923 p
35924 q
35925}
35926/@datadir@/p
35927/@docdir@/p
35928/@infodir@/p
35929/@localedir@/p
35930/@mandir@/p
35931' $ac_file_inputs` in
35932*datarootdir*) ac_datarootdir_seen=yes;;
35933*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35934 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35935echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35936_ACEOF
35937cat >>$CONFIG_STATUS <<_ACEOF
35938 ac_datarootdir_hack='
35939 s&@datadir@&$datadir&g
35940 s&@docdir@&$docdir&g
35941 s&@infodir@&$infodir&g
35942 s&@localedir@&$localedir&g
35943 s&@mandir@&$mandir&g
35944 s&\\\${datarootdir}&$datarootdir&g' ;;
35945esac
35946_ACEOF
35947
35948# Neutralize VPATH when `$srcdir' = `.'.
35949# Shell code in configure.ac might set extrasub.
35950# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035951cat >>$CONFIG_STATUS <<_ACEOF
35952 sed "$ac_vpsub
35953$extrasub
35954_ACEOF
35955cat >>$CONFIG_STATUS <<\_ACEOF
35956:t
35957/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035958s&@configure_input@&$configure_input&;t t
35959s&@top_builddir@&$ac_top_builddir_sub&;t t
35960s&@srcdir@&$ac_srcdir&;t t
35961s&@abs_srcdir@&$ac_abs_srcdir&;t t
35962s&@top_srcdir@&$ac_top_srcdir&;t t
35963s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35964s&@builddir@&$ac_builddir&;t t
35965s&@abs_builddir@&$ac_abs_builddir&;t t
35966s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35967s&@INSTALL@&$ac_INSTALL&;t t
35968$ac_datarootdir_hack
35969" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035970
Reid Spencera773bd52006-08-04 18:18:08 +000035971test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35972 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35973 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35974 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35975which seems to be undefined. Please make sure it is defined." >&5
35976echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35977which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035978
Reid Spencera773bd52006-08-04 18:18:08 +000035979 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035980 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035981 -) cat "$tmp/out"; rm -f "$tmp/out";;
35982 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035983 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035984 ;;
35985 :H)
35986 #
35987 # CONFIG_HEADER
35988 #
John Criswell7a73b802003-06-30 21:59:07 +000035989_ACEOF
35990
Reid Spencera773bd52006-08-04 18:18:08 +000035991# Transform confdefs.h into a sed script `conftest.defines', that
35992# substitutes the proper values into config.h.in to produce config.h.
35993rm -f conftest.defines conftest.tail
35994# First, append a space to every undef/define line, to ease matching.
35995echo 's/$/ /' >conftest.defines
35996# Then, protect against being on the right side of a sed subst, or in
35997# an unquoted here document, in config.status. If some macros were
35998# called several times there might be several #defines for the same
35999# symbol, which is useless. But do not sort them, since the last
36000# AC_DEFINE must be honored.
36001ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36002# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36003# NAME is the cpp macro being defined, VALUE is the value it is being given.
36004# PARAMS is the parameter list in the macro definition--in most cases, it's
36005# just an empty string.
36006ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36007ac_dB='\\)[ (].*,\\1define\\2'
36008ac_dC=' '
36009ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000036010
Reid Spencera773bd52006-08-04 18:18:08 +000036011uniq confdefs.h |
36012 sed -n '
36013 t rset
36014 :rset
36015 s/^[ ]*#[ ]*define[ ][ ]*//
36016 t ok
36017 d
36018 :ok
36019 s/[\\&,]/\\&/g
36020 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36021 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36022 ' >>conftest.defines
36023
36024# Remove the space that was appended to ease matching.
36025# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000036026# example, in the case of _POSIX_SOURCE, which is predefined and required
36027# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000036028# (The regexp can be short, since the line contains either #define or #undef.)
36029echo 's/ $//
36030s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000036031
Reid Spencera773bd52006-08-04 18:18:08 +000036032# Break up conftest.defines:
36033ac_max_sed_lines=50
36034
36035# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36036# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36037# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36038# et cetera.
36039ac_in='$ac_file_inputs'
36040ac_out='"$tmp/out1"'
36041ac_nxt='"$tmp/out2"'
36042
36043while :
John Criswell7a73b802003-06-30 21:59:07 +000036044do
Reid Spencera773bd52006-08-04 18:18:08 +000036045 # Write a here document:
36046 cat >>$CONFIG_STATUS <<_ACEOF
36047 # First, check the format of the line:
36048 cat >"\$tmp/defines.sed" <<\\CEOF
36049/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36050/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36051b
36052:def
36053_ACEOF
36054 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036055 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036056 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36057 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36058 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36059 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000036060 rm -f conftest.defines
36061 mv conftest.tail conftest.defines
36062done
Reid Spencera773bd52006-08-04 18:18:08 +000036063rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000036064
Reid Spencera773bd52006-08-04 18:18:08 +000036065echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036066cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036067 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000036068 echo "/* $configure_input */" >"$tmp/config.h"
36069 cat "$ac_result" >>"$tmp/config.h"
36070 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000036071 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36072echo "$as_me: $ac_file is unchanged" >&6;}
36073 else
John Criswell7a73b802003-06-30 21:59:07 +000036074 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000036075 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000036076 fi
36077 else
Reid Spencera773bd52006-08-04 18:18:08 +000036078 echo "/* $configure_input */"
36079 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000036080 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036081 rm -f "$tmp/out12"
36082 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036083
Reid Spencera773bd52006-08-04 18:18:08 +000036084 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36085echo "$as_me: executing $ac_file commands" >&6;}
36086 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036087 esac
John Criswell7a73b802003-06-30 21:59:07 +000036088
Reid Spencera773bd52006-08-04 18:18:08 +000036089
36090 case $ac_file$ac_mode in
36091 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36092 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36093 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36094 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36095 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36096 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36097 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36098 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036099 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36100 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036101 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36102 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36103 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36104 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036105 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36106 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036107 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36108 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36109 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36110 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36111 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36112 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036113 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36114 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36115 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36116 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036117
36118 esac
36119done # for ac_tag
36120
John Criswell7a73b802003-06-30 21:59:07 +000036121
36122{ (exit 0); exit 0; }
36123_ACEOF
36124chmod +x $CONFIG_STATUS
36125ac_clean_files=$ac_clean_files_save
36126
36127
36128# configure is writing to config.log, and then calls config.status.
36129# config.status does its own redirection, appending to config.log.
36130# Unfortunately, on DOS this fails, as config.log is still kept open
36131# by configure, so config.status won't be able to write to it; its
36132# output is simply discarded. So we exec the FD to /dev/null,
36133# effectively closing config.log, so it can be properly (re)opened and
36134# appended to by config.status. When coming back to configure, we
36135# need to make the FD available again.
36136if test "$no_create" != yes; then
36137 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000036138 ac_config_status_args=
36139 test "$silent" = yes &&
36140 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000036141 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000036142 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000036143 exec 5>>config.log
36144 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36145 # would make configure fail if this is the last instruction.
36146 $ac_cs_success || { (exit 1); exit 1; }
36147fi
36148
John Criswell12399a12003-09-30 15:55:44 +000036149#
36150# CONFIG_SUBDIRS section.
36151#
36152if test "$no_recursion" != yes; then
36153
36154 # Remove --cache-file and --srcdir arguments so they do not pile up.
36155 ac_sub_configure_args=
36156 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000036157 eval "set x $ac_configure_args"
36158 shift
36159 for ac_arg
36160 do
John Criswell12399a12003-09-30 15:55:44 +000036161 if test -n "$ac_prev"; then
36162 ac_prev=
36163 continue
36164 fi
36165 case $ac_arg in
36166 -cache-file | --cache-file | --cache-fil | --cache-fi \
36167 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36168 ac_prev=cache_file ;;
36169 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36170 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36171 | --c=*)
36172 ;;
36173 --config-cache | -C)
36174 ;;
36175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36176 ac_prev=srcdir ;;
36177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36178 ;;
36179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36180 ac_prev=prefix ;;
36181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36182 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036183 *)
36184 case $ac_arg in
36185 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36186 esac
36187 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036188 esac
36189 done
36190
36191 # Always prepend --prefix to ensure using the same prefix
36192 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036193 ac_arg="--prefix=$prefix"
36194 case $ac_arg in
36195 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36196 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000036197 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036198
36199 ac_popdir=`pwd`
36200 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36201
36202 # Do not complain, so a configure script can configure whichever
36203 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036204 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036205
Reid Spencera773bd52006-08-04 18:18:08 +000036206 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36207 echo "$as_me:$LINENO: $ac_msg" >&5
36208 echo "$ac_msg" >&6
36209 { as_dir="$ac_dir"
36210 case $as_dir in #(
36211 -*) as_dir=./$as_dir;;
36212 esac
36213 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036214 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036215 while :; do
36216 case $as_dir in #(
36217 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36218 *) as_qdir=$as_dir;;
36219 esac
36220 as_dirs="'$as_qdir' $as_dirs"
36221 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036222$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036223 X"$as_dir" : 'X\(//\)[^/]' \| \
36224 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036225 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036226echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36228 s//\1/
36229 q
36230 }
36231 /^X\(\/\/\)[^/].*/{
36232 s//\1/
36233 q
36234 }
36235 /^X\(\/\/\)$/{
36236 s//\1/
36237 q
36238 }
36239 /^X\(\/\).*/{
36240 s//\1/
36241 q
36242 }
36243 s/.*/./; q'`
36244 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036245 done
Reid Spencera773bd52006-08-04 18:18:08 +000036246 test -z "$as_dirs" || eval "mkdir $as_dirs"
36247 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36248echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036249 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036250 ac_builddir=.
36251
Reid Spencera773bd52006-08-04 18:18:08 +000036252case "$ac_dir" in
36253.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36254*)
John Criswell12399a12003-09-30 15:55:44 +000036255 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036256 # A ".." for each directory in $ac_dir_suffix.
36257 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36258 case $ac_top_builddir_sub in
36259 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36260 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36261 esac ;;
36262esac
36263ac_abs_top_builddir=$ac_pwd
36264ac_abs_builddir=$ac_pwd$ac_dir_suffix
36265# for backward compatibility:
36266ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036267
36268case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036269 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036270 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036271 ac_top_srcdir=$ac_top_builddir_sub
36272 ac_abs_top_srcdir=$ac_pwd ;;
36273 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036274 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036275 ac_top_srcdir=$srcdir
36276 ac_abs_top_srcdir=$srcdir ;;
36277 *) # Relative name.
36278 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36279 ac_top_srcdir=$ac_top_build_prefix$srcdir
36280 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036281esac
Reid Spencera773bd52006-08-04 18:18:08 +000036282ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036283
36284
Reid Spencera773bd52006-08-04 18:18:08 +000036285 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036286
36287 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036288 if test -f "$ac_srcdir/configure.gnu"; then
36289 ac_sub_configure=$ac_srcdir/configure.gnu
36290 elif test -f "$ac_srcdir/configure"; then
36291 ac_sub_configure=$ac_srcdir/configure
36292 elif test -f "$ac_srcdir/configure.in"; then
36293 # This should be Cygnus configure.
36294 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036295 else
36296 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36297echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36298 ac_sub_configure=
36299 fi
36300
36301 # The recursion is here.
36302 if test -n "$ac_sub_configure"; then
36303 # Make the cache file name correct relative to the subdirectory.
36304 case $cache_file in
36305 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036306 *) # Relative name.
36307 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036308 esac
36309
Reid Spencera773bd52006-08-04 18:18:08 +000036310 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36311echo "$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 +000036312 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036313 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36314 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036315 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036316echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36317 { (exit 1); exit 1; }; }
36318 fi
36319
Reid Spencera773bd52006-08-04 18:18:08 +000036320 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036321 done
36322fi
36323