blob: 29537cc479177e03953fc1ae1d47d317d5f97d84 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner953042b2009-08-22 04:37:30 +00003# Generated by GNU Autoconf 2.60 for llvm 2.7svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Tanya Lattnerc2264592009-08-22 21:01:26 +000012# Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Bill Wendlingebcceee2009-04-18 11:20:33 +000017# Be Bourne compatible
John Criswell0c38eaf2003-09-10 15:17:25 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Bill Wendlingebcceee2009-04-18 11:20:33 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Wendlingebcceee2009-04-18 11:20:33 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000240# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000260# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Bill Wendlingebcceee2009-04-18 11:20:33 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattner953042b2009-08-22 04:37:30 +0000718PACKAGE_VERSION='2.7svn'
719PACKAGE_STRING='llvm 2.7svn'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
Bill Wendlingebcceee2009-04-18 11:20:33 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000749#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000752#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
Anton Korobeynikov0855f102009-08-18 00:40:51 +0000811HOST_OS
812TARGET_OS
Reid Spencera773bd52006-08-04 18:18:08 +0000813LINKALL
814NOLINKALL
815LLVM_ON_UNIX
816LLVM_ON_WIN32
Nick Lewycky83fc4472009-09-29 05:48:51 +0000817ARCH
818ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000819CC
820CFLAGS
821LDFLAGS
822CPPFLAGS
823ac_ct_CC
824EXEEXT
825OBJEXT
826CPP
827GREP
828EGREP
829LLVM_CROSS_COMPILING
830BUILD_CC
831BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000832BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000833CVSBUILD
834ENABLE_OPTIMIZED
David Greene2a5a12c2009-04-17 14:50:39 +0000835ENABLE_PROFILING
Reid Spencera773bd52006-08-04 18:18:08 +0000836DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000837ENABLE_EXPENSIVE_CHECKS
838EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000839DEBUG_RUNTIME
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +0000840DEBUG_SYMBOLS
Reid Spencera773bd52006-08-04 18:18:08 +0000841JIT
842TARGET_HAS_JIT
843ENABLE_DOXYGEN
844ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000845ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000846TARGETS_TO_BUILD
Douglas Gregor1555a232009-06-16 20:12:29 +0000847LLVM_ENUM_TARGETS
848LLVM_ENUM_ASM_PRINTERS
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +0000849LLVM_ENUM_ASM_PARSERS
Reid Spencer65c5d752006-11-05 17:08:18 +0000850ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000851EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000852BINUTILS_INCDIR
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +0000853ENABLE_LLVMC_DYNAMIC
854ENABLE_LLVMC_DYNAMIC_PLUGINS
Reid Spencera773bd52006-08-04 18:18:08 +0000855CXX
856CXXFLAGS
857ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000858NM
859ifGNUmake
860LN_S
861CMP
862CP
863DATE
864FIND
865MKDIR
866MV
867RANLIB
868RM
869SED
870TAR
871BINPWD
872GRAPHVIZ
873DOT
David Greenef0b9eff2009-07-09 17:16:26 +0000874FDP
875NEATO
876TWOPI
877CIRCO
Reid Spencera773bd52006-08-04 18:18:08 +0000878GV
879DOTTY
880PERL
881HAVE_PERL
882INSTALL_PROGRAM
883INSTALL_SCRIPT
884INSTALL_DATA
885BZIP2
886DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000887GROFF
888GZIP
889POD2HTML
890POD2MAN
891RUNTEST
892TCLSH
893ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000894OCAMLC
895OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000896OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000897OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000898GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000899INSTALL_LTDL_TRUE
900INSTALL_LTDL_FALSE
901CONVENIENCE_LTDL_TRUE
902CONVENIENCE_LTDL_FALSE
903LIBADD_DL
904ECHO
905AR
906STRIP
907CXXCPP
908F77
909FFLAGS
910ac_ct_F77
911LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000912LLVMGCCCOMMAND
913LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000914LLVMGCC
915LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000916USE_UDIS86
Jeffrey Yasskina93e7702009-07-10 21:09:55 +0000917USE_OPROFILE
Reid Spencer1000b732006-12-01 00:37:14 +0000918HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000919HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000920ALLOCA
921MMAP_FILE
922LLVMCC1
923LLVMCC1PLUS
924LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000925LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000926LLVMGCC_VERSION
927LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000928LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000929SHLIBEXT
930LLVM_PREFIX
931LLVM_BINDIR
932LLVM_LIBDIR
933LLVM_DATADIR
934LLVM_DOCSDIR
935LLVM_ETCDIR
936LLVM_INCLUDEDIR
937LLVM_INFODIR
938LLVM_MANDIR
939LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000940BINDINGS_TO_BUILD
941ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000942OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000943ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000944RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000945RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000946LIBOBJS
947LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000948ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000949 ac_precious_vars='build_alias
950host_alias
951target_alias
952CC
953CFLAGS
954LDFLAGS
955CPPFLAGS
956CPP
957CXX
958CXXFLAGS
959CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000960CXXCPP
961F77
962FFLAGS'
963ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000964projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000965projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000966projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000967projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000968projects/llvm-reopt
969projects/llvm-gcc
970projects/llvm-java
971projects/llvm-tv
972projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000973projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000974projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000975
976# Initialize some variables set by options.
977ac_init_help=
978ac_init_version=false
979# The variables have the same names as the options, with
980# dashes changed to underlines.
981cache_file=/dev/null
982exec_prefix=NONE
983no_create=
984no_recursion=
985prefix=NONE
986program_prefix=NONE
987program_suffix=NONE
988program_transform_name=s,x,x,
989silent=
990site=
991srcdir=
992verbose=
993x_includes=NONE
994x_libraries=NONE
995
996# Installation directory options.
997# These are left unexpanded so users can "make install exec_prefix=/foo"
998# and all the variables that are supposed to be based on exec_prefix
999# by default will actually change.
1000# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +00001001# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +00001002bindir='${exec_prefix}/bin'
1003sbindir='${exec_prefix}/sbin'
1004libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001005datarootdir='${prefix}/share'
1006datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001007sysconfdir='${prefix}/etc'
1008sharedstatedir='${prefix}/com'
1009localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001010includedir='${prefix}/include'
1011oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001012docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013infodir='${datarootdir}/info'
1014htmldir='${docdir}'
1015dvidir='${docdir}'
1016pdfdir='${docdir}'
1017psdir='${docdir}'
1018libdir='${exec_prefix}/lib'
1019localedir='${datarootdir}/locale'
1020mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001021
1022ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001023ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001024for ac_option
1025do
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001028 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001029 ac_prev=
1030 continue
1031 fi
1032
Reid Spencera773bd52006-08-04 18:18:08 +00001033 case $ac_option in
1034 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 *) ac_optarg=yes ;;
1036 esac
John Criswell7a73b802003-06-30 21:59:07 +00001037
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1039
Reid Spencera773bd52006-08-04 18:18:08 +00001040 case $ac_dashdash$ac_option in
1041 --)
1042 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001043
1044 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045 ac_prev=bindir ;;
1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047 bindir=$ac_optarg ;;
1048
1049 -build | --build | --buil | --bui | --bu)
1050 ac_prev=build_alias ;;
1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052 build_alias=$ac_optarg ;;
1053
1054 -cache-file | --cache-file | --cache-fil | --cache-fi \
1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056 ac_prev=cache_file ;;
1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059 cache_file=$ac_optarg ;;
1060
1061 --config-cache | -C)
1062 cache_file=config.cache ;;
1063
Reid Spencera773bd52006-08-04 18:18:08 +00001064 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001065 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001066 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001067 datadir=$ac_optarg ;;
1068
Reid Spencera773bd52006-08-04 18:18:08 +00001069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070 | --dataroo | --dataro | --datar)
1071 ac_prev=datarootdir ;;
1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074 datarootdir=$ac_optarg ;;
1075
John Criswell7a73b802003-06-30 21:59:07 +00001076 -disable-* | --disable-*)
1077 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001079 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001080 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1081 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001082 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001083 eval enable_$ac_feature=no ;;
1084
1085 -docdir | --docdir | --docdi | --doc | --do)
1086 ac_prev=docdir ;;
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1089
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091 ac_prev=dvidir ;;
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001094
1095 -enable-* | --enable-*)
1096 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001098 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001099 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1100 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001101 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001102 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001103
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1112
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1115 with_gas=yes ;;
1116
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1123
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1128
Reid Spencera773bd52006-08-04 18:18:08 +00001129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 ac_prev=htmldir ;;
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 | --ht=*)
1133 htmldir=$ac_optarg ;;
1134
John Criswell7a73b802003-06-30 21:59:07 +00001135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1141
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 ac_prev=infodir ;;
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1146
1147 -libdir | --libdir | --libdi | --libd)
1148 ac_prev=libdir ;;
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1151
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1158
Reid Spencera773bd52006-08-04 18:18:08 +00001159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1163
John Criswell7a73b802003-06-30 21:59:07 +00001164 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001165 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001169 localstatedir=$ac_optarg ;;
1170
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 ac_prev=mandir ;;
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1175
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1178 with_fp=no ;;
1179
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1182 no_create=yes ;;
1183
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 no_recursion=yes ;;
1187
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1196
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 ac_prev=prefix ;;
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1201
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1208
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1215
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1232
Reid Spencera773bd52006-08-04 18:18:08 +00001233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 ac_prev=pdfdir ;;
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1237
1238 -psdir | --psdir | --psdi | --psd | --ps)
1239 ac_prev=psdir ;;
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 psdir=$ac_optarg ;;
1242
John Criswell7a73b802003-06-30 21:59:07 +00001243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 silent=yes ;;
1246
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 ac_prev=sbindir ;;
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 | --sbi=* | --sb=*)
1251 sbindir=$ac_optarg ;;
1252
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1256 | --sha | --sh)
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 | --sha=* | --sh=*)
1262 sharedstatedir=$ac_optarg ;;
1263
1264 -site | --site | --sit)
1265 ac_prev=site ;;
1266 -site=* | --site=* | --sit=*)
1267 site=$ac_optarg ;;
1268
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 ac_prev=srcdir ;;
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1273
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1280
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1285
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 verbose=yes ;;
1288
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1291
1292 -with-* | --with-*)
1293 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001295 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001296 { echo "$as_me: error: invalid package name: $ac_package" >&2
1297 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001298 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001299 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001300
1301 -without-* | --without-*)
1302 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001304 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001305 { echo "$as_me: error: invalid package name: $ac_package" >&2
1306 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001307 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001308 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001309
1310 --x)
1311 # Obsolete; use --with-x.
1312 with_x=yes ;;
1313
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1320
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1327
1328 -*) { echo "$as_me: error: unrecognized option: $ac_option
1329Try \`$0 --help' for more information." >&2
1330 { (exit 1); exit 1; }; }
1331 ;;
1332
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1337 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001339 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001340 export $ac_envvar ;;
1341
1342 *)
1343 # FIXME: should be removed in autoconf 3.0.
1344 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 ;;
1349
1350 esac
1351done
1352
1353if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 { echo "$as_me: error: missing argument to $ac_option" >&2
1356 { (exit 1); exit 1; }; }
1357fi
1358
Reid Spencera773bd52006-08-04 18:18:08 +00001359# Be sure to have absolute directory names.
1360for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001364do
Reid Spencera773bd52006-08-04 18:18:08 +00001365 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001366 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001369 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001370 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1371 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001372done
1373
1374# There might be people who depend on the old broken behavior: `$host'
1375# used to hold the argument of --host etc.
1376# FIXME: To remove some day.
1377build=$build_alias
1378host=$host_alias
1379target=$target_alias
1380
1381# FIXME: To remove some day.
1382if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
1385 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1386 If a cross compiler is detected then cross compile mode will be used." >&2
1387 elif test "x$build_alias" != "x$host_alias"; then
1388 cross_compiling=yes
1389 fi
1390fi
1391
1392ac_tool_prefix=
1393test -n "$host_alias" && ac_tool_prefix=$host_alias-
1394
1395test "$silent" = yes && exec 6>/dev/null
1396
1397
Reid Spencera773bd52006-08-04 18:18:08 +00001398ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399ac_ls_di=`ls -di .` &&
1400ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401 { echo "$as_me: error: Working directory cannot be determined" >&2
1402 { (exit 1); exit 1; }; }
1403test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404 { echo "$as_me: error: pwd does not report name of working directory" >&2
1405 { (exit 1); exit 1; }; }
1406
1407
John Criswell7a73b802003-06-30 21:59:07 +00001408# Find the source files, if location was not specified.
1409if test -z "$srcdir"; then
1410 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001411 # Try the directory containing this script, then the parent directory.
1412 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001413$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001414 X"$0" : 'X\(//\)[^/]' \| \
1415 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001417echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\/\)[^/].*/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\/\)$/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\).*/{
1431 s//\1/
1432 q
1433 }
1434 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001435 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001436 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001437 srcdir=..
1438 fi
1439else
1440 ac_srcdir_defaulted=no
1441fi
Reid Spencera773bd52006-08-04 18:18:08 +00001442if test ! -r "$srcdir/$ac_unique_file"; then
1443 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1444 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001445 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001446fi
Reid Spencera773bd52006-08-04 18:18:08 +00001447ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448ac_abs_confdir=`(
1449 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001450 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001451 pwd)`
1452# When building in place, set srcdir=.
1453if test "$ac_abs_confdir" = "$ac_pwd"; then
1454 srcdir=.
1455fi
1456# Remove unnecessary trailing slashes from srcdir.
1457# Double slashes in file names in object file debugging info
1458# mess up M-x gdb in Emacs.
1459case $srcdir in
1460*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461esac
1462for ac_var in $ac_precious_vars; do
1463 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_${ac_var}_value=\$${ac_var}
1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467done
John Criswell7a73b802003-06-30 21:59:07 +00001468
1469#
1470# Report the --help message.
1471#
1472if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1475 cat <<_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001476\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001477
1478Usage: $0 [OPTION]... [VAR=VALUE]...
1479
1480To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481VAR=VALUE. See below for descriptions of some of the useful variables.
1482
1483Defaults for the options are specified in brackets.
1484
1485Configuration:
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1495
John Criswell7a73b802003-06-30 21:59:07 +00001496Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001498 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001500 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001501
1502By default, \`make install' will install all the files in
1503\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505for instance \`--prefix=\$HOME'.
1506
1507For better control, use the options below.
1508
1509Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001529_ACEOF
1530
1531 cat <<\_ACEOF
1532
1533System types:
1534 --build=BUILD configure for building on BUILD [guessed]
1535 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536 --target=TARGET configure for building compilers for TARGET [HOST]
1537_ACEOF
1538fi
1539
1540if test -n "$ac_init_help"; then
1541 case $ac_init_help in
Tanya Lattner953042b2009-08-22 04:37:30 +00001542 short | recursive ) echo "Configuration of llvm 2.7svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001543 esac
1544 cat <<\_ACEOF
1545
1546Optional Features:
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001549 --enable-optimized Compile with optimizations enabled (default is NO)
1550 --enable-profiling Compile with profiling enabled (default is NO)
1551 --enable-assertions Compile with assertion checks enabled (default is
1552 YES)
David Greenea696d242007-06-28 19:36:08 +00001553 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001554 Compile with expensive debug checks enabled (default
1555 is NO)
1556 --enable-debug-runtime Build runtime libs with debug symbols (default is
1557 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001558 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1559 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001560 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001561 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001562 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001563 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001564 is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001565 --enable-targets Build specific host targets: all or
1566 target1,target2,... Valid targets are: host, x86,
1567 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1568 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1569 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001570 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1571 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001572 --enable-bindings Build specific language bindings:
1573 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001574 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001575 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1576 Win32)
1577 --enable-llvmc-dynamic-plugins
1578 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001579 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001580 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001581 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001582 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001583 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001584 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001585 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001586 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001587 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001588
1589Optional Packages:
1590 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1591 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001592 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1593 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001594 --with-llvmgcc Specify location of llvm-gcc driver (default
1595 searches PATH)
1596 --with-llvmgxx Specify location of llvm-g++ driver (default
1597 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001598 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001599 --with-ocaml-libdir Specify install location for ocaml bindings (default
1600 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001601 --with-binutils-include Specify path to binutils/include/ containing
1602 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001603 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1605 --with-pic try to use only PIC/non-PIC objects [default=use
1606 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001607 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001608 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001609 --with-oprofile=<prefix>
1610 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001611
1612Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001613 CC C compiler command
1614 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001615 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1616 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001617 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001619 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001620 CXX C++ compiler command
1621 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001622 CXXCPP C++ preprocessor
1623 F77 Fortran 77 compiler command
1624 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001625
1626Use these variables to override the choices made by `configure' or to help
1627it to find libraries and programs with nonstandard names/locations.
1628
1629Report bugs to <llvmbugs@cs.uiuc.edu>.
1630_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001631ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001632fi
1633
1634if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001637 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001638 ac_builddir=.
1639
Reid Spencera773bd52006-08-04 18:18:08 +00001640case "$ac_dir" in
1641.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642*)
John Criswell7a73b802003-06-30 21:59:07 +00001643 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1649 esac ;;
1650esac
1651ac_abs_top_builddir=$ac_pwd
1652ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653# for backward compatibility:
1654ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001655
1656case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001657 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001658 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001659 ac_top_srcdir=$ac_top_builddir_sub
1660 ac_abs_top_srcdir=$ac_pwd ;;
1661 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001662 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001663 ac_top_srcdir=$srcdir
1664 ac_abs_top_srcdir=$srcdir ;;
1665 *) # Relative name.
1666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001669esac
Reid Spencera773bd52006-08-04 18:18:08 +00001670ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001671
Reid Spencera773bd52006-08-04 18:18:08 +00001672 cd "$ac_dir" || { ac_status=$?; continue; }
1673 # Check for guested configure.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1675 echo &&
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001680 else
1681 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001682 fi || ac_status=$?
1683 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001684 done
1685fi
1686
Reid Spencera773bd52006-08-04 18:18:08 +00001687test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001688if $ac_init_version; then
1689 cat <<\_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001690llvm configure 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001691generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001692
Reid Spencera773bd52006-08-04 18:18:08 +00001693Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16942002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001695This configure script is free software; the Free Software Foundation
1696gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001697
Tanya Lattnerc2264592009-08-22 21:01:26 +00001698Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001699_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001700 exit
John Criswell7a73b802003-06-30 21:59:07 +00001701fi
Reid Spencera773bd52006-08-04 18:18:08 +00001702cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001703This file contains any messages produced by compilers while
1704running configure, to aid debugging if configure makes a mistake.
1705
Tanya Lattner953042b2009-08-22 04:37:30 +00001706It was created by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001707generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001708
1709 $ $0 $@
1710
1711_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001712exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001713{
1714cat <<_ASUNAME
1715## --------- ##
1716## Platform. ##
1717## --------- ##
1718
1719hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723uname -v = `(uname -v) 2>/dev/null || echo unknown`
1724
1725/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1727
1728/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1729/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1730/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001731/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001732/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1733/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1734/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1735
1736_ASUNAME
1737
1738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739for as_dir in $PATH
1740do
1741 IFS=$as_save_IFS
1742 test -z "$as_dir" && as_dir=.
1743 echo "PATH: $as_dir"
1744done
Reid Spencera773bd52006-08-04 18:18:08 +00001745IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001746
1747} >&5
1748
1749cat >&5 <<_ACEOF
1750
1751
1752## ----------- ##
1753## Core tests. ##
1754## ----------- ##
1755
1756_ACEOF
1757
1758
1759# Keep a trace of the command line.
1760# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001761# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001762# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001763# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001764ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001765ac_configure_args0=
1766ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001767ac_must_keep_next=false
1768for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001769do
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 for ac_arg
1771 do
1772 case $ac_arg in
1773 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775 | -silent | --silent | --silen | --sile | --sil)
1776 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001777 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1779 esac
1780 case $ac_pass in
1781 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1782 2)
1783 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1784 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001785 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001786 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001787 case $ac_arg in
1788 *=* | --config-cache | -C | -disable-* | --disable-* \
1789 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791 | -with-* | --with-* | -without-* | --without-* | --x)
1792 case "$ac_configure_args0 " in
1793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1794 esac
1795 ;;
1796 -* ) ac_must_keep_next=true ;;
1797 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001798 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001799 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001800 ;;
1801 esac
1802 done
John Criswell7a73b802003-06-30 21:59:07 +00001803done
John Criswell0c38eaf2003-09-10 15:17:25 +00001804$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1805$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 +00001806
1807# When interrupted or exit'd, cleanup temporary files, and complete
1808# config.log. We remove comments because anyway the quotes in there
1809# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001810# WARNING: Use '\'' to represent an apostrophe within the trap.
1811# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001812trap 'exit_status=$?
1813 # Save into config.log some information that might help in debugging.
1814 {
1815 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001816
John Criswell7a73b802003-06-30 21:59:07 +00001817 cat <<\_ASBOX
1818## ---------------- ##
1819## Cache variables. ##
1820## ---------------- ##
1821_ASBOX
1822 echo
1823 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001824(
1825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826 eval ac_val=\$$ac_var
1827 case $ac_val in #(
1828 *${as_nl}*)
1829 case $ac_var in #(
1830 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1831echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1832 esac
1833 case $ac_var in #(
1834 _ | IFS | as_nl) ;; #(
1835 *) $as_unset $ac_var ;;
1836 esac ;;
1837 esac
1838 done
John Criswell7a73b802003-06-30 21:59:07 +00001839 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001840 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1841 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001842 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001843 "s/'\''/'\''\\\\'\'''\''/g;
1844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1845 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001846 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001848 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001849 esac |
1850 sort
1851)
John Criswell7a73b802003-06-30 21:59:07 +00001852 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001853
1854 cat <<\_ASBOX
1855## ----------------- ##
1856## Output variables. ##
1857## ----------------- ##
1858_ASBOX
1859 echo
1860 for ac_var in $ac_subst_vars
1861 do
Reid Spencera773bd52006-08-04 18:18:08 +00001862 eval ac_val=\$$ac_var
1863 case $ac_val in
1864 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865 esac
1866 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001867 done | sort
1868 echo
1869
1870 if test -n "$ac_subst_files"; then
1871 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001872## ------------------- ##
1873## File substitutions. ##
1874## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001875_ASBOX
1876 echo
1877 for ac_var in $ac_subst_files
1878 do
Reid Spencera773bd52006-08-04 18:18:08 +00001879 eval ac_val=\$$ac_var
1880 case $ac_val in
1881 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1882 esac
1883 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001884 done | sort
1885 echo
1886 fi
1887
John Criswell7a73b802003-06-30 21:59:07 +00001888 if test -s confdefs.h; then
1889 cat <<\_ASBOX
1890## ----------- ##
1891## confdefs.h. ##
1892## ----------- ##
1893_ASBOX
1894 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001895 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001896 echo
1897 fi
1898 test "$ac_signal" != 0 &&
1899 echo "$as_me: caught signal $ac_signal"
1900 echo "$as_me: exit $exit_status"
1901 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001902 rm -f core *.core core.conftest.* &&
1903 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001904 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001905' 0
John Criswell7a73b802003-06-30 21:59:07 +00001906for ac_signal in 1 2 13 15; do
1907 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1908done
1909ac_signal=0
1910
1911# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001912rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001913
1914# Predefined preprocessor variables.
1915
1916cat >>confdefs.h <<_ACEOF
1917#define PACKAGE_NAME "$PACKAGE_NAME"
1918_ACEOF
1919
1920
1921cat >>confdefs.h <<_ACEOF
1922#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1923_ACEOF
1924
1925
1926cat >>confdefs.h <<_ACEOF
1927#define PACKAGE_VERSION "$PACKAGE_VERSION"
1928_ACEOF
1929
1930
1931cat >>confdefs.h <<_ACEOF
1932#define PACKAGE_STRING "$PACKAGE_STRING"
1933_ACEOF
1934
1935
1936cat >>confdefs.h <<_ACEOF
1937#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1938_ACEOF
1939
1940
1941# Let the site file select an alternate cache file if it wants to.
1942# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001943if test -n "$CONFIG_SITE"; then
1944 set x "$CONFIG_SITE"
1945elif test "x$prefix" != xNONE; then
1946 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1947else
1948 set x "$ac_default_prefix/share/config.site" \
1949 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001950fi
Reid Spencera773bd52006-08-04 18:18:08 +00001951shift
1952for ac_site_file
1953do
John Criswell7a73b802003-06-30 21:59:07 +00001954 if test -r "$ac_site_file"; then
1955 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1956echo "$as_me: loading site script $ac_site_file" >&6;}
1957 sed 's/^/| /' "$ac_site_file" >&5
1958 . "$ac_site_file"
1959 fi
1960done
1961
1962if test -r "$cache_file"; then
1963 # Some versions of bash will fail to source /dev/null (special
1964 # files actually), so we avoid doing that.
1965 if test -f "$cache_file"; then
1966 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1967echo "$as_me: loading cache $cache_file" >&6;}
1968 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001969 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1970 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001971 esac
1972 fi
1973else
1974 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1975echo "$as_me: creating cache $cache_file" >&6;}
1976 >$cache_file
1977fi
1978
1979# Check that the precious variables saved in the cache have kept the same
1980# value.
1981ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001982for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001983 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1984 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001985 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1986 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001987 case $ac_old_set,$ac_new_set in
1988 set,)
1989 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1990echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1991 ac_cache_corrupted=: ;;
1992 ,set)
1993 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1994echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1995 ac_cache_corrupted=: ;;
1996 ,);;
1997 *)
1998 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001999 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002000echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002001 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002002echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002003 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002004echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002005 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00002006 fi;;
2007 esac
2008 # Pass precious variables to config.status.
2009 if test "$ac_new_set" = set; then
2010 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00002011 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002012 *) ac_arg=$ac_var=$ac_new_val ;;
2013 esac
2014 case " $ac_configure_args " in
2015 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2016 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2017 esac
2018 fi
2019done
2020if $ac_cache_corrupted; then
2021 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2022echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2024echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2025 { (exit 1); exit 1; }; }
2026fi
2027
Reid Spencera773bd52006-08-04 18:18:08 +00002028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
John Criswell7a73b802003-06-30 21:59:07 +00002052ac_ext=c
2053ac_cpp='$CPP $CPPFLAGS'
2054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057
2058
2059
Tanya Lattnerc2264592009-08-22 21:01:26 +00002060LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002061
2062
2063
2064
2065
2066
2067
John Criswell7a73b802003-06-30 21:59:07 +00002068ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002069for ac_dir in autoconf "$srcdir"/autoconf; do
2070 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002071 ac_aux_dir=$ac_dir
2072 ac_install_sh="$ac_aux_dir/install-sh -c"
2073 break
Reid Spencera773bd52006-08-04 18:18:08 +00002074 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002075 ac_aux_dir=$ac_dir
2076 ac_install_sh="$ac_aux_dir/install.sh -c"
2077 break
Reid Spencera773bd52006-08-04 18:18:08 +00002078 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002079 ac_aux_dir=$ac_dir
2080 ac_install_sh="$ac_aux_dir/shtool install -c"
2081 break
2082 fi
2083done
2084if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002085 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2086echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002087 { (exit 1); exit 1; }; }
2088fi
Reid Spencera773bd52006-08-04 18:18:08 +00002089
2090# These three variables are undocumented and unsupported,
2091# and are intended to be withdrawn in a future Autoconf release.
2092# They can cause serious problems if a builder's source tree is in a directory
2093# whose full name contains unusual characters.
2094ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2095ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2096ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2097
John Criswell7a73b802003-06-30 21:59:07 +00002098
John Criswell392aaa32003-07-22 19:18:09 +00002099
Reid Spencer2706f8c2004-09-19 23:53:36 +00002100if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002101 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2102 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002103echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2104 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002105 fi
John Criswell93e1c722003-09-15 17:04:06 +00002106fi
2107
John Criswell33a911a2003-11-25 20:36:46 +00002108for i in `ls ${srcdir}/projects`
2109do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002110 if test -d ${srcdir}/projects/${i} ; then
2111 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002112 CVS) ;;
2113 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002114 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002115 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002116 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002117 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002118 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002119 # llvm-test is the old name of the test-suite, kept here for backwards
2120 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002121 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002122 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002123 test-suite) subdirs="$subdirs projects/test-suite"
2124 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002125 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002126;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002127 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002128 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002129 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002130 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002131 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002132 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002133 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002134 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002135 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002136 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002137 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002138 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002139 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002140 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2141echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002142 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002143 esac
John Criswell33a911a2003-11-25 20:36:46 +00002144 fi
2145done
John Criswell559a6c12003-09-30 16:31:48 +00002146
John Criswell7a73b802003-06-30 21:59:07 +00002147
2148# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002149$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2150 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2151echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002152 { (exit 1); exit 1; }; }
2153
Reid Spencera773bd52006-08-04 18:18:08 +00002154{ echo "$as_me:$LINENO: checking build system type" >&5
2155echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002156if test "${ac_cv_build+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
Reid Spencera773bd52006-08-04 18:18:08 +00002159 ac_build_alias=$build_alias
2160test "x$ac_build_alias" = x &&
2161 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2162test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002163 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2164echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2165 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002166ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2167 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2168echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002169 { (exit 1); exit 1; }; }
2170
2171fi
Reid Spencera773bd52006-08-04 18:18:08 +00002172{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2173echo "${ECHO_T}$ac_cv_build" >&6; }
2174case $ac_cv_build in
2175*-*-*) ;;
2176*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2177echo "$as_me: error: invalid value of canonical build" >&2;}
2178 { (exit 1); exit 1; }; };;
2179esac
John Criswell7a73b802003-06-30 21:59:07 +00002180build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002181ac_save_IFS=$IFS; IFS='-'
2182set x $ac_cv_build
2183shift
2184build_cpu=$1
2185build_vendor=$2
2186shift; shift
2187# Remember, the first character of IFS is used to create $*,
2188# except with old shells:
2189build_os=$*
2190IFS=$ac_save_IFS
2191case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002192
2193
Reid Spencera773bd52006-08-04 18:18:08 +00002194{ echo "$as_me:$LINENO: checking host system type" >&5
2195echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002196if test "${ac_cv_host+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198else
Reid Spencera773bd52006-08-04 18:18:08 +00002199 if test "x$host_alias" = x; then
2200 ac_cv_host=$ac_cv_build
2201else
2202 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2203 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2204echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002205 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002206fi
John Criswell7a73b802003-06-30 21:59:07 +00002207
2208fi
Reid Spencera773bd52006-08-04 18:18:08 +00002209{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2210echo "${ECHO_T}$ac_cv_host" >&6; }
2211case $ac_cv_host in
2212*-*-*) ;;
2213*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2214echo "$as_me: error: invalid value of canonical host" >&2;}
2215 { (exit 1); exit 1; }; };;
2216esac
John Criswell7a73b802003-06-30 21:59:07 +00002217host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002218ac_save_IFS=$IFS; IFS='-'
2219set x $ac_cv_host
2220shift
2221host_cpu=$1
2222host_vendor=$2
2223shift; shift
2224# Remember, the first character of IFS is used to create $*,
2225# except with old shells:
2226host_os=$*
2227IFS=$ac_save_IFS
2228case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002229
2230
Reid Spencera773bd52006-08-04 18:18:08 +00002231{ echo "$as_me:$LINENO: checking target system type" >&5
2232echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002233if test "${ac_cv_target+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2235else
Reid Spencera773bd52006-08-04 18:18:08 +00002236 if test "x$target_alias" = x; then
2237 ac_cv_target=$ac_cv_host
2238else
2239 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2240 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2241echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002242 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002243fi
John Criswell7a73b802003-06-30 21:59:07 +00002244
2245fi
Reid Spencera773bd52006-08-04 18:18:08 +00002246{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2247echo "${ECHO_T}$ac_cv_target" >&6; }
2248case $ac_cv_target in
2249*-*-*) ;;
2250*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2251echo "$as_me: error: invalid value of canonical target" >&2;}
2252 { (exit 1); exit 1; }; };;
2253esac
John Criswell7a73b802003-06-30 21:59:07 +00002254target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002255ac_save_IFS=$IFS; IFS='-'
2256set x $ac_cv_target
2257shift
2258target_cpu=$1
2259target_vendor=$2
2260shift; shift
2261# Remember, the first character of IFS is used to create $*,
2262# except with old shells:
2263target_os=$*
2264IFS=$ac_save_IFS
2265case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002266
2267
2268# The aliases save the names the user supplied, while $host etc.
2269# will get canonicalized.
2270test -n "$target_alias" &&
2271 test "$program_prefix$program_suffix$program_transform_name" = \
2272 NONENONEs,x,x, &&
2273 program_prefix=${target_alias}-
2274
Reid Spencera773bd52006-08-04 18:18:08 +00002275{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2276echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002277if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002280 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002281 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002284 llvm_cv_os_type="AIX"
2285 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002286 *-*-irix*)
2287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289 llvm_cv_os_type="IRIX"
2290 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002291 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002294 llvm_cv_os_type="Cygwin"
2295 llvm_cv_platform_type="Unix" ;;
2296 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002297 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002298 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002299 llvm_cv_os_type="Darwin"
2300 llvm_cv_platform_type="Unix" ;;
2301 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002304 llvm_cv_os_type="FreeBSD"
2305 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002306 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002307 llvm_cv_link_all_option="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002309 llvm_cv_os_type="OpenBSD"
2310 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002311 *-*-netbsd*)
2312 llvm_cv_link_all_option="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314 llvm_cv_os_type="NetBSD"
2315 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002316 *-*-dragonfly*)
2317 llvm_cv_link_all_option="-Wl,--whole-archive"
2318 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2319 llvm_cv_os_type="DragonFly"
2320 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002321 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002322 llvm_cv_link_all_option="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002324 llvm_cv_os_type="HP-UX"
2325 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002326 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002327 llvm_cv_link_all_option="-Wl,--whole-archive"
2328 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002329 llvm_cv_os_type="Interix"
2330 llvm_cv_platform_type="Unix" ;;
2331 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002332 llvm_cv_link_all_option="-Wl,--whole-archive"
2333 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002334 llvm_cv_os_type="Linux"
2335 llvm_cv_platform_type="Unix" ;;
2336 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002337 llvm_cv_link_all_option="-Wl,-z,allextract"
2338 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002339 llvm_cv_os_type="SunOS"
2340 llvm_cv_platform_type="Unix" ;;
2341 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002342 llvm_cv_link_all_option="-Wl,--whole-archive"
2343 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002344 llvm_cv_os_type="Win32"
2345 llvm_cv_platform_type="Win32" ;;
2346 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002347 llvm_cv_link_all_option="-Wl,--whole-archive"
2348 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002349 llvm_cv_os_type="MingW"
2350 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002351 *-*-haiku*)
2352 llvm_cv_link_all_option="-Wl,--whole-archive"
2353 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2354 llvm_cv_os_type="Haiku"
2355 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002356 *-unknown-eabi*)
2357 llvm_cv_link_all_option="-Wl,--whole-archive"
2358 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2359 llvm_cv_os_type="Freestanding"
2360 llvm_cv_platform_type="Unix" ;;
2361 *-unknown-elf*)
2362 llvm_cv_link_all_option="-Wl,--whole-archive"
2363 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2364 llvm_cv_os_type="Freestanding"
2365 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002366 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002367 llvm_cv_link_all_option=""
2368 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002369 llvm_cv_os_type="Unknown"
2370 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002371esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002372fi
Reid Spencera773bd52006-08-04 18:18:08 +00002373{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2374echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002375
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002376{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2377echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2378if test "${llvm_cv_target_os_type+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2380else
2381 case $target in
2382 *-*-aix*)
2383 llvm_cv_target_os_type="AIX" ;;
2384 *-*-irix*)
2385 llvm_cv_target_os_type="IRIX" ;;
2386 *-*-cygwin*)
2387 llvm_cv_target_os_type="Cygwin" ;;
2388 *-*-darwin*)
2389 llvm_cv_target_os_type="Darwin" ;;
2390 *-*-freebsd*)
2391 llvm_cv_target_os_type="FreeBSD" ;;
2392 *-*-openbsd*)
2393 llvm_cv_target_os_type="OpenBSD" ;;
2394 *-*-netbsd*)
2395 llvm_cv_target_os_type="NetBSD" ;;
2396 *-*-dragonfly*)
2397 llvm_cv_target_os_type="DragonFly" ;;
2398 *-*-hpux*)
2399 llvm_cv_target_os_type="HP-UX" ;;
2400 *-*-interix*)
2401 llvm_cv_target_os_type="Interix" ;;
2402 *-*-linux*)
2403 llvm_cv_target_os_type="Linux" ;;
2404 *-*-solaris*)
2405 llvm_cv_target_os_type="SunOS" ;;
2406 *-*-win32*)
2407 llvm_cv_target_os_type="Win32" ;;
2408 *-*-mingw*)
2409 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002410 *-*-haiku*)
2411 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002412 *-unknown-eabi*)
2413 llvm_cv_target_os_type="Freestanding" ;;
2414 *)
2415 llvm_cv_target_os_type="Unknown" ;;
2416esac
2417fi
2418{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2419echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2420
Reid Spencer7b3e8512004-12-24 06:29:05 +00002421if test "$llvm_cv_os_type" = "Unknown" ; then
2422 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2423echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002424 { (exit 1); exit 1; }; }
2425fi
2426
Reid Spencer7b3e8512004-12-24 06:29:05 +00002427OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002428
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002429HOST_OS=$llvm_cv_os_type
2430
2431TARGET_OS=$llvm_cv_target_os_type
2432
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002433
Reid Spencera773bd52006-08-04 18:18:08 +00002434LINKALL=$llvm_cv_link_all_option
2435
2436NOLINKALL=$llvm_cv_no_link_all_option
2437
2438
Reid Spencer7b3e8512004-12-24 06:29:05 +00002439case $llvm_cv_platform_type in
2440 Unix)
2441
2442cat >>confdefs.h <<\_ACEOF
2443#define LLVM_ON_UNIX 1
2444_ACEOF
2445
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002446 LLVM_ON_UNIX=1
2447
2448 LLVM_ON_WIN32=0
2449
Reid Spencer7b3e8512004-12-24 06:29:05 +00002450 ;;
2451 Win32)
2452
2453cat >>confdefs.h <<\_ACEOF
2454#define LLVM_ON_WIN32 1
2455_ACEOF
2456
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002457 LLVM_ON_UNIX=0
2458
2459 LLVM_ON_WIN32=1
2460
Reid Spencer7b3e8512004-12-24 06:29:05 +00002461 ;;
2462esac
2463
Reid Spencera773bd52006-08-04 18:18:08 +00002464{ echo "$as_me:$LINENO: checking target architecture" >&5
2465echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466if test "${llvm_cv_target_arch+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468else
2469 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002470 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002471 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002472 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2473 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002474 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002475 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002476 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002477 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002478 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002479 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002480 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002481 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002482 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002483esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002484fi
Reid Spencera773bd52006-08-04 18:18:08 +00002485{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2486echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002487
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002488if test "$llvm_cv_target_arch" = "Unknown" ; then
2489 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2490echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2491fi
John Criswell76595452003-07-01 22:07:39 +00002492
Nick Lewycky83fc4472009-09-29 05:48:51 +00002493# Determine the LLVM native architecture for the target
2494case "$llvm_cv_target_arch" in
2495 x86) LLVM_NATIVE_ARCH="X86" ;;
2496 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2497 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2498esac
2499
2500ARCH=$llvm_cv_target_arch
2501
2502
2503ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002504ac_cpp='$CPP $CPPFLAGS'
2505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2507ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002508if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002509 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2510set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002511{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002513if test "${ac_cv_prog_CC+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2515else
2516 if test -n "$CC"; then
2517 ac_cv_prog_CC="$CC" # Let the user override the test.
2518else
2519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520for as_dir in $PATH
2521do
2522 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
2524 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002525 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 +00002526 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2528 break 2
2529 fi
2530done
2531done
Reid Spencera773bd52006-08-04 18:18:08 +00002532IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002533
2534fi
2535fi
2536CC=$ac_cv_prog_CC
2537if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002538 { echo "$as_me:$LINENO: result: $CC" >&5
2539echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002540else
Reid Spencera773bd52006-08-04 18:18:08 +00002541 { echo "$as_me:$LINENO: result: no" >&5
2542echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002543fi
2544
Reid Spencera773bd52006-08-04 18:18:08 +00002545
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002546fi
2547if test -z "$ac_cv_prog_CC"; then
2548 ac_ct_CC=$CC
2549 # Extract the first word of "gcc", so it can be a program name with args.
2550set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002551{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002553if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2555else
2556 if test -n "$ac_ct_CC"; then
2557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2558else
2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560for as_dir in $PATH
2561do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002565 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 +00002566 ac_cv_prog_ac_ct_CC="gcc"
2567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 break 2
2569 fi
2570done
2571done
Reid Spencera773bd52006-08-04 18:18:08 +00002572IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002573
2574fi
2575fi
2576ac_ct_CC=$ac_cv_prog_ac_ct_CC
2577if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002578 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2579echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002580else
Reid Spencera773bd52006-08-04 18:18:08 +00002581 { echo "$as_me:$LINENO: result: no" >&5
2582echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002583fi
2584
Reid Spencera773bd52006-08-04 18:18:08 +00002585 if test "x$ac_ct_CC" = x; then
2586 CC=""
2587 else
2588 case $cross_compiling:$ac_tool_warned in
2589yes:)
2590{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2591whose name does not start with the host triplet. If you think this
2592configuration is useful to you, please write to autoconf@gnu.org." >&5
2593echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2594whose name does not start with the host triplet. If you think this
2595configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2596ac_tool_warned=yes ;;
2597esac
2598 CC=$ac_ct_CC
2599 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002600else
2601 CC="$ac_cv_prog_CC"
2602fi
2603
2604if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002605 if test -n "$ac_tool_prefix"; then
2606 # 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 +00002607set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002608{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002610if test "${ac_cv_prog_CC+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612else
2613 if test -n "$CC"; then
2614 ac_cv_prog_CC="$CC" # Let the user override the test.
2615else
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002622 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 +00002623 ac_cv_prog_CC="${ac_tool_prefix}cc"
2624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2626 fi
2627done
2628done
Reid Spencera773bd52006-08-04 18:18:08 +00002629IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630
2631fi
2632fi
2633CC=$ac_cv_prog_CC
2634if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002635 { echo "$as_me:$LINENO: result: $CC" >&5
2636echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637else
Reid Spencera773bd52006-08-04 18:18:08 +00002638 { echo "$as_me:$LINENO: result: no" >&5
2639echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002640fi
2641
Reid Spencera773bd52006-08-04 18:18:08 +00002642
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002643 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002644fi
2645if test -z "$CC"; then
2646 # Extract the first word of "cc", so it can be a program name with args.
2647set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002650if test "${ac_cv_prog_CC+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652else
2653 if test -n "$CC"; then
2654 ac_cv_prog_CC="$CC" # Let the user override the test.
2655else
2656 ac_prog_rejected=no
2657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658for as_dir in $PATH
2659do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002663 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 +00002664 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2665 ac_prog_rejected=yes
2666 continue
2667 fi
2668 ac_cv_prog_CC="cc"
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672done
2673done
Reid Spencera773bd52006-08-04 18:18:08 +00002674IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002675
2676if test $ac_prog_rejected = yes; then
2677 # We found a bogon in the path, so make sure we never use it.
2678 set dummy $ac_cv_prog_CC
2679 shift
2680 if test $# != 0; then
2681 # We chose a different compiler from the bogus one.
2682 # However, it has the same basename, so the bogon will be chosen
2683 # first if we set CC to just the basename; use the full file name.
2684 shift
2685 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2686 fi
2687fi
2688fi
2689fi
2690CC=$ac_cv_prog_CC
2691if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002692 { echo "$as_me:$LINENO: result: $CC" >&5
2693echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002694else
Reid Spencera773bd52006-08-04 18:18:08 +00002695 { echo "$as_me:$LINENO: result: no" >&5
2696echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002697fi
2698
Reid Spencera773bd52006-08-04 18:18:08 +00002699
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002700fi
2701if test -z "$CC"; then
2702 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002703 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002704 do
2705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2706set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002709if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002710 echo $ECHO_N "(cached) $ECHO_C" >&6
2711else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002712 if test -n "$CC"; then
2713 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002714else
2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002721 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 +00002722 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2725 fi
2726done
2727done
Reid Spencera773bd52006-08-04 18:18:08 +00002728IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002729
2730fi
2731fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002732CC=$ac_cv_prog_CC
2733if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002734 { echo "$as_me:$LINENO: result: $CC" >&5
2735echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002736else
Reid Spencera773bd52006-08-04 18:18:08 +00002737 { echo "$as_me:$LINENO: result: no" >&5
2738echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002739fi
2740
Reid Spencera773bd52006-08-04 18:18:08 +00002741
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002742 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002743 done
2744fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002745if test -z "$CC"; then
2746 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002747 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002748do
2749 # Extract the first word of "$ac_prog", so it can be a program name with args.
2750set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002751{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002753if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002756 if test -n "$ac_ct_CC"; then
2757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002758else
2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002765 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 +00002766 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2769 fi
2770done
2771done
Reid Spencera773bd52006-08-04 18:18:08 +00002772IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002773
2774fi
2775fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002776ac_ct_CC=$ac_cv_prog_ac_ct_CC
2777if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002778 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2779echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002780else
Reid Spencera773bd52006-08-04 18:18:08 +00002781 { echo "$as_me:$LINENO: result: no" >&5
2782echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002783fi
2784
Reid Spencera773bd52006-08-04 18:18:08 +00002785
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002786 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002787done
John Criswell7a73b802003-06-30 21:59:07 +00002788
Reid Spencera773bd52006-08-04 18:18:08 +00002789 if test "x$ac_ct_CC" = x; then
2790 CC=""
2791 else
2792 case $cross_compiling:$ac_tool_warned in
2793yes:)
2794{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2795whose name does not start with the host triplet. If you think this
2796configuration is useful to you, please write to autoconf@gnu.org." >&5
2797echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2798whose name does not start with the host triplet. If you think this
2799configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2800ac_tool_warned=yes ;;
2801esac
2802 CC=$ac_ct_CC
2803 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002804fi
2805
John Criswell7a73b802003-06-30 21:59:07 +00002806fi
2807
2808
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002809test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2810See \`config.log' for more details." >&5
2811echo "$as_me: error: no acceptable C compiler found in \$PATH
2812See \`config.log' for more details." >&2;}
2813 { (exit 1); exit 1; }; }
2814
John Criswell7a73b802003-06-30 21:59:07 +00002815# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002816echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002817ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002818{ (ac_try="$ac_compiler --version >&5"
2819case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822esac
2823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002828{ (ac_try="$ac_compiler -v >&5"
2829case "(($ac_try" in
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2832esac
2833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002838{ (ac_try="$ac_compiler -V >&5"
2839case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2842esac
2843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }
2848
2849cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002850/* confdefs.h. */
2851_ACEOF
2852cat confdefs.h >>conftest.$ac_ext
2853cat >>conftest.$ac_ext <<_ACEOF
2854/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002855
John Criswell7a73b802003-06-30 21:59:07 +00002856int
2857main ()
2858{
2859
2860 ;
2861 return 0;
2862}
2863_ACEOF
2864ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002865ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002866# Try to create an executable without -o first, disregard a.out.
2867# It will help us diagnose broken compilers, and finding out an intuition
2868# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002869{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2870echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002871ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002872#
2873# List of possible output files, starting from the most likely.
2874# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2875# only as a last resort. b.out is created by i960 compilers.
2876ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2877#
2878# The IRIX 6 linker writes into existing files which may not be
2879# executable, retaining their permissions. Remove them first so a
2880# subsequent execution test works.
2881ac_rmfiles=
2882for ac_file in $ac_files
2883do
2884 case $ac_file in
2885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2886 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2887 esac
2888done
2889rm -f $ac_rmfiles
2890
2891if { (ac_try="$ac_link_default"
2892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
2896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002901 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2902# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2903# in a Makefile. We should not override ac_cv_exeext if it was cached,
2904# so that the user can short-circuit this test for compilers unknown to
2905# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002906for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002907do
2908 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002909 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002911 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002912 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002913 # We found the default executable, but exeext='' is most
2914 # certainly right.
2915 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002916 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002917 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2918 then :; else
2919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2920 fi
2921 # We set ac_cv_exeext here because the later test for it is not
2922 # safe: cross compilers may not add the suffix if given an `-o'
2923 # argument, so we may need to know it at that point already.
2924 # Even if this section looks crufty: it has the advantage of
2925 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002926 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002927 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002928 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002929 esac
2930done
Reid Spencera773bd52006-08-04 18:18:08 +00002931test "$ac_cv_exeext" = no && ac_cv_exeext=
2932
John Criswell7a73b802003-06-30 21:59:07 +00002933else
2934 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002935sed 's/^/| /' conftest.$ac_ext >&5
2936
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002937{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002938See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002939echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002940See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002941 { (exit 77); exit 77; }; }
2942fi
2943
2944ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002945{ echo "$as_me:$LINENO: result: $ac_file" >&5
2946echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002947
Reid Spencera773bd52006-08-04 18:18:08 +00002948# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002949# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002950{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2951echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002952# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2953# If not cross compiling, check that we can run a simple program.
2954if test "$cross_compiling" != yes; then
2955 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002956 { (case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2959esac
2960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; }; then
2965 cross_compiling=no
2966 else
2967 if test "$cross_compiling" = maybe; then
2968 cross_compiling=yes
2969 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002970 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002971If you meant to cross compile, use \`--host'.
2972See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002973echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002974If you meant to cross compile, use \`--host'.
2975See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002976 { (exit 1); exit 1; }; }
2977 fi
2978 fi
2979fi
Reid Spencera773bd52006-08-04 18:18:08 +00002980{ echo "$as_me:$LINENO: result: yes" >&5
2981echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002982
John Criswell0c38eaf2003-09-10 15:17:25 +00002983rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002984ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002985# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002986# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002987{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2988echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2989{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2990echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002991
Reid Spencera773bd52006-08-04 18:18:08 +00002992{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2993echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2994if { (ac_try="$ac_link"
2995case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998esac
2999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003001 ac_status=$?
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; then
3004 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3005# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3006# work properly (i.e., refer to `conftest.exe'), while it won't with
3007# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00003008for ac_file in conftest.exe conftest conftest.*; do
3009 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00003010 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003012 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00003013 break;;
John Criswell7a73b802003-06-30 21:59:07 +00003014 * ) break;;
3015 esac
3016done
3017else
John Criswell0c38eaf2003-09-10 15:17:25 +00003018 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3019See \`config.log' for more details." >&5
3020echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3021See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003022 { (exit 1); exit 1; }; }
3023fi
3024
3025rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003026{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3027echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003028
3029rm -f conftest.$ac_ext
3030EXEEXT=$ac_cv_exeext
3031ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003032{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3033echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003034if test "${ac_cv_objext+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3036else
3037 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003038/* confdefs.h. */
3039_ACEOF
3040cat confdefs.h >>conftest.$ac_ext
3041cat >>conftest.$ac_ext <<_ACEOF
3042/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003043
John Criswell7a73b802003-06-30 21:59:07 +00003044int
3045main ()
3046{
3047
3048 ;
3049 return 0;
3050}
3051_ACEOF
3052rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00003053if { (ac_try="$ac_compile"
3054case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057esac
3058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003060 ac_status=$?
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003063 for ac_file in conftest.o conftest.obj conftest.*; do
3064 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00003065 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003067 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3068 break;;
3069 esac
3070done
3071else
3072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003073sed 's/^/| /' conftest.$ac_ext >&5
3074
3075{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3076See \`config.log' for more details." >&5
3077echo "$as_me: error: cannot compute suffix of object files: cannot compile
3078See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003079 { (exit 1); exit 1; }; }
3080fi
3081
3082rm -f conftest.$ac_cv_objext conftest.$ac_ext
3083fi
Reid Spencera773bd52006-08-04 18:18:08 +00003084{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3085echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003086OBJEXT=$ac_cv_objext
3087ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003088{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3089echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003090if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003091 echo $ECHO_N "(cached) $ECHO_C" >&6
3092else
3093 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003094/* confdefs.h. */
3095_ACEOF
3096cat confdefs.h >>conftest.$ac_ext
3097cat >>conftest.$ac_ext <<_ACEOF
3098/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003099
John Criswell7a73b802003-06-30 21:59:07 +00003100int
3101main ()
3102{
3103#ifndef __GNUC__
3104 choke me
3105#endif
3106
3107 ;
3108 return 0;
3109}
3110_ACEOF
3111rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003112if { (ac_try="$ac_compile"
3113case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116esac
3117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003119 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003120 grep -v '^ *+' conftest.er1 >conftest.err
3121 rm -f conftest.er1
3122 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003124 (exit $ac_status); } &&
3125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3126 { (case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_try") 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139esac
3140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003145 ac_compiler_gnu=yes
3146else
3147 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003148sed 's/^/| /' conftest.$ac_ext >&5
3149
Reid Spencera773bd52006-08-04 18:18:08 +00003150 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003151fi
Reid Spencera773bd52006-08-04 18:18:08 +00003152
3153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003154ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003155
3156fi
Reid Spencera773bd52006-08-04 18:18:08 +00003157{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3158echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003159GCC=`test $ac_compiler_gnu = yes && echo yes`
3160ac_test_CFLAGS=${CFLAGS+set}
3161ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003162{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3163echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003164if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166else
Reid Spencera773bd52006-08-04 18:18:08 +00003167 ac_save_c_werror_flag=$ac_c_werror_flag
3168 ac_c_werror_flag=yes
3169 ac_cv_prog_cc_g=no
3170 CFLAGS="-g"
3171 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003172/* confdefs.h. */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
3176/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003177
John Criswell7a73b802003-06-30 21:59:07 +00003178int
3179main ()
3180{
3181
3182 ;
3183 return 0;
3184}
3185_ACEOF
3186rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003187if { (ac_try="$ac_compile"
3188case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191esac
3192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003194 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003199 (exit $ac_status); } &&
3200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3201 { (case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204esac
3205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_try") 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; } &&
3210 { ac_try='test -s conftest.$ac_objext'
3211 { (case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214esac
3215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216 (eval "$ac_try") 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003220 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003221else
3222 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003223sed 's/^/| /' conftest.$ac_ext >&5
3224
Reid Spencera773bd52006-08-04 18:18:08 +00003225 CFLAGS=""
3226 cat >conftest.$ac_ext <<_ACEOF
3227/* confdefs.h. */
3228_ACEOF
3229cat confdefs.h >>conftest.$ac_ext
3230cat >>conftest.$ac_ext <<_ACEOF
3231/* end confdefs.h. */
3232
3233int
3234main ()
3235{
3236
3237 ;
3238 return 0;
3239}
3240_ACEOF
3241rm -f conftest.$ac_objext
3242if { (ac_try="$ac_compile"
3243case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246esac
3247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_compile") 2>conftest.er1
3249 ac_status=$?
3250 grep -v '^ *+' conftest.er1 >conftest.err
3251 rm -f conftest.er1
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003254 (exit $ac_status); } &&
3255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3256 { (case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259esac
3260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261 (eval "$ac_try") 2>&5
3262 ac_status=$?
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; } &&
3265 { ac_try='test -s conftest.$ac_objext'
3266 { (case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269esac
3270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271 (eval "$ac_try") 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003275 :
3276else
3277 echo "$as_me: failed program was:" >&5
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
3280 ac_c_werror_flag=$ac_save_c_werror_flag
3281 CFLAGS="-g"
3282 cat >conftest.$ac_ext <<_ACEOF
3283/* confdefs.h. */
3284_ACEOF
3285cat confdefs.h >>conftest.$ac_ext
3286cat >>conftest.$ac_ext <<_ACEOF
3287/* end confdefs.h. */
3288
3289int
3290main ()
3291{
3292
3293 ;
3294 return 0;
3295}
3296_ACEOF
3297rm -f conftest.$ac_objext
3298if { (ac_try="$ac_compile"
3299case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302esac
3303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304 (eval "$ac_compile") 2>conftest.er1
3305 ac_status=$?
3306 grep -v '^ *+' conftest.er1 >conftest.err
3307 rm -f conftest.er1
3308 cat conftest.err >&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003310 (exit $ac_status); } &&
3311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3312 { (case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315esac
3316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_try") 2>&5
3318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; } &&
3321 { ac_try='test -s conftest.$ac_objext'
3322 { (case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325esac
3326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_try") 2>&5
3328 ac_status=$?
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003331 ac_cv_prog_cc_g=yes
3332else
3333 echo "$as_me: failed program was:" >&5
3334sed 's/^/| /' conftest.$ac_ext >&5
3335
3336
John Criswell7a73b802003-06-30 21:59:07 +00003337fi
Reid Spencera773bd52006-08-04 18:18:08 +00003338
3339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003340fi
Reid Spencera773bd52006-08-04 18:18:08 +00003341
3342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343fi
3344
3345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346 ac_c_werror_flag=$ac_save_c_werror_flag
3347fi
3348{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3349echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003350if test "$ac_test_CFLAGS" = set; then
3351 CFLAGS=$ac_save_CFLAGS
3352elif test $ac_cv_prog_cc_g = yes; then
3353 if test "$GCC" = yes; then
3354 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003355 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003356 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003357 fi
3358else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003359 if test "$GCC" = yes; then
3360 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003361 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003362 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003363 fi
3364fi
Reid Spencera773bd52006-08-04 18:18:08 +00003365{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3366echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3367if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369else
Reid Spencera773bd52006-08-04 18:18:08 +00003370 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003371ac_save_CC=$CC
3372cat >conftest.$ac_ext <<_ACEOF
3373/* confdefs.h. */
3374_ACEOF
3375cat confdefs.h >>conftest.$ac_ext
3376cat >>conftest.$ac_ext <<_ACEOF
3377/* end confdefs.h. */
3378#include <stdarg.h>
3379#include <stdio.h>
3380#include <sys/types.h>
3381#include <sys/stat.h>
3382/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3383struct buf { int x; };
3384FILE * (*rcsopen) (struct buf *, struct stat *, int);
3385static char *e (p, i)
3386 char **p;
3387 int i;
3388{
3389 return p[i];
3390}
3391static char *f (char * (*g) (char **, int), char **p, ...)
3392{
3393 char *s;
3394 va_list v;
3395 va_start (v,p);
3396 s = g (p, va_arg (v,int));
3397 va_end (v);
3398 return s;
3399}
3400
3401/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3402 function prototypes and stuff, but not '\xHH' hex character constants.
3403 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003404 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003405 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3406 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003407 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003408int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3409
Reid Spencera773bd52006-08-04 18:18:08 +00003410/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3411 inside strings and character constants. */
3412#define FOO(x) 'x'
3413int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3414
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003415int test (int i, double x);
3416struct s1 {int (*f) (int a);};
3417struct s2 {int (*f) (double a);};
3418int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3419int argc;
3420char **argv;
3421int
3422main ()
3423{
3424return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3425 ;
3426 return 0;
3427}
3428_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003429for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3430 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003431do
3432 CC="$ac_save_CC $ac_arg"
3433 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003434if { (ac_try="$ac_compile"
3435case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438esac
3439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003441 ac_status=$?
3442 grep -v '^ *+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003446 (exit $ac_status); } &&
3447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3448 { (case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451esac
3452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453 (eval "$ac_try") 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; } &&
3457 { ac_try='test -s conftest.$ac_objext'
3458 { (case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461esac
3462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_try") 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003467 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003468else
3469 echo "$as_me: failed program was:" >&5
3470sed 's/^/| /' conftest.$ac_ext >&5
3471
Reid Spencera773bd52006-08-04 18:18:08 +00003472
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003473fi
Reid Spencera773bd52006-08-04 18:18:08 +00003474
3475rm -f core conftest.err conftest.$ac_objext
3476 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003477done
Reid Spencera773bd52006-08-04 18:18:08 +00003478rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003479CC=$ac_save_CC
3480
3481fi
Reid Spencera773bd52006-08-04 18:18:08 +00003482# AC_CACHE_VAL
3483case "x$ac_cv_prog_cc_c89" in
3484 x)
3485 { echo "$as_me:$LINENO: result: none needed" >&5
3486echo "${ECHO_T}none needed" >&6; } ;;
3487 xno)
3488 { echo "$as_me:$LINENO: result: unsupported" >&5
3489echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003490 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003491 CC="$CC $ac_cv_prog_cc_c89"
3492 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3493echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003494esac
3495
John Criswell0c38eaf2003-09-10 15:17:25 +00003496
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003497ac_ext=c
3498ac_cpp='$CPP $CPPFLAGS'
3499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502
3503
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003504ac_ext=c
3505ac_cpp='$CPP $CPPFLAGS'
3506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003509{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3510echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003511# On Suns, sometimes $CPP names a directory.
3512if test -n "$CPP" && test -d "$CPP"; then
3513 CPP=
3514fi
3515if test -z "$CPP"; then
3516 if test "${ac_cv_prog_CPP+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3518else
3519 # Double quotes because CPP needs to be expanded
3520 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3521 do
3522 ac_preproc_ok=false
3523for ac_c_preproc_warn_flag in '' yes
3524do
3525 # Use a header file that comes with gcc, so configuring glibc
3526 # with a fresh cross-compiler works.
3527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3528 # <limits.h> exists even on freestanding compilers.
3529 # On the NeXT, cc -E runs the code through the compiler's parser,
3530 # not just through cpp. "Syntax error" is here to catch this case.
3531 cat >conftest.$ac_ext <<_ACEOF
3532/* confdefs.h. */
3533_ACEOF
3534cat confdefs.h >>conftest.$ac_ext
3535cat >>conftest.$ac_ext <<_ACEOF
3536/* end confdefs.h. */
3537#ifdef __STDC__
3538# include <limits.h>
3539#else
3540# include <assert.h>
3541#endif
3542 Syntax error
3543_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003544if { (ac_try="$ac_cpp conftest.$ac_ext"
3545case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3548esac
3549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003551 ac_status=$?
3552 grep -v '^ *+' conftest.er1 >conftest.err
3553 rm -f conftest.er1
3554 cat conftest.err >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003556 (exit $ac_status); } >/dev/null; then
3557 if test -s conftest.err; then
3558 ac_cpp_err=$ac_c_preproc_warn_flag
3559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3560 else
3561 ac_cpp_err=
3562 fi
3563else
3564 ac_cpp_err=yes
3565fi
3566if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003567 :
3568else
3569 echo "$as_me: failed program was:" >&5
3570sed 's/^/| /' conftest.$ac_ext >&5
3571
3572 # Broken: fails on valid input.
3573continue
3574fi
Reid Spencera773bd52006-08-04 18:18:08 +00003575
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003576rm -f conftest.err conftest.$ac_ext
3577
Reid Spencera773bd52006-08-04 18:18:08 +00003578 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003579 # can be detected and how.
3580 cat >conftest.$ac_ext <<_ACEOF
3581/* confdefs.h. */
3582_ACEOF
3583cat confdefs.h >>conftest.$ac_ext
3584cat >>conftest.$ac_ext <<_ACEOF
3585/* end confdefs.h. */
3586#include <ac_nonexistent.h>
3587_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003588if { (ac_try="$ac_cpp conftest.$ac_ext"
3589case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592esac
3593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003600 (exit $ac_status); } >/dev/null; then
3601 if test -s conftest.err; then
3602 ac_cpp_err=$ac_c_preproc_warn_flag
3603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3604 else
3605 ac_cpp_err=
3606 fi
3607else
3608 ac_cpp_err=yes
3609fi
3610if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003611 # Broken: success on invalid input.
3612continue
3613else
3614 echo "$as_me: failed program was:" >&5
3615sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 # Passes both tests.
3618ac_preproc_ok=:
3619break
3620fi
Reid Spencera773bd52006-08-04 18:18:08 +00003621
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003622rm -f conftest.err conftest.$ac_ext
3623
3624done
3625# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3626rm -f conftest.err conftest.$ac_ext
3627if $ac_preproc_ok; then
3628 break
3629fi
3630
3631 done
3632 ac_cv_prog_CPP=$CPP
3633
3634fi
3635 CPP=$ac_cv_prog_CPP
3636else
3637 ac_cv_prog_CPP=$CPP
3638fi
Reid Spencera773bd52006-08-04 18:18:08 +00003639{ echo "$as_me:$LINENO: result: $CPP" >&5
3640echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003641ac_preproc_ok=false
3642for ac_c_preproc_warn_flag in '' yes
3643do
3644 # Use a header file that comes with gcc, so configuring glibc
3645 # with a fresh cross-compiler works.
3646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3647 # <limits.h> exists even on freestanding compilers.
3648 # On the NeXT, cc -E runs the code through the compiler's parser,
3649 # not just through cpp. "Syntax error" is here to catch this case.
3650 cat >conftest.$ac_ext <<_ACEOF
3651/* confdefs.h. */
3652_ACEOF
3653cat confdefs.h >>conftest.$ac_ext
3654cat >>conftest.$ac_ext <<_ACEOF
3655/* end confdefs.h. */
3656#ifdef __STDC__
3657# include <limits.h>
3658#else
3659# include <assert.h>
3660#endif
3661 Syntax error
3662_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003663if { (ac_try="$ac_cpp conftest.$ac_ext"
3664case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667esac
3668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003675 (exit $ac_status); } >/dev/null; then
3676 if test -s conftest.err; then
3677 ac_cpp_err=$ac_c_preproc_warn_flag
3678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3679 else
3680 ac_cpp_err=
3681 fi
3682else
3683 ac_cpp_err=yes
3684fi
3685if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003686 :
3687else
3688 echo "$as_me: failed program was:" >&5
3689sed 's/^/| /' conftest.$ac_ext >&5
3690
3691 # Broken: fails on valid input.
3692continue
3693fi
Reid Spencera773bd52006-08-04 18:18:08 +00003694
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003695rm -f conftest.err conftest.$ac_ext
3696
Reid Spencera773bd52006-08-04 18:18:08 +00003697 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003698 # can be detected and how.
3699 cat >conftest.$ac_ext <<_ACEOF
3700/* confdefs.h. */
3701_ACEOF
3702cat confdefs.h >>conftest.$ac_ext
3703cat >>conftest.$ac_ext <<_ACEOF
3704/* end confdefs.h. */
3705#include <ac_nonexistent.h>
3706_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003707if { (ac_try="$ac_cpp conftest.$ac_ext"
3708case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711esac
3712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003719 (exit $ac_status); } >/dev/null; then
3720 if test -s conftest.err; then
3721 ac_cpp_err=$ac_c_preproc_warn_flag
3722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3723 else
3724 ac_cpp_err=
3725 fi
3726else
3727 ac_cpp_err=yes
3728fi
3729if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003730 # Broken: success on invalid input.
3731continue
3732else
3733 echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
3736 # Passes both tests.
3737ac_preproc_ok=:
3738break
3739fi
Reid Spencera773bd52006-08-04 18:18:08 +00003740
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003741rm -f conftest.err conftest.$ac_ext
3742
3743done
3744# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3745rm -f conftest.err conftest.$ac_ext
3746if $ac_preproc_ok; then
3747 :
3748else
3749 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3750See \`config.log' for more details." >&5
3751echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3752See \`config.log' for more details." >&2;}
3753 { (exit 1); exit 1; }; }
3754fi
3755
John Criswell7a73b802003-06-30 21:59:07 +00003756ac_ext=c
3757ac_cpp='$CPP $CPPFLAGS'
3758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761
John Criswell7a73b802003-06-30 21:59:07 +00003762
Reid Spencera773bd52006-08-04 18:18:08 +00003763{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3764echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003765if test "${ac_cv_path_GREP+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767else
Reid Spencera773bd52006-08-04 18:18:08 +00003768 # Extract the first word of "grep ggrep" to use in msg output
3769if test -z "$GREP"; then
3770set dummy grep ggrep; ac_prog_name=$2
3771if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773else
Reid Spencera773bd52006-08-04 18:18:08 +00003774 ac_path_GREP_found=false
3775# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003777for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003778do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003781 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003782 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003783 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003784 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003785 # Check for GNU ac_path_GREP and select it if it is found.
3786 # Check for GNU $ac_path_GREP
3787case `"$ac_path_GREP" --version 2>&1` in
3788*GNU*)
3789 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3790*)
3791 ac_count=0
3792 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3793 while :
3794 do
3795 cat "conftest.in" "conftest.in" >"conftest.tmp"
3796 mv "conftest.tmp" "conftest.in"
3797 cp "conftest.in" "conftest.nl"
3798 echo 'GREP' >> "conftest.nl"
3799 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3801 ac_count=`expr $ac_count + 1`
3802 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3803 # Best one so far, save it but keep looking for a better one
3804 ac_cv_path_GREP="$ac_path_GREP"
3805 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003806 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003807 # 10*(2^10) chars as input seems more than enough
3808 test $ac_count -gt 10 && break
3809 done
3810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3811esac
3812
3813
3814 $ac_path_GREP_found && break 3
3815 done
3816done
3817
3818done
3819IFS=$as_save_IFS
3820
3821
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003822fi
Reid Spencera773bd52006-08-04 18:18:08 +00003823
3824GREP="$ac_cv_path_GREP"
3825if test -z "$GREP"; then
3826 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3827echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3828 { (exit 1); exit 1; }; }
3829fi
3830
3831else
3832 ac_cv_path_GREP=$GREP
3833fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003834
John Criswell7a73b802003-06-30 21:59:07 +00003835
Reid Spencera773bd52006-08-04 18:18:08 +00003836fi
3837{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3838echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3839 GREP="$ac_cv_path_GREP"
3840
3841
3842{ echo "$as_me:$LINENO: checking for egrep" >&5
3843echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3844if test "${ac_cv_path_EGREP+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846else
3847 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3848 then ac_cv_path_EGREP="$GREP -E"
3849 else
3850 # Extract the first word of "egrep" to use in msg output
3851if test -z "$EGREP"; then
3852set dummy egrep; ac_prog_name=$2
3853if test "${ac_cv_path_EGREP+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855else
3856 ac_path_EGREP_found=false
3857# Loop through the user's path and test for each of PROGNAME-LIST
3858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3860do
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
3863 for ac_prog in egrep; do
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003866 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003867 # Check for GNU ac_path_EGREP and select it if it is found.
3868 # Check for GNU $ac_path_EGREP
3869case `"$ac_path_EGREP" --version 2>&1` in
3870*GNU*)
3871 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3872*)
3873 ac_count=0
3874 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3875 while :
3876 do
3877 cat "conftest.in" "conftest.in" >"conftest.tmp"
3878 mv "conftest.tmp" "conftest.in"
3879 cp "conftest.in" "conftest.nl"
3880 echo 'EGREP' >> "conftest.nl"
3881 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3882 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3883 ac_count=`expr $ac_count + 1`
3884 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3885 # Best one so far, save it but keep looking for a better one
3886 ac_cv_path_EGREP="$ac_path_EGREP"
3887 ac_path_EGREP_max=$ac_count
3888 fi
3889 # 10*(2^10) chars as input seems more than enough
3890 test $ac_count -gt 10 && break
3891 done
3892 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3893esac
3894
3895
3896 $ac_path_EGREP_found && break 3
3897 done
3898done
3899
3900done
3901IFS=$as_save_IFS
3902
3903
3904fi
3905
3906EGREP="$ac_cv_path_EGREP"
3907if test -z "$EGREP"; then
3908 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3909echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3910 { (exit 1); exit 1; }; }
3911fi
3912
3913else
3914 ac_cv_path_EGREP=$EGREP
3915fi
3916
3917
3918 fi
3919fi
3920{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3921echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3922 EGREP="$ac_cv_path_EGREP"
3923
3924
3925{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3926echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003927if test "${ac_cv_header_stdc+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3929else
3930 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003931/* confdefs.h. */
3932_ACEOF
3933cat confdefs.h >>conftest.$ac_ext
3934cat >>conftest.$ac_ext <<_ACEOF
3935/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003936#include <stdlib.h>
3937#include <stdarg.h>
3938#include <string.h>
3939#include <float.h>
3940
John Criswell0c38eaf2003-09-10 15:17:25 +00003941int
3942main ()
3943{
3944
3945 ;
3946 return 0;
3947}
John Criswell7a73b802003-06-30 21:59:07 +00003948_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003949rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003950if { (ac_try="$ac_compile"
3951case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954esac
3955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003957 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003958 grep -v '^ *+' conftest.er1 >conftest.err
3959 rm -f conftest.er1
3960 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003962 (exit $ac_status); } &&
3963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3964 { (case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967esac
3968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969 (eval "$ac_try") 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; } &&
3973 { ac_try='test -s conftest.$ac_objext'
3974 { (case "(($ac_try" in
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3977esac
3978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3979 (eval "$ac_try") 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003983 ac_cv_header_stdc=yes
3984else
3985 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003986sed 's/^/| /' conftest.$ac_ext >&5
3987
Reid Spencera773bd52006-08-04 18:18:08 +00003988 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003989fi
Reid Spencera773bd52006-08-04 18:18:08 +00003990
3991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003992
3993if test $ac_cv_header_stdc = yes; then
3994 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3995 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003996/* confdefs.h. */
3997_ACEOF
3998cat confdefs.h >>conftest.$ac_ext
3999cat >>conftest.$ac_ext <<_ACEOF
4000/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004001#include <string.h>
4002
4003_ACEOF
4004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004005 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004006 :
4007else
4008 ac_cv_header_stdc=no
4009fi
4010rm -f conftest*
4011
4012fi
4013
4014if test $ac_cv_header_stdc = yes; then
4015 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4016 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004017/* confdefs.h. */
4018_ACEOF
4019cat confdefs.h >>conftest.$ac_ext
4020cat >>conftest.$ac_ext <<_ACEOF
4021/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004022#include <stdlib.h>
4023
4024_ACEOF
4025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004026 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004027 :
4028else
4029 ac_cv_header_stdc=no
4030fi
4031rm -f conftest*
4032
4033fi
4034
4035if test $ac_cv_header_stdc = yes; then
4036 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4037 if test "$cross_compiling" = yes; then
4038 :
4039else
4040 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004041/* confdefs.h. */
4042_ACEOF
4043cat confdefs.h >>conftest.$ac_ext
4044cat >>conftest.$ac_ext <<_ACEOF
4045/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004046#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004047#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004048#if ((' ' & 0x0FF) == 0x020)
4049# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4050# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4051#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004052# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004053 (('a' <= (c) && (c) <= 'i') \
4054 || ('j' <= (c) && (c) <= 'r') \
4055 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004056# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4057#endif
4058
4059#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4060int
4061main ()
4062{
4063 int i;
4064 for (i = 0; i < 256; i++)
4065 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004066 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004067 return 2;
4068 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004069}
4070_ACEOF
4071rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00004072if { (ac_try="$ac_link"
4073case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076esac
4077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00004082 { (case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085esac
4086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4091 :
4092else
4093 echo "$as_me: program exited with status $ac_status" >&5
4094echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004095sed 's/^/| /' conftest.$ac_ext >&5
4096
John Criswell7a73b802003-06-30 21:59:07 +00004097( exit $ac_status )
4098ac_cv_header_stdc=no
4099fi
Reid Spencera773bd52006-08-04 18:18:08 +00004100rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4101fi
4102
4103
John Criswell7a73b802003-06-30 21:59:07 +00004104fi
4105fi
Reid Spencera773bd52006-08-04 18:18:08 +00004106{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4107echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004108if test $ac_cv_header_stdc = yes; then
4109
4110cat >>confdefs.h <<\_ACEOF
4111#define STDC_HEADERS 1
4112_ACEOF
4113
4114fi
4115
Reid Spencera773bd52006-08-04 18:18:08 +00004116# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4127 inttypes.h stdint.h unistd.h
4128do
4129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4130{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134else
4135 cat >conftest.$ac_ext <<_ACEOF
4136/* confdefs.h. */
4137_ACEOF
4138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
4140/* end confdefs.h. */
4141$ac_includes_default
4142
4143#include <$ac_header>
4144_ACEOF
4145rm -f conftest.$ac_objext
4146if { (ac_try="$ac_compile"
4147case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150esac
4151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_compile") 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160 { (case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4163esac
4164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_try") 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; } &&
4169 { ac_try='test -s conftest.$ac_objext'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173esac
4174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004179 eval "$as_ac_Header=yes"
4180else
4181 echo "$as_me: failed program was:" >&5
4182sed 's/^/| /' conftest.$ac_ext >&5
4183
4184 eval "$as_ac_Header=no"
4185fi
4186
4187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188fi
4189ac_res=`eval echo '${'$as_ac_Header'}'`
4190 { echo "$as_me:$LINENO: result: $ac_res" >&5
4191echo "${ECHO_T}$ac_res" >&6; }
4192if test `eval echo '${'$as_ac_Header'}'` = yes; then
4193 cat >>confdefs.h <<_ACEOF
4194#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4195_ACEOF
4196
4197fi
4198
4199done
4200
4201
4202{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4203echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4204if test "${ac_cv_c_bigendian+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4206else
4207 # See if sys/param.h defines the BYTE_ORDER macro.
4208cat >conftest.$ac_ext <<_ACEOF
4209/* confdefs.h. */
4210_ACEOF
4211cat confdefs.h >>conftest.$ac_ext
4212cat >>conftest.$ac_ext <<_ACEOF
4213/* end confdefs.h. */
4214#include <sys/types.h>
4215#include <sys/param.h>
4216
4217int
4218main ()
4219{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004220#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004221 bogus endian macros
4222#endif
4223
4224 ;
4225 return 0;
4226}
4227_ACEOF
4228rm -f conftest.$ac_objext
4229if { (ac_try="$ac_compile"
4230case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233esac
4234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_compile") 2>conftest.er1
4236 ac_status=$?
4237 grep -v '^ *+' conftest.er1 >conftest.err
4238 rm -f conftest.er1
4239 cat conftest.err >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004241 (exit $ac_status); } &&
4242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4243 { (case "(($ac_try" in
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4246esac
4247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248 (eval "$ac_try") 2>&5
4249 ac_status=$?
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; } &&
4252 { ac_try='test -s conftest.$ac_objext'
4253 { (case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4256esac
4257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_try") 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004262 # It does; now see whether it defined to BIG_ENDIAN or not.
4263cat >conftest.$ac_ext <<_ACEOF
4264/* confdefs.h. */
4265_ACEOF
4266cat confdefs.h >>conftest.$ac_ext
4267cat >>conftest.$ac_ext <<_ACEOF
4268/* end confdefs.h. */
4269#include <sys/types.h>
4270#include <sys/param.h>
4271
4272int
4273main ()
4274{
4275#if BYTE_ORDER != BIG_ENDIAN
4276 not big endian
4277#endif
4278
4279 ;
4280 return 0;
4281}
4282_ACEOF
4283rm -f conftest.$ac_objext
4284if { (ac_try="$ac_compile"
4285case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288esac
4289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_compile") 2>conftest.er1
4291 ac_status=$?
4292 grep -v '^ *+' conftest.er1 >conftest.err
4293 rm -f conftest.er1
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004296 (exit $ac_status); } &&
4297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4298 { (case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301esac
4302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_try") 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; } &&
4307 { ac_try='test -s conftest.$ac_objext'
4308 { (case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4311esac
4312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_try") 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004317 ac_cv_c_bigendian=yes
4318else
4319 echo "$as_me: failed program was:" >&5
4320sed 's/^/| /' conftest.$ac_ext >&5
4321
4322 ac_cv_c_bigendian=no
4323fi
4324
4325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326else
4327 echo "$as_me: failed program was:" >&5
4328sed 's/^/| /' conftest.$ac_ext >&5
4329
4330 # It does not; compile a test program.
4331if test "$cross_compiling" = yes; then
4332 # try to guess the endianness by grepping values into an object file
4333 ac_cv_c_bigendian=unknown
4334 cat >conftest.$ac_ext <<_ACEOF
4335/* confdefs.h. */
4336_ACEOF
4337cat confdefs.h >>conftest.$ac_ext
4338cat >>conftest.$ac_ext <<_ACEOF
4339/* end confdefs.h. */
4340short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4341short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4342void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4343short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4344short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4345void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4346int
4347main ()
4348{
4349 _ascii (); _ebcdic ();
4350 ;
4351 return 0;
4352}
4353_ACEOF
4354rm -f conftest.$ac_objext
4355if { (ac_try="$ac_compile"
4356case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359esac
4360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_compile") 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004367 (exit $ac_status); } &&
4368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4369 { (case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4372esac
4373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_try") 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; } &&
4378 { ac_try='test -s conftest.$ac_objext'
4379 { (case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382esac
4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_try") 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004388 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4389 ac_cv_c_bigendian=yes
4390fi
4391if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4392 if test "$ac_cv_c_bigendian" = unknown; then
4393 ac_cv_c_bigendian=no
4394 else
4395 # finding both strings is unlikely to happen, but who knows?
4396 ac_cv_c_bigendian=unknown
4397 fi
4398fi
4399else
4400 echo "$as_me: failed program was:" >&5
4401sed 's/^/| /' conftest.$ac_ext >&5
4402
4403
4404fi
4405
4406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407else
4408 cat >conftest.$ac_ext <<_ACEOF
4409/* confdefs.h. */
4410_ACEOF
4411cat confdefs.h >>conftest.$ac_ext
4412cat >>conftest.$ac_ext <<_ACEOF
4413/* end confdefs.h. */
4414$ac_includes_default
4415int
4416main ()
4417{
4418
4419 /* Are we little or big endian? From Harbison&Steele. */
4420 union
4421 {
4422 long int l;
4423 char c[sizeof (long int)];
4424 } u;
4425 u.l = 1;
4426 return u.c[sizeof (long int) - 1] == 1;
4427
4428 ;
4429 return 0;
4430}
4431_ACEOF
4432rm -f conftest$ac_exeext
4433if { (ac_try="$ac_link"
4434case "(($ac_try" in
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4437esac
4438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439 (eval "$ac_link") 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4443 { (case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446esac
4447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_try") 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_cv_c_bigendian=no
4453else
4454 echo "$as_me: program exited with status $ac_status" >&5
4455echo "$as_me: failed program was:" >&5
4456sed 's/^/| /' conftest.$ac_ext >&5
4457
4458( exit $ac_status )
4459ac_cv_c_bigendian=yes
4460fi
4461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4462fi
4463
4464
4465fi
4466
4467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468fi
4469{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4470echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4471case $ac_cv_c_bigendian in
4472 yes)
4473 ENDIAN=big
4474 ;;
4475 no)
4476 ENDIAN=little
4477 ;;
4478 *)
4479 { { echo "$as_me:$LINENO: error: unknown endianness
4480presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4481echo "$as_me: error: unknown endianness
4482presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4483 { (exit 1); exit 1; }; } ;;
4484esac
4485
4486
4487if test "$cross_compiling" = yes; then
4488 LLVM_CROSS_COMPILING=1
4489
4490
4491{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4492echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4493if test "${ac_cv_build_exeext+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495else
4496 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4497 ac_cv_build_exeext=.exe
4498else
4499 ac_build_prefix=${build_alias}-
4500
4501 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4502set dummy ${ac_build_prefix}gcc; ac_word=$2
4503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4505if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507else
4508 if test -n "$BUILD_CC"; then
4509 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4510else
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 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 break 2
4521 fi
4522done
4523done
4524IFS=$as_save_IFS
4525
4526fi
4527fi
4528BUILD_CC=$ac_cv_prog_BUILD_CC
4529if test -n "$BUILD_CC"; then
4530 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4531echo "${ECHO_T}$BUILD_CC" >&6; }
4532else
4533 { echo "$as_me:$LINENO: result: no" >&5
4534echo "${ECHO_T}no" >&6; }
4535fi
4536
4537
4538 if test -z "$BUILD_CC"; then
4539 # Extract the first word of "gcc", so it can be a program name with args.
4540set dummy gcc; ac_word=$2
4541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4543if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545else
4546 if test -n "$BUILD_CC"; then
4547 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4548else
4549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550for as_dir in $PATH
4551do
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004555 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 +00004556 ac_cv_prog_BUILD_CC="gcc"
4557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 break 2
4559 fi
4560done
4561done
4562IFS=$as_save_IFS
4563
4564fi
4565fi
4566BUILD_CC=$ac_cv_prog_BUILD_CC
4567if test -n "$BUILD_CC"; then
4568 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4569echo "${ECHO_T}$BUILD_CC" >&6; }
4570else
4571 { echo "$as_me:$LINENO: result: no" >&5
4572echo "${ECHO_T}no" >&6; }
4573fi
4574
4575
4576 if test -z "$BUILD_CC"; then
4577 # Extract the first word of "cc", so it can be a program name with args.
4578set dummy cc; ac_word=$2
4579{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584 if test -n "$BUILD_CC"; then
4585 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4586else
4587 ac_prog_rejected=no
4588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH
4590do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004594 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 +00004595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4596 ac_prog_rejected=yes
4597 continue
4598 fi
4599 ac_cv_prog_BUILD_CC="cc"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4602 fi
4603done
4604done
4605IFS=$as_save_IFS
4606
4607if test $ac_prog_rejected = yes; then
4608 # We found a bogon in the path, so make sure we never use it.
4609 set dummy $ac_cv_prog_BUILD_CC
4610 shift
4611 if test $# != 0; then
4612 # We chose a different compiler from the bogus one.
4613 # However, it has the same basename, so the bogon will be chosen
4614 # first if we set BUILD_CC to just the basename; use the full file name.
4615 shift
4616 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4617 fi
4618fi
4619fi
4620fi
4621BUILD_CC=$ac_cv_prog_BUILD_CC
4622if test -n "$BUILD_CC"; then
4623 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4624echo "${ECHO_T}$BUILD_CC" >&6; }
4625else
4626 { echo "$as_me:$LINENO: result: no" >&5
4627echo "${ECHO_T}no" >&6; }
4628fi
4629
4630
4631 fi
4632 fi
4633 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4634echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4635 { (exit 1); exit 1; }; }
4636 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4637 rm -f conftest*
4638 echo 'int main () { return 0; }' > conftest.$ac_ext
4639 ac_cv_build_exeext=
4640 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4641 (eval $ac_build_link) 2>&5
4642 ac_status=$?
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; then
4645 for file in conftest.*; do
4646 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004647 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004648 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4649 esac
4650 done
4651 else
4652 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4653echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4654 { (exit 1); exit 1; }; }
4655 fi
4656 rm -f conftest*
4657 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4658fi
4659fi
4660
4661BUILD_EXEEXT=""
4662test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4663{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4664echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4665ac_build_exeext=$BUILD_EXEEXT
4666
Jim Grosbach673612e2008-10-02 22:56:44 +00004667 ac_build_prefix=${build_alias}-
4668 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4669set dummy ${ac_build_prefix}g++; ac_word=$2
4670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4672if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4674else
4675 if test -n "$BUILD_CXX"; then
4676 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4677else
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 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4688 fi
4689done
4690done
4691IFS=$as_save_IFS
4692
4693fi
4694fi
4695BUILD_CXX=$ac_cv_prog_BUILD_CXX
4696if test -n "$BUILD_CXX"; then
4697 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4698echo "${ECHO_T}$BUILD_CXX" >&6; }
4699else
4700 { echo "$as_me:$LINENO: result: no" >&5
4701echo "${ECHO_T}no" >&6; }
4702fi
4703
4704
4705 if test -z "$BUILD_CXX"; then
4706 # Extract the first word of "g++", so it can be a program name with args.
4707set dummy g++; ac_word=$2
4708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4710if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4712else
4713 if test -n "$BUILD_CXX"; then
4714 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4715else
4716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717for as_dir in $PATH
4718do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004722 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 +00004723 ac_cv_prog_BUILD_CXX="g++"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4726 fi
4727done
4728done
4729IFS=$as_save_IFS
4730
4731fi
4732fi
4733BUILD_CXX=$ac_cv_prog_BUILD_CXX
4734if test -n "$BUILD_CXX"; then
4735 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4736echo "${ECHO_T}$BUILD_CXX" >&6; }
4737else
4738 { echo "$as_me:$LINENO: result: no" >&5
4739echo "${ECHO_T}no" >&6; }
4740fi
4741
4742
4743 if test -z "$BUILD_CXX"; then
4744 # Extract the first word of "c++", so it can be a program name with args.
4745set dummy c++; ac_word=$2
4746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4748if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
4751 if test -n "$BUILD_CXX"; then
4752 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4753else
4754 ac_prog_rejected=no
4755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756for as_dir in $PATH
4757do
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004761 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 +00004762 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4763 ac_prog_rejected=yes
4764 continue
4765 fi
4766 ac_cv_prog_BUILD_CXX="c++"
4767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 break 2
4769 fi
4770done
4771done
4772IFS=$as_save_IFS
4773
4774if test $ac_prog_rejected = yes; then
4775 # We found a bogon in the path, so make sure we never use it.
4776 set dummy $ac_cv_prog_BUILD_CXX
4777 shift
4778 if test $# != 0; then
4779 # We chose a different compiler from the bogus one.
4780 # However, it has the same basename, so the bogon will be chosen
4781 # first if we set BUILD_CXX to just the basename; use the full file name.
4782 shift
4783 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4784 fi
4785fi
4786fi
4787fi
4788BUILD_CXX=$ac_cv_prog_BUILD_CXX
4789if test -n "$BUILD_CXX"; then
4790 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4791echo "${ECHO_T}$BUILD_CXX" >&6; }
4792else
4793 { echo "$as_me:$LINENO: result: no" >&5
4794echo "${ECHO_T}no" >&6; }
4795fi
4796
4797
4798 fi
4799 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004800else
4801 LLVM_CROSS_COMPILING=0
4802
4803fi
4804
Nick Lewycky5b28f862009-04-10 05:18:27 +00004805if 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 +00004806 cvsbuild="yes"
4807 optimize="no"
4808 CVSBUILD=CVSBUILD=1
4809
4810else
4811 cvsbuild="no"
4812 optimize="yes"
4813fi
4814
4815
4816# Check whether --enable-optimized was given.
4817if test "${enable_optimized+set}" = set; then
4818 enableval=$enable_optimized;
4819else
4820 enableval=$optimize
4821fi
4822
4823if test ${enableval} = "no" ; then
4824 ENABLE_OPTIMIZED=
4825
4826else
4827 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4828
4829fi
4830
David Greene2a5a12c2009-04-17 14:50:39 +00004831# Check whether --enable-profiling was given.
4832if test "${enable_profiling+set}" = set; then
4833 enableval=$enable_profiling;
4834else
4835 enableval="no"
4836fi
4837
4838if test ${enableval} = "no" ; then
4839 ENABLE_PROFILING=
4840
4841else
4842 ENABLE_PROFILING=ENABLE_PROFILING=1
4843
4844fi
4845
Reid Spencera773bd52006-08-04 18:18:08 +00004846# Check whether --enable-assertions was given.
4847if test "${enable_assertions+set}" = set; then
4848 enableval=$enable_assertions;
4849else
4850 enableval="yes"
4851fi
4852
4853if test ${enableval} = "yes" ; then
4854 DISABLE_ASSERTIONS=
4855
4856else
4857 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4858
4859fi
4860
David Greenea696d242007-06-28 19:36:08 +00004861# Check whether --enable-expensive-checks was given.
4862if test "${enable_expensive_checks+set}" = set; then
4863 enableval=$enable_expensive_checks;
4864else
4865 enableval="no"
4866fi
4867
4868if test ${enableval} = "yes" ; then
4869 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4870
4871 EXPENSIVE_CHECKS=yes
4872
4873else
4874 ENABLE_EXPENSIVE_CHECKS=
4875
4876 EXPENSIVE_CHECKS=no
4877
4878fi
4879
Reid Spencer8b2e1412006-11-17 03:32:33 +00004880# Check whether --enable-debug-runtime was given.
4881if test "${enable_debug_runtime+set}" = set; then
4882 enableval=$enable_debug_runtime;
4883else
4884 enableval=no
4885fi
4886
4887if test ${enableval} = "no" ; then
4888 DEBUG_RUNTIME=
4889
4890else
4891 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4892
4893fi
4894
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004895# Check whether --enable-debug-symbols was given.
4896if test "${enable_debug_symbols+set}" = set; then
4897 enableval=$enable_debug_symbols;
4898else
4899 enableval=no
4900fi
4901
4902if test ${enableval} = "no" ; then
4903 DEBUG_SYMBOLS=
4904
4905else
4906 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4907
4908fi
4909
Reid Spencera773bd52006-08-04 18:18:08 +00004910# Check whether --enable-jit was given.
4911if test "${enable_jit+set}" = set; then
4912 enableval=$enable_jit;
4913else
4914 enableval=default
4915fi
4916
4917if test ${enableval} = "no"
4918then
4919 JIT=
4920
4921else
4922 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004923 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004924 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004925 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004926 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004927 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004928 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004929 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004930 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004931 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004932 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004933 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004934 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004935 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004936 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004937 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004938 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004939 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004940 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004941 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004942 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004943 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004944 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004945 Blackfin) TARGET_HAS_JIT=0
4946 ;;
4947 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004948 ;;
4949 esac
4950fi
4951
4952# Check whether --enable-doxygen was given.
4953if test "${enable_doxygen+set}" = set; then
4954 enableval=$enable_doxygen;
4955else
4956 enableval=default
4957fi
4958
4959case "$enableval" in
4960 yes) ENABLE_DOXYGEN=1
4961 ;;
4962 no) ENABLE_DOXYGEN=0
4963 ;;
4964 default) ENABLE_DOXYGEN=0
4965 ;;
4966 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4967echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4968 { (exit 1); exit 1; }; } ;;
4969esac
4970
4971# Check whether --enable-threads was given.
4972if test "${enable_threads+set}" = set; then
4973 enableval=$enable_threads;
4974else
Reid Spencer65c5d752006-11-05 17:08:18 +00004975 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004976fi
4977
4978case "$enableval" in
4979 yes) ENABLE_THREADS=1
4980 ;;
4981 no) ENABLE_THREADS=0
4982 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004983 default) ENABLE_THREADS=1
4984 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004985 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4986echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4987 { (exit 1); exit 1; }; } ;;
4988esac
4989
Owen Andersona8603702009-05-19 22:18:56 +00004990cat >>confdefs.h <<_ACEOF
4991#define ENABLE_THREADS $ENABLE_THREADS
4992_ACEOF
4993
4994
Reid Spencer89b0d992006-12-16 22:07:52 +00004995# Check whether --enable-pic was given.
4996if test "${enable_pic+set}" = set; then
4997 enableval=$enable_pic;
4998else
4999 enableval=default
5000fi
5001
5002case "$enableval" in
5003 yes) ENABLE_PIC=1
5004 ;;
5005 no) ENABLE_PIC=0
5006 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005007 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005008 ;;
5009 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5010echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5011 { (exit 1); exit 1; }; } ;;
5012esac
5013
5014cat >>confdefs.h <<_ACEOF
5015#define ENABLE_PIC $ENABLE_PIC
5016_ACEOF
5017
5018
Reid Spencera773bd52006-08-04 18:18:08 +00005019TARGETS_TO_BUILD=""
5020# Check whether --enable-targets was given.
5021if test "${enable_targets+set}" = set; then
5022 enableval=$enable_targets;
5023else
5024 enableval=all
5025fi
5026
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005027if test "$enableval" = host-only ; then
5028 enableval=host
5029fi
Reid Spencera773bd52006-08-04 18:18:08 +00005030case "$enableval" in
Jakob Stoklund Olesen73b7bb72009-08-02 17:32:37 +00005031 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005032 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5033 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005034 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5035 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5036 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5037 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5038 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5039 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5040 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5041 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5042 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5043 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5044 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5045 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5046 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5047 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5048 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5049 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005050 host) case "$llvm_cv_target_arch" in
5051 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5052 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5053 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5054 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5055 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5056 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5057 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5058 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5059 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5060 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5061 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5062 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5063 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5064 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5065echo "$as_me: error: Can not set target to build" >&2;}
5066 { (exit 1); exit 1; }; } ;;
5067 esac ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005068 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5069echo "$as_me: error: Unrecognized target $a_target" >&2;}
5070 { (exit 1); exit 1; }; } ;;
5071 esac
5072 done
5073 ;;
5074esac
Reid Spencera773bd52006-08-04 18:18:08 +00005075TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5076
5077
Douglas Gregor0711c302009-06-17 00:43:20 +00005078# Determine whether we are building LLVM support for the native architecture.
5079# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5080for a_target in $TARGETS_TO_BUILD; do
5081 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00005082 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00005083
5084cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00005085#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00005086_ACEOF
5087
5088 fi
5089done
5090
Douglas Gregor1555a232009-06-16 20:12:29 +00005091# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005092# Targets.def, AsmPrinters.def, and AsmParsers.def.
Douglas Gregor1555a232009-06-16 20:12:29 +00005093LLVM_ENUM_TARGETS=""
5094LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005095LLVM_ENUM_ASM_PARSERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005096for target_to_build in $TARGETS_TO_BUILD; do
5097 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5098 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5099 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5100 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005101 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5102 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5103 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005104done
5105
5106
5107
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005108
Reid Spencer65c5d752006-11-05 17:08:18 +00005109# Check whether --enable-cbe-printf-a was given.
5110if test "${enable_cbe_printf_a+set}" = set; then
5111 enableval=$enable_cbe_printf_a;
5112else
5113 enableval=default
5114fi
5115
5116case "$enableval" in
5117 yes) ENABLE_CBE_PRINTF_A=1
5118 ;;
5119 no) ENABLE_CBE_PRINTF_A=0
5120 ;;
5121 default) ENABLE_CBE_PRINTF_A=1
5122 ;;
5123 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5124echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5125 { (exit 1); exit 1; }; } ;;
5126esac
5127
5128cat >>confdefs.h <<_ACEOF
5129#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5130_ACEOF
5131
5132
Reid Spencera773bd52006-08-04 18:18:08 +00005133
5134# Check whether --with-llvmgccdir was given.
5135if test "${with_llvmgccdir+set}" = set; then
5136 withval=$with_llvmgccdir;
5137else
5138 withval=default
5139fi
5140
5141case "$withval" in
5142 default) WITH_LLVMGCCDIR=default ;;
5143 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5144 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5145echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5146 { (exit 1); exit 1; }; } ;;
5147esac
5148
5149
Devang Patel5d28b882007-12-04 22:54:47 +00005150# Check whether --with-llvmgcc was given.
5151if test "${with_llvmgcc+set}" = set; then
5152 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5153 WITH_LLVMGCCDIR=""
5154fi
5155
5156
5157
5158# Check whether --with-llvmgxx was given.
5159if test "${with_llvmgxx+set}" = set; then
5160 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5161 WITH_LLVMGCCDIR=""
5162fi
5163
Douglas Gregor01746742009-05-11 18:05:52 +00005164
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005165if test -n "$LLVMGCC"; then
5166 LLVMGCCCOMMAND="$LLVMGCC"
5167fi
5168
5169if test -n "$LLVMGXX"; then
5170 LLVMGXXCOMMAND="$LLVMGXX"
5171fi
Devang Patel5d28b882007-12-04 22:54:47 +00005172
5173if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5174 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5175echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5176 { (exit 1); exit 1; }; };
5177fi
5178
5179if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5180 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5181echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5182 { (exit 1); exit 1; }; };
5183fi
5184
5185
Reid Spencera773bd52006-08-04 18:18:08 +00005186# Check whether --with-extra-options was given.
5187if test "${with_extra_options+set}" = set; then
5188 withval=$with_extra_options;
5189else
5190 withval=default
5191fi
5192
5193case "$withval" in
5194 default) EXTRA_OPTIONS= ;;
5195 *) EXTRA_OPTIONS=$withval ;;
5196esac
5197EXTRA_OPTIONS=$EXTRA_OPTIONS
5198
5199
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005200# Check whether --enable-bindings was given.
5201if test "${enable_bindings+set}" = set; then
5202 enableval=$enable_bindings;
5203else
5204 enableval=default
5205fi
5206
5207BINDINGS_TO_BUILD=""
5208case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005209 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005210 all ) BINDINGS_TO_BUILD="ocaml" ;;
5211 none | no) BINDINGS_TO_BUILD="" ;;
5212 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5213 case "$a_binding" in
5214 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5215 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5216echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5217 { (exit 1); exit 1; }; } ;;
5218 esac
5219 done
5220 ;;
5221esac
5222
Reid Spencera773bd52006-08-04 18:18:08 +00005223
Gordon Henriksenf0915682007-10-02 16:42:22 +00005224# Check whether --with-ocaml-libdir was given.
5225if test "${with_ocaml_libdir+set}" = set; then
5226 withval=$with_ocaml_libdir;
5227else
5228 withval=auto
5229fi
5230
5231case "$withval" in
5232 auto) with_ocaml_libdir="$withval" ;;
5233 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5234 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5235echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5236 { (exit 1); exit 1; }; } ;;
5237esac
5238
5239
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005240# Check whether --with-binutils-include was given.
5241if test "${with_binutils_include+set}" = set; then
5242 withval=$with_binutils_include;
5243else
5244 withval=default
5245fi
5246
5247case "$withval" in
5248 default) WITH_BINUTILS_INCDIR=default ;;
5249 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5250 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5251echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5253esac
5254if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5255 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5256
5257 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5258 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5259 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5260echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5261 { (exit 1); exit 1; }; };
5262 fi
5263fi
5264
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005265# Check whether --enable-libffi was given.
5266if test "${enable_libffi+set}" = set; then
5267 enableval=$enable_libffi;
5268else
5269 enableval=yes
5270fi
5271
5272case "$enableval" in
5273 yes) llvm_cv_enable_libffi="yes" ;;
5274 no) llvm_cv_enable_libffi="no" ;;
5275 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5276echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5277 { (exit 1); exit 1; }; } ;;
5278esac
5279
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005280if test "$llvm_cv_os_type" = "Win32" ; then
5281 llvmc_dynamic="yes"
5282else
5283 llvmc_dynamic="no"
5284fi
5285
5286# Check whether --enable-llvmc-dynamic was given.
5287if test "${enable_llvmc_dynamic+set}" = set; then
5288 enableval=$enable_llvmc_dynamic;
5289else
5290 enableval=$llvmc_dynamic
5291fi
5292
5293if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5294 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5295
5296else
5297 ENABLE_LLVMC_DYNAMIC=
5298
5299fi
5300
5301# Check whether --enable-llvmc-dynamic-plugins was given.
5302if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5303 enableval=$enable_llvmc_dynamic_plugins;
5304else
5305 enableval=yes
5306fi
5307
5308if test ${enableval} = "yes" ; then
5309 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5310
5311else
5312 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5313
5314fi
5315
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005316
Reid Spencera773bd52006-08-04 18:18:08 +00005317ac_ext=c
5318ac_cpp='$CPP $CPPFLAGS'
5319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5321ac_compiler_gnu=$ac_cv_c_compiler_gnu
5322{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5323echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5324# On Suns, sometimes $CPP names a directory.
5325if test -n "$CPP" && test -d "$CPP"; then
5326 CPP=
5327fi
5328if test -z "$CPP"; then
5329 if test "${ac_cv_prog_CPP+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331else
5332 # Double quotes because CPP needs to be expanded
5333 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5334 do
5335 ac_preproc_ok=false
5336for ac_c_preproc_warn_flag in '' yes
5337do
5338 # Use a header file that comes with gcc, so configuring glibc
5339 # with a fresh cross-compiler works.
5340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5341 # <limits.h> exists even on freestanding compilers.
5342 # On the NeXT, cc -E runs the code through the compiler's parser,
5343 # not just through cpp. "Syntax error" is here to catch this case.
5344 cat >conftest.$ac_ext <<_ACEOF
5345/* confdefs.h. */
5346_ACEOF
5347cat confdefs.h >>conftest.$ac_ext
5348cat >>conftest.$ac_ext <<_ACEOF
5349/* end confdefs.h. */
5350#ifdef __STDC__
5351# include <limits.h>
5352#else
5353# include <assert.h>
5354#endif
5355 Syntax error
5356_ACEOF
5357if { (ac_try="$ac_cpp conftest.$ac_ext"
5358case "(($ac_try" in
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5361esac
5362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5364 ac_status=$?
5365 grep -v '^ *+' conftest.er1 >conftest.err
5366 rm -f conftest.er1
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005369 (exit $ac_status); } >/dev/null; then
5370 if test -s conftest.err; then
5371 ac_cpp_err=$ac_c_preproc_warn_flag
5372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5373 else
5374 ac_cpp_err=
5375 fi
5376else
5377 ac_cpp_err=yes
5378fi
5379if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005380 :
5381else
5382 echo "$as_me: failed program was:" >&5
5383sed 's/^/| /' conftest.$ac_ext >&5
5384
5385 # Broken: fails on valid input.
5386continue
5387fi
5388
5389rm -f conftest.err conftest.$ac_ext
5390
5391 # OK, works on sane cases. Now check whether nonexistent headers
5392 # can be detected and how.
5393 cat >conftest.$ac_ext <<_ACEOF
5394/* confdefs.h. */
5395_ACEOF
5396cat confdefs.h >>conftest.$ac_ext
5397cat >>conftest.$ac_ext <<_ACEOF
5398/* end confdefs.h. */
5399#include <ac_nonexistent.h>
5400_ACEOF
5401if { (ac_try="$ac_cpp conftest.$ac_ext"
5402case "(($ac_try" in
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5405esac
5406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5408 ac_status=$?
5409 grep -v '^ *+' conftest.er1 >conftest.err
5410 rm -f conftest.er1
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005413 (exit $ac_status); } >/dev/null; then
5414 if test -s conftest.err; then
5415 ac_cpp_err=$ac_c_preproc_warn_flag
5416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5417 else
5418 ac_cpp_err=
5419 fi
5420else
5421 ac_cpp_err=yes
5422fi
5423if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005424 # Broken: success on invalid input.
5425continue
5426else
5427 echo "$as_me: failed program was:" >&5
5428sed 's/^/| /' conftest.$ac_ext >&5
5429
5430 # Passes both tests.
5431ac_preproc_ok=:
5432break
5433fi
5434
5435rm -f conftest.err conftest.$ac_ext
5436
5437done
5438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5439rm -f conftest.err conftest.$ac_ext
5440if $ac_preproc_ok; then
5441 break
5442fi
5443
5444 done
5445 ac_cv_prog_CPP=$CPP
5446
5447fi
5448 CPP=$ac_cv_prog_CPP
5449else
5450 ac_cv_prog_CPP=$CPP
5451fi
5452{ echo "$as_me:$LINENO: result: $CPP" >&5
5453echo "${ECHO_T}$CPP" >&6; }
5454ac_preproc_ok=false
5455for ac_c_preproc_warn_flag in '' yes
5456do
5457 # Use a header file that comes with gcc, so configuring glibc
5458 # with a fresh cross-compiler works.
5459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5460 # <limits.h> exists even on freestanding compilers.
5461 # On the NeXT, cc -E runs the code through the compiler's parser,
5462 # not just through cpp. "Syntax error" is here to catch this case.
5463 cat >conftest.$ac_ext <<_ACEOF
5464/* confdefs.h. */
5465_ACEOF
5466cat confdefs.h >>conftest.$ac_ext
5467cat >>conftest.$ac_ext <<_ACEOF
5468/* end confdefs.h. */
5469#ifdef __STDC__
5470# include <limits.h>
5471#else
5472# include <assert.h>
5473#endif
5474 Syntax error
5475_ACEOF
5476if { (ac_try="$ac_cpp conftest.$ac_ext"
5477case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480esac
5481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005488 (exit $ac_status); } >/dev/null; then
5489 if test -s conftest.err; then
5490 ac_cpp_err=$ac_c_preproc_warn_flag
5491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5492 else
5493 ac_cpp_err=
5494 fi
5495else
5496 ac_cpp_err=yes
5497fi
5498if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005499 :
5500else
5501 echo "$as_me: failed program was:" >&5
5502sed 's/^/| /' conftest.$ac_ext >&5
5503
5504 # Broken: fails on valid input.
5505continue
5506fi
5507
5508rm -f conftest.err conftest.$ac_ext
5509
5510 # OK, works on sane cases. Now check whether nonexistent headers
5511 # can be detected and how.
5512 cat >conftest.$ac_ext <<_ACEOF
5513/* confdefs.h. */
5514_ACEOF
5515cat confdefs.h >>conftest.$ac_ext
5516cat >>conftest.$ac_ext <<_ACEOF
5517/* end confdefs.h. */
5518#include <ac_nonexistent.h>
5519_ACEOF
5520if { (ac_try="$ac_cpp conftest.$ac_ext"
5521case "(($ac_try" in
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5524esac
5525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5527 ac_status=$?
5528 grep -v '^ *+' conftest.er1 >conftest.err
5529 rm -f conftest.er1
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005532 (exit $ac_status); } >/dev/null; then
5533 if test -s conftest.err; then
5534 ac_cpp_err=$ac_c_preproc_warn_flag
5535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5536 else
5537 ac_cpp_err=
5538 fi
5539else
5540 ac_cpp_err=yes
5541fi
5542if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005543 # Broken: success on invalid input.
5544continue
5545else
5546 echo "$as_me: failed program was:" >&5
5547sed 's/^/| /' conftest.$ac_ext >&5
5548
5549 # Passes both tests.
5550ac_preproc_ok=:
5551break
5552fi
5553
5554rm -f conftest.err conftest.$ac_ext
5555
5556done
5557# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5558rm -f conftest.err conftest.$ac_ext
5559if $ac_preproc_ok; then
5560 :
5561else
5562 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5563See \`config.log' for more details." >&5
5564echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5565See \`config.log' for more details." >&2;}
5566 { (exit 1); exit 1; }; }
5567fi
5568
5569ac_ext=c
5570ac_cpp='$CPP $CPPFLAGS'
5571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573ac_compiler_gnu=$ac_cv_c_compiler_gnu
5574
5575ac_ext=c
5576ac_cpp='$CPP $CPPFLAGS'
5577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5579ac_compiler_gnu=$ac_cv_c_compiler_gnu
5580if test -n "$ac_tool_prefix"; then
5581 for ac_prog in gcc
5582 do
5583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5584set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5587if test "${ac_cv_prog_CC+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5589else
5590 if test -n "$CC"; then
5591 ac_cv_prog_CC="$CC" # Let the user override the test.
5592else
5593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594for as_dir in $PATH
5595do
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005599 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 +00005600 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5603 fi
5604done
5605done
5606IFS=$as_save_IFS
5607
5608fi
5609fi
5610CC=$ac_cv_prog_CC
5611if test -n "$CC"; then
5612 { echo "$as_me:$LINENO: result: $CC" >&5
5613echo "${ECHO_T}$CC" >&6; }
5614else
5615 { echo "$as_me:$LINENO: result: no" >&5
5616echo "${ECHO_T}no" >&6; }
5617fi
5618
5619
5620 test -n "$CC" && break
5621 done
5622fi
5623if test -z "$CC"; then
5624 ac_ct_CC=$CC
5625 for ac_prog in gcc
5626do
5627 # Extract the first word of "$ac_prog", so it can be a program name with args.
5628set dummy $ac_prog; ac_word=$2
5629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5631if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5633else
5634 if test -n "$ac_ct_CC"; then
5635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5636else
5637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638for as_dir in $PATH
5639do
5640 IFS=$as_save_IFS
5641 test -z "$as_dir" && as_dir=.
5642 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005643 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 +00005644 ac_cv_prog_ac_ct_CC="$ac_prog"
5645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 break 2
5647 fi
5648done
5649done
5650IFS=$as_save_IFS
5651
5652fi
5653fi
5654ac_ct_CC=$ac_cv_prog_ac_ct_CC
5655if test -n "$ac_ct_CC"; then
5656 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5657echo "${ECHO_T}$ac_ct_CC" >&6; }
5658else
5659 { echo "$as_me:$LINENO: result: no" >&5
5660echo "${ECHO_T}no" >&6; }
5661fi
5662
5663
5664 test -n "$ac_ct_CC" && break
5665done
5666
5667 if test "x$ac_ct_CC" = x; then
5668 CC=""
5669 else
5670 case $cross_compiling:$ac_tool_warned in
5671yes:)
5672{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5673whose name does not start with the host triplet. If you think this
5674configuration is useful to you, please write to autoconf@gnu.org." >&5
5675echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5676whose name does not start with the host triplet. If you think this
5677configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5678ac_tool_warned=yes ;;
5679esac
5680 CC=$ac_ct_CC
5681 fi
5682fi
5683
5684
5685test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5686See \`config.log' for more details." >&5
5687echo "$as_me: error: no acceptable C compiler found in \$PATH
5688See \`config.log' for more details." >&2;}
5689 { (exit 1); exit 1; }; }
5690
5691# Provide some information about the compiler.
5692echo "$as_me:$LINENO: checking for C compiler version" >&5
5693ac_compiler=`set X $ac_compile; echo $2`
5694{ (ac_try="$ac_compiler --version >&5"
5695case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698esac
5699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_compiler --version >&5") 2>&5
5701 ac_status=$?
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }
5704{ (ac_try="$ac_compiler -v >&5"
5705case "(($ac_try" in
5706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707 *) ac_try_echo=$ac_try;;
5708esac
5709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710 (eval "$ac_compiler -v >&5") 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }
5714{ (ac_try="$ac_compiler -V >&5"
5715case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5718esac
5719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_compiler -V >&5") 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }
5724
5725{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5726echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5727if test "${ac_cv_c_compiler_gnu+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730 cat >conftest.$ac_ext <<_ACEOF
5731/* confdefs.h. */
5732_ACEOF
5733cat confdefs.h >>conftest.$ac_ext
5734cat >>conftest.$ac_ext <<_ACEOF
5735/* end confdefs.h. */
5736
5737int
5738main ()
5739{
5740#ifndef __GNUC__
5741 choke me
5742#endif
5743
5744 ;
5745 return 0;
5746}
5747_ACEOF
5748rm -f conftest.$ac_objext
5749if { (ac_try="$ac_compile"
5750case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753esac
5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compile") 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005761 (exit $ac_status); } &&
5762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5763 { (case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766esac
5767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_try") 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; } &&
5772 { ac_try='test -s conftest.$ac_objext'
5773 { (case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5776esac
5777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_try") 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005782 ac_compiler_gnu=yes
5783else
5784 echo "$as_me: failed program was:" >&5
5785sed 's/^/| /' conftest.$ac_ext >&5
5786
5787 ac_compiler_gnu=no
5788fi
5789
5790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791ac_cv_c_compiler_gnu=$ac_compiler_gnu
5792
5793fi
5794{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5795echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5796GCC=`test $ac_compiler_gnu = yes && echo yes`
5797ac_test_CFLAGS=${CFLAGS+set}
5798ac_save_CFLAGS=$CFLAGS
5799{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5800echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5801if test "${ac_cv_prog_cc_g+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803else
5804 ac_save_c_werror_flag=$ac_c_werror_flag
5805 ac_c_werror_flag=yes
5806 ac_cv_prog_cc_g=no
5807 CFLAGS="-g"
5808 cat >conftest.$ac_ext <<_ACEOF
5809/* confdefs.h. */
5810_ACEOF
5811cat confdefs.h >>conftest.$ac_ext
5812cat >>conftest.$ac_ext <<_ACEOF
5813/* end confdefs.h. */
5814
5815int
5816main ()
5817{
5818
5819 ;
5820 return 0;
5821}
5822_ACEOF
5823rm -f conftest.$ac_objext
5824if { (ac_try="$ac_compile"
5825case "(($ac_try" in
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5828esac
5829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841esac
5842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest.$ac_objext'
5848 { (case "(($ac_try" in
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5851esac
5852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_try") 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005857 ac_cv_prog_cc_g=yes
5858else
5859 echo "$as_me: failed program was:" >&5
5860sed 's/^/| /' conftest.$ac_ext >&5
5861
5862 CFLAGS=""
5863 cat >conftest.$ac_ext <<_ACEOF
5864/* confdefs.h. */
5865_ACEOF
5866cat confdefs.h >>conftest.$ac_ext
5867cat >>conftest.$ac_ext <<_ACEOF
5868/* end confdefs.h. */
5869
5870int
5871main ()
5872{
5873
5874 ;
5875 return 0;
5876}
5877_ACEOF
5878rm -f conftest.$ac_objext
5879if { (ac_try="$ac_compile"
5880case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883esac
5884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_compile") 2>conftest.er1
5886 ac_status=$?
5887 grep -v '^ *+' conftest.er1 >conftest.err
5888 rm -f conftest.er1
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005891 (exit $ac_status); } &&
5892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5893 { (case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896esac
5897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_try") 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; } &&
5902 { ac_try='test -s conftest.$ac_objext'
5903 { (case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5906esac
5907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908 (eval "$ac_try") 2>&5
5909 ac_status=$?
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005912 :
5913else
5914 echo "$as_me: failed program was:" >&5
5915sed 's/^/| /' conftest.$ac_ext >&5
5916
5917 ac_c_werror_flag=$ac_save_c_werror_flag
5918 CFLAGS="-g"
5919 cat >conftest.$ac_ext <<_ACEOF
5920/* confdefs.h. */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5924/* end confdefs.h. */
5925
5926int
5927main ()
5928{
5929
5930 ;
5931 return 0;
5932}
5933_ACEOF
5934rm -f conftest.$ac_objext
5935if { (ac_try="$ac_compile"
5936case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939esac
5940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005947 (exit $ac_status); } &&
5948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5949 { (case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952esac
5953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_try") 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; } &&
5958 { ac_try='test -s conftest.$ac_objext'
5959 { (case "(($ac_try" in
5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5962esac
5963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964 (eval "$ac_try") 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005968 ac_cv_prog_cc_g=yes
5969else
5970 echo "$as_me: failed program was:" >&5
5971sed 's/^/| /' conftest.$ac_ext >&5
5972
5973
5974fi
5975
5976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977fi
5978
5979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980fi
5981
5982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 ac_c_werror_flag=$ac_save_c_werror_flag
5984fi
5985{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5986echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5987if test "$ac_test_CFLAGS" = set; then
5988 CFLAGS=$ac_save_CFLAGS
5989elif test $ac_cv_prog_cc_g = yes; then
5990 if test "$GCC" = yes; then
5991 CFLAGS="-g -O2"
5992 else
5993 CFLAGS="-g"
5994 fi
5995else
5996 if test "$GCC" = yes; then
5997 CFLAGS="-O2"
5998 else
5999 CFLAGS=
6000 fi
6001fi
6002{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6003echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6004if test "${ac_cv_prog_cc_c89+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006else
6007 ac_cv_prog_cc_c89=no
6008ac_save_CC=$CC
6009cat >conftest.$ac_ext <<_ACEOF
6010/* confdefs.h. */
6011_ACEOF
6012cat confdefs.h >>conftest.$ac_ext
6013cat >>conftest.$ac_ext <<_ACEOF
6014/* end confdefs.h. */
6015#include <stdarg.h>
6016#include <stdio.h>
6017#include <sys/types.h>
6018#include <sys/stat.h>
6019/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6020struct buf { int x; };
6021FILE * (*rcsopen) (struct buf *, struct stat *, int);
6022static char *e (p, i)
6023 char **p;
6024 int i;
6025{
6026 return p[i];
6027}
6028static char *f (char * (*g) (char **, int), char **p, ...)
6029{
6030 char *s;
6031 va_list v;
6032 va_start (v,p);
6033 s = g (p, va_arg (v,int));
6034 va_end (v);
6035 return s;
6036}
6037
6038/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6039 function prototypes and stuff, but not '\xHH' hex character constants.
6040 These don't provoke an error unfortunately, instead are silently treated
6041 as 'x'. The following induces an error, until -std is added to get
6042 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6043 array size at least. It's necessary to write '\x00'==0 to get something
6044 that's true only with -std. */
6045int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6046
6047/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6048 inside strings and character constants. */
6049#define FOO(x) 'x'
6050int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6051
6052int test (int i, double x);
6053struct s1 {int (*f) (int a);};
6054struct s2 {int (*f) (double a);};
6055int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6056int argc;
6057char **argv;
6058int
6059main ()
6060{
6061return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6062 ;
6063 return 0;
6064}
6065_ACEOF
6066for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6067 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6068do
6069 CC="$ac_save_CC $ac_arg"
6070 rm -f conftest.$ac_objext
6071if { (ac_try="$ac_compile"
6072case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075esac
6076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_compile") 2>conftest.er1
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006083 (exit $ac_status); } &&
6084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6085 { (case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088esac
6089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_try") 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; } &&
6094 { ac_try='test -s conftest.$ac_objext'
6095 { (case "(($ac_try" in
6096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6097 *) ac_try_echo=$ac_try;;
6098esac
6099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6100 (eval "$ac_try") 2>&5
6101 ac_status=$?
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006104 ac_cv_prog_cc_c89=$ac_arg
6105else
6106 echo "$as_me: failed program was:" >&5
6107sed 's/^/| /' conftest.$ac_ext >&5
6108
6109
6110fi
6111
6112rm -f core conftest.err conftest.$ac_objext
6113 test "x$ac_cv_prog_cc_c89" != "xno" && break
6114done
6115rm -f conftest.$ac_ext
6116CC=$ac_save_CC
6117
6118fi
6119# AC_CACHE_VAL
6120case "x$ac_cv_prog_cc_c89" in
6121 x)
6122 { echo "$as_me:$LINENO: result: none needed" >&5
6123echo "${ECHO_T}none needed" >&6; } ;;
6124 xno)
6125 { echo "$as_me:$LINENO: result: unsupported" >&5
6126echo "${ECHO_T}unsupported" >&6; } ;;
6127 *)
6128 CC="$CC $ac_cv_prog_cc_c89"
6129 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6130echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6131esac
6132
6133
6134ac_ext=c
6135ac_cpp='$CPP $CPPFLAGS'
6136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138ac_compiler_gnu=$ac_cv_c_compiler_gnu
6139
6140ac_ext=cpp
6141ac_cpp='$CXXCPP $CPPFLAGS'
6142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6145if test -z "$CXX"; then
6146 if test -n "$CCC"; then
6147 CXX=$CCC
6148 else
6149 if test -n "$ac_tool_prefix"; then
6150 for ac_prog in g++
6151 do
6152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6153set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6154{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6156if test "${ac_cv_prog_CXX+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158else
6159 if test -n "$CXX"; then
6160 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6161else
6162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163for as_dir in $PATH
6164do
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006168 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 +00006169 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6172 fi
6173done
6174done
6175IFS=$as_save_IFS
6176
6177fi
6178fi
6179CXX=$ac_cv_prog_CXX
6180if test -n "$CXX"; then
6181 { echo "$as_me:$LINENO: result: $CXX" >&5
6182echo "${ECHO_T}$CXX" >&6; }
6183else
6184 { echo "$as_me:$LINENO: result: no" >&5
6185echo "${ECHO_T}no" >&6; }
6186fi
6187
6188
6189 test -n "$CXX" && break
6190 done
6191fi
6192if test -z "$CXX"; then
6193 ac_ct_CXX=$CXX
6194 for ac_prog in g++
6195do
6196 # Extract the first word of "$ac_prog", so it can be a program name with args.
6197set dummy $ac_prog; ac_word=$2
6198{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6200if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202else
6203 if test -n "$ac_ct_CXX"; then
6204 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6205else
6206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207for as_dir in $PATH
6208do
6209 IFS=$as_save_IFS
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006212 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 +00006213 ac_cv_prog_ac_ct_CXX="$ac_prog"
6214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 break 2
6216 fi
6217done
6218done
6219IFS=$as_save_IFS
6220
6221fi
6222fi
6223ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6224if test -n "$ac_ct_CXX"; then
6225 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6226echo "${ECHO_T}$ac_ct_CXX" >&6; }
6227else
6228 { echo "$as_me:$LINENO: result: no" >&5
6229echo "${ECHO_T}no" >&6; }
6230fi
6231
6232
6233 test -n "$ac_ct_CXX" && break
6234done
6235
6236 if test "x$ac_ct_CXX" = x; then
6237 CXX="g++"
6238 else
6239 case $cross_compiling:$ac_tool_warned in
6240yes:)
6241{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6242whose name does not start with the host triplet. If you think this
6243configuration is useful to you, please write to autoconf@gnu.org." >&5
6244echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6245whose name does not start with the host triplet. If you think this
6246configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6247ac_tool_warned=yes ;;
6248esac
6249 CXX=$ac_ct_CXX
6250 fi
6251fi
6252
6253 fi
6254fi
6255# Provide some information about the compiler.
6256echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6257ac_compiler=`set X $ac_compile; echo $2`
6258{ (ac_try="$ac_compiler --version >&5"
6259case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6262esac
6263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_compiler --version >&5") 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }
6268{ (ac_try="$ac_compiler -v >&5"
6269case "(($ac_try" in
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6272esac
6273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274 (eval "$ac_compiler -v >&5") 2>&5
6275 ac_status=$?
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }
6278{ (ac_try="$ac_compiler -V >&5"
6279case "(($ac_try" in
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6282esac
6283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_compiler -V >&5") 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }
6288
6289{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6290echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6291if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6293else
6294 cat >conftest.$ac_ext <<_ACEOF
6295/* confdefs.h. */
6296_ACEOF
6297cat confdefs.h >>conftest.$ac_ext
6298cat >>conftest.$ac_ext <<_ACEOF
6299/* end confdefs.h. */
6300
6301int
6302main ()
6303{
6304#ifndef __GNUC__
6305 choke me
6306#endif
6307
6308 ;
6309 return 0;
6310}
6311_ACEOF
6312rm -f conftest.$ac_objext
6313if { (ac_try="$ac_compile"
6314case "(($ac_try" in
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6317esac
6318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319 (eval "$ac_compile") 2>conftest.er1
6320 ac_status=$?
6321 grep -v '^ *+' conftest.er1 >conftest.err
6322 rm -f conftest.er1
6323 cat conftest.err >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006325 (exit $ac_status); } &&
6326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6327 { (case "(($ac_try" in
6328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329 *) ac_try_echo=$ac_try;;
6330esac
6331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332 (eval "$ac_try") 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; } &&
6336 { ac_try='test -s conftest.$ac_objext'
6337 { (case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6340esac
6341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_try") 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006346 ac_compiler_gnu=yes
6347else
6348 echo "$as_me: failed program was:" >&5
6349sed 's/^/| /' conftest.$ac_ext >&5
6350
6351 ac_compiler_gnu=no
6352fi
6353
6354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6356
6357fi
6358{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6359echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6360GXX=`test $ac_compiler_gnu = yes && echo yes`
6361ac_test_CXXFLAGS=${CXXFLAGS+set}
6362ac_save_CXXFLAGS=$CXXFLAGS
6363{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6364echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6365if test "${ac_cv_prog_cxx_g+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6367else
6368 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6369 ac_cxx_werror_flag=yes
6370 ac_cv_prog_cxx_g=no
6371 CXXFLAGS="-g"
6372 cat >conftest.$ac_ext <<_ACEOF
6373/* confdefs.h. */
6374_ACEOF
6375cat confdefs.h >>conftest.$ac_ext
6376cat >>conftest.$ac_ext <<_ACEOF
6377/* end confdefs.h. */
6378
6379int
6380main ()
6381{
6382
6383 ;
6384 return 0;
6385}
6386_ACEOF
6387rm -f conftest.$ac_objext
6388if { (ac_try="$ac_compile"
6389case "(($ac_try" in
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6392esac
6393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_compile") 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006400 (exit $ac_status); } &&
6401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6402 { (case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6405esac
6406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_try") 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; } &&
6411 { ac_try='test -s conftest.$ac_objext'
6412 { (case "(($ac_try" in
6413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6415esac
6416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417 (eval "$ac_try") 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006421 ac_cv_prog_cxx_g=yes
6422else
6423 echo "$as_me: failed program was:" >&5
6424sed 's/^/| /' conftest.$ac_ext >&5
6425
6426 CXXFLAGS=""
6427 cat >conftest.$ac_ext <<_ACEOF
6428/* confdefs.h. */
6429_ACEOF
6430cat confdefs.h >>conftest.$ac_ext
6431cat >>conftest.$ac_ext <<_ACEOF
6432/* end confdefs.h. */
6433
6434int
6435main ()
6436{
6437
6438 ;
6439 return 0;
6440}
6441_ACEOF
6442rm -f conftest.$ac_objext
6443if { (ac_try="$ac_compile"
6444case "(($ac_try" in
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6447esac
6448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449 (eval "$ac_compile") 2>conftest.er1
6450 ac_status=$?
6451 grep -v '^ *+' conftest.er1 >conftest.err
6452 rm -f conftest.er1
6453 cat conftest.err >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006455 (exit $ac_status); } &&
6456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6457 { (case "(($ac_try" in
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6460esac
6461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462 (eval "$ac_try") 2>&5
6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; } &&
6466 { ac_try='test -s conftest.$ac_objext'
6467 { (case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6470esac
6471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_try") 2>&5
6473 ac_status=$?
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006476 :
6477else
6478 echo "$as_me: failed program was:" >&5
6479sed 's/^/| /' conftest.$ac_ext >&5
6480
6481 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6482 CXXFLAGS="-g"
6483 cat >conftest.$ac_ext <<_ACEOF
6484/* confdefs.h. */
6485_ACEOF
6486cat confdefs.h >>conftest.$ac_ext
6487cat >>conftest.$ac_ext <<_ACEOF
6488/* end confdefs.h. */
6489
6490int
6491main ()
6492{
6493
6494 ;
6495 return 0;
6496}
6497_ACEOF
6498rm -f conftest.$ac_objext
6499if { (ac_try="$ac_compile"
6500case "(($ac_try" in
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6503esac
6504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_compile") 2>conftest.er1
6506 ac_status=$?
6507 grep -v '^ *+' conftest.er1 >conftest.err
6508 rm -f conftest.er1
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006511 (exit $ac_status); } &&
6512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6513 { (case "(($ac_try" in
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6516esac
6517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518 (eval "$ac_try") 2>&5
6519 ac_status=$?
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; } &&
6522 { ac_try='test -s conftest.$ac_objext'
6523 { (case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526esac
6527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_try") 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006532 ac_cv_prog_cxx_g=yes
6533else
6534 echo "$as_me: failed program was:" >&5
6535sed 's/^/| /' conftest.$ac_ext >&5
6536
6537
6538fi
6539
6540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541fi
6542
6543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544fi
6545
6546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6548fi
6549{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6550echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6551if test "$ac_test_CXXFLAGS" = set; then
6552 CXXFLAGS=$ac_save_CXXFLAGS
6553elif test $ac_cv_prog_cxx_g = yes; then
6554 if test "$GXX" = yes; then
6555 CXXFLAGS="-g -O2"
6556 else
6557 CXXFLAGS="-g"
6558 fi
6559else
6560 if test "$GXX" = yes; then
6561 CXXFLAGS="-O2"
6562 else
6563 CXXFLAGS=
6564 fi
6565fi
6566ac_ext=c
6567ac_cpp='$CPP $CPPFLAGS'
6568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6570ac_compiler_gnu=$ac_cv_c_compiler_gnu
6571
Reid Spencera773bd52006-08-04 18:18:08 +00006572
6573{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6574echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6575if test "${lt_cv_path_NM+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577else
6578 if test -n "$NM"; then
6579 # Let the user override the test.
6580 lt_cv_path_NM="$NM"
6581else
6582 lt_nm_to_check="${ac_tool_prefix}nm"
6583 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6584 lt_nm_to_check="$lt_nm_to_check nm"
6585 fi
6586 for lt_tmp_nm in $lt_nm_to_check; do
6587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6588 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6589 IFS="$lt_save_ifs"
6590 test -z "$ac_dir" && ac_dir=.
6591 tmp_nm="$ac_dir/$lt_tmp_nm"
6592 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6593 # Check to see if the nm accepts a BSD-compat flag.
6594 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6595 # nm: unknown option "B" ignored
6596 # Tru64's nm complains that /dev/null is an invalid object file
6597 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6598 */dev/null* | *'Invalid file or object type'*)
6599 lt_cv_path_NM="$tmp_nm -B"
6600 break
6601 ;;
6602 *)
6603 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6604 */dev/null*)
6605 lt_cv_path_NM="$tmp_nm -p"
6606 break
6607 ;;
6608 *)
6609 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6610 continue # so that we can try to find one that supports BSD flags
6611 ;;
6612 esac
6613 ;;
6614 esac
6615 fi
6616 done
6617 IFS="$lt_save_ifs"
6618 done
6619 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6620fi
6621fi
6622{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6623echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6624NM="$lt_cv_path_NM"
6625
6626
6627
6628{ echo "$as_me:$LINENO: checking for GNU make" >&5
6629echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6630if test "${llvm_cv_gnu_make_command+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632else
6633 llvm_cv_gnu_make_command=''
6634 for a in "$MAKE" make gmake gnumake ; do
6635 if test -z "$a" ; then continue ; fi ;
6636 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6637 then
6638 llvm_cv_gnu_make_command=$a ;
6639 break;
6640 fi
6641 done
6642fi
6643{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6644echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6645 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6646 ifGNUmake='' ;
6647 else
6648 ifGNUmake='#' ;
6649 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6650echo "${ECHO_T}\"Not found\"" >&6; };
6651 fi
6652
6653
6654{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6655echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6656LN_S=$as_ln_s
6657if test "$LN_S" = "ln -s"; then
6658 { echo "$as_me:$LINENO: result: yes" >&5
6659echo "${ECHO_T}yes" >&6; }
6660else
6661 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6662echo "${ECHO_T}no, using $LN_S" >&6; }
6663fi
6664
6665# Extract the first word of "cmp", so it can be a program name with args.
6666set dummy cmp; ac_word=$2
6667{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669if test "${ac_cv_path_CMP+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6671else
6672 case $CMP in
6673 [\\/]* | ?:[\\/]*)
6674 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6675 ;;
6676 *)
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006683 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 +00006684 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688done
6689done
6690IFS=$as_save_IFS
6691
6692 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6693 ;;
6694esac
6695fi
6696CMP=$ac_cv_path_CMP
6697if test -n "$CMP"; then
6698 { echo "$as_me:$LINENO: result: $CMP" >&5
6699echo "${ECHO_T}$CMP" >&6; }
6700else
6701 { echo "$as_me:$LINENO: result: no" >&5
6702echo "${ECHO_T}no" >&6; }
6703fi
6704
6705
6706# Extract the first word of "cp", so it can be a program name with args.
6707set dummy cp; ac_word=$2
6708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710if test "${ac_cv_path_CP+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6712else
6713 case $CP in
6714 [\\/]* | ?:[\\/]*)
6715 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6716 ;;
6717 *)
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719for as_dir in $PATH
6720do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006724 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 +00006725 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729done
6730done
6731IFS=$as_save_IFS
6732
6733 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6734 ;;
6735esac
6736fi
6737CP=$ac_cv_path_CP
6738if test -n "$CP"; then
6739 { echo "$as_me:$LINENO: result: $CP" >&5
6740echo "${ECHO_T}$CP" >&6; }
6741else
6742 { echo "$as_me:$LINENO: result: no" >&5
6743echo "${ECHO_T}no" >&6; }
6744fi
6745
6746
6747# Extract the first word of "date", so it can be a program name with args.
6748set dummy date; ac_word=$2
6749{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751if test "${ac_cv_path_DATE+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6753else
6754 case $DATE in
6755 [\\/]* | ?:[\\/]*)
6756 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6757 ;;
6758 *)
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760for as_dir in $PATH
6761do
6762 IFS=$as_save_IFS
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006765 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 +00006766 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768 break 2
6769 fi
6770done
6771done
6772IFS=$as_save_IFS
6773
6774 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6775 ;;
6776esac
6777fi
6778DATE=$ac_cv_path_DATE
6779if test -n "$DATE"; then
6780 { echo "$as_me:$LINENO: result: $DATE" >&5
6781echo "${ECHO_T}$DATE" >&6; }
6782else
6783 { echo "$as_me:$LINENO: result: no" >&5
6784echo "${ECHO_T}no" >&6; }
6785fi
6786
6787
6788# Extract the first word of "find", so it can be a program name with args.
6789set dummy find; ac_word=$2
6790{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792if test "${ac_cv_path_FIND+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794else
6795 case $FIND in
6796 [\\/]* | ?:[\\/]*)
6797 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6798 ;;
6799 *)
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006806 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 +00006807 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6810 fi
6811done
6812done
6813IFS=$as_save_IFS
6814
6815 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6816 ;;
6817esac
6818fi
6819FIND=$ac_cv_path_FIND
6820if test -n "$FIND"; then
6821 { echo "$as_me:$LINENO: result: $FIND" >&5
6822echo "${ECHO_T}$FIND" >&6; }
6823else
6824 { echo "$as_me:$LINENO: result: no" >&5
6825echo "${ECHO_T}no" >&6; }
6826fi
6827
6828
6829# Extract the first word of "grep", so it can be a program name with args.
6830set dummy grep; ac_word=$2
6831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833if test "${ac_cv_path_GREP+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6835else
6836 case $GREP in
6837 [\\/]* | ?:[\\/]*)
6838 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6839 ;;
6840 *)
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842for as_dir in $PATH
6843do
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006847 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 +00006848 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6851 fi
6852done
6853done
6854IFS=$as_save_IFS
6855
6856 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6857 ;;
6858esac
6859fi
6860GREP=$ac_cv_path_GREP
6861if test -n "$GREP"; then
6862 { echo "$as_me:$LINENO: result: $GREP" >&5
6863echo "${ECHO_T}$GREP" >&6; }
6864else
6865 { echo "$as_me:$LINENO: result: no" >&5
6866echo "${ECHO_T}no" >&6; }
6867fi
6868
6869
6870# Extract the first word of "mkdir", so it can be a program name with args.
6871set dummy mkdir; ac_word=$2
6872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874if test "${ac_cv_path_MKDIR+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876else
6877 case $MKDIR in
6878 [\\/]* | ?:[\\/]*)
6879 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6880 ;;
6881 *)
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006888 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 +00006889 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893done
6894done
6895IFS=$as_save_IFS
6896
6897 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6898 ;;
6899esac
6900fi
6901MKDIR=$ac_cv_path_MKDIR
6902if test -n "$MKDIR"; then
6903 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6904echo "${ECHO_T}$MKDIR" >&6; }
6905else
6906 { echo "$as_me:$LINENO: result: no" >&5
6907echo "${ECHO_T}no" >&6; }
6908fi
6909
6910
6911# Extract the first word of "mv", so it can be a program name with args.
6912set dummy mv; ac_word=$2
6913{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915if test "${ac_cv_path_MV+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6917else
6918 case $MV in
6919 [\\/]* | ?:[\\/]*)
6920 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6921 ;;
6922 *)
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924for as_dir in $PATH
6925do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006929 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 +00006930 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6933 fi
6934done
6935done
6936IFS=$as_save_IFS
6937
6938 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6939 ;;
6940esac
6941fi
6942MV=$ac_cv_path_MV
6943if test -n "$MV"; then
6944 { echo "$as_me:$LINENO: result: $MV" >&5
6945echo "${ECHO_T}$MV" >&6; }
6946else
6947 { echo "$as_me:$LINENO: result: no" >&5
6948echo "${ECHO_T}no" >&6; }
6949fi
6950
6951
6952if test -n "$ac_tool_prefix"; then
6953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6954set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6955{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6957if test "${ac_cv_prog_RANLIB+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6959else
6960 if test -n "$RANLIB"; then
6961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6962else
6963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964for as_dir in $PATH
6965do
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006969 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 +00006970 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 break 2
6973 fi
6974done
6975done
6976IFS=$as_save_IFS
6977
6978fi
6979fi
6980RANLIB=$ac_cv_prog_RANLIB
6981if test -n "$RANLIB"; then
6982 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6983echo "${ECHO_T}$RANLIB" >&6; }
6984else
6985 { echo "$as_me:$LINENO: result: no" >&5
6986echo "${ECHO_T}no" >&6; }
6987fi
6988
6989
6990fi
6991if test -z "$ac_cv_prog_RANLIB"; then
6992 ac_ct_RANLIB=$RANLIB
6993 # Extract the first word of "ranlib", so it can be a program name with args.
6994set dummy ranlib; ac_word=$2
6995{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999else
7000 if test -n "$ac_ct_RANLIB"; then
7001 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7002else
7003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
7005do
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007009 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 +00007010 ac_cv_prog_ac_ct_RANLIB="ranlib"
7011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
7013 fi
7014done
7015done
7016IFS=$as_save_IFS
7017
7018fi
7019fi
7020ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7021if test -n "$ac_ct_RANLIB"; then
7022 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7023echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7024else
7025 { echo "$as_me:$LINENO: result: no" >&5
7026echo "${ECHO_T}no" >&6; }
7027fi
7028
7029 if test "x$ac_ct_RANLIB" = x; then
7030 RANLIB=":"
7031 else
7032 case $cross_compiling:$ac_tool_warned in
7033yes:)
7034{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7035whose name does not start with the host triplet. If you think this
7036configuration is useful to you, please write to autoconf@gnu.org." >&5
7037echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7038whose name does not start with the host triplet. If you think this
7039configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7040ac_tool_warned=yes ;;
7041esac
7042 RANLIB=$ac_ct_RANLIB
7043 fi
7044else
7045 RANLIB="$ac_cv_prog_RANLIB"
7046fi
7047
7048# Extract the first word of "rm", so it can be a program name with args.
7049set dummy rm; ac_word=$2
7050{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7052if test "${ac_cv_path_RM+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7054else
7055 case $RM in
7056 [\\/]* | ?:[\\/]*)
7057 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7058 ;;
7059 *)
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061for as_dir in $PATH
7062do
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007066 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 +00007067 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 break 2
7070 fi
7071done
7072done
7073IFS=$as_save_IFS
7074
7075 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7076 ;;
7077esac
7078fi
7079RM=$ac_cv_path_RM
7080if test -n "$RM"; then
7081 { echo "$as_me:$LINENO: result: $RM" >&5
7082echo "${ECHO_T}$RM" >&6; }
7083else
7084 { echo "$as_me:$LINENO: result: no" >&5
7085echo "${ECHO_T}no" >&6; }
7086fi
7087
7088
7089# Extract the first word of "sed", so it can be a program name with args.
7090set dummy sed; ac_word=$2
7091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7093if test "${ac_cv_path_SED+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095else
7096 case $SED in
7097 [\\/]* | ?:[\\/]*)
7098 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7099 ;;
7100 *)
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102for as_dir in $PATH
7103do
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007107 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 +00007108 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7111 fi
7112done
7113done
7114IFS=$as_save_IFS
7115
7116 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7117 ;;
7118esac
7119fi
7120SED=$ac_cv_path_SED
7121if test -n "$SED"; then
7122 { echo "$as_me:$LINENO: result: $SED" >&5
7123echo "${ECHO_T}$SED" >&6; }
7124else
7125 { echo "$as_me:$LINENO: result: no" >&5
7126echo "${ECHO_T}no" >&6; }
7127fi
7128
7129
7130# Extract the first word of "tar", so it can be a program name with args.
7131set dummy tar; ac_word=$2
7132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134if test "${ac_cv_path_TAR+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7136else
7137 case $TAR in
7138 [\\/]* | ?:[\\/]*)
7139 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7140 ;;
7141 *)
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143for as_dir in $PATH
7144do
7145 IFS=$as_save_IFS
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007148 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 +00007149 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 break 2
7152 fi
7153done
7154done
7155IFS=$as_save_IFS
7156
7157 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7158 ;;
7159esac
7160fi
7161TAR=$ac_cv_path_TAR
7162if test -n "$TAR"; then
7163 { echo "$as_me:$LINENO: result: $TAR" >&5
7164echo "${ECHO_T}$TAR" >&6; }
7165else
7166 { echo "$as_me:$LINENO: result: no" >&5
7167echo "${ECHO_T}no" >&6; }
7168fi
7169
7170
7171# Extract the first word of "pwd", so it can be a program name with args.
7172set dummy pwd; ac_word=$2
7173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7175if test "${ac_cv_path_BINPWD+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7177else
7178 case $BINPWD in
7179 [\\/]* | ?:[\\/]*)
7180 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7181 ;;
7182 *)
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007189 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 +00007190 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 break 2
7193 fi
7194done
7195done
7196IFS=$as_save_IFS
7197
7198 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7199 ;;
7200esac
7201fi
7202BINPWD=$ac_cv_path_BINPWD
7203if test -n "$BINPWD"; then
7204 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7205echo "${ECHO_T}$BINPWD" >&6; }
7206else
7207 { echo "$as_me:$LINENO: result: no" >&5
7208echo "${ECHO_T}no" >&6; }
7209fi
7210
7211
7212
7213# Extract the first word of "Graphviz", so it can be a program name with args.
7214set dummy Graphviz; ac_word=$2
7215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7219else
7220 case $GRAPHVIZ in
7221 [\\/]* | ?:[\\/]*)
7222 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7223 ;;
7224 *)
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226for as_dir in $PATH
7227do
7228 IFS=$as_save_IFS
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007231 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 +00007232 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 break 2
7235 fi
7236done
7237done
7238IFS=$as_save_IFS
7239
7240 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7241 ;;
7242esac
7243fi
7244GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7245if test -n "$GRAPHVIZ"; then
7246 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7247echo "${ECHO_T}$GRAPHVIZ" >&6; }
7248else
7249 { echo "$as_me:$LINENO: result: no" >&5
7250echo "${ECHO_T}no" >&6; }
7251fi
7252
7253
7254if test "$GRAPHVIZ" != "echo Graphviz" ; then
7255
7256cat >>confdefs.h <<\_ACEOF
7257#define HAVE_GRAPHVIZ 1
7258_ACEOF
7259
Jeff Cohen28783c32007-01-12 18:22:38 +00007260 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007261 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7262 fi
7263
7264cat >>confdefs.h <<_ACEOF
7265#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7266_ACEOF
7267
7268fi
7269# Extract the first word of "dot", so it can be a program name with args.
7270set dummy dot; ac_word=$2
7271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7273if test "${ac_cv_path_DOT+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275else
7276 case $DOT in
7277 [\\/]* | ?:[\\/]*)
7278 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7279 ;;
7280 *)
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282for as_dir in $PATH
7283do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007287 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 +00007288 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292done
7293done
7294IFS=$as_save_IFS
7295
7296 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7297 ;;
7298esac
7299fi
7300DOT=$ac_cv_path_DOT
7301if test -n "$DOT"; then
7302 { echo "$as_me:$LINENO: result: $DOT" >&5
7303echo "${ECHO_T}$DOT" >&6; }
7304else
7305 { echo "$as_me:$LINENO: result: no" >&5
7306echo "${ECHO_T}no" >&6; }
7307fi
7308
7309
7310if test "$DOT" != "echo dot" ; then
7311
7312cat >>confdefs.h <<\_ACEOF
7313#define HAVE_DOT 1
7314_ACEOF
7315
Jeff Cohen28783c32007-01-12 18:22:38 +00007316 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007317 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7318 fi
7319
7320cat >>confdefs.h <<_ACEOF
7321#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7322_ACEOF
7323
7324fi
David Greenef0b9eff2009-07-09 17:16:26 +00007325# Extract the first word of "fdp", so it can be a program name with args.
7326set dummy fdp; ac_word=$2
7327{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329if test "${ac_cv_path_FDP+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7331else
7332 case $FDP in
7333 [\\/]* | ?:[\\/]*)
7334 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7335 ;;
7336 *)
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 break 2
7347 fi
7348done
7349done
7350IFS=$as_save_IFS
7351
7352 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7353 ;;
7354esac
7355fi
7356FDP=$ac_cv_path_FDP
7357if test -n "$FDP"; then
7358 { echo "$as_me:$LINENO: result: $FDP" >&5
7359echo "${ECHO_T}$FDP" >&6; }
7360else
7361 { echo "$as_me:$LINENO: result: no" >&5
7362echo "${ECHO_T}no" >&6; }
7363fi
7364
7365
7366if test "$FDP" != "echo fdp" ; then
7367
7368cat >>confdefs.h <<\_ACEOF
7369#define HAVE_FDP 1
7370_ACEOF
7371
7372 if test "$llvm_cv_os_type" = "MingW" ; then
7373 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7374 fi
7375
7376cat >>confdefs.h <<_ACEOF
7377#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7378_ACEOF
7379
7380fi
7381# Extract the first word of "neato", so it can be a program name with args.
7382set dummy neato; ac_word=$2
7383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385if test "${ac_cv_path_NEATO+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7387else
7388 case $NEATO in
7389 [\\/]* | ?:[\\/]*)
7390 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7391 ;;
7392 *)
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394for as_dir in $PATH
7395do
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7400 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7403 fi
7404done
7405done
7406IFS=$as_save_IFS
7407
7408 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7409 ;;
7410esac
7411fi
7412NEATO=$ac_cv_path_NEATO
7413if test -n "$NEATO"; then
7414 { echo "$as_me:$LINENO: result: $NEATO" >&5
7415echo "${ECHO_T}$NEATO" >&6; }
7416else
7417 { echo "$as_me:$LINENO: result: no" >&5
7418echo "${ECHO_T}no" >&6; }
7419fi
7420
7421
7422if test "$NEATO" != "echo neato" ; then
7423
7424cat >>confdefs.h <<\_ACEOF
7425#define HAVE_NEATO 1
7426_ACEOF
7427
7428 if test "$llvm_cv_os_type" = "MingW" ; then
7429 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7430 fi
7431
7432cat >>confdefs.h <<_ACEOF
7433#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7434_ACEOF
7435
7436fi
7437# Extract the first word of "twopi", so it can be a program name with args.
7438set dummy twopi; ac_word=$2
7439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441if test "${ac_cv_path_TWOPI+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443else
7444 case $TWOPI in
7445 [\\/]* | ?:[\\/]*)
7446 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7447 ;;
7448 *)
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450for as_dir in $PATH
7451do
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7456 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 break 2
7459 fi
7460done
7461done
7462IFS=$as_save_IFS
7463
7464 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7465 ;;
7466esac
7467fi
7468TWOPI=$ac_cv_path_TWOPI
7469if test -n "$TWOPI"; then
7470 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7471echo "${ECHO_T}$TWOPI" >&6; }
7472else
7473 { echo "$as_me:$LINENO: result: no" >&5
7474echo "${ECHO_T}no" >&6; }
7475fi
7476
7477
7478if test "$TWOPI" != "echo twopi" ; then
7479
7480cat >>confdefs.h <<\_ACEOF
7481#define HAVE_TWOPI 1
7482_ACEOF
7483
7484 if test "$llvm_cv_os_type" = "MingW" ; then
7485 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7486 fi
7487
7488cat >>confdefs.h <<_ACEOF
7489#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7490_ACEOF
7491
7492fi
7493# Extract the first word of "circo", so it can be a program name with args.
7494set dummy circo; ac_word=$2
7495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497if test "${ac_cv_path_CIRCO+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7499else
7500 case $CIRCO in
7501 [\\/]* | ?:[\\/]*)
7502 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7503 ;;
7504 *)
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506for as_dir in $PATH
7507do
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7512 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 break 2
7515 fi
7516done
7517done
7518IFS=$as_save_IFS
7519
7520 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7521 ;;
7522esac
7523fi
7524CIRCO=$ac_cv_path_CIRCO
7525if test -n "$CIRCO"; then
7526 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7527echo "${ECHO_T}$CIRCO" >&6; }
7528else
7529 { echo "$as_me:$LINENO: result: no" >&5
7530echo "${ECHO_T}no" >&6; }
7531fi
7532
7533
7534if test "$CIRCO" != "echo circo" ; then
7535
7536cat >>confdefs.h <<\_ACEOF
7537#define HAVE_CIRCO 1
7538_ACEOF
7539
7540 if test "$llvm_cv_os_type" = "MingW" ; then
7541 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7542 fi
7543
7544cat >>confdefs.h <<_ACEOF
7545#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7546_ACEOF
7547
7548fi
Reid Spencera773bd52006-08-04 18:18:08 +00007549for ac_prog in gv gsview32
7550do
7551 # Extract the first word of "$ac_prog", so it can be a program name with args.
7552set dummy $ac_prog; ac_word=$2
7553{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555if test "${ac_cv_path_GV+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557else
7558 case $GV in
7559 [\\/]* | ?:[\\/]*)
7560 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7561 ;;
7562 *)
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564for as_dir in $PATH
7565do
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007569 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 +00007570 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 break 2
7573 fi
7574done
7575done
7576IFS=$as_save_IFS
7577
7578 ;;
7579esac
7580fi
7581GV=$ac_cv_path_GV
7582if test -n "$GV"; then
7583 { echo "$as_me:$LINENO: result: $GV" >&5
7584echo "${ECHO_T}$GV" >&6; }
7585else
7586 { echo "$as_me:$LINENO: result: no" >&5
7587echo "${ECHO_T}no" >&6; }
7588fi
7589
7590
7591 test -n "$GV" && break
7592done
7593test -n "$GV" || GV="echo gv"
7594
7595if test "$GV" != "echo gv" ; then
7596
7597cat >>confdefs.h <<\_ACEOF
7598#define HAVE_GV 1
7599_ACEOF
7600
Jeff Cohen28783c32007-01-12 18:22:38 +00007601 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007602 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7603 fi
7604
7605cat >>confdefs.h <<_ACEOF
7606#define LLVM_PATH_GV "$GV${EXEEXT}"
7607_ACEOF
7608
7609fi
7610# Extract the first word of "dotty", so it can be a program name with args.
7611set dummy dotty; ac_word=$2
7612{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7614if test "${ac_cv_path_DOTTY+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7616else
7617 case $DOTTY in
7618 [\\/]* | ?:[\\/]*)
7619 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7620 ;;
7621 *)
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623for as_dir in $PATH
7624do
7625 IFS=$as_save_IFS
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007628 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 +00007629 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 break 2
7632 fi
7633done
7634done
7635IFS=$as_save_IFS
7636
7637 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7638 ;;
7639esac
7640fi
7641DOTTY=$ac_cv_path_DOTTY
7642if test -n "$DOTTY"; then
7643 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7644echo "${ECHO_T}$DOTTY" >&6; }
7645else
7646 { echo "$as_me:$LINENO: result: no" >&5
7647echo "${ECHO_T}no" >&6; }
7648fi
7649
7650
7651if test "$DOTTY" != "echo dotty" ; then
7652
7653cat >>confdefs.h <<\_ACEOF
7654#define HAVE_DOTTY 1
7655_ACEOF
7656
Jeff Cohen28783c32007-01-12 18:22:38 +00007657 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007658 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7659 fi
7660
7661cat >>confdefs.h <<_ACEOF
7662#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7663_ACEOF
7664
7665fi
7666
7667
7668# Extract the first word of "perl", so it can be a program name with args.
7669set dummy perl; ac_word=$2
7670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672if test "${ac_cv_path_PERL+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7674else
7675 case $PERL in
7676 [\\/]* | ?:[\\/]*)
7677 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7678 ;;
7679 *)
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007686 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 +00007687 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 break 2
7690 fi
7691done
7692done
7693IFS=$as_save_IFS
7694
7695 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7696 ;;
7697esac
7698fi
7699PERL=$ac_cv_path_PERL
7700if test -n "$PERL"; then
7701 { echo "$as_me:$LINENO: result: $PERL" >&5
7702echo "${ECHO_T}$PERL" >&6; }
7703else
7704 { echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6; }
7706fi
7707
7708
7709if test "$PERL" != "none"; then
7710 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7711echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7712 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7713 { echo "$as_me:$LINENO: result: yes" >&5
7714echo "${ECHO_T}yes" >&6; }
7715 else
7716 PERL=none
7717 { echo "$as_me:$LINENO: result: not found" >&5
7718echo "${ECHO_T}not found" >&6; }
7719 fi
7720fi
7721
7722
7723if test x"$PERL" = xnone; then
7724 HAVE_PERL=0
7725
Reid Spencer59807fa2007-05-17 18:11:03 +00007726 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7727echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7728 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007729else
7730 HAVE_PERL=1
7731
7732fi
7733
7734# Find a good install program. We prefer a C program (faster),
7735# so one script is as good as another. But avoid the broken or
7736# incompatible versions:
7737# SysV /etc/install, /usr/sbin/install
7738# SunOS /usr/etc/install
7739# IRIX /sbin/install
7740# AIX /bin/install
7741# AmigaOS /C/install, which installs bootblocks on floppy discs
7742# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7743# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7744# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7745# OS/2's system install, which has a completely different semantic
7746# ./install, which can be erroneously created by make from ./install.sh.
7747{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7748echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7749if test -z "$INSTALL"; then
7750if test "${ac_cv_path_install+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752else
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754for as_dir in $PATH
7755do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 # Account for people who put trailing slashes in PATH elements.
7759case $as_dir/ in
7760 ./ | .// | /cC/* | \
7761 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7762 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7763 /usr/ucb/* ) ;;
7764 *)
7765 # OSF1 and SCO ODT 3.0 have their own names for install.
7766 # Don't use installbsd from OSF since it installs stuff as root
7767 # by default.
7768 for ac_prog in ginstall scoinst install; do
7769 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007770 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 +00007771 if test $ac_prog = install &&
7772 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7773 # AIX install. It has an incompatible calling convention.
7774 :
7775 elif test $ac_prog = install &&
7776 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7777 # program-specific install script used by HP pwplus--don't use.
7778 :
7779 else
7780 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7781 break 3
7782 fi
7783 fi
7784 done
7785 done
7786 ;;
7787esac
7788done
7789IFS=$as_save_IFS
7790
7791
7792fi
7793 if test "${ac_cv_path_install+set}" = set; then
7794 INSTALL=$ac_cv_path_install
7795 else
7796 # As a last resort, use the slow shell script. Don't cache a
7797 # value for INSTALL within a source directory, because that will
7798 # break other packages using the cache if that directory is
7799 # removed, or if the value is a relative name.
7800 INSTALL=$ac_install_sh
7801 fi
7802fi
7803{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7804echo "${ECHO_T}$INSTALL" >&6; }
7805
7806# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7807# It thinks the first close brace ends the variable substitution.
7808test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7809
7810test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7811
7812test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7813
7814
7815# Extract the first word of "bzip2", so it can be a program name with args.
7816set dummy bzip2; ac_word=$2
7817{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7819if test "${ac_cv_path_BZIP2+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7821else
7822 case $BZIP2 in
7823 [\\/]* | ?:[\\/]*)
7824 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7825 ;;
7826 *)
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828for as_dir in $PATH
7829do
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007833 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 +00007834 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7837 fi
7838done
7839done
7840IFS=$as_save_IFS
7841
Reid Spencera773bd52006-08-04 18:18:08 +00007842 ;;
7843esac
7844fi
7845BZIP2=$ac_cv_path_BZIP2
7846if test -n "$BZIP2"; then
7847 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7848echo "${ECHO_T}$BZIP2" >&6; }
7849else
7850 { echo "$as_me:$LINENO: result: no" >&5
7851echo "${ECHO_T}no" >&6; }
7852fi
7853
7854
7855# Extract the first word of "doxygen", so it can be a program name with args.
7856set dummy doxygen; ac_word=$2
7857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7859if test "${ac_cv_path_DOXYGEN+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7861else
7862 case $DOXYGEN in
7863 [\\/]* | ?:[\\/]*)
7864 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7865 ;;
7866 *)
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868for as_dir in $PATH
7869do
7870 IFS=$as_save_IFS
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007874 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 break 2
7877 fi
7878done
7879done
7880IFS=$as_save_IFS
7881
Reid Spencera773bd52006-08-04 18:18:08 +00007882 ;;
7883esac
7884fi
7885DOXYGEN=$ac_cv_path_DOXYGEN
7886if test -n "$DOXYGEN"; then
7887 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7888echo "${ECHO_T}$DOXYGEN" >&6; }
7889else
7890 { echo "$as_me:$LINENO: result: no" >&5
7891echo "${ECHO_T}no" >&6; }
7892fi
7893
7894
Reid Spencera773bd52006-08-04 18:18:08 +00007895# Extract the first word of "groff", so it can be a program name with args.
7896set dummy groff; ac_word=$2
7897{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7899if test "${ac_cv_path_GROFF+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7901else
7902 case $GROFF in
7903 [\\/]* | ?:[\\/]*)
7904 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7905 ;;
7906 *)
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908for as_dir in $PATH
7909do
7910 IFS=$as_save_IFS
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007913 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 +00007914 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 break 2
7917 fi
7918done
7919done
7920IFS=$as_save_IFS
7921
Reid Spencera773bd52006-08-04 18:18:08 +00007922 ;;
7923esac
7924fi
7925GROFF=$ac_cv_path_GROFF
7926if test -n "$GROFF"; then
7927 { echo "$as_me:$LINENO: result: $GROFF" >&5
7928echo "${ECHO_T}$GROFF" >&6; }
7929else
7930 { echo "$as_me:$LINENO: result: no" >&5
7931echo "${ECHO_T}no" >&6; }
7932fi
7933
7934
7935# Extract the first word of "gzip", so it can be a program name with args.
7936set dummy gzip; ac_word=$2
7937{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7939if test "${ac_cv_path_GZIP+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7941else
7942 case $GZIP in
7943 [\\/]* | ?:[\\/]*)
7944 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7945 ;;
7946 *)
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948for as_dir in $PATH
7949do
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007953 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 +00007954 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7957 fi
7958done
7959done
7960IFS=$as_save_IFS
7961
Reid Spencera773bd52006-08-04 18:18:08 +00007962 ;;
7963esac
7964fi
7965GZIP=$ac_cv_path_GZIP
7966if test -n "$GZIP"; then
7967 { echo "$as_me:$LINENO: result: $GZIP" >&5
7968echo "${ECHO_T}$GZIP" >&6; }
7969else
7970 { echo "$as_me:$LINENO: result: no" >&5
7971echo "${ECHO_T}no" >&6; }
7972fi
7973
7974
7975# Extract the first word of "pod2html", so it can be a program name with args.
7976set dummy pod2html; ac_word=$2
7977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7979if test "${ac_cv_path_POD2HTML+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7981else
7982 case $POD2HTML in
7983 [\\/]* | ?:[\\/]*)
7984 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7985 ;;
7986 *)
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988for as_dir in $PATH
7989do
7990 IFS=$as_save_IFS
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007993 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 +00007994 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 break 2
7997 fi
7998done
7999done
8000IFS=$as_save_IFS
8001
Reid Spencera773bd52006-08-04 18:18:08 +00008002 ;;
8003esac
8004fi
8005POD2HTML=$ac_cv_path_POD2HTML
8006if test -n "$POD2HTML"; then
8007 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8008echo "${ECHO_T}$POD2HTML" >&6; }
8009else
8010 { echo "$as_me:$LINENO: result: no" >&5
8011echo "${ECHO_T}no" >&6; }
8012fi
8013
8014
8015# Extract the first word of "pod2man", so it can be a program name with args.
8016set dummy pod2man; ac_word=$2
8017{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8019if test "${ac_cv_path_POD2MAN+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8021else
8022 case $POD2MAN in
8023 [\\/]* | ?:[\\/]*)
8024 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8025 ;;
8026 *)
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028for as_dir in $PATH
8029do
8030 IFS=$as_save_IFS
8031 test -z "$as_dir" && as_dir=.
8032 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008033 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 +00008034 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8036 break 2
8037 fi
8038done
8039done
8040IFS=$as_save_IFS
8041
Reid Spencera773bd52006-08-04 18:18:08 +00008042 ;;
8043esac
8044fi
8045POD2MAN=$ac_cv_path_POD2MAN
8046if test -n "$POD2MAN"; then
8047 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8048echo "${ECHO_T}$POD2MAN" >&6; }
8049else
8050 { echo "$as_me:$LINENO: result: no" >&5
8051echo "${ECHO_T}no" >&6; }
8052fi
8053
8054
8055# Extract the first word of "runtest", so it can be a program name with args.
8056set dummy runtest; ac_word=$2
8057{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8059if test "${ac_cv_path_RUNTEST+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061else
8062 case $RUNTEST in
8063 [\\/]* | ?:[\\/]*)
8064 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8065 ;;
8066 *)
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068for as_dir in $PATH
8069do
8070 IFS=$as_save_IFS
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008073 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 +00008074 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 break 2
8077 fi
8078done
8079done
8080IFS=$as_save_IFS
8081
Reid Spencera773bd52006-08-04 18:18:08 +00008082 ;;
8083esac
8084fi
8085RUNTEST=$ac_cv_path_RUNTEST
8086if test -n "$RUNTEST"; then
8087 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8088echo "${ECHO_T}$RUNTEST" >&6; }
8089else
8090 { echo "$as_me:$LINENO: result: no" >&5
8091echo "${ECHO_T}no" >&6; }
8092fi
8093
8094
8095
8096no_itcl=true
8097{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8098echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8099
8100# Check whether --with-tclinclude was given.
8101if test "${with_tclinclude+set}" = set; then
8102 withval=$with_tclinclude; with_tclinclude=${withval}
8103else
8104 with_tclinclude=''
8105fi
8106
8107if test "${ac_cv_path_tclsh+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8109else
8110
8111if test x"${with_tclinclude}" != x ; then
8112 if test -f ${with_tclinclude}/tclsh ; then
8113 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8114 elif test -f ${with_tclinclude}/src/tclsh ; then
8115 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8116 else
8117 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8118echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8119 { (exit 1); exit 1; }; }
8120 fi
8121fi
8122
8123if test x"${ac_cv_path_tclsh}" = x ; then
8124 { echo "$as_me:$LINENO: result: none" >&5
8125echo "${ECHO_T}none" >&6; }
8126 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
8127do
8128 # Extract the first word of "$ac_prog", so it can be a program name with args.
8129set dummy $ac_prog; ac_word=$2
8130{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8132if test "${ac_cv_path_TCLSH+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134else
8135 case $TCLSH in
8136 [\\/]* | ?:[\\/]*)
8137 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8138 ;;
8139 *)
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141for as_dir in $PATH
8142do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008147 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8150 fi
8151done
8152done
8153IFS=$as_save_IFS
8154
8155 ;;
8156esac
8157fi
8158TCLSH=$ac_cv_path_TCLSH
8159if test -n "$TCLSH"; then
8160 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8161echo "${ECHO_T}$TCLSH" >&6; }
8162else
8163 { echo "$as_me:$LINENO: result: no" >&5
8164echo "${ECHO_T}no" >&6; }
8165fi
8166
8167
8168 test -n "$TCLSH" && break
8169done
8170
8171 if test x"${TCLSH}" = x ; then
8172 ac_cv_path_tclsh='';
8173 else
8174 ac_cv_path_tclsh="${TCLSH}";
8175 fi
8176else
8177 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8178echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8179 TCLSH="${ac_cv_path_tclsh}"
8180
8181fi
8182
8183fi
8184
8185# Extract the first word of "zip", so it can be a program name with args.
8186set dummy zip; ac_word=$2
8187{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8189if test "${ac_cv_path_ZIP+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8191else
8192 case $ZIP in
8193 [\\/]* | ?:[\\/]*)
8194 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8195 ;;
8196 *)
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198for as_dir in $PATH
8199do
8200 IFS=$as_save_IFS
8201 test -z "$as_dir" && as_dir=.
8202 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008203 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 +00008204 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 break 2
8207 fi
8208done
8209done
8210IFS=$as_save_IFS
8211
Reid Spencera773bd52006-08-04 18:18:08 +00008212 ;;
8213esac
8214fi
8215ZIP=$ac_cv_path_ZIP
8216if test -n "$ZIP"; then
8217 { echo "$as_me:$LINENO: result: $ZIP" >&5
8218echo "${ECHO_T}$ZIP" >&6; }
8219else
8220 { echo "$as_me:$LINENO: result: no" >&5
8221echo "${ECHO_T}no" >&6; }
8222fi
8223
8224
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008225for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008226do
8227 # Extract the first word of "$ac_prog", so it can be a program name with args.
8228set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008229{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8231if test "${ac_cv_path_OCAMLC+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8233else
8234 case $OCAMLC in
8235 [\\/]* | ?:[\\/]*)
8236 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8237 ;;
8238 *)
8239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240for as_dir in $PATH
8241do
8242 IFS=$as_save_IFS
8243 test -z "$as_dir" && as_dir=.
8244 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008245 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 +00008246 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 break 2
8249 fi
8250done
8251done
8252IFS=$as_save_IFS
8253
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008254 ;;
8255esac
8256fi
8257OCAMLC=$ac_cv_path_OCAMLC
8258if test -n "$OCAMLC"; then
8259 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8260echo "${ECHO_T}$OCAMLC" >&6; }
8261else
8262 { echo "$as_me:$LINENO: result: no" >&5
8263echo "${ECHO_T}no" >&6; }
8264fi
8265
8266
Gordon Henriksene7072162008-03-07 18:20:01 +00008267 test -n "$OCAMLC" && break
8268done
8269
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008270for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008271do
8272 # Extract the first word of "$ac_prog", so it can be a program name with args.
8273set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8276if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8278else
8279 case $OCAMLOPT in
8280 [\\/]* | ?:[\\/]*)
8281 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8282 ;;
8283 *)
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285for as_dir in $PATH
8286do
8287 IFS=$as_save_IFS
8288 test -z "$as_dir" && as_dir=.
8289 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008290 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 +00008291 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8293 break 2
8294 fi
8295done
8296done
8297IFS=$as_save_IFS
8298
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008299 ;;
8300esac
8301fi
8302OCAMLOPT=$ac_cv_path_OCAMLOPT
8303if test -n "$OCAMLOPT"; then
8304 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8305echo "${ECHO_T}$OCAMLOPT" >&6; }
8306else
8307 { echo "$as_me:$LINENO: result: no" >&5
8308echo "${ECHO_T}no" >&6; }
8309fi
8310
8311
Gordon Henriksene7072162008-03-07 18:20:01 +00008312 test -n "$OCAMLOPT" && break
8313done
8314
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008315for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008316do
8317 # Extract the first word of "$ac_prog", so it can be a program name with args.
8318set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008319{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8321if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8323else
8324 case $OCAMLDEP in
8325 [\\/]* | ?:[\\/]*)
8326 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8327 ;;
8328 *)
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330for as_dir in $PATH
8331do
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
8334 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008335 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 +00008336 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 break 2
8339 fi
8340done
8341done
8342IFS=$as_save_IFS
8343
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008344 ;;
8345esac
8346fi
8347OCAMLDEP=$ac_cv_path_OCAMLDEP
8348if test -n "$OCAMLDEP"; then
8349 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8350echo "${ECHO_T}$OCAMLDEP" >&6; }
8351else
8352 { echo "$as_me:$LINENO: result: no" >&5
8353echo "${ECHO_T}no" >&6; }
8354fi
8355
8356
Gordon Henriksene7072162008-03-07 18:20:01 +00008357 test -n "$OCAMLDEP" && break
8358done
8359
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008360for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008361do
8362 # Extract the first word of "$ac_prog", so it can be a program name with args.
8363set dummy $ac_prog; ac_word=$2
8364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8366if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8368else
8369 case $OCAMLDOC in
8370 [\\/]* | ?:[\\/]*)
8371 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8372 ;;
8373 *)
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375for as_dir in $PATH
8376do
8377 IFS=$as_save_IFS
8378 test -z "$as_dir" && as_dir=.
8379 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008380 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 +00008381 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8383 break 2
8384 fi
8385done
8386done
8387IFS=$as_save_IFS
8388
8389 ;;
8390esac
8391fi
8392OCAMLDOC=$ac_cv_path_OCAMLDOC
8393if test -n "$OCAMLDOC"; then
8394 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8395echo "${ECHO_T}$OCAMLDOC" >&6; }
8396else
8397 { echo "$as_me:$LINENO: result: no" >&5
8398echo "${ECHO_T}no" >&6; }
8399fi
8400
8401
8402 test -n "$OCAMLDOC" && break
8403done
8404
Torok Edwincc499a42008-10-22 09:56:27 +00008405for ac_prog in gas as
8406do
8407 # Extract the first word of "$ac_prog", so it can be a program name with args.
8408set dummy $ac_prog; ac_word=$2
8409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8411if test "${ac_cv_path_GAS+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8413else
8414 case $GAS in
8415 [\\/]* | ?:[\\/]*)
8416 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8417 ;;
8418 *)
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008425 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 +00008426 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8429 fi
8430done
8431done
8432IFS=$as_save_IFS
8433
8434 ;;
8435esac
8436fi
8437GAS=$ac_cv_path_GAS
8438if test -n "$GAS"; then
8439 { echo "$as_me:$LINENO: result: $GAS" >&5
8440echo "${ECHO_T}$GAS" >&6; }
8441else
8442 { echo "$as_me:$LINENO: result: no" >&5
8443echo "${ECHO_T}no" >&6; }
8444fi
8445
8446
8447 test -n "$GAS" && break
8448done
8449
Reid Spencera773bd52006-08-04 18:18:08 +00008450
8451{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8452echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8453if test "${llvm_cv_link_use_r+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8455else
8456 ac_ext=c
8457ac_cpp='$CPP $CPPFLAGS'
8458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8460ac_compiler_gnu=$ac_cv_c_compiler_gnu
8461
8462 oldcflags="$CFLAGS"
8463 CFLAGS="$CFLAGS -Wl,-R."
8464 cat >conftest.$ac_ext <<_ACEOF
8465/* confdefs.h. */
8466_ACEOF
8467cat confdefs.h >>conftest.$ac_ext
8468cat >>conftest.$ac_ext <<_ACEOF
8469/* end confdefs.h. */
8470
8471int
8472main ()
8473{
8474int main() { return 0; }
8475 ;
8476 return 0;
8477}
8478_ACEOF
8479rm -f conftest.$ac_objext conftest$ac_exeext
8480if { (ac_try="$ac_link"
8481case "(($ac_try" in
8482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8484esac
8485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486 (eval "$ac_link") 2>conftest.er1
8487 ac_status=$?
8488 grep -v '^ *+' conftest.er1 >conftest.err
8489 rm -f conftest.er1
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008492 (exit $ac_status); } &&
8493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8503 { ac_try='test -s conftest$ac_exeext'
8504 { (case "(($ac_try" in
8505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506 *) ac_try_echo=$ac_try;;
8507esac
8508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509 (eval "$ac_try") 2>&5
8510 ac_status=$?
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008513 llvm_cv_link_use_r=yes
8514else
8515 echo "$as_me: failed program was:" >&5
8516sed 's/^/| /' conftest.$ac_ext >&5
8517
8518 llvm_cv_link_use_r=no
8519fi
8520
Bill Wendlingebcceee2009-04-18 11:20:33 +00008521rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008522 conftest$ac_exeext conftest.$ac_ext
8523 CFLAGS="$oldcflags"
8524 ac_ext=c
8525ac_cpp='$CPP $CPPFLAGS'
8526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8528ac_compiler_gnu=$ac_cv_c_compiler_gnu
8529
8530
8531fi
8532{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8533echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8534if test "$llvm_cv_link_use_r" = yes ; then
8535
8536cat >>confdefs.h <<\_ACEOF
8537#define HAVE_LINK_R 1
8538_ACEOF
8539
8540 fi
8541
8542
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008543{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8544echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8545if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547else
8548 ac_ext=c
8549ac_cpp='$CPP $CPPFLAGS'
8550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8552ac_compiler_gnu=$ac_cv_c_compiler_gnu
8553
8554 oldcflags="$CFLAGS"
8555 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8556 cat >conftest.$ac_ext <<_ACEOF
8557/* confdefs.h. */
8558_ACEOF
8559cat confdefs.h >>conftest.$ac_ext
8560cat >>conftest.$ac_ext <<_ACEOF
8561/* end confdefs.h. */
8562
8563int
8564main ()
8565{
8566int main() { return 0; }
8567 ;
8568 return 0;
8569}
8570_ACEOF
8571rm -f conftest.$ac_objext conftest$ac_exeext
8572if { (ac_try="$ac_link"
8573case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576esac
8577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_link") 2>conftest.er1
8579 ac_status=$?
8580 grep -v '^ *+' conftest.er1 >conftest.err
8581 rm -f conftest.er1
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008584 (exit $ac_status); } &&
8585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8586 { (case "(($ac_try" in
8587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588 *) ac_try_echo=$ac_try;;
8589esac
8590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591 (eval "$ac_try") 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest$ac_exeext'
8596 { (case "(($ac_try" in
8597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8599esac
8600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_try") 2>&5
8602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008605 llvm_cv_link_use_export_dynamic=yes
8606else
8607 echo "$as_me: failed program was:" >&5
8608sed 's/^/| /' conftest.$ac_ext >&5
8609
8610 llvm_cv_link_use_export_dynamic=no
8611fi
8612
Bill Wendlingebcceee2009-04-18 11:20:33 +00008613rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008614 conftest$ac_exeext conftest.$ac_ext
8615 CFLAGS="$oldcflags"
8616 ac_ext=c
8617ac_cpp='$CPP $CPPFLAGS'
8618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8620ac_compiler_gnu=$ac_cv_c_compiler_gnu
8621
8622
8623fi
8624{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8625echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8626if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8627
8628cat >>confdefs.h <<\_ACEOF
8629#define HAVE_LINK_EXPORT_DYNAMIC 1
8630_ACEOF
8631
8632 fi
8633
8634
Reid Spencera773bd52006-08-04 18:18:08 +00008635
8636
8637{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8638echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8639if test "${ac_cv_c_const+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8641else
8642 cat >conftest.$ac_ext <<_ACEOF
8643/* confdefs.h. */
8644_ACEOF
8645cat confdefs.h >>conftest.$ac_ext
8646cat >>conftest.$ac_ext <<_ACEOF
8647/* end confdefs.h. */
8648
8649int
8650main ()
8651{
8652/* FIXME: Include the comments suggested by Paul. */
8653#ifndef __cplusplus
8654 /* Ultrix mips cc rejects this. */
8655 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008656 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008657 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008658 char const *const *ccp;
8659 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008660 /* NEC SVR4.0.2 mips cc rejects this. */
8661 struct point {int x, y;};
8662 static struct point const zero = {0,0};
8663 /* AIX XL C 1.02.0.0 rejects this.
8664 It does not let you subtract one const X* pointer from another in
8665 an arm of an if-expression whose if-part is not a constant
8666 expression */
8667 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008668 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008669 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008670 ++ccp;
8671 p = (char**) ccp;
8672 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008673 { /* SCO 3.2v4 cc rejects this. */
8674 char *t;
8675 char const *s = 0 ? (char *) 0 : (char const *) 0;
8676
8677 *t++ = 0;
8678 if (s) return 0;
8679 }
8680 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8681 int x[] = {25, 17};
8682 const int *foo = &x[0];
8683 ++foo;
8684 }
8685 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8686 typedef const int *iptr;
8687 iptr p = 0;
8688 ++p;
8689 }
8690 { /* AIX XL C 1.02.0.0 rejects this saying
8691 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8692 struct s { int j; const int *ap[3]; };
8693 struct s *b; b->j = 5;
8694 }
8695 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8696 const int foo = 10;
8697 if (!foo) return 0;
8698 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008699 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008700#endif
8701
8702 ;
8703 return 0;
8704}
8705_ACEOF
8706rm -f conftest.$ac_objext
8707if { (ac_try="$ac_compile"
8708case "(($ac_try" in
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8711esac
8712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_compile") 2>conftest.er1
8714 ac_status=$?
8715 grep -v '^ *+' conftest.er1 >conftest.err
8716 rm -f conftest.er1
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008719 (exit $ac_status); } &&
8720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8721 { (case "(($ac_try" in
8722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723 *) ac_try_echo=$ac_try;;
8724esac
8725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726 (eval "$ac_try") 2>&5
8727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; } &&
8730 { ac_try='test -s conftest.$ac_objext'
8731 { (case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8734esac
8735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_try") 2>&5
8737 ac_status=$?
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008740 ac_cv_c_const=yes
8741else
8742 echo "$as_me: failed program was:" >&5
8743sed 's/^/| /' conftest.$ac_ext >&5
8744
8745 ac_cv_c_const=no
8746fi
8747
8748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8749fi
8750{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8751echo "${ECHO_T}$ac_cv_c_const" >&6; }
8752if test $ac_cv_c_const = no; then
8753
8754cat >>confdefs.h <<\_ACEOF
8755#define const
8756_ACEOF
8757
8758fi
8759
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008760
8761
8762
8763
8764
8765ac_header_dirent=no
8766for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8767 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008768{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8769echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8770if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008771 echo $ECHO_N "(cached) $ECHO_C" >&6
8772else
8773 cat >conftest.$ac_ext <<_ACEOF
8774/* confdefs.h. */
8775_ACEOF
8776cat confdefs.h >>conftest.$ac_ext
8777cat >>conftest.$ac_ext <<_ACEOF
8778/* end confdefs.h. */
8779#include <sys/types.h>
8780#include <$ac_hdr>
8781
8782int
8783main ()
8784{
8785if ((DIR *) 0)
8786return 0;
8787 ;
8788 return 0;
8789}
8790_ACEOF
8791rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008792if { (ac_try="$ac_compile"
8793case "(($ac_try" in
8794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8795 *) ac_try_echo=$ac_try;;
8796esac
8797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8798 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008799 ac_status=$?
8800 grep -v '^ *+' conftest.er1 >conftest.err
8801 rm -f conftest.er1
8802 cat conftest.err >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008804 (exit $ac_status); } &&
8805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8806 { (case "(($ac_try" in
8807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8808 *) ac_try_echo=$ac_try;;
8809esac
8810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8811 (eval "$ac_try") 2>&5
8812 ac_status=$?
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; } &&
8815 { ac_try='test -s conftest.$ac_objext'
8816 { (case "(($ac_try" in
8817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818 *) ac_try_echo=$ac_try;;
8819esac
8820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821 (eval "$ac_try") 2>&5
8822 ac_status=$?
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008825 eval "$as_ac_Header=yes"
8826else
8827 echo "$as_me: failed program was:" >&5
8828sed 's/^/| /' conftest.$ac_ext >&5
8829
Reid Spencera773bd52006-08-04 18:18:08 +00008830 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008831fi
Reid Spencera773bd52006-08-04 18:18:08 +00008832
8833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008834fi
Reid Spencera773bd52006-08-04 18:18:08 +00008835ac_res=`eval echo '${'$as_ac_Header'}'`
8836 { echo "$as_me:$LINENO: result: $ac_res" >&5
8837echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008838if test `eval echo '${'$as_ac_Header'}'` = yes; then
8839 cat >>confdefs.h <<_ACEOF
8840#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8841_ACEOF
8842
8843ac_header_dirent=$ac_hdr; break
8844fi
8845
8846done
8847# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8848if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008849 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8850echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008851if test "${ac_cv_search_opendir+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8853else
8854 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008855cat >conftest.$ac_ext <<_ACEOF
8856/* confdefs.h. */
8857_ACEOF
8858cat confdefs.h >>conftest.$ac_ext
8859cat >>conftest.$ac_ext <<_ACEOF
8860/* end confdefs.h. */
8861
Reid Spencera773bd52006-08-04 18:18:08 +00008862/* Override any GCC internal prototype to avoid an error.
8863 Use char because int might match the return type of a GCC
8864 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008865#ifdef __cplusplus
8866extern "C"
8867#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008868char opendir ();
8869int
8870main ()
8871{
Reid Spencera773bd52006-08-04 18:18:08 +00008872return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008873 ;
8874 return 0;
8875}
8876_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008877for ac_lib in '' dir; do
8878 if test -z "$ac_lib"; then
8879 ac_res="none required"
8880 else
8881 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008883 fi
8884 rm -f conftest.$ac_objext conftest$ac_exeext
8885if { (ac_try="$ac_link"
8886case "(($ac_try" in
8887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8889esac
8890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008892 ac_status=$?
8893 grep -v '^ *+' conftest.er1 >conftest.err
8894 rm -f conftest.er1
8895 cat conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008897 (exit $ac_status); } &&
8898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8899 { (case "(($ac_try" in
8900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901 *) ac_try_echo=$ac_try;;
8902esac
8903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8904 (eval "$ac_try") 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; } &&
8908 { ac_try='test -s conftest$ac_exeext'
8909 { (case "(($ac_try" in
8910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911 *) ac_try_echo=$ac_try;;
8912esac
8913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914 (eval "$ac_try") 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008918 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008919else
8920 echo "$as_me: failed program was:" >&5
8921sed 's/^/| /' conftest.$ac_ext >&5
8922
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008923
8924fi
8925
Bill Wendlingebcceee2009-04-18 11:20:33 +00008926rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008927 conftest$ac_exeext
8928 if test "${ac_cv_search_opendir+set}" = set; then
8929 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008930fi
John Criswell7a73b802003-06-30 21:59:07 +00008931done
Reid Spencera773bd52006-08-04 18:18:08 +00008932if test "${ac_cv_search_opendir+set}" = set; then
8933 :
8934else
8935 ac_cv_search_opendir=no
8936fi
8937rm conftest.$ac_ext
8938LIBS=$ac_func_search_save_LIBS
8939fi
8940{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8941echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8942ac_res=$ac_cv_search_opendir
8943if test "$ac_res" != no; then
8944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008945
Reid Spencera773bd52006-08-04 18:18:08 +00008946fi
8947
8948else
8949 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8950echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8951if test "${ac_cv_search_opendir+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953else
8954 ac_func_search_save_LIBS=$LIBS
8955cat >conftest.$ac_ext <<_ACEOF
8956/* confdefs.h. */
8957_ACEOF
8958cat confdefs.h >>conftest.$ac_ext
8959cat >>conftest.$ac_ext <<_ACEOF
8960/* end confdefs.h. */
8961
8962/* Override any GCC internal prototype to avoid an error.
8963 Use char because int might match the return type of a GCC
8964 builtin and then its argument prototype would still apply. */
8965#ifdef __cplusplus
8966extern "C"
8967#endif
8968char opendir ();
8969int
8970main ()
8971{
8972return opendir ();
8973 ;
8974 return 0;
8975}
8976_ACEOF
8977for ac_lib in '' x; do
8978 if test -z "$ac_lib"; then
8979 ac_res="none required"
8980 else
8981 ac_res=-l$ac_lib
8982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8983 fi
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985if { (ac_try="$ac_link"
8986case "(($ac_try" in
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8989esac
8990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991 (eval "$ac_link") 2>conftest.er1
8992 ac_status=$?
8993 grep -v '^ *+' conftest.er1 >conftest.err
8994 rm -f conftest.er1
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008997 (exit $ac_status); } &&
8998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9008 { ac_try='test -s conftest$ac_exeext'
9009 { (case "(($ac_try" in
9010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9011 *) ac_try_echo=$ac_try;;
9012esac
9013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9014 (eval "$ac_try") 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009018 ac_cv_search_opendir=$ac_res
9019else
9020 echo "$as_me: failed program was:" >&5
9021sed 's/^/| /' conftest.$ac_ext >&5
9022
9023
9024fi
9025
Bill Wendlingebcceee2009-04-18 11:20:33 +00009026rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00009027 conftest$ac_exeext
9028 if test "${ac_cv_search_opendir+set}" = set; then
9029 break
9030fi
9031done
9032if test "${ac_cv_search_opendir+set}" = set; then
9033 :
9034else
9035 ac_cv_search_opendir=no
9036fi
9037rm conftest.$ac_ext
9038LIBS=$ac_func_search_save_LIBS
9039fi
9040{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9041echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9042ac_res=$ac_cv_search_opendir
9043if test "$ac_res" != no; then
9044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9045
9046fi
9047
9048fi
John Criswell7a73b802003-06-30 21:59:07 +00009049
9050
9051for ac_header in dlfcn.h
9052do
9053as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00009054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00009058 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00009059fi
Reid Spencera773bd52006-08-04 18:18:08 +00009060ac_res=`eval echo '${'$as_ac_Header'}'`
9061 { echo "$as_me:$LINENO: result: $ac_res" >&5
9062echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00009063else
Brian Gaeke0a621332004-09-08 20:38:05 +00009064 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00009065{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009067cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009068/* confdefs.h. */
9069_ACEOF
9070cat confdefs.h >>conftest.$ac_ext
9071cat >>conftest.$ac_ext <<_ACEOF
9072/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009073$ac_includes_default
9074#include <$ac_header>
9075_ACEOF
9076rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00009077if { (ac_try="$ac_compile"
9078case "(($ac_try" in
9079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080 *) ac_try_echo=$ac_try;;
9081esac
9082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9083 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009084 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009085 grep -v '^ *+' conftest.er1 >conftest.err
9086 rm -f conftest.er1
9087 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009089 (exit $ac_status); } &&
9090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9091 { (case "(($ac_try" in
9092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093 *) ac_try_echo=$ac_try;;
9094esac
9095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9096 (eval "$ac_try") 2>&5
9097 ac_status=$?
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; } &&
9100 { ac_try='test -s conftest.$ac_objext'
9101 { (case "(($ac_try" in
9102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103 *) ac_try_echo=$ac_try;;
9104esac
9105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9106 (eval "$ac_try") 2>&5
9107 ac_status=$?
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009110 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00009111else
9112 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009113sed 's/^/| /' conftest.$ac_ext >&5
9114
Reid Spencera773bd52006-08-04 18:18:08 +00009115 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00009116fi
Reid Spencera773bd52006-08-04 18:18:08 +00009117
9118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9120echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009121
9122# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00009123{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9124echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009125cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009126/* confdefs.h. */
9127_ACEOF
9128cat confdefs.h >>conftest.$ac_ext
9129cat >>conftest.$ac_ext <<_ACEOF
9130/* end confdefs.h. */
9131#include <$ac_header>
9132_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009133if { (ac_try="$ac_cpp conftest.$ac_ext"
9134case "(($ac_try" in
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9137esac
9138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009140 ac_status=$?
9141 grep -v '^ *+' conftest.er1 >conftest.err
9142 rm -f conftest.er1
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009145 (exit $ac_status); } >/dev/null; then
9146 if test -s conftest.err; then
9147 ac_cpp_err=$ac_c_preproc_warn_flag
9148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9149 else
9150 ac_cpp_err=
9151 fi
9152else
9153 ac_cpp_err=yes
9154fi
9155if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009156 ac_header_preproc=yes
9157else
9158 echo "$as_me: failed program was:" >&5
9159sed 's/^/| /' conftest.$ac_ext >&5
9160
9161 ac_header_preproc=no
9162fi
Reid Spencera773bd52006-08-04 18:18:08 +00009163
Brian Gaeke0a621332004-09-08 20:38:05 +00009164rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009165{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9166echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009167
9168# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009169case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9170 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9172echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9174echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9175 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009176 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009177 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9179echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9181echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9183echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9185echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9189echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009190 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009191## ----------------------------------- ##
9192## Report this to llvmbugs@cs.uiuc.edu ##
9193## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009194_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009195 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009196 ;;
9197esac
Reid Spencera773bd52006-08-04 18:18:08 +00009198{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009203 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009204fi
Reid Spencera773bd52006-08-04 18:18:08 +00009205ac_res=`eval echo '${'$as_ac_Header'}'`
9206 { echo "$as_me:$LINENO: result: $ac_res" >&5
9207echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009208
9209fi
John Criswell7a73b802003-06-30 21:59:07 +00009210if test `eval echo '${'$as_ac_Header'}'` = yes; then
9211 cat >>confdefs.h <<_ACEOF
9212#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9213_ACEOF
9214
9215fi
9216
9217done
9218
Reid Spencera773bd52006-08-04 18:18:08 +00009219# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009220if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009221 enableval=$enable_ltdl_install;
9222fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009223
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009224
Bill Wendlingebcceee2009-04-18 11:20:33 +00009225
9226
9227if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009228 INSTALL_LTDL_TRUE=
9229 INSTALL_LTDL_FALSE='#'
9230else
9231 INSTALL_LTDL_TRUE='#'
9232 INSTALL_LTDL_FALSE=
9233fi
9234
Bill Wendlingebcceee2009-04-18 11:20:33 +00009235
9236
9237if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009238 CONVENIENCE_LTDL_TRUE=
9239 CONVENIENCE_LTDL_FALSE='#'
9240else
9241 CONVENIENCE_LTDL_TRUE='#'
9242 CONVENIENCE_LTDL_FALSE=
9243fi
9244
9245
Reid Spencera773bd52006-08-04 18:18:08 +00009246{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9247echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009248library_names_spec=
9249libname_spec='lib$name'
9250soname_spec=
9251shrext_cmds=".so"
9252postinstall_cmds=
9253postuninstall_cmds=
9254finish_cmds=
9255finish_eval=
9256shlibpath_var=
9257shlibpath_overrides_runpath=unknown
9258version_type=none
9259dynamic_linker="$host_os ld.so"
9260sys_lib_dlsearch_path_spec="/lib /usr/lib"
9261if test "$GCC" = yes; then
9262 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9263 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9264 # if the path contains ";" then we assume it to be the separator
9265 # otherwise default to the standard path separator (i.e. ":") - it is
9266 # assumed that no part of a normal pathname contains ";" but that should
9267 # okay in the real world where ";" in dirpaths is itself problematic.
9268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9269 else
9270 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9271 fi
9272else
9273 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9274fi
9275need_lib_prefix=unknown
9276hardcode_into_libs=no
9277
9278# when you set need_version to no, make sure it does not cause -set_version
9279# flags to be left without arguments
9280need_version=unknown
9281
9282case $host_os in
9283aix3*)
9284 version_type=linux
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9286 shlibpath_var=LIBPATH
9287
9288 # AIX 3 has no versioning support, so we append a major version to the name.
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 ;;
9291
9292aix4* | aix5*)
9293 version_type=linux
9294 need_lib_prefix=no
9295 need_version=no
9296 hardcode_into_libs=yes
9297 if test "$host_cpu" = ia64; then
9298 # AIX 5 supports IA64
9299 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9300 shlibpath_var=LD_LIBRARY_PATH
9301 else
9302 # With GCC up to 2.95.x, collect2 would create an import file
9303 # for dependence libraries. The import file would start with
9304 # the line `#! .'. This would cause the generated library to
9305 # depend on `.', always an invalid library. This was fixed in
9306 # development snapshots of GCC prior to 3.0.
9307 case $host_os in
9308 aix4 | aix4.[01] | aix4.[01].*)
9309 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9310 echo ' yes '
9311 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9312 :
9313 else
9314 can_build_shared=no
9315 fi
9316 ;;
9317 esac
9318 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9319 # soname into executable. Probably we can add versioning support to
9320 # collect2, so additional links can be useful in future.
9321 if test "$aix_use_runtimelinking" = yes; then
9322 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9323 # instead of lib<name>.a to let people know that these are not
9324 # typical AIX shared libraries.
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326 else
9327 # We preserve .a as extension for shared libraries through AIX4.2
9328 # and later when we are not doing run time linking.
9329 library_names_spec='${libname}${release}.a $libname.a'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 fi
9332 shlibpath_var=LIBPATH
9333 fi
9334 ;;
9335
9336amigaos*)
9337 library_names_spec='$libname.ixlibrary $libname.a'
9338 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9339 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'
9340 ;;
9341
9342beos*)
9343 library_names_spec='${libname}${shared_ext}'
9344 dynamic_linker="$host_os ld.so"
9345 shlibpath_var=LIBRARY_PATH
9346 ;;
9347
9348bsdi[45]*)
9349 version_type=linux
9350 need_version=no
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9354 shlibpath_var=LD_LIBRARY_PATH
9355 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9356 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9357 # the default ld.so.conf also contains /usr/contrib/lib and
9358 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9359 # libtool to hard-code these into programs
9360 ;;
9361
9362cygwin* | mingw* | pw32*)
9363 version_type=windows
9364 shrext_cmds=".dll"
9365 need_version=no
9366 need_lib_prefix=no
9367
9368 case $GCC,$host_os in
9369 yes,cygwin* | yes,mingw* | yes,pw32*)
9370 library_names_spec='$libname.dll.a'
9371 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9372 postinstall_cmds='base_file=`basename \${file}`~
9373 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9374 dldir=$destdir/`dirname \$dlpath`~
9375 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009376 $install_prog $dir/$dlname \$dldir/$dlname~
9377 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009378 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9379 dlpath=$dir/\$dldll~
9380 $rm \$dlpath'
9381 shlibpath_overrides_runpath=yes
9382
9383 case $host_os in
9384 cygwin*)
9385 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9386 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9387 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9388 ;;
9389 mingw*)
9390 # MinGW DLLs use traditional 'lib' prefix
9391 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9392 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9393 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9394 # It is most probably a Windows format PATH printed by
9395 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9396 # path with ; separators, and with drive letters. We can handle the
9397 # drive letters (cygwin fileutils understands them), so leave them,
9398 # especially as we might pass files found there to a mingw objdump,
9399 # which wouldn't understand a cygwinified path. Ahh.
9400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9401 else
9402 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9403 fi
9404 ;;
9405 pw32*)
9406 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009407 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 +00009408 ;;
9409 esac
9410 ;;
9411
9412 *)
9413 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9414 ;;
9415 esac
9416 dynamic_linker='Win32 ld.exe'
9417 # FIXME: first we should search . and the directory the executable is in
9418 shlibpath_var=PATH
9419 ;;
9420
9421darwin* | rhapsody*)
9422 dynamic_linker="$host_os dyld"
9423 version_type=darwin
9424 need_lib_prefix=no
9425 need_version=no
9426 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9427 soname_spec='${libname}${release}${major}$shared_ext'
9428 shlibpath_overrides_runpath=yes
9429 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009430 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009431 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9432 if test "$GCC" = yes; then
9433 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"`
9434 else
9435 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9436 fi
9437 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9438 ;;
9439
9440dgux*)
9441 version_type=linux
9442 need_lib_prefix=no
9443 need_version=no
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9445 soname_spec='${libname}${release}${shared_ext}$major'
9446 shlibpath_var=LD_LIBRARY_PATH
9447 ;;
9448
9449freebsd1*)
9450 dynamic_linker=no
9451 ;;
9452
9453kfreebsd*-gnu)
9454 version_type=linux
9455 need_lib_prefix=no
9456 need_version=no
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9458 soname_spec='${libname}${release}${shared_ext}$major'
9459 shlibpath_var=LD_LIBRARY_PATH
9460 shlibpath_overrides_runpath=no
9461 hardcode_into_libs=yes
9462 dynamic_linker='GNU ld.so'
9463 ;;
9464
Reid Spencera773bd52006-08-04 18:18:08 +00009465freebsd* | dragonfly*)
9466 # DragonFly does not have aout. When/if they implement a new
9467 # versioning mechanism, adjust this.
9468 if test -x /usr/bin/objformat; then
9469 objformat=`/usr/bin/objformat`
9470 else
9471 case $host_os in
9472 freebsd[123]*) objformat=aout ;;
9473 *) objformat=elf ;;
9474 esac
9475 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009476 version_type=freebsd-$objformat
9477 case $version_type in
9478 freebsd-elf*)
9479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9480 need_version=no
9481 need_lib_prefix=no
9482 ;;
9483 freebsd-*)
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9485 need_version=yes
9486 ;;
9487 esac
9488 shlibpath_var=LD_LIBRARY_PATH
9489 case $host_os in
9490 freebsd2*)
9491 shlibpath_overrides_runpath=yes
9492 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009493 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009494 shlibpath_overrides_runpath=yes
9495 hardcode_into_libs=yes
9496 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009497 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9498 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009499 shlibpath_overrides_runpath=no
9500 hardcode_into_libs=yes
9501 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009502 freebsd*) # from 4.6 on
9503 shlibpath_overrides_runpath=yes
9504 hardcode_into_libs=yes
9505 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009506 esac
9507 ;;
9508
9509gnu*)
9510 version_type=linux
9511 need_lib_prefix=no
9512 need_version=no
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9514 soname_spec='${libname}${release}${shared_ext}$major'
9515 shlibpath_var=LD_LIBRARY_PATH
9516 hardcode_into_libs=yes
9517 ;;
9518
9519hpux9* | hpux10* | hpux11*)
9520 # Give a soname corresponding to the major version so that dld.sl refuses to
9521 # link against other versions.
9522 version_type=sunos
9523 need_lib_prefix=no
9524 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009525 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009526 ia64*)
9527 shrext_cmds='.so'
9528 hardcode_into_libs=yes
9529 dynamic_linker="$host_os dld.so"
9530 shlibpath_var=LD_LIBRARY_PATH
9531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9533 soname_spec='${libname}${release}${shared_ext}$major'
9534 if test "X$HPUX_IA64_MODE" = X32; then
9535 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9536 else
9537 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9538 fi
9539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9540 ;;
9541 hppa*64*)
9542 shrext_cmds='.sl'
9543 hardcode_into_libs=yes
9544 dynamic_linker="$host_os dld.sl"
9545 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548 soname_spec='${libname}${release}${shared_ext}$major'
9549 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9551 ;;
9552 *)
9553 shrext_cmds='.sl'
9554 dynamic_linker="$host_os dld.sl"
9555 shlibpath_var=SHLIB_PATH
9556 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9558 soname_spec='${libname}${release}${shared_ext}$major'
9559 ;;
9560 esac
9561 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9562 postinstall_cmds='chmod 555 $lib'
9563 ;;
9564
Reid Spencera773bd52006-08-04 18:18:08 +00009565interix3*)
9566 version_type=linux
9567 need_lib_prefix=no
9568 need_version=no
9569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9570 soname_spec='${libname}${release}${shared_ext}$major'
9571 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 shlibpath_overrides_runpath=no
9574 hardcode_into_libs=yes
9575 ;;
9576
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009577irix5* | irix6* | nonstopux*)
9578 case $host_os in
9579 nonstopux*) version_type=nonstopux ;;
9580 *)
9581 if test "$lt_cv_prog_gnu_ld" = yes; then
9582 version_type=linux
9583 else
9584 version_type=irix
9585 fi ;;
9586 esac
9587 need_lib_prefix=no
9588 need_version=no
9589 soname_spec='${libname}${release}${shared_ext}$major'
9590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9591 case $host_os in
9592 irix5* | nonstopux*)
9593 libsuff= shlibsuff=
9594 ;;
9595 *)
9596 case $LD in # libtool.m4 will add one of these switches to LD
9597 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9598 libsuff= shlibsuff= libmagic=32-bit;;
9599 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9600 libsuff=32 shlibsuff=N32 libmagic=N32;;
9601 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9602 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9603 *) libsuff= shlibsuff= libmagic=never-match;;
9604 esac
9605 ;;
9606 esac
9607 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9608 shlibpath_overrides_runpath=no
9609 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9610 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9611 hardcode_into_libs=yes
9612 ;;
9613
9614# No shared lib support for Linux oldld, aout, or coff.
9615linux*oldld* | linux*aout* | linux*coff*)
9616 dynamic_linker=no
9617 ;;
9618
9619# This must be Linux ELF.
9620linux*)
9621 version_type=linux
9622 need_lib_prefix=no
9623 need_version=no
9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9625 soname_spec='${libname}${release}${shared_ext}$major'
9626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9627 shlibpath_var=LD_LIBRARY_PATH
9628 shlibpath_overrides_runpath=no
9629 # This implies no fast_install, which is unacceptable.
9630 # Some rework will be needed to allow for fast_install
9631 # before this can be enabled.
9632 hardcode_into_libs=yes
9633
9634 # Append ld.so.conf contents to the search path
9635 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009636 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 +00009637 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9638 fi
9639
9640 # We used to test for /lib/ld.so.1 and disable shared libraries on
9641 # powerpc, because MkLinux only supported shared libraries with the
9642 # GNU dynamic linker. Since this was broken with cross compilers,
9643 # most powerpc-linux boxes support dynamic linking these days and
9644 # people can always --disable-shared, the test was removed, and we
9645 # assume the GNU/Linux dynamic linker is in use.
9646 dynamic_linker='GNU/Linux ld.so'
9647 ;;
9648
9649knetbsd*-gnu)
9650 version_type=linux
9651 need_lib_prefix=no
9652 need_version=no
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9654 soname_spec='${libname}${release}${shared_ext}$major'
9655 shlibpath_var=LD_LIBRARY_PATH
9656 shlibpath_overrides_runpath=no
9657 hardcode_into_libs=yes
9658 dynamic_linker='GNU ld.so'
9659 ;;
9660
9661netbsd*)
9662 version_type=sunos
9663 need_lib_prefix=no
9664 need_version=no
9665 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9668 dynamic_linker='NetBSD (a.out) ld.so'
9669 else
9670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9671 soname_spec='${libname}${release}${shared_ext}$major'
9672 dynamic_linker='NetBSD ld.elf_so'
9673 fi
9674 shlibpath_var=LD_LIBRARY_PATH
9675 shlibpath_overrides_runpath=yes
9676 hardcode_into_libs=yes
9677 ;;
9678
9679newsos6)
9680 version_type=linux
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9682 shlibpath_var=LD_LIBRARY_PATH
9683 shlibpath_overrides_runpath=yes
9684 ;;
9685
9686nto-qnx*)
9687 version_type=linux
9688 need_lib_prefix=no
9689 need_version=no
9690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691 soname_spec='${libname}${release}${shared_ext}$major'
9692 shlibpath_var=LD_LIBRARY_PATH
9693 shlibpath_overrides_runpath=yes
9694 ;;
9695
9696openbsd*)
9697 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009698 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009699 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009700 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9701 case $host_os in
9702 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9703 *) need_version=no ;;
9704 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9707 shlibpath_var=LD_LIBRARY_PATH
9708 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9709 case $host_os in
9710 openbsd2.[89] | openbsd2.[89].*)
9711 shlibpath_overrides_runpath=no
9712 ;;
9713 *)
9714 shlibpath_overrides_runpath=yes
9715 ;;
9716 esac
9717 else
9718 shlibpath_overrides_runpath=yes
9719 fi
9720 ;;
9721
9722os2*)
9723 libname_spec='$name'
9724 shrext_cmds=".dll"
9725 need_lib_prefix=no
9726 library_names_spec='$libname${shared_ext} $libname.a'
9727 dynamic_linker='OS/2 ld.exe'
9728 shlibpath_var=LIBPATH
9729 ;;
9730
9731osf3* | osf4* | osf5*)
9732 version_type=osf
9733 need_lib_prefix=no
9734 need_version=no
9735 soname_spec='${libname}${release}${shared_ext}$major'
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9737 shlibpath_var=LD_LIBRARY_PATH
9738 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9739 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9740 ;;
9741
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009742solaris*)
9743 version_type=linux
9744 need_lib_prefix=no
9745 need_version=no
9746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9747 soname_spec='${libname}${release}${shared_ext}$major'
9748 shlibpath_var=LD_LIBRARY_PATH
9749 shlibpath_overrides_runpath=yes
9750 hardcode_into_libs=yes
9751 # ldd complains unless libraries are executable
9752 postinstall_cmds='chmod +x $lib'
9753 ;;
9754
9755sunos4*)
9756 version_type=sunos
9757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9758 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9759 shlibpath_var=LD_LIBRARY_PATH
9760 shlibpath_overrides_runpath=yes
9761 if test "$with_gnu_ld" = yes; then
9762 need_lib_prefix=no
9763 fi
9764 need_version=yes
9765 ;;
9766
Reid Spencera773bd52006-08-04 18:18:08 +00009767sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009768 version_type=linux
9769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9770 soname_spec='${libname}${release}${shared_ext}$major'
9771 shlibpath_var=LD_LIBRARY_PATH
9772 case $host_vendor in
9773 sni)
9774 shlibpath_overrides_runpath=no
9775 need_lib_prefix=no
9776 export_dynamic_flag_spec='${wl}-Blargedynsym'
9777 runpath_var=LD_RUN_PATH
9778 ;;
9779 siemens)
9780 need_lib_prefix=no
9781 ;;
9782 motorola)
9783 need_lib_prefix=no
9784 need_version=no
9785 shlibpath_overrides_runpath=no
9786 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9787 ;;
9788 esac
9789 ;;
9790
9791sysv4*MP*)
9792 if test -d /usr/nec ;then
9793 version_type=linux
9794 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9795 soname_spec='$libname${shared_ext}.$major'
9796 shlibpath_var=LD_LIBRARY_PATH
9797 fi
9798 ;;
9799
Reid Spencera773bd52006-08-04 18:18:08 +00009800sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9801 version_type=freebsd-elf
9802 need_lib_prefix=no
9803 need_version=no
9804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9805 soname_spec='${libname}${release}${shared_ext}$major'
9806 shlibpath_var=LD_LIBRARY_PATH
9807 hardcode_into_libs=yes
9808 if test "$with_gnu_ld" = yes; then
9809 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9810 shlibpath_overrides_runpath=no
9811 else
9812 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9813 shlibpath_overrides_runpath=yes
9814 case $host_os in
9815 sco3.2v5*)
9816 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9817 ;;
9818 esac
9819 fi
9820 sys_lib_dlsearch_path_spec='/usr/lib'
9821 ;;
9822
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009823uts4*)
9824 version_type=linux
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 shlibpath_var=LD_LIBRARY_PATH
9828 ;;
9829
9830*)
9831 dynamic_linker=no
9832 ;;
9833esac
Reid Spencera773bd52006-08-04 18:18:08 +00009834{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9835echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009836test "$dynamic_linker" = no && can_build_shared=no
9837
Reid Spencera773bd52006-08-04 18:18:08 +00009838variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9839if test "$GCC" = yes; then
9840 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9841fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009842
Reid Spencera773bd52006-08-04 18:18:08 +00009843
9844{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9845echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009846if test "${libltdl_cv_shlibext+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9848else
9849
9850module=yes
9851eval libltdl_cv_shlibext=$shrext_cmds
9852
9853fi
Reid Spencera773bd52006-08-04 18:18:08 +00009854{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9855echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009856if test -n "$libltdl_cv_shlibext"; then
9857
9858cat >>confdefs.h <<_ACEOF
9859#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9860_ACEOF
9861
9862fi
9863
9864
Reid Spencera773bd52006-08-04 18:18:08 +00009865{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9866echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009867if test "${libltdl_cv_shlibpath_var+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9869else
9870 libltdl_cv_shlibpath_var="$shlibpath_var"
9871fi
Reid Spencera773bd52006-08-04 18:18:08 +00009872{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9873echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009874if test -n "$libltdl_cv_shlibpath_var"; then
9875
9876cat >>confdefs.h <<_ACEOF
9877#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9878_ACEOF
9879
9880fi
9881
9882
Reid Spencera773bd52006-08-04 18:18:08 +00009883{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9884echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009885if test "${libltdl_cv_sys_search_path+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9887else
9888 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9889fi
Reid Spencera773bd52006-08-04 18:18:08 +00009890{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9891echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009892if test -n "$libltdl_cv_sys_search_path"; then
9893 sys_search_path=
9894 for dir in $libltdl_cv_sys_search_path; do
9895 if test -z "$sys_search_path"; then
9896 sys_search_path="$dir"
9897 else
9898 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9899 fi
9900 done
9901
9902cat >>confdefs.h <<_ACEOF
9903#define LTDL_SYSSEARCHPATH "$sys_search_path"
9904_ACEOF
9905
9906fi
9907
Reid Spencera773bd52006-08-04 18:18:08 +00009908{ echo "$as_me:$LINENO: checking for objdir" >&5
9909echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009910if test "${libltdl_cv_objdir+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9912else
9913 libltdl_cv_objdir="$objdir"
9914 if test -n "$objdir"; then
9915 :
9916 else
9917 rm -f .libs 2>/dev/null
9918 mkdir .libs 2>/dev/null
9919 if test -d .libs; then
9920 libltdl_cv_objdir=.libs
9921 else
9922 # MS-DOS does not allow filenames that begin with a dot.
9923 libltdl_cv_objdir=_libs
9924 fi
9925 rmdir .libs 2>/dev/null
9926 fi
9927
9928fi
Reid Spencera773bd52006-08-04 18:18:08 +00009929{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9930echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009931
9932cat >>confdefs.h <<_ACEOF
9933#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9934_ACEOF
9935
9936
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009937
9938
9939
9940
9941# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009942{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9943echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009944if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9946else
9947
9948# These are sane defaults that work on at least a few old systems.
9949# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9950
9951# Character class describing NM global symbol codes.
9952symcode='[BCDEGRST]'
9953
9954# Regexp to match symbols that can be accessed directly from C.
9955sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9956
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009957# Transform an extracted symbol line into a proper C declaration
9958lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9959
9960# Transform an extracted symbol line into symbol name and symbol address
9961lt_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'"
9962
9963# Define system-specific variables.
9964case $host_os in
9965aix*)
9966 symcode='[BCDT]'
9967 ;;
9968cygwin* | mingw* | pw32*)
9969 symcode='[ABCDGISTW]'
9970 ;;
9971hpux*) # Its linker distinguishes data from code symbols
9972 if test "$host_cpu" = ia64; then
9973 symcode='[ABCDEGRST]'
9974 fi
9975 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9976 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'"
9977 ;;
9978linux*)
9979 if test "$host_cpu" = ia64; then
9980 symcode='[ABCDGIRSTW]'
9981 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9982 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'"
9983 fi
9984 ;;
9985irix* | nonstopux*)
9986 symcode='[BCDEGRST]'
9987 ;;
9988osf*)
9989 symcode='[BCDEGQRST]'
9990 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009991solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009992 symcode='[BDRT]'
9993 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009994sco3.2v5*)
9995 symcode='[DT]'
9996 ;;
9997sysv4.2uw2*)
9998 symcode='[DT]'
9999 ;;
10000sysv5* | sco5v6* | unixware* | OpenUNIX*)
10001 symcode='[ABDT]'
10002 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010003sysv4)
10004 symcode='[DFNSTU]'
10005 ;;
10006esac
10007
10008# Handle CRLF in mingw tool chain
10009opt_cr=
10010case $build_os in
10011mingw*)
10012 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10013 ;;
10014esac
10015
10016# If we're using GNU nm, then use its standard symbol codes.
10017case `$NM -V 2>&1` in
10018*GNU* | *'with BFD'*)
10019 symcode='[ABCDGIRSTW]' ;;
10020esac
10021
10022# Try without a prefix undercore, then with it.
10023for ac_symprfx in "" "_"; do
10024
Reid Spencera773bd52006-08-04 18:18:08 +000010025 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10026 symxfrm="\\1 $ac_symprfx\\2 \\2"
10027
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010028 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010029 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 +000010030
10031 # Check to see that the pipe works correctly.
10032 pipe_works=no
10033
10034 rm -f conftest*
10035 cat > conftest.$ac_ext <<EOF
10036#ifdef __cplusplus
10037extern "C" {
10038#endif
10039char nm_test_var;
10040void nm_test_func(){}
10041#ifdef __cplusplus
10042}
10043#endif
10044int main(){nm_test_var='a';nm_test_func();return(0);}
10045EOF
10046
10047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10048 (eval $ac_compile) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; then
10052 # Now try to grab the symbols.
10053 nlist=conftest.nm
10054 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10055 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10056 ac_status=$?
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } && test -s "$nlist"; then
10059 # Try sorting and uniquifying the output.
10060 if sort "$nlist" | uniq > "$nlist"T; then
10061 mv -f "$nlist"T "$nlist"
10062 else
10063 rm -f "$nlist"T
10064 fi
10065
10066 # Make sure that we snagged all the symbols we need.
10067 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10068 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10069 cat <<EOF > conftest.$ac_ext
10070#ifdef __cplusplus
10071extern "C" {
10072#endif
10073
10074EOF
10075 # Now generate the symbol file.
10076 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10077
10078 cat <<EOF >> conftest.$ac_ext
10079#if defined (__STDC__) && __STDC__
10080# define lt_ptr_t void *
10081#else
10082# define lt_ptr_t char *
10083# define const
10084#endif
10085
10086/* The mapping between symbol names and symbols. */
10087const struct {
10088 const char *name;
10089 lt_ptr_t address;
10090}
10091lt_preloaded_symbols[] =
10092{
10093EOF
10094 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10095 cat <<\EOF >> conftest.$ac_ext
10096 {0, (lt_ptr_t) 0}
10097};
10098
10099#ifdef __cplusplus
10100}
10101#endif
10102EOF
10103 # Now try linking the two files.
10104 mv conftest.$ac_objext conftstm.$ac_objext
10105 lt_save_LIBS="$LIBS"
10106 lt_save_CFLAGS="$CFLAGS"
10107 LIBS="conftstm.$ac_objext"
10108 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10110 (eval $ac_link) 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10114 pipe_works=yes
10115 fi
10116 LIBS="$lt_save_LIBS"
10117 CFLAGS="$lt_save_CFLAGS"
10118 else
10119 echo "cannot find nm_test_func in $nlist" >&5
10120 fi
10121 else
10122 echo "cannot find nm_test_var in $nlist" >&5
10123 fi
10124 else
10125 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10126 fi
10127 else
10128 echo "$progname: failed program was:" >&5
10129 cat conftest.$ac_ext >&5
10130 fi
10131 rm -f conftest* conftst*
10132
10133 # Do not use the global_symbol_pipe unless it works.
10134 if test "$pipe_works" = yes; then
10135 break
10136 else
10137 lt_cv_sys_global_symbol_pipe=
10138 fi
10139done
10140
10141fi
10142
10143if test -z "$lt_cv_sys_global_symbol_pipe"; then
10144 lt_cv_sys_global_symbol_to_cdecl=
10145fi
10146if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010147 { echo "$as_me:$LINENO: result: failed" >&5
10148echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010149else
Reid Spencera773bd52006-08-04 18:18:08 +000010150 { echo "$as_me:$LINENO: result: ok" >&5
10151echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010152fi
10153
10154
Reid Spencera773bd52006-08-04 18:18:08 +000010155{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10156echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010157if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10159else
10160 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10161 libltdl_cv_preloaded_symbols=yes
10162 else
10163 libltdl_cv_preloaded_symbols=no
10164 fi
10165
10166fi
Reid Spencera773bd52006-08-04 18:18:08 +000010167{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10168echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010169if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10170
10171cat >>confdefs.h <<\_ACEOF
10172#define HAVE_PRELOADED_SYMBOLS 1
10173_ACEOF
10174
10175fi
10176
10177LIBADD_DL=
10178
10179ac_ext=c
10180ac_cpp='$CPP $CPPFLAGS'
10181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10183ac_compiler_gnu=$ac_cv_c_compiler_gnu
10184
10185
Reid Spencera773bd52006-08-04 18:18:08 +000010186{ echo "$as_me:$LINENO: checking for shl_load" >&5
10187echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010188if test "${ac_cv_func_shl_load+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10190else
10191 cat >conftest.$ac_ext <<_ACEOF
10192/* confdefs.h. */
10193_ACEOF
10194cat confdefs.h >>conftest.$ac_ext
10195cat >>conftest.$ac_ext <<_ACEOF
10196/* end confdefs.h. */
10197/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10199#define shl_load innocuous_shl_load
10200
10201/* System header to define __stub macros and hopefully few prototypes,
10202 which can conflict with char shl_load (); below.
10203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10204 <limits.h> exists even on freestanding compilers. */
10205
10206#ifdef __STDC__
10207# include <limits.h>
10208#else
10209# include <assert.h>
10210#endif
10211
10212#undef shl_load
10213
Reid Spencera773bd52006-08-04 18:18:08 +000010214/* Override any GCC internal prototype to avoid an error.
10215 Use char because int might match the return type of a GCC
10216 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010217#ifdef __cplusplus
10218extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010219#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010220char shl_load ();
10221/* The GNU C library defines this for functions which it implements
10222 to always fail with ENOSYS. Some functions are actually named
10223 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010224#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010225choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010226#endif
10227
10228int
10229main ()
10230{
Reid Spencera773bd52006-08-04 18:18:08 +000010231return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010232 ;
10233 return 0;
10234}
10235_ACEOF
10236rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010237if { (ac_try="$ac_link"
10238case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10241esac
10242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010244 ac_status=$?
10245 grep -v '^ *+' conftest.er1 >conftest.err
10246 rm -f conftest.er1
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010249 (exit $ac_status); } &&
10250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10251 { (case "(($ac_try" in
10252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10253 *) ac_try_echo=$ac_try;;
10254esac
10255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10256 (eval "$ac_try") 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; } &&
10260 { ac_try='test -s conftest$ac_exeext'
10261 { (case "(($ac_try" in
10262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10264esac
10265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_try") 2>&5
10267 ac_status=$?
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010270 ac_cv_func_shl_load=yes
10271else
10272 echo "$as_me: failed program was:" >&5
10273sed 's/^/| /' conftest.$ac_ext >&5
10274
Reid Spencera773bd52006-08-04 18:18:08 +000010275 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010276fi
Reid Spencera773bd52006-08-04 18:18:08 +000010277
Bill Wendlingebcceee2009-04-18 11:20:33 +000010278rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010279 conftest$ac_exeext conftest.$ac_ext
10280fi
Reid Spencera773bd52006-08-04 18:18:08 +000010281{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10282echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010283if test $ac_cv_func_shl_load = yes; then
10284
10285cat >>confdefs.h <<\_ACEOF
10286#define HAVE_SHL_LOAD 1
10287_ACEOF
10288
10289else
Reid Spencera773bd52006-08-04 18:18:08 +000010290 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10291echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010292if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10294else
10295 ac_check_lib_save_LIBS=$LIBS
10296LIBS="-ldld $LIBS"
10297cat >conftest.$ac_ext <<_ACEOF
10298/* confdefs.h. */
10299_ACEOF
10300cat confdefs.h >>conftest.$ac_ext
10301cat >>conftest.$ac_ext <<_ACEOF
10302/* end confdefs.h. */
10303
Reid Spencera773bd52006-08-04 18:18:08 +000010304/* Override any GCC internal prototype to avoid an error.
10305 Use char because int might match the return type of a GCC
10306 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010307#ifdef __cplusplus
10308extern "C"
10309#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010310char shl_load ();
10311int
10312main ()
10313{
Reid Spencera773bd52006-08-04 18:18:08 +000010314return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010315 ;
10316 return 0;
10317}
10318_ACEOF
10319rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010320if { (ac_try="$ac_link"
10321case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10324esac
10325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010327 ac_status=$?
10328 grep -v '^ *+' conftest.er1 >conftest.err
10329 rm -f conftest.er1
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010332 (exit $ac_status); } &&
10333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10334 { (case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10337esac
10338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_try") 2>&5
10340 ac_status=$?
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; } &&
10343 { ac_try='test -s conftest$ac_exeext'
10344 { (case "(($ac_try" in
10345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10346 *) ac_try_echo=$ac_try;;
10347esac
10348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10349 (eval "$ac_try") 2>&5
10350 ac_status=$?
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010353 ac_cv_lib_dld_shl_load=yes
10354else
10355 echo "$as_me: failed program was:" >&5
10356sed 's/^/| /' conftest.$ac_ext >&5
10357
Reid Spencera773bd52006-08-04 18:18:08 +000010358 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010359fi
Reid Spencera773bd52006-08-04 18:18:08 +000010360
Bill Wendlingebcceee2009-04-18 11:20:33 +000010361rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010362 conftest$ac_exeext conftest.$ac_ext
10363LIBS=$ac_check_lib_save_LIBS
10364fi
Reid Spencera773bd52006-08-04 18:18:08 +000010365{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10366echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010367if test $ac_cv_lib_dld_shl_load = yes; then
10368
10369cat >>confdefs.h <<\_ACEOF
10370#define HAVE_SHL_LOAD 1
10371_ACEOF
10372
10373 LIBADD_DL="$LIBADD_DL -ldld"
10374else
Reid Spencera773bd52006-08-04 18:18:08 +000010375 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10376echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010377if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10379else
10380 ac_check_lib_save_LIBS=$LIBS
10381LIBS="-ldl $LIBS"
10382cat >conftest.$ac_ext <<_ACEOF
10383/* confdefs.h. */
10384_ACEOF
10385cat confdefs.h >>conftest.$ac_ext
10386cat >>conftest.$ac_ext <<_ACEOF
10387/* end confdefs.h. */
10388
Reid Spencera773bd52006-08-04 18:18:08 +000010389/* Override any GCC internal prototype to avoid an error.
10390 Use char because int might match the return type of a GCC
10391 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010392#ifdef __cplusplus
10393extern "C"
10394#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010395char dlopen ();
10396int
10397main ()
10398{
Reid Spencera773bd52006-08-04 18:18:08 +000010399return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010400 ;
10401 return 0;
10402}
10403_ACEOF
10404rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010405if { (ac_try="$ac_link"
10406case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10409esac
10410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010412 ac_status=$?
10413 grep -v '^ *+' conftest.er1 >conftest.err
10414 rm -f conftest.er1
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010417 (exit $ac_status); } &&
10418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10419 { (case "(($ac_try" in
10420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10422esac
10423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_try") 2>&5
10425 ac_status=$?
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; } &&
10428 { ac_try='test -s conftest$ac_exeext'
10429 { (case "(($ac_try" in
10430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10431 *) ac_try_echo=$ac_try;;
10432esac
10433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10434 (eval "$ac_try") 2>&5
10435 ac_status=$?
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010438 ac_cv_lib_dl_dlopen=yes
10439else
10440 echo "$as_me: failed program was:" >&5
10441sed 's/^/| /' conftest.$ac_ext >&5
10442
Reid Spencera773bd52006-08-04 18:18:08 +000010443 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010444fi
Reid Spencera773bd52006-08-04 18:18:08 +000010445
Bill Wendlingebcceee2009-04-18 11:20:33 +000010446rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447 conftest$ac_exeext conftest.$ac_ext
10448LIBS=$ac_check_lib_save_LIBS
10449fi
Reid Spencera773bd52006-08-04 18:18:08 +000010450{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10451echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010452if test $ac_cv_lib_dl_dlopen = yes; then
10453
10454cat >>confdefs.h <<\_ACEOF
10455#define HAVE_LIBDL 1
10456_ACEOF
10457
10458 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10459else
10460 cat >conftest.$ac_ext <<_ACEOF
10461/* confdefs.h. */
10462_ACEOF
10463cat confdefs.h >>conftest.$ac_ext
10464cat >>conftest.$ac_ext <<_ACEOF
10465/* end confdefs.h. */
10466#if HAVE_DLFCN_H
10467# include <dlfcn.h>
10468#endif
10469
10470int
10471main ()
10472{
10473dlopen(0, 0);
10474 ;
10475 return 0;
10476}
10477_ACEOF
10478rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010479if { (ac_try="$ac_link"
10480case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483esac
10484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010486 ac_status=$?
10487 grep -v '^ *+' conftest.er1 >conftest.err
10488 rm -f conftest.er1
10489 cat conftest.err >&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010491 (exit $ac_status); } &&
10492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10493 { (case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10496esac
10497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_try") 2>&5
10499 ac_status=$?
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; } &&
10502 { ac_try='test -s conftest$ac_exeext'
10503 { (case "(($ac_try" in
10504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505 *) ac_try_echo=$ac_try;;
10506esac
10507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10508 (eval "$ac_try") 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010512
10513cat >>confdefs.h <<\_ACEOF
10514#define HAVE_LIBDL 1
10515_ACEOF
10516 libltdl_cv_func_dlopen="yes"
10517else
10518 echo "$as_me: failed program was:" >&5
10519sed 's/^/| /' conftest.$ac_ext >&5
10520
Reid Spencera773bd52006-08-04 18:18:08 +000010521 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10522echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010523if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10525else
10526 ac_check_lib_save_LIBS=$LIBS
10527LIBS="-lsvld $LIBS"
10528cat >conftest.$ac_ext <<_ACEOF
10529/* confdefs.h. */
10530_ACEOF
10531cat confdefs.h >>conftest.$ac_ext
10532cat >>conftest.$ac_ext <<_ACEOF
10533/* end confdefs.h. */
10534
Reid Spencera773bd52006-08-04 18:18:08 +000010535/* Override any GCC internal prototype to avoid an error.
10536 Use char because int might match the return type of a GCC
10537 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010538#ifdef __cplusplus
10539extern "C"
10540#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010541char dlopen ();
10542int
10543main ()
10544{
Reid Spencera773bd52006-08-04 18:18:08 +000010545return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010546 ;
10547 return 0;
10548}
10549_ACEOF
10550rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010551if { (ac_try="$ac_link"
10552case "(($ac_try" in
10553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554 *) ac_try_echo=$ac_try;;
10555esac
10556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010558 ac_status=$?
10559 grep -v '^ *+' conftest.er1 >conftest.err
10560 rm -f conftest.er1
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010563 (exit $ac_status); } &&
10564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10565 { (case "(($ac_try" in
10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10568esac
10569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10570 (eval "$ac_try") 2>&5
10571 ac_status=$?
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); }; } &&
10574 { ac_try='test -s conftest$ac_exeext'
10575 { (case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10578esac
10579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_try") 2>&5
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010584 ac_cv_lib_svld_dlopen=yes
10585else
10586 echo "$as_me: failed program was:" >&5
10587sed 's/^/| /' conftest.$ac_ext >&5
10588
Reid Spencera773bd52006-08-04 18:18:08 +000010589 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010590fi
Reid Spencera773bd52006-08-04 18:18:08 +000010591
Bill Wendlingebcceee2009-04-18 11:20:33 +000010592rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010593 conftest$ac_exeext conftest.$ac_ext
10594LIBS=$ac_check_lib_save_LIBS
10595fi
Reid Spencera773bd52006-08-04 18:18:08 +000010596{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10597echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010598if test $ac_cv_lib_svld_dlopen = yes; then
10599
10600cat >>confdefs.h <<\_ACEOF
10601#define HAVE_LIBDL 1
10602_ACEOF
10603
10604 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10605else
Reid Spencera773bd52006-08-04 18:18:08 +000010606 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10607echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010608if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10610else
10611 ac_check_lib_save_LIBS=$LIBS
10612LIBS="-ldld $LIBS"
10613cat >conftest.$ac_ext <<_ACEOF
10614/* confdefs.h. */
10615_ACEOF
10616cat confdefs.h >>conftest.$ac_ext
10617cat >>conftest.$ac_ext <<_ACEOF
10618/* end confdefs.h. */
10619
Reid Spencera773bd52006-08-04 18:18:08 +000010620/* Override any GCC internal prototype to avoid an error.
10621 Use char because int might match the return type of a GCC
10622 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010623#ifdef __cplusplus
10624extern "C"
10625#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010626char dld_link ();
10627int
10628main ()
10629{
Reid Spencera773bd52006-08-04 18:18:08 +000010630return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010631 ;
10632 return 0;
10633}
10634_ACEOF
10635rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010636if { (ac_try="$ac_link"
10637case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10640esac
10641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010643 ac_status=$?
10644 grep -v '^ *+' conftest.er1 >conftest.err
10645 rm -f conftest.er1
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010648 (exit $ac_status); } &&
10649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10650 { (case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10653esac
10654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_try") 2>&5
10656 ac_status=$?
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; } &&
10659 { ac_try='test -s conftest$ac_exeext'
10660 { (case "(($ac_try" in
10661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662 *) ac_try_echo=$ac_try;;
10663esac
10664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665 (eval "$ac_try") 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010669 ac_cv_lib_dld_dld_link=yes
10670else
10671 echo "$as_me: failed program was:" >&5
10672sed 's/^/| /' conftest.$ac_ext >&5
10673
Reid Spencera773bd52006-08-04 18:18:08 +000010674 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010675fi
Reid Spencera773bd52006-08-04 18:18:08 +000010676
Bill Wendlingebcceee2009-04-18 11:20:33 +000010677rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010678 conftest$ac_exeext conftest.$ac_ext
10679LIBS=$ac_check_lib_save_LIBS
10680fi
Reid Spencera773bd52006-08-04 18:18:08 +000010681{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10682echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010683if test $ac_cv_lib_dld_dld_link = yes; then
10684
10685cat >>confdefs.h <<\_ACEOF
10686#define HAVE_DLD 1
10687_ACEOF
10688
10689 LIBADD_DL="$LIBADD_DL -ldld"
10690else
Reid Spencera773bd52006-08-04 18:18:08 +000010691 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10692echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010693if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10695else
10696 cat >conftest.$ac_ext <<_ACEOF
10697/* confdefs.h. */
10698_ACEOF
10699cat confdefs.h >>conftest.$ac_ext
10700cat >>conftest.$ac_ext <<_ACEOF
10701/* end confdefs.h. */
10702/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10704#define _dyld_func_lookup innocuous__dyld_func_lookup
10705
10706/* System header to define __stub macros and hopefully few prototypes,
10707 which can conflict with char _dyld_func_lookup (); below.
10708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10709 <limits.h> exists even on freestanding compilers. */
10710
10711#ifdef __STDC__
10712# include <limits.h>
10713#else
10714# include <assert.h>
10715#endif
10716
10717#undef _dyld_func_lookup
10718
Reid Spencera773bd52006-08-04 18:18:08 +000010719/* Override any GCC internal prototype to avoid an error.
10720 Use char because int might match the return type of a GCC
10721 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010722#ifdef __cplusplus
10723extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010724#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010725char _dyld_func_lookup ();
10726/* The GNU C library defines this for functions which it implements
10727 to always fail with ENOSYS. Some functions are actually named
10728 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010729#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010730choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010731#endif
10732
10733int
10734main ()
10735{
Reid Spencera773bd52006-08-04 18:18:08 +000010736return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010737 ;
10738 return 0;
10739}
10740_ACEOF
10741rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010742if { (ac_try="$ac_link"
10743case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10746esac
10747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749 ac_status=$?
10750 grep -v '^ *+' conftest.er1 >conftest.err
10751 rm -f conftest.er1
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010754 (exit $ac_status); } &&
10755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10756 { (case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10759esac
10760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761 (eval "$ac_try") 2>&5
10762 ac_status=$?
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; } &&
10765 { ac_try='test -s conftest$ac_exeext'
10766 { (case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10769esac
10770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_try") 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010775 ac_cv_func__dyld_func_lookup=yes
10776else
10777 echo "$as_me: failed program was:" >&5
10778sed 's/^/| /' conftest.$ac_ext >&5
10779
Reid Spencera773bd52006-08-04 18:18:08 +000010780 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010781fi
Reid Spencera773bd52006-08-04 18:18:08 +000010782
Bill Wendlingebcceee2009-04-18 11:20:33 +000010783rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010784 conftest$ac_exeext conftest.$ac_ext
10785fi
Reid Spencera773bd52006-08-04 18:18:08 +000010786{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10787echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010788if test $ac_cv_func__dyld_func_lookup = yes; then
10789
10790cat >>confdefs.h <<\_ACEOF
10791#define HAVE_DYLD 1
10792_ACEOF
10793
10794fi
10795
10796
10797fi
10798
10799
10800fi
10801
10802
10803fi
Reid Spencera773bd52006-08-04 18:18:08 +000010804
Bill Wendlingebcceee2009-04-18 11:20:33 +000010805rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010806 conftest$ac_exeext conftest.$ac_ext
10807
10808fi
10809
10810
10811fi
10812
10813
10814fi
10815
10816
10817if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10818then
10819 lt_save_LIBS="$LIBS"
10820 LIBS="$LIBS $LIBADD_DL"
10821
10822for ac_func in dlerror
10823do
10824as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010825{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10826echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10827if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010828 echo $ECHO_N "(cached) $ECHO_C" >&6
10829else
10830 cat >conftest.$ac_ext <<_ACEOF
10831/* confdefs.h. */
10832_ACEOF
10833cat confdefs.h >>conftest.$ac_ext
10834cat >>conftest.$ac_ext <<_ACEOF
10835/* end confdefs.h. */
10836/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10838#define $ac_func innocuous_$ac_func
10839
10840/* System header to define __stub macros and hopefully few prototypes,
10841 which can conflict with char $ac_func (); below.
10842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10843 <limits.h> exists even on freestanding compilers. */
10844
10845#ifdef __STDC__
10846# include <limits.h>
10847#else
10848# include <assert.h>
10849#endif
10850
10851#undef $ac_func
10852
Reid Spencera773bd52006-08-04 18:18:08 +000010853/* Override any GCC internal prototype to avoid an error.
10854 Use char because int might match the return type of a GCC
10855 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010856#ifdef __cplusplus
10857extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010858#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010859char $ac_func ();
10860/* The GNU C library defines this for functions which it implements
10861 to always fail with ENOSYS. Some functions are actually named
10862 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010863#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010864choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010865#endif
10866
10867int
10868main ()
10869{
Reid Spencera773bd52006-08-04 18:18:08 +000010870return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010871 ;
10872 return 0;
10873}
10874_ACEOF
10875rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010876if { (ac_try="$ac_link"
10877case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10880esac
10881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010883 ac_status=$?
10884 grep -v '^ *+' conftest.er1 >conftest.err
10885 rm -f conftest.er1
10886 cat conftest.err >&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010888 (exit $ac_status); } &&
10889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10890 { (case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10893esac
10894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_try") 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; } &&
10899 { ac_try='test -s conftest$ac_exeext'
10900 { (case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10903esac
10904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_try") 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010909 eval "$as_ac_var=yes"
10910else
10911 echo "$as_me: failed program was:" >&5
10912sed 's/^/| /' conftest.$ac_ext >&5
10913
Reid Spencera773bd52006-08-04 18:18:08 +000010914 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010915fi
Reid Spencera773bd52006-08-04 18:18:08 +000010916
Bill Wendlingebcceee2009-04-18 11:20:33 +000010917rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010918 conftest$ac_exeext conftest.$ac_ext
10919fi
Reid Spencera773bd52006-08-04 18:18:08 +000010920ac_res=`eval echo '${'$as_ac_var'}'`
10921 { echo "$as_me:$LINENO: result: $ac_res" >&5
10922echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010923if test `eval echo '${'$as_ac_var'}'` = yes; then
10924 cat >>confdefs.h <<_ACEOF
10925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10926_ACEOF
10927
10928fi
10929done
10930
10931 LIBS="$lt_save_LIBS"
10932fi
10933ac_ext=c
10934ac_cpp='$CPP $CPPFLAGS'
10935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10937ac_compiler_gnu=$ac_cv_c_compiler_gnu
10938
10939
10940
Reid Spencera773bd52006-08-04 18:18:08 +000010941{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10942echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010943if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10945else
10946 ac_cv_sys_symbol_underscore=no
10947 cat > conftest.$ac_ext <<EOF
10948void nm_test_func(){}
10949int main(){nm_test_func;return 0;}
10950EOF
10951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10952 (eval $ac_compile) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; then
10956 # Now try to grab the symbols.
10957 ac_nlist=conftest.nm
10958 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10959 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10960 ac_status=$?
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } && test -s "$ac_nlist"; then
10963 # See whether the symbols have a leading underscore.
10964 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10965 ac_cv_sys_symbol_underscore=yes
10966 else
10967 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10968 :
10969 else
10970 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10971 fi
10972 fi
10973 else
10974 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10975 fi
10976 else
10977 echo "configure: failed program was:" >&5
10978 cat conftest.c >&5
10979 fi
10980 rm -rf conftest*
10981
10982fi
Reid Spencera773bd52006-08-04 18:18:08 +000010983{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10984echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010985
10986
10987if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10988 if test x"$libltdl_cv_func_dlopen" = xyes ||
10989 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010990 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10991echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010992if test "${libltdl_cv_need_uscore+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10994else
10995 libltdl_cv_need_uscore=unknown
10996 save_LIBS="$LIBS"
10997 LIBS="$LIBS $LIBADD_DL"
10998 if test "$cross_compiling" = yes; then :
10999 libltdl_cv_need_uscore=cross
11000else
11001 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11002 lt_status=$lt_dlunknown
11003 cat > conftest.$ac_ext <<EOF
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000011004#line 11004 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011005#include "confdefs.h"
11006
11007#if HAVE_DLFCN_H
11008#include <dlfcn.h>
11009#endif
11010
11011#include <stdio.h>
11012
11013#ifdef RTLD_GLOBAL
11014# define LT_DLGLOBAL RTLD_GLOBAL
11015#else
11016# ifdef DL_GLOBAL
11017# define LT_DLGLOBAL DL_GLOBAL
11018# else
11019# define LT_DLGLOBAL 0
11020# endif
11021#endif
11022
11023/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11024 find out it does not work in some platform. */
11025#ifndef LT_DLLAZY_OR_NOW
11026# ifdef RTLD_LAZY
11027# define LT_DLLAZY_OR_NOW RTLD_LAZY
11028# else
11029# ifdef DL_LAZY
11030# define LT_DLLAZY_OR_NOW DL_LAZY
11031# else
11032# ifdef RTLD_NOW
11033# define LT_DLLAZY_OR_NOW RTLD_NOW
11034# else
11035# ifdef DL_NOW
11036# define LT_DLLAZY_OR_NOW DL_NOW
11037# else
11038# define LT_DLLAZY_OR_NOW 0
11039# endif
11040# endif
11041# endif
11042# endif
11043#endif
11044
11045#ifdef __cplusplus
11046extern "C" void exit (int);
11047#endif
11048
11049void fnord() { int i=42;}
11050int main ()
11051{
11052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11053 int status = $lt_dlunknown;
11054
11055 if (self)
11056 {
11057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11058 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11059 /* dlclose (self); */
11060 }
Reid Spencera773bd52006-08-04 18:18:08 +000011061 else
11062 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011063
11064 exit (status);
11065}
11066EOF
11067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11068 (eval $ac_link) 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011072 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011073 lt_status=$?
11074 case x$lt_status in
11075 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11076 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011077 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011078 esac
11079 else :
11080 # compilation failed
11081
11082 fi
11083fi
11084rm -fr conftest*
11085
11086 LIBS="$save_LIBS"
11087
11088fi
Reid Spencera773bd52006-08-04 18:18:08 +000011089{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11090echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011091 fi
11092fi
11093
11094if test x"$libltdl_cv_need_uscore" = xyes; then
11095
11096cat >>confdefs.h <<\_ACEOF
11097#define NEED_USCORE 1
11098_ACEOF
11099
11100fi
11101
11102
Reid Spencera773bd52006-08-04 18:18:08 +000011103{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11104echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011105if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107else
11108 # PORTME does your system automatically load deplibs for dlopen?
11109 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11110 # For now, we just catch OSes we know something about -- in the
11111 # future, we'll try test this programmatically.
11112 libltdl_cv_sys_dlopen_deplibs=unknown
11113 case "$host_os" in
11114 aix3*|aix4.1.*|aix4.2.*)
11115 # Unknown whether this is true for these versions of AIX, but
11116 # we want this `case' here to explicitly catch those versions.
11117 libltdl_cv_sys_dlopen_deplibs=unknown
11118 ;;
11119 aix[45]*)
11120 libltdl_cv_sys_dlopen_deplibs=yes
11121 ;;
11122 darwin*)
11123 # Assuming the user has installed a libdl from somewhere, this is true
11124 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11125 libltdl_cv_sys_dlopen_deplibs=yes
11126 ;;
11127 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11128 # GNU and its variants, using gnu ld.so (Glibc)
11129 libltdl_cv_sys_dlopen_deplibs=yes
11130 ;;
11131 hpux10*|hpux11*)
11132 libltdl_cv_sys_dlopen_deplibs=yes
11133 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011134 interix*)
11135 libltdl_cv_sys_dlopen_deplibs=yes
11136 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011137 irix[12345]*|irix6.[01]*)
11138 # Catch all versions of IRIX before 6.2, and indicate that we don't
11139 # know how it worked for any of those versions.
11140 libltdl_cv_sys_dlopen_deplibs=unknown
11141 ;;
11142 irix*)
11143 # The case above catches anything before 6.2, and it's known that
11144 # at 6.2 and later dlopen does load deplibs.
11145 libltdl_cv_sys_dlopen_deplibs=yes
11146 ;;
11147 netbsd*)
11148 libltdl_cv_sys_dlopen_deplibs=yes
11149 ;;
11150 openbsd*)
11151 libltdl_cv_sys_dlopen_deplibs=yes
11152 ;;
11153 osf[1234]*)
11154 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11155 # it did *not* use an RPATH in a shared library to find objects the
11156 # library depends on, so we explictly say `no'.
11157 libltdl_cv_sys_dlopen_deplibs=no
11158 ;;
11159 osf5.0|osf5.0a|osf5.1)
11160 # dlopen *does* load deplibs and with the right loader patch applied
11161 # it even uses RPATH in a shared library to search for shared objects
11162 # that the library depends on, but there's no easy way to know if that
11163 # patch is installed. Since this is the case, all we can really
11164 # say is unknown -- it depends on the patch being installed. If
11165 # it is, this changes to `yes'. Without it, it would be `no'.
11166 libltdl_cv_sys_dlopen_deplibs=unknown
11167 ;;
11168 osf*)
11169 # the two cases above should catch all versions of osf <= 5.1. Read
11170 # the comments above for what we know about them.
11171 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11172 # is used to find them so we can finally say `yes'.
11173 libltdl_cv_sys_dlopen_deplibs=yes
11174 ;;
11175 solaris*)
11176 libltdl_cv_sys_dlopen_deplibs=yes
11177 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11179 libltdl_cv_sys_dlopen_deplibs=yes
11180 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011181 esac
11182
11183fi
Reid Spencera773bd52006-08-04 18:18:08 +000011184{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11185echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011186if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11187
11188cat >>confdefs.h <<\_ACEOF
11189#define LTDL_DLOPEN_DEPLIBS 1
11190_ACEOF
11191
11192fi
11193
11194
11195for ac_header in argz.h
11196do
11197as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011202 echo $ECHO_N "(cached) $ECHO_C" >&6
11203fi
Reid Spencera773bd52006-08-04 18:18:08 +000011204ac_res=`eval echo '${'$as_ac_Header'}'`
11205 { echo "$as_me:$LINENO: result: $ac_res" >&5
11206echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011207else
11208 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011209{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11210echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011211cat >conftest.$ac_ext <<_ACEOF
11212/* confdefs.h. */
11213_ACEOF
11214cat confdefs.h >>conftest.$ac_ext
11215cat >>conftest.$ac_ext <<_ACEOF
11216/* end confdefs.h. */
11217$ac_includes_default
11218#include <$ac_header>
11219_ACEOF
11220rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011221if { (ac_try="$ac_compile"
11222case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11225esac
11226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011228 ac_status=$?
11229 grep -v '^ *+' conftest.er1 >conftest.err
11230 rm -f conftest.er1
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011233 (exit $ac_status); } &&
11234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11235 { (case "(($ac_try" in
11236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237 *) ac_try_echo=$ac_try;;
11238esac
11239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11240 (eval "$ac_try") 2>&5
11241 ac_status=$?
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; } &&
11244 { ac_try='test -s conftest.$ac_objext'
11245 { (case "(($ac_try" in
11246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247 *) ac_try_echo=$ac_try;;
11248esac
11249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250 (eval "$ac_try") 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011254 ac_header_compiler=yes
11255else
11256 echo "$as_me: failed program was:" >&5
11257sed 's/^/| /' conftest.$ac_ext >&5
11258
Reid Spencera773bd52006-08-04 18:18:08 +000011259 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011260fi
Reid Spencera773bd52006-08-04 18:18:08 +000011261
11262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11263{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11264echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011265
11266# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011267{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11268echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011269cat >conftest.$ac_ext <<_ACEOF
11270/* confdefs.h. */
11271_ACEOF
11272cat confdefs.h >>conftest.$ac_ext
11273cat >>conftest.$ac_ext <<_ACEOF
11274/* end confdefs.h. */
11275#include <$ac_header>
11276_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011277if { (ac_try="$ac_cpp conftest.$ac_ext"
11278case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11281esac
11282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011284 ac_status=$?
11285 grep -v '^ *+' conftest.er1 >conftest.err
11286 rm -f conftest.er1
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011289 (exit $ac_status); } >/dev/null; then
11290 if test -s conftest.err; then
11291 ac_cpp_err=$ac_c_preproc_warn_flag
11292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11293 else
11294 ac_cpp_err=
11295 fi
11296else
11297 ac_cpp_err=yes
11298fi
11299if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011300 ac_header_preproc=yes
11301else
11302 echo "$as_me: failed program was:" >&5
11303sed 's/^/| /' conftest.$ac_ext >&5
11304
11305 ac_header_preproc=no
11306fi
Reid Spencera773bd52006-08-04 18:18:08 +000011307
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011308rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011309{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11310echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011311
11312# So? What about this header?
11313case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11314 yes:no: )
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11316echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11318echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11319 ac_header_preproc=yes
11320 ;;
11321 no:yes:* )
11322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11323echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11325echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11327echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11329echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11331echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11333echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011334 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011335## ----------------------------------- ##
11336## Report this to llvmbugs@cs.uiuc.edu ##
11337## ----------------------------------- ##
11338_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011339 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011340 ;;
11341esac
Reid Spencera773bd52006-08-04 18:18:08 +000011342{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11344if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011345 echo $ECHO_N "(cached) $ECHO_C" >&6
11346else
11347 eval "$as_ac_Header=\$ac_header_preproc"
11348fi
Reid Spencera773bd52006-08-04 18:18:08 +000011349ac_res=`eval echo '${'$as_ac_Header'}'`
11350 { echo "$as_me:$LINENO: result: $ac_res" >&5
11351echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011352
11353fi
11354if test `eval echo '${'$as_ac_Header'}'` = yes; then
11355 cat >>confdefs.h <<_ACEOF
11356#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11357_ACEOF
11358
11359fi
11360
11361done
11362
11363
Reid Spencera773bd52006-08-04 18:18:08 +000011364{ echo "$as_me:$LINENO: checking for error_t" >&5
11365echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011366if test "${ac_cv_type_error_t+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368else
11369 cat >conftest.$ac_ext <<_ACEOF
11370/* confdefs.h. */
11371_ACEOF
11372cat confdefs.h >>conftest.$ac_ext
11373cat >>conftest.$ac_ext <<_ACEOF
11374/* end confdefs.h. */
11375#if HAVE_ARGZ_H
11376# include <argz.h>
11377#endif
11378
Reid Spencera773bd52006-08-04 18:18:08 +000011379typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011380int
11381main ()
11382{
Reid Spencera773bd52006-08-04 18:18:08 +000011383if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011384 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011385if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011386 return 0;
11387 ;
11388 return 0;
11389}
11390_ACEOF
11391rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011392if { (ac_try="$ac_compile"
11393case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396esac
11397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011404 (exit $ac_status); } &&
11405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11406 { (case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11409esac
11410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_try") 2>&5
11412 ac_status=$?
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; } &&
11415 { ac_try='test -s conftest.$ac_objext'
11416 { (case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11419esac
11420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_try") 2>&5
11422 ac_status=$?
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011425 ac_cv_type_error_t=yes
11426else
11427 echo "$as_me: failed program was:" >&5
11428sed 's/^/| /' conftest.$ac_ext >&5
11429
Reid Spencera773bd52006-08-04 18:18:08 +000011430 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011431fi
Reid Spencera773bd52006-08-04 18:18:08 +000011432
11433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011434fi
Reid Spencera773bd52006-08-04 18:18:08 +000011435{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11436echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011437if test $ac_cv_type_error_t = yes; then
11438
11439cat >>confdefs.h <<_ACEOF
11440#define HAVE_ERROR_T 1
11441_ACEOF
11442
11443
11444else
11445
11446cat >>confdefs.h <<\_ACEOF
11447#define error_t int
11448_ACEOF
11449
11450fi
11451
11452
11453
11454
11455
11456
11457
11458for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11459do
11460as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011461{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11462echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11463if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011464 echo $ECHO_N "(cached) $ECHO_C" >&6
11465else
11466 cat >conftest.$ac_ext <<_ACEOF
11467/* confdefs.h. */
11468_ACEOF
11469cat confdefs.h >>conftest.$ac_ext
11470cat >>conftest.$ac_ext <<_ACEOF
11471/* end confdefs.h. */
11472/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11474#define $ac_func innocuous_$ac_func
11475
11476/* System header to define __stub macros and hopefully few prototypes,
11477 which can conflict with char $ac_func (); below.
11478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11479 <limits.h> exists even on freestanding compilers. */
11480
11481#ifdef __STDC__
11482# include <limits.h>
11483#else
11484# include <assert.h>
11485#endif
11486
11487#undef $ac_func
11488
Reid Spencera773bd52006-08-04 18:18:08 +000011489/* Override any GCC internal prototype to avoid an error.
11490 Use char because int might match the return type of a GCC
11491 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011492#ifdef __cplusplus
11493extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011494#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011495char $ac_func ();
11496/* The GNU C library defines this for functions which it implements
11497 to always fail with ENOSYS. Some functions are actually named
11498 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011499#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011500choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011501#endif
11502
11503int
11504main ()
11505{
Reid Spencera773bd52006-08-04 18:18:08 +000011506return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011507 ;
11508 return 0;
11509}
11510_ACEOF
11511rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011512if { (ac_try="$ac_link"
11513case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11516esac
11517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011519 ac_status=$?
11520 grep -v '^ *+' conftest.er1 >conftest.err
11521 rm -f conftest.er1
11522 cat conftest.err >&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011524 (exit $ac_status); } &&
11525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11526 { (case "(($ac_try" in
11527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528 *) ac_try_echo=$ac_try;;
11529esac
11530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11531 (eval "$ac_try") 2>&5
11532 ac_status=$?
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; } &&
11535 { ac_try='test -s conftest$ac_exeext'
11536 { (case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11539esac
11540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_try") 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011545 eval "$as_ac_var=yes"
11546else
11547 echo "$as_me: failed program was:" >&5
11548sed 's/^/| /' conftest.$ac_ext >&5
11549
Reid Spencera773bd52006-08-04 18:18:08 +000011550 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011551fi
Reid Spencera773bd52006-08-04 18:18:08 +000011552
Bill Wendlingebcceee2009-04-18 11:20:33 +000011553rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011554 conftest$ac_exeext conftest.$ac_ext
11555fi
Reid Spencera773bd52006-08-04 18:18:08 +000011556ac_res=`eval echo '${'$as_ac_var'}'`
11557 { echo "$as_me:$LINENO: result: $ac_res" >&5
11558echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011559if test `eval echo '${'$as_ac_var'}'` = yes; then
11560 cat >>confdefs.h <<_ACEOF
11561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11562_ACEOF
11563
11564fi
11565done
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11595 stdio.h unistd.h
11596do
11597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011602 echo $ECHO_N "(cached) $ECHO_C" >&6
11603fi
Reid Spencera773bd52006-08-04 18:18:08 +000011604ac_res=`eval echo '${'$as_ac_Header'}'`
11605 { echo "$as_me:$LINENO: result: $ac_res" >&5
11606echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011607else
11608 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011609{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11610echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011611cat >conftest.$ac_ext <<_ACEOF
11612/* confdefs.h. */
11613_ACEOF
11614cat confdefs.h >>conftest.$ac_ext
11615cat >>conftest.$ac_ext <<_ACEOF
11616/* end confdefs.h. */
11617$ac_includes_default
11618#include <$ac_header>
11619_ACEOF
11620rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011621if { (ac_try="$ac_compile"
11622case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625esac
11626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011628 ac_status=$?
11629 grep -v '^ *+' conftest.er1 >conftest.err
11630 rm -f conftest.er1
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011633 (exit $ac_status); } &&
11634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11635 { (case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638esac
11639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_try") 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; } &&
11644 { ac_try='test -s conftest.$ac_objext'
11645 { (case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11648esac
11649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_try") 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011654 ac_header_compiler=yes
11655else
11656 echo "$as_me: failed program was:" >&5
11657sed 's/^/| /' conftest.$ac_ext >&5
11658
Reid Spencera773bd52006-08-04 18:18:08 +000011659 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011660fi
Reid Spencera773bd52006-08-04 18:18:08 +000011661
11662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11663{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11664echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011665
11666# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011667{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011669cat >conftest.$ac_ext <<_ACEOF
11670/* confdefs.h. */
11671_ACEOF
11672cat confdefs.h >>conftest.$ac_ext
11673cat >>conftest.$ac_ext <<_ACEOF
11674/* end confdefs.h. */
11675#include <$ac_header>
11676_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011677if { (ac_try="$ac_cpp conftest.$ac_ext"
11678case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11681esac
11682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011684 ac_status=$?
11685 grep -v '^ *+' conftest.er1 >conftest.err
11686 rm -f conftest.er1
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011689 (exit $ac_status); } >/dev/null; then
11690 if test -s conftest.err; then
11691 ac_cpp_err=$ac_c_preproc_warn_flag
11692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11693 else
11694 ac_cpp_err=
11695 fi
11696else
11697 ac_cpp_err=yes
11698fi
11699if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011700 ac_header_preproc=yes
11701else
11702 echo "$as_me: failed program was:" >&5
11703sed 's/^/| /' conftest.$ac_ext >&5
11704
11705 ac_header_preproc=no
11706fi
Reid Spencera773bd52006-08-04 18:18:08 +000011707
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011708rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011709{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11710echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011711
11712# So? What about this header?
11713case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11714 yes:no: )
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11716echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11718echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11719 ac_header_preproc=yes
11720 ;;
11721 no:yes:* )
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11723echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11725echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11727echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11729echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11731echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11733echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011734 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011735## ----------------------------------- ##
11736## Report this to llvmbugs@cs.uiuc.edu ##
11737## ----------------------------------- ##
11738_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011739 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011740 ;;
11741esac
Reid Spencera773bd52006-08-04 18:18:08 +000011742{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011745 echo $ECHO_N "(cached) $ECHO_C" >&6
11746else
11747 eval "$as_ac_Header=\$ac_header_preproc"
11748fi
Reid Spencera773bd52006-08-04 18:18:08 +000011749ac_res=`eval echo '${'$as_ac_Header'}'`
11750 { echo "$as_me:$LINENO: result: $ac_res" >&5
11751echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752
11753fi
11754if test `eval echo '${'$as_ac_Header'}'` = yes; then
11755 cat >>confdefs.h <<_ACEOF
11756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11757_ACEOF
11758
11759fi
11760
11761done
11762
11763
11764
11765
11766
11767for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11768do
11769as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011770if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11773if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011774 echo $ECHO_N "(cached) $ECHO_C" >&6
11775fi
Reid Spencera773bd52006-08-04 18:18:08 +000011776ac_res=`eval echo '${'$as_ac_Header'}'`
11777 { echo "$as_me:$LINENO: result: $ac_res" >&5
11778echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011779else
11780 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011781{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11782echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011783cat >conftest.$ac_ext <<_ACEOF
11784/* confdefs.h. */
11785_ACEOF
11786cat confdefs.h >>conftest.$ac_ext
11787cat >>conftest.$ac_ext <<_ACEOF
11788/* end confdefs.h. */
11789$ac_includes_default
11790#include <$ac_header>
11791_ACEOF
11792rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011793if { (ac_try="$ac_compile"
11794case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11797esac
11798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011800 ac_status=$?
11801 grep -v '^ *+' conftest.er1 >conftest.err
11802 rm -f conftest.er1
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011805 (exit $ac_status); } &&
11806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11807 { (case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11810esac
11811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_try") 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; } &&
11816 { ac_try='test -s conftest.$ac_objext'
11817 { (case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11820esac
11821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_try") 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011826 ac_header_compiler=yes
11827else
11828 echo "$as_me: failed program was:" >&5
11829sed 's/^/| /' conftest.$ac_ext >&5
11830
Reid Spencera773bd52006-08-04 18:18:08 +000011831 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011832fi
Reid Spencera773bd52006-08-04 18:18:08 +000011833
11834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11835{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11836echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011837
11838# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011839{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11840echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011841cat >conftest.$ac_ext <<_ACEOF
11842/* confdefs.h. */
11843_ACEOF
11844cat confdefs.h >>conftest.$ac_ext
11845cat >>conftest.$ac_ext <<_ACEOF
11846/* end confdefs.h. */
11847#include <$ac_header>
11848_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011849if { (ac_try="$ac_cpp conftest.$ac_ext"
11850case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11853esac
11854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011861 (exit $ac_status); } >/dev/null; then
11862 if test -s conftest.err; then
11863 ac_cpp_err=$ac_c_preproc_warn_flag
11864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11865 else
11866 ac_cpp_err=
11867 fi
11868else
11869 ac_cpp_err=yes
11870fi
11871if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011872 ac_header_preproc=yes
11873else
11874 echo "$as_me: failed program was:" >&5
11875sed 's/^/| /' conftest.$ac_ext >&5
11876
11877 ac_header_preproc=no
11878fi
Reid Spencera773bd52006-08-04 18:18:08 +000011879
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011880rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011881{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11882echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011883
11884# So? What about this header?
11885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11886 yes:no: )
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11890echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11891 ac_header_preproc=yes
11892 ;;
11893 no:yes:* )
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11897echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11899echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11901echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11905echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011906 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011907## ----------------------------------- ##
11908## Report this to llvmbugs@cs.uiuc.edu ##
11909## ----------------------------------- ##
11910_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011911 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011912 ;;
11913esac
Reid Spencera773bd52006-08-04 18:18:08 +000011914{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11916if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918else
11919 eval "$as_ac_Header=\$ac_header_preproc"
11920fi
Reid Spencera773bd52006-08-04 18:18:08 +000011921ac_res=`eval echo '${'$as_ac_Header'}'`
11922 { echo "$as_me:$LINENO: result: $ac_res" >&5
11923echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011924
11925fi
11926if test `eval echo '${'$as_ac_Header'}'` = yes; then
11927 cat >>confdefs.h <<_ACEOF
11928#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11929_ACEOF
11930
11931fi
11932
11933done
11934
11935
11936
11937for ac_header in string.h strings.h
11938do
11939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11943if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011944 echo $ECHO_N "(cached) $ECHO_C" >&6
11945fi
Reid Spencera773bd52006-08-04 18:18:08 +000011946ac_res=`eval echo '${'$as_ac_Header'}'`
11947 { echo "$as_me:$LINENO: result: $ac_res" >&5
11948echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011949else
11950 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011951{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11952echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011953cat >conftest.$ac_ext <<_ACEOF
11954/* confdefs.h. */
11955_ACEOF
11956cat confdefs.h >>conftest.$ac_ext
11957cat >>conftest.$ac_ext <<_ACEOF
11958/* end confdefs.h. */
11959$ac_includes_default
11960#include <$ac_header>
11961_ACEOF
11962rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011963if { (ac_try="$ac_compile"
11964case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11967esac
11968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011970 ac_status=$?
11971 grep -v '^ *+' conftest.er1 >conftest.err
11972 rm -f conftest.er1
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011975 (exit $ac_status); } &&
11976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11977 { (case "(($ac_try" in
11978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979 *) ac_try_echo=$ac_try;;
11980esac
11981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982 (eval "$ac_try") 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; } &&
11986 { ac_try='test -s conftest.$ac_objext'
11987 { (case "(($ac_try" in
11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989 *) ac_try_echo=$ac_try;;
11990esac
11991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992 (eval "$ac_try") 2>&5
11993 ac_status=$?
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011996 ac_header_compiler=yes
11997else
11998 echo "$as_me: failed program was:" >&5
11999sed 's/^/| /' conftest.$ac_ext >&5
12000
Reid Spencera773bd52006-08-04 18:18:08 +000012001 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012002fi
Reid Spencera773bd52006-08-04 18:18:08 +000012003
12004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12005{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12006echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012007
12008# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000012009{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12010echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012011cat >conftest.$ac_ext <<_ACEOF
12012/* confdefs.h. */
12013_ACEOF
12014cat confdefs.h >>conftest.$ac_ext
12015cat >>conftest.$ac_ext <<_ACEOF
12016/* end confdefs.h. */
12017#include <$ac_header>
12018_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012019if { (ac_try="$ac_cpp conftest.$ac_ext"
12020case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12023esac
12024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012026 ac_status=$?
12027 grep -v '^ *+' conftest.er1 >conftest.err
12028 rm -f conftest.er1
12029 cat conftest.err >&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012031 (exit $ac_status); } >/dev/null; then
12032 if test -s conftest.err; then
12033 ac_cpp_err=$ac_c_preproc_warn_flag
12034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12035 else
12036 ac_cpp_err=
12037 fi
12038else
12039 ac_cpp_err=yes
12040fi
12041if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012042 ac_header_preproc=yes
12043else
12044 echo "$as_me: failed program was:" >&5
12045sed 's/^/| /' conftest.$ac_ext >&5
12046
12047 ac_header_preproc=no
12048fi
Reid Spencera773bd52006-08-04 18:18:08 +000012049
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012050rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000012051{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12052echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012053
12054# So? What about this header?
12055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12056 yes:no: )
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12058echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12060echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12061 ac_header_preproc=yes
12062 ;;
12063 no:yes:* )
12064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12065echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12067echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12069echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12071echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12073echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12075echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000012076 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012077## ----------------------------------- ##
12078## Report this to llvmbugs@cs.uiuc.edu ##
12079## ----------------------------------- ##
12080_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000012081 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012082 ;;
12083esac
Reid Spencera773bd52006-08-04 18:18:08 +000012084{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012087 echo $ECHO_N "(cached) $ECHO_C" >&6
12088else
12089 eval "$as_ac_Header=\$ac_header_preproc"
12090fi
Reid Spencera773bd52006-08-04 18:18:08 +000012091ac_res=`eval echo '${'$as_ac_Header'}'`
12092 { echo "$as_me:$LINENO: result: $ac_res" >&5
12093echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012094
12095fi
12096if test `eval echo '${'$as_ac_Header'}'` = yes; then
12097 cat >>confdefs.h <<_ACEOF
12098#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12099_ACEOF
12100 break
12101fi
12102
12103done
12104
12105
12106
12107
12108for ac_func in strchr index
12109do
12110as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012111{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12112echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12113if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012114 echo $ECHO_N "(cached) $ECHO_C" >&6
12115else
12116 cat >conftest.$ac_ext <<_ACEOF
12117/* confdefs.h. */
12118_ACEOF
12119cat confdefs.h >>conftest.$ac_ext
12120cat >>conftest.$ac_ext <<_ACEOF
12121/* end confdefs.h. */
12122/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12124#define $ac_func innocuous_$ac_func
12125
12126/* System header to define __stub macros and hopefully few prototypes,
12127 which can conflict with char $ac_func (); below.
12128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12129 <limits.h> exists even on freestanding compilers. */
12130
12131#ifdef __STDC__
12132# include <limits.h>
12133#else
12134# include <assert.h>
12135#endif
12136
12137#undef $ac_func
12138
Reid Spencera773bd52006-08-04 18:18:08 +000012139/* Override any GCC internal prototype to avoid an error.
12140 Use char because int might match the return type of a GCC
12141 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012142#ifdef __cplusplus
12143extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012144#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012145char $ac_func ();
12146/* The GNU C library defines this for functions which it implements
12147 to always fail with ENOSYS. Some functions are actually named
12148 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012149#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012150choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012151#endif
12152
12153int
12154main ()
12155{
Reid Spencera773bd52006-08-04 18:18:08 +000012156return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012157 ;
12158 return 0;
12159}
12160_ACEOF
12161rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012162if { (ac_try="$ac_link"
12163case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12166esac
12167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012169 ac_status=$?
12170 grep -v '^ *+' conftest.er1 >conftest.err
12171 rm -f conftest.er1
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012174 (exit $ac_status); } &&
12175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12176 { (case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12179esac
12180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_try") 2>&5
12182 ac_status=$?
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; } &&
12185 { ac_try='test -s conftest$ac_exeext'
12186 { (case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12189esac
12190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_try") 2>&5
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012195 eval "$as_ac_var=yes"
12196else
12197 echo "$as_me: failed program was:" >&5
12198sed 's/^/| /' conftest.$ac_ext >&5
12199
Reid Spencera773bd52006-08-04 18:18:08 +000012200 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012201fi
Reid Spencera773bd52006-08-04 18:18:08 +000012202
Bill Wendlingebcceee2009-04-18 11:20:33 +000012203rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012204 conftest$ac_exeext conftest.$ac_ext
12205fi
Reid Spencera773bd52006-08-04 18:18:08 +000012206ac_res=`eval echo '${'$as_ac_var'}'`
12207 { echo "$as_me:$LINENO: result: $ac_res" >&5
12208echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012209if test `eval echo '${'$as_ac_var'}'` = yes; then
12210 cat >>confdefs.h <<_ACEOF
12211#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12212_ACEOF
12213 break
12214fi
12215done
12216
12217
12218
12219for ac_func in strrchr rindex
12220do
12221as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012222{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12223echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12224if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012225 echo $ECHO_N "(cached) $ECHO_C" >&6
12226else
12227 cat >conftest.$ac_ext <<_ACEOF
12228/* confdefs.h. */
12229_ACEOF
12230cat confdefs.h >>conftest.$ac_ext
12231cat >>conftest.$ac_ext <<_ACEOF
12232/* end confdefs.h. */
12233/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12235#define $ac_func innocuous_$ac_func
12236
12237/* System header to define __stub macros and hopefully few prototypes,
12238 which can conflict with char $ac_func (); below.
12239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12240 <limits.h> exists even on freestanding compilers. */
12241
12242#ifdef __STDC__
12243# include <limits.h>
12244#else
12245# include <assert.h>
12246#endif
12247
12248#undef $ac_func
12249
Reid Spencera773bd52006-08-04 18:18:08 +000012250/* Override any GCC internal prototype to avoid an error.
12251 Use char because int might match the return type of a GCC
12252 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012253#ifdef __cplusplus
12254extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012255#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012256char $ac_func ();
12257/* The GNU C library defines this for functions which it implements
12258 to always fail with ENOSYS. Some functions are actually named
12259 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012260#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012261choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012262#endif
12263
12264int
12265main ()
12266{
Reid Spencera773bd52006-08-04 18:18:08 +000012267return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012268 ;
12269 return 0;
12270}
12271_ACEOF
12272rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012273if { (ac_try="$ac_link"
12274case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12277esac
12278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012280 ac_status=$?
12281 grep -v '^ *+' conftest.er1 >conftest.err
12282 rm -f conftest.er1
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012285 (exit $ac_status); } &&
12286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12287 { (case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12290esac
12291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292 (eval "$ac_try") 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; } &&
12296 { ac_try='test -s conftest$ac_exeext'
12297 { (case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12300esac
12301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302 (eval "$ac_try") 2>&5
12303 ac_status=$?
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012306 eval "$as_ac_var=yes"
12307else
12308 echo "$as_me: failed program was:" >&5
12309sed 's/^/| /' conftest.$ac_ext >&5
12310
Reid Spencera773bd52006-08-04 18:18:08 +000012311 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012312fi
Reid Spencera773bd52006-08-04 18:18:08 +000012313
Bill Wendlingebcceee2009-04-18 11:20:33 +000012314rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012315 conftest$ac_exeext conftest.$ac_ext
12316fi
Reid Spencera773bd52006-08-04 18:18:08 +000012317ac_res=`eval echo '${'$as_ac_var'}'`
12318 { echo "$as_me:$LINENO: result: $ac_res" >&5
12319echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012320if test `eval echo '${'$as_ac_var'}'` = yes; then
12321 cat >>confdefs.h <<_ACEOF
12322#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12323_ACEOF
12324 break
12325fi
12326done
12327
12328
12329
12330for ac_func in memcpy bcopy
12331do
12332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012333{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12335if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012336 echo $ECHO_N "(cached) $ECHO_C" >&6
12337else
12338 cat >conftest.$ac_ext <<_ACEOF
12339/* confdefs.h. */
12340_ACEOF
12341cat confdefs.h >>conftest.$ac_ext
12342cat >>conftest.$ac_ext <<_ACEOF
12343/* end confdefs.h. */
12344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12346#define $ac_func innocuous_$ac_func
12347
12348/* System header to define __stub macros and hopefully few prototypes,
12349 which can conflict with char $ac_func (); below.
12350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12351 <limits.h> exists even on freestanding compilers. */
12352
12353#ifdef __STDC__
12354# include <limits.h>
12355#else
12356# include <assert.h>
12357#endif
12358
12359#undef $ac_func
12360
Reid Spencera773bd52006-08-04 18:18:08 +000012361/* Override any GCC internal prototype to avoid an error.
12362 Use char because int might match the return type of a GCC
12363 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012364#ifdef __cplusplus
12365extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012366#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012367char $ac_func ();
12368/* The GNU C library defines this for functions which it implements
12369 to always fail with ENOSYS. Some functions are actually named
12370 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012371#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012372choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012373#endif
12374
12375int
12376main ()
12377{
Reid Spencera773bd52006-08-04 18:18:08 +000012378return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012379 ;
12380 return 0;
12381}
12382_ACEOF
12383rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012384if { (ac_try="$ac_link"
12385case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12388esac
12389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012391 ac_status=$?
12392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012396 (exit $ac_status); } &&
12397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12398 { (case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12401esac
12402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403 (eval "$ac_try") 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; } &&
12407 { ac_try='test -s conftest$ac_exeext'
12408 { (case "(($ac_try" in
12409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12410 *) ac_try_echo=$ac_try;;
12411esac
12412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12413 (eval "$ac_try") 2>&5
12414 ac_status=$?
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012417 eval "$as_ac_var=yes"
12418else
12419 echo "$as_me: failed program was:" >&5
12420sed 's/^/| /' conftest.$ac_ext >&5
12421
Reid Spencera773bd52006-08-04 18:18:08 +000012422 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012423fi
Reid Spencera773bd52006-08-04 18:18:08 +000012424
Bill Wendlingebcceee2009-04-18 11:20:33 +000012425rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012426 conftest$ac_exeext conftest.$ac_ext
12427fi
Reid Spencera773bd52006-08-04 18:18:08 +000012428ac_res=`eval echo '${'$as_ac_var'}'`
12429 { echo "$as_me:$LINENO: result: $ac_res" >&5
12430echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012431if test `eval echo '${'$as_ac_var'}'` = yes; then
12432 cat >>confdefs.h <<_ACEOF
12433#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12434_ACEOF
12435 break
12436fi
12437done
12438
12439
12440
12441for ac_func in memmove strcmp
12442do
12443as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012444{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12445echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12446if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012447 echo $ECHO_N "(cached) $ECHO_C" >&6
12448else
12449 cat >conftest.$ac_ext <<_ACEOF
12450/* confdefs.h. */
12451_ACEOF
12452cat confdefs.h >>conftest.$ac_ext
12453cat >>conftest.$ac_ext <<_ACEOF
12454/* end confdefs.h. */
12455/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12457#define $ac_func innocuous_$ac_func
12458
12459/* System header to define __stub macros and hopefully few prototypes,
12460 which can conflict with char $ac_func (); below.
12461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12462 <limits.h> exists even on freestanding compilers. */
12463
12464#ifdef __STDC__
12465# include <limits.h>
12466#else
12467# include <assert.h>
12468#endif
12469
12470#undef $ac_func
12471
Reid Spencera773bd52006-08-04 18:18:08 +000012472/* Override any GCC internal prototype to avoid an error.
12473 Use char because int might match the return type of a GCC
12474 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012475#ifdef __cplusplus
12476extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012477#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012478char $ac_func ();
12479/* The GNU C library defines this for functions which it implements
12480 to always fail with ENOSYS. Some functions are actually named
12481 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012482#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012483choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012484#endif
12485
12486int
12487main ()
12488{
Reid Spencera773bd52006-08-04 18:18:08 +000012489return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012490 ;
12491 return 0;
12492}
12493_ACEOF
12494rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012495if { (ac_try="$ac_link"
12496case "(($ac_try" in
12497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498 *) ac_try_echo=$ac_try;;
12499esac
12500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012502 ac_status=$?
12503 grep -v '^ *+' conftest.er1 >conftest.err
12504 rm -f conftest.er1
12505 cat conftest.err >&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012507 (exit $ac_status); } &&
12508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12509 { (case "(($ac_try" in
12510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511 *) ac_try_echo=$ac_try;;
12512esac
12513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514 (eval "$ac_try") 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012528 eval "$as_ac_var=yes"
12529else
12530 echo "$as_me: failed program was:" >&5
12531sed 's/^/| /' conftest.$ac_ext >&5
12532
Reid Spencera773bd52006-08-04 18:18:08 +000012533 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012534fi
Reid Spencera773bd52006-08-04 18:18:08 +000012535
Bill Wendlingebcceee2009-04-18 11:20:33 +000012536rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012537 conftest$ac_exeext conftest.$ac_ext
12538fi
Reid Spencera773bd52006-08-04 18:18:08 +000012539ac_res=`eval echo '${'$as_ac_var'}'`
12540 { echo "$as_me:$LINENO: result: $ac_res" >&5
12541echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012542if test `eval echo '${'$as_ac_var'}'` = yes; then
12543 cat >>confdefs.h <<_ACEOF
12544#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12545_ACEOF
12546
12547fi
12548done
12549
12550
12551
12552
12553for ac_func in closedir opendir readdir
12554do
12555as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012556{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12557echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12558if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012559 echo $ECHO_N "(cached) $ECHO_C" >&6
12560else
12561 cat >conftest.$ac_ext <<_ACEOF
12562/* confdefs.h. */
12563_ACEOF
12564cat confdefs.h >>conftest.$ac_ext
12565cat >>conftest.$ac_ext <<_ACEOF
12566/* end confdefs.h. */
12567/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12569#define $ac_func innocuous_$ac_func
12570
12571/* System header to define __stub macros and hopefully few prototypes,
12572 which can conflict with char $ac_func (); below.
12573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12574 <limits.h> exists even on freestanding compilers. */
12575
12576#ifdef __STDC__
12577# include <limits.h>
12578#else
12579# include <assert.h>
12580#endif
12581
12582#undef $ac_func
12583
Reid Spencera773bd52006-08-04 18:18:08 +000012584/* Override any GCC internal prototype to avoid an error.
12585 Use char because int might match the return type of a GCC
12586 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012587#ifdef __cplusplus
12588extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012589#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012590char $ac_func ();
12591/* The GNU C library defines this for functions which it implements
12592 to always fail with ENOSYS. Some functions are actually named
12593 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012594#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012595choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012596#endif
12597
12598int
12599main ()
12600{
Reid Spencera773bd52006-08-04 18:18:08 +000012601return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012602 ;
12603 return 0;
12604}
12605_ACEOF
12606rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012607if { (ac_try="$ac_link"
12608case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12611esac
12612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012614 ac_status=$?
12615 grep -v '^ *+' conftest.er1 >conftest.err
12616 rm -f conftest.er1
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012619 (exit $ac_status); } &&
12620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12621 { (case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12624esac
12625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_try") 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; } &&
12630 { ac_try='test -s conftest$ac_exeext'
12631 { (case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12634esac
12635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_try") 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012640 eval "$as_ac_var=yes"
12641else
12642 echo "$as_me: failed program was:" >&5
12643sed 's/^/| /' conftest.$ac_ext >&5
12644
Reid Spencera773bd52006-08-04 18:18:08 +000012645 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012646fi
Reid Spencera773bd52006-08-04 18:18:08 +000012647
Bill Wendlingebcceee2009-04-18 11:20:33 +000012648rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012649 conftest$ac_exeext conftest.$ac_ext
12650fi
Reid Spencera773bd52006-08-04 18:18:08 +000012651ac_res=`eval echo '${'$as_ac_var'}'`
12652 { echo "$as_me:$LINENO: result: $ac_res" >&5
12653echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012654if test `eval echo '${'$as_ac_var'}'` = yes; then
12655 cat >>confdefs.h <<_ACEOF
12656#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12657_ACEOF
12658
12659fi
12660done
12661
12662
Reid Spencera773bd52006-08-04 18:18:08 +000012663# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012664if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012665 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012666 case $enableval in
12667 yes) enable_shared=yes ;;
12668 no) enable_shared=no ;;
12669 *)
12670 enable_shared=no
12671 # Look at the argument we got. We use all the common list separators.
12672 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12673 for pkg in $enableval; do
12674 IFS="$lt_save_ifs"
12675 if test "X$pkg" = "X$p"; then
12676 enable_shared=yes
12677 fi
12678 done
12679 IFS="$lt_save_ifs"
12680 ;;
12681 esac
12682else
12683 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012684fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012685
Reid Spencera773bd52006-08-04 18:18:08 +000012686
12687# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012688if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012689 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012690 case $enableval in
12691 yes) enable_static=yes ;;
12692 no) enable_static=no ;;
12693 *)
12694 enable_static=no
12695 # Look at the argument we got. We use all the common list separators.
12696 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12697 for pkg in $enableval; do
12698 IFS="$lt_save_ifs"
12699 if test "X$pkg" = "X$p"; then
12700 enable_static=yes
12701 fi
12702 done
12703 IFS="$lt_save_ifs"
12704 ;;
12705 esac
12706else
12707 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012708fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012709
Reid Spencera773bd52006-08-04 18:18:08 +000012710
12711# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012712if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012713 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012714 case $enableval in
12715 yes) enable_fast_install=yes ;;
12716 no) enable_fast_install=no ;;
12717 *)
12718 enable_fast_install=no
12719 # Look at the argument we got. We use all the common list separators.
12720 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12721 for pkg in $enableval; do
12722 IFS="$lt_save_ifs"
12723 if test "X$pkg" = "X$p"; then
12724 enable_fast_install=yes
12725 fi
12726 done
12727 IFS="$lt_save_ifs"
12728 ;;
12729 esac
12730else
12731 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012732fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012733
Reid Spencera773bd52006-08-04 18:18:08 +000012734
12735{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12736echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012737if test "${lt_cv_path_SED+set}" = set; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12739else
12740 # Loop through the user's path and test for sed and gsed.
12741# Then use that list of sed's as ones to test for truncation.
12742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12743for as_dir in $PATH
12744do
12745 IFS=$as_save_IFS
12746 test -z "$as_dir" && as_dir=.
12747 for lt_ac_prog in sed gsed; do
12748 for ac_exec_ext in '' $ac_executable_extensions; do
12749 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12750 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12751 fi
12752 done
12753 done
12754done
12755lt_ac_max=0
12756lt_ac_count=0
12757# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12758# along with /bin/sed that truncates output.
12759for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012760 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012761 cat /dev/null > conftest.in
12762 lt_ac_count=0
12763 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12764 # Check for GNU sed and select it if it is found.
12765 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12766 lt_cv_path_SED=$lt_ac_sed
12767 break
12768 fi
12769 while true; do
12770 cat conftest.in conftest.in >conftest.tmp
12771 mv conftest.tmp conftest.in
12772 cp conftest.in conftest.nl
12773 echo >>conftest.nl
12774 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12775 cmp -s conftest.out conftest.nl || break
12776 # 10000 chars as input seems more than enough
12777 test $lt_ac_count -gt 10 && break
12778 lt_ac_count=`expr $lt_ac_count + 1`
12779 if test $lt_ac_count -gt $lt_ac_max; then
12780 lt_ac_max=$lt_ac_count
12781 lt_cv_path_SED=$lt_ac_sed
12782 fi
12783 done
12784done
12785
12786fi
12787
12788SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012789{ echo "$as_me:$LINENO: result: $SED" >&5
12790echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012791
12792
Reid Spencera773bd52006-08-04 18:18:08 +000012793# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012794if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012795 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012796else
12797 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012798fi
12799
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012800ac_prog=ld
12801if test "$GCC" = yes; then
12802 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012803 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12804echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012805 case $host in
12806 *-*-mingw*)
12807 # gcc leaves a trailing carriage return which upsets mingw
12808 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12809 *)
12810 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12811 esac
12812 case $ac_prog in
12813 # Accept absolute paths.
12814 [\\/]* | ?:[\\/]*)
12815 re_direlt='/[^/][^/]*/\.\./'
12816 # Canonicalize the pathname of ld
12817 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12818 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12819 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12820 done
12821 test -z "$LD" && LD="$ac_prog"
12822 ;;
12823 "")
12824 # If it fails, then pretend we aren't using GCC.
12825 ac_prog=ld
12826 ;;
12827 *)
12828 # If it is relative, then search for the first ld in PATH.
12829 with_gnu_ld=unknown
12830 ;;
12831 esac
12832elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012833 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12834echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012835else
Reid Spencera773bd52006-08-04 18:18:08 +000012836 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12837echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012838fi
12839if test "${lt_cv_path_LD+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12841else
12842 if test -z "$LD"; then
12843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12844 for ac_dir in $PATH; do
12845 IFS="$lt_save_ifs"
12846 test -z "$ac_dir" && ac_dir=.
12847 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12848 lt_cv_path_LD="$ac_dir/$ac_prog"
12849 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012850 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012851 # Break only if it was the GNU/non-GNU ld that we prefer.
12852 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12853 *GNU* | *'with BFD'*)
12854 test "$with_gnu_ld" != no && break
12855 ;;
12856 *)
12857 test "$with_gnu_ld" != yes && break
12858 ;;
12859 esac
12860 fi
12861 done
12862 IFS="$lt_save_ifs"
12863else
12864 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12865fi
12866fi
12867
12868LD="$lt_cv_path_LD"
12869if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012870 { echo "$as_me:$LINENO: result: $LD" >&5
12871echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012872else
Reid Spencera773bd52006-08-04 18:18:08 +000012873 { echo "$as_me:$LINENO: result: no" >&5
12874echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012875fi
12876test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12877echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12878 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012879{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12880echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012881if test "${lt_cv_prog_gnu_ld+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883else
Reid Spencera773bd52006-08-04 18:18:08 +000012884 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012885case `$LD -v 2>&1 </dev/null` in
12886*GNU* | *'with BFD'*)
12887 lt_cv_prog_gnu_ld=yes
12888 ;;
12889*)
12890 lt_cv_prog_gnu_ld=no
12891 ;;
12892esac
12893fi
Reid Spencera773bd52006-08-04 18:18:08 +000012894{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12895echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012896with_gnu_ld=$lt_cv_prog_gnu_ld
12897
12898
Reid Spencera773bd52006-08-04 18:18:08 +000012899{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12900echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012901if test "${lt_cv_ld_reload_flag+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903else
12904 lt_cv_ld_reload_flag='-r'
12905fi
Reid Spencera773bd52006-08-04 18:18:08 +000012906{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12907echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012908reload_flag=$lt_cv_ld_reload_flag
12909case $reload_flag in
12910"" | " "*) ;;
12911*) reload_flag=" $reload_flag" ;;
12912esac
12913reload_cmds='$LD$reload_flag -o $output$reload_objs'
12914case $host_os in
12915 darwin*)
12916 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012917 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012918 else
12919 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12920 fi
12921 ;;
12922esac
12923
Reid Spencera773bd52006-08-04 18:18:08 +000012924{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12925echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012926if test "${lt_cv_deplibs_check_method+set}" = set; then
12927 echo $ECHO_N "(cached) $ECHO_C" >&6
12928else
12929 lt_cv_file_magic_cmd='$MAGIC_CMD'
12930lt_cv_file_magic_test_file=
12931lt_cv_deplibs_check_method='unknown'
12932# Need to set the preceding variable on all platforms that support
12933# interlibrary dependencies.
12934# 'none' -- dependencies not supported.
12935# `unknown' -- same as none, but documents that we really don't know.
12936# 'pass_all' -- all dependencies passed with no checks.
12937# 'test_compile' -- check by making test program.
12938# 'file_magic [[regex]]' -- check by looking for files in library path
12939# which responds to the $file_magic_cmd with a given extended regex.
12940# If you have `file' or equivalent on your system and you're not sure
12941# whether `pass_all' will *always* work, you probably want this one.
12942
12943case $host_os in
12944aix4* | aix5*)
12945 lt_cv_deplibs_check_method=pass_all
12946 ;;
12947
12948beos*)
12949 lt_cv_deplibs_check_method=pass_all
12950 ;;
12951
12952bsdi[45]*)
12953 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12954 lt_cv_file_magic_cmd='/usr/bin/file -L'
12955 lt_cv_file_magic_test_file=/shlib/libc.so
12956 ;;
12957
12958cygwin*)
12959 # func_win32_libid is a shell function defined in ltmain.sh
12960 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12961 lt_cv_file_magic_cmd='func_win32_libid'
12962 ;;
12963
12964mingw* | pw32*)
12965 # Base MSYS/MinGW do not provide the 'file' command needed by
12966 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12967 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12968 lt_cv_file_magic_cmd='$OBJDUMP -f'
12969 ;;
12970
12971darwin* | rhapsody*)
12972 lt_cv_deplibs_check_method=pass_all
12973 ;;
12974
Reid Spencera773bd52006-08-04 18:18:08 +000012975freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012976 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12977 case $host_cpu in
12978 i*86 )
12979 # Not sure whether the presence of OpenBSD here was a mistake.
12980 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012981 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 +000012982 lt_cv_file_magic_cmd=/usr/bin/file
12983 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12984 ;;
12985 esac
12986 else
12987 lt_cv_deplibs_check_method=pass_all
12988 fi
12989 ;;
12990
12991gnu*)
12992 lt_cv_deplibs_check_method=pass_all
12993 ;;
12994
12995hpux10.20* | hpux11*)
12996 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012997 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012998 ia64*)
12999 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13000 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13001 ;;
13002 hppa*64*)
13003 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]'
13004 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13005 ;;
13006 *)
13007 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13008 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13009 ;;
13010 esac
13011 ;;
13012
Reid Spencera773bd52006-08-04 18:18:08 +000013013interix3*)
13014 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13015 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13016 ;;
13017
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013018irix5* | irix6* | nonstopux*)
13019 case $LD in
13020 *-32|*"-32 ") libmagic=32-bit;;
13021 *-n32|*"-n32 ") libmagic=N32;;
13022 *-64|*"-64 ") libmagic=64-bit;;
13023 *) libmagic=never-match;;
13024 esac
13025 lt_cv_deplibs_check_method=pass_all
13026 ;;
13027
13028# This must be Linux ELF.
13029linux*)
13030 lt_cv_deplibs_check_method=pass_all
13031 ;;
13032
13033netbsd*)
13034 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13035 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13036 else
13037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13038 fi
13039 ;;
13040
13041newos6*)
13042 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13043 lt_cv_file_magic_cmd=/usr/bin/file
13044 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13045 ;;
13046
13047nto-qnx*)
13048 lt_cv_deplibs_check_method=unknown
13049 ;;
13050
13051openbsd*)
13052 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13054 else
13055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13056 fi
13057 ;;
13058
13059osf3* | osf4* | osf5*)
13060 lt_cv_deplibs_check_method=pass_all
13061 ;;
13062
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013063solaris*)
13064 lt_cv_deplibs_check_method=pass_all
13065 ;;
13066
Reid Spencera773bd52006-08-04 18:18:08 +000013067sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013068 case $host_vendor in
13069 motorola)
13070 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]'
13071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13072 ;;
13073 ncr)
13074 lt_cv_deplibs_check_method=pass_all
13075 ;;
13076 sequent)
13077 lt_cv_file_magic_cmd='/bin/file'
13078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13079 ;;
13080 sni)
13081 lt_cv_file_magic_cmd='/bin/file'
13082 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13083 lt_cv_file_magic_test_file=/lib/libc.so
13084 ;;
13085 siemens)
13086 lt_cv_deplibs_check_method=pass_all
13087 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013088 pc)
13089 lt_cv_deplibs_check_method=pass_all
13090 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013091 esac
13092 ;;
13093
Reid Spencera773bd52006-08-04 18:18:08 +000013094sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013095 lt_cv_deplibs_check_method=pass_all
13096 ;;
13097esac
13098
13099fi
Reid Spencera773bd52006-08-04 18:18:08 +000013100{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13101echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013102file_magic_cmd=$lt_cv_file_magic_cmd
13103deplibs_check_method=$lt_cv_deplibs_check_method
13104test -z "$deplibs_check_method" && deplibs_check_method=unknown
13105
13106
13107
13108# If no C compiler was specified, use CC.
13109LTCC=${LTCC-"$CC"}
13110
Reid Spencera773bd52006-08-04 18:18:08 +000013111# If no C compiler flags were specified, use CFLAGS.
13112LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13113
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013114# Allow CC to be a program name with arguments.
13115compiler=$CC
13116
Reid Spencera773bd52006-08-04 18:18:08 +000013117# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013118if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013119 enableval=$enable_libtool_lock;
13120fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013121
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013122test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13123
13124# Some flags need to be propagated to the compiler or linker for good
13125# libtool support.
13126case $host in
13127ia64-*-hpux*)
13128 # Find out which ABI we are using.
13129 echo 'int i;' > conftest.$ac_ext
13130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13131 (eval $ac_compile) 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; then
13135 case `/usr/bin/file conftest.$ac_objext` in
13136 *ELF-32*)
13137 HPUX_IA64_MODE="32"
13138 ;;
13139 *ELF-64*)
13140 HPUX_IA64_MODE="64"
13141 ;;
13142 esac
13143 fi
13144 rm -rf conftest*
13145 ;;
13146*-*-irix6*)
13147 # Find out which ABI we are using.
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013148 echo '#line 13148 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13150 (eval $ac_compile) 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; then
13154 if test "$lt_cv_prog_gnu_ld" = yes; then
13155 case `/usr/bin/file conftest.$ac_objext` in
13156 *32-bit*)
13157 LD="${LD-ld} -melf32bsmip"
13158 ;;
13159 *N32*)
13160 LD="${LD-ld} -melf32bmipn32"
13161 ;;
13162 *64-bit*)
13163 LD="${LD-ld} -melf64bmip"
13164 ;;
13165 esac
13166 else
13167 case `/usr/bin/file conftest.$ac_objext` in
13168 *32-bit*)
13169 LD="${LD-ld} -32"
13170 ;;
13171 *N32*)
13172 LD="${LD-ld} -n32"
13173 ;;
13174 *64-bit*)
13175 LD="${LD-ld} -64"
13176 ;;
13177 esac
13178 fi
13179 fi
13180 rm -rf conftest*
13181 ;;
13182
13183x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13184 # Find out which ABI we are using.
13185 echo 'int i;' > conftest.$ac_ext
13186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13187 (eval $ac_compile) 2>&5
13188 ac_status=$?
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013191 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013192 *32-bit*)
13193 case $host in
13194 x86_64-*linux*)
13195 LD="${LD-ld} -m elf_i386"
13196 ;;
13197 ppc64-*linux*|powerpc64-*linux*)
13198 LD="${LD-ld} -m elf32ppclinux"
13199 ;;
13200 s390x-*linux*)
13201 LD="${LD-ld} -m elf_s390"
13202 ;;
13203 sparc64-*linux*)
13204 LD="${LD-ld} -m elf32_sparc"
13205 ;;
13206 esac
13207 ;;
13208 *64-bit*)
13209 case $host in
13210 x86_64-*linux*)
13211 LD="${LD-ld} -m elf_x86_64"
13212 ;;
13213 ppc*-*linux*|powerpc*-*linux*)
13214 LD="${LD-ld} -m elf64ppc"
13215 ;;
13216 s390*-*linux*)
13217 LD="${LD-ld} -m elf64_s390"
13218 ;;
13219 sparc*-*linux*)
13220 LD="${LD-ld} -m elf64_sparc"
13221 ;;
13222 esac
13223 ;;
13224 esac
13225 fi
13226 rm -rf conftest*
13227 ;;
13228
13229*-*-sco3.2v5*)
13230 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13231 SAVE_CFLAGS="$CFLAGS"
13232 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013233 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13234echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013235if test "${lt_cv_cc_needs_belf+set}" = set; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13237else
13238 ac_ext=c
13239ac_cpp='$CPP $CPPFLAGS'
13240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13242ac_compiler_gnu=$ac_cv_c_compiler_gnu
13243
13244 cat >conftest.$ac_ext <<_ACEOF
13245/* confdefs.h. */
13246_ACEOF
13247cat confdefs.h >>conftest.$ac_ext
13248cat >>conftest.$ac_ext <<_ACEOF
13249/* end confdefs.h. */
13250
Reid Spencera773bd52006-08-04 18:18:08 +000013251int
13252main ()
13253{
13254
13255 ;
13256 return 0;
13257}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013258_ACEOF
13259rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013260if { (ac_try="$ac_link"
13261case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13264esac
13265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013272 (exit $ac_status); } &&
13273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13274 { (case "(($ac_try" in
13275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13276 *) ac_try_echo=$ac_try;;
13277esac
13278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279 (eval "$ac_try") 2>&5
13280 ac_status=$?
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; } &&
13283 { ac_try='test -s conftest$ac_exeext'
13284 { (case "(($ac_try" in
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13287esac
13288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289 (eval "$ac_try") 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013293 lt_cv_cc_needs_belf=yes
13294else
13295 echo "$as_me: failed program was:" >&5
13296sed 's/^/| /' conftest.$ac_ext >&5
13297
Reid Spencera773bd52006-08-04 18:18:08 +000013298 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013299fi
Reid Spencera773bd52006-08-04 18:18:08 +000013300
Bill Wendlingebcceee2009-04-18 11:20:33 +000013301rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013302 conftest$ac_exeext conftest.$ac_ext
13303 ac_ext=c
13304ac_cpp='$CPP $CPPFLAGS'
13305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13307ac_compiler_gnu=$ac_cv_c_compiler_gnu
13308
13309fi
Reid Spencera773bd52006-08-04 18:18:08 +000013310{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13311echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013312 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13313 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13314 CFLAGS="$SAVE_CFLAGS"
13315 fi
13316 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013317sparc*-*solaris*)
13318 # Find out which ABI we are using.
13319 echo 'int i;' > conftest.$ac_ext
13320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13321 (eval $ac_compile) 2>&5
13322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; then
13325 case `/usr/bin/file conftest.o` in
13326 *64-bit*)
13327 case $lt_cv_prog_gnu_ld in
13328 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13329 *) LD="${LD-ld} -64" ;;
13330 esac
13331 ;;
13332 esac
13333 fi
13334 rm -rf conftest*
13335 ;;
13336
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013337
13338esac
13339
13340need_locks="$enable_libtool_lock"
13341
13342
Reid Spencer2706f8c2004-09-19 23:53:36 +000013343
13344
13345if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13346 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13347 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013348 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013349ac_cpp='$CXXCPP $CPPFLAGS'
13350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013353{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13354echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013355if test -z "$CXXCPP"; then
13356 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013357 echo $ECHO_N "(cached) $ECHO_C" >&6
13358else
John Criswell47fdd832003-07-14 16:52:07 +000013359 # Double quotes because CXXCPP needs to be expanded
13360 for CXXCPP in "$CXX -E" "/lib/cpp"
13361 do
13362 ac_preproc_ok=false
13363for ac_cxx_preproc_warn_flag in '' yes
13364do
13365 # Use a header file that comes with gcc, so configuring glibc
13366 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13368 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013369 # On the NeXT, cc -E runs the code through the compiler's parser,
13370 # not just through cpp. "Syntax error" is here to catch this case.
13371 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013372/* confdefs.h. */
13373_ACEOF
13374cat confdefs.h >>conftest.$ac_ext
13375cat >>conftest.$ac_ext <<_ACEOF
13376/* end confdefs.h. */
13377#ifdef __STDC__
13378# include <limits.h>
13379#else
13380# include <assert.h>
13381#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013382 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013383_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013384if { (ac_try="$ac_cpp conftest.$ac_ext"
13385case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13388esac
13389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013391 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013392 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013393 rm -f conftest.er1
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013396 (exit $ac_status); } >/dev/null; then
13397 if test -s conftest.err; then
13398 ac_cpp_err=$ac_cxx_preproc_warn_flag
13399 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13400 else
13401 ac_cpp_err=
13402 fi
13403else
13404 ac_cpp_err=yes
13405fi
13406if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013407 :
13408else
13409 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013410sed 's/^/| /' conftest.$ac_ext >&5
13411
John Criswell47fdd832003-07-14 16:52:07 +000013412 # Broken: fails on valid input.
13413continue
13414fi
Reid Spencera773bd52006-08-04 18:18:08 +000013415
John Criswell47fdd832003-07-14 16:52:07 +000013416rm -f conftest.err conftest.$ac_ext
13417
Reid Spencera773bd52006-08-04 18:18:08 +000013418 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013419 # can be detected and how.
13420 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013421/* confdefs.h. */
13422_ACEOF
13423cat confdefs.h >>conftest.$ac_ext
13424cat >>conftest.$ac_ext <<_ACEOF
13425/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013426#include <ac_nonexistent.h>
13427_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013428if { (ac_try="$ac_cpp conftest.$ac_ext"
13429case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13432esac
13433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013435 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013436 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013437 rm -f conftest.er1
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013440 (exit $ac_status); } >/dev/null; then
13441 if test -s conftest.err; then
13442 ac_cpp_err=$ac_cxx_preproc_warn_flag
13443 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13444 else
13445 ac_cpp_err=
13446 fi
13447else
13448 ac_cpp_err=yes
13449fi
13450if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013451 # Broken: success on invalid input.
13452continue
13453else
13454 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013455sed 's/^/| /' conftest.$ac_ext >&5
13456
John Criswell47fdd832003-07-14 16:52:07 +000013457 # Passes both tests.
13458ac_preproc_ok=:
13459break
13460fi
Reid Spencera773bd52006-08-04 18:18:08 +000013461
John Criswell47fdd832003-07-14 16:52:07 +000013462rm -f conftest.err conftest.$ac_ext
13463
13464done
13465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13466rm -f conftest.err conftest.$ac_ext
13467if $ac_preproc_ok; then
13468 break
John Criswell7a73b802003-06-30 21:59:07 +000013469fi
13470
John Criswell47fdd832003-07-14 16:52:07 +000013471 done
13472 ac_cv_prog_CXXCPP=$CXXCPP
13473
13474fi
13475 CXXCPP=$ac_cv_prog_CXXCPP
13476else
13477 ac_cv_prog_CXXCPP=$CXXCPP
13478fi
Reid Spencera773bd52006-08-04 18:18:08 +000013479{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13480echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013481ac_preproc_ok=false
13482for ac_cxx_preproc_warn_flag in '' yes
13483do
13484 # Use a header file that comes with gcc, so configuring glibc
13485 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13487 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013488 # On the NeXT, cc -E runs the code through the compiler's parser,
13489 # not just through cpp. "Syntax error" is here to catch this case.
13490 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013491/* confdefs.h. */
13492_ACEOF
13493cat confdefs.h >>conftest.$ac_ext
13494cat >>conftest.$ac_ext <<_ACEOF
13495/* end confdefs.h. */
13496#ifdef __STDC__
13497# include <limits.h>
13498#else
13499# include <assert.h>
13500#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013501 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013502_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013503if { (ac_try="$ac_cpp conftest.$ac_ext"
13504case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13507esac
13508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013510 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013511 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013512 rm -f conftest.er1
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013515 (exit $ac_status); } >/dev/null; then
13516 if test -s conftest.err; then
13517 ac_cpp_err=$ac_cxx_preproc_warn_flag
13518 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13519 else
13520 ac_cpp_err=
13521 fi
13522else
13523 ac_cpp_err=yes
13524fi
13525if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013526 :
13527else
13528 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013529sed 's/^/| /' conftest.$ac_ext >&5
13530
John Criswell47fdd832003-07-14 16:52:07 +000013531 # Broken: fails on valid input.
13532continue
13533fi
Reid Spencera773bd52006-08-04 18:18:08 +000013534
John Criswell47fdd832003-07-14 16:52:07 +000013535rm -f conftest.err conftest.$ac_ext
13536
Reid Spencera773bd52006-08-04 18:18:08 +000013537 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013538 # can be detected and how.
13539 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013540/* confdefs.h. */
13541_ACEOF
13542cat confdefs.h >>conftest.$ac_ext
13543cat >>conftest.$ac_ext <<_ACEOF
13544/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013545#include <ac_nonexistent.h>
13546_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013547if { (ac_try="$ac_cpp conftest.$ac_ext"
13548case "(($ac_try" in
13549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550 *) ac_try_echo=$ac_try;;
13551esac
13552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013554 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013555 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013556 rm -f conftest.er1
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013559 (exit $ac_status); } >/dev/null; then
13560 if test -s conftest.err; then
13561 ac_cpp_err=$ac_cxx_preproc_warn_flag
13562 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13563 else
13564 ac_cpp_err=
13565 fi
13566else
13567 ac_cpp_err=yes
13568fi
13569if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013570 # Broken: success on invalid input.
13571continue
13572else
13573 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013574sed 's/^/| /' conftest.$ac_ext >&5
13575
John Criswell47fdd832003-07-14 16:52:07 +000013576 # Passes both tests.
13577ac_preproc_ok=:
13578break
13579fi
Reid Spencera773bd52006-08-04 18:18:08 +000013580
John Criswell47fdd832003-07-14 16:52:07 +000013581rm -f conftest.err conftest.$ac_ext
13582
13583done
13584# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13585rm -f conftest.err conftest.$ac_ext
13586if $ac_preproc_ok; then
13587 :
13588else
John Criswell0c38eaf2003-09-10 15:17:25 +000013589 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13590See \`config.log' for more details." >&5
13591echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13592See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013593 { (exit 1); exit 1; }; }
13594fi
13595
Reid Spencera773bd52006-08-04 18:18:08 +000013596ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013597ac_cpp='$CXXCPP $CPPFLAGS'
13598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13601
Reid Spencer2706f8c2004-09-19 23:53:36 +000013602fi
13603
John Criswell47fdd832003-07-14 16:52:07 +000013604
13605ac_ext=f
13606ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13607ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13608ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13609if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013610 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 +000013611 do
13612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13613set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013616if test "${ac_cv_prog_F77+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13618else
13619 if test -n "$F77"; then
13620 ac_cv_prog_F77="$F77" # Let the user override the test.
13621else
13622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13623for as_dir in $PATH
13624do
13625 IFS=$as_save_IFS
13626 test -z "$as_dir" && as_dir=.
13627 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013628 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 +000013629 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13631 break 2
13632 fi
13633done
13634done
Reid Spencera773bd52006-08-04 18:18:08 +000013635IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013636
13637fi
13638fi
13639F77=$ac_cv_prog_F77
13640if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013641 { echo "$as_me:$LINENO: result: $F77" >&5
13642echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013643else
Reid Spencera773bd52006-08-04 18:18:08 +000013644 { echo "$as_me:$LINENO: result: no" >&5
13645echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013646fi
13647
Reid Spencera773bd52006-08-04 18:18:08 +000013648
John Criswell47fdd832003-07-14 16:52:07 +000013649 test -n "$F77" && break
13650 done
13651fi
13652if test -z "$F77"; then
13653 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013654 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 +000013655do
13656 # Extract the first word of "$ac_prog", so it can be a program name with args.
13657set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013660if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13661 echo $ECHO_N "(cached) $ECHO_C" >&6
13662else
13663 if test -n "$ac_ct_F77"; then
13664 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13665else
13666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13667for as_dir in $PATH
13668do
13669 IFS=$as_save_IFS
13670 test -z "$as_dir" && as_dir=.
13671 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013672 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 +000013673 ac_cv_prog_ac_ct_F77="$ac_prog"
13674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13675 break 2
13676 fi
13677done
13678done
Reid Spencera773bd52006-08-04 18:18:08 +000013679IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013680
13681fi
13682fi
13683ac_ct_F77=$ac_cv_prog_ac_ct_F77
13684if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013685 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13686echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013687else
Reid Spencera773bd52006-08-04 18:18:08 +000013688 { echo "$as_me:$LINENO: result: no" >&5
13689echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013690fi
13691
Reid Spencera773bd52006-08-04 18:18:08 +000013692
John Criswell47fdd832003-07-14 16:52:07 +000013693 test -n "$ac_ct_F77" && break
13694done
13695
Reid Spencera773bd52006-08-04 18:18:08 +000013696 if test "x$ac_ct_F77" = x; then
13697 F77=""
13698 else
13699 case $cross_compiling:$ac_tool_warned in
13700yes:)
13701{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13702whose name does not start with the host triplet. If you think this
13703configuration is useful to you, please write to autoconf@gnu.org." >&5
13704echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13705whose name does not start with the host triplet. If you think this
13706configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13707ac_tool_warned=yes ;;
13708esac
13709 F77=$ac_ct_F77
13710 fi
John Criswell47fdd832003-07-14 16:52:07 +000013711fi
13712
13713
13714# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013715echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013716ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013717{ (ac_try="$ac_compiler --version >&5"
13718case "(($ac_try" in
13719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720 *) ac_try_echo=$ac_try;;
13721esac
13722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13723 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013727{ (ac_try="$ac_compiler -v >&5"
13728case "(($ac_try" in
13729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730 *) ac_try_echo=$ac_try;;
13731esac
13732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013737{ (ac_try="$ac_compiler -V >&5"
13738case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13741esac
13742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013747rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013748
13749# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013750# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013751ac_save_ext=$ac_ext
13752ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013753{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13754echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013755if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
13757else
13758 cat >conftest.$ac_ext <<_ACEOF
13759 program main
13760#ifndef __GNUC__
13761 choke me
13762#endif
13763
13764 end
13765_ACEOF
13766rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013767if { (ac_try="$ac_compile"
13768case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13771esac
13772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013774 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013775 grep -v '^ *+' conftest.er1 >conftest.err
13776 rm -f conftest.er1
13777 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013779 (exit $ac_status); } &&
13780 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13781 { (case "(($ac_try" in
13782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783 *) ac_try_echo=$ac_try;;
13784esac
13785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786 (eval "$ac_try") 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; } &&
13790 { ac_try='test -s conftest.$ac_objext'
13791 { (case "(($ac_try" in
13792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13794esac
13795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796 (eval "$ac_try") 2>&5
13797 ac_status=$?
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013800 ac_compiler_gnu=yes
13801else
13802 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013803sed 's/^/| /' conftest.$ac_ext >&5
13804
Reid Spencera773bd52006-08-04 18:18:08 +000013805 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013806fi
Reid Spencera773bd52006-08-04 18:18:08 +000013807
13808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013809ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13810
13811fi
Reid Spencera773bd52006-08-04 18:18:08 +000013812{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13813echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013814ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013815ac_test_FFLAGS=${FFLAGS+set}
13816ac_save_FFLAGS=$FFLAGS
13817FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013818{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13819echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013820if test "${ac_cv_prog_f77_g+set}" = set; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13822else
13823 FFLAGS=-g
13824cat >conftest.$ac_ext <<_ACEOF
13825 program main
13826
13827 end
13828_ACEOF
13829rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013830if { (ac_try="$ac_compile"
13831case "(($ac_try" in
13832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833 *) ac_try_echo=$ac_try;;
13834esac
13835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013837 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013838 grep -v '^ *+' conftest.er1 >conftest.err
13839 rm -f conftest.er1
13840 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013842 (exit $ac_status); } &&
13843 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13844 { (case "(($ac_try" in
13845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13846 *) ac_try_echo=$ac_try;;
13847esac
13848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13849 (eval "$ac_try") 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; } &&
13853 { ac_try='test -s conftest.$ac_objext'
13854 { (case "(($ac_try" in
13855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856 *) ac_try_echo=$ac_try;;
13857esac
13858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859 (eval "$ac_try") 2>&5
13860 ac_status=$?
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013863 ac_cv_prog_f77_g=yes
13864else
13865 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013866sed 's/^/| /' conftest.$ac_ext >&5
13867
Reid Spencera773bd52006-08-04 18:18:08 +000013868 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013869fi
Reid Spencera773bd52006-08-04 18:18:08 +000013870
13871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013872
13873fi
Reid Spencera773bd52006-08-04 18:18:08 +000013874{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13875echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013876if test "$ac_test_FFLAGS" = set; then
13877 FFLAGS=$ac_save_FFLAGS
13878elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013879 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013880 FFLAGS="-g -O2"
13881 else
13882 FFLAGS="-g"
13883 fi
13884else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013885 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013886 FFLAGS="-O2"
13887 else
13888 FFLAGS=
13889 fi
13890fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013891
13892G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013893ac_ext=c
13894ac_cpp='$CPP $CPPFLAGS'
13895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13897ac_compiler_gnu=$ac_cv_c_compiler_gnu
13898
13899
13900
13901# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13902
13903# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013904{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13905echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013906if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13908else
13909 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013910 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013911
13912 case $build_os in
13913 msdosdjgpp*)
13914 # On DJGPP, this test can blow up pretty badly due to problems in libc
13915 # (any single argument exceeding 2000 bytes causes a buffer overrun
13916 # during glob expansion). Even if it were fixed, the result of this
13917 # check would be larger than it should be.
13918 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13919 ;;
13920
13921 gnu*)
13922 # Under GNU Hurd, this test is not required because there is
13923 # no limit to the length of command line arguments.
13924 # Libtool will interpret -1 as no limit whatsoever
13925 lt_cv_sys_max_cmd_len=-1;
13926 ;;
13927
13928 cygwin* | mingw*)
13929 # On Win9x/ME, this test blows up -- it succeeds, but takes
13930 # about 5 minutes as the teststring grows exponentially.
13931 # Worse, since 9x/ME are not pre-emptively multitasking,
13932 # you end up with a "frozen" computer, even though with patience
13933 # the test eventually succeeds (with a max line length of 256k).
13934 # Instead, let's just punt: use the minimum linelength reported by
13935 # all of the supported platforms: 8192 (on NT/2K/XP).
13936 lt_cv_sys_max_cmd_len=8192;
13937 ;;
13938
Reid Spencer2706f8c2004-09-19 23:53:36 +000013939 amigaos*)
13940 # On AmigaOS with pdksh, this test takes hours, literally.
13941 # So we just punt and use a minimum line length of 8192.
13942 lt_cv_sys_max_cmd_len=8192;
13943 ;;
13944
Reid Spencera773bd52006-08-04 18:18:08 +000013945 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013946 # This has been around since 386BSD, at least. Likely further.
13947 if test -x /sbin/sysctl; then
13948 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13949 elif test -x /usr/sbin/sysctl; then
13950 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13951 else
Reid Spencera773bd52006-08-04 18:18:08 +000013952 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013953 fi
13954 # And add a safety zone
13955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013956 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013957 ;;
13958
Reid Spencera773bd52006-08-04 18:18:08 +000013959 interix*)
13960 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13961 lt_cv_sys_max_cmd_len=196608
13962 ;;
13963
13964 osf*)
13965 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13966 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13967 # nice to cause kernel panics so lets avoid the loop below.
13968 # First set a reasonable default.
13969 lt_cv_sys_max_cmd_len=16384
13970 #
13971 if test -x /sbin/sysconfig; then
13972 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13973 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13974 esac
13975 fi
13976 ;;
13977 sco3.2v5*)
13978 lt_cv_sys_max_cmd_len=102400
13979 ;;
13980 sysv5* | sco5v6* | sysv4.2uw2*)
13981 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13982 if test -n "$kargmax"; then
13983 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13984 else
13985 lt_cv_sys_max_cmd_len=32768
13986 fi
13987 ;;
13988 *)
John Criswell47fdd832003-07-14 16:52:07 +000013989 # If test is not a shell built-in, we'll probably end up computing a
13990 # maximum length that is only half of the actual maximum length, but
13991 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013992 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13993 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13994 = "XX$teststring") >/dev/null 2>&1 &&
13995 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013996 lt_cv_sys_max_cmd_len=$new_result &&
13997 test $i != 17 # 1/2 MB should be enough
13998 do
13999 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000014000 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000014001 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000014002 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000014003 # Add a significant safety factor because C++ compilers can tack on massive
14004 # amounts of additional arguments before passing them to the linker.
14005 # It appears as though 1/2 is a usable value.
14006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14007 ;;
14008 esac
14009
14010fi
14011
14012if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000014013 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14014echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014015else
Reid Spencera773bd52006-08-04 18:18:08 +000014016 { echo "$as_me:$LINENO: result: none" >&5
14017echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014018fi
14019
14020
14021
14022
14023# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000014024{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14025echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014026if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14028else
14029
14030# These are sane defaults that work on at least a few old systems.
14031# [They come from Ultrix. What could be older than Ultrix?!! ;)]
14032
14033# Character class describing NM global symbol codes.
14034symcode='[BCDEGRST]'
14035
14036# Regexp to match symbols that can be accessed directly from C.
14037sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14038
John Criswell47fdd832003-07-14 16:52:07 +000014039# Transform an extracted symbol line into a proper C declaration
14040lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14041
14042# Transform an extracted symbol line into symbol name and symbol address
14043lt_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'"
14044
14045# Define system-specific variables.
14046case $host_os in
14047aix*)
14048 symcode='[BCDT]'
14049 ;;
14050cygwin* | mingw* | pw32*)
14051 symcode='[ABCDGISTW]'
14052 ;;
14053hpux*) # Its linker distinguishes data from code symbols
14054 if test "$host_cpu" = ia64; then
14055 symcode='[ABCDEGRST]'
14056 fi
14057 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14058 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'"
14059 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014060linux*)
14061 if test "$host_cpu" = ia64; then
14062 symcode='[ABCDGIRSTW]'
14063 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14064 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'"
14065 fi
14066 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014067irix* | nonstopux*)
14068 symcode='[BCDEGRST]'
14069 ;;
14070osf*)
14071 symcode='[BCDEGQRST]'
14072 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014073solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014074 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000014075 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014076sco3.2v5*)
14077 symcode='[DT]'
14078 ;;
14079sysv4.2uw2*)
14080 symcode='[DT]'
14081 ;;
14082sysv5* | sco5v6* | unixware* | OpenUNIX*)
14083 symcode='[ABDT]'
14084 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014085sysv4)
14086 symcode='[DFNSTU]'
14087 ;;
14088esac
14089
14090# Handle CRLF in mingw tool chain
14091opt_cr=
14092case $build_os in
14093mingw*)
14094 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14095 ;;
14096esac
14097
14098# If we're using GNU nm, then use its standard symbol codes.
14099case `$NM -V 2>&1` in
14100*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014101 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000014102esac
14103
14104# Try without a prefix undercore, then with it.
14105for ac_symprfx in "" "_"; do
14106
Reid Spencera773bd52006-08-04 18:18:08 +000014107 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14108 symxfrm="\\1 $ac_symprfx\\2 \\2"
14109
John Criswell47fdd832003-07-14 16:52:07 +000014110 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000014111 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 +000014112
14113 # Check to see that the pipe works correctly.
14114 pipe_works=no
14115
14116 rm -f conftest*
14117 cat > conftest.$ac_ext <<EOF
14118#ifdef __cplusplus
14119extern "C" {
14120#endif
14121char nm_test_var;
14122void nm_test_func(){}
14123#ifdef __cplusplus
14124}
14125#endif
14126int main(){nm_test_var='a';nm_test_func();return(0);}
14127EOF
14128
14129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14130 (eval $ac_compile) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; then
14134 # Now try to grab the symbols.
14135 nlist=conftest.nm
14136 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14137 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } && test -s "$nlist"; then
14141 # Try sorting and uniquifying the output.
14142 if sort "$nlist" | uniq > "$nlist"T; then
14143 mv -f "$nlist"T "$nlist"
14144 else
14145 rm -f "$nlist"T
14146 fi
14147
14148 # Make sure that we snagged all the symbols we need.
14149 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14150 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14151 cat <<EOF > conftest.$ac_ext
14152#ifdef __cplusplus
14153extern "C" {
14154#endif
14155
14156EOF
14157 # Now generate the symbol file.
14158 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14159
14160 cat <<EOF >> conftest.$ac_ext
14161#if defined (__STDC__) && __STDC__
14162# define lt_ptr_t void *
14163#else
14164# define lt_ptr_t char *
14165# define const
14166#endif
14167
14168/* The mapping between symbol names and symbols. */
14169const struct {
14170 const char *name;
14171 lt_ptr_t address;
14172}
14173lt_preloaded_symbols[] =
14174{
14175EOF
14176 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14177 cat <<\EOF >> conftest.$ac_ext
14178 {0, (lt_ptr_t) 0}
14179};
14180
14181#ifdef __cplusplus
14182}
14183#endif
14184EOF
14185 # Now try linking the two files.
14186 mv conftest.$ac_objext conftstm.$ac_objext
14187 lt_save_LIBS="$LIBS"
14188 lt_save_CFLAGS="$CFLAGS"
14189 LIBS="conftstm.$ac_objext"
14190 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14192 (eval $ac_link) 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14196 pipe_works=yes
14197 fi
14198 LIBS="$lt_save_LIBS"
14199 CFLAGS="$lt_save_CFLAGS"
14200 else
14201 echo "cannot find nm_test_func in $nlist" >&5
14202 fi
14203 else
14204 echo "cannot find nm_test_var in $nlist" >&5
14205 fi
14206 else
14207 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14208 fi
14209 else
14210 echo "$progname: failed program was:" >&5
14211 cat conftest.$ac_ext >&5
14212 fi
14213 rm -f conftest* conftst*
14214
14215 # Do not use the global_symbol_pipe unless it works.
14216 if test "$pipe_works" = yes; then
14217 break
14218 else
14219 lt_cv_sys_global_symbol_pipe=
14220 fi
14221done
14222
14223fi
14224
14225if test -z "$lt_cv_sys_global_symbol_pipe"; then
14226 lt_cv_sys_global_symbol_to_cdecl=
14227fi
14228if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014229 { echo "$as_me:$LINENO: result: failed" >&5
14230echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014231else
Reid Spencera773bd52006-08-04 18:18:08 +000014232 { echo "$as_me:$LINENO: result: ok" >&5
14233echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014234fi
14235
Reid Spencera773bd52006-08-04 18:18:08 +000014236{ echo "$as_me:$LINENO: checking for objdir" >&5
14237echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014238if test "${lt_cv_objdir+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14240else
14241 rm -f .libs 2>/dev/null
14242mkdir .libs 2>/dev/null
14243if test -d .libs; then
14244 lt_cv_objdir=.libs
14245else
14246 # MS-DOS does not allow filenames that begin with a dot.
14247 lt_cv_objdir=_libs
14248fi
14249rmdir .libs 2>/dev/null
14250fi
Reid Spencera773bd52006-08-04 18:18:08 +000014251{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14252echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014253objdir=$lt_cv_objdir
14254
14255
14256
14257
14258
14259case $host_os in
14260aix3*)
14261 # AIX sometimes has problems with the GCC collect2 program. For some
14262 # reason, if we set the COLLECT_NAMES environment variable, the problems
14263 # vanish in a puff of smoke.
14264 if test "X${COLLECT_NAMES+set}" != Xset; then
14265 COLLECT_NAMES=
14266 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014267 fi
14268 ;;
14269esac
14270
John Criswell47fdd832003-07-14 16:52:07 +000014271# Sed substitution that helps us do robust quoting. It backslashifies
14272# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014273Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014274sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14275
14276# Same as above, but do not quote variable references.
14277double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14278
14279# Sed substitution to delay expansion of an escaped shell variable in a
14280# double_quote_subst'ed string.
14281delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14282
14283# Sed substitution to avoid accidental globbing in evaled expressions
14284no_glob_subst='s/\*/\\\*/g'
14285
14286# Constants:
14287rm="rm -f"
14288
14289# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014290default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014291can_build_shared=yes
14292
Reid Spencera773bd52006-08-04 18:18:08 +000014293# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014294# which needs '.lib').
14295libext=a
14296ltmain="$ac_aux_dir/ltmain.sh"
14297ofile="$default_ofile"
14298with_gnu_ld="$lt_cv_prog_gnu_ld"
14299
14300if test -n "$ac_tool_prefix"; then
14301 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14302set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014305if test "${ac_cv_prog_AR+set}" = set; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14307else
14308 if test -n "$AR"; then
14309 ac_cv_prog_AR="$AR" # Let the user override the test.
14310else
14311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14312for as_dir in $PATH
14313do
14314 IFS=$as_save_IFS
14315 test -z "$as_dir" && as_dir=.
14316 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014317 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 +000014318 ac_cv_prog_AR="${ac_tool_prefix}ar"
14319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14320 break 2
14321 fi
14322done
14323done
Reid Spencera773bd52006-08-04 18:18:08 +000014324IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014325
14326fi
14327fi
14328AR=$ac_cv_prog_AR
14329if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014330 { echo "$as_me:$LINENO: result: $AR" >&5
14331echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014332else
Reid Spencera773bd52006-08-04 18:18:08 +000014333 { echo "$as_me:$LINENO: result: no" >&5
14334echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014335fi
14336
Reid Spencera773bd52006-08-04 18:18:08 +000014337
John Criswell47fdd832003-07-14 16:52:07 +000014338fi
14339if test -z "$ac_cv_prog_AR"; then
14340 ac_ct_AR=$AR
14341 # Extract the first word of "ar", so it can be a program name with args.
14342set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014343{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014345if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14347else
14348 if test -n "$ac_ct_AR"; then
14349 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14350else
14351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352for as_dir in $PATH
14353do
14354 IFS=$as_save_IFS
14355 test -z "$as_dir" && as_dir=.
14356 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014357 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 +000014358 ac_cv_prog_ac_ct_AR="ar"
14359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14360 break 2
14361 fi
14362done
14363done
Reid Spencera773bd52006-08-04 18:18:08 +000014364IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014365
John Criswell47fdd832003-07-14 16:52:07 +000014366fi
14367fi
14368ac_ct_AR=$ac_cv_prog_ac_ct_AR
14369if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014370 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14371echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014372else
Reid Spencera773bd52006-08-04 18:18:08 +000014373 { echo "$as_me:$LINENO: result: no" >&5
14374echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014375fi
14376
Reid Spencera773bd52006-08-04 18:18:08 +000014377 if test "x$ac_ct_AR" = x; then
14378 AR="false"
14379 else
14380 case $cross_compiling:$ac_tool_warned in
14381yes:)
14382{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14383whose name does not start with the host triplet. If you think this
14384configuration is useful to you, please write to autoconf@gnu.org." >&5
14385echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14386whose name does not start with the host triplet. If you think this
14387configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14388ac_tool_warned=yes ;;
14389esac
14390 AR=$ac_ct_AR
14391 fi
John Criswell47fdd832003-07-14 16:52:07 +000014392else
14393 AR="$ac_cv_prog_AR"
14394fi
14395
John Criswell7a73b802003-06-30 21:59:07 +000014396if test -n "$ac_tool_prefix"; then
14397 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14398set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014401if test "${ac_cv_prog_RANLIB+set}" = set; then
14402 echo $ECHO_N "(cached) $ECHO_C" >&6
14403else
14404 if test -n "$RANLIB"; then
14405 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14406else
14407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14408for as_dir in $PATH
14409do
14410 IFS=$as_save_IFS
14411 test -z "$as_dir" && as_dir=.
14412 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014413 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 +000014414 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14416 break 2
14417 fi
14418done
14419done
Reid Spencera773bd52006-08-04 18:18:08 +000014420IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014421
14422fi
14423fi
14424RANLIB=$ac_cv_prog_RANLIB
14425if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014426 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14427echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014428else
Reid Spencera773bd52006-08-04 18:18:08 +000014429 { echo "$as_me:$LINENO: result: no" >&5
14430echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014431fi
14432
Reid Spencera773bd52006-08-04 18:18:08 +000014433
John Criswell7a73b802003-06-30 21:59:07 +000014434fi
14435if test -z "$ac_cv_prog_RANLIB"; then
14436 ac_ct_RANLIB=$RANLIB
14437 # Extract the first word of "ranlib", so it can be a program name with args.
14438set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014441if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14442 echo $ECHO_N "(cached) $ECHO_C" >&6
14443else
14444 if test -n "$ac_ct_RANLIB"; then
14445 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14446else
14447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14448for as_dir in $PATH
14449do
14450 IFS=$as_save_IFS
14451 test -z "$as_dir" && as_dir=.
14452 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014453 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 +000014454 ac_cv_prog_ac_ct_RANLIB="ranlib"
14455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14456 break 2
14457 fi
14458done
14459done
Reid Spencera773bd52006-08-04 18:18:08 +000014460IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014461
John Criswell7a73b802003-06-30 21:59:07 +000014462fi
14463fi
14464ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14465if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014466 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14467echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014468else
Reid Spencera773bd52006-08-04 18:18:08 +000014469 { echo "$as_me:$LINENO: result: no" >&5
14470echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014471fi
14472
Reid Spencera773bd52006-08-04 18:18:08 +000014473 if test "x$ac_ct_RANLIB" = x; then
14474 RANLIB=":"
14475 else
14476 case $cross_compiling:$ac_tool_warned in
14477yes:)
14478{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14479whose name does not start with the host triplet. If you think this
14480configuration is useful to you, please write to autoconf@gnu.org." >&5
14481echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14482whose name does not start with the host triplet. If you think this
14483configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14484ac_tool_warned=yes ;;
14485esac
14486 RANLIB=$ac_ct_RANLIB
14487 fi
John Criswell7a73b802003-06-30 21:59:07 +000014488else
14489 RANLIB="$ac_cv_prog_RANLIB"
14490fi
14491
14492if test -n "$ac_tool_prefix"; then
14493 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14494set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014497if test "${ac_cv_prog_STRIP+set}" = set; then
14498 echo $ECHO_N "(cached) $ECHO_C" >&6
14499else
14500 if test -n "$STRIP"; then
14501 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14502else
14503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14504for as_dir in $PATH
14505do
14506 IFS=$as_save_IFS
14507 test -z "$as_dir" && as_dir=.
14508 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014509 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 +000014510 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14512 break 2
14513 fi
14514done
14515done
Reid Spencera773bd52006-08-04 18:18:08 +000014516IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014517
14518fi
14519fi
14520STRIP=$ac_cv_prog_STRIP
14521if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014522 { echo "$as_me:$LINENO: result: $STRIP" >&5
14523echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014524else
Reid Spencera773bd52006-08-04 18:18:08 +000014525 { echo "$as_me:$LINENO: result: no" >&5
14526echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014527fi
14528
Reid Spencera773bd52006-08-04 18:18:08 +000014529
John Criswell7a73b802003-06-30 21:59:07 +000014530fi
14531if test -z "$ac_cv_prog_STRIP"; then
14532 ac_ct_STRIP=$STRIP
14533 # Extract the first word of "strip", so it can be a program name with args.
14534set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014537if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14539else
14540 if test -n "$ac_ct_STRIP"; then
14541 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14542else
14543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14544for as_dir in $PATH
14545do
14546 IFS=$as_save_IFS
14547 test -z "$as_dir" && as_dir=.
14548 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014549 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 +000014550 ac_cv_prog_ac_ct_STRIP="strip"
14551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14552 break 2
14553 fi
14554done
14555done
Reid Spencera773bd52006-08-04 18:18:08 +000014556IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014557
John Criswell7a73b802003-06-30 21:59:07 +000014558fi
14559fi
14560ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14561if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014562 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14563echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014564else
Reid Spencera773bd52006-08-04 18:18:08 +000014565 { echo "$as_me:$LINENO: result: no" >&5
14566echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014567fi
14568
Reid Spencera773bd52006-08-04 18:18:08 +000014569 if test "x$ac_ct_STRIP" = x; then
14570 STRIP=":"
14571 else
14572 case $cross_compiling:$ac_tool_warned in
14573yes:)
14574{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14575whose name does not start with the host triplet. If you think this
14576configuration is useful to you, please write to autoconf@gnu.org." >&5
14577echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14578whose name does not start with the host triplet. If you think this
14579configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14580ac_tool_warned=yes ;;
14581esac
14582 STRIP=$ac_ct_STRIP
14583 fi
John Criswell7a73b802003-06-30 21:59:07 +000014584else
14585 STRIP="$ac_cv_prog_STRIP"
14586fi
14587
14588
John Criswell7a73b802003-06-30 21:59:07 +000014589old_CC="$CC"
14590old_CFLAGS="$CFLAGS"
14591
14592# Set sane defaults for various variables
14593test -z "$AR" && AR=ar
14594test -z "$AR_FLAGS" && AR_FLAGS=cru
14595test -z "$AS" && AS=as
14596test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014597test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014598test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014599test -z "$DLLTOOL" && DLLTOOL=dlltool
14600test -z "$LD" && LD=ld
14601test -z "$LN_S" && LN_S="ln -s"
14602test -z "$MAGIC_CMD" && MAGIC_CMD=file
14603test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014604test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014605test -z "$OBJDUMP" && OBJDUMP=objdump
14606test -z "$RANLIB" && RANLIB=:
14607test -z "$STRIP" && STRIP=:
14608test -z "$ac_objext" && ac_objext=o
14609
John Criswell7a73b802003-06-30 21:59:07 +000014610# Determine commands to create old-style static archives.
14611old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14612old_postinstall_cmds='chmod 644 $oldlib'
14613old_postuninstall_cmds=
14614
14615if test -n "$RANLIB"; then
14616 case $host_os in
14617 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014618 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014619 ;;
14620 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014621 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014622 ;;
14623 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014624 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014625fi
14626
Reid Spencera773bd52006-08-04 18:18:08 +000014627for cc_temp in $compiler""; do
14628 case $cc_temp in
14629 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14630 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14631 \-*) ;;
14632 *) break;;
14633 esac
14634done
14635cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14636
Reid Spencer2706f8c2004-09-19 23:53:36 +000014637
John Criswell47fdd832003-07-14 16:52:07 +000014638# Only perform the check for file, if the check method requires it
14639case $deplibs_check_method in
14640file_magic*)
14641 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014642 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14643echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014644if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14645 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014646else
John Criswell47fdd832003-07-14 16:52:07 +000014647 case $MAGIC_CMD in
14648[\\/*] | ?:[\\/]*)
14649 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14650 ;;
14651*)
14652 lt_save_MAGIC_CMD="$MAGIC_CMD"
14653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14654 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14655 for ac_dir in $ac_dummy; do
14656 IFS="$lt_save_ifs"
14657 test -z "$ac_dir" && ac_dir=.
14658 if test -f $ac_dir/${ac_tool_prefix}file; then
14659 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14660 if test -n "$file_magic_test_file"; then
14661 case $deplibs_check_method in
14662 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014663 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014664 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14665 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14666 $EGREP "$file_magic_regex" > /dev/null; then
14667 :
14668 else
14669 cat <<EOF 1>&2
14670
14671*** Warning: the command libtool uses to detect shared libraries,
14672*** $file_magic_cmd, produces output that libtool cannot recognize.
14673*** The result is that libtool may fail to recognize shared libraries
14674*** as such. This will affect the creation of libtool libraries that
14675*** depend on shared libraries, but programs linked with such libtool
14676*** libraries will work regardless of this problem. Nevertheless, you
14677*** may want to report the problem to your system manager and/or to
14678*** bug-libtool@gnu.org
14679
14680EOF
14681 fi ;;
14682 esac
14683 fi
14684 break
14685 fi
14686 done
14687 IFS="$lt_save_ifs"
14688 MAGIC_CMD="$lt_save_MAGIC_CMD"
14689 ;;
14690esac
John Criswell7a73b802003-06-30 21:59:07 +000014691fi
John Criswell7a73b802003-06-30 21:59:07 +000014692
John Criswell47fdd832003-07-14 16:52:07 +000014693MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14694if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014695 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14696echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014697else
Reid Spencera773bd52006-08-04 18:18:08 +000014698 { echo "$as_me:$LINENO: result: no" >&5
14699echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014700fi
John Criswell7a73b802003-06-30 21:59:07 +000014701
John Criswell47fdd832003-07-14 16:52:07 +000014702if test -z "$lt_cv_path_MAGIC_CMD"; then
14703 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014704 { echo "$as_me:$LINENO: checking for file" >&5
14705echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014706if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6
14708else
14709 case $MAGIC_CMD in
14710[\\/*] | ?:[\\/]*)
14711 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14712 ;;
14713*)
14714 lt_save_MAGIC_CMD="$MAGIC_CMD"
14715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14716 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14717 for ac_dir in $ac_dummy; do
14718 IFS="$lt_save_ifs"
14719 test -z "$ac_dir" && ac_dir=.
14720 if test -f $ac_dir/file; then
14721 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14722 if test -n "$file_magic_test_file"; then
14723 case $deplibs_check_method in
14724 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014725 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14727 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14728 $EGREP "$file_magic_regex" > /dev/null; then
14729 :
14730 else
14731 cat <<EOF 1>&2
14732
14733*** Warning: the command libtool uses to detect shared libraries,
14734*** $file_magic_cmd, produces output that libtool cannot recognize.
14735*** The result is that libtool may fail to recognize shared libraries
14736*** as such. This will affect the creation of libtool libraries that
14737*** depend on shared libraries, but programs linked with such libtool
14738*** libraries will work regardless of this problem. Nevertheless, you
14739*** may want to report the problem to your system manager and/or to
14740*** bug-libtool@gnu.org
14741
14742EOF
14743 fi ;;
14744 esac
14745 fi
14746 break
14747 fi
14748 done
14749 IFS="$lt_save_ifs"
14750 MAGIC_CMD="$lt_save_MAGIC_CMD"
14751 ;;
14752esac
14753fi
14754
14755MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14756if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014757 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14758echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014759else
Reid Spencera773bd52006-08-04 18:18:08 +000014760 { echo "$as_me:$LINENO: result: no" >&5
14761echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014762fi
14763
14764 else
14765 MAGIC_CMD=:
14766 fi
14767fi
14768
14769 fi
14770 ;;
14771esac
14772
Reid Spencer17795972004-11-18 09:47:37 +000014773enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014774enable_win32_dll=no
14775
Reid Spencera773bd52006-08-04 18:18:08 +000014776# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014777if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014778 enableval=$enable_libtool_lock;
14779fi
John Criswell47fdd832003-07-14 16:52:07 +000014780
John Criswell47fdd832003-07-14 16:52:07 +000014781test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14782
John Criswell7a73b802003-06-30 21:59:07 +000014783
Reid Spencera773bd52006-08-04 18:18:08 +000014784# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014785if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014786 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014787else
14788 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014789fi
14790
John Criswell7a73b802003-06-30 21:59:07 +000014791test -z "$pic_mode" && pic_mode=default
14792
John Criswell47fdd832003-07-14 16:52:07 +000014793# Use C for the default configuration in the libtool script
14794tagname=
14795lt_save_CC="$CC"
14796ac_ext=c
14797ac_cpp='$CPP $CPPFLAGS'
14798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14800ac_compiler_gnu=$ac_cv_c_compiler_gnu
14801
14802
14803# Source file extension for C test sources.
14804ac_ext=c
14805
14806# Object file extension for compiled C test sources.
14807objext=o
14808objext=$objext
14809
14810# Code to be used in simple compile tests
14811lt_simple_compile_test_code="int some_variable = 0;\n"
14812
14813# Code to be used in simple link tests
14814lt_simple_link_test_code='int main(){return(0);}\n'
14815
14816
14817# If no C compiler was specified, use CC.
14818LTCC=${LTCC-"$CC"}
14819
Reid Spencera773bd52006-08-04 18:18:08 +000014820# If no C compiler flags were specified, use CFLAGS.
14821LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14822
John Criswell47fdd832003-07-14 16:52:07 +000014823# Allow CC to be a program name with arguments.
14824compiler=$CC
14825
14826
Reid Spencera773bd52006-08-04 18:18:08 +000014827# save warnings/boilerplate of simple test code
14828ac_outfile=conftest.$ac_objext
14829printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14830eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14831_lt_compiler_boilerplate=`cat conftest.err`
14832$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014833
Reid Spencera773bd52006-08-04 18:18:08 +000014834ac_outfile=conftest.$ac_objext
14835printf "$lt_simple_link_test_code" >conftest.$ac_ext
14836eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14837_lt_linker_boilerplate=`cat conftest.err`
14838$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014839
14840
John Criswell47fdd832003-07-14 16:52:07 +000014841
14842lt_prog_compiler_no_builtin_flag=
14843
14844if test "$GCC" = yes; then
14845 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14846
Reid Spencer2706f8c2004-09-19 23:53:36 +000014847
Reid Spencera773bd52006-08-04 18:18:08 +000014848{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14849echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014850if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14852else
14853 lt_cv_prog_compiler_rtti_exceptions=no
14854 ac_outfile=conftest.$ac_objext
14855 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14856 lt_compiler_flag="-fno-rtti -fno-exceptions"
14857 # Insert the option either (1) after the last *FLAGS variable, or
14858 # (2) before a word containing "conftest.", or (3) at the end.
14859 # Note that $ac_compile itself does not contain backslashes and begins
14860 # with a dollar sign (not a hyphen), so the echo should work correctly.
14861 # The option is referenced via a variable to avoid confusing sed.
14862 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14865 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014866 (eval echo "\"\$as_me:14866: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014867 (eval "$lt_compile" 2>conftest.err)
14868 ac_status=$?
14869 cat conftest.err >&5
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014870 echo "$as_me:14870: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014871 if (exit $ac_status) && test -s "$ac_outfile"; then
14872 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014873 # So say no if there are warnings other than the usual output.
14874 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14876 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014877 lt_cv_prog_compiler_rtti_exceptions=yes
14878 fi
14879 fi
14880 $rm conftest*
14881
14882fi
Reid Spencera773bd52006-08-04 18:18:08 +000014883{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14884echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014885
14886if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14887 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14888else
14889 :
14890fi
14891
14892fi
14893
14894lt_prog_compiler_wl=
14895lt_prog_compiler_pic=
14896lt_prog_compiler_static=
14897
Reid Spencera773bd52006-08-04 18:18:08 +000014898{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14899echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014900
14901 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014902 lt_prog_compiler_wl='-Wl,'
14903 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014904
14905 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014906 aix*)
14907 # All AIX code is PIC.
14908 if test "$host_cpu" = ia64; then
14909 # AIX 5 now supports IA64 processor
14910 lt_prog_compiler_static='-Bstatic'
14911 fi
John Criswell7a73b802003-06-30 21:59:07 +000014912 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014913
John Criswell7a73b802003-06-30 21:59:07 +000014914 amigaos*)
14915 # FIXME: we need at least 68020 code to build shared libraries, but
14916 # adding the `-m68020' flag to GCC prevents building anything better,
14917 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014918 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014919 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014920
14921 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014922 # PIC is the default for these OSes.
14923 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014924
14925 mingw* | pw32* | os2*)
14926 # This hack is so that the source file can tell whether it is being
14927 # built for inclusion in a dll (and should export symbols for example).
14928 lt_prog_compiler_pic='-DDLL_EXPORT'
14929 ;;
14930
John Criswell7a73b802003-06-30 21:59:07 +000014931 darwin* | rhapsody*)
14932 # PIC is the default on this platform
14933 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014934 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014935 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014936
Reid Spencera773bd52006-08-04 18:18:08 +000014937 interix3*)
14938 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14939 # Instead, we relocate shared libraries at runtime.
14940 ;;
14941
John Criswell47fdd832003-07-14 16:52:07 +000014942 msdosdjgpp*)
14943 # Just because we use GCC doesn't mean we suddenly get shared libraries
14944 # on systems that don't support them.
14945 lt_prog_compiler_can_build_shared=no
14946 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014947 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014948
John Criswell7a73b802003-06-30 21:59:07 +000014949 sysv4*MP*)
14950 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014951 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014952 fi
14953 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014954
14955 hpux*)
14956 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14957 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014958 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014959 hppa*64*|ia64*)
14960 # +Z the default
14961 ;;
14962 *)
14963 lt_prog_compiler_pic='-fPIC'
14964 ;;
14965 esac
14966 ;;
14967
John Criswell7a73b802003-06-30 21:59:07 +000014968 *)
John Criswell47fdd832003-07-14 16:52:07 +000014969 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014970 ;;
14971 esac
14972 else
John Criswell47fdd832003-07-14 16:52:07 +000014973 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014974 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014975 aix*)
14976 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014977 if test "$host_cpu" = ia64; then
14978 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014979 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014980 else
John Criswell47fdd832003-07-14 16:52:07 +000014981 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014982 fi
14983 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014984 darwin*)
14985 # PIC is the default on this platform
14986 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014987 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014988 xlc*)
14989 lt_prog_compiler_pic='-qnocommon'
14990 lt_prog_compiler_wl='-Wl,'
14991 ;;
14992 esac
14993 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014994
John Criswell47fdd832003-07-14 16:52:07 +000014995 mingw* | pw32* | os2*)
14996 # This hack is so that the source file can tell whether it is being
14997 # built for inclusion in a dll (and should export symbols for example).
14998 lt_prog_compiler_pic='-DDLL_EXPORT'
14999 ;;
15000
John Criswell7a73b802003-06-30 21:59:07 +000015001 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000015002 lt_prog_compiler_wl='-Wl,'
15003 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15004 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000015005 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015006 hppa*64*|ia64*)
15007 # +Z the default
15008 ;;
15009 *)
15010 lt_prog_compiler_pic='+Z'
15011 ;;
15012 esac
15013 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15014 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000015015 ;;
15016
John Criswell47fdd832003-07-14 16:52:07 +000015017 irix5* | irix6* | nonstopux*)
15018 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015019 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000015020 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015021 ;;
15022
15023 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000015024 lt_prog_compiler_pic='-KPIC'
15025 lt_prog_compiler_static='-Bstatic'
15026 ;;
15027
15028 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000015029 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015030 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000015031 lt_prog_compiler_wl='-Wl,'
15032 lt_prog_compiler_pic='-KPIC'
15033 lt_prog_compiler_static='-static'
15034 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015035 pgcc* | pgf77* | pgf90* | pgf95*)
15036 # Portland Group compilers (*not* the Pentium gcc compiler,
15037 # which looks to be a dead project)
15038 lt_prog_compiler_wl='-Wl,'
15039 lt_prog_compiler_pic='-fpic'
15040 lt_prog_compiler_static='-Bstatic'
15041 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015042 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000015043 lt_prog_compiler_wl='-Wl,'
15044 # All Alpha code is PIC.
15045 lt_prog_compiler_static='-non_shared'
15046 ;;
15047 esac
John Criswell7a73b802003-06-30 21:59:07 +000015048 ;;
15049
15050 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000015051 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015052 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000015053 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015054 ;;
15055
John Criswell7a73b802003-06-30 21:59:07 +000015056 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015057 lt_prog_compiler_pic='-KPIC'
15058 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000015059 case $cc_basename in
15060 f77* | f90* | f95*)
15061 lt_prog_compiler_wl='-Qoption ld ';;
15062 *)
15063 lt_prog_compiler_wl='-Wl,';;
15064 esac
John Criswell7a73b802003-06-30 21:59:07 +000015065 ;;
15066
15067 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000015068 lt_prog_compiler_wl='-Qoption ld '
15069 lt_prog_compiler_pic='-PIC'
15070 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015071 ;;
15072
Reid Spencera773bd52006-08-04 18:18:08 +000015073 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000015074 lt_prog_compiler_wl='-Wl,'
15075 lt_prog_compiler_pic='-KPIC'
15076 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015077 ;;
15078
15079 sysv4*MP*)
15080 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000015081 lt_prog_compiler_pic='-Kconform_pic'
15082 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015083 fi
15084 ;;
15085
Reid Spencera773bd52006-08-04 18:18:08 +000015086 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15087 lt_prog_compiler_wl='-Wl,'
15088 lt_prog_compiler_pic='-KPIC'
15089 lt_prog_compiler_static='-Bstatic'
15090 ;;
15091
15092 unicos*)
15093 lt_prog_compiler_wl='-Wl,'
15094 lt_prog_compiler_can_build_shared=no
15095 ;;
15096
John Criswell47fdd832003-07-14 16:52:07 +000015097 uts4*)
15098 lt_prog_compiler_pic='-pic'
15099 lt_prog_compiler_static='-Bstatic'
15100 ;;
15101
John Criswell7a73b802003-06-30 21:59:07 +000015102 *)
John Criswell47fdd832003-07-14 16:52:07 +000015103 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015104 ;;
15105 esac
15106 fi
15107
Reid Spencera773bd52006-08-04 18:18:08 +000015108{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15109echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015110
John Criswell47fdd832003-07-14 16:52:07 +000015111#
15112# Check to make sure the PIC flag actually works.
15113#
15114if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015115
Reid Spencera773bd52006-08-04 18:18:08 +000015116{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15117echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015118if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015119 echo $ECHO_N "(cached) $ECHO_C" >&6
15120else
John Criswell47fdd832003-07-14 16:52:07 +000015121 lt_prog_compiler_pic_works=no
15122 ac_outfile=conftest.$ac_objext
15123 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15124 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15125 # Insert the option either (1) after the last *FLAGS variable, or
15126 # (2) before a word containing "conftest.", or (3) at the end.
15127 # Note that $ac_compile itself does not contain backslashes and begins
15128 # with a dollar sign (not a hyphen), so the echo should work correctly.
15129 # The option is referenced via a variable to avoid confusing sed.
15130 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015131 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15133 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000015134 (eval echo "\"\$as_me:15134: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015135 (eval "$lt_compile" 2>conftest.err)
15136 ac_status=$?
15137 cat conftest.err >&5
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000015138 echo "$as_me:15138: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015139 if (exit $ac_status) && test -s "$ac_outfile"; then
15140 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015141 # So say no if there are warnings other than the usual output.
15142 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15143 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15144 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015145 lt_prog_compiler_pic_works=yes
15146 fi
15147 fi
15148 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015149
John Criswell47fdd832003-07-14 16:52:07 +000015150fi
Reid Spencera773bd52006-08-04 18:18:08 +000015151{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15152echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015153
John Criswell47fdd832003-07-14 16:52:07 +000015154if test x"$lt_prog_compiler_pic_works" = xyes; then
15155 case $lt_prog_compiler_pic in
15156 "" | " "*) ;;
15157 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15158 esac
John Criswell7a73b802003-06-30 21:59:07 +000015159else
John Criswell47fdd832003-07-14 16:52:07 +000015160 lt_prog_compiler_pic=
15161 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015162fi
15163
John Criswell7a73b802003-06-30 21:59:07 +000015164fi
Reid Spencera773bd52006-08-04 18:18:08 +000015165case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015166 # For platforms which do not support PIC, -DPIC is meaningless:
15167 *djgpp*)
15168 lt_prog_compiler_pic=
15169 ;;
15170 *)
15171 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15172 ;;
15173esac
John Criswell7a73b802003-06-30 21:59:07 +000015174
Reid Spencera773bd52006-08-04 18:18:08 +000015175#
15176# Check to make sure the static flag actually works.
15177#
15178wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15179{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15180echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15181if test "${lt_prog_compiler_static_works+set}" = set; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15183else
15184 lt_prog_compiler_static_works=no
15185 save_LDFLAGS="$LDFLAGS"
15186 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15187 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15188 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15189 # The linker can only warn and ignore the option if not recognized
15190 # So say no if there are warnings
15191 if test -s conftest.err; then
15192 # Append any errors to the config.log.
15193 cat conftest.err 1>&5
15194 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15195 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15196 if diff conftest.exp conftest.er2 >/dev/null; then
15197 lt_prog_compiler_static_works=yes
15198 fi
15199 else
15200 lt_prog_compiler_static_works=yes
15201 fi
15202 fi
15203 $rm conftest*
15204 LDFLAGS="$save_LDFLAGS"
15205
15206fi
15207{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15208echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15209
15210if test x"$lt_prog_compiler_static_works" = xyes; then
15211 :
15212else
15213 lt_prog_compiler_static=
15214fi
15215
15216
15217{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15218echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015219if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015220 echo $ECHO_N "(cached) $ECHO_C" >&6
15221else
John Criswell47fdd832003-07-14 16:52:07 +000015222 lt_cv_prog_compiler_c_o=no
15223 $rm -r conftest 2>/dev/null
15224 mkdir conftest
15225 cd conftest
15226 mkdir out
15227 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015228
John Criswell47fdd832003-07-14 16:52:07 +000015229 lt_compiler_flag="-o out/conftest2.$ac_objext"
15230 # Insert the option either (1) after the last *FLAGS variable, or
15231 # (2) before a word containing "conftest.", or (3) at the end.
15232 # Note that $ac_compile itself does not contain backslashes and begins
15233 # with a dollar sign (not a hyphen), so the echo should work correctly.
15234 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15237 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000015238 (eval echo "\"\$as_me:15238: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015239 (eval "$lt_compile" 2>out/conftest.err)
15240 ac_status=$?
15241 cat out/conftest.err >&5
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000015242 echo "$as_me:15242: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015243 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15244 then
15245 # The compiler can only warn and ignore the option if not recognized
15246 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015247 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15248 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15249 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015250 lt_cv_prog_compiler_c_o=yes
15251 fi
15252 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015253 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015254 $rm conftest*
15255 # SGI C++ compiler will create directory out/ii_files/ for
15256 # template instantiation
15257 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15258 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015259 cd ..
15260 rmdir conftest
15261 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015262
15263fi
Reid Spencera773bd52006-08-04 18:18:08 +000015264{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15265echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015266
John Criswell7a73b802003-06-30 21:59:07 +000015267
John Criswell7a73b802003-06-30 21:59:07 +000015268hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015269if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015270 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015271 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15272echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015273 hard_links=yes
15274 $rm conftest*
15275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15276 touch conftest.a
15277 ln conftest.a conftest.b 2>&5 || hard_links=no
15278 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015279 { echo "$as_me:$LINENO: result: $hard_links" >&5
15280echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015281 if test "$hard_links" = no; then
15282 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15283echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15284 need_locks=warn
15285 fi
15286else
15287 need_locks=no
15288fi
John Criswell7a73b802003-06-30 21:59:07 +000015289
Reid Spencera773bd52006-08-04 18:18:08 +000015290{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15291echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015292
15293 runpath_var=
15294 allow_undefined_flag=
15295 enable_shared_with_static_runtimes=no
15296 archive_cmds=
15297 archive_expsym_cmds=
15298 old_archive_From_new_cmds=
15299 old_archive_from_expsyms_cmds=
15300 export_dynamic_flag_spec=
15301 whole_archive_flag_spec=
15302 thread_safe_flag_spec=
15303 hardcode_libdir_flag_spec=
15304 hardcode_libdir_flag_spec_ld=
15305 hardcode_libdir_separator=
15306 hardcode_direct=no
15307 hardcode_minus_L=no
15308 hardcode_shlibpath_var=unsupported
15309 link_all_deplibs=unknown
15310 hardcode_automatic=no
15311 module_cmds=
15312 module_expsym_cmds=
15313 always_export_symbols=no
15314 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15315 # include_expsyms should be a list of space-separated symbols to be *always*
15316 # included in the symbol list
15317 include_expsyms=
15318 # exclude_expsyms can be an extended regexp of symbols to exclude
15319 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15320 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15321 # as well as any symbol that contains `d'.
15322 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15323 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15324 # platforms (ab)use it in PIC code, but their linkers get confused if
15325 # the symbol is explicitly referenced. Since portable code cannot
15326 # rely on this symbol name, it's probably fine to never include it in
15327 # preloaded symbol tables.
15328 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015329 # Just being paranoid about ensuring that cc_basename is set.
15330 for cc_temp in $compiler""; do
15331 case $cc_temp in
15332 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15333 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15334 \-*) ;;
15335 *) break;;
15336 esac
15337done
15338cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015339
15340 case $host_os in
15341 cygwin* | mingw* | pw32*)
15342 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15343 # When not using gcc, we currently assume that we are using
15344 # Microsoft Visual C++.
15345 if test "$GCC" != yes; then
15346 with_gnu_ld=no
15347 fi
15348 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015349 interix*)
15350 # we just hope/assume this is gcc and not c89 (= MSVC++)
15351 with_gnu_ld=yes
15352 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015353 openbsd*)
15354 with_gnu_ld=no
15355 ;;
15356 esac
15357
15358 ld_shlibs=yes
15359 if test "$with_gnu_ld" = yes; then
15360 # If archive_cmds runs LD, not CC, wlarc should be empty
15361 wlarc='${wl}'
15362
Reid Spencera773bd52006-08-04 18:18:08 +000015363 # Set some defaults for GNU ld with shared library support. These
15364 # are reset later if shared libraries are not supported. Putting them
15365 # here allows them to be overridden if necessary.
15366 runpath_var=LD_RUN_PATH
15367 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15368 export_dynamic_flag_spec='${wl}--export-dynamic'
15369 # ancient GNU ld didn't support --whole-archive et. al.
15370 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15371 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15372 else
15373 whole_archive_flag_spec=
15374 fi
15375 supports_anon_versioning=no
15376 case `$LD -v 2>/dev/null` in
15377 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15378 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15379 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15380 *\ 2.11.*) ;; # other 2.11 versions
15381 *) supports_anon_versioning=yes ;;
15382 esac
15383
John Criswell47fdd832003-07-14 16:52:07 +000015384 # See if GNU ld supports shared libraries.
15385 case $host_os in
15386 aix3* | aix4* | aix5*)
15387 # On AIX/PPC, the GNU linker is very broken
15388 if test "$host_cpu" != ia64; then
15389 ld_shlibs=no
15390 cat <<EOF 1>&2
15391
15392*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15393*** to be unable to reliably create shared libraries on AIX.
15394*** Therefore, libtool is disabling shared libraries support. If you
15395*** really care for shared libraries, you may want to modify your PATH
15396*** so that a non-GNU linker is found, and then restart.
15397
15398EOF
15399 fi
15400 ;;
15401
15402 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015403 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 +000015404 hardcode_libdir_flag_spec='-L$libdir'
15405 hardcode_minus_L=yes
15406
15407 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15408 # that the semantics of dynamic libraries on AmigaOS, at least up
15409 # to version 4, is to share data among multiple programs linked
15410 # with the same dynamic library. Since this doesn't match the
15411 # behavior of shared libraries on other platforms, we can't use
15412 # them.
15413 ld_shlibs=no
15414 ;;
15415
15416 beos*)
15417 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15418 allow_undefined_flag=unsupported
15419 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15420 # support --undefined. This deserves some investigation. FIXME
15421 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15422 else
15423 ld_shlibs=no
15424 fi
15425 ;;
15426
15427 cygwin* | mingw* | pw32*)
15428 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15429 # as there is no search path for DLLs.
15430 hardcode_libdir_flag_spec='-L$libdir'
15431 allow_undefined_flag=unsupported
15432 always_export_symbols=no
15433 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015434 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 +000015435
15436 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015437 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 +000015438 # If the export-symbols file already is a .def file (1st line
15439 # is EXPORTS), use it as is; otherwise, prepend...
15440 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15441 cp $export_symbols $output_objdir/$soname.def;
15442 else
15443 echo EXPORTS > $output_objdir/$soname.def;
15444 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015445 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015446 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15447 else
15448 ld_shlibs=no
15449 fi
15450 ;;
15451
15452 interix3*)
15453 hardcode_direct=no
15454 hardcode_shlibpath_var=no
15455 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15456 export_dynamic_flag_spec='${wl}-E'
15457 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15458 # Instead, shared libraries are loaded at an image base (0x10000000 by
15459 # default) and relocated if they conflict, which is a slow very memory
15460 # consuming and fragmenting process. To avoid this, we pick a random,
15461 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15462 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15463 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15464 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'
15465 ;;
15466
15467 linux*)
15468 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15469 tmp_addflag=
15470 case $cc_basename,$host_cpu in
15471 pgcc*) # Portland Group C compiler
15472 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'
15473 tmp_addflag=' $pic_flag'
15474 ;;
15475 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15476 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'
15477 tmp_addflag=' $pic_flag -Mnomain' ;;
15478 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15479 tmp_addflag=' -i_dynamic' ;;
15480 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15481 tmp_addflag=' -i_dynamic -nofor_main' ;;
15482 ifc* | ifort*) # Intel Fortran compiler
15483 tmp_addflag=' -nofor_main' ;;
15484 esac
15485 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15486
15487 if test $supports_anon_versioning = yes; then
15488 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15489 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15490 $echo "local: *; };" >> $output_objdir/$libname.ver~
15491 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15492 fi
John Criswell47fdd832003-07-14 16:52:07 +000015493 else
15494 ld_shlibs=no
15495 fi
15496 ;;
15497
15498 netbsd*)
15499 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15500 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15501 wlarc=
15502 else
15503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15504 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15505 fi
15506 ;;
15507
Reid Spencera773bd52006-08-04 18:18:08 +000015508 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015509 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15510 ld_shlibs=no
15511 cat <<EOF 1>&2
15512
15513*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15514*** create shared libraries on Solaris systems. Therefore, libtool
15515*** is disabling shared libraries support. We urge you to upgrade GNU
15516*** binutils to release 2.9.1 or newer. Another option is to modify
15517*** your PATH or compiler configuration so that the native linker is
15518*** used, and then restart.
15519
15520EOF
15521 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15523 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15524 else
15525 ld_shlibs=no
15526 fi
15527 ;;
15528
Reid Spencera773bd52006-08-04 18:18:08 +000015529 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15530 case `$LD -v 2>&1` in
15531 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15532 ld_shlibs=no
15533 cat <<_LT_EOF 1>&2
15534
15535*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15536*** reliably create shared libraries on SCO systems. Therefore, libtool
15537*** is disabling shared libraries support. We urge you to upgrade GNU
15538*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15539*** your PATH or compiler configuration so that the native linker is
15540*** used, and then restart.
15541
15542_LT_EOF
15543 ;;
15544 *)
15545 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15546 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15548 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15549 else
15550 ld_shlibs=no
15551 fi
15552 ;;
15553 esac
15554 ;;
15555
John Criswell47fdd832003-07-14 16:52:07 +000015556 sunos4*)
15557 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15558 wlarc=
15559 hardcode_direct=yes
15560 hardcode_shlibpath_var=no
15561 ;;
15562
15563 *)
15564 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15566 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15567 else
15568 ld_shlibs=no
15569 fi
15570 ;;
15571 esac
15572
Reid Spencera773bd52006-08-04 18:18:08 +000015573 if test "$ld_shlibs" = no; then
15574 runpath_var=
15575 hardcode_libdir_flag_spec=
15576 export_dynamic_flag_spec=
15577 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015578 fi
15579 else
15580 # PORTME fill in a description of your system's linker (not GNU ld)
15581 case $host_os in
15582 aix3*)
15583 allow_undefined_flag=unsupported
15584 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015585 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 +000015586 # Note: this linker hardcodes the directories in LIBPATH if there
15587 # are no directories specified by -L.
15588 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015589 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015590 # Neither direct hardcoding nor static linking is supported with a
15591 # broken collect2.
15592 hardcode_direct=unsupported
15593 fi
15594 ;;
15595
15596 aix4* | aix5*)
15597 if test "$host_cpu" = ia64; then
15598 # On IA64, the linker does run time linking by default, so we don't
15599 # have to do anything special.
15600 aix_use_runtimelinking=no
15601 exp_sym_flag='-Bexport'
15602 no_entry_flag=""
15603 else
15604 # If we're using GNU nm, then we don't want the "-C" option.
15605 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15606 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15607 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'
15608 else
15609 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'
15610 fi
15611 aix_use_runtimelinking=no
15612
15613 # Test if we are trying to use run time linking or normal
15614 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15615 # need to do runtime linking.
15616 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15617 for ld_flag in $LDFLAGS; do
15618 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15619 aix_use_runtimelinking=yes
15620 break
15621 fi
15622 done
Reid Spencera773bd52006-08-04 18:18:08 +000015623 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015624 esac
15625
15626 exp_sym_flag='-bexport'
15627 no_entry_flag='-bnoentry'
15628 fi
15629
15630 # When large executables or shared objects are built, AIX ld can
15631 # have problems creating the table of contents. If linking a library
15632 # or program results in "error TOC overflow" add -mminimal-toc to
15633 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15634 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15635
15636 archive_cmds=''
15637 hardcode_direct=yes
15638 hardcode_libdir_separator=':'
15639 link_all_deplibs=yes
15640
15641 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015642 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015643 # We only want to do this on AIX 4.2 and lower, the check
15644 # below for broken collect2 doesn't work under 4.3+
15645 collect2name=`${CC} -print-prog-name=collect2`
15646 if test -f "$collect2name" && \
15647 strings "$collect2name" | grep resolve_lib_name >/dev/null
15648 then
15649 # We have reworked collect2
15650 hardcode_direct=yes
15651 else
15652 # We have old collect2
15653 hardcode_direct=unsupported
15654 # It fails to find uninstalled libraries when the uninstalled
15655 # path is not listed in the libpath. Setting hardcode_minus_L
15656 # to unsupported forces relinking
15657 hardcode_minus_L=yes
15658 hardcode_libdir_flag_spec='-L$libdir'
15659 hardcode_libdir_separator=
15660 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015661 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015662 esac
15663 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015664 if test "$aix_use_runtimelinking" = yes; then
15665 shared_flag="$shared_flag "'${wl}-G'
15666 fi
John Criswell47fdd832003-07-14 16:52:07 +000015667 else
15668 # not using gcc
15669 if test "$host_cpu" = ia64; then
15670 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15671 # chokes on -Wl,-G. The following line is correct:
15672 shared_flag='-G'
15673 else
Reid Spencera773bd52006-08-04 18:18:08 +000015674 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015675 shared_flag='${wl}-G'
15676 else
15677 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015678 fi
John Criswell47fdd832003-07-14 16:52:07 +000015679 fi
15680 fi
15681
15682 # It seems that -bexpall does not export symbols beginning with
15683 # underscore (_), so it is better to generate a list of symbols to export.
15684 always_export_symbols=yes
15685 if test "$aix_use_runtimelinking" = yes; then
15686 # Warning - without using the other runtime loading flags (-brtl),
15687 # -berok will link without error, but may produce a broken library.
15688 allow_undefined_flag='-berok'
15689 # Determine the default libpath from the value encoded in an empty executable.
15690 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015691/* confdefs.h. */
15692_ACEOF
15693cat confdefs.h >>conftest.$ac_ext
15694cat >>conftest.$ac_ext <<_ACEOF
15695/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015696
John Criswell7a73b802003-06-30 21:59:07 +000015697int
15698main ()
15699{
John Criswell47fdd832003-07-14 16:52:07 +000015700
John Criswell7a73b802003-06-30 21:59:07 +000015701 ;
15702 return 0;
15703}
15704_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015705rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015706if { (ac_try="$ac_link"
15707case "(($ac_try" in
15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15710esac
15711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015713 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015714 grep -v '^ *+' conftest.er1 >conftest.err
15715 rm -f conftest.er1
15716 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015718 (exit $ac_status); } &&
15719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15720 { (case "(($ac_try" in
15721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722 *) ac_try_echo=$ac_try;;
15723esac
15724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725 (eval "$ac_try") 2>&5
15726 ac_status=$?
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; } &&
15729 { ac_try='test -s conftest$ac_exeext'
15730 { (case "(($ac_try" in
15731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732 *) ac_try_echo=$ac_try;;
15733esac
15734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735 (eval "$ac_try") 2>&5
15736 ac_status=$?
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015739
John Criswell47fdd832003-07-14 16:52:07 +000015740aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15741}'`
15742# Check for a 64-bit object if we didn't find anything.
15743if 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; }
15744}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015745else
15746 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015747sed 's/^/| /' conftest.$ac_ext >&5
15748
Reid Spencera773bd52006-08-04 18:18:08 +000015749
John Criswell7a73b802003-06-30 21:59:07 +000015750fi
Reid Spencera773bd52006-08-04 18:18:08 +000015751
Bill Wendlingebcceee2009-04-18 11:20:33 +000015752rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015753 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015754if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015755
John Criswell47fdd832003-07-14 16:52:07 +000015756 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015757 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 +000015758 else
15759 if test "$host_cpu" = ia64; then
15760 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15761 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015762 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 +000015763 else
15764 # Determine the default libpath from the value encoded in an empty executable.
15765 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015766/* confdefs.h. */
15767_ACEOF
15768cat confdefs.h >>conftest.$ac_ext
15769cat >>conftest.$ac_ext <<_ACEOF
15770/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015771
John Criswell47fdd832003-07-14 16:52:07 +000015772int
15773main ()
15774{
John Criswell7a73b802003-06-30 21:59:07 +000015775
John Criswell47fdd832003-07-14 16:52:07 +000015776 ;
15777 return 0;
15778}
15779_ACEOF
15780rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015781if { (ac_try="$ac_link"
15782case "(($ac_try" in
15783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784 *) ac_try_echo=$ac_try;;
15785esac
15786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015788 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015789 grep -v '^ *+' conftest.er1 >conftest.err
15790 rm -f conftest.er1
15791 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015793 (exit $ac_status); } &&
15794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15795 { (case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15798esac
15799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_try") 2>&5
15801 ac_status=$?
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; } &&
15804 { ac_try='test -s conftest$ac_exeext'
15805 { (case "(($ac_try" in
15806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807 *) ac_try_echo=$ac_try;;
15808esac
15809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810 (eval "$ac_try") 2>&5
15811 ac_status=$?
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015814
John Criswell47fdd832003-07-14 16:52:07 +000015815aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15816}'`
15817# Check for a 64-bit object if we didn't find anything.
15818if 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; }
15819}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015820else
John Criswell47fdd832003-07-14 16:52:07 +000015821 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015822sed 's/^/| /' conftest.$ac_ext >&5
15823
Reid Spencera773bd52006-08-04 18:18:08 +000015824
John Criswell47fdd832003-07-14 16:52:07 +000015825fi
Reid Spencera773bd52006-08-04 18:18:08 +000015826
Bill Wendlingebcceee2009-04-18 11:20:33 +000015827rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015828 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015829if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015830
John Criswell47fdd832003-07-14 16:52:07 +000015831 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15832 # Warning - without using the other run time loading flags,
15833 # -berok will link without error, but may produce a broken library.
15834 no_undefined_flag=' ${wl}-bernotok'
15835 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015836 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015837 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015838 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015839 # This is similar to how AIX traditionally builds its shared libraries.
15840 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 +000015841 fi
15842 fi
John Criswell7a73b802003-06-30 21:59:07 +000015843 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015844
15845 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015846 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 +000015847 hardcode_libdir_flag_spec='-L$libdir'
15848 hardcode_minus_L=yes
15849 # see comment about different semantics on the GNU ld section
15850 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015851 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015852
Reid Spencer2706f8c2004-09-19 23:53:36 +000015853 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015854 export_dynamic_flag_spec=-rdynamic
15855 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015856
John Criswell47fdd832003-07-14 16:52:07 +000015857 cygwin* | mingw* | pw32*)
15858 # When not using gcc, we currently assume that we are using
15859 # Microsoft Visual C++.
15860 # hardcode_libdir_flag_spec is actually meaningless, as there is
15861 # no search path for DLLs.
15862 hardcode_libdir_flag_spec=' '
15863 allow_undefined_flag=unsupported
15864 # Tell ltmain to make .lib files, not .a files.
15865 libext=lib
15866 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015867 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015868 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015869 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015870 # The linker will automatically build a .lib file if we build a DLL.
15871 old_archive_From_new_cmds='true'
15872 # FIXME: Should let the user specify the lib program.
15873 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15874 fix_srcfile_path='`cygpath -w "$srcfile"`'
15875 enable_shared_with_static_runtimes=yes
15876 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015877
John Criswell47fdd832003-07-14 16:52:07 +000015878 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015879 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015880 rhapsody* | darwin1.[012])
15881 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15882 ;;
15883 *) # Darwin 1.3 on
15884 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15885 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15886 else
15887 case ${MACOSX_DEPLOYMENT_TARGET} in
15888 10.[012])
15889 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15890 ;;
15891 10.*)
15892 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15893 ;;
15894 esac
15895 fi
15896 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015897 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015898 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015899 hardcode_direct=no
15900 hardcode_automatic=yes
15901 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015902 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015903 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015904 if test "$GCC" = yes ; then
15905 output_verbose_link_cmd='echo'
15906 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15907 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015908 # 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 +000015909 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}'
15910 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 +000015911 else
Reid Spencera773bd52006-08-04 18:18:08 +000015912 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015913 xlc*)
15914 output_verbose_link_cmd='echo'
15915 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15916 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015917 # 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 +000015918 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}'
15919 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 +000015920 ;;
15921 *)
15922 ld_shlibs=no
15923 ;;
15924 esac
John Criswell7a73b802003-06-30 21:59:07 +000015925 fi
John Criswell47fdd832003-07-14 16:52:07 +000015926 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015927
John Criswell47fdd832003-07-14 16:52:07 +000015928 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015930 hardcode_libdir_flag_spec='-L$libdir'
15931 hardcode_shlibpath_var=no
15932 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015933
John Criswell47fdd832003-07-14 16:52:07 +000015934 freebsd1*)
15935 ld_shlibs=no
15936 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015937
John Criswell47fdd832003-07-14 16:52:07 +000015938 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15939 # support. Future versions do this automatically, but an explicit c++rt0.o
15940 # does not break anything, and helps significantly (at the cost of a little
15941 # extra space).
15942 freebsd2.2*)
15943 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15944 hardcode_libdir_flag_spec='-R$libdir'
15945 hardcode_direct=yes
15946 hardcode_shlibpath_var=no
15947 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015948
John Criswell47fdd832003-07-14 16:52:07 +000015949 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15950 freebsd2*)
15951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15952 hardcode_direct=yes
15953 hardcode_minus_L=yes
15954 hardcode_shlibpath_var=no
15955 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015956
John Criswell47fdd832003-07-14 16:52:07 +000015957 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015958 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015959 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15960 hardcode_libdir_flag_spec='-R$libdir'
15961 hardcode_direct=yes
15962 hardcode_shlibpath_var=no
15963 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015964
John Criswell47fdd832003-07-14 16:52:07 +000015965 hpux9*)
15966 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015967 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 +000015968 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015969 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 +000015970 fi
15971 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15972 hardcode_libdir_separator=:
15973 hardcode_direct=yes
15974
15975 # hardcode_minus_L: Not really in the search PATH,
15976 # but as the default location of the library.
15977 hardcode_minus_L=yes
15978 export_dynamic_flag_spec='${wl}-E'
15979 ;;
15980
Reid Spencera773bd52006-08-04 18:18:08 +000015981 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015982 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015983 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15984 else
15985 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15986 fi
15987 if test "$with_gnu_ld" = no; then
15988 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15989 hardcode_libdir_separator=:
15990
15991 hardcode_direct=yes
15992 export_dynamic_flag_spec='${wl}-E'
15993
15994 # hardcode_minus_L: Not really in the search PATH,
15995 # but as the default location of the library.
15996 hardcode_minus_L=yes
15997 fi
15998 ;;
15999
16000 hpux11*)
16001 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16002 case $host_cpu in
16003 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000016004 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16005 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016006 ia64*)
16007 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16008 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016009 *)
16010 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16011 ;;
16012 esac
16013 else
Reid Spencera773bd52006-08-04 18:18:08 +000016014 case $host_cpu in
16015 hppa*64*)
16016 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16017 ;;
16018 ia64*)
16019 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000016020 ;;
16021 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016022 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 +000016023 ;;
16024 esac
16025 fi
16026 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000016027 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16028 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000016029
Reid Spencera773bd52006-08-04 18:18:08 +000016030 case $host_cpu in
16031 hppa*64*|ia64*)
16032 hardcode_libdir_flag_spec_ld='+b $libdir'
16033 hardcode_direct=no
16034 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000016035 ;;
16036 *)
John Criswell47fdd832003-07-14 16:52:07 +000016037 hardcode_direct=yes
16038 export_dynamic_flag_spec='${wl}-E'
16039
16040 # hardcode_minus_L: Not really in the search PATH,
16041 # but as the default location of the library.
16042 hardcode_minus_L=yes
16043 ;;
16044 esac
16045 fi
16046 ;;
16047
16048 irix5* | irix6* | nonstopux*)
16049 if test "$GCC" = yes; then
16050 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'
16051 else
16052 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'
16053 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16054 fi
16055 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16056 hardcode_libdir_separator=:
16057 link_all_deplibs=yes
16058 ;;
16059
16060 netbsd*)
16061 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16063 else
16064 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16065 fi
16066 hardcode_libdir_flag_spec='-R$libdir'
16067 hardcode_direct=yes
16068 hardcode_shlibpath_var=no
16069 ;;
16070
16071 newsos6)
16072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16073 hardcode_direct=yes
16074 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16075 hardcode_libdir_separator=:
16076 hardcode_shlibpath_var=no
16077 ;;
16078
16079 openbsd*)
16080 hardcode_direct=yes
16081 hardcode_shlibpath_var=no
16082 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16083 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016084 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 +000016085 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16086 export_dynamic_flag_spec='${wl}-E'
16087 else
16088 case $host_os in
16089 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16091 hardcode_libdir_flag_spec='-R$libdir'
16092 ;;
16093 *)
16094 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16095 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16096 ;;
16097 esac
16098 fi
16099 ;;
16100
16101 os2*)
16102 hardcode_libdir_flag_spec='-L$libdir'
16103 hardcode_minus_L=yes
16104 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016105 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 +000016106 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16107 ;;
16108
16109 osf3*)
16110 if test "$GCC" = yes; then
16111 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16112 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'
16113 else
16114 allow_undefined_flag=' -expect_unresolved \*'
16115 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'
16116 fi
16117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16118 hardcode_libdir_separator=:
16119 ;;
16120
16121 osf4* | osf5*) # as osf3* with the addition of -msym flag
16122 if test "$GCC" = yes; then
16123 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16124 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'
16125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16126 else
16127 allow_undefined_flag=' -expect_unresolved \*'
16128 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 +000016129 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 +000016130 $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 +000016131
John Criswell47fdd832003-07-14 16:52:07 +000016132 # Both c and cxx compiler support -rpath directly
16133 hardcode_libdir_flag_spec='-rpath $libdir'
16134 fi
16135 hardcode_libdir_separator=:
16136 ;;
16137
John Criswell47fdd832003-07-14 16:52:07 +000016138 solaris*)
16139 no_undefined_flag=' -z text'
16140 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016141 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016142 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016143 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16144 $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 +000016145 else
Reid Spencera773bd52006-08-04 18:18:08 +000016146 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016147 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016148 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16149 $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 +000016150 fi
16151 hardcode_libdir_flag_spec='-R$libdir'
16152 hardcode_shlibpath_var=no
16153 case $host_os in
16154 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016155 *)
16156 # The compiler driver will combine linker options so we
16157 # cannot just pass the convience library names through
16158 # without $wl, iff we do not link with $LD.
16159 # Luckily, gcc supports the same syntax we need for Sun Studio.
16160 # Supported since Solaris 2.6 (maybe 2.5.1?)
16161 case $wlarc in
16162 '')
16163 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16164 *)
16165 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' ;;
16166 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016167 esac
16168 link_all_deplibs=yes
16169 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016170
John Criswell47fdd832003-07-14 16:52:07 +000016171 sunos4*)
16172 if test "x$host_vendor" = xsequent; then
16173 # Use $CC to link under sequent, because it throws in some extra .o
16174 # files that make .init and .fini sections work.
16175 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16176 else
16177 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16178 fi
16179 hardcode_libdir_flag_spec='-L$libdir'
16180 hardcode_direct=yes
16181 hardcode_minus_L=yes
16182 hardcode_shlibpath_var=no
16183 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016184
John Criswell47fdd832003-07-14 16:52:07 +000016185 sysv4)
16186 case $host_vendor in
16187 sni)
16188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16189 hardcode_direct=yes # is this really true???
16190 ;;
16191 siemens)
16192 ## LD is ld it makes a PLAMLIB
16193 ## CC just makes a GrossModule.
16194 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16195 reload_cmds='$CC -r -o $output$reload_objs'
16196 hardcode_direct=no
16197 ;;
16198 motorola)
16199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16200 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16201 ;;
16202 esac
16203 runpath_var='LD_RUN_PATH'
16204 hardcode_shlibpath_var=no
16205 ;;
16206
16207 sysv4.3*)
16208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16209 hardcode_shlibpath_var=no
16210 export_dynamic_flag_spec='-Bexport'
16211 ;;
16212
16213 sysv4*MP*)
16214 if test -d /usr/nec; then
16215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16216 hardcode_shlibpath_var=no
16217 runpath_var=LD_RUN_PATH
16218 hardcode_runpath_var=yes
16219 ld_shlibs=yes
16220 fi
16221 ;;
16222
Reid Spencera773bd52006-08-04 18:18:08 +000016223 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16224 no_undefined_flag='${wl}-z,text'
16225 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016226 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016227 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016228
John Criswell47fdd832003-07-14 16:52:07 +000016229 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016230 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16231 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 +000016232 else
Reid Spencera773bd52006-08-04 18:18:08 +000016233 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16234 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 +000016235 fi
John Criswell47fdd832003-07-14 16:52:07 +000016236 ;;
16237
Reid Spencera773bd52006-08-04 18:18:08 +000016238 sysv5* | sco3.2v5* | sco5v6*)
16239 # Note: We can NOT use -z defs as we might desire, because we do not
16240 # link with -lc, and that would cause any symbols used from libc to
16241 # always be unresolved, which means just about no library would
16242 # ever link correctly. If we're not using GNU ld we use -z text
16243 # though, which does catch some bad symbols but isn't as heavy-handed
16244 # as -z defs.
16245 no_undefined_flag='${wl}-z,text'
16246 allow_undefined_flag='${wl}-z,nodefs'
16247 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016248 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016249 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16250 hardcode_libdir_separator=':'
16251 link_all_deplibs=yes
16252 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016253 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016254
16255 if test "$GCC" = yes; then
16256 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16257 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16258 else
16259 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16260 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16261 fi
John Criswell47fdd832003-07-14 16:52:07 +000016262 ;;
16263
16264 uts4*)
16265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16266 hardcode_libdir_flag_spec='-L$libdir'
16267 hardcode_shlibpath_var=no
16268 ;;
16269
16270 *)
16271 ld_shlibs=no
16272 ;;
16273 esac
16274 fi
16275
Reid Spencera773bd52006-08-04 18:18:08 +000016276{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16277echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016278test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016279
John Criswell47fdd832003-07-14 16:52:07 +000016280#
16281# Do we need to explicitly link libc?
16282#
16283case "x$archive_cmds_need_lc" in
16284x|xyes)
16285 # Assume -lc should be added
16286 archive_cmds_need_lc=yes
16287
16288 if test "$enable_shared" = yes && test "$GCC" = yes; then
16289 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016290 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016291 # FIXME: we may have to deal with multi-command sequences.
16292 ;;
16293 '$CC '*)
16294 # Test whether the compiler implicitly links with -lc since on some
16295 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16296 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016297 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16298echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016299 $rm conftest*
16300 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16301
16302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16303 (eval $ac_compile) 2>&5
16304 ac_status=$?
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } 2>conftest.err; then
16307 soname=conftest
16308 lib=conftest
16309 libobjs=conftest.$ac_objext
16310 deplibs=
16311 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016312 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016313 compiler_flags=-v
16314 linker_flags=-v
16315 verstring=
16316 output_objdir=.
16317 libname=conftest
16318 lt_save_allow_undefined_flag=$allow_undefined_flag
16319 allow_undefined_flag=
16320 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16321 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16322 ac_status=$?
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }
16325 then
16326 archive_cmds_need_lc=no
16327 else
16328 archive_cmds_need_lc=yes
16329 fi
16330 allow_undefined_flag=$lt_save_allow_undefined_flag
16331 else
16332 cat conftest.err 1>&5
16333 fi
16334 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016335 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16336echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016337 ;;
16338 esac
16339 fi
16340 ;;
16341esac
16342
Reid Spencera773bd52006-08-04 18:18:08 +000016343{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16344echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016345library_names_spec=
16346libname_spec='lib$name'
16347soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016348shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016349postinstall_cmds=
16350postuninstall_cmds=
16351finish_cmds=
16352finish_eval=
16353shlibpath_var=
16354shlibpath_overrides_runpath=unknown
16355version_type=none
16356dynamic_linker="$host_os ld.so"
16357sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016358if test "$GCC" = yes; then
16359 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16360 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16361 # if the path contains ";" then we assume it to be the separator
16362 # otherwise default to the standard path separator (i.e. ":") - it is
16363 # assumed that no part of a normal pathname contains ";" but that should
16364 # okay in the real world where ";" in dirpaths is itself problematic.
16365 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16366 else
16367 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16368 fi
16369else
16370 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16371fi
16372need_lib_prefix=unknown
16373hardcode_into_libs=no
16374
16375# when you set need_version to no, make sure it does not cause -set_version
16376# flags to be left without arguments
16377need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016378
16379case $host_os in
16380aix3*)
16381 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016382 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016383 shlibpath_var=LIBPATH
16384
John Criswell47fdd832003-07-14 16:52:07 +000016385 # AIX 3 has no versioning support, so we append a major version to the name.
16386 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016387 ;;
16388
16389aix4* | aix5*)
16390 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016391 need_lib_prefix=no
16392 need_version=no
16393 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016394 if test "$host_cpu" = ia64; then
16395 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016396 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016397 shlibpath_var=LD_LIBRARY_PATH
16398 else
16399 # With GCC up to 2.95.x, collect2 would create an import file
16400 # for dependence libraries. The import file would start with
16401 # the line `#! .'. This would cause the generated library to
16402 # depend on `.', always an invalid library. This was fixed in
16403 # development snapshots of GCC prior to 3.0.
16404 case $host_os in
16405 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016406 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16407 echo ' yes '
16408 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16409 :
16410 else
16411 can_build_shared=no
16412 fi
16413 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016414 esac
John Criswell47fdd832003-07-14 16:52:07 +000016415 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16416 # soname into executable. Probably we can add versioning support to
16417 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016418 if test "$aix_use_runtimelinking" = yes; then
16419 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16420 # instead of lib<name>.a to let people know that these are not
16421 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016423 else
16424 # We preserve .a as extension for shared libraries through AIX4.2
16425 # and later when we are not doing run time linking.
16426 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016427 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016428 fi
16429 shlibpath_var=LIBPATH
16430 fi
16431 ;;
16432
16433amigaos*)
16434 library_names_spec='$libname.ixlibrary $libname.a'
16435 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016436 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 +000016437 ;;
16438
16439beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016440 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016441 dynamic_linker="$host_os ld.so"
16442 shlibpath_var=LIBRARY_PATH
16443 ;;
16444
Reid Spencer2706f8c2004-09-19 23:53:36 +000016445bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016446 version_type=linux
16447 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016450 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16451 shlibpath_var=LD_LIBRARY_PATH
16452 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16453 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016454 # the default ld.so.conf also contains /usr/contrib/lib and
16455 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16456 # libtool to hard-code these into programs
16457 ;;
16458
16459cygwin* | mingw* | pw32*)
16460 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016461 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016462 need_version=no
16463 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016464
John Criswell7a73b802003-06-30 21:59:07 +000016465 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016466 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016467 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016468 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016469 postinstall_cmds='base_file=`basename \${file}`~
16470 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16471 dldir=$destdir/`dirname \$dlpath`~
16472 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016473 $install_prog $dir/$dlname \$dldir/$dlname~
16474 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016475 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16476 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016477 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016478 shlibpath_overrides_runpath=yes
16479
16480 case $host_os in
16481 cygwin*)
16482 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16483 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 +000016484 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016485 ;;
16486 mingw*)
16487 # MinGW DLLs use traditional 'lib' prefix
16488 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16489 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16490 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16491 # It is most probably a Windows format PATH printed by
16492 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16493 # path with ; separators, and with drive letters. We can handle the
16494 # drive letters (cygwin fileutils understands them), so leave them,
16495 # especially as we might pass files found there to a mingw objdump,
16496 # which wouldn't understand a cygwinified path. Ahh.
16497 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16498 else
16499 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16500 fi
16501 ;;
16502 pw32*)
16503 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016504 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 +000016505 ;;
16506 esac
John Criswell7a73b802003-06-30 21:59:07 +000016507 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016508
John Criswell7a73b802003-06-30 21:59:07 +000016509 *)
John Criswell47fdd832003-07-14 16:52:07 +000016510 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016511 ;;
16512 esac
16513 dynamic_linker='Win32 ld.exe'
16514 # FIXME: first we should search . and the directory the executable is in
16515 shlibpath_var=PATH
16516 ;;
16517
16518darwin* | rhapsody*)
16519 dynamic_linker="$host_os dyld"
16520 version_type=darwin
16521 need_lib_prefix=no
16522 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016523 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016524 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016525 shlibpath_overrides_runpath=yes
16526 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016527 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016528 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016529 if test "$GCC" = yes; then
16530 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"`
16531 else
16532 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016533 fi
16534 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16535 ;;
16536
16537dgux*)
16538 version_type=linux
16539 need_lib_prefix=no
16540 need_version=no
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16542 soname_spec='${libname}${release}${shared_ext}$major'
16543 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016544 ;;
16545
16546freebsd1*)
16547 dynamic_linker=no
16548 ;;
16549
Reid Spencer2706f8c2004-09-19 23:53:36 +000016550kfreebsd*-gnu)
16551 version_type=linux
16552 need_lib_prefix=no
16553 need_version=no
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 shlibpath_var=LD_LIBRARY_PATH
16557 shlibpath_overrides_runpath=no
16558 hardcode_into_libs=yes
16559 dynamic_linker='GNU ld.so'
16560 ;;
16561
Reid Spencera773bd52006-08-04 18:18:08 +000016562freebsd* | dragonfly*)
16563 # DragonFly does not have aout. When/if they implement a new
16564 # versioning mechanism, adjust this.
16565 if test -x /usr/bin/objformat; then
16566 objformat=`/usr/bin/objformat`
16567 else
16568 case $host_os in
16569 freebsd[123]*) objformat=aout ;;
16570 *) objformat=elf ;;
16571 esac
16572 fi
John Criswell7a73b802003-06-30 21:59:07 +000016573 version_type=freebsd-$objformat
16574 case $version_type in
16575 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016577 need_version=no
16578 need_lib_prefix=no
16579 ;;
16580 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016581 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016582 need_version=yes
16583 ;;
16584 esac
16585 shlibpath_var=LD_LIBRARY_PATH
16586 case $host_os in
16587 freebsd2*)
16588 shlibpath_overrides_runpath=yes
16589 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016590 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016591 shlibpath_overrides_runpath=yes
16592 hardcode_into_libs=yes
16593 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016594 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16595 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016596 shlibpath_overrides_runpath=no
16597 hardcode_into_libs=yes
16598 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016599 freebsd*) # from 4.6 on
16600 shlibpath_overrides_runpath=yes
16601 hardcode_into_libs=yes
16602 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016603 esac
16604 ;;
16605
16606gnu*)
16607 version_type=linux
16608 need_lib_prefix=no
16609 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16611 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016612 shlibpath_var=LD_LIBRARY_PATH
16613 hardcode_into_libs=yes
16614 ;;
16615
16616hpux9* | hpux10* | hpux11*)
16617 # Give a soname corresponding to the major version so that dld.sl refuses to
16618 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016619 version_type=sunos
16620 need_lib_prefix=no
16621 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016622 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016623 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016624 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016625 hardcode_into_libs=yes
16626 dynamic_linker="$host_os dld.so"
16627 shlibpath_var=LD_LIBRARY_PATH
16628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16630 soname_spec='${libname}${release}${shared_ext}$major'
16631 if test "X$HPUX_IA64_MODE" = X32; then
16632 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16633 else
16634 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16635 fi
16636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16637 ;;
16638 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016639 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016640 hardcode_into_libs=yes
16641 dynamic_linker="$host_os dld.sl"
16642 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16643 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16645 soname_spec='${libname}${release}${shared_ext}$major'
16646 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16648 ;;
16649 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016650 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016651 dynamic_linker="$host_os dld.sl"
16652 shlibpath_var=SHLIB_PATH
16653 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16655 soname_spec='${libname}${release}${shared_ext}$major'
16656 ;;
16657 esac
John Criswell7a73b802003-06-30 21:59:07 +000016658 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16659 postinstall_cmds='chmod 555 $lib'
16660 ;;
16661
Reid Spencera773bd52006-08-04 18:18:08 +000016662interix3*)
16663 version_type=linux
16664 need_lib_prefix=no
16665 need_version=no
16666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16667 soname_spec='${libname}${release}${shared_ext}$major'
16668 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16669 shlibpath_var=LD_LIBRARY_PATH
16670 shlibpath_overrides_runpath=no
16671 hardcode_into_libs=yes
16672 ;;
16673
John Criswell47fdd832003-07-14 16:52:07 +000016674irix5* | irix6* | nonstopux*)
16675 case $host_os in
16676 nonstopux*) version_type=nonstopux ;;
16677 *)
16678 if test "$lt_cv_prog_gnu_ld" = yes; then
16679 version_type=linux
16680 else
16681 version_type=irix
16682 fi ;;
16683 esac
John Criswell7a73b802003-06-30 21:59:07 +000016684 need_lib_prefix=no
16685 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016686 soname_spec='${libname}${release}${shared_ext}$major'
16687 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 +000016688 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016689 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016690 libsuff= shlibsuff=
16691 ;;
16692 *)
16693 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016694 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16695 libsuff= shlibsuff= libmagic=32-bit;;
16696 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16697 libsuff=32 shlibsuff=N32 libmagic=N32;;
16698 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16699 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016700 *) libsuff= shlibsuff= libmagic=never-match;;
16701 esac
16702 ;;
16703 esac
16704 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16705 shlibpath_overrides_runpath=no
16706 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16707 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016708 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016709 ;;
16710
16711# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016712linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016713 dynamic_linker=no
16714 ;;
16715
16716# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016717linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016718 version_type=linux
16719 need_lib_prefix=no
16720 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16722 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16724 shlibpath_var=LD_LIBRARY_PATH
16725 shlibpath_overrides_runpath=no
16726 # This implies no fast_install, which is unacceptable.
16727 # Some rework will be needed to allow for fast_install
16728 # before this can be enabled.
16729 hardcode_into_libs=yes
16730
Reid Spencer2706f8c2004-09-19 23:53:36 +000016731 # Append ld.so.conf contents to the search path
16732 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016733 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 +000016734 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16735 fi
16736
John Criswell7a73b802003-06-30 21:59:07 +000016737 # We used to test for /lib/ld.so.1 and disable shared libraries on
16738 # powerpc, because MkLinux only supported shared libraries with the
16739 # GNU dynamic linker. Since this was broken with cross compilers,
16740 # most powerpc-linux boxes support dynamic linking these days and
16741 # people can always --disable-shared, the test was removed, and we
16742 # assume the GNU/Linux dynamic linker is in use.
16743 dynamic_linker='GNU/Linux ld.so'
16744 ;;
16745
Reid Spencer2706f8c2004-09-19 23:53:36 +000016746knetbsd*-gnu)
16747 version_type=linux
16748 need_lib_prefix=no
16749 need_version=no
16750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16751 soname_spec='${libname}${release}${shared_ext}$major'
16752 shlibpath_var=LD_LIBRARY_PATH
16753 shlibpath_overrides_runpath=no
16754 hardcode_into_libs=yes
16755 dynamic_linker='GNU ld.so'
16756 ;;
16757
John Criswell7a73b802003-06-30 21:59:07 +000016758netbsd*)
16759 version_type=sunos
16760 need_lib_prefix=no
16761 need_version=no
16762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16765 dynamic_linker='NetBSD (a.out) ld.so'
16766 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016768 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016769 dynamic_linker='NetBSD ld.elf_so'
16770 fi
16771 shlibpath_var=LD_LIBRARY_PATH
16772 shlibpath_overrides_runpath=yes
16773 hardcode_into_libs=yes
16774 ;;
16775
16776newsos6)
16777 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16779 shlibpath_var=LD_LIBRARY_PATH
16780 shlibpath_overrides_runpath=yes
16781 ;;
16782
Reid Spencer2706f8c2004-09-19 23:53:36 +000016783nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016784 version_type=linux
16785 need_lib_prefix=no
16786 need_version=no
16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016789 shlibpath_var=LD_LIBRARY_PATH
16790 shlibpath_overrides_runpath=yes
16791 ;;
16792
16793openbsd*)
16794 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016795 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016796 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016797 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16798 case $host_os in
16799 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16800 *) need_version=no ;;
16801 esac
John Criswell47fdd832003-07-14 16:52:07 +000016802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16804 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016805 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 +000016806 case $host_os in
16807 openbsd2.[89] | openbsd2.[89].*)
16808 shlibpath_overrides_runpath=no
16809 ;;
16810 *)
16811 shlibpath_overrides_runpath=yes
16812 ;;
16813 esac
John Criswell7a73b802003-06-30 21:59:07 +000016814 else
16815 shlibpath_overrides_runpath=yes
16816 fi
John Criswell7a73b802003-06-30 21:59:07 +000016817 ;;
16818
16819os2*)
16820 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016821 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016822 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016823 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016824 dynamic_linker='OS/2 ld.exe'
16825 shlibpath_var=LIBPATH
16826 ;;
16827
16828osf3* | osf4* | osf5*)
16829 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016830 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016831 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016832 soname_spec='${libname}${release}${shared_ext}$major'
16833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016834 shlibpath_var=LD_LIBRARY_PATH
16835 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16836 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16837 ;;
16838
John Criswell7a73b802003-06-30 21:59:07 +000016839solaris*)
16840 version_type=linux
16841 need_lib_prefix=no
16842 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016845 shlibpath_var=LD_LIBRARY_PATH
16846 shlibpath_overrides_runpath=yes
16847 hardcode_into_libs=yes
16848 # ldd complains unless libraries are executable
16849 postinstall_cmds='chmod +x $lib'
16850 ;;
16851
16852sunos4*)
16853 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016855 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16856 shlibpath_var=LD_LIBRARY_PATH
16857 shlibpath_overrides_runpath=yes
16858 if test "$with_gnu_ld" = yes; then
16859 need_lib_prefix=no
16860 fi
16861 need_version=yes
16862 ;;
16863
Reid Spencera773bd52006-08-04 18:18:08 +000016864sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016865 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16867 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016868 shlibpath_var=LD_LIBRARY_PATH
16869 case $host_vendor in
16870 sni)
16871 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016872 need_lib_prefix=no
16873 export_dynamic_flag_spec='${wl}-Blargedynsym'
16874 runpath_var=LD_RUN_PATH
16875 ;;
16876 siemens)
16877 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016878 ;;
16879 motorola)
16880 need_lib_prefix=no
16881 need_version=no
16882 shlibpath_overrides_runpath=no
16883 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16884 ;;
16885 esac
16886 ;;
16887
John Criswell7a73b802003-06-30 21:59:07 +000016888sysv4*MP*)
16889 if test -d /usr/nec ;then
16890 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016891 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16892 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016893 shlibpath_var=LD_LIBRARY_PATH
16894 fi
16895 ;;
16896
Reid Spencera773bd52006-08-04 18:18:08 +000016897sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16898 version_type=freebsd-elf
16899 need_lib_prefix=no
16900 need_version=no
16901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16902 soname_spec='${libname}${release}${shared_ext}$major'
16903 shlibpath_var=LD_LIBRARY_PATH
16904 hardcode_into_libs=yes
16905 if test "$with_gnu_ld" = yes; then
16906 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16907 shlibpath_overrides_runpath=no
16908 else
16909 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16910 shlibpath_overrides_runpath=yes
16911 case $host_os in
16912 sco3.2v5*)
16913 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16914 ;;
16915 esac
16916 fi
16917 sys_lib_dlsearch_path_spec='/usr/lib'
16918 ;;
16919
John Criswell47fdd832003-07-14 16:52:07 +000016920uts4*)
16921 version_type=linux
16922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16923 soname_spec='${libname}${release}${shared_ext}$major'
16924 shlibpath_var=LD_LIBRARY_PATH
16925 ;;
16926
John Criswell7a73b802003-06-30 21:59:07 +000016927*)
16928 dynamic_linker=no
16929 ;;
16930esac
Reid Spencera773bd52006-08-04 18:18:08 +000016931{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16932echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016933test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016934
Reid Spencera773bd52006-08-04 18:18:08 +000016935variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16936if test "$GCC" = yes; then
16937 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16938fi
16939
16940{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16941echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016942hardcode_action=
16943if test -n "$hardcode_libdir_flag_spec" || \
16944 test -n "$runpath_var" || \
16945 test "X$hardcode_automatic" = "Xyes" ; then
16946
16947 # We can hardcode non-existant directories.
16948 if test "$hardcode_direct" != no &&
16949 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16950 # have to relink, otherwise we might link with an installed library
16951 # when we should be linking with a yet-to-be-installed one
16952 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16953 test "$hardcode_minus_L" != no; then
16954 # Linking always hardcodes the temporary library directory.
16955 hardcode_action=relink
16956 else
16957 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16958 hardcode_action=immediate
16959 fi
16960else
16961 # We cannot hardcode anything, or else we can only hardcode existing
16962 # directories.
16963 hardcode_action=unsupported
16964fi
Reid Spencera773bd52006-08-04 18:18:08 +000016965{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16966echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016967
16968if test "$hardcode_action" = relink; then
16969 # Fast installation is not supported
16970 enable_fast_install=no
16971elif test "$shlibpath_overrides_runpath" = yes ||
16972 test "$enable_shared" = no; then
16973 # Fast installation is not necessary
16974 enable_fast_install=needless
16975fi
16976
16977striplib=
16978old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016979{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16980echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016981if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16982 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16983 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016984 { echo "$as_me:$LINENO: result: yes" >&5
16985echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016986else
16987# FIXME - insert some real tests, host_os isn't really good enough
16988 case $host_os in
16989 darwin*)
16990 if test -n "$STRIP" ; then
16991 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016992 { echo "$as_me:$LINENO: result: yes" >&5
16993echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016994 else
Reid Spencera773bd52006-08-04 18:18:08 +000016995 { echo "$as_me:$LINENO: result: no" >&5
16996echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016997fi
16998 ;;
16999 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017000 { echo "$as_me:$LINENO: result: no" >&5
17001echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017002 ;;
17003 esac
17004fi
17005
John Criswell7a73b802003-06-30 21:59:07 +000017006if test "x$enable_dlopen" != xyes; then
17007 enable_dlopen=unknown
17008 enable_dlopen_self=unknown
17009 enable_dlopen_self_static=unknown
17010else
17011 lt_cv_dlopen=no
17012 lt_cv_dlopen_libs=
17013
17014 case $host_os in
17015 beos*)
17016 lt_cv_dlopen="load_add_on"
17017 lt_cv_dlopen_libs=
17018 lt_cv_dlopen_self=yes
17019 ;;
17020
John Criswell47fdd832003-07-14 16:52:07 +000017021 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000017022 lt_cv_dlopen="LoadLibrary"
17023 lt_cv_dlopen_libs=
17024 ;;
17025
John Criswell47fdd832003-07-14 16:52:07 +000017026 cygwin*)
17027 lt_cv_dlopen="dlopen"
17028 lt_cv_dlopen_libs=
17029 ;;
17030
17031 darwin*)
17032 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000017033 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17034echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017035if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17036 echo $ECHO_N "(cached) $ECHO_C" >&6
17037else
17038 ac_check_lib_save_LIBS=$LIBS
17039LIBS="-ldl $LIBS"
17040cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017041/* confdefs.h. */
17042_ACEOF
17043cat confdefs.h >>conftest.$ac_ext
17044cat >>conftest.$ac_ext <<_ACEOF
17045/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017046
Reid Spencera773bd52006-08-04 18:18:08 +000017047/* Override any GCC internal prototype to avoid an error.
17048 Use char because int might match the return type of a GCC
17049 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000017050#ifdef __cplusplus
17051extern "C"
17052#endif
John Criswell47fdd832003-07-14 16:52:07 +000017053char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017054int
17055main ()
17056{
Reid Spencera773bd52006-08-04 18:18:08 +000017057return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017058 ;
17059 return 0;
17060}
17061_ACEOF
17062rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017063if { (ac_try="$ac_link"
17064case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17067esac
17068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017070 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017071 grep -v '^ *+' conftest.er1 >conftest.err
17072 rm -f conftest.er1
17073 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017075 (exit $ac_status); } &&
17076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17077 { (case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17080esac
17081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082 (eval "$ac_try") 2>&5
17083 ac_status=$?
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; } &&
17086 { ac_try='test -s conftest$ac_exeext'
17087 { (case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17090esac
17091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_try") 2>&5
17093 ac_status=$?
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000017096 ac_cv_lib_dl_dlopen=yes
17097else
17098 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017099sed 's/^/| /' conftest.$ac_ext >&5
17100
Reid Spencera773bd52006-08-04 18:18:08 +000017101 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000017102fi
Reid Spencera773bd52006-08-04 18:18:08 +000017103
Bill Wendlingebcceee2009-04-18 11:20:33 +000017104rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017105 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017106LIBS=$ac_check_lib_save_LIBS
17107fi
Reid Spencera773bd52006-08-04 18:18:08 +000017108{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17109echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017110if test $ac_cv_lib_dl_dlopen = yes; then
17111 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17112else
17113
17114 lt_cv_dlopen="dyld"
17115 lt_cv_dlopen_libs=
17116 lt_cv_dlopen_self=yes
17117
17118fi
17119
17120 ;;
17121
John Criswell7a73b802003-06-30 21:59:07 +000017122 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017123 { echo "$as_me:$LINENO: checking for shl_load" >&5
17124echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017125if test "${ac_cv_func_shl_load+set}" = set; then
17126 echo $ECHO_N "(cached) $ECHO_C" >&6
17127else
17128 cat >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. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017134/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17136#define shl_load innocuous_shl_load
17137
John Criswell7a73b802003-06-30 21:59:07 +000017138/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017139 which can conflict with char shl_load (); below.
17140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17141 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017142
John Criswell0c38eaf2003-09-10 15:17:25 +000017143#ifdef __STDC__
17144# include <limits.h>
17145#else
17146# include <assert.h>
17147#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017148
17149#undef shl_load
17150
Reid Spencera773bd52006-08-04 18:18:08 +000017151/* Override any GCC internal prototype to avoid an error.
17152 Use char because int might match the return type of a GCC
17153 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017154#ifdef __cplusplus
17155extern "C"
17156#endif
John Criswell7a73b802003-06-30 21:59:07 +000017157char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017158/* The GNU C library defines this for functions which it implements
17159 to always fail with ENOSYS. Some functions are actually named
17160 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017161#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017162choke me
John Criswell7a73b802003-06-30 21:59:07 +000017163#endif
17164
John Criswell0c38eaf2003-09-10 15:17:25 +000017165int
17166main ()
17167{
Reid Spencera773bd52006-08-04 18:18:08 +000017168return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017169 ;
17170 return 0;
17171}
17172_ACEOF
17173rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017174if { (ac_try="$ac_link"
17175case "(($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_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017181 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017182 grep -v '^ *+' conftest.er1 >conftest.err
17183 rm -f conftest.er1
17184 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017186 (exit $ac_status); } &&
17187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17188 { (case "(($ac_try" in
17189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190 *) ac_try_echo=$ac_try;;
17191esac
17192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193 (eval "$ac_try") 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; } &&
17197 { ac_try='test -s conftest$ac_exeext'
17198 { (case "(($ac_try" in
17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200 *) ac_try_echo=$ac_try;;
17201esac
17202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203 (eval "$ac_try") 2>&5
17204 ac_status=$?
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017207 ac_cv_func_shl_load=yes
17208else
17209 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017210sed 's/^/| /' conftest.$ac_ext >&5
17211
Reid Spencera773bd52006-08-04 18:18:08 +000017212 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017213fi
Reid Spencera773bd52006-08-04 18:18:08 +000017214
Bill Wendlingebcceee2009-04-18 11:20:33 +000017215rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017216 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017217fi
Reid Spencera773bd52006-08-04 18:18:08 +000017218{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17219echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017220if test $ac_cv_func_shl_load = yes; then
17221 lt_cv_dlopen="shl_load"
17222else
Reid Spencera773bd52006-08-04 18:18:08 +000017223 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17224echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017225if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17227else
17228 ac_check_lib_save_LIBS=$LIBS
17229LIBS="-ldld $LIBS"
17230cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017231/* confdefs.h. */
17232_ACEOF
17233cat confdefs.h >>conftest.$ac_ext
17234cat >>conftest.$ac_ext <<_ACEOF
17235/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017236
Reid Spencera773bd52006-08-04 18:18:08 +000017237/* Override any GCC internal prototype to avoid an error.
17238 Use char because int might match the return type of a GCC
17239 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017240#ifdef __cplusplus
17241extern "C"
17242#endif
John Criswell7a73b802003-06-30 21:59:07 +000017243char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017244int
17245main ()
17246{
Reid Spencera773bd52006-08-04 18:18:08 +000017247return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017248 ;
17249 return 0;
17250}
17251_ACEOF
17252rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017253if { (ac_try="$ac_link"
17254case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17257esac
17258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017260 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017261 grep -v '^ *+' conftest.er1 >conftest.err
17262 rm -f conftest.er1
17263 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017265 (exit $ac_status); } &&
17266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17267 { (case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17270esac
17271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_try") 2>&5
17273 ac_status=$?
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; } &&
17276 { ac_try='test -s conftest$ac_exeext'
17277 { (case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17280esac
17281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282 (eval "$ac_try") 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017286 ac_cv_lib_dld_shl_load=yes
17287else
17288 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017289sed 's/^/| /' conftest.$ac_ext >&5
17290
Reid Spencera773bd52006-08-04 18:18:08 +000017291 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017292fi
Reid Spencera773bd52006-08-04 18:18:08 +000017293
Bill Wendlingebcceee2009-04-18 11:20:33 +000017294rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017295 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017296LIBS=$ac_check_lib_save_LIBS
17297fi
Reid Spencera773bd52006-08-04 18:18:08 +000017298{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17299echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017300if test $ac_cv_lib_dld_shl_load = yes; then
17301 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17302else
Reid Spencera773bd52006-08-04 18:18:08 +000017303 { echo "$as_me:$LINENO: checking for dlopen" >&5
17304echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017305if test "${ac_cv_func_dlopen+set}" = set; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
17307else
17308 cat >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. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017314/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17316#define dlopen innocuous_dlopen
17317
John Criswell7a73b802003-06-30 21:59:07 +000017318/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017319 which can conflict with char dlopen (); below.
17320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17321 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017322
John Criswell0c38eaf2003-09-10 15:17:25 +000017323#ifdef __STDC__
17324# include <limits.h>
17325#else
17326# include <assert.h>
17327#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017328
17329#undef dlopen
17330
Reid Spencera773bd52006-08-04 18:18:08 +000017331/* Override any GCC internal prototype to avoid an error.
17332 Use char because int might match the return type of a GCC
17333 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017334#ifdef __cplusplus
17335extern "C"
17336#endif
John Criswell7a73b802003-06-30 21:59:07 +000017337char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017338/* The GNU C library defines this for functions which it implements
17339 to always fail with ENOSYS. Some functions are actually named
17340 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017341#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017342choke me
John Criswell7a73b802003-06-30 21:59:07 +000017343#endif
17344
John Criswell0c38eaf2003-09-10 15:17:25 +000017345int
17346main ()
17347{
Reid Spencera773bd52006-08-04 18:18:08 +000017348return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017349 ;
17350 return 0;
17351}
17352_ACEOF
17353rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017354if { (ac_try="$ac_link"
17355case "(($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_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017361 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017362 grep -v '^ *+' conftest.er1 >conftest.err
17363 rm -f conftest.er1
17364 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017366 (exit $ac_status); } &&
17367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17368 { (case "(($ac_try" in
17369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370 *) ac_try_echo=$ac_try;;
17371esac
17372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373 (eval "$ac_try") 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; } &&
17377 { ac_try='test -s conftest$ac_exeext'
17378 { (case "(($ac_try" in
17379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380 *) ac_try_echo=$ac_try;;
17381esac
17382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17383 (eval "$ac_try") 2>&5
17384 ac_status=$?
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017387 ac_cv_func_dlopen=yes
17388else
17389 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017390sed 's/^/| /' conftest.$ac_ext >&5
17391
Reid Spencera773bd52006-08-04 18:18:08 +000017392 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017393fi
Reid Spencera773bd52006-08-04 18:18:08 +000017394
Bill Wendlingebcceee2009-04-18 11:20:33 +000017395rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017396 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017397fi
Reid Spencera773bd52006-08-04 18:18:08 +000017398{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17399echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017400if test $ac_cv_func_dlopen = yes; then
17401 lt_cv_dlopen="dlopen"
17402else
Reid Spencera773bd52006-08-04 18:18:08 +000017403 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17404echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017405if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17406 echo $ECHO_N "(cached) $ECHO_C" >&6
17407else
17408 ac_check_lib_save_LIBS=$LIBS
17409LIBS="-ldl $LIBS"
17410cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017411/* confdefs.h. */
17412_ACEOF
17413cat confdefs.h >>conftest.$ac_ext
17414cat >>conftest.$ac_ext <<_ACEOF
17415/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017416
Reid Spencera773bd52006-08-04 18:18:08 +000017417/* Override any GCC internal prototype to avoid an error.
17418 Use char because int might match the return type of a GCC
17419 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017420#ifdef __cplusplus
17421extern "C"
17422#endif
John Criswell7a73b802003-06-30 21:59:07 +000017423char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017424int
17425main ()
17426{
Reid Spencera773bd52006-08-04 18:18:08 +000017427return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017428 ;
17429 return 0;
17430}
17431_ACEOF
17432rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017433if { (ac_try="$ac_link"
17434case "(($ac_try" in
17435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436 *) ac_try_echo=$ac_try;;
17437esac
17438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017440 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017441 grep -v '^ *+' conftest.er1 >conftest.err
17442 rm -f conftest.er1
17443 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017445 (exit $ac_status); } &&
17446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17447 { (case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17450esac
17451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_try") 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; } &&
17456 { ac_try='test -s conftest$ac_exeext'
17457 { (case "(($ac_try" in
17458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459 *) ac_try_echo=$ac_try;;
17460esac
17461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462 (eval "$ac_try") 2>&5
17463 ac_status=$?
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017466 ac_cv_lib_dl_dlopen=yes
17467else
17468 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017469sed 's/^/| /' conftest.$ac_ext >&5
17470
Reid Spencera773bd52006-08-04 18:18:08 +000017471 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017472fi
Reid Spencera773bd52006-08-04 18:18:08 +000017473
Bill Wendlingebcceee2009-04-18 11:20:33 +000017474rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017475 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017476LIBS=$ac_check_lib_save_LIBS
17477fi
Reid Spencera773bd52006-08-04 18:18:08 +000017478{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17479echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017480if test $ac_cv_lib_dl_dlopen = yes; then
17481 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17482else
Reid Spencera773bd52006-08-04 18:18:08 +000017483 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17484echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017485if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17486 echo $ECHO_N "(cached) $ECHO_C" >&6
17487else
17488 ac_check_lib_save_LIBS=$LIBS
17489LIBS="-lsvld $LIBS"
17490cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017491/* confdefs.h. */
17492_ACEOF
17493cat confdefs.h >>conftest.$ac_ext
17494cat >>conftest.$ac_ext <<_ACEOF
17495/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017496
Reid Spencera773bd52006-08-04 18:18:08 +000017497/* Override any GCC internal prototype to avoid an error.
17498 Use char because int might match the return type of a GCC
17499 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017500#ifdef __cplusplus
17501extern "C"
17502#endif
John Criswell7a73b802003-06-30 21:59:07 +000017503char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017504int
17505main ()
17506{
Reid Spencera773bd52006-08-04 18:18:08 +000017507return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017508 ;
17509 return 0;
17510}
17511_ACEOF
17512rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017513if { (ac_try="$ac_link"
17514case "(($ac_try" in
17515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17516 *) ac_try_echo=$ac_try;;
17517esac
17518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017520 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017521 grep -v '^ *+' conftest.er1 >conftest.err
17522 rm -f conftest.er1
17523 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017525 (exit $ac_status); } &&
17526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17527 { (case "(($ac_try" in
17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529 *) ac_try_echo=$ac_try;;
17530esac
17531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532 (eval "$ac_try") 2>&5
17533 ac_status=$?
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; } &&
17536 { ac_try='test -s conftest$ac_exeext'
17537 { (case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17540esac
17541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_try") 2>&5
17543 ac_status=$?
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017546 ac_cv_lib_svld_dlopen=yes
17547else
17548 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017549sed 's/^/| /' conftest.$ac_ext >&5
17550
Reid Spencera773bd52006-08-04 18:18:08 +000017551 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017552fi
Reid Spencera773bd52006-08-04 18:18:08 +000017553
Bill Wendlingebcceee2009-04-18 11:20:33 +000017554rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017555 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017556LIBS=$ac_check_lib_save_LIBS
17557fi
Reid Spencera773bd52006-08-04 18:18:08 +000017558{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17559echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017560if test $ac_cv_lib_svld_dlopen = yes; then
17561 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17562else
Reid Spencera773bd52006-08-04 18:18:08 +000017563 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17564echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017565if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17567else
17568 ac_check_lib_save_LIBS=$LIBS
17569LIBS="-ldld $LIBS"
17570cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017571/* confdefs.h. */
17572_ACEOF
17573cat confdefs.h >>conftest.$ac_ext
17574cat >>conftest.$ac_ext <<_ACEOF
17575/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017576
Reid Spencera773bd52006-08-04 18:18:08 +000017577/* Override any GCC internal prototype to avoid an error.
17578 Use char because int might match the return type of a GCC
17579 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017580#ifdef __cplusplus
17581extern "C"
17582#endif
John Criswell7a73b802003-06-30 21:59:07 +000017583char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017584int
17585main ()
17586{
Reid Spencera773bd52006-08-04 18:18:08 +000017587return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017588 ;
17589 return 0;
17590}
17591_ACEOF
17592rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017593if { (ac_try="$ac_link"
17594case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17597esac
17598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017600 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017601 grep -v '^ *+' conftest.er1 >conftest.err
17602 rm -f conftest.er1
17603 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017605 (exit $ac_status); } &&
17606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17607 { (case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17610esac
17611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612 (eval "$ac_try") 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try='test -s conftest$ac_exeext'
17617 { (case "(($ac_try" in
17618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619 *) ac_try_echo=$ac_try;;
17620esac
17621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622 (eval "$ac_try") 2>&5
17623 ac_status=$?
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017626 ac_cv_lib_dld_dld_link=yes
17627else
17628 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017629sed 's/^/| /' conftest.$ac_ext >&5
17630
Reid Spencera773bd52006-08-04 18:18:08 +000017631 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017632fi
Reid Spencera773bd52006-08-04 18:18:08 +000017633
Bill Wendlingebcceee2009-04-18 11:20:33 +000017634rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017635 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017636LIBS=$ac_check_lib_save_LIBS
17637fi
Reid Spencera773bd52006-08-04 18:18:08 +000017638{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17639echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017640if test $ac_cv_lib_dld_dld_link = yes; then
17641 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17642fi
17643
17644
17645fi
17646
17647
17648fi
17649
17650
17651fi
17652
17653
17654fi
17655
17656
17657fi
17658
17659 ;;
17660 esac
17661
17662 if test "x$lt_cv_dlopen" != xno; then
17663 enable_dlopen=yes
17664 else
17665 enable_dlopen=no
17666 fi
17667
17668 case $lt_cv_dlopen in
17669 dlopen)
17670 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017671 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017672
17673 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017674 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017675
17676 save_LIBS="$LIBS"
17677 LIBS="$lt_cv_dlopen_libs $LIBS"
17678
Reid Spencera773bd52006-08-04 18:18:08 +000017679 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17680echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017681if test "${lt_cv_dlopen_self+set}" = set; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17683else
17684 if test "$cross_compiling" = yes; then :
17685 lt_cv_dlopen_self=cross
17686else
John Criswell47fdd832003-07-14 16:52:07 +000017687 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017688 lt_status=$lt_dlunknown
17689 cat > conftest.$ac_ext <<EOF
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000017690#line 17690 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017691#include "confdefs.h"
17692
17693#if HAVE_DLFCN_H
17694#include <dlfcn.h>
17695#endif
17696
17697#include <stdio.h>
17698
17699#ifdef RTLD_GLOBAL
17700# define LT_DLGLOBAL RTLD_GLOBAL
17701#else
17702# ifdef DL_GLOBAL
17703# define LT_DLGLOBAL DL_GLOBAL
17704# else
17705# define LT_DLGLOBAL 0
17706# endif
17707#endif
17708
17709/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17710 find out it does not work in some platform. */
17711#ifndef LT_DLLAZY_OR_NOW
17712# ifdef RTLD_LAZY
17713# define LT_DLLAZY_OR_NOW RTLD_LAZY
17714# else
17715# ifdef DL_LAZY
17716# define LT_DLLAZY_OR_NOW DL_LAZY
17717# else
17718# ifdef RTLD_NOW
17719# define LT_DLLAZY_OR_NOW RTLD_NOW
17720# else
17721# ifdef DL_NOW
17722# define LT_DLLAZY_OR_NOW DL_NOW
17723# else
17724# define LT_DLLAZY_OR_NOW 0
17725# endif
17726# endif
17727# endif
17728# endif
17729#endif
17730
17731#ifdef __cplusplus
17732extern "C" void exit (int);
17733#endif
17734
17735void fnord() { int i=42;}
17736int main ()
17737{
17738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17739 int status = $lt_dlunknown;
17740
17741 if (self)
17742 {
17743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17744 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17745 /* dlclose (self); */
17746 }
Reid Spencera773bd52006-08-04 18:18:08 +000017747 else
17748 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017749
17750 exit (status);
17751}
17752EOF
17753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17754 (eval $ac_link) 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017758 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017759 lt_status=$?
17760 case x$lt_status in
17761 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17762 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017763 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017764 esac
17765 else :
17766 # compilation failed
17767 lt_cv_dlopen_self=no
17768 fi
17769fi
17770rm -fr conftest*
17771
17772
17773fi
Reid Spencera773bd52006-08-04 18:18:08 +000017774{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17775echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017776
17777 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017778 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17779 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17780echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017781if test "${lt_cv_dlopen_self_static+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17783else
17784 if test "$cross_compiling" = yes; then :
17785 lt_cv_dlopen_self_static=cross
17786else
John Criswell47fdd832003-07-14 16:52:07 +000017787 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017788 lt_status=$lt_dlunknown
17789 cat > conftest.$ac_ext <<EOF
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000017790#line 17790 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017791#include "confdefs.h"
17792
17793#if HAVE_DLFCN_H
17794#include <dlfcn.h>
17795#endif
17796
17797#include <stdio.h>
17798
17799#ifdef RTLD_GLOBAL
17800# define LT_DLGLOBAL RTLD_GLOBAL
17801#else
17802# ifdef DL_GLOBAL
17803# define LT_DLGLOBAL DL_GLOBAL
17804# else
17805# define LT_DLGLOBAL 0
17806# endif
17807#endif
17808
17809/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17810 find out it does not work in some platform. */
17811#ifndef LT_DLLAZY_OR_NOW
17812# ifdef RTLD_LAZY
17813# define LT_DLLAZY_OR_NOW RTLD_LAZY
17814# else
17815# ifdef DL_LAZY
17816# define LT_DLLAZY_OR_NOW DL_LAZY
17817# else
17818# ifdef RTLD_NOW
17819# define LT_DLLAZY_OR_NOW RTLD_NOW
17820# else
17821# ifdef DL_NOW
17822# define LT_DLLAZY_OR_NOW DL_NOW
17823# else
17824# define LT_DLLAZY_OR_NOW 0
17825# endif
17826# endif
17827# endif
17828# endif
17829#endif
17830
17831#ifdef __cplusplus
17832extern "C" void exit (int);
17833#endif
17834
17835void fnord() { int i=42;}
17836int main ()
17837{
17838 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17839 int status = $lt_dlunknown;
17840
17841 if (self)
17842 {
17843 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17844 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17845 /* dlclose (self); */
17846 }
Reid Spencera773bd52006-08-04 18:18:08 +000017847 else
17848 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017849
17850 exit (status);
17851}
17852EOF
17853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17854 (eval $ac_link) 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017858 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017859 lt_status=$?
17860 case x$lt_status in
17861 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17862 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017863 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017864 esac
17865 else :
17866 # compilation failed
17867 lt_cv_dlopen_self_static=no
17868 fi
17869fi
17870rm -fr conftest*
17871
17872
17873fi
Reid Spencera773bd52006-08-04 18:18:08 +000017874{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17875echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017876 fi
17877
17878 CPPFLAGS="$save_CPPFLAGS"
17879 LDFLAGS="$save_LDFLAGS"
17880 LIBS="$save_LIBS"
17881 ;;
17882 esac
17883
17884 case $lt_cv_dlopen_self in
17885 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17886 *) enable_dlopen_self=unknown ;;
17887 esac
17888
17889 case $lt_cv_dlopen_self_static in
17890 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17891 *) enable_dlopen_self_static=unknown ;;
17892 esac
17893fi
17894
17895
Reid Spencera773bd52006-08-04 18:18:08 +000017896# Report which library types will actually be built
17897{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17898echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17899{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17900echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017901
Reid Spencera773bd52006-08-04 18:18:08 +000017902{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17903echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017904test "$can_build_shared" = "no" && enable_shared=no
17905
17906# On AIX, shared libraries and static libraries use the same namespace, and
17907# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017908case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017909aix3*)
17910 test "$enable_shared" = yes && enable_static=no
17911 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017912 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017913 postinstall_cmds='$RANLIB $lib'
17914 fi
17915 ;;
17916
Reid Spencer2706f8c2004-09-19 23:53:36 +000017917aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017918 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17919 test "$enable_shared" = yes && enable_static=no
17920 fi
John Criswell7a73b802003-06-30 21:59:07 +000017921 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017922esac
Reid Spencera773bd52006-08-04 18:18:08 +000017923{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17924echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017925
Reid Spencera773bd52006-08-04 18:18:08 +000017926{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17927echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017928# Make sure either enable_shared or enable_static is yes.
17929test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017930{ echo "$as_me:$LINENO: result: $enable_static" >&5
17931echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017932
17933# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017934# libtool distribution, otherwise you forgot to ship ltmain.sh
17935# with your package, and you will get complaints that there are
17936# no rules to generate ltmain.sh.
17937if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017938 # See if we are running on zsh, and set the options which allow our commands through
17939 # without removal of \ escapes.
17940 if test -n "${ZSH_VERSION+set}" ; then
17941 setopt NO_GLOB_SUBST
17942 fi
John Criswell7a73b802003-06-30 21:59:07 +000017943 # Now quote all the things that may contain metacharacters while being
17944 # careful not to overquote the AC_SUBSTed values. We take copies of the
17945 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017946 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 +000017947 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017948 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17949 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17950 deplibs_check_method reload_flag reload_cmds need_locks \
17951 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17952 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017953 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017954 old_postinstall_cmds old_postuninstall_cmds \
17955 compiler \
17956 CC \
17957 LD \
17958 lt_prog_compiler_wl \
17959 lt_prog_compiler_pic \
17960 lt_prog_compiler_static \
17961 lt_prog_compiler_no_builtin_flag \
17962 export_dynamic_flag_spec \
17963 thread_safe_flag_spec \
17964 whole_archive_flag_spec \
17965 enable_shared_with_static_runtimes \
17966 old_archive_cmds \
17967 old_archive_from_new_cmds \
17968 predep_objects \
17969 postdep_objects \
17970 predeps \
17971 postdeps \
17972 compiler_lib_search_path \
17973 archive_cmds \
17974 archive_expsym_cmds \
17975 postinstall_cmds \
17976 postuninstall_cmds \
17977 old_archive_from_expsyms_cmds \
17978 allow_undefined_flag \
17979 no_undefined_flag \
17980 export_symbols_cmds \
17981 hardcode_libdir_flag_spec \
17982 hardcode_libdir_flag_spec_ld \
17983 hardcode_libdir_separator \
17984 hardcode_automatic \
17985 module_cmds \
17986 module_expsym_cmds \
17987 lt_cv_prog_compiler_c_o \
17988 exclude_expsyms \
17989 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017990
17991 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017992 old_archive_cmds | \
17993 old_archive_from_new_cmds | \
17994 archive_cmds | \
17995 archive_expsym_cmds | \
17996 module_cmds | \
17997 module_expsym_cmds | \
17998 old_archive_from_expsyms_cmds | \
17999 export_symbols_cmds | \
18000 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000018001 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000018002 old_postinstall_cmds | old_postuninstall_cmds | \
18003 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000018004 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018005 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 +000018006 ;;
18007 *)
18008 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18009 ;;
18010 esac
18011 done
18012
John Criswell47fdd832003-07-14 16:52:07 +000018013 case $lt_echo in
18014 *'\$0 --fallback-echo"')
18015 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18016 ;;
18017 esac
18018
18019cfgfile="${ofile}T"
18020 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18021 $rm -f "$cfgfile"
18022 { echo "$as_me:$LINENO: creating $ofile" >&5
18023echo "$as_me: creating $ofile" >&6;}
18024
18025 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018026#! $SHELL
18027
John Criswell47fdd832003-07-14 16:52:07 +000018028# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000018029# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18030# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18031#
John Criswell47fdd832003-07-14 16:52:07 +000018032# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18033# Free Software Foundation, Inc.
18034#
18035# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000018036# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18037#
18038# This program is free software; you can redistribute it and/or modify
18039# it under the terms of the GNU General Public License as published by
18040# the Free Software Foundation; either version 2 of the License, or
18041# (at your option) any later version.
18042#
18043# This program is distributed in the hope that it will be useful, but
18044# WITHOUT ANY WARRANTY; without even the implied warranty of
18045# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18046# General Public License for more details.
18047#
18048# You should have received a copy of the GNU General Public License
18049# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000018050# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000018051#
18052# As a special exception to the GNU General Public License, if you
18053# distribute this file as part of a program that contains a
18054# configuration script generated by Autoconf, you may include it under
18055# the same distribution terms that you use for the rest of that program.
18056
John Criswell47fdd832003-07-14 16:52:07 +000018057# A sed program that does not truncate output.
18058SED=$lt_SED
18059
John Criswell7a73b802003-06-30 21:59:07 +000018060# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000018061Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000018062
18063# The HP-UX ksh and POSIX shell print the target directory to stdout
18064# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018065(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000018066
John Criswell47fdd832003-07-14 16:52:07 +000018067# The names of the tagged configurations supported by this script.
18068available_tags=
18069
John Criswell7a73b802003-06-30 21:59:07 +000018070# ### BEGIN LIBTOOL CONFIG
18071
18072# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18073
18074# Shell to use when invoking shell scripts.
18075SHELL=$lt_SHELL
18076
18077# Whether or not to build shared libraries.
18078build_libtool_libs=$enable_shared
18079
18080# Whether or not to build static libraries.
18081build_old_libs=$enable_static
18082
18083# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000018084build_libtool_need_lc=$archive_cmds_need_lc
18085
18086# Whether or not to disallow shared libs when runtime libs are static
18087allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000018088
18089# Whether or not to optimize for fast installation.
18090fast_install=$enable_fast_install
18091
18092# The host system.
18093host_alias=$host_alias
18094host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000018095host_os=$host_os
18096
18097# The build system.
18098build_alias=$build_alias
18099build=$build
18100build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000018101
18102# An echo program that does not interpret backslashes.
18103echo=$lt_echo
18104
18105# The archiver.
18106AR=$lt_AR
18107AR_FLAGS=$lt_AR_FLAGS
18108
John Criswell47fdd832003-07-14 16:52:07 +000018109# A C compiler.
18110LTCC=$lt_LTCC
18111
Reid Spencera773bd52006-08-04 18:18:08 +000018112# LTCC compiler flags.
18113LTCFLAGS=$lt_LTCFLAGS
18114
John Criswell47fdd832003-07-14 16:52:07 +000018115# A language-specific compiler.
18116CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000018117
18118# Is the compiler the GNU C compiler?
18119with_gcc=$GCC
18120
John Criswell47fdd832003-07-14 16:52:07 +000018121# An ERE matcher.
18122EGREP=$lt_EGREP
18123
John Criswell7a73b802003-06-30 21:59:07 +000018124# The linker used to build libraries.
18125LD=$lt_LD
18126
18127# Whether we need hard or soft links.
18128LN_S=$lt_LN_S
18129
18130# A BSD-compatible nm program.
18131NM=$lt_NM
18132
18133# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018134STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000018135
18136# Used to examine libraries when file_magic_cmd begins "file"
18137MAGIC_CMD=$MAGIC_CMD
18138
18139# Used on cygwin: DLL creation program.
18140DLLTOOL="$DLLTOOL"
18141
18142# Used on cygwin: object dumper.
18143OBJDUMP="$OBJDUMP"
18144
18145# Used on cygwin: assembler.
18146AS="$AS"
18147
18148# The name of the directory that contains temporary libtool files.
18149objdir=$objdir
18150
18151# How to create reloadable object files.
18152reload_flag=$lt_reload_flag
18153reload_cmds=$lt_reload_cmds
18154
18155# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018156wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018157
18158# Object file suffix (normally "o").
18159objext="$ac_objext"
18160
18161# Old archive suffix (normally "a").
18162libext="$libext"
18163
John Criswell47fdd832003-07-14 16:52:07 +000018164# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018165shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018166
John Criswell7a73b802003-06-30 21:59:07 +000018167# Executable file suffix (normally "").
18168exeext="$exeext"
18169
18170# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018171pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018172pic_mode=$pic_mode
18173
John Criswell47fdd832003-07-14 16:52:07 +000018174# What is the maximum length of a command?
18175max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018176
John Criswell47fdd832003-07-14 16:52:07 +000018177# Does compiler simultaneously support -c and -o options?
18178compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018179
Reid Spencera773bd52006-08-04 18:18:08 +000018180# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018181need_locks=$lt_need_locks
18182
18183# Do we need the lib prefix for modules?
18184need_lib_prefix=$need_lib_prefix
18185
18186# Do we need a version for libraries?
18187need_version=$need_version
18188
18189# Whether dlopen is supported.
18190dlopen_support=$enable_dlopen
18191
18192# Whether dlopen of programs is supported.
18193dlopen_self=$enable_dlopen_self
18194
18195# Whether dlopen of statically linked programs is supported.
18196dlopen_self_static=$enable_dlopen_self_static
18197
18198# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018199link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018200
18201# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018202no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018203
18204# Compiler flag to allow reflexive dlopens.
18205export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18206
18207# Compiler flag to generate shared objects directly from archives.
18208whole_archive_flag_spec=$lt_whole_archive_flag_spec
18209
18210# Compiler flag to generate thread-safe objects.
18211thread_safe_flag_spec=$lt_thread_safe_flag_spec
18212
18213# Library versioning type.
18214version_type=$version_type
18215
18216# Format of library name prefix.
18217libname_spec=$lt_libname_spec
18218
18219# List of archive names. First name is the real one, the rest are links.
18220# The last name is the one that the linker finds with -lNAME.
18221library_names_spec=$lt_library_names_spec
18222
18223# The coded name of the library, if different from the real name.
18224soname_spec=$lt_soname_spec
18225
18226# Commands used to build and install an old-style archive.
18227RANLIB=$lt_RANLIB
18228old_archive_cmds=$lt_old_archive_cmds
18229old_postinstall_cmds=$lt_old_postinstall_cmds
18230old_postuninstall_cmds=$lt_old_postuninstall_cmds
18231
18232# Create an old-style archive from a shared archive.
18233old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18234
18235# Create a temporary old-style archive to link instead of a shared archive.
18236old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18237
18238# Commands used to build and install a shared archive.
18239archive_cmds=$lt_archive_cmds
18240archive_expsym_cmds=$lt_archive_expsym_cmds
18241postinstall_cmds=$lt_postinstall_cmds
18242postuninstall_cmds=$lt_postuninstall_cmds
18243
John Criswell47fdd832003-07-14 16:52:07 +000018244# Commands used to build a loadable module (assumed same as above if empty)
18245module_cmds=$lt_module_cmds
18246module_expsym_cmds=$lt_module_expsym_cmds
18247
John Criswell7a73b802003-06-30 21:59:07 +000018248# Commands to strip libraries.
18249old_striplib=$lt_old_striplib
18250striplib=$lt_striplib
18251
John Criswell47fdd832003-07-14 16:52:07 +000018252# Dependencies to place before the objects being linked to create a
18253# shared library.
18254predep_objects=$lt_predep_objects
18255
18256# Dependencies to place after the objects being linked to create a
18257# shared library.
18258postdep_objects=$lt_postdep_objects
18259
18260# Dependencies to place before the objects being linked to create a
18261# shared library.
18262predeps=$lt_predeps
18263
18264# Dependencies to place after the objects being linked to create a
18265# shared library.
18266postdeps=$lt_postdeps
18267
18268# The library search path used internally by the compiler when linking
18269# a shared library.
18270compiler_lib_search_path=$lt_compiler_lib_search_path
18271
John Criswell7a73b802003-06-30 21:59:07 +000018272# Method to check whether dependent libraries are shared objects.
18273deplibs_check_method=$lt_deplibs_check_method
18274
18275# Command to use when deplibs_check_method == file_magic.
18276file_magic_cmd=$lt_file_magic_cmd
18277
18278# Flag that allows shared libraries with undefined symbols to be built.
18279allow_undefined_flag=$lt_allow_undefined_flag
18280
18281# Flag that forces no undefined symbols.
18282no_undefined_flag=$lt_no_undefined_flag
18283
18284# Commands used to finish a libtool library installation in a directory.
18285finish_cmds=$lt_finish_cmds
18286
18287# Same as above, but a single script fragment to be evaled but not shown.
18288finish_eval=$lt_finish_eval
18289
18290# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018291global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018292
18293# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018294global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018295
18296# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018297global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018298
18299# This is the shared library runtime path variable.
18300runpath_var=$runpath_var
18301
18302# This is the shared library path variable.
18303shlibpath_var=$shlibpath_var
18304
18305# Is shlibpath searched before the hard-coded library search path?
18306shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18307
18308# How to hardcode a shared library path into an executable.
18309hardcode_action=$hardcode_action
18310
18311# Whether we should hardcode library paths into libraries.
18312hardcode_into_libs=$hardcode_into_libs
18313
18314# Flag to hardcode \$libdir into a binary during linking.
18315# This must work even if \$libdir does not exist.
18316hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18317
John Criswell47fdd832003-07-14 16:52:07 +000018318# If ld is used when linking, flag to hardcode \$libdir into
18319# a binary during linking. This must work even if \$libdir does
18320# not exist.
18321hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18322
John Criswell7a73b802003-06-30 21:59:07 +000018323# Whether we need a single -rpath flag with a separated argument.
18324hardcode_libdir_separator=$lt_hardcode_libdir_separator
18325
John Criswell47fdd832003-07-14 16:52:07 +000018326# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018327# resulting binary.
18328hardcode_direct=$hardcode_direct
18329
18330# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18331# resulting binary.
18332hardcode_minus_L=$hardcode_minus_L
18333
18334# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18335# the resulting binary.
18336hardcode_shlibpath_var=$hardcode_shlibpath_var
18337
John Criswell47fdd832003-07-14 16:52:07 +000018338# Set to yes if building a shared library automatically hardcodes DIR into the library
18339# and all subsequent libraries and executables linked against it.
18340hardcode_automatic=$hardcode_automatic
18341
John Criswell7a73b802003-06-30 21:59:07 +000018342# Variables whose values should be saved in libtool wrapper scripts and
18343# restored at relink time.
18344variables_saved_for_relink="$variables_saved_for_relink"
18345
18346# Whether libtool must link a program against all its dependency libraries.
18347link_all_deplibs=$link_all_deplibs
18348
18349# Compile-time system search path for libraries
18350sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18351
18352# Run-time system search path for libraries
18353sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18354
18355# Fix the shell variable \$srcfile for the compiler.
18356fix_srcfile_path="$fix_srcfile_path"
18357
18358# Set to yes if exported symbols are required.
18359always_export_symbols=$always_export_symbols
18360
18361# The commands to list exported symbols.
18362export_symbols_cmds=$lt_export_symbols_cmds
18363
18364# The commands to extract the exported symbol list from a shared archive.
18365extract_expsyms_cmds=$lt_extract_expsyms_cmds
18366
18367# Symbols that should not be listed in the preloaded symbols.
18368exclude_expsyms=$lt_exclude_expsyms
18369
18370# Symbols that must always be exported.
18371include_expsyms=$lt_include_expsyms
18372
18373# ### END LIBTOOL CONFIG
18374
18375__EOF__
18376
John Criswell47fdd832003-07-14 16:52:07 +000018377
John Criswell7a73b802003-06-30 21:59:07 +000018378 case $host_os in
18379 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018380 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018381
18382# AIX sometimes has problems with the GCC collect2 program. For some
18383# reason, if we set the COLLECT_NAMES environment variable, the problems
18384# vanish in a puff of smoke.
18385if test "X${COLLECT_NAMES+set}" != Xset; then
18386 COLLECT_NAMES=
18387 export COLLECT_NAMES
18388fi
18389EOF
18390 ;;
18391 esac
18392
John Criswell7a73b802003-06-30 21:59:07 +000018393 # We use sed instead of cat because bash on DJGPP gets confused if
18394 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18395 # text mode, it properly converts lines to CR/LF. This bash problem
18396 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018397 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018398
John Criswell47fdd832003-07-14 16:52:07 +000018399 mv -f "$cfgfile" "$ofile" || \
18400 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018401 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018402
18403else
18404 # If there is no Makefile yet, we rely on a make rule to execute
18405 # `config.status --recheck' to rerun these tests and create the
18406 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018407 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18408 if test -f "$ltmain_in"; then
18409 test -f Makefile && make "$ltmain"
18410 fi
John Criswell7a73b802003-06-30 21:59:07 +000018411fi
John Criswell7a73b802003-06-30 21:59:07 +000018412
18413
John Criswell47fdd832003-07-14 16:52:07 +000018414ac_ext=c
18415ac_cpp='$CPP $CPPFLAGS'
18416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18418ac_compiler_gnu=$ac_cv_c_compiler_gnu
18419
18420CC="$lt_save_CC"
18421
18422
Reid Spencera773bd52006-08-04 18:18:08 +000018423# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018424if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018425 withval=$with_tags; tagnames="$withval"
18426fi
18427
John Criswell47fdd832003-07-14 16:52:07 +000018428
18429if test -f "$ltmain" && test -n "$tagnames"; then
18430 if test ! -f "${ofile}"; then
18431 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18432echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18433 fi
18434
18435 if test -z "$LTCC"; then
18436 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18437 if test -z "$LTCC"; then
18438 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18439echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18440 else
18441 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18442echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18443 fi
18444 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018445 if test -z "$LTCFLAGS"; then
18446 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18447 fi
John Criswell47fdd832003-07-14 16:52:07 +000018448
18449 # Extract list of available tagged configurations in $ofile.
18450 # Note that this assumes the entire list is on one line.
18451 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18452
18453 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18454 for tagname in $tagnames; do
18455 IFS="$lt_save_ifs"
18456 # Check whether tagname contains only valid characters
18457 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18458 "") ;;
18459 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18460echo "$as_me: error: invalid tag name: $tagname" >&2;}
18461 { (exit 1); exit 1; }; }
18462 ;;
18463 esac
18464
18465 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18466 then
18467 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18468echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18469 { (exit 1); exit 1; }; }
18470 fi
18471
18472 # Update the list of available tags.
18473 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018474 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018475
18476 case $tagname in
18477 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018478 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18479 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18480 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018481 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018482ac_cpp='$CXXCPP $CPPFLAGS'
18483ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18484ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18485ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18486
18487
18488
18489
18490archive_cmds_need_lc_CXX=no
18491allow_undefined_flag_CXX=
18492always_export_symbols_CXX=no
18493archive_expsym_cmds_CXX=
18494export_dynamic_flag_spec_CXX=
18495hardcode_direct_CXX=no
18496hardcode_libdir_flag_spec_CXX=
18497hardcode_libdir_flag_spec_ld_CXX=
18498hardcode_libdir_separator_CXX=
18499hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018500hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018501hardcode_automatic_CXX=no
18502module_cmds_CXX=
18503module_expsym_cmds_CXX=
18504link_all_deplibs_CXX=unknown
18505old_archive_cmds_CXX=$old_archive_cmds
18506no_undefined_flag_CXX=
18507whole_archive_flag_spec_CXX=
18508enable_shared_with_static_runtimes_CXX=no
18509
18510# Dependencies to place before and after the object being linked:
18511predep_objects_CXX=
18512postdep_objects_CXX=
18513predeps_CXX=
18514postdeps_CXX=
18515compiler_lib_search_path_CXX=
18516
18517# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018518ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018519
18520# Object file extension for compiled C++ test sources.
18521objext=o
18522objext_CXX=$objext
18523
18524# Code to be used in simple compile tests
18525lt_simple_compile_test_code="int some_variable = 0;\n"
18526
18527# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018528lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018529
18530# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18531
18532# If no C compiler was specified, use CC.
18533LTCC=${LTCC-"$CC"}
18534
Reid Spencera773bd52006-08-04 18:18:08 +000018535# If no C compiler flags were specified, use CFLAGS.
18536LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18537
John Criswell47fdd832003-07-14 16:52:07 +000018538# Allow CC to be a program name with arguments.
18539compiler=$CC
18540
18541
Reid Spencera773bd52006-08-04 18:18:08 +000018542# save warnings/boilerplate of simple test code
18543ac_outfile=conftest.$ac_objext
18544printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18545eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18546_lt_compiler_boilerplate=`cat conftest.err`
18547$rm conftest*
18548
18549ac_outfile=conftest.$ac_objext
18550printf "$lt_simple_link_test_code" >conftest.$ac_ext
18551eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18552_lt_linker_boilerplate=`cat conftest.err`
18553$rm conftest*
18554
18555
John Criswell47fdd832003-07-14 16:52:07 +000018556# Allow CC to be a program name with arguments.
18557lt_save_CC=$CC
18558lt_save_LD=$LD
18559lt_save_GCC=$GCC
18560GCC=$GXX
18561lt_save_with_gnu_ld=$with_gnu_ld
18562lt_save_path_LD=$lt_cv_path_LD
18563if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18564 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18565else
Reid Spencera773bd52006-08-04 18:18:08 +000018566 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018567fi
18568if test -n "${lt_cv_path_LDCXX+set}"; then
18569 lt_cv_path_LD=$lt_cv_path_LDCXX
18570else
Reid Spencera773bd52006-08-04 18:18:08 +000018571 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018572fi
18573test -z "${LDCXX+set}" || LD=$LDCXX
18574CC=${CXX-"c++"}
18575compiler=$CC
18576compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018577for cc_temp in $compiler""; do
18578 case $cc_temp in
18579 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18580 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18581 \-*) ;;
18582 *) break;;
18583 esac
18584done
18585cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18586
John Criswell47fdd832003-07-14 16:52:07 +000018587
18588# We don't want -fno-exception wen compiling C++ code, so set the
18589# no_builtin_flag separately
18590if test "$GXX" = yes; then
18591 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18592else
18593 lt_prog_compiler_no_builtin_flag_CXX=
18594fi
18595
18596if test "$GXX" = yes; then
18597 # Set up default GNU C++ configuration
18598
18599
Reid Spencera773bd52006-08-04 18:18:08 +000018600# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018601if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018602 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018603else
18604 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018605fi
18606
John Criswell47fdd832003-07-14 16:52:07 +000018607ac_prog=ld
18608if test "$GCC" = yes; then
18609 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018610 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18611echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018612 case $host in
18613 *-*-mingw*)
18614 # gcc leaves a trailing carriage return which upsets mingw
18615 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18616 *)
18617 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18618 esac
18619 case $ac_prog in
18620 # Accept absolute paths.
18621 [\\/]* | ?:[\\/]*)
18622 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018623 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018624 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18625 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18626 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18627 done
18628 test -z "$LD" && LD="$ac_prog"
18629 ;;
18630 "")
18631 # If it fails, then pretend we aren't using GCC.
18632 ac_prog=ld
18633 ;;
18634 *)
18635 # If it is relative, then search for the first ld in PATH.
18636 with_gnu_ld=unknown
18637 ;;
18638 esac
18639elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018640 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18641echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018642else
Reid Spencera773bd52006-08-04 18:18:08 +000018643 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18644echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018645fi
18646if test "${lt_cv_path_LD+set}" = set; then
18647 echo $ECHO_N "(cached) $ECHO_C" >&6
18648else
18649 if test -z "$LD"; then
18650 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18651 for ac_dir in $PATH; do
18652 IFS="$lt_save_ifs"
18653 test -z "$ac_dir" && ac_dir=.
18654 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18655 lt_cv_path_LD="$ac_dir/$ac_prog"
18656 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018657 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018658 # Break only if it was the GNU/non-GNU ld that we prefer.
18659 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18660 *GNU* | *'with BFD'*)
18661 test "$with_gnu_ld" != no && break
18662 ;;
18663 *)
18664 test "$with_gnu_ld" != yes && break
18665 ;;
18666 esac
18667 fi
18668 done
18669 IFS="$lt_save_ifs"
18670else
18671 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18672fi
18673fi
18674
18675LD="$lt_cv_path_LD"
18676if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018677 { echo "$as_me:$LINENO: result: $LD" >&5
18678echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018679else
Reid Spencera773bd52006-08-04 18:18:08 +000018680 { echo "$as_me:$LINENO: result: no" >&5
18681echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018682fi
18683test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18684echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18685 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018686{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18687echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018688if test "${lt_cv_prog_gnu_ld+set}" = set; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18690else
Reid Spencera773bd52006-08-04 18:18:08 +000018691 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018692case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018693*GNU* | *'with BFD'*)
18694 lt_cv_prog_gnu_ld=yes
18695 ;;
18696*)
18697 lt_cv_prog_gnu_ld=no
18698 ;;
18699esac
18700fi
Reid Spencera773bd52006-08-04 18:18:08 +000018701{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18702echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018703with_gnu_ld=$lt_cv_prog_gnu_ld
18704
18705
18706
18707 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18708 # archiving commands below assume that GNU ld is being used.
18709 if test "$with_gnu_ld" = yes; then
18710 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18711 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'
18712
18713 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18714 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18715
18716 # If archive_cmds runs LD, not CC, wlarc should be empty
18717 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18718 # investigate it a little bit more. (MM)
18719 wlarc='${wl}'
18720
18721 # ancient GNU ld didn't support --whole-archive et. al.
18722 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18723 grep 'no-whole-archive' > /dev/null; then
18724 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18725 else
18726 whole_archive_flag_spec_CXX=
18727 fi
18728 else
18729 with_gnu_ld=no
18730 wlarc=
18731
18732 # A generic and very simple default shared library creation
18733 # command for GNU C++ for the case where it uses the native
18734 # linker, instead of GNU ld. If possible, this setting should
18735 # overridden to take advantage of the native linker features on
18736 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018737 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018738 fi
18739
18740 # Commands to make compiler produce verbose output that lists
18741 # what "hidden" libraries, object files and flags are used when
18742 # linking a shared library.
18743 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18744
18745else
18746 GXX=no
18747 with_gnu_ld=no
18748 wlarc=
18749fi
18750
18751# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018752{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18753echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018754ld_shlibs_CXX=yes
18755case $host_os in
18756 aix3*)
18757 # FIXME: insert proper C++ library support
18758 ld_shlibs_CXX=no
18759 ;;
18760 aix4* | aix5*)
18761 if test "$host_cpu" = ia64; then
18762 # On IA64, the linker does run time linking by default, so we don't
18763 # have to do anything special.
18764 aix_use_runtimelinking=no
18765 exp_sym_flag='-Bexport'
18766 no_entry_flag=""
18767 else
18768 aix_use_runtimelinking=no
18769
18770 # Test if we are trying to use run time linking or normal
18771 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18772 # need to do runtime linking.
18773 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18774 for ld_flag in $LDFLAGS; do
18775 case $ld_flag in
18776 *-brtl*)
18777 aix_use_runtimelinking=yes
18778 break
18779 ;;
18780 esac
18781 done
Reid Spencera773bd52006-08-04 18:18:08 +000018782 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018783 esac
18784
18785 exp_sym_flag='-bexport'
18786 no_entry_flag='-bnoentry'
18787 fi
18788
18789 # When large executables or shared objects are built, AIX ld can
18790 # have problems creating the table of contents. If linking a library
18791 # or program results in "error TOC overflow" add -mminimal-toc to
18792 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18793 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18794
18795 archive_cmds_CXX=''
18796 hardcode_direct_CXX=yes
18797 hardcode_libdir_separator_CXX=':'
18798 link_all_deplibs_CXX=yes
18799
18800 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018801 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018802 # We only want to do this on AIX 4.2 and lower, the check
18803 # below for broken collect2 doesn't work under 4.3+
18804 collect2name=`${CC} -print-prog-name=collect2`
18805 if test -f "$collect2name" && \
18806 strings "$collect2name" | grep resolve_lib_name >/dev/null
18807 then
18808 # We have reworked collect2
18809 hardcode_direct_CXX=yes
18810 else
18811 # We have old collect2
18812 hardcode_direct_CXX=unsupported
18813 # It fails to find uninstalled libraries when the uninstalled
18814 # path is not listed in the libpath. Setting hardcode_minus_L
18815 # to unsupported forces relinking
18816 hardcode_minus_L_CXX=yes
18817 hardcode_libdir_flag_spec_CXX='-L$libdir'
18818 hardcode_libdir_separator_CXX=
18819 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018820 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018821 esac
18822 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018823 if test "$aix_use_runtimelinking" = yes; then
18824 shared_flag="$shared_flag "'${wl}-G'
18825 fi
John Criswell47fdd832003-07-14 16:52:07 +000018826 else
18827 # not using gcc
18828 if test "$host_cpu" = ia64; then
18829 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18830 # chokes on -Wl,-G. The following line is correct:
18831 shared_flag='-G'
18832 else
18833 if test "$aix_use_runtimelinking" = yes; then
18834 shared_flag='${wl}-G'
18835 else
18836 shared_flag='${wl}-bM:SRE'
18837 fi
18838 fi
18839 fi
18840
18841 # It seems that -bexpall does not export symbols beginning with
18842 # underscore (_), so it is better to generate a list of symbols to export.
18843 always_export_symbols_CXX=yes
18844 if test "$aix_use_runtimelinking" = yes; then
18845 # Warning - without using the other runtime loading flags (-brtl),
18846 # -berok will link without error, but may produce a broken library.
18847 allow_undefined_flag_CXX='-berok'
18848 # Determine the default libpath from the value encoded in an empty executable.
18849 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018850/* confdefs.h. */
18851_ACEOF
18852cat confdefs.h >>conftest.$ac_ext
18853cat >>conftest.$ac_ext <<_ACEOF
18854/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018855
John Criswell47fdd832003-07-14 16:52:07 +000018856int
18857main ()
18858{
18859
18860 ;
18861 return 0;
18862}
18863_ACEOF
18864rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018865if { (ac_try="$ac_link"
18866case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18869esac
18870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018872 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018873 grep -v '^ *+' conftest.er1 >conftest.err
18874 rm -f conftest.er1
18875 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018877 (exit $ac_status); } &&
18878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18879 { (case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18882esac
18883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_try") 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; } &&
18888 { ac_try='test -s conftest$ac_exeext'
18889 { (case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18892esac
18893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_try") 2>&5
18895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018898
18899aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18900}'`
18901# Check for a 64-bit object if we didn't find anything.
18902if 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; }
18903}'`; fi
18904else
18905 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018906sed 's/^/| /' conftest.$ac_ext >&5
18907
Reid Spencera773bd52006-08-04 18:18:08 +000018908
John Criswell47fdd832003-07-14 16:52:07 +000018909fi
Reid Spencera773bd52006-08-04 18:18:08 +000018910
Bill Wendlingebcceee2009-04-18 11:20:33 +000018911rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018912 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018913if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18914
18915 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18916
Reid Spencera773bd52006-08-04 18:18:08 +000018917 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 +000018918 else
18919 if test "$host_cpu" = ia64; then
18920 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18921 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018922 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 +000018923 else
18924 # Determine the default libpath from the value encoded in an empty executable.
18925 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018926/* confdefs.h. */
18927_ACEOF
18928cat confdefs.h >>conftest.$ac_ext
18929cat >>conftest.$ac_ext <<_ACEOF
18930/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018931
John Criswell47fdd832003-07-14 16:52:07 +000018932int
18933main ()
18934{
18935
18936 ;
18937 return 0;
18938}
18939_ACEOF
18940rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018941if { (ac_try="$ac_link"
18942case "(($ac_try" in
18943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944 *) ac_try_echo=$ac_try;;
18945esac
18946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018948 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018949 grep -v '^ *+' conftest.er1 >conftest.err
18950 rm -f conftest.er1
18951 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018953 (exit $ac_status); } &&
18954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18955 { (case "(($ac_try" in
18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18958esac
18959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960 (eval "$ac_try") 2>&5
18961 ac_status=$?
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; } &&
18964 { ac_try='test -s conftest$ac_exeext'
18965 { (case "(($ac_try" in
18966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18967 *) ac_try_echo=$ac_try;;
18968esac
18969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18970 (eval "$ac_try") 2>&5
18971 ac_status=$?
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018974
18975aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18976}'`
18977# Check for a 64-bit object if we didn't find anything.
18978if 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; }
18979}'`; fi
18980else
18981 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018982sed 's/^/| /' conftest.$ac_ext >&5
18983
Reid Spencera773bd52006-08-04 18:18:08 +000018984
John Criswell47fdd832003-07-14 16:52:07 +000018985fi
Reid Spencera773bd52006-08-04 18:18:08 +000018986
Bill Wendlingebcceee2009-04-18 11:20:33 +000018987rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018988 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018989if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18990
18991 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18992 # Warning - without using the other run time loading flags,
18993 # -berok will link without error, but may produce a broken library.
18994 no_undefined_flag_CXX=' ${wl}-bernotok'
18995 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018996 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018997 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018998 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018999 # This is similar to how AIX traditionally builds its shared libraries.
19000 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 +000019001 fi
19002 fi
19003 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019004
19005 beos*)
19006 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19007 allow_undefined_flag_CXX=unsupported
19008 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19009 # support --undefined. This deserves some investigation. FIXME
19010 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19011 else
19012 ld_shlibs_CXX=no
19013 fi
19014 ;;
19015
John Criswell47fdd832003-07-14 16:52:07 +000019016 chorus*)
19017 case $cc_basename in
19018 *)
19019 # FIXME: insert proper C++ library support
19020 ld_shlibs_CXX=no
19021 ;;
19022 esac
19023 ;;
19024
19025 cygwin* | mingw* | pw32*)
19026 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19027 # as there is no search path for DLLs.
19028 hardcode_libdir_flag_spec_CXX='-L$libdir'
19029 allow_undefined_flag_CXX=unsupported
19030 always_export_symbols_CXX=no
19031 enable_shared_with_static_runtimes_CXX=yes
19032
19033 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000019034 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 +000019035 # If the export-symbols file already is a .def file (1st line
19036 # is EXPORTS), use it as is; otherwise, prepend...
19037 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19038 cp $export_symbols $output_objdir/$soname.def;
19039 else
19040 echo EXPORTS > $output_objdir/$soname.def;
19041 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019042 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000019043 $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 +000019044 else
19045 ld_shlibs_CXX=no
19046 fi
19047 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019048 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000019049 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019050 rhapsody* | darwin1.[012])
19051 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19052 ;;
19053 *) # Darwin 1.3 on
19054 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19055 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19056 else
19057 case ${MACOSX_DEPLOYMENT_TARGET} in
19058 10.[012])
19059 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19060 ;;
19061 10.*)
19062 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19063 ;;
19064 esac
19065 fi
19066 ;;
19067 esac
19068 archive_cmds_need_lc_CXX=no
19069 hardcode_direct_CXX=no
19070 hardcode_automatic_CXX=yes
19071 hardcode_shlibpath_var_CXX=unsupported
19072 whole_archive_flag_spec_CXX=''
19073 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019074
Reid Spencer2706f8c2004-09-19 23:53:36 +000019075 if test "$GXX" = yes ; then
19076 lt_int_apple_cc_single_mod=no
19077 output_verbose_link_cmd='echo'
19078 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19079 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000019080 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019081 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019082 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 +000019083 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019084 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 +000019085 fi
19086 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019087 # 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 +000019088 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019089 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 +000019090 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019091 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 +000019092 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000019093 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 +000019094 else
Reid Spencera773bd52006-08-04 18:18:08 +000019095 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019096 xlc*)
19097 output_verbose_link_cmd='echo'
19098 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'
19099 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019100 # 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 +000019101 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}'
19102 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 +000019103 ;;
19104 *)
19105 ld_shlibs_CXX=no
19106 ;;
19107 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000019108 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019109 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019110
19111 dgux*)
19112 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019113 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019114 # FIXME: insert proper C++ library support
19115 ld_shlibs_CXX=no
19116 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019117 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019118 # Green Hills C++ Compiler
19119 # FIXME: insert proper C++ library support
19120 ld_shlibs_CXX=no
19121 ;;
19122 *)
19123 # FIXME: insert proper C++ library support
19124 ld_shlibs_CXX=no
19125 ;;
19126 esac
19127 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019128 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000019129 # C++ shared libraries reported to be fairly broken before switch to ELF
19130 ld_shlibs_CXX=no
19131 ;;
19132 freebsd-elf*)
19133 archive_cmds_need_lc_CXX=no
19134 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019135 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019136 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19137 # conventions
19138 ld_shlibs_CXX=yes
19139 ;;
19140 gnu*)
19141 ;;
19142 hpux9*)
19143 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19144 hardcode_libdir_separator_CXX=:
19145 export_dynamic_flag_spec_CXX='${wl}-E'
19146 hardcode_direct_CXX=yes
19147 hardcode_minus_L_CXX=yes # Not in the search PATH,
19148 # but as the default
19149 # location of the library.
19150
19151 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019152 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019153 # FIXME: insert proper C++ library support
19154 ld_shlibs_CXX=no
19155 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019156 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019157 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 +000019158 # Commands to make compiler produce verbose output that lists
19159 # what "hidden" libraries, object files and flags are used when
19160 # linking a shared library.
19161 #
19162 # There doesn't appear to be a way to prevent this compiler from
19163 # explicitly linking system object files so we need to strip them
19164 # from the output so that they don't get included in the library
19165 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019166 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 +000019167 ;;
19168 *)
19169 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019170 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 +000019171 else
19172 # FIXME: insert proper C++ library support
19173 ld_shlibs_CXX=no
19174 fi
19175 ;;
19176 esac
19177 ;;
19178 hpux10*|hpux11*)
19179 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019180 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19181 hardcode_libdir_separator_CXX=:
19182
19183 case $host_cpu in
19184 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019185 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019186 ;;
19187 *)
John Criswell47fdd832003-07-14 16:52:07 +000019188 export_dynamic_flag_spec_CXX='${wl}-E'
19189 ;;
19190 esac
19191 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019192 case $host_cpu in
19193 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019194 hardcode_direct_CXX=no
19195 hardcode_shlibpath_var_CXX=no
19196 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019197 *)
19198 hardcode_direct_CXX=yes
19199 hardcode_minus_L_CXX=yes # Not in the search PATH,
19200 # but as the default
19201 # location of the library.
19202 ;;
19203 esac
19204
19205 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019206 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019207 # FIXME: insert proper C++ library support
19208 ld_shlibs_CXX=no
19209 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019210 aCC*)
19211 case $host_cpu in
19212 hppa*64*)
19213 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19214 ;;
19215 ia64*)
19216 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 +000019217 ;;
19218 *)
19219 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19220 ;;
19221 esac
19222 # Commands to make compiler produce verbose output that lists
19223 # what "hidden" libraries, object files and flags are used when
19224 # linking a shared library.
19225 #
19226 # There doesn't appear to be a way to prevent this compiler from
19227 # explicitly linking system object files so we need to strip them
19228 # from the output so that they don't get included in the library
19229 # dependencies.
19230 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'
19231 ;;
19232 *)
19233 if test "$GXX" = yes; then
19234 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019235 case $host_cpu in
19236 hppa*64*)
19237 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19238 ;;
19239 ia64*)
19240 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 +000019241 ;;
19242 *)
19243 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'
19244 ;;
19245 esac
19246 fi
19247 else
19248 # FIXME: insert proper C++ library support
19249 ld_shlibs_CXX=no
19250 fi
19251 ;;
19252 esac
19253 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019254 interix3*)
19255 hardcode_direct_CXX=no
19256 hardcode_shlibpath_var_CXX=no
19257 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19258 export_dynamic_flag_spec_CXX='${wl}-E'
19259 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19260 # Instead, shared libraries are loaded at an image base (0x10000000 by
19261 # default) and relocated if they conflict, which is a slow very memory
19262 # consuming and fragmenting process. To avoid this, we pick a random,
19263 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19264 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19265 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'
19266 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'
19267 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019268 irix5* | irix6*)
19269 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019270 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019271 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019272 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 +000019273
19274 # Archives containing C++ object files must be created using
19275 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19276 # necessary to make sure instantiated templates are included
19277 # in the archive.
19278 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19279 ;;
19280 *)
19281 if test "$GXX" = yes; then
19282 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019283 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 +000019284 else
19285 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'
19286 fi
19287 fi
19288 link_all_deplibs_CXX=yes
19289 ;;
19290 esac
19291 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19292 hardcode_libdir_separator_CXX=:
19293 ;;
19294 linux*)
19295 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019296 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019297 # Kuck and Associates, Inc. (KAI) C++ Compiler
19298
19299 # KCC will only create a shared library if the output file
19300 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19301 # to its proper name (with version) after linking.
19302 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'
19303 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'
19304 # Commands to make compiler produce verbose output that lists
19305 # what "hidden" libraries, object files and flags are used when
19306 # linking a shared library.
19307 #
19308 # There doesn't appear to be a way to prevent this compiler from
19309 # explicitly linking system object files so we need to strip them
19310 # from the output so that they don't get included in the library
19311 # dependencies.
19312 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'
19313
19314 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19315 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19316
19317 # Archives containing C++ object files must be created using
19318 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19319 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19320 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019321 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019322 # Intel C++
19323 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019324 # version 8.0 and above of icpc choke on multiply defined symbols
19325 # if we add $predep_objects and $postdep_objects, however 7.1 and
19326 # earlier do not add the objects themselves.
19327 case `$CC -V 2>&1` in
19328 *"Version 7."*)
19329 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19330 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'
19331 ;;
19332 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019333 tmp_idyn=
19334 case $host_cpu in
19335 ia64*) tmp_idyn=' -i_dynamic';;
19336 esac
19337 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19338 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 +000019339 ;;
19340 esac
John Criswell47fdd832003-07-14 16:52:07 +000019341 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019342 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19343 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19344 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19345 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019346 pgCC*)
19347 # Portland Group C++ compiler
19348 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19349 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'
19350
19351 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19352 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19353 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'
19354 ;;
19355 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019356 # Compaq C++
19357 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19358 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'
19359
19360 runpath_var=LD_RUN_PATH
19361 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19362 hardcode_libdir_separator_CXX=:
19363
19364 # Commands to make compiler produce verbose output that lists
19365 # what "hidden" libraries, object files and flags are used when
19366 # linking a shared library.
19367 #
19368 # There doesn't appear to be a way to prevent this compiler from
19369 # explicitly linking system object files so we need to strip them
19370 # from the output so that they don't get included in the library
19371 # dependencies.
19372 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'
19373 ;;
19374 esac
19375 ;;
19376 lynxos*)
19377 # FIXME: insert proper C++ library support
19378 ld_shlibs_CXX=no
19379 ;;
19380 m88k*)
19381 # FIXME: insert proper C++ library support
19382 ld_shlibs_CXX=no
19383 ;;
19384 mvs*)
19385 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019386 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019387 # FIXME: insert proper C++ library support
19388 ld_shlibs_CXX=no
19389 ;;
19390 *)
19391 # FIXME: insert proper C++ library support
19392 ld_shlibs_CXX=no
19393 ;;
19394 esac
19395 ;;
19396 netbsd*)
19397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19398 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19399 wlarc=
19400 hardcode_libdir_flag_spec_CXX='-R$libdir'
19401 hardcode_direct_CXX=yes
19402 hardcode_shlibpath_var_CXX=no
19403 fi
19404 # Workaround some broken pre-1.5 toolchains
19405 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19406 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019407 openbsd2*)
19408 # C++ shared libraries are fairly broken
19409 ld_shlibs_CXX=no
19410 ;;
19411 openbsd*)
19412 hardcode_direct_CXX=yes
19413 hardcode_shlibpath_var_CXX=no
19414 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19415 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19416 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19417 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19418 export_dynamic_flag_spec_CXX='${wl}-E'
19419 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19420 fi
19421 output_verbose_link_cmd='echo'
19422 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019423 osf3*)
19424 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019425 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019426 # Kuck and Associates, Inc. (KAI) C++ Compiler
19427
19428 # KCC will only create a shared library if the output file
19429 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19430 # to its proper name (with version) after linking.
19431 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'
19432
19433 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19434 hardcode_libdir_separator_CXX=:
19435
19436 # Archives containing C++ object files must be created using
19437 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19438 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19439
19440 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019441 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019442 # Rational C++ 2.4.1
19443 # FIXME: insert proper C++ library support
19444 ld_shlibs_CXX=no
19445 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019446 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019447 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019448 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 +000019449
19450 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19451 hardcode_libdir_separator_CXX=:
19452
19453 # Commands to make compiler produce verbose output that lists
19454 # what "hidden" libraries, object files and flags are used when
19455 # linking a shared library.
19456 #
19457 # There doesn't appear to be a way to prevent this compiler from
19458 # explicitly linking system object files so we need to strip them
19459 # from the output so that they don't get included in the library
19460 # dependencies.
19461 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'
19462 ;;
19463 *)
19464 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19465 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019466 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 +000019467
19468 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19469 hardcode_libdir_separator_CXX=:
19470
19471 # Commands to make compiler produce verbose output that lists
19472 # what "hidden" libraries, object files and flags are used when
19473 # linking a shared library.
19474 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19475
19476 else
19477 # FIXME: insert proper C++ library support
19478 ld_shlibs_CXX=no
19479 fi
19480 ;;
19481 esac
19482 ;;
19483 osf4* | osf5*)
19484 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019485 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019486 # Kuck and Associates, Inc. (KAI) C++ Compiler
19487
19488 # KCC will only create a shared library if the output file
19489 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19490 # to its proper name (with version) after linking.
19491 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'
19492
19493 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19494 hardcode_libdir_separator_CXX=:
19495
19496 # Archives containing C++ object files must be created using
19497 # the KAI C++ compiler.
19498 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19499 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019500 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019501 # Rational C++ 2.4.1
19502 # FIXME: insert proper C++ library support
19503 ld_shlibs_CXX=no
19504 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019505 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019506 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019507 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 +000019508 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19509 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019510 $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 +000019511 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019512
19513 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19514 hardcode_libdir_separator_CXX=:
19515
19516 # Commands to make compiler produce verbose output that lists
19517 # what "hidden" libraries, object files and flags are used when
19518 # linking a shared library.
19519 #
19520 # There doesn't appear to be a way to prevent this compiler from
19521 # explicitly linking system object files so we need to strip them
19522 # from the output so that they don't get included in the library
19523 # dependencies.
19524 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'
19525 ;;
19526 *)
19527 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19528 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019529 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 +000019530
19531 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19532 hardcode_libdir_separator_CXX=:
19533
19534 # Commands to make compiler produce verbose output that lists
19535 # what "hidden" libraries, object files and flags are used when
19536 # linking a shared library.
19537 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19538
19539 else
19540 # FIXME: insert proper C++ library support
19541 ld_shlibs_CXX=no
19542 fi
19543 ;;
19544 esac
19545 ;;
19546 psos*)
19547 # FIXME: insert proper C++ library support
19548 ld_shlibs_CXX=no
19549 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019550 sunos4*)
19551 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019552 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019553 # Sun C++ 4.x
19554 # FIXME: insert proper C++ library support
19555 ld_shlibs_CXX=no
19556 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019557 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019558 # Lucid
19559 # FIXME: insert proper C++ library support
19560 ld_shlibs_CXX=no
19561 ;;
19562 *)
19563 # FIXME: insert proper C++ library support
19564 ld_shlibs_CXX=no
19565 ;;
19566 esac
19567 ;;
19568 solaris*)
19569 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019570 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019571 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019572 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019573 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019574 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 +000019575 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 +000019576 $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 +000019577
19578 hardcode_libdir_flag_spec_CXX='-R$libdir'
19579 hardcode_shlibpath_var_CXX=no
19580 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019581 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019582 *)
19583 # The C++ compiler is used as linker so we must use $wl
19584 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019585 # linker. We must also pass each convience library through
19586 # to the system linker between allextract/defaultextract.
19587 # The C++ compiler will combine linker options so we
19588 # cannot just pass the convience library names through
19589 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019590 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019591 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 +000019592 ;;
19593 esac
19594 link_all_deplibs_CXX=yes
19595
Reid Spencera773bd52006-08-04 18:18:08 +000019596 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019597
19598 # Archives containing C++ object files must be created using
19599 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19600 # necessary to make sure instantiated templates are included
19601 # in the archive.
19602 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19603 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019604 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019605 # Green Hills C++ Compiler
19606 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19607
19608 # The C++ compiler must be used to create the archive.
19609 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19610 ;;
19611 *)
19612 # GNU C++ compiler with Solaris linker
19613 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19614 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19615 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019616 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 +000019617 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19618 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19619
John Criswell47fdd832003-07-14 16:52:07 +000019620 # Commands to make compiler produce verbose output that lists
19621 # what "hidden" libraries, object files and flags are used when
19622 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019623 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019624 else
19625 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19626 # platform.
19627 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 +000019628 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19629 $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 +000019630
19631 # Commands to make compiler produce verbose output that lists
19632 # what "hidden" libraries, object files and flags are used when
19633 # linking a shared library.
19634 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19635 fi
19636
19637 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19638 fi
19639 ;;
19640 esac
19641 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019642 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19643 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019644 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019645 hardcode_shlibpath_var_CXX=no
19646 runpath_var='LD_RUN_PATH'
19647
19648 case $cc_basename in
19649 CC*)
19650 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19651 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19652 ;;
19653 *)
19654 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19655 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19656 ;;
19657 esac
19658 ;;
19659 sysv5* | sco3.2v5* | sco5v6*)
19660 # Note: We can NOT use -z defs as we might desire, because we do not
19661 # link with -lc, and that would cause any symbols used from libc to
19662 # always be unresolved, which means just about no library would
19663 # ever link correctly. If we're not using GNU ld we use -z text
19664 # though, which does catch some bad symbols but isn't as heavy-handed
19665 # as -z defs.
19666 # For security reasons, it is highly recommended that you always
19667 # use absolute paths for naming shared libraries, and exclude the
19668 # DT_RUNPATH tag from executables and libraries. But doing so
19669 # requires that you compile everything twice, which is a pain.
19670 # So that behaviour is only enabled if SCOABSPATH is set to a
19671 # non-empty value in the environment. Most likely only useful for
19672 # creating official distributions of packages.
19673 # This is a hack until libtool officially supports absolute path
19674 # names for shared libraries.
19675 no_undefined_flag_CXX='${wl}-z,text'
19676 allow_undefined_flag_CXX='${wl}-z,nodefs'
19677 archive_cmds_need_lc_CXX=no
19678 hardcode_shlibpath_var_CXX=no
19679 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19680 hardcode_libdir_separator_CXX=':'
19681 link_all_deplibs_CXX=yes
19682 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19683 runpath_var='LD_RUN_PATH'
19684
19685 case $cc_basename in
19686 CC*)
19687 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19688 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19689 ;;
19690 *)
19691 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19692 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19693 ;;
19694 esac
John Criswell47fdd832003-07-14 16:52:07 +000019695 ;;
19696 tandem*)
19697 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019698 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019699 # NonStop-UX NCC 3.20
19700 # FIXME: insert proper C++ library support
19701 ld_shlibs_CXX=no
19702 ;;
19703 *)
19704 # FIXME: insert proper C++ library support
19705 ld_shlibs_CXX=no
19706 ;;
19707 esac
19708 ;;
19709 vxworks*)
19710 # FIXME: insert proper C++ library support
19711 ld_shlibs_CXX=no
19712 ;;
19713 *)
19714 # FIXME: insert proper C++ library support
19715 ld_shlibs_CXX=no
19716 ;;
19717esac
Reid Spencera773bd52006-08-04 18:18:08 +000019718{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19719echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019720test "$ld_shlibs_CXX" = no && can_build_shared=no
19721
19722GCC_CXX="$GXX"
19723LD_CXX="$LD"
19724
John Criswell47fdd832003-07-14 16:52:07 +000019725
19726cat > conftest.$ac_ext <<EOF
19727class Foo
19728{
19729public:
19730 Foo (void) { a = 0; }
19731private:
19732 int a;
19733};
19734EOF
19735
19736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19737 (eval $ac_compile) 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; then
19741 # Parse the compiler output and extract the necessary
19742 # objects, libraries and library flags.
19743
19744 # Sentinel used to keep track of whether or not we are before
19745 # the conftest object file.
19746 pre_test_object_deps_done=no
19747
19748 # The `*' in the case matches for architectures that use `case' in
19749 # $output_verbose_cmd can trigger glob expansion during the loop
19750 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019751 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019752
19753 for p in `eval $output_verbose_link_cmd`; do
19754 case $p in
19755
19756 -L* | -R* | -l*)
19757 # Some compilers place space between "-{L,R}" and the path.
19758 # Remove the space.
19759 if test $p = "-L" \
19760 || test $p = "-R"; then
19761 prev=$p
19762 continue
19763 else
19764 prev=
19765 fi
19766
19767 if test "$pre_test_object_deps_done" = no; then
19768 case $p in
19769 -L* | -R*)
19770 # Internal compiler library paths should come after those
19771 # provided the user. The postdeps already come after the
19772 # user supplied libs so there is no need to process them.
19773 if test -z "$compiler_lib_search_path_CXX"; then
19774 compiler_lib_search_path_CXX="${prev}${p}"
19775 else
19776 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19777 fi
19778 ;;
19779 # The "-l" case would never come before the object being
19780 # linked, so don't bother handling this case.
19781 esac
19782 else
19783 if test -z "$postdeps_CXX"; then
19784 postdeps_CXX="${prev}${p}"
19785 else
19786 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19787 fi
19788 fi
19789 ;;
19790
19791 *.$objext)
19792 # This assumes that the test object file only shows up
19793 # once in the compiler output.
19794 if test "$p" = "conftest.$objext"; then
19795 pre_test_object_deps_done=yes
19796 continue
19797 fi
19798
19799 if test "$pre_test_object_deps_done" = no; then
19800 if test -z "$predep_objects_CXX"; then
19801 predep_objects_CXX="$p"
19802 else
19803 predep_objects_CXX="$predep_objects_CXX $p"
19804 fi
19805 else
19806 if test -z "$postdep_objects_CXX"; then
19807 postdep_objects_CXX="$p"
19808 else
19809 postdep_objects_CXX="$postdep_objects_CXX $p"
19810 fi
19811 fi
19812 ;;
19813
19814 *) ;; # Ignore the rest.
19815
19816 esac
19817 done
19818
19819 # Clean up.
19820 rm -f a.out a.exe
19821else
19822 echo "libtool.m4: error: problem compiling CXX test program"
19823fi
19824
19825$rm -f confest.$objext
19826
Reid Spencera773bd52006-08-04 18:18:08 +000019827# PORTME: override above test on systems where it is broken
19828case $host_os in
19829interix3*)
19830 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19831 # hack all around it, let's just trust "g++" to DTRT.
19832 predep_objects_CXX=
19833 postdep_objects_CXX=
19834 postdeps_CXX=
19835 ;;
19836
19837solaris*)
19838 case $cc_basename in
19839 CC*)
19840 # Adding this requires a known-good setup of shared libraries for
19841 # Sun compiler versions before 5.6, else PIC objects from an old
19842 # archive will be linked into the output, leading to subtle bugs.
19843 postdeps_CXX='-lCstd -lCrun'
19844 ;;
19845 esac
19846 ;;
19847esac
19848
19849
John Criswell47fdd832003-07-14 16:52:07 +000019850case " $postdeps_CXX " in
19851*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19852esac
19853
19854lt_prog_compiler_wl_CXX=
19855lt_prog_compiler_pic_CXX=
19856lt_prog_compiler_static_CXX=
19857
Reid Spencera773bd52006-08-04 18:18:08 +000019858{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19859echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019860
19861 # C++ specific cases for pic, static, wl, etc.
19862 if test "$GXX" = yes; then
19863 lt_prog_compiler_wl_CXX='-Wl,'
19864 lt_prog_compiler_static_CXX='-static'
19865
19866 case $host_os in
19867 aix*)
19868 # All AIX code is PIC.
19869 if test "$host_cpu" = ia64; then
19870 # AIX 5 now supports IA64 processor
19871 lt_prog_compiler_static_CXX='-Bstatic'
19872 fi
19873 ;;
19874 amigaos*)
19875 # FIXME: we need at least 68020 code to build shared libraries, but
19876 # adding the `-m68020' flag to GCC prevents building anything better,
19877 # like `-m68040'.
19878 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19879 ;;
19880 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19881 # PIC is the default for these OSes.
19882 ;;
19883 mingw* | os2* | pw32*)
19884 # This hack is so that the source file can tell whether it is being
19885 # built for inclusion in a dll (and should export symbols for example).
19886 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19887 ;;
19888 darwin* | rhapsody*)
19889 # PIC is the default on this platform
19890 # Common symbols not allowed in MH_DYLIB files
19891 lt_prog_compiler_pic_CXX='-fno-common'
19892 ;;
19893 *djgpp*)
19894 # DJGPP does not support shared libraries at all
19895 lt_prog_compiler_pic_CXX=
19896 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019897 interix3*)
19898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19899 # Instead, we relocate shared libraries at runtime.
19900 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019901 sysv4*MP*)
19902 if test -d /usr/nec; then
19903 lt_prog_compiler_pic_CXX=-Kconform_pic
19904 fi
19905 ;;
19906 hpux*)
19907 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19908 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019909 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019910 hppa*64*|ia64*)
19911 ;;
19912 *)
19913 lt_prog_compiler_pic_CXX='-fPIC'
19914 ;;
19915 esac
19916 ;;
19917 *)
19918 lt_prog_compiler_pic_CXX='-fPIC'
19919 ;;
19920 esac
19921 else
19922 case $host_os in
19923 aix4* | aix5*)
19924 # All AIX code is PIC.
19925 if test "$host_cpu" = ia64; then
19926 # AIX 5 now supports IA64 processor
19927 lt_prog_compiler_static_CXX='-Bstatic'
19928 else
19929 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19930 fi
19931 ;;
19932 chorus*)
19933 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019934 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019935 # Green Hills C++ Compiler
19936 # _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"
19937 ;;
19938 esac
19939 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019940 darwin*)
19941 # PIC is the default on this platform
19942 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019943 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019944 xlc*)
19945 lt_prog_compiler_pic_CXX='-qnocommon'
19946 lt_prog_compiler_wl_CXX='-Wl,'
19947 ;;
19948 esac
19949 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019950 dgux*)
19951 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019952 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019953 lt_prog_compiler_pic_CXX='-KPIC'
19954 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019955 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019956 # Green Hills C++ Compiler
19957 lt_prog_compiler_pic_CXX='-pic'
19958 ;;
19959 *)
19960 ;;
19961 esac
19962 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019963 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019964 # FreeBSD uses GNU C++
19965 ;;
19966 hpux9* | hpux10* | hpux11*)
19967 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019968 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019969 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019970 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019971 if test "$host_cpu" != ia64; then
19972 lt_prog_compiler_pic_CXX='+Z'
19973 fi
19974 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019975 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019976 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019977 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19978 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019979 hppa*64*|ia64*)
19980 # +Z the default
19981 ;;
19982 *)
19983 lt_prog_compiler_pic_CXX='+Z'
19984 ;;
19985 esac
19986 ;;
19987 *)
19988 ;;
19989 esac
19990 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019991 interix*)
19992 # This is c89, which is MS Visual C++ (no shared libs)
19993 # Anyone wants to do a port?
19994 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019995 irix5* | irix6* | nonstopux*)
19996 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019997 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019998 lt_prog_compiler_wl_CXX='-Wl,'
19999 lt_prog_compiler_static_CXX='-non_shared'
20000 # CC pic flag -KPIC is the default.
20001 ;;
20002 *)
20003 ;;
20004 esac
20005 ;;
20006 linux*)
20007 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020008 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020009 # KAI C++ Compiler
20010 lt_prog_compiler_wl_CXX='--backend -Wl,'
20011 lt_prog_compiler_pic_CXX='-fPIC'
20012 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020013 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000020014 # Intel C++
20015 lt_prog_compiler_wl_CXX='-Wl,'
20016 lt_prog_compiler_pic_CXX='-KPIC'
20017 lt_prog_compiler_static_CXX='-static'
20018 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020019 pgCC*)
20020 # Portland Group C++ compiler.
20021 lt_prog_compiler_wl_CXX='-Wl,'
20022 lt_prog_compiler_pic_CXX='-fpic'
20023 lt_prog_compiler_static_CXX='-Bstatic'
20024 ;;
20025 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020026 # Compaq C++
20027 # Make sure the PIC flag is empty. It appears that all Alpha
20028 # Linux and Compaq Tru64 Unix objects are PIC.
20029 lt_prog_compiler_pic_CXX=
20030 lt_prog_compiler_static_CXX='-non_shared'
20031 ;;
20032 *)
20033 ;;
20034 esac
20035 ;;
20036 lynxos*)
20037 ;;
20038 m88k*)
20039 ;;
20040 mvs*)
20041 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020042 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020043 lt_prog_compiler_pic_CXX='-W c,exportall'
20044 ;;
20045 *)
20046 ;;
20047 esac
20048 ;;
20049 netbsd*)
20050 ;;
20051 osf3* | osf4* | osf5*)
20052 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020053 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020054 lt_prog_compiler_wl_CXX='--backend -Wl,'
20055 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020056 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020057 # Rational C++ 2.4.1
20058 lt_prog_compiler_pic_CXX='-pic'
20059 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020060 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020061 # Digital/Compaq C++
20062 lt_prog_compiler_wl_CXX='-Wl,'
20063 # Make sure the PIC flag is empty. It appears that all Alpha
20064 # Linux and Compaq Tru64 Unix objects are PIC.
20065 lt_prog_compiler_pic_CXX=
20066 lt_prog_compiler_static_CXX='-non_shared'
20067 ;;
20068 *)
20069 ;;
20070 esac
20071 ;;
20072 psos*)
20073 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020074 solaris*)
20075 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020076 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020077 # Sun C++ 4.2, 5.x and Centerline C++
20078 lt_prog_compiler_pic_CXX='-KPIC'
20079 lt_prog_compiler_static_CXX='-Bstatic'
20080 lt_prog_compiler_wl_CXX='-Qoption ld '
20081 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020082 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000020083 # Green Hills C++ Compiler
20084 lt_prog_compiler_pic_CXX='-PIC'
20085 ;;
20086 *)
20087 ;;
20088 esac
20089 ;;
20090 sunos4*)
20091 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020092 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020093 # Sun C++ 4.x
20094 lt_prog_compiler_pic_CXX='-pic'
20095 lt_prog_compiler_static_CXX='-Bstatic'
20096 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020097 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000020098 # Lucid
20099 lt_prog_compiler_pic_CXX='-pic'
20100 ;;
20101 *)
20102 ;;
20103 esac
20104 ;;
20105 tandem*)
20106 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020107 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020108 # NonStop-UX NCC 3.20
20109 lt_prog_compiler_pic_CXX='-KPIC'
20110 ;;
20111 *)
20112 ;;
20113 esac
20114 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020115 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20116 case $cc_basename in
20117 CC*)
20118 lt_prog_compiler_wl_CXX='-Wl,'
20119 lt_prog_compiler_pic_CXX='-KPIC'
20120 lt_prog_compiler_static_CXX='-Bstatic'
20121 ;;
20122 esac
John Criswell47fdd832003-07-14 16:52:07 +000020123 ;;
20124 vxworks*)
20125 ;;
20126 *)
20127 lt_prog_compiler_can_build_shared_CXX=no
20128 ;;
20129 esac
20130 fi
20131
Reid Spencera773bd52006-08-04 18:18:08 +000020132{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20133echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020134
20135#
20136# Check to make sure the PIC flag actually works.
20137#
20138if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020139
Reid Spencera773bd52006-08-04 18:18:08 +000020140{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20141echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020142if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
20144else
20145 lt_prog_compiler_pic_works_CXX=no
20146 ac_outfile=conftest.$ac_objext
20147 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20148 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20149 # Insert the option either (1) after the last *FLAGS variable, or
20150 # (2) before a word containing "conftest.", or (3) at the end.
20151 # Note that $ac_compile itself does not contain backslashes and begins
20152 # with a dollar sign (not a hyphen), so the echo should work correctly.
20153 # The option is referenced via a variable to avoid confusing sed.
20154 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20157 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000020158 (eval echo "\"\$as_me:20158: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020159 (eval "$lt_compile" 2>conftest.err)
20160 ac_status=$?
20161 cat conftest.err >&5
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000020162 echo "$as_me:20162: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020163 if (exit $ac_status) && test -s "$ac_outfile"; then
20164 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020165 # So say no if there are warnings other than the usual output.
20166 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20168 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020169 lt_prog_compiler_pic_works_CXX=yes
20170 fi
20171 fi
20172 $rm conftest*
20173
20174fi
Reid Spencera773bd52006-08-04 18:18:08 +000020175{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20176echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020177
20178if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20179 case $lt_prog_compiler_pic_CXX in
20180 "" | " "*) ;;
20181 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20182 esac
20183else
20184 lt_prog_compiler_pic_CXX=
20185 lt_prog_compiler_can_build_shared_CXX=no
20186fi
20187
20188fi
Reid Spencera773bd52006-08-04 18:18:08 +000020189case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020190 # For platforms which do not support PIC, -DPIC is meaningless:
20191 *djgpp*)
20192 lt_prog_compiler_pic_CXX=
20193 ;;
20194 *)
20195 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20196 ;;
20197esac
20198
Reid Spencera773bd52006-08-04 18:18:08 +000020199#
20200# Check to make sure the static flag actually works.
20201#
20202wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20203{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20204echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20205if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20206 echo $ECHO_N "(cached) $ECHO_C" >&6
20207else
20208 lt_prog_compiler_static_works_CXX=no
20209 save_LDFLAGS="$LDFLAGS"
20210 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20211 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20212 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20213 # The linker can only warn and ignore the option if not recognized
20214 # So say no if there are warnings
20215 if test -s conftest.err; then
20216 # Append any errors to the config.log.
20217 cat conftest.err 1>&5
20218 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20220 if diff conftest.exp conftest.er2 >/dev/null; then
20221 lt_prog_compiler_static_works_CXX=yes
20222 fi
20223 else
20224 lt_prog_compiler_static_works_CXX=yes
20225 fi
20226 fi
20227 $rm conftest*
20228 LDFLAGS="$save_LDFLAGS"
20229
20230fi
20231{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20232echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20233
20234if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20235 :
20236else
20237 lt_prog_compiler_static_CXX=
20238fi
20239
20240
20241{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20242echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020243if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20244 echo $ECHO_N "(cached) $ECHO_C" >&6
20245else
20246 lt_cv_prog_compiler_c_o_CXX=no
20247 $rm -r conftest 2>/dev/null
20248 mkdir conftest
20249 cd conftest
20250 mkdir out
20251 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20252
John Criswell47fdd832003-07-14 16:52:07 +000020253 lt_compiler_flag="-o out/conftest2.$ac_objext"
20254 # Insert the option either (1) after the last *FLAGS variable, or
20255 # (2) before a word containing "conftest.", or (3) at the end.
20256 # Note that $ac_compile itself does not contain backslashes and begins
20257 # with a dollar sign (not a hyphen), so the echo should work correctly.
20258 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20261 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000020262 (eval echo "\"\$as_me:20262: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020263 (eval "$lt_compile" 2>out/conftest.err)
20264 ac_status=$?
20265 cat out/conftest.err >&5
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000020266 echo "$as_me:20266: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020267 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20268 then
20269 # The compiler can only warn and ignore the option if not recognized
20270 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020271 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20272 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20273 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020274 lt_cv_prog_compiler_c_o_CXX=yes
20275 fi
20276 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020277 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020278 $rm conftest*
20279 # SGI C++ compiler will create directory out/ii_files/ for
20280 # template instantiation
20281 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20282 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020283 cd ..
20284 rmdir conftest
20285 $rm conftest*
20286
20287fi
Reid Spencera773bd52006-08-04 18:18:08 +000020288{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20289echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020290
20291
20292hard_links="nottested"
20293if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20294 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020295 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20296echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020297 hard_links=yes
20298 $rm conftest*
20299 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20300 touch conftest.a
20301 ln conftest.a conftest.b 2>&5 || hard_links=no
20302 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020303 { echo "$as_me:$LINENO: result: $hard_links" >&5
20304echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020305 if test "$hard_links" = no; then
20306 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20307echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20308 need_locks=warn
20309 fi
20310else
20311 need_locks=no
20312fi
20313
Reid Spencera773bd52006-08-04 18:18:08 +000020314{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20315echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020316
20317 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20318 case $host_os in
20319 aix4* | aix5*)
20320 # If we're using GNU nm, then we don't want the "-C" option.
20321 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20322 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20323 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'
20324 else
20325 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'
20326 fi
20327 ;;
20328 pw32*)
20329 export_symbols_cmds_CXX="$ltdll_cmds"
20330 ;;
20331 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020332 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 +000020333 ;;
20334 *)
20335 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20336 ;;
20337 esac
20338
Reid Spencera773bd52006-08-04 18:18:08 +000020339{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20340echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020341test "$ld_shlibs_CXX" = no && can_build_shared=no
20342
John Criswell47fdd832003-07-14 16:52:07 +000020343#
20344# Do we need to explicitly link libc?
20345#
20346case "x$archive_cmds_need_lc_CXX" in
20347x|xyes)
20348 # Assume -lc should be added
20349 archive_cmds_need_lc_CXX=yes
20350
20351 if test "$enable_shared" = yes && test "$GCC" = yes; then
20352 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020353 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020354 # FIXME: we may have to deal with multi-command sequences.
20355 ;;
20356 '$CC '*)
20357 # Test whether the compiler implicitly links with -lc since on some
20358 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20359 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020360 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20361echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020362 $rm conftest*
20363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20364
20365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20366 (eval $ac_compile) 2>&5
20367 ac_status=$?
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } 2>conftest.err; then
20370 soname=conftest
20371 lib=conftest
20372 libobjs=conftest.$ac_objext
20373 deplibs=
20374 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020375 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020376 compiler_flags=-v
20377 linker_flags=-v
20378 verstring=
20379 output_objdir=.
20380 libname=conftest
20381 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20382 allow_undefined_flag_CXX=
20383 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20384 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20385 ac_status=$?
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }
20388 then
20389 archive_cmds_need_lc_CXX=no
20390 else
20391 archive_cmds_need_lc_CXX=yes
20392 fi
20393 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20394 else
20395 cat conftest.err 1>&5
20396 fi
20397 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020398 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20399echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020400 ;;
20401 esac
20402 fi
20403 ;;
20404esac
20405
Reid Spencera773bd52006-08-04 18:18:08 +000020406{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20407echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020408library_names_spec=
20409libname_spec='lib$name'
20410soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020411shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020412postinstall_cmds=
20413postuninstall_cmds=
20414finish_cmds=
20415finish_eval=
20416shlibpath_var=
20417shlibpath_overrides_runpath=unknown
20418version_type=none
20419dynamic_linker="$host_os ld.so"
20420sys_lib_dlsearch_path_spec="/lib /usr/lib"
20421if test "$GCC" = yes; then
20422 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20423 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20424 # if the path contains ";" then we assume it to be the separator
20425 # otherwise default to the standard path separator (i.e. ":") - it is
20426 # assumed that no part of a normal pathname contains ";" but that should
20427 # okay in the real world where ";" in dirpaths is itself problematic.
20428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20429 else
20430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20431 fi
20432else
20433 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20434fi
20435need_lib_prefix=unknown
20436hardcode_into_libs=no
20437
20438# when you set need_version to no, make sure it does not cause -set_version
20439# flags to be left without arguments
20440need_version=unknown
20441
20442case $host_os in
20443aix3*)
20444 version_type=linux
20445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20446 shlibpath_var=LIBPATH
20447
20448 # AIX 3 has no versioning support, so we append a major version to the name.
20449 soname_spec='${libname}${release}${shared_ext}$major'
20450 ;;
20451
20452aix4* | aix5*)
20453 version_type=linux
20454 need_lib_prefix=no
20455 need_version=no
20456 hardcode_into_libs=yes
20457 if test "$host_cpu" = ia64; then
20458 # AIX 5 supports IA64
20459 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20460 shlibpath_var=LD_LIBRARY_PATH
20461 else
20462 # With GCC up to 2.95.x, collect2 would create an import file
20463 # for dependence libraries. The import file would start with
20464 # the line `#! .'. This would cause the generated library to
20465 # depend on `.', always an invalid library. This was fixed in
20466 # development snapshots of GCC prior to 3.0.
20467 case $host_os in
20468 aix4 | aix4.[01] | aix4.[01].*)
20469 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20470 echo ' yes '
20471 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20472 :
20473 else
20474 can_build_shared=no
20475 fi
20476 ;;
20477 esac
20478 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20479 # soname into executable. Probably we can add versioning support to
20480 # collect2, so additional links can be useful in future.
20481 if test "$aix_use_runtimelinking" = yes; then
20482 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20483 # instead of lib<name>.a to let people know that these are not
20484 # typical AIX shared libraries.
20485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20486 else
20487 # We preserve .a as extension for shared libraries through AIX4.2
20488 # and later when we are not doing run time linking.
20489 library_names_spec='${libname}${release}.a $libname.a'
20490 soname_spec='${libname}${release}${shared_ext}$major'
20491 fi
20492 shlibpath_var=LIBPATH
20493 fi
20494 ;;
20495
20496amigaos*)
20497 library_names_spec='$libname.ixlibrary $libname.a'
20498 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020499 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 +000020500 ;;
20501
20502beos*)
20503 library_names_spec='${libname}${shared_ext}'
20504 dynamic_linker="$host_os ld.so"
20505 shlibpath_var=LIBRARY_PATH
20506 ;;
20507
Reid Spencer2706f8c2004-09-19 23:53:36 +000020508bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020509 version_type=linux
20510 need_version=no
20511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20512 soname_spec='${libname}${release}${shared_ext}$major'
20513 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20514 shlibpath_var=LD_LIBRARY_PATH
20515 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20516 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20517 # the default ld.so.conf also contains /usr/contrib/lib and
20518 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20519 # libtool to hard-code these into programs
20520 ;;
20521
20522cygwin* | mingw* | pw32*)
20523 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020524 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020525 need_version=no
20526 need_lib_prefix=no
20527
20528 case $GCC,$host_os in
20529 yes,cygwin* | yes,mingw* | yes,pw32*)
20530 library_names_spec='$libname.dll.a'
20531 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020532 postinstall_cmds='base_file=`basename \${file}`~
20533 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20534 dldir=$destdir/`dirname \$dlpath`~
20535 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020536 $install_prog $dir/$dlname \$dldir/$dlname~
20537 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020538 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20539 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020540 $rm \$dlpath'
20541 shlibpath_overrides_runpath=yes
20542
20543 case $host_os in
20544 cygwin*)
20545 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20546 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 +000020547 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020548 ;;
20549 mingw*)
20550 # MinGW DLLs use traditional 'lib' prefix
20551 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20552 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20553 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20554 # It is most probably a Windows format PATH printed by
20555 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20556 # path with ; separators, and with drive letters. We can handle the
20557 # drive letters (cygwin fileutils understands them), so leave them,
20558 # especially as we might pass files found there to a mingw objdump,
20559 # which wouldn't understand a cygwinified path. Ahh.
20560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20561 else
20562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20563 fi
20564 ;;
20565 pw32*)
20566 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020567 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 +000020568 ;;
20569 esac
20570 ;;
20571
20572 *)
20573 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20574 ;;
20575 esac
20576 dynamic_linker='Win32 ld.exe'
20577 # FIXME: first we should search . and the directory the executable is in
20578 shlibpath_var=PATH
20579 ;;
20580
20581darwin* | rhapsody*)
20582 dynamic_linker="$host_os dyld"
20583 version_type=darwin
20584 need_lib_prefix=no
20585 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020586 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020587 soname_spec='${libname}${release}${major}$shared_ext'
20588 shlibpath_overrides_runpath=yes
20589 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020590 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020591 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020592 if test "$GCC" = yes; then
20593 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"`
20594 else
20595 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020596 fi
20597 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20598 ;;
20599
20600dgux*)
20601 version_type=linux
20602 need_lib_prefix=no
20603 need_version=no
20604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20605 soname_spec='${libname}${release}${shared_ext}$major'
20606 shlibpath_var=LD_LIBRARY_PATH
20607 ;;
20608
20609freebsd1*)
20610 dynamic_linker=no
20611 ;;
20612
Reid Spencer2706f8c2004-09-19 23:53:36 +000020613kfreebsd*-gnu)
20614 version_type=linux
20615 need_lib_prefix=no
20616 need_version=no
20617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20618 soname_spec='${libname}${release}${shared_ext}$major'
20619 shlibpath_var=LD_LIBRARY_PATH
20620 shlibpath_overrides_runpath=no
20621 hardcode_into_libs=yes
20622 dynamic_linker='GNU ld.so'
20623 ;;
20624
Reid Spencera773bd52006-08-04 18:18:08 +000020625freebsd* | dragonfly*)
20626 # DragonFly does not have aout. When/if they implement a new
20627 # versioning mechanism, adjust this.
20628 if test -x /usr/bin/objformat; then
20629 objformat=`/usr/bin/objformat`
20630 else
20631 case $host_os in
20632 freebsd[123]*) objformat=aout ;;
20633 *) objformat=elf ;;
20634 esac
20635 fi
John Criswell47fdd832003-07-14 16:52:07 +000020636 version_type=freebsd-$objformat
20637 case $version_type in
20638 freebsd-elf*)
20639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20640 need_version=no
20641 need_lib_prefix=no
20642 ;;
20643 freebsd-*)
20644 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20645 need_version=yes
20646 ;;
20647 esac
20648 shlibpath_var=LD_LIBRARY_PATH
20649 case $host_os in
20650 freebsd2*)
20651 shlibpath_overrides_runpath=yes
20652 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020653 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020654 shlibpath_overrides_runpath=yes
20655 hardcode_into_libs=yes
20656 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020657 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20658 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020659 shlibpath_overrides_runpath=no
20660 hardcode_into_libs=yes
20661 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020662 freebsd*) # from 4.6 on
20663 shlibpath_overrides_runpath=yes
20664 hardcode_into_libs=yes
20665 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020666 esac
20667 ;;
20668
20669gnu*)
20670 version_type=linux
20671 need_lib_prefix=no
20672 need_version=no
20673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20674 soname_spec='${libname}${release}${shared_ext}$major'
20675 shlibpath_var=LD_LIBRARY_PATH
20676 hardcode_into_libs=yes
20677 ;;
20678
20679hpux9* | hpux10* | hpux11*)
20680 # Give a soname corresponding to the major version so that dld.sl refuses to
20681 # link against other versions.
20682 version_type=sunos
20683 need_lib_prefix=no
20684 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020685 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020686 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020687 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020688 hardcode_into_libs=yes
20689 dynamic_linker="$host_os dld.so"
20690 shlibpath_var=LD_LIBRARY_PATH
20691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20693 soname_spec='${libname}${release}${shared_ext}$major'
20694 if test "X$HPUX_IA64_MODE" = X32; then
20695 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20696 else
20697 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20698 fi
20699 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20700 ;;
20701 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020702 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020703 hardcode_into_libs=yes
20704 dynamic_linker="$host_os dld.sl"
20705 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20706 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20708 soname_spec='${libname}${release}${shared_ext}$major'
20709 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20711 ;;
20712 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020713 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020714 dynamic_linker="$host_os dld.sl"
20715 shlibpath_var=SHLIB_PATH
20716 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20718 soname_spec='${libname}${release}${shared_ext}$major'
20719 ;;
20720 esac
20721 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20722 postinstall_cmds='chmod 555 $lib'
20723 ;;
20724
Reid Spencera773bd52006-08-04 18:18:08 +000020725interix3*)
20726 version_type=linux
20727 need_lib_prefix=no
20728 need_version=no
20729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20730 soname_spec='${libname}${release}${shared_ext}$major'
20731 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20732 shlibpath_var=LD_LIBRARY_PATH
20733 shlibpath_overrides_runpath=no
20734 hardcode_into_libs=yes
20735 ;;
20736
John Criswell47fdd832003-07-14 16:52:07 +000020737irix5* | irix6* | nonstopux*)
20738 case $host_os in
20739 nonstopux*) version_type=nonstopux ;;
20740 *)
20741 if test "$lt_cv_prog_gnu_ld" = yes; then
20742 version_type=linux
20743 else
20744 version_type=irix
20745 fi ;;
20746 esac
20747 need_lib_prefix=no
20748 need_version=no
20749 soname_spec='${libname}${release}${shared_ext}$major'
20750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20751 case $host_os in
20752 irix5* | nonstopux*)
20753 libsuff= shlibsuff=
20754 ;;
20755 *)
20756 case $LD in # libtool.m4 will add one of these switches to LD
20757 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20758 libsuff= shlibsuff= libmagic=32-bit;;
20759 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20760 libsuff=32 shlibsuff=N32 libmagic=N32;;
20761 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20762 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20763 *) libsuff= shlibsuff= libmagic=never-match;;
20764 esac
20765 ;;
20766 esac
20767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20768 shlibpath_overrides_runpath=no
20769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20771 hardcode_into_libs=yes
20772 ;;
20773
20774# No shared lib support for Linux oldld, aout, or coff.
20775linux*oldld* | linux*aout* | linux*coff*)
20776 dynamic_linker=no
20777 ;;
20778
20779# This must be Linux ELF.
20780linux*)
20781 version_type=linux
20782 need_lib_prefix=no
20783 need_version=no
20784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20785 soname_spec='${libname}${release}${shared_ext}$major'
20786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20787 shlibpath_var=LD_LIBRARY_PATH
20788 shlibpath_overrides_runpath=no
20789 # This implies no fast_install, which is unacceptable.
20790 # Some rework will be needed to allow for fast_install
20791 # before this can be enabled.
20792 hardcode_into_libs=yes
20793
Reid Spencer2706f8c2004-09-19 23:53:36 +000020794 # Append ld.so.conf contents to the search path
20795 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020796 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 +000020797 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20798 fi
20799
John Criswell47fdd832003-07-14 16:52:07 +000020800 # We used to test for /lib/ld.so.1 and disable shared libraries on
20801 # powerpc, because MkLinux only supported shared libraries with the
20802 # GNU dynamic linker. Since this was broken with cross compilers,
20803 # most powerpc-linux boxes support dynamic linking these days and
20804 # people can always --disable-shared, the test was removed, and we
20805 # assume the GNU/Linux dynamic linker is in use.
20806 dynamic_linker='GNU/Linux ld.so'
20807 ;;
20808
Reid Spencer2706f8c2004-09-19 23:53:36 +000020809knetbsd*-gnu)
20810 version_type=linux
20811 need_lib_prefix=no
20812 need_version=no
20813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20814 soname_spec='${libname}${release}${shared_ext}$major'
20815 shlibpath_var=LD_LIBRARY_PATH
20816 shlibpath_overrides_runpath=no
20817 hardcode_into_libs=yes
20818 dynamic_linker='GNU ld.so'
20819 ;;
20820
John Criswell47fdd832003-07-14 16:52:07 +000020821netbsd*)
20822 version_type=sunos
20823 need_lib_prefix=no
20824 need_version=no
20825 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20828 dynamic_linker='NetBSD (a.out) ld.so'
20829 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020831 soname_spec='${libname}${release}${shared_ext}$major'
20832 dynamic_linker='NetBSD ld.elf_so'
20833 fi
20834 shlibpath_var=LD_LIBRARY_PATH
20835 shlibpath_overrides_runpath=yes
20836 hardcode_into_libs=yes
20837 ;;
20838
20839newsos6)
20840 version_type=linux
20841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20842 shlibpath_var=LD_LIBRARY_PATH
20843 shlibpath_overrides_runpath=yes
20844 ;;
20845
Reid Spencer2706f8c2004-09-19 23:53:36 +000020846nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020847 version_type=linux
20848 need_lib_prefix=no
20849 need_version=no
20850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20851 soname_spec='${libname}${release}${shared_ext}$major'
20852 shlibpath_var=LD_LIBRARY_PATH
20853 shlibpath_overrides_runpath=yes
20854 ;;
20855
20856openbsd*)
20857 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020858 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020859 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020860 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20861 case $host_os in
20862 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20863 *) need_version=no ;;
20864 esac
John Criswell47fdd832003-07-14 16:52:07 +000020865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20867 shlibpath_var=LD_LIBRARY_PATH
20868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20869 case $host_os in
20870 openbsd2.[89] | openbsd2.[89].*)
20871 shlibpath_overrides_runpath=no
20872 ;;
20873 *)
20874 shlibpath_overrides_runpath=yes
20875 ;;
20876 esac
20877 else
20878 shlibpath_overrides_runpath=yes
20879 fi
20880 ;;
20881
20882os2*)
20883 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020884 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020885 need_lib_prefix=no
20886 library_names_spec='$libname${shared_ext} $libname.a'
20887 dynamic_linker='OS/2 ld.exe'
20888 shlibpath_var=LIBPATH
20889 ;;
20890
20891osf3* | osf4* | osf5*)
20892 version_type=osf
20893 need_lib_prefix=no
20894 need_version=no
20895 soname_spec='${libname}${release}${shared_ext}$major'
20896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20897 shlibpath_var=LD_LIBRARY_PATH
20898 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20899 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20900 ;;
20901
John Criswell47fdd832003-07-14 16:52:07 +000020902solaris*)
20903 version_type=linux
20904 need_lib_prefix=no
20905 need_version=no
20906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20907 soname_spec='${libname}${release}${shared_ext}$major'
20908 shlibpath_var=LD_LIBRARY_PATH
20909 shlibpath_overrides_runpath=yes
20910 hardcode_into_libs=yes
20911 # ldd complains unless libraries are executable
20912 postinstall_cmds='chmod +x $lib'
20913 ;;
20914
20915sunos4*)
20916 version_type=sunos
20917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20918 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20919 shlibpath_var=LD_LIBRARY_PATH
20920 shlibpath_overrides_runpath=yes
20921 if test "$with_gnu_ld" = yes; then
20922 need_lib_prefix=no
20923 fi
20924 need_version=yes
20925 ;;
20926
Reid Spencera773bd52006-08-04 18:18:08 +000020927sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020928 version_type=linux
20929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20930 soname_spec='${libname}${release}${shared_ext}$major'
20931 shlibpath_var=LD_LIBRARY_PATH
20932 case $host_vendor in
20933 sni)
20934 shlibpath_overrides_runpath=no
20935 need_lib_prefix=no
20936 export_dynamic_flag_spec='${wl}-Blargedynsym'
20937 runpath_var=LD_RUN_PATH
20938 ;;
20939 siemens)
20940 need_lib_prefix=no
20941 ;;
20942 motorola)
20943 need_lib_prefix=no
20944 need_version=no
20945 shlibpath_overrides_runpath=no
20946 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20947 ;;
20948 esac
20949 ;;
20950
20951sysv4*MP*)
20952 if test -d /usr/nec ;then
20953 version_type=linux
20954 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20955 soname_spec='$libname${shared_ext}.$major'
20956 shlibpath_var=LD_LIBRARY_PATH
20957 fi
20958 ;;
20959
Reid Spencera773bd52006-08-04 18:18:08 +000020960sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20961 version_type=freebsd-elf
20962 need_lib_prefix=no
20963 need_version=no
20964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20965 soname_spec='${libname}${release}${shared_ext}$major'
20966 shlibpath_var=LD_LIBRARY_PATH
20967 hardcode_into_libs=yes
20968 if test "$with_gnu_ld" = yes; then
20969 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20970 shlibpath_overrides_runpath=no
20971 else
20972 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20973 shlibpath_overrides_runpath=yes
20974 case $host_os in
20975 sco3.2v5*)
20976 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20977 ;;
20978 esac
20979 fi
20980 sys_lib_dlsearch_path_spec='/usr/lib'
20981 ;;
20982
John Criswell47fdd832003-07-14 16:52:07 +000020983uts4*)
20984 version_type=linux
20985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20986 soname_spec='${libname}${release}${shared_ext}$major'
20987 shlibpath_var=LD_LIBRARY_PATH
20988 ;;
20989
20990*)
20991 dynamic_linker=no
20992 ;;
20993esac
Reid Spencera773bd52006-08-04 18:18:08 +000020994{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20995echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020996test "$dynamic_linker" = no && can_build_shared=no
20997
Reid Spencera773bd52006-08-04 18:18:08 +000020998variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20999if test "$GCC" = yes; then
21000 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21001fi
21002
21003{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21004echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021005hardcode_action_CXX=
21006if test -n "$hardcode_libdir_flag_spec_CXX" || \
21007 test -n "$runpath_var_CXX" || \
21008 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21009
21010 # We can hardcode non-existant directories.
21011 if test "$hardcode_direct_CXX" != no &&
21012 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21013 # have to relink, otherwise we might link with an installed library
21014 # when we should be linking with a yet-to-be-installed one
21015 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21016 test "$hardcode_minus_L_CXX" != no; then
21017 # Linking always hardcodes the temporary library directory.
21018 hardcode_action_CXX=relink
21019 else
21020 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21021 hardcode_action_CXX=immediate
21022 fi
21023else
21024 # We cannot hardcode anything, or else we can only hardcode existing
21025 # directories.
21026 hardcode_action_CXX=unsupported
21027fi
Reid Spencera773bd52006-08-04 18:18:08 +000021028{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21029echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021030
21031if test "$hardcode_action_CXX" = relink; then
21032 # Fast installation is not supported
21033 enable_fast_install=no
21034elif test "$shlibpath_overrides_runpath" = yes ||
21035 test "$enable_shared" = no; then
21036 # Fast installation is not necessary
21037 enable_fast_install=needless
21038fi
21039
John Criswell47fdd832003-07-14 16:52:07 +000021040
21041# The else clause should only fire when bootstrapping the
21042# libtool distribution, otherwise you forgot to ship ltmain.sh
21043# with your package, and you will get complaints that there are
21044# no rules to generate ltmain.sh.
21045if test -f "$ltmain"; then
21046 # See if we are running on zsh, and set the options which allow our commands through
21047 # without removal of \ escapes.
21048 if test -n "${ZSH_VERSION+set}" ; then
21049 setopt NO_GLOB_SUBST
21050 fi
21051 # Now quote all the things that may contain metacharacters while being
21052 # careful not to overquote the AC_SUBSTed values. We take copies of the
21053 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000021054 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 +000021055 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000021056 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21057 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21058 deplibs_check_method reload_flag reload_cmds need_locks \
21059 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21060 lt_cv_sys_global_symbol_to_c_name_address \
21061 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21062 old_postinstall_cmds old_postuninstall_cmds \
21063 compiler_CXX \
21064 CC_CXX \
21065 LD_CXX \
21066 lt_prog_compiler_wl_CXX \
21067 lt_prog_compiler_pic_CXX \
21068 lt_prog_compiler_static_CXX \
21069 lt_prog_compiler_no_builtin_flag_CXX \
21070 export_dynamic_flag_spec_CXX \
21071 thread_safe_flag_spec_CXX \
21072 whole_archive_flag_spec_CXX \
21073 enable_shared_with_static_runtimes_CXX \
21074 old_archive_cmds_CXX \
21075 old_archive_from_new_cmds_CXX \
21076 predep_objects_CXX \
21077 postdep_objects_CXX \
21078 predeps_CXX \
21079 postdeps_CXX \
21080 compiler_lib_search_path_CXX \
21081 archive_cmds_CXX \
21082 archive_expsym_cmds_CXX \
21083 postinstall_cmds_CXX \
21084 postuninstall_cmds_CXX \
21085 old_archive_from_expsyms_cmds_CXX \
21086 allow_undefined_flag_CXX \
21087 no_undefined_flag_CXX \
21088 export_symbols_cmds_CXX \
21089 hardcode_libdir_flag_spec_CXX \
21090 hardcode_libdir_flag_spec_ld_CXX \
21091 hardcode_libdir_separator_CXX \
21092 hardcode_automatic_CXX \
21093 module_cmds_CXX \
21094 module_expsym_cmds_CXX \
21095 lt_cv_prog_compiler_c_o_CXX \
21096 exclude_expsyms_CXX \
21097 include_expsyms_CXX; do
21098
21099 case $var in
21100 old_archive_cmds_CXX | \
21101 old_archive_from_new_cmds_CXX | \
21102 archive_cmds_CXX | \
21103 archive_expsym_cmds_CXX | \
21104 module_cmds_CXX | \
21105 module_expsym_cmds_CXX | \
21106 old_archive_from_expsyms_cmds_CXX | \
21107 export_symbols_cmds_CXX | \
21108 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21109 postinstall_cmds | postuninstall_cmds | \
21110 old_postinstall_cmds | old_postuninstall_cmds | \
21111 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21112 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021113 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 +000021114 ;;
21115 *)
21116 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21117 ;;
21118 esac
21119 done
21120
21121 case $lt_echo in
21122 *'\$0 --fallback-echo"')
21123 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21124 ;;
21125 esac
21126
21127cfgfile="$ofile"
21128
21129 cat <<__EOF__ >> "$cfgfile"
21130# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21131
21132# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21133
21134# Shell to use when invoking shell scripts.
21135SHELL=$lt_SHELL
21136
21137# Whether or not to build shared libraries.
21138build_libtool_libs=$enable_shared
21139
21140# Whether or not to build static libraries.
21141build_old_libs=$enable_static
21142
21143# Whether or not to add -lc for building shared libraries.
21144build_libtool_need_lc=$archive_cmds_need_lc_CXX
21145
21146# Whether or not to disallow shared libs when runtime libs are static
21147allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21148
21149# Whether or not to optimize for fast installation.
21150fast_install=$enable_fast_install
21151
21152# The host system.
21153host_alias=$host_alias
21154host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021155host_os=$host_os
21156
21157# The build system.
21158build_alias=$build_alias
21159build=$build
21160build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021161
21162# An echo program that does not interpret backslashes.
21163echo=$lt_echo
21164
21165# The archiver.
21166AR=$lt_AR
21167AR_FLAGS=$lt_AR_FLAGS
21168
21169# A C compiler.
21170LTCC=$lt_LTCC
21171
Reid Spencera773bd52006-08-04 18:18:08 +000021172# LTCC compiler flags.
21173LTCFLAGS=$lt_LTCFLAGS
21174
John Criswell47fdd832003-07-14 16:52:07 +000021175# A language-specific compiler.
21176CC=$lt_compiler_CXX
21177
21178# Is the compiler the GNU C compiler?
21179with_gcc=$GCC_CXX
21180
21181# An ERE matcher.
21182EGREP=$lt_EGREP
21183
21184# The linker used to build libraries.
21185LD=$lt_LD_CXX
21186
21187# Whether we need hard or soft links.
21188LN_S=$lt_LN_S
21189
21190# A BSD-compatible nm program.
21191NM=$lt_NM
21192
21193# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021194STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021195
21196# Used to examine libraries when file_magic_cmd begins "file"
21197MAGIC_CMD=$MAGIC_CMD
21198
21199# Used on cygwin: DLL creation program.
21200DLLTOOL="$DLLTOOL"
21201
21202# Used on cygwin: object dumper.
21203OBJDUMP="$OBJDUMP"
21204
21205# Used on cygwin: assembler.
21206AS="$AS"
21207
21208# The name of the directory that contains temporary libtool files.
21209objdir=$objdir
21210
21211# How to create reloadable object files.
21212reload_flag=$lt_reload_flag
21213reload_cmds=$lt_reload_cmds
21214
21215# How to pass a linker flag through the compiler.
21216wl=$lt_lt_prog_compiler_wl_CXX
21217
21218# Object file suffix (normally "o").
21219objext="$ac_objext"
21220
21221# Old archive suffix (normally "a").
21222libext="$libext"
21223
21224# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021225shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021226
21227# Executable file suffix (normally "").
21228exeext="$exeext"
21229
21230# Additional compiler flags for building library objects.
21231pic_flag=$lt_lt_prog_compiler_pic_CXX
21232pic_mode=$pic_mode
21233
21234# What is the maximum length of a command?
21235max_cmd_len=$lt_cv_sys_max_cmd_len
21236
21237# Does compiler simultaneously support -c and -o options?
21238compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21239
Reid Spencera773bd52006-08-04 18:18:08 +000021240# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021241need_locks=$lt_need_locks
21242
21243# Do we need the lib prefix for modules?
21244need_lib_prefix=$need_lib_prefix
21245
21246# Do we need a version for libraries?
21247need_version=$need_version
21248
21249# Whether dlopen is supported.
21250dlopen_support=$enable_dlopen
21251
21252# Whether dlopen of programs is supported.
21253dlopen_self=$enable_dlopen_self
21254
21255# Whether dlopen of statically linked programs is supported.
21256dlopen_self_static=$enable_dlopen_self_static
21257
21258# Compiler flag to prevent dynamic linking.
21259link_static_flag=$lt_lt_prog_compiler_static_CXX
21260
21261# Compiler flag to turn off builtin functions.
21262no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21263
21264# Compiler flag to allow reflexive dlopens.
21265export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21266
21267# Compiler flag to generate shared objects directly from archives.
21268whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21269
21270# Compiler flag to generate thread-safe objects.
21271thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21272
21273# Library versioning type.
21274version_type=$version_type
21275
21276# Format of library name prefix.
21277libname_spec=$lt_libname_spec
21278
21279# List of archive names. First name is the real one, the rest are links.
21280# The last name is the one that the linker finds with -lNAME.
21281library_names_spec=$lt_library_names_spec
21282
21283# The coded name of the library, if different from the real name.
21284soname_spec=$lt_soname_spec
21285
21286# Commands used to build and install an old-style archive.
21287RANLIB=$lt_RANLIB
21288old_archive_cmds=$lt_old_archive_cmds_CXX
21289old_postinstall_cmds=$lt_old_postinstall_cmds
21290old_postuninstall_cmds=$lt_old_postuninstall_cmds
21291
21292# Create an old-style archive from a shared archive.
21293old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21294
21295# Create a temporary old-style archive to link instead of a shared archive.
21296old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21297
21298# Commands used to build and install a shared archive.
21299archive_cmds=$lt_archive_cmds_CXX
21300archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21301postinstall_cmds=$lt_postinstall_cmds
21302postuninstall_cmds=$lt_postuninstall_cmds
21303
21304# Commands used to build a loadable module (assumed same as above if empty)
21305module_cmds=$lt_module_cmds_CXX
21306module_expsym_cmds=$lt_module_expsym_cmds_CXX
21307
21308# Commands to strip libraries.
21309old_striplib=$lt_old_striplib
21310striplib=$lt_striplib
21311
21312# Dependencies to place before the objects being linked to create a
21313# shared library.
21314predep_objects=$lt_predep_objects_CXX
21315
21316# Dependencies to place after the objects being linked to create a
21317# shared library.
21318postdep_objects=$lt_postdep_objects_CXX
21319
21320# Dependencies to place before the objects being linked to create a
21321# shared library.
21322predeps=$lt_predeps_CXX
21323
21324# Dependencies to place after the objects being linked to create a
21325# shared library.
21326postdeps=$lt_postdeps_CXX
21327
21328# The library search path used internally by the compiler when linking
21329# a shared library.
21330compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21331
21332# Method to check whether dependent libraries are shared objects.
21333deplibs_check_method=$lt_deplibs_check_method
21334
21335# Command to use when deplibs_check_method == file_magic.
21336file_magic_cmd=$lt_file_magic_cmd
21337
21338# Flag that allows shared libraries with undefined symbols to be built.
21339allow_undefined_flag=$lt_allow_undefined_flag_CXX
21340
21341# Flag that forces no undefined symbols.
21342no_undefined_flag=$lt_no_undefined_flag_CXX
21343
21344# Commands used to finish a libtool library installation in a directory.
21345finish_cmds=$lt_finish_cmds
21346
21347# Same as above, but a single script fragment to be evaled but not shown.
21348finish_eval=$lt_finish_eval
21349
21350# Take the output of nm and produce a listing of raw symbols and C names.
21351global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21352
21353# Transform the output of nm in a proper C declaration
21354global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21355
21356# Transform the output of nm in a C name address pair
21357global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21358
21359# This is the shared library runtime path variable.
21360runpath_var=$runpath_var
21361
21362# This is the shared library path variable.
21363shlibpath_var=$shlibpath_var
21364
21365# Is shlibpath searched before the hard-coded library search path?
21366shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21367
21368# How to hardcode a shared library path into an executable.
21369hardcode_action=$hardcode_action_CXX
21370
21371# Whether we should hardcode library paths into libraries.
21372hardcode_into_libs=$hardcode_into_libs
21373
21374# Flag to hardcode \$libdir into a binary during linking.
21375# This must work even if \$libdir does not exist.
21376hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21377
21378# If ld is used when linking, flag to hardcode \$libdir into
21379# a binary during linking. This must work even if \$libdir does
21380# not exist.
21381hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21382
21383# Whether we need a single -rpath flag with a separated argument.
21384hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21385
21386# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21387# resulting binary.
21388hardcode_direct=$hardcode_direct_CXX
21389
21390# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21391# resulting binary.
21392hardcode_minus_L=$hardcode_minus_L_CXX
21393
21394# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21395# the resulting binary.
21396hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21397
21398# Set to yes if building a shared library automatically hardcodes DIR into the library
21399# and all subsequent libraries and executables linked against it.
21400hardcode_automatic=$hardcode_automatic_CXX
21401
21402# Variables whose values should be saved in libtool wrapper scripts and
21403# restored at relink time.
21404variables_saved_for_relink="$variables_saved_for_relink"
21405
21406# Whether libtool must link a program against all its dependency libraries.
21407link_all_deplibs=$link_all_deplibs_CXX
21408
21409# Compile-time system search path for libraries
21410sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21411
21412# Run-time system search path for libraries
21413sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21414
21415# Fix the shell variable \$srcfile for the compiler.
21416fix_srcfile_path="$fix_srcfile_path_CXX"
21417
21418# Set to yes if exported symbols are required.
21419always_export_symbols=$always_export_symbols_CXX
21420
21421# The commands to list exported symbols.
21422export_symbols_cmds=$lt_export_symbols_cmds_CXX
21423
21424# The commands to extract the exported symbol list from a shared archive.
21425extract_expsyms_cmds=$lt_extract_expsyms_cmds
21426
21427# Symbols that should not be listed in the preloaded symbols.
21428exclude_expsyms=$lt_exclude_expsyms_CXX
21429
21430# Symbols that must always be exported.
21431include_expsyms=$lt_include_expsyms_CXX
21432
21433# ### END LIBTOOL TAG CONFIG: $tagname
21434
21435__EOF__
21436
21437
21438else
21439 # If there is no Makefile yet, we rely on a make rule to execute
21440 # `config.status --recheck' to rerun these tests and create the
21441 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021442 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21443 if test -f "$ltmain_in"; then
21444 test -f Makefile && make "$ltmain"
21445 fi
John Criswell47fdd832003-07-14 16:52:07 +000021446fi
21447
21448
21449ac_ext=c
21450ac_cpp='$CPP $CPPFLAGS'
21451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21453ac_compiler_gnu=$ac_cv_c_compiler_gnu
21454
21455CC=$lt_save_CC
21456LDCXX=$LD
21457LD=$lt_save_LD
21458GCC=$lt_save_GCC
21459with_gnu_ldcxx=$with_gnu_ld
21460with_gnu_ld=$lt_save_with_gnu_ld
21461lt_cv_path_LDCXX=$lt_cv_path_LD
21462lt_cv_path_LD=$lt_save_path_LD
21463lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21464lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21465
21466 else
21467 tagname=""
21468 fi
21469 ;;
21470
21471 F77)
21472 if test -n "$F77" && test "X$F77" != "Xno"; then
21473
21474ac_ext=f
21475ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21476ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21477ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21478
21479
21480archive_cmds_need_lc_F77=no
21481allow_undefined_flag_F77=
21482always_export_symbols_F77=no
21483archive_expsym_cmds_F77=
21484export_dynamic_flag_spec_F77=
21485hardcode_direct_F77=no
21486hardcode_libdir_flag_spec_F77=
21487hardcode_libdir_flag_spec_ld_F77=
21488hardcode_libdir_separator_F77=
21489hardcode_minus_L_F77=no
21490hardcode_automatic_F77=no
21491module_cmds_F77=
21492module_expsym_cmds_F77=
21493link_all_deplibs_F77=unknown
21494old_archive_cmds_F77=$old_archive_cmds
21495no_undefined_flag_F77=
21496whole_archive_flag_spec_F77=
21497enable_shared_with_static_runtimes_F77=no
21498
21499# Source file extension for f77 test sources.
21500ac_ext=f
21501
21502# Object file extension for compiled f77 test sources.
21503objext=o
21504objext_F77=$objext
21505
21506# Code to be used in simple compile tests
21507lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21508
21509# Code to be used in simple link tests
21510lt_simple_link_test_code=" program t\n end\n"
21511
21512# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21513
21514# If no C compiler was specified, use CC.
21515LTCC=${LTCC-"$CC"}
21516
Reid Spencera773bd52006-08-04 18:18:08 +000021517# If no C compiler flags were specified, use CFLAGS.
21518LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21519
John Criswell47fdd832003-07-14 16:52:07 +000021520# Allow CC to be a program name with arguments.
21521compiler=$CC
21522
21523
Reid Spencera773bd52006-08-04 18:18:08 +000021524# save warnings/boilerplate of simple test code
21525ac_outfile=conftest.$ac_objext
21526printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21527eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21528_lt_compiler_boilerplate=`cat conftest.err`
21529$rm conftest*
21530
21531ac_outfile=conftest.$ac_objext
21532printf "$lt_simple_link_test_code" >conftest.$ac_ext
21533eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21534_lt_linker_boilerplate=`cat conftest.err`
21535$rm conftest*
21536
21537
John Criswell47fdd832003-07-14 16:52:07 +000021538# Allow CC to be a program name with arguments.
21539lt_save_CC="$CC"
21540CC=${F77-"f77"}
21541compiler=$CC
21542compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021543for cc_temp in $compiler""; do
21544 case $cc_temp in
21545 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21546 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21547 \-*) ;;
21548 *) break;;
21549 esac
21550done
21551cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021552
John Criswell47fdd832003-07-14 16:52:07 +000021553
Reid Spencera773bd52006-08-04 18:18:08 +000021554{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21555echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21556{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21557echo "${ECHO_T}$can_build_shared" >&6; }
21558
21559{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21560echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021561test "$can_build_shared" = "no" && enable_shared=no
21562
21563# On AIX, shared libraries and static libraries use the same namespace, and
21564# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021565case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021566aix3*)
21567 test "$enable_shared" = yes && enable_static=no
21568 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021569 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021570 postinstall_cmds='$RANLIB $lib'
21571 fi
21572 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021573aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021574 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21575 test "$enable_shared" = yes && enable_static=no
21576 fi
John Criswell47fdd832003-07-14 16:52:07 +000021577 ;;
21578esac
Reid Spencera773bd52006-08-04 18:18:08 +000021579{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21580echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021581
Reid Spencera773bd52006-08-04 18:18:08 +000021582{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21583echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021584# Make sure either enable_shared or enable_static is yes.
21585test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021586{ echo "$as_me:$LINENO: result: $enable_static" >&5
21587echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021588
21589GCC_F77="$G77"
21590LD_F77="$LD"
21591
21592lt_prog_compiler_wl_F77=
21593lt_prog_compiler_pic_F77=
21594lt_prog_compiler_static_F77=
21595
Reid Spencera773bd52006-08-04 18:18:08 +000021596{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21597echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021598
21599 if test "$GCC" = yes; then
21600 lt_prog_compiler_wl_F77='-Wl,'
21601 lt_prog_compiler_static_F77='-static'
21602
21603 case $host_os in
21604 aix*)
21605 # All AIX code is PIC.
21606 if test "$host_cpu" = ia64; then
21607 # AIX 5 now supports IA64 processor
21608 lt_prog_compiler_static_F77='-Bstatic'
21609 fi
21610 ;;
21611
21612 amigaos*)
21613 # FIXME: we need at least 68020 code to build shared libraries, but
21614 # adding the `-m68020' flag to GCC prevents building anything better,
21615 # like `-m68040'.
21616 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21617 ;;
21618
21619 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21620 # PIC is the default for these OSes.
21621 ;;
21622
21623 mingw* | pw32* | os2*)
21624 # This hack is so that the source file can tell whether it is being
21625 # built for inclusion in a dll (and should export symbols for example).
21626 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21627 ;;
21628
21629 darwin* | rhapsody*)
21630 # PIC is the default on this platform
21631 # Common symbols not allowed in MH_DYLIB files
21632 lt_prog_compiler_pic_F77='-fno-common'
21633 ;;
21634
Reid Spencera773bd52006-08-04 18:18:08 +000021635 interix3*)
21636 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21637 # Instead, we relocate shared libraries at runtime.
21638 ;;
21639
John Criswell47fdd832003-07-14 16:52:07 +000021640 msdosdjgpp*)
21641 # Just because we use GCC doesn't mean we suddenly get shared libraries
21642 # on systems that don't support them.
21643 lt_prog_compiler_can_build_shared_F77=no
21644 enable_shared=no
21645 ;;
21646
21647 sysv4*MP*)
21648 if test -d /usr/nec; then
21649 lt_prog_compiler_pic_F77=-Kconform_pic
21650 fi
21651 ;;
21652
21653 hpux*)
21654 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21655 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021656 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021657 hppa*64*|ia64*)
21658 # +Z the default
21659 ;;
21660 *)
21661 lt_prog_compiler_pic_F77='-fPIC'
21662 ;;
21663 esac
21664 ;;
21665
21666 *)
21667 lt_prog_compiler_pic_F77='-fPIC'
21668 ;;
21669 esac
21670 else
21671 # PORTME Check for flag to pass linker flags through the system compiler.
21672 case $host_os in
21673 aix*)
21674 lt_prog_compiler_wl_F77='-Wl,'
21675 if test "$host_cpu" = ia64; then
21676 # AIX 5 now supports IA64 processor
21677 lt_prog_compiler_static_F77='-Bstatic'
21678 else
21679 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21680 fi
21681 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021682 darwin*)
21683 # PIC is the default on this platform
21684 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021685 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021686 xlc*)
21687 lt_prog_compiler_pic_F77='-qnocommon'
21688 lt_prog_compiler_wl_F77='-Wl,'
21689 ;;
21690 esac
21691 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021692
21693 mingw* | pw32* | os2*)
21694 # This hack is so that the source file can tell whether it is being
21695 # built for inclusion in a dll (and should export symbols for example).
21696 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21697 ;;
21698
21699 hpux9* | hpux10* | hpux11*)
21700 lt_prog_compiler_wl_F77='-Wl,'
21701 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21702 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021703 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021704 hppa*64*|ia64*)
21705 # +Z the default
21706 ;;
21707 *)
21708 lt_prog_compiler_pic_F77='+Z'
21709 ;;
21710 esac
21711 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21712 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21713 ;;
21714
21715 irix5* | irix6* | nonstopux*)
21716 lt_prog_compiler_wl_F77='-Wl,'
21717 # PIC (with -KPIC) is the default.
21718 lt_prog_compiler_static_F77='-non_shared'
21719 ;;
21720
21721 newsos6)
21722 lt_prog_compiler_pic_F77='-KPIC'
21723 lt_prog_compiler_static_F77='-Bstatic'
21724 ;;
21725
21726 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021727 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021728 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021729 lt_prog_compiler_wl_F77='-Wl,'
21730 lt_prog_compiler_pic_F77='-KPIC'
21731 lt_prog_compiler_static_F77='-static'
21732 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021733 pgcc* | pgf77* | pgf90* | pgf95*)
21734 # Portland Group compilers (*not* the Pentium gcc compiler,
21735 # which looks to be a dead project)
21736 lt_prog_compiler_wl_F77='-Wl,'
21737 lt_prog_compiler_pic_F77='-fpic'
21738 lt_prog_compiler_static_F77='-Bstatic'
21739 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021740 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021741 lt_prog_compiler_wl_F77='-Wl,'
21742 # All Alpha code is PIC.
21743 lt_prog_compiler_static_F77='-non_shared'
21744 ;;
21745 esac
21746 ;;
21747
21748 osf3* | osf4* | osf5*)
21749 lt_prog_compiler_wl_F77='-Wl,'
21750 # All OSF/1 code is PIC.
21751 lt_prog_compiler_static_F77='-non_shared'
21752 ;;
21753
John Criswell47fdd832003-07-14 16:52:07 +000021754 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021755 lt_prog_compiler_pic_F77='-KPIC'
21756 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021757 case $cc_basename in
21758 f77* | f90* | f95*)
21759 lt_prog_compiler_wl_F77='-Qoption ld ';;
21760 *)
21761 lt_prog_compiler_wl_F77='-Wl,';;
21762 esac
John Criswell47fdd832003-07-14 16:52:07 +000021763 ;;
21764
21765 sunos4*)
21766 lt_prog_compiler_wl_F77='-Qoption ld '
21767 lt_prog_compiler_pic_F77='-PIC'
21768 lt_prog_compiler_static_F77='-Bstatic'
21769 ;;
21770
Reid Spencera773bd52006-08-04 18:18:08 +000021771 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021772 lt_prog_compiler_wl_F77='-Wl,'
21773 lt_prog_compiler_pic_F77='-KPIC'
21774 lt_prog_compiler_static_F77='-Bstatic'
21775 ;;
21776
21777 sysv4*MP*)
21778 if test -d /usr/nec ;then
21779 lt_prog_compiler_pic_F77='-Kconform_pic'
21780 lt_prog_compiler_static_F77='-Bstatic'
21781 fi
21782 ;;
21783
Reid Spencera773bd52006-08-04 18:18:08 +000021784 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21785 lt_prog_compiler_wl_F77='-Wl,'
21786 lt_prog_compiler_pic_F77='-KPIC'
21787 lt_prog_compiler_static_F77='-Bstatic'
21788 ;;
21789
21790 unicos*)
21791 lt_prog_compiler_wl_F77='-Wl,'
21792 lt_prog_compiler_can_build_shared_F77=no
21793 ;;
21794
John Criswell47fdd832003-07-14 16:52:07 +000021795 uts4*)
21796 lt_prog_compiler_pic_F77='-pic'
21797 lt_prog_compiler_static_F77='-Bstatic'
21798 ;;
21799
21800 *)
21801 lt_prog_compiler_can_build_shared_F77=no
21802 ;;
21803 esac
21804 fi
21805
Reid Spencera773bd52006-08-04 18:18:08 +000021806{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21807echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021808
21809#
21810# Check to make sure the PIC flag actually works.
21811#
21812if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021813
Reid Spencera773bd52006-08-04 18:18:08 +000021814{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21815echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021816if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21817 echo $ECHO_N "(cached) $ECHO_C" >&6
21818else
21819 lt_prog_compiler_pic_works_F77=no
21820 ac_outfile=conftest.$ac_objext
21821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21822 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21823 # Insert the option either (1) after the last *FLAGS variable, or
21824 # (2) before a word containing "conftest.", or (3) at the end.
21825 # Note that $ac_compile itself does not contain backslashes and begins
21826 # with a dollar sign (not a hyphen), so the echo should work correctly.
21827 # The option is referenced via a variable to avoid confusing sed.
21828 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21831 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000021832 (eval echo "\"\$as_me:21832: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021833 (eval "$lt_compile" 2>conftest.err)
21834 ac_status=$?
21835 cat conftest.err >&5
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000021836 echo "$as_me:21836: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021837 if (exit $ac_status) && test -s "$ac_outfile"; then
21838 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021839 # So say no if there are warnings other than the usual output.
21840 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21842 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021843 lt_prog_compiler_pic_works_F77=yes
21844 fi
21845 fi
21846 $rm conftest*
21847
21848fi
Reid Spencera773bd52006-08-04 18:18:08 +000021849{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21850echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021851
21852if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21853 case $lt_prog_compiler_pic_F77 in
21854 "" | " "*) ;;
21855 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21856 esac
21857else
21858 lt_prog_compiler_pic_F77=
21859 lt_prog_compiler_can_build_shared_F77=no
21860fi
21861
21862fi
Reid Spencera773bd52006-08-04 18:18:08 +000021863case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021864 # For platforms which do not support PIC, -DPIC is meaningless:
21865 *djgpp*)
21866 lt_prog_compiler_pic_F77=
21867 ;;
21868 *)
21869 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21870 ;;
21871esac
21872
Reid Spencera773bd52006-08-04 18:18:08 +000021873#
21874# Check to make sure the static flag actually works.
21875#
21876wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21877{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21878echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21879if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21880 echo $ECHO_N "(cached) $ECHO_C" >&6
21881else
21882 lt_prog_compiler_static_works_F77=no
21883 save_LDFLAGS="$LDFLAGS"
21884 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21885 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21886 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21887 # The linker can only warn and ignore the option if not recognized
21888 # So say no if there are warnings
21889 if test -s conftest.err; then
21890 # Append any errors to the config.log.
21891 cat conftest.err 1>&5
21892 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21894 if diff conftest.exp conftest.er2 >/dev/null; then
21895 lt_prog_compiler_static_works_F77=yes
21896 fi
21897 else
21898 lt_prog_compiler_static_works_F77=yes
21899 fi
21900 fi
21901 $rm conftest*
21902 LDFLAGS="$save_LDFLAGS"
21903
21904fi
21905{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21906echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21907
21908if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21909 :
21910else
21911 lt_prog_compiler_static_F77=
21912fi
21913
21914
21915{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21916echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021917if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21918 echo $ECHO_N "(cached) $ECHO_C" >&6
21919else
21920 lt_cv_prog_compiler_c_o_F77=no
21921 $rm -r conftest 2>/dev/null
21922 mkdir conftest
21923 cd conftest
21924 mkdir out
21925 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21926
John Criswell47fdd832003-07-14 16:52:07 +000021927 lt_compiler_flag="-o out/conftest2.$ac_objext"
21928 # Insert the option either (1) after the last *FLAGS variable, or
21929 # (2) before a word containing "conftest.", or (3) at the end.
21930 # Note that $ac_compile itself does not contain backslashes and begins
21931 # with a dollar sign (not a hyphen), so the echo should work correctly.
21932 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21935 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000021936 (eval echo "\"\$as_me:21936: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021937 (eval "$lt_compile" 2>out/conftest.err)
21938 ac_status=$?
21939 cat out/conftest.err >&5
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000021940 echo "$as_me:21940: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021941 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21942 then
21943 # The compiler can only warn and ignore the option if not recognized
21944 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021945 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21946 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21947 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021948 lt_cv_prog_compiler_c_o_F77=yes
21949 fi
21950 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021951 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021952 $rm conftest*
21953 # SGI C++ compiler will create directory out/ii_files/ for
21954 # template instantiation
21955 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21956 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021957 cd ..
21958 rmdir conftest
21959 $rm conftest*
21960
21961fi
Reid Spencera773bd52006-08-04 18:18:08 +000021962{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21963echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021964
21965
21966hard_links="nottested"
21967if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21968 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021969 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21970echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021971 hard_links=yes
21972 $rm conftest*
21973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21974 touch conftest.a
21975 ln conftest.a conftest.b 2>&5 || hard_links=no
21976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021977 { echo "$as_me:$LINENO: result: $hard_links" >&5
21978echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021979 if test "$hard_links" = no; then
21980 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21981echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21982 need_locks=warn
21983 fi
21984else
21985 need_locks=no
21986fi
21987
Reid Spencera773bd52006-08-04 18:18:08 +000021988{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21989echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021990
21991 runpath_var=
21992 allow_undefined_flag_F77=
21993 enable_shared_with_static_runtimes_F77=no
21994 archive_cmds_F77=
21995 archive_expsym_cmds_F77=
21996 old_archive_From_new_cmds_F77=
21997 old_archive_from_expsyms_cmds_F77=
21998 export_dynamic_flag_spec_F77=
21999 whole_archive_flag_spec_F77=
22000 thread_safe_flag_spec_F77=
22001 hardcode_libdir_flag_spec_F77=
22002 hardcode_libdir_flag_spec_ld_F77=
22003 hardcode_libdir_separator_F77=
22004 hardcode_direct_F77=no
22005 hardcode_minus_L_F77=no
22006 hardcode_shlibpath_var_F77=unsupported
22007 link_all_deplibs_F77=unknown
22008 hardcode_automatic_F77=no
22009 module_cmds_F77=
22010 module_expsym_cmds_F77=
22011 always_export_symbols_F77=no
22012 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22013 # include_expsyms should be a list of space-separated symbols to be *always*
22014 # included in the symbol list
22015 include_expsyms_F77=
22016 # exclude_expsyms can be an extended regexp of symbols to exclude
22017 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22018 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22019 # as well as any symbol that contains `d'.
22020 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22021 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22022 # platforms (ab)use it in PIC code, but their linkers get confused if
22023 # the symbol is explicitly referenced. Since portable code cannot
22024 # rely on this symbol name, it's probably fine to never include it in
22025 # preloaded symbol tables.
22026 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000022027 # Just being paranoid about ensuring that cc_basename is set.
22028 for cc_temp in $compiler""; do
22029 case $cc_temp in
22030 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22031 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22032 \-*) ;;
22033 *) break;;
22034 esac
22035done
22036cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000022037
22038 case $host_os in
22039 cygwin* | mingw* | pw32*)
22040 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22041 # When not using gcc, we currently assume that we are using
22042 # Microsoft Visual C++.
22043 if test "$GCC" != yes; then
22044 with_gnu_ld=no
22045 fi
22046 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022047 interix*)
22048 # we just hope/assume this is gcc and not c89 (= MSVC++)
22049 with_gnu_ld=yes
22050 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022051 openbsd*)
22052 with_gnu_ld=no
22053 ;;
22054 esac
22055
22056 ld_shlibs_F77=yes
22057 if test "$with_gnu_ld" = yes; then
22058 # If archive_cmds runs LD, not CC, wlarc should be empty
22059 wlarc='${wl}'
22060
Reid Spencera773bd52006-08-04 18:18:08 +000022061 # Set some defaults for GNU ld with shared library support. These
22062 # are reset later if shared libraries are not supported. Putting them
22063 # here allows them to be overridden if necessary.
22064 runpath_var=LD_RUN_PATH
22065 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22066 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22067 # ancient GNU ld didn't support --whole-archive et. al.
22068 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22069 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22070 else
22071 whole_archive_flag_spec_F77=
22072 fi
22073 supports_anon_versioning=no
22074 case `$LD -v 2>/dev/null` in
22075 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22076 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22077 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22078 *\ 2.11.*) ;; # other 2.11 versions
22079 *) supports_anon_versioning=yes ;;
22080 esac
22081
John Criswell47fdd832003-07-14 16:52:07 +000022082 # See if GNU ld supports shared libraries.
22083 case $host_os in
22084 aix3* | aix4* | aix5*)
22085 # On AIX/PPC, the GNU linker is very broken
22086 if test "$host_cpu" != ia64; then
22087 ld_shlibs_F77=no
22088 cat <<EOF 1>&2
22089
22090*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22091*** to be unable to reliably create shared libraries on AIX.
22092*** Therefore, libtool is disabling shared libraries support. If you
22093*** really care for shared libraries, you may want to modify your PATH
22094*** so that a non-GNU linker is found, and then restart.
22095
22096EOF
22097 fi
22098 ;;
22099
22100 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022101 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 +000022102 hardcode_libdir_flag_spec_F77='-L$libdir'
22103 hardcode_minus_L_F77=yes
22104
22105 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22106 # that the semantics of dynamic libraries on AmigaOS, at least up
22107 # to version 4, is to share data among multiple programs linked
22108 # with the same dynamic library. Since this doesn't match the
22109 # behavior of shared libraries on other platforms, we can't use
22110 # them.
22111 ld_shlibs_F77=no
22112 ;;
22113
22114 beos*)
22115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22116 allow_undefined_flag_F77=unsupported
22117 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22118 # support --undefined. This deserves some investigation. FIXME
22119 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22120 else
22121 ld_shlibs_F77=no
22122 fi
22123 ;;
22124
22125 cygwin* | mingw* | pw32*)
22126 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22127 # as there is no search path for DLLs.
22128 hardcode_libdir_flag_spec_F77='-L$libdir'
22129 allow_undefined_flag_F77=unsupported
22130 always_export_symbols_F77=no
22131 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022132 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 +000022133
22134 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000022135 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 +000022136 # If the export-symbols file already is a .def file (1st line
22137 # is EXPORTS), use it as is; otherwise, prepend...
22138 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22139 cp $export_symbols $output_objdir/$soname.def;
22140 else
22141 echo EXPORTS > $output_objdir/$soname.def;
22142 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022143 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022144 $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 +000022145 else
Reid Spencera773bd52006-08-04 18:18:08 +000022146 ld_shlibs_F77=no
22147 fi
22148 ;;
22149
22150 interix3*)
22151 hardcode_direct_F77=no
22152 hardcode_shlibpath_var_F77=no
22153 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22154 export_dynamic_flag_spec_F77='${wl}-E'
22155 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22156 # Instead, shared libraries are loaded at an image base (0x10000000 by
22157 # default) and relocated if they conflict, which is a slow very memory
22158 # consuming and fragmenting process. To avoid this, we pick a random,
22159 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22160 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22161 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'
22162 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'
22163 ;;
22164
22165 linux*)
22166 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22167 tmp_addflag=
22168 case $cc_basename,$host_cpu in
22169 pgcc*) # Portland Group C compiler
22170 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'
22171 tmp_addflag=' $pic_flag'
22172 ;;
22173 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22174 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'
22175 tmp_addflag=' $pic_flag -Mnomain' ;;
22176 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22177 tmp_addflag=' -i_dynamic' ;;
22178 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22179 tmp_addflag=' -i_dynamic -nofor_main' ;;
22180 ifc* | ifort*) # Intel Fortran compiler
22181 tmp_addflag=' -nofor_main' ;;
22182 esac
22183 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22184
22185 if test $supports_anon_versioning = yes; then
22186 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22187 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22188 $echo "local: *; };" >> $output_objdir/$libname.ver~
22189 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22190 fi
22191 else
22192 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022193 fi
22194 ;;
22195
22196 netbsd*)
22197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22198 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22199 wlarc=
22200 else
22201 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22202 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22203 fi
22204 ;;
22205
Reid Spencera773bd52006-08-04 18:18:08 +000022206 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022207 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22208 ld_shlibs_F77=no
22209 cat <<EOF 1>&2
22210
22211*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22212*** create shared libraries on Solaris systems. Therefore, libtool
22213*** is disabling shared libraries support. We urge you to upgrade GNU
22214*** binutils to release 2.9.1 or newer. Another option is to modify
22215*** your PATH or compiler configuration so that the native linker is
22216*** used, and then restart.
22217
22218EOF
22219 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22220 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22221 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22222 else
22223 ld_shlibs_F77=no
22224 fi
22225 ;;
22226
Reid Spencera773bd52006-08-04 18:18:08 +000022227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22228 case `$LD -v 2>&1` in
22229 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22230 ld_shlibs_F77=no
22231 cat <<_LT_EOF 1>&2
22232
22233*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22234*** reliably create shared libraries on SCO systems. Therefore, libtool
22235*** is disabling shared libraries support. We urge you to upgrade GNU
22236*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22237*** your PATH or compiler configuration so that the native linker is
22238*** used, and then restart.
22239
22240_LT_EOF
22241 ;;
22242 *)
22243 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22244 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22245 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22246 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22247 else
22248 ld_shlibs_F77=no
22249 fi
22250 ;;
22251 esac
22252 ;;
22253
John Criswell47fdd832003-07-14 16:52:07 +000022254 sunos4*)
22255 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22256 wlarc=
22257 hardcode_direct_F77=yes
22258 hardcode_shlibpath_var_F77=no
22259 ;;
22260
22261 *)
22262 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22263 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22264 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22265 else
22266 ld_shlibs_F77=no
22267 fi
22268 ;;
22269 esac
22270
Reid Spencera773bd52006-08-04 18:18:08 +000022271 if test "$ld_shlibs_F77" = no; then
22272 runpath_var=
22273 hardcode_libdir_flag_spec_F77=
22274 export_dynamic_flag_spec_F77=
22275 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022276 fi
22277 else
22278 # PORTME fill in a description of your system's linker (not GNU ld)
22279 case $host_os in
22280 aix3*)
22281 allow_undefined_flag_F77=unsupported
22282 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022283 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 +000022284 # Note: this linker hardcodes the directories in LIBPATH if there
22285 # are no directories specified by -L.
22286 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022287 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022288 # Neither direct hardcoding nor static linking is supported with a
22289 # broken collect2.
22290 hardcode_direct_F77=unsupported
22291 fi
22292 ;;
22293
22294 aix4* | aix5*)
22295 if test "$host_cpu" = ia64; then
22296 # On IA64, the linker does run time linking by default, so we don't
22297 # have to do anything special.
22298 aix_use_runtimelinking=no
22299 exp_sym_flag='-Bexport'
22300 no_entry_flag=""
22301 else
22302 # If we're using GNU nm, then we don't want the "-C" option.
22303 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22304 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22305 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'
22306 else
22307 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'
22308 fi
22309 aix_use_runtimelinking=no
22310
22311 # Test if we are trying to use run time linking or normal
22312 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22313 # need to do runtime linking.
22314 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22315 for ld_flag in $LDFLAGS; do
22316 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22317 aix_use_runtimelinking=yes
22318 break
22319 fi
22320 done
Reid Spencera773bd52006-08-04 18:18:08 +000022321 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022322 esac
22323
22324 exp_sym_flag='-bexport'
22325 no_entry_flag='-bnoentry'
22326 fi
22327
22328 # When large executables or shared objects are built, AIX ld can
22329 # have problems creating the table of contents. If linking a library
22330 # or program results in "error TOC overflow" add -mminimal-toc to
22331 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22332 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22333
22334 archive_cmds_F77=''
22335 hardcode_direct_F77=yes
22336 hardcode_libdir_separator_F77=':'
22337 link_all_deplibs_F77=yes
22338
22339 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022340 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022341 # We only want to do this on AIX 4.2 and lower, the check
22342 # below for broken collect2 doesn't work under 4.3+
22343 collect2name=`${CC} -print-prog-name=collect2`
22344 if test -f "$collect2name" && \
22345 strings "$collect2name" | grep resolve_lib_name >/dev/null
22346 then
22347 # We have reworked collect2
22348 hardcode_direct_F77=yes
22349 else
22350 # We have old collect2
22351 hardcode_direct_F77=unsupported
22352 # It fails to find uninstalled libraries when the uninstalled
22353 # path is not listed in the libpath. Setting hardcode_minus_L
22354 # to unsupported forces relinking
22355 hardcode_minus_L_F77=yes
22356 hardcode_libdir_flag_spec_F77='-L$libdir'
22357 hardcode_libdir_separator_F77=
22358 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022359 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022360 esac
22361 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022362 if test "$aix_use_runtimelinking" = yes; then
22363 shared_flag="$shared_flag "'${wl}-G'
22364 fi
John Criswell47fdd832003-07-14 16:52:07 +000022365 else
22366 # not using gcc
22367 if test "$host_cpu" = ia64; then
22368 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22369 # chokes on -Wl,-G. The following line is correct:
22370 shared_flag='-G'
22371 else
Reid Spencera773bd52006-08-04 18:18:08 +000022372 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022373 shared_flag='${wl}-G'
22374 else
22375 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022376 fi
John Criswell47fdd832003-07-14 16:52:07 +000022377 fi
22378 fi
22379
22380 # It seems that -bexpall does not export symbols beginning with
22381 # underscore (_), so it is better to generate a list of symbols to export.
22382 always_export_symbols_F77=yes
22383 if test "$aix_use_runtimelinking" = yes; then
22384 # Warning - without using the other runtime loading flags (-brtl),
22385 # -berok will link without error, but may produce a broken library.
22386 allow_undefined_flag_F77='-berok'
22387 # Determine the default libpath from the value encoded in an empty executable.
22388 cat >conftest.$ac_ext <<_ACEOF
22389 program main
22390
22391 end
22392_ACEOF
22393rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022394if { (ac_try="$ac_link"
22395case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22398esac
22399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022401 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022402 grep -v '^ *+' conftest.er1 >conftest.err
22403 rm -f conftest.er1
22404 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022406 (exit $ac_status); } &&
22407 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22408 { (case "(($ac_try" in
22409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22410 *) ac_try_echo=$ac_try;;
22411esac
22412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22413 (eval "$ac_try") 2>&5
22414 ac_status=$?
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); }; } &&
22417 { ac_try='test -s conftest$ac_exeext'
22418 { (case "(($ac_try" in
22419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420 *) ac_try_echo=$ac_try;;
22421esac
22422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22423 (eval "$ac_try") 2>&5
22424 ac_status=$?
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022427
22428aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22429}'`
22430# Check for a 64-bit object if we didn't find anything.
22431if 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; }
22432}'`; fi
22433else
22434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022435sed 's/^/| /' conftest.$ac_ext >&5
22436
Reid Spencera773bd52006-08-04 18:18:08 +000022437
John Criswell47fdd832003-07-14 16:52:07 +000022438fi
Reid Spencera773bd52006-08-04 18:18:08 +000022439
Bill Wendlingebcceee2009-04-18 11:20:33 +000022440rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022441 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022442if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22443
22444 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022445 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 +000022446 else
22447 if test "$host_cpu" = ia64; then
22448 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22449 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022450 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 +000022451 else
22452 # Determine the default libpath from the value encoded in an empty executable.
22453 cat >conftest.$ac_ext <<_ACEOF
22454 program main
22455
22456 end
22457_ACEOF
22458rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022459if { (ac_try="$ac_link"
22460case "(($ac_try" in
22461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462 *) ac_try_echo=$ac_try;;
22463esac
22464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022466 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022467 grep -v '^ *+' conftest.er1 >conftest.err
22468 rm -f conftest.er1
22469 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022471 (exit $ac_status); } &&
22472 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22473 { (case "(($ac_try" in
22474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475 *) ac_try_echo=$ac_try;;
22476esac
22477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22478 (eval "$ac_try") 2>&5
22479 ac_status=$?
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; } &&
22482 { ac_try='test -s conftest$ac_exeext'
22483 { (case "(($ac_try" in
22484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485 *) ac_try_echo=$ac_try;;
22486esac
22487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22488 (eval "$ac_try") 2>&5
22489 ac_status=$?
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022492
22493aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22494}'`
22495# Check for a 64-bit object if we didn't find anything.
22496if 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; }
22497}'`; fi
22498else
22499 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022500sed 's/^/| /' conftest.$ac_ext >&5
22501
Reid Spencera773bd52006-08-04 18:18:08 +000022502
John Criswell47fdd832003-07-14 16:52:07 +000022503fi
Reid Spencera773bd52006-08-04 18:18:08 +000022504
Bill Wendlingebcceee2009-04-18 11:20:33 +000022505rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022506 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022507if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22508
22509 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22510 # Warning - without using the other run time loading flags,
22511 # -berok will link without error, but may produce a broken library.
22512 no_undefined_flag_F77=' ${wl}-bernotok'
22513 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022514 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022515 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022516 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022517 # This is similar to how AIX traditionally builds its shared libraries.
22518 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 +000022519 fi
22520 fi
22521 ;;
22522
22523 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022524 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 +000022525 hardcode_libdir_flag_spec_F77='-L$libdir'
22526 hardcode_minus_L_F77=yes
22527 # see comment about different semantics on the GNU ld section
22528 ld_shlibs_F77=no
22529 ;;
22530
Reid Spencer2706f8c2004-09-19 23:53:36 +000022531 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022532 export_dynamic_flag_spec_F77=-rdynamic
22533 ;;
22534
22535 cygwin* | mingw* | pw32*)
22536 # When not using gcc, we currently assume that we are using
22537 # Microsoft Visual C++.
22538 # hardcode_libdir_flag_spec is actually meaningless, as there is
22539 # no search path for DLLs.
22540 hardcode_libdir_flag_spec_F77=' '
22541 allow_undefined_flag_F77=unsupported
22542 # Tell ltmain to make .lib files, not .a files.
22543 libext=lib
22544 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022545 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022546 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022547 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 +000022548 # The linker will automatically build a .lib file if we build a DLL.
22549 old_archive_From_new_cmds_F77='true'
22550 # FIXME: Should let the user specify the lib program.
22551 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022552 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022553 enable_shared_with_static_runtimes_F77=yes
22554 ;;
22555
22556 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022557 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022558 rhapsody* | darwin1.[012])
22559 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22560 ;;
22561 *) # Darwin 1.3 on
22562 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22563 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22564 else
22565 case ${MACOSX_DEPLOYMENT_TARGET} in
22566 10.[012])
22567 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22568 ;;
22569 10.*)
22570 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22571 ;;
22572 esac
22573 fi
22574 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022575 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022576 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022577 hardcode_direct_F77=no
22578 hardcode_automatic_F77=yes
22579 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022580 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022581 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022582 if test "$GCC" = yes ; then
22583 output_verbose_link_cmd='echo'
22584 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22585 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022586 # 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 +000022587 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}'
22588 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 +000022589 else
Reid Spencera773bd52006-08-04 18:18:08 +000022590 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022591 xlc*)
22592 output_verbose_link_cmd='echo'
22593 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22594 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022595 # 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 +000022596 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}'
22597 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 +000022598 ;;
22599 *)
22600 ld_shlibs_F77=no
22601 ;;
22602 esac
John Criswell47fdd832003-07-14 16:52:07 +000022603 fi
22604 ;;
22605
22606 dgux*)
22607 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22608 hardcode_libdir_flag_spec_F77='-L$libdir'
22609 hardcode_shlibpath_var_F77=no
22610 ;;
22611
22612 freebsd1*)
22613 ld_shlibs_F77=no
22614 ;;
22615
22616 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22617 # support. Future versions do this automatically, but an explicit c++rt0.o
22618 # does not break anything, and helps significantly (at the cost of a little
22619 # extra space).
22620 freebsd2.2*)
22621 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22622 hardcode_libdir_flag_spec_F77='-R$libdir'
22623 hardcode_direct_F77=yes
22624 hardcode_shlibpath_var_F77=no
22625 ;;
22626
22627 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22628 freebsd2*)
22629 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22630 hardcode_direct_F77=yes
22631 hardcode_minus_L_F77=yes
22632 hardcode_shlibpath_var_F77=no
22633 ;;
22634
22635 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022636 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022637 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22638 hardcode_libdir_flag_spec_F77='-R$libdir'
22639 hardcode_direct_F77=yes
22640 hardcode_shlibpath_var_F77=no
22641 ;;
22642
22643 hpux9*)
22644 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022645 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 +000022646 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022647 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 +000022648 fi
22649 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22650 hardcode_libdir_separator_F77=:
22651 hardcode_direct_F77=yes
22652
22653 # hardcode_minus_L: Not really in the search PATH,
22654 # but as the default location of the library.
22655 hardcode_minus_L_F77=yes
22656 export_dynamic_flag_spec_F77='${wl}-E'
22657 ;;
22658
Reid Spencera773bd52006-08-04 18:18:08 +000022659 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022660 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022661 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22662 else
22663 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22664 fi
22665 if test "$with_gnu_ld" = no; then
22666 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22667 hardcode_libdir_separator_F77=:
22668
22669 hardcode_direct_F77=yes
22670 export_dynamic_flag_spec_F77='${wl}-E'
22671
22672 # hardcode_minus_L: Not really in the search PATH,
22673 # but as the default location of the library.
22674 hardcode_minus_L_F77=yes
22675 fi
22676 ;;
22677
22678 hpux11*)
22679 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22680 case $host_cpu in
22681 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022682 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22683 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022684 ia64*)
22685 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22686 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022687 *)
22688 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22689 ;;
22690 esac
22691 else
Reid Spencera773bd52006-08-04 18:18:08 +000022692 case $host_cpu in
22693 hppa*64*)
22694 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22695 ;;
22696 ia64*)
22697 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022698 ;;
22699 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022700 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 +000022701 ;;
22702 esac
22703 fi
22704 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022705 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22706 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022707
Reid Spencera773bd52006-08-04 18:18:08 +000022708 case $host_cpu in
22709 hppa*64*|ia64*)
22710 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22711 hardcode_direct_F77=no
22712 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022713 ;;
22714 *)
John Criswell47fdd832003-07-14 16:52:07 +000022715 hardcode_direct_F77=yes
22716 export_dynamic_flag_spec_F77='${wl}-E'
22717
22718 # hardcode_minus_L: Not really in the search PATH,
22719 # but as the default location of the library.
22720 hardcode_minus_L_F77=yes
22721 ;;
22722 esac
22723 fi
22724 ;;
22725
22726 irix5* | irix6* | nonstopux*)
22727 if test "$GCC" = yes; then
22728 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'
22729 else
22730 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'
22731 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22732 fi
22733 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22734 hardcode_libdir_separator_F77=:
22735 link_all_deplibs_F77=yes
22736 ;;
22737
22738 netbsd*)
22739 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22740 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22741 else
22742 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22743 fi
22744 hardcode_libdir_flag_spec_F77='-R$libdir'
22745 hardcode_direct_F77=yes
22746 hardcode_shlibpath_var_F77=no
22747 ;;
22748
22749 newsos6)
22750 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22751 hardcode_direct_F77=yes
22752 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22753 hardcode_libdir_separator_F77=:
22754 hardcode_shlibpath_var_F77=no
22755 ;;
22756
22757 openbsd*)
22758 hardcode_direct_F77=yes
22759 hardcode_shlibpath_var_F77=no
22760 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22761 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022762 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 +000022763 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22764 export_dynamic_flag_spec_F77='${wl}-E'
22765 else
22766 case $host_os in
22767 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22768 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22769 hardcode_libdir_flag_spec_F77='-R$libdir'
22770 ;;
22771 *)
22772 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22773 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22774 ;;
22775 esac
22776 fi
22777 ;;
22778
22779 os2*)
22780 hardcode_libdir_flag_spec_F77='-L$libdir'
22781 hardcode_minus_L_F77=yes
22782 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022783 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 +000022784 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22785 ;;
22786
22787 osf3*)
22788 if test "$GCC" = yes; then
22789 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22790 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'
22791 else
22792 allow_undefined_flag_F77=' -expect_unresolved \*'
22793 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'
22794 fi
22795 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22796 hardcode_libdir_separator_F77=:
22797 ;;
22798
22799 osf4* | osf5*) # as osf3* with the addition of -msym flag
22800 if test "$GCC" = yes; then
22801 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22802 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'
22803 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22804 else
22805 allow_undefined_flag_F77=' -expect_unresolved \*'
22806 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 +000022807 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 +000022808 $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 +000022809
John Criswell47fdd832003-07-14 16:52:07 +000022810 # Both c and cxx compiler support -rpath directly
22811 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22812 fi
22813 hardcode_libdir_separator_F77=:
22814 ;;
22815
John Criswell47fdd832003-07-14 16:52:07 +000022816 solaris*)
22817 no_undefined_flag_F77=' -z text'
22818 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022819 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022820 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022821 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22822 $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 +000022823 else
Reid Spencera773bd52006-08-04 18:18:08 +000022824 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022825 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022826 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22827 $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 +000022828 fi
22829 hardcode_libdir_flag_spec_F77='-R$libdir'
22830 hardcode_shlibpath_var_F77=no
22831 case $host_os in
22832 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022833 *)
22834 # The compiler driver will combine linker options so we
22835 # cannot just pass the convience library names through
22836 # without $wl, iff we do not link with $LD.
22837 # Luckily, gcc supports the same syntax we need for Sun Studio.
22838 # Supported since Solaris 2.6 (maybe 2.5.1?)
22839 case $wlarc in
22840 '')
22841 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22842 *)
22843 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' ;;
22844 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022845 esac
22846 link_all_deplibs_F77=yes
22847 ;;
22848
22849 sunos4*)
22850 if test "x$host_vendor" = xsequent; then
22851 # Use $CC to link under sequent, because it throws in some extra .o
22852 # files that make .init and .fini sections work.
22853 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22854 else
22855 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22856 fi
22857 hardcode_libdir_flag_spec_F77='-L$libdir'
22858 hardcode_direct_F77=yes
22859 hardcode_minus_L_F77=yes
22860 hardcode_shlibpath_var_F77=no
22861 ;;
22862
22863 sysv4)
22864 case $host_vendor in
22865 sni)
22866 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22867 hardcode_direct_F77=yes # is this really true???
22868 ;;
22869 siemens)
22870 ## LD is ld it makes a PLAMLIB
22871 ## CC just makes a GrossModule.
22872 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22873 reload_cmds_F77='$CC -r -o $output$reload_objs'
22874 hardcode_direct_F77=no
22875 ;;
22876 motorola)
22877 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22878 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22879 ;;
22880 esac
22881 runpath_var='LD_RUN_PATH'
22882 hardcode_shlibpath_var_F77=no
22883 ;;
22884
22885 sysv4.3*)
22886 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22887 hardcode_shlibpath_var_F77=no
22888 export_dynamic_flag_spec_F77='-Bexport'
22889 ;;
22890
22891 sysv4*MP*)
22892 if test -d /usr/nec; then
22893 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22894 hardcode_shlibpath_var_F77=no
22895 runpath_var=LD_RUN_PATH
22896 hardcode_runpath_var=yes
22897 ld_shlibs_F77=yes
22898 fi
22899 ;;
22900
Reid Spencera773bd52006-08-04 18:18:08 +000022901 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22902 no_undefined_flag_F77='${wl}-z,text'
22903 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022904 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022905 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022906
John Criswell47fdd832003-07-14 16:52:07 +000022907 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022908 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22909 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 +000022910 else
Reid Spencera773bd52006-08-04 18:18:08 +000022911 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22912 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 +000022913 fi
John Criswell47fdd832003-07-14 16:52:07 +000022914 ;;
22915
Reid Spencera773bd52006-08-04 18:18:08 +000022916 sysv5* | sco3.2v5* | sco5v6*)
22917 # Note: We can NOT use -z defs as we might desire, because we do not
22918 # link with -lc, and that would cause any symbols used from libc to
22919 # always be unresolved, which means just about no library would
22920 # ever link correctly. If we're not using GNU ld we use -z text
22921 # though, which does catch some bad symbols but isn't as heavy-handed
22922 # as -z defs.
22923 no_undefined_flag_F77='${wl}-z,text'
22924 allow_undefined_flag_F77='${wl}-z,nodefs'
22925 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022926 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022927 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22928 hardcode_libdir_separator_F77=':'
22929 link_all_deplibs_F77=yes
22930 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022931 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022932
22933 if test "$GCC" = yes; then
22934 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22935 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22936 else
22937 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22938 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22939 fi
John Criswell47fdd832003-07-14 16:52:07 +000022940 ;;
22941
22942 uts4*)
22943 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22944 hardcode_libdir_flag_spec_F77='-L$libdir'
22945 hardcode_shlibpath_var_F77=no
22946 ;;
22947
22948 *)
22949 ld_shlibs_F77=no
22950 ;;
22951 esac
22952 fi
22953
Reid Spencera773bd52006-08-04 18:18:08 +000022954{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22955echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022956test "$ld_shlibs_F77" = no && can_build_shared=no
22957
John Criswell47fdd832003-07-14 16:52:07 +000022958#
22959# Do we need to explicitly link libc?
22960#
22961case "x$archive_cmds_need_lc_F77" in
22962x|xyes)
22963 # Assume -lc should be added
22964 archive_cmds_need_lc_F77=yes
22965
22966 if test "$enable_shared" = yes && test "$GCC" = yes; then
22967 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022968 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022969 # FIXME: we may have to deal with multi-command sequences.
22970 ;;
22971 '$CC '*)
22972 # Test whether the compiler implicitly links with -lc since on some
22973 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22974 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022975 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22976echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022977 $rm conftest*
22978 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22979
22980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22981 (eval $ac_compile) 2>&5
22982 ac_status=$?
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); } 2>conftest.err; then
22985 soname=conftest
22986 lib=conftest
22987 libobjs=conftest.$ac_objext
22988 deplibs=
22989 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022990 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022991 compiler_flags=-v
22992 linker_flags=-v
22993 verstring=
22994 output_objdir=.
22995 libname=conftest
22996 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22997 allow_undefined_flag_F77=
22998 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22999 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23000 ac_status=$?
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); }
23003 then
23004 archive_cmds_need_lc_F77=no
23005 else
23006 archive_cmds_need_lc_F77=yes
23007 fi
23008 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23009 else
23010 cat conftest.err 1>&5
23011 fi
23012 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000023013 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23014echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023015 ;;
23016 esac
23017 fi
23018 ;;
23019esac
23020
Reid Spencera773bd52006-08-04 18:18:08 +000023021{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23022echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023023library_names_spec=
23024libname_spec='lib$name'
23025soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000023026shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000023027postinstall_cmds=
23028postuninstall_cmds=
23029finish_cmds=
23030finish_eval=
23031shlibpath_var=
23032shlibpath_overrides_runpath=unknown
23033version_type=none
23034dynamic_linker="$host_os ld.so"
23035sys_lib_dlsearch_path_spec="/lib /usr/lib"
23036if test "$GCC" = yes; then
23037 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23038 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23039 # if the path contains ";" then we assume it to be the separator
23040 # otherwise default to the standard path separator (i.e. ":") - it is
23041 # assumed that no part of a normal pathname contains ";" but that should
23042 # okay in the real world where ";" in dirpaths is itself problematic.
23043 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23044 else
23045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23046 fi
23047else
23048 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23049fi
23050need_lib_prefix=unknown
23051hardcode_into_libs=no
23052
23053# when you set need_version to no, make sure it does not cause -set_version
23054# flags to be left without arguments
23055need_version=unknown
23056
23057case $host_os in
23058aix3*)
23059 version_type=linux
23060 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23061 shlibpath_var=LIBPATH
23062
23063 # AIX 3 has no versioning support, so we append a major version to the name.
23064 soname_spec='${libname}${release}${shared_ext}$major'
23065 ;;
23066
23067aix4* | aix5*)
23068 version_type=linux
23069 need_lib_prefix=no
23070 need_version=no
23071 hardcode_into_libs=yes
23072 if test "$host_cpu" = ia64; then
23073 # AIX 5 supports IA64
23074 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23075 shlibpath_var=LD_LIBRARY_PATH
23076 else
23077 # With GCC up to 2.95.x, collect2 would create an import file
23078 # for dependence libraries. The import file would start with
23079 # the line `#! .'. This would cause the generated library to
23080 # depend on `.', always an invalid library. This was fixed in
23081 # development snapshots of GCC prior to 3.0.
23082 case $host_os in
23083 aix4 | aix4.[01] | aix4.[01].*)
23084 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23085 echo ' yes '
23086 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23087 :
23088 else
23089 can_build_shared=no
23090 fi
23091 ;;
23092 esac
23093 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23094 # soname into executable. Probably we can add versioning support to
23095 # collect2, so additional links can be useful in future.
23096 if test "$aix_use_runtimelinking" = yes; then
23097 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23098 # instead of lib<name>.a to let people know that these are not
23099 # typical AIX shared libraries.
23100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23101 else
23102 # We preserve .a as extension for shared libraries through AIX4.2
23103 # and later when we are not doing run time linking.
23104 library_names_spec='${libname}${release}.a $libname.a'
23105 soname_spec='${libname}${release}${shared_ext}$major'
23106 fi
23107 shlibpath_var=LIBPATH
23108 fi
23109 ;;
23110
23111amigaos*)
23112 library_names_spec='$libname.ixlibrary $libname.a'
23113 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023114 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 +000023115 ;;
23116
23117beos*)
23118 library_names_spec='${libname}${shared_ext}'
23119 dynamic_linker="$host_os ld.so"
23120 shlibpath_var=LIBRARY_PATH
23121 ;;
23122
Reid Spencer2706f8c2004-09-19 23:53:36 +000023123bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023124 version_type=linux
23125 need_version=no
23126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23127 soname_spec='${libname}${release}${shared_ext}$major'
23128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23129 shlibpath_var=LD_LIBRARY_PATH
23130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23132 # the default ld.so.conf also contains /usr/contrib/lib and
23133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23134 # libtool to hard-code these into programs
23135 ;;
23136
23137cygwin* | mingw* | pw32*)
23138 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000023139 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023140 need_version=no
23141 need_lib_prefix=no
23142
23143 case $GCC,$host_os in
23144 yes,cygwin* | yes,mingw* | yes,pw32*)
23145 library_names_spec='$libname.dll.a'
23146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023147 postinstall_cmds='base_file=`basename \${file}`~
23148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23149 dldir=$destdir/`dirname \$dlpath`~
23150 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023151 $install_prog $dir/$dlname \$dldir/$dlname~
23152 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23154 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023155 $rm \$dlpath'
23156 shlibpath_overrides_runpath=yes
23157
23158 case $host_os in
23159 cygwin*)
23160 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23161 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 +000023162 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023163 ;;
23164 mingw*)
23165 # MinGW DLLs use traditional 'lib' prefix
23166 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23167 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23168 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23169 # It is most probably a Windows format PATH printed by
23170 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23171 # path with ; separators, and with drive letters. We can handle the
23172 # drive letters (cygwin fileutils understands them), so leave them,
23173 # especially as we might pass files found there to a mingw objdump,
23174 # which wouldn't understand a cygwinified path. Ahh.
23175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23176 else
23177 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23178 fi
23179 ;;
23180 pw32*)
23181 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023182 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 +000023183 ;;
23184 esac
23185 ;;
23186
23187 *)
23188 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23189 ;;
23190 esac
23191 dynamic_linker='Win32 ld.exe'
23192 # FIXME: first we should search . and the directory the executable is in
23193 shlibpath_var=PATH
23194 ;;
23195
23196darwin* | rhapsody*)
23197 dynamic_linker="$host_os dyld"
23198 version_type=darwin
23199 need_lib_prefix=no
23200 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023201 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023202 soname_spec='${libname}${release}${major}$shared_ext'
23203 shlibpath_overrides_runpath=yes
23204 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023205 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023206 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023207 if test "$GCC" = yes; then
23208 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"`
23209 else
23210 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023211 fi
23212 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23213 ;;
23214
23215dgux*)
23216 version_type=linux
23217 need_lib_prefix=no
23218 need_version=no
23219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23220 soname_spec='${libname}${release}${shared_ext}$major'
23221 shlibpath_var=LD_LIBRARY_PATH
23222 ;;
23223
23224freebsd1*)
23225 dynamic_linker=no
23226 ;;
23227
Reid Spencer2706f8c2004-09-19 23:53:36 +000023228kfreebsd*-gnu)
23229 version_type=linux
23230 need_lib_prefix=no
23231 need_version=no
23232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23233 soname_spec='${libname}${release}${shared_ext}$major'
23234 shlibpath_var=LD_LIBRARY_PATH
23235 shlibpath_overrides_runpath=no
23236 hardcode_into_libs=yes
23237 dynamic_linker='GNU ld.so'
23238 ;;
23239
Reid Spencera773bd52006-08-04 18:18:08 +000023240freebsd* | dragonfly*)
23241 # DragonFly does not have aout. When/if they implement a new
23242 # versioning mechanism, adjust this.
23243 if test -x /usr/bin/objformat; then
23244 objformat=`/usr/bin/objformat`
23245 else
23246 case $host_os in
23247 freebsd[123]*) objformat=aout ;;
23248 *) objformat=elf ;;
23249 esac
23250 fi
John Criswell47fdd832003-07-14 16:52:07 +000023251 version_type=freebsd-$objformat
23252 case $version_type in
23253 freebsd-elf*)
23254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23255 need_version=no
23256 need_lib_prefix=no
23257 ;;
23258 freebsd-*)
23259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23260 need_version=yes
23261 ;;
23262 esac
23263 shlibpath_var=LD_LIBRARY_PATH
23264 case $host_os in
23265 freebsd2*)
23266 shlibpath_overrides_runpath=yes
23267 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023268 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023269 shlibpath_overrides_runpath=yes
23270 hardcode_into_libs=yes
23271 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023272 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23273 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023274 shlibpath_overrides_runpath=no
23275 hardcode_into_libs=yes
23276 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023277 freebsd*) # from 4.6 on
23278 shlibpath_overrides_runpath=yes
23279 hardcode_into_libs=yes
23280 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023281 esac
23282 ;;
23283
23284gnu*)
23285 version_type=linux
23286 need_lib_prefix=no
23287 need_version=no
23288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23289 soname_spec='${libname}${release}${shared_ext}$major'
23290 shlibpath_var=LD_LIBRARY_PATH
23291 hardcode_into_libs=yes
23292 ;;
23293
23294hpux9* | hpux10* | hpux11*)
23295 # Give a soname corresponding to the major version so that dld.sl refuses to
23296 # link against other versions.
23297 version_type=sunos
23298 need_lib_prefix=no
23299 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023300 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023301 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023302 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023303 hardcode_into_libs=yes
23304 dynamic_linker="$host_os dld.so"
23305 shlibpath_var=LD_LIBRARY_PATH
23306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23308 soname_spec='${libname}${release}${shared_ext}$major'
23309 if test "X$HPUX_IA64_MODE" = X32; then
23310 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23311 else
23312 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23313 fi
23314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23315 ;;
23316 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023317 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023318 hardcode_into_libs=yes
23319 dynamic_linker="$host_os dld.sl"
23320 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23323 soname_spec='${libname}${release}${shared_ext}$major'
23324 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23326 ;;
23327 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023328 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023329 dynamic_linker="$host_os dld.sl"
23330 shlibpath_var=SHLIB_PATH
23331 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23333 soname_spec='${libname}${release}${shared_ext}$major'
23334 ;;
23335 esac
23336 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23337 postinstall_cmds='chmod 555 $lib'
23338 ;;
23339
Reid Spencera773bd52006-08-04 18:18:08 +000023340interix3*)
23341 version_type=linux
23342 need_lib_prefix=no
23343 need_version=no
23344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23345 soname_spec='${libname}${release}${shared_ext}$major'
23346 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23347 shlibpath_var=LD_LIBRARY_PATH
23348 shlibpath_overrides_runpath=no
23349 hardcode_into_libs=yes
23350 ;;
23351
John Criswell47fdd832003-07-14 16:52:07 +000023352irix5* | irix6* | nonstopux*)
23353 case $host_os in
23354 nonstopux*) version_type=nonstopux ;;
23355 *)
23356 if test "$lt_cv_prog_gnu_ld" = yes; then
23357 version_type=linux
23358 else
23359 version_type=irix
23360 fi ;;
23361 esac
23362 need_lib_prefix=no
23363 need_version=no
23364 soname_spec='${libname}${release}${shared_ext}$major'
23365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23366 case $host_os in
23367 irix5* | nonstopux*)
23368 libsuff= shlibsuff=
23369 ;;
23370 *)
23371 case $LD in # libtool.m4 will add one of these switches to LD
23372 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23373 libsuff= shlibsuff= libmagic=32-bit;;
23374 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23375 libsuff=32 shlibsuff=N32 libmagic=N32;;
23376 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23377 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23378 *) libsuff= shlibsuff= libmagic=never-match;;
23379 esac
23380 ;;
23381 esac
23382 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23383 shlibpath_overrides_runpath=no
23384 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23385 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23386 hardcode_into_libs=yes
23387 ;;
23388
23389# No shared lib support for Linux oldld, aout, or coff.
23390linux*oldld* | linux*aout* | linux*coff*)
23391 dynamic_linker=no
23392 ;;
23393
23394# This must be Linux ELF.
23395linux*)
23396 version_type=linux
23397 need_lib_prefix=no
23398 need_version=no
23399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23400 soname_spec='${libname}${release}${shared_ext}$major'
23401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23402 shlibpath_var=LD_LIBRARY_PATH
23403 shlibpath_overrides_runpath=no
23404 # This implies no fast_install, which is unacceptable.
23405 # Some rework will be needed to allow for fast_install
23406 # before this can be enabled.
23407 hardcode_into_libs=yes
23408
Reid Spencer2706f8c2004-09-19 23:53:36 +000023409 # Append ld.so.conf contents to the search path
23410 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023411 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 +000023412 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23413 fi
23414
John Criswell47fdd832003-07-14 16:52:07 +000023415 # We used to test for /lib/ld.so.1 and disable shared libraries on
23416 # powerpc, because MkLinux only supported shared libraries with the
23417 # GNU dynamic linker. Since this was broken with cross compilers,
23418 # most powerpc-linux boxes support dynamic linking these days and
23419 # people can always --disable-shared, the test was removed, and we
23420 # assume the GNU/Linux dynamic linker is in use.
23421 dynamic_linker='GNU/Linux ld.so'
23422 ;;
23423
Reid Spencer2706f8c2004-09-19 23:53:36 +000023424knetbsd*-gnu)
23425 version_type=linux
23426 need_lib_prefix=no
23427 need_version=no
23428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23429 soname_spec='${libname}${release}${shared_ext}$major'
23430 shlibpath_var=LD_LIBRARY_PATH
23431 shlibpath_overrides_runpath=no
23432 hardcode_into_libs=yes
23433 dynamic_linker='GNU ld.so'
23434 ;;
23435
John Criswell47fdd832003-07-14 16:52:07 +000023436netbsd*)
23437 version_type=sunos
23438 need_lib_prefix=no
23439 need_version=no
23440 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23443 dynamic_linker='NetBSD (a.out) ld.so'
23444 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023446 soname_spec='${libname}${release}${shared_ext}$major'
23447 dynamic_linker='NetBSD ld.elf_so'
23448 fi
23449 shlibpath_var=LD_LIBRARY_PATH
23450 shlibpath_overrides_runpath=yes
23451 hardcode_into_libs=yes
23452 ;;
23453
23454newsos6)
23455 version_type=linux
23456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23457 shlibpath_var=LD_LIBRARY_PATH
23458 shlibpath_overrides_runpath=yes
23459 ;;
23460
Reid Spencer2706f8c2004-09-19 23:53:36 +000023461nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023462 version_type=linux
23463 need_lib_prefix=no
23464 need_version=no
23465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23466 soname_spec='${libname}${release}${shared_ext}$major'
23467 shlibpath_var=LD_LIBRARY_PATH
23468 shlibpath_overrides_runpath=yes
23469 ;;
23470
23471openbsd*)
23472 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023473 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023474 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023475 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23476 case $host_os in
23477 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23478 *) need_version=no ;;
23479 esac
John Criswell47fdd832003-07-14 16:52:07 +000023480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23482 shlibpath_var=LD_LIBRARY_PATH
23483 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23484 case $host_os in
23485 openbsd2.[89] | openbsd2.[89].*)
23486 shlibpath_overrides_runpath=no
23487 ;;
23488 *)
23489 shlibpath_overrides_runpath=yes
23490 ;;
23491 esac
23492 else
23493 shlibpath_overrides_runpath=yes
23494 fi
23495 ;;
23496
23497os2*)
23498 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023499 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023500 need_lib_prefix=no
23501 library_names_spec='$libname${shared_ext} $libname.a'
23502 dynamic_linker='OS/2 ld.exe'
23503 shlibpath_var=LIBPATH
23504 ;;
23505
23506osf3* | osf4* | osf5*)
23507 version_type=osf
23508 need_lib_prefix=no
23509 need_version=no
23510 soname_spec='${libname}${release}${shared_ext}$major'
23511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23512 shlibpath_var=LD_LIBRARY_PATH
23513 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23514 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23515 ;;
23516
John Criswell47fdd832003-07-14 16:52:07 +000023517solaris*)
23518 version_type=linux
23519 need_lib_prefix=no
23520 need_version=no
23521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23522 soname_spec='${libname}${release}${shared_ext}$major'
23523 shlibpath_var=LD_LIBRARY_PATH
23524 shlibpath_overrides_runpath=yes
23525 hardcode_into_libs=yes
23526 # ldd complains unless libraries are executable
23527 postinstall_cmds='chmod +x $lib'
23528 ;;
23529
23530sunos4*)
23531 version_type=sunos
23532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23533 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23534 shlibpath_var=LD_LIBRARY_PATH
23535 shlibpath_overrides_runpath=yes
23536 if test "$with_gnu_ld" = yes; then
23537 need_lib_prefix=no
23538 fi
23539 need_version=yes
23540 ;;
23541
Reid Spencera773bd52006-08-04 18:18:08 +000023542sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023543 version_type=linux
23544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23545 soname_spec='${libname}${release}${shared_ext}$major'
23546 shlibpath_var=LD_LIBRARY_PATH
23547 case $host_vendor in
23548 sni)
23549 shlibpath_overrides_runpath=no
23550 need_lib_prefix=no
23551 export_dynamic_flag_spec='${wl}-Blargedynsym'
23552 runpath_var=LD_RUN_PATH
23553 ;;
23554 siemens)
23555 need_lib_prefix=no
23556 ;;
23557 motorola)
23558 need_lib_prefix=no
23559 need_version=no
23560 shlibpath_overrides_runpath=no
23561 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23562 ;;
23563 esac
23564 ;;
23565
23566sysv4*MP*)
23567 if test -d /usr/nec ;then
23568 version_type=linux
23569 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23570 soname_spec='$libname${shared_ext}.$major'
23571 shlibpath_var=LD_LIBRARY_PATH
23572 fi
23573 ;;
23574
Reid Spencera773bd52006-08-04 18:18:08 +000023575sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23576 version_type=freebsd-elf
23577 need_lib_prefix=no
23578 need_version=no
23579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23580 soname_spec='${libname}${release}${shared_ext}$major'
23581 shlibpath_var=LD_LIBRARY_PATH
23582 hardcode_into_libs=yes
23583 if test "$with_gnu_ld" = yes; then
23584 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23585 shlibpath_overrides_runpath=no
23586 else
23587 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23588 shlibpath_overrides_runpath=yes
23589 case $host_os in
23590 sco3.2v5*)
23591 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23592 ;;
23593 esac
23594 fi
23595 sys_lib_dlsearch_path_spec='/usr/lib'
23596 ;;
23597
John Criswell47fdd832003-07-14 16:52:07 +000023598uts4*)
23599 version_type=linux
23600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23601 soname_spec='${libname}${release}${shared_ext}$major'
23602 shlibpath_var=LD_LIBRARY_PATH
23603 ;;
23604
23605*)
23606 dynamic_linker=no
23607 ;;
23608esac
Reid Spencera773bd52006-08-04 18:18:08 +000023609{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23610echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023611test "$dynamic_linker" = no && can_build_shared=no
23612
Reid Spencera773bd52006-08-04 18:18:08 +000023613variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23614if test "$GCC" = yes; then
23615 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23616fi
23617
23618{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23619echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023620hardcode_action_F77=
23621if test -n "$hardcode_libdir_flag_spec_F77" || \
23622 test -n "$runpath_var_F77" || \
23623 test "X$hardcode_automatic_F77" = "Xyes" ; then
23624
23625 # We can hardcode non-existant directories.
23626 if test "$hardcode_direct_F77" != no &&
23627 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23628 # have to relink, otherwise we might link with an installed library
23629 # when we should be linking with a yet-to-be-installed one
23630 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23631 test "$hardcode_minus_L_F77" != no; then
23632 # Linking always hardcodes the temporary library directory.
23633 hardcode_action_F77=relink
23634 else
23635 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23636 hardcode_action_F77=immediate
23637 fi
23638else
23639 # We cannot hardcode anything, or else we can only hardcode existing
23640 # directories.
23641 hardcode_action_F77=unsupported
23642fi
Reid Spencera773bd52006-08-04 18:18:08 +000023643{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23644echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023645
23646if test "$hardcode_action_F77" = relink; then
23647 # Fast installation is not supported
23648 enable_fast_install=no
23649elif test "$shlibpath_overrides_runpath" = yes ||
23650 test "$enable_shared" = no; then
23651 # Fast installation is not necessary
23652 enable_fast_install=needless
23653fi
23654
John Criswell47fdd832003-07-14 16:52:07 +000023655
23656# The else clause should only fire when bootstrapping the
23657# libtool distribution, otherwise you forgot to ship ltmain.sh
23658# with your package, and you will get complaints that there are
23659# no rules to generate ltmain.sh.
23660if test -f "$ltmain"; then
23661 # See if we are running on zsh, and set the options which allow our commands through
23662 # without removal of \ escapes.
23663 if test -n "${ZSH_VERSION+set}" ; then
23664 setopt NO_GLOB_SUBST
23665 fi
23666 # Now quote all the things that may contain metacharacters while being
23667 # careful not to overquote the AC_SUBSTed values. We take copies of the
23668 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023669 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 +000023670 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023671 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23672 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23673 deplibs_check_method reload_flag reload_cmds need_locks \
23674 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23675 lt_cv_sys_global_symbol_to_c_name_address \
23676 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23677 old_postinstall_cmds old_postuninstall_cmds \
23678 compiler_F77 \
23679 CC_F77 \
23680 LD_F77 \
23681 lt_prog_compiler_wl_F77 \
23682 lt_prog_compiler_pic_F77 \
23683 lt_prog_compiler_static_F77 \
23684 lt_prog_compiler_no_builtin_flag_F77 \
23685 export_dynamic_flag_spec_F77 \
23686 thread_safe_flag_spec_F77 \
23687 whole_archive_flag_spec_F77 \
23688 enable_shared_with_static_runtimes_F77 \
23689 old_archive_cmds_F77 \
23690 old_archive_from_new_cmds_F77 \
23691 predep_objects_F77 \
23692 postdep_objects_F77 \
23693 predeps_F77 \
23694 postdeps_F77 \
23695 compiler_lib_search_path_F77 \
23696 archive_cmds_F77 \
23697 archive_expsym_cmds_F77 \
23698 postinstall_cmds_F77 \
23699 postuninstall_cmds_F77 \
23700 old_archive_from_expsyms_cmds_F77 \
23701 allow_undefined_flag_F77 \
23702 no_undefined_flag_F77 \
23703 export_symbols_cmds_F77 \
23704 hardcode_libdir_flag_spec_F77 \
23705 hardcode_libdir_flag_spec_ld_F77 \
23706 hardcode_libdir_separator_F77 \
23707 hardcode_automatic_F77 \
23708 module_cmds_F77 \
23709 module_expsym_cmds_F77 \
23710 lt_cv_prog_compiler_c_o_F77 \
23711 exclude_expsyms_F77 \
23712 include_expsyms_F77; do
23713
23714 case $var in
23715 old_archive_cmds_F77 | \
23716 old_archive_from_new_cmds_F77 | \
23717 archive_cmds_F77 | \
23718 archive_expsym_cmds_F77 | \
23719 module_cmds_F77 | \
23720 module_expsym_cmds_F77 | \
23721 old_archive_from_expsyms_cmds_F77 | \
23722 export_symbols_cmds_F77 | \
23723 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23724 postinstall_cmds | postuninstall_cmds | \
23725 old_postinstall_cmds | old_postuninstall_cmds | \
23726 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23727 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023728 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 +000023729 ;;
23730 *)
23731 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23732 ;;
23733 esac
23734 done
23735
23736 case $lt_echo in
23737 *'\$0 --fallback-echo"')
23738 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23739 ;;
23740 esac
23741
23742cfgfile="$ofile"
23743
23744 cat <<__EOF__ >> "$cfgfile"
23745# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23746
23747# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23748
23749# Shell to use when invoking shell scripts.
23750SHELL=$lt_SHELL
23751
23752# Whether or not to build shared libraries.
23753build_libtool_libs=$enable_shared
23754
23755# Whether or not to build static libraries.
23756build_old_libs=$enable_static
23757
23758# Whether or not to add -lc for building shared libraries.
23759build_libtool_need_lc=$archive_cmds_need_lc_F77
23760
23761# Whether or not to disallow shared libs when runtime libs are static
23762allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23763
23764# Whether or not to optimize for fast installation.
23765fast_install=$enable_fast_install
23766
23767# The host system.
23768host_alias=$host_alias
23769host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023770host_os=$host_os
23771
23772# The build system.
23773build_alias=$build_alias
23774build=$build
23775build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023776
23777# An echo program that does not interpret backslashes.
23778echo=$lt_echo
23779
23780# The archiver.
23781AR=$lt_AR
23782AR_FLAGS=$lt_AR_FLAGS
23783
23784# A C compiler.
23785LTCC=$lt_LTCC
23786
Reid Spencera773bd52006-08-04 18:18:08 +000023787# LTCC compiler flags.
23788LTCFLAGS=$lt_LTCFLAGS
23789
John Criswell47fdd832003-07-14 16:52:07 +000023790# A language-specific compiler.
23791CC=$lt_compiler_F77
23792
23793# Is the compiler the GNU C compiler?
23794with_gcc=$GCC_F77
23795
23796# An ERE matcher.
23797EGREP=$lt_EGREP
23798
23799# The linker used to build libraries.
23800LD=$lt_LD_F77
23801
23802# Whether we need hard or soft links.
23803LN_S=$lt_LN_S
23804
23805# A BSD-compatible nm program.
23806NM=$lt_NM
23807
23808# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023809STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023810
23811# Used to examine libraries when file_magic_cmd begins "file"
23812MAGIC_CMD=$MAGIC_CMD
23813
23814# Used on cygwin: DLL creation program.
23815DLLTOOL="$DLLTOOL"
23816
23817# Used on cygwin: object dumper.
23818OBJDUMP="$OBJDUMP"
23819
23820# Used on cygwin: assembler.
23821AS="$AS"
23822
23823# The name of the directory that contains temporary libtool files.
23824objdir=$objdir
23825
23826# How to create reloadable object files.
23827reload_flag=$lt_reload_flag
23828reload_cmds=$lt_reload_cmds
23829
23830# How to pass a linker flag through the compiler.
23831wl=$lt_lt_prog_compiler_wl_F77
23832
23833# Object file suffix (normally "o").
23834objext="$ac_objext"
23835
23836# Old archive suffix (normally "a").
23837libext="$libext"
23838
23839# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023840shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023841
23842# Executable file suffix (normally "").
23843exeext="$exeext"
23844
23845# Additional compiler flags for building library objects.
23846pic_flag=$lt_lt_prog_compiler_pic_F77
23847pic_mode=$pic_mode
23848
23849# What is the maximum length of a command?
23850max_cmd_len=$lt_cv_sys_max_cmd_len
23851
23852# Does compiler simultaneously support -c and -o options?
23853compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23854
Reid Spencera773bd52006-08-04 18:18:08 +000023855# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023856need_locks=$lt_need_locks
23857
23858# Do we need the lib prefix for modules?
23859need_lib_prefix=$need_lib_prefix
23860
23861# Do we need a version for libraries?
23862need_version=$need_version
23863
23864# Whether dlopen is supported.
23865dlopen_support=$enable_dlopen
23866
23867# Whether dlopen of programs is supported.
23868dlopen_self=$enable_dlopen_self
23869
23870# Whether dlopen of statically linked programs is supported.
23871dlopen_self_static=$enable_dlopen_self_static
23872
23873# Compiler flag to prevent dynamic linking.
23874link_static_flag=$lt_lt_prog_compiler_static_F77
23875
23876# Compiler flag to turn off builtin functions.
23877no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23878
23879# Compiler flag to allow reflexive dlopens.
23880export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23881
23882# Compiler flag to generate shared objects directly from archives.
23883whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23884
23885# Compiler flag to generate thread-safe objects.
23886thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23887
23888# Library versioning type.
23889version_type=$version_type
23890
23891# Format of library name prefix.
23892libname_spec=$lt_libname_spec
23893
23894# List of archive names. First name is the real one, the rest are links.
23895# The last name is the one that the linker finds with -lNAME.
23896library_names_spec=$lt_library_names_spec
23897
23898# The coded name of the library, if different from the real name.
23899soname_spec=$lt_soname_spec
23900
23901# Commands used to build and install an old-style archive.
23902RANLIB=$lt_RANLIB
23903old_archive_cmds=$lt_old_archive_cmds_F77
23904old_postinstall_cmds=$lt_old_postinstall_cmds
23905old_postuninstall_cmds=$lt_old_postuninstall_cmds
23906
23907# Create an old-style archive from a shared archive.
23908old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23909
23910# Create a temporary old-style archive to link instead of a shared archive.
23911old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23912
23913# Commands used to build and install a shared archive.
23914archive_cmds=$lt_archive_cmds_F77
23915archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23916postinstall_cmds=$lt_postinstall_cmds
23917postuninstall_cmds=$lt_postuninstall_cmds
23918
23919# Commands used to build a loadable module (assumed same as above if empty)
23920module_cmds=$lt_module_cmds_F77
23921module_expsym_cmds=$lt_module_expsym_cmds_F77
23922
23923# Commands to strip libraries.
23924old_striplib=$lt_old_striplib
23925striplib=$lt_striplib
23926
23927# Dependencies to place before the objects being linked to create a
23928# shared library.
23929predep_objects=$lt_predep_objects_F77
23930
23931# Dependencies to place after the objects being linked to create a
23932# shared library.
23933postdep_objects=$lt_postdep_objects_F77
23934
23935# Dependencies to place before the objects being linked to create a
23936# shared library.
23937predeps=$lt_predeps_F77
23938
23939# Dependencies to place after the objects being linked to create a
23940# shared library.
23941postdeps=$lt_postdeps_F77
23942
23943# The library search path used internally by the compiler when linking
23944# a shared library.
23945compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23946
23947# Method to check whether dependent libraries are shared objects.
23948deplibs_check_method=$lt_deplibs_check_method
23949
23950# Command to use when deplibs_check_method == file_magic.
23951file_magic_cmd=$lt_file_magic_cmd
23952
23953# Flag that allows shared libraries with undefined symbols to be built.
23954allow_undefined_flag=$lt_allow_undefined_flag_F77
23955
23956# Flag that forces no undefined symbols.
23957no_undefined_flag=$lt_no_undefined_flag_F77
23958
23959# Commands used to finish a libtool library installation in a directory.
23960finish_cmds=$lt_finish_cmds
23961
23962# Same as above, but a single script fragment to be evaled but not shown.
23963finish_eval=$lt_finish_eval
23964
23965# Take the output of nm and produce a listing of raw symbols and C names.
23966global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23967
23968# Transform the output of nm in a proper C declaration
23969global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23970
23971# Transform the output of nm in a C name address pair
23972global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23973
23974# This is the shared library runtime path variable.
23975runpath_var=$runpath_var
23976
23977# This is the shared library path variable.
23978shlibpath_var=$shlibpath_var
23979
23980# Is shlibpath searched before the hard-coded library search path?
23981shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23982
23983# How to hardcode a shared library path into an executable.
23984hardcode_action=$hardcode_action_F77
23985
23986# Whether we should hardcode library paths into libraries.
23987hardcode_into_libs=$hardcode_into_libs
23988
23989# Flag to hardcode \$libdir into a binary during linking.
23990# This must work even if \$libdir does not exist.
23991hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23992
23993# If ld is used when linking, flag to hardcode \$libdir into
23994# a binary during linking. This must work even if \$libdir does
23995# not exist.
23996hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23997
23998# Whether we need a single -rpath flag with a separated argument.
23999hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24000
24001# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24002# resulting binary.
24003hardcode_direct=$hardcode_direct_F77
24004
24005# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24006# resulting binary.
24007hardcode_minus_L=$hardcode_minus_L_F77
24008
24009# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24010# the resulting binary.
24011hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24012
24013# Set to yes if building a shared library automatically hardcodes DIR into the library
24014# and all subsequent libraries and executables linked against it.
24015hardcode_automatic=$hardcode_automatic_F77
24016
24017# Variables whose values should be saved in libtool wrapper scripts and
24018# restored at relink time.
24019variables_saved_for_relink="$variables_saved_for_relink"
24020
24021# Whether libtool must link a program against all its dependency libraries.
24022link_all_deplibs=$link_all_deplibs_F77
24023
24024# Compile-time system search path for libraries
24025sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24026
24027# Run-time system search path for libraries
24028sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24029
24030# Fix the shell variable \$srcfile for the compiler.
24031fix_srcfile_path="$fix_srcfile_path_F77"
24032
24033# Set to yes if exported symbols are required.
24034always_export_symbols=$always_export_symbols_F77
24035
24036# The commands to list exported symbols.
24037export_symbols_cmds=$lt_export_symbols_cmds_F77
24038
24039# The commands to extract the exported symbol list from a shared archive.
24040extract_expsyms_cmds=$lt_extract_expsyms_cmds
24041
24042# Symbols that should not be listed in the preloaded symbols.
24043exclude_expsyms=$lt_exclude_expsyms_F77
24044
24045# Symbols that must always be exported.
24046include_expsyms=$lt_include_expsyms_F77
24047
24048# ### END LIBTOOL TAG CONFIG: $tagname
24049
24050__EOF__
24051
24052
24053else
24054 # If there is no Makefile yet, we rely on a make rule to execute
24055 # `config.status --recheck' to rerun these tests and create the
24056 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024057 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24058 if test -f "$ltmain_in"; then
24059 test -f Makefile && make "$ltmain"
24060 fi
John Criswell47fdd832003-07-14 16:52:07 +000024061fi
24062
24063
24064ac_ext=c
24065ac_cpp='$CPP $CPPFLAGS'
24066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24068ac_compiler_gnu=$ac_cv_c_compiler_gnu
24069
24070CC="$lt_save_CC"
24071
24072 else
24073 tagname=""
24074 fi
24075 ;;
24076
24077 GCJ)
24078 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024079 ac_ext=c
24080ac_cpp='$CPP $CPPFLAGS'
24081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24083ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024084
24085
24086# Source file extension for Java test sources.
24087ac_ext=java
24088
24089# Object file extension for compiled Java test sources.
24090objext=o
24091objext_GCJ=$objext
24092
24093# Code to be used in simple compile tests
24094lt_simple_compile_test_code="class foo {}\n"
24095
24096# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000024097lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000024098
24099# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24100
24101# If no C compiler was specified, use CC.
24102LTCC=${LTCC-"$CC"}
24103
Reid Spencera773bd52006-08-04 18:18:08 +000024104# If no C compiler flags were specified, use CFLAGS.
24105LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24106
John Criswell47fdd832003-07-14 16:52:07 +000024107# Allow CC to be a program name with arguments.
24108compiler=$CC
24109
24110
Reid Spencera773bd52006-08-04 18:18:08 +000024111# save warnings/boilerplate of simple test code
24112ac_outfile=conftest.$ac_objext
24113printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24114eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24115_lt_compiler_boilerplate=`cat conftest.err`
24116$rm conftest*
24117
24118ac_outfile=conftest.$ac_objext
24119printf "$lt_simple_link_test_code" >conftest.$ac_ext
24120eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24121_lt_linker_boilerplate=`cat conftest.err`
24122$rm conftest*
24123
24124
John Criswell47fdd832003-07-14 16:52:07 +000024125# Allow CC to be a program name with arguments.
24126lt_save_CC="$CC"
24127CC=${GCJ-"gcj"}
24128compiler=$CC
24129compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000024130for cc_temp in $compiler""; do
24131 case $cc_temp in
24132 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24133 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24134 \-*) ;;
24135 *) break;;
24136 esac
24137done
24138cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24139
John Criswell47fdd832003-07-14 16:52:07 +000024140
24141# GCJ did not exist at the time GCC didn't implicitly link libc in.
24142archive_cmds_need_lc_GCJ=no
24143
Reid Spencera773bd52006-08-04 18:18:08 +000024144old_archive_cmds_GCJ=$old_archive_cmds
24145
John Criswell47fdd832003-07-14 16:52:07 +000024146
24147lt_prog_compiler_no_builtin_flag_GCJ=
24148
24149if test "$GCC" = yes; then
24150 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24151
Reid Spencer2706f8c2004-09-19 23:53:36 +000024152
Reid Spencera773bd52006-08-04 18:18:08 +000024153{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24154echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024155if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24156 echo $ECHO_N "(cached) $ECHO_C" >&6
24157else
24158 lt_cv_prog_compiler_rtti_exceptions=no
24159 ac_outfile=conftest.$ac_objext
24160 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24161 lt_compiler_flag="-fno-rtti -fno-exceptions"
24162 # Insert the option either (1) after the last *FLAGS variable, or
24163 # (2) before a word containing "conftest.", or (3) at the end.
24164 # Note that $ac_compile itself does not contain backslashes and begins
24165 # with a dollar sign (not a hyphen), so the echo should work correctly.
24166 # The option is referenced via a variable to avoid confusing sed.
24167 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24170 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000024171 (eval echo "\"\$as_me:24171: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024172 (eval "$lt_compile" 2>conftest.err)
24173 ac_status=$?
24174 cat conftest.err >&5
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000024175 echo "$as_me:24175: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024176 if (exit $ac_status) && test -s "$ac_outfile"; then
24177 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024178 # So say no if there are warnings other than the usual output.
24179 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24181 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024182 lt_cv_prog_compiler_rtti_exceptions=yes
24183 fi
24184 fi
24185 $rm conftest*
24186
24187fi
Reid Spencera773bd52006-08-04 18:18:08 +000024188{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24189echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024190
24191if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24192 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24193else
24194 :
24195fi
24196
24197fi
24198
24199lt_prog_compiler_wl_GCJ=
24200lt_prog_compiler_pic_GCJ=
24201lt_prog_compiler_static_GCJ=
24202
Reid Spencera773bd52006-08-04 18:18:08 +000024203{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24204echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024205
24206 if test "$GCC" = yes; then
24207 lt_prog_compiler_wl_GCJ='-Wl,'
24208 lt_prog_compiler_static_GCJ='-static'
24209
24210 case $host_os in
24211 aix*)
24212 # All AIX code is PIC.
24213 if test "$host_cpu" = ia64; then
24214 # AIX 5 now supports IA64 processor
24215 lt_prog_compiler_static_GCJ='-Bstatic'
24216 fi
24217 ;;
24218
24219 amigaos*)
24220 # FIXME: we need at least 68020 code to build shared libraries, but
24221 # adding the `-m68020' flag to GCC prevents building anything better,
24222 # like `-m68040'.
24223 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24224 ;;
24225
24226 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24227 # PIC is the default for these OSes.
24228 ;;
24229
24230 mingw* | pw32* | os2*)
24231 # This hack is so that the source file can tell whether it is being
24232 # built for inclusion in a dll (and should export symbols for example).
24233 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24234 ;;
24235
24236 darwin* | rhapsody*)
24237 # PIC is the default on this platform
24238 # Common symbols not allowed in MH_DYLIB files
24239 lt_prog_compiler_pic_GCJ='-fno-common'
24240 ;;
24241
Reid Spencera773bd52006-08-04 18:18:08 +000024242 interix3*)
24243 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24244 # Instead, we relocate shared libraries at runtime.
24245 ;;
24246
John Criswell47fdd832003-07-14 16:52:07 +000024247 msdosdjgpp*)
24248 # Just because we use GCC doesn't mean we suddenly get shared libraries
24249 # on systems that don't support them.
24250 lt_prog_compiler_can_build_shared_GCJ=no
24251 enable_shared=no
24252 ;;
24253
24254 sysv4*MP*)
24255 if test -d /usr/nec; then
24256 lt_prog_compiler_pic_GCJ=-Kconform_pic
24257 fi
24258 ;;
24259
24260 hpux*)
24261 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24262 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024263 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024264 hppa*64*|ia64*)
24265 # +Z the default
24266 ;;
24267 *)
24268 lt_prog_compiler_pic_GCJ='-fPIC'
24269 ;;
24270 esac
24271 ;;
24272
24273 *)
24274 lt_prog_compiler_pic_GCJ='-fPIC'
24275 ;;
24276 esac
24277 else
24278 # PORTME Check for flag to pass linker flags through the system compiler.
24279 case $host_os in
24280 aix*)
24281 lt_prog_compiler_wl_GCJ='-Wl,'
24282 if test "$host_cpu" = ia64; then
24283 # AIX 5 now supports IA64 processor
24284 lt_prog_compiler_static_GCJ='-Bstatic'
24285 else
24286 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24287 fi
24288 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024289 darwin*)
24290 # PIC is the default on this platform
24291 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024292 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024293 xlc*)
24294 lt_prog_compiler_pic_GCJ='-qnocommon'
24295 lt_prog_compiler_wl_GCJ='-Wl,'
24296 ;;
24297 esac
24298 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024299
24300 mingw* | pw32* | os2*)
24301 # This hack is so that the source file can tell whether it is being
24302 # built for inclusion in a dll (and should export symbols for example).
24303 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24304 ;;
24305
24306 hpux9* | hpux10* | hpux11*)
24307 lt_prog_compiler_wl_GCJ='-Wl,'
24308 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24309 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024310 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024311 hppa*64*|ia64*)
24312 # +Z the default
24313 ;;
24314 *)
24315 lt_prog_compiler_pic_GCJ='+Z'
24316 ;;
24317 esac
24318 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24319 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24320 ;;
24321
24322 irix5* | irix6* | nonstopux*)
24323 lt_prog_compiler_wl_GCJ='-Wl,'
24324 # PIC (with -KPIC) is the default.
24325 lt_prog_compiler_static_GCJ='-non_shared'
24326 ;;
24327
24328 newsos6)
24329 lt_prog_compiler_pic_GCJ='-KPIC'
24330 lt_prog_compiler_static_GCJ='-Bstatic'
24331 ;;
24332
24333 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024334 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024335 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024336 lt_prog_compiler_wl_GCJ='-Wl,'
24337 lt_prog_compiler_pic_GCJ='-KPIC'
24338 lt_prog_compiler_static_GCJ='-static'
24339 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024340 pgcc* | pgf77* | pgf90* | pgf95*)
24341 # Portland Group compilers (*not* the Pentium gcc compiler,
24342 # which looks to be a dead project)
24343 lt_prog_compiler_wl_GCJ='-Wl,'
24344 lt_prog_compiler_pic_GCJ='-fpic'
24345 lt_prog_compiler_static_GCJ='-Bstatic'
24346 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024347 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024348 lt_prog_compiler_wl_GCJ='-Wl,'
24349 # All Alpha code is PIC.
24350 lt_prog_compiler_static_GCJ='-non_shared'
24351 ;;
24352 esac
24353 ;;
24354
24355 osf3* | osf4* | osf5*)
24356 lt_prog_compiler_wl_GCJ='-Wl,'
24357 # All OSF/1 code is PIC.
24358 lt_prog_compiler_static_GCJ='-non_shared'
24359 ;;
24360
John Criswell47fdd832003-07-14 16:52:07 +000024361 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024362 lt_prog_compiler_pic_GCJ='-KPIC'
24363 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024364 case $cc_basename in
24365 f77* | f90* | f95*)
24366 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24367 *)
24368 lt_prog_compiler_wl_GCJ='-Wl,';;
24369 esac
John Criswell47fdd832003-07-14 16:52:07 +000024370 ;;
24371
24372 sunos4*)
24373 lt_prog_compiler_wl_GCJ='-Qoption ld '
24374 lt_prog_compiler_pic_GCJ='-PIC'
24375 lt_prog_compiler_static_GCJ='-Bstatic'
24376 ;;
24377
Reid Spencera773bd52006-08-04 18:18:08 +000024378 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024379 lt_prog_compiler_wl_GCJ='-Wl,'
24380 lt_prog_compiler_pic_GCJ='-KPIC'
24381 lt_prog_compiler_static_GCJ='-Bstatic'
24382 ;;
24383
24384 sysv4*MP*)
24385 if test -d /usr/nec ;then
24386 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24387 lt_prog_compiler_static_GCJ='-Bstatic'
24388 fi
24389 ;;
24390
Reid Spencera773bd52006-08-04 18:18:08 +000024391 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24392 lt_prog_compiler_wl_GCJ='-Wl,'
24393 lt_prog_compiler_pic_GCJ='-KPIC'
24394 lt_prog_compiler_static_GCJ='-Bstatic'
24395 ;;
24396
24397 unicos*)
24398 lt_prog_compiler_wl_GCJ='-Wl,'
24399 lt_prog_compiler_can_build_shared_GCJ=no
24400 ;;
24401
John Criswell47fdd832003-07-14 16:52:07 +000024402 uts4*)
24403 lt_prog_compiler_pic_GCJ='-pic'
24404 lt_prog_compiler_static_GCJ='-Bstatic'
24405 ;;
24406
24407 *)
24408 lt_prog_compiler_can_build_shared_GCJ=no
24409 ;;
24410 esac
24411 fi
24412
Reid Spencera773bd52006-08-04 18:18:08 +000024413{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24414echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024415
24416#
24417# Check to make sure the PIC flag actually works.
24418#
24419if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024420
Reid Spencera773bd52006-08-04 18:18:08 +000024421{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24422echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024423if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24424 echo $ECHO_N "(cached) $ECHO_C" >&6
24425else
24426 lt_prog_compiler_pic_works_GCJ=no
24427 ac_outfile=conftest.$ac_objext
24428 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24429 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24430 # Insert the option either (1) after the last *FLAGS variable, or
24431 # (2) before a word containing "conftest.", or (3) at the end.
24432 # Note that $ac_compile itself does not contain backslashes and begins
24433 # with a dollar sign (not a hyphen), so the echo should work correctly.
24434 # The option is referenced via a variable to avoid confusing sed.
24435 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24438 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000024439 (eval echo "\"\$as_me:24439: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024440 (eval "$lt_compile" 2>conftest.err)
24441 ac_status=$?
24442 cat conftest.err >&5
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000024443 echo "$as_me:24443: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024444 if (exit $ac_status) && test -s "$ac_outfile"; then
24445 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024446 # So say no if there are warnings other than the usual output.
24447 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24449 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024450 lt_prog_compiler_pic_works_GCJ=yes
24451 fi
24452 fi
24453 $rm conftest*
24454
24455fi
Reid Spencera773bd52006-08-04 18:18:08 +000024456{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24457echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024458
24459if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24460 case $lt_prog_compiler_pic_GCJ in
24461 "" | " "*) ;;
24462 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24463 esac
24464else
24465 lt_prog_compiler_pic_GCJ=
24466 lt_prog_compiler_can_build_shared_GCJ=no
24467fi
24468
24469fi
Reid Spencera773bd52006-08-04 18:18:08 +000024470case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024471 # For platforms which do not support PIC, -DPIC is meaningless:
24472 *djgpp*)
24473 lt_prog_compiler_pic_GCJ=
24474 ;;
24475 *)
24476 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24477 ;;
24478esac
24479
Reid Spencera773bd52006-08-04 18:18:08 +000024480#
24481# Check to make sure the static flag actually works.
24482#
24483wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24484{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24485echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24486if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24487 echo $ECHO_N "(cached) $ECHO_C" >&6
24488else
24489 lt_prog_compiler_static_works_GCJ=no
24490 save_LDFLAGS="$LDFLAGS"
24491 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24492 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24493 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24494 # The linker can only warn and ignore the option if not recognized
24495 # So say no if there are warnings
24496 if test -s conftest.err; then
24497 # Append any errors to the config.log.
24498 cat conftest.err 1>&5
24499 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24501 if diff conftest.exp conftest.er2 >/dev/null; then
24502 lt_prog_compiler_static_works_GCJ=yes
24503 fi
24504 else
24505 lt_prog_compiler_static_works_GCJ=yes
24506 fi
24507 fi
24508 $rm conftest*
24509 LDFLAGS="$save_LDFLAGS"
24510
24511fi
24512{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24513echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24514
24515if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24516 :
24517else
24518 lt_prog_compiler_static_GCJ=
24519fi
24520
24521
24522{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24523echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024524if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24525 echo $ECHO_N "(cached) $ECHO_C" >&6
24526else
24527 lt_cv_prog_compiler_c_o_GCJ=no
24528 $rm -r conftest 2>/dev/null
24529 mkdir conftest
24530 cd conftest
24531 mkdir out
24532 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24533
John Criswell47fdd832003-07-14 16:52:07 +000024534 lt_compiler_flag="-o out/conftest2.$ac_objext"
24535 # Insert the option either (1) after the last *FLAGS variable, or
24536 # (2) before a word containing "conftest.", or (3) at the end.
24537 # Note that $ac_compile itself does not contain backslashes and begins
24538 # with a dollar sign (not a hyphen), so the echo should work correctly.
24539 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24542 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000024543 (eval echo "\"\$as_me:24543: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024544 (eval "$lt_compile" 2>out/conftest.err)
24545 ac_status=$?
24546 cat out/conftest.err >&5
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000024547 echo "$as_me:24547: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024548 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24549 then
24550 # The compiler can only warn and ignore the option if not recognized
24551 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024552 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24553 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24554 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024555 lt_cv_prog_compiler_c_o_GCJ=yes
24556 fi
24557 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024558 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024559 $rm conftest*
24560 # SGI C++ compiler will create directory out/ii_files/ for
24561 # template instantiation
24562 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24563 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024564 cd ..
24565 rmdir conftest
24566 $rm conftest*
24567
24568fi
Reid Spencera773bd52006-08-04 18:18:08 +000024569{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24570echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024571
24572
24573hard_links="nottested"
24574if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24575 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024576 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24577echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024578 hard_links=yes
24579 $rm conftest*
24580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24581 touch conftest.a
24582 ln conftest.a conftest.b 2>&5 || hard_links=no
24583 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024584 { echo "$as_me:$LINENO: result: $hard_links" >&5
24585echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024586 if test "$hard_links" = no; then
24587 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24588echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24589 need_locks=warn
24590 fi
24591else
24592 need_locks=no
24593fi
24594
Reid Spencera773bd52006-08-04 18:18:08 +000024595{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24596echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024597
24598 runpath_var=
24599 allow_undefined_flag_GCJ=
24600 enable_shared_with_static_runtimes_GCJ=no
24601 archive_cmds_GCJ=
24602 archive_expsym_cmds_GCJ=
24603 old_archive_From_new_cmds_GCJ=
24604 old_archive_from_expsyms_cmds_GCJ=
24605 export_dynamic_flag_spec_GCJ=
24606 whole_archive_flag_spec_GCJ=
24607 thread_safe_flag_spec_GCJ=
24608 hardcode_libdir_flag_spec_GCJ=
24609 hardcode_libdir_flag_spec_ld_GCJ=
24610 hardcode_libdir_separator_GCJ=
24611 hardcode_direct_GCJ=no
24612 hardcode_minus_L_GCJ=no
24613 hardcode_shlibpath_var_GCJ=unsupported
24614 link_all_deplibs_GCJ=unknown
24615 hardcode_automatic_GCJ=no
24616 module_cmds_GCJ=
24617 module_expsym_cmds_GCJ=
24618 always_export_symbols_GCJ=no
24619 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24620 # include_expsyms should be a list of space-separated symbols to be *always*
24621 # included in the symbol list
24622 include_expsyms_GCJ=
24623 # exclude_expsyms can be an extended regexp of symbols to exclude
24624 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24625 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24626 # as well as any symbol that contains `d'.
24627 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24628 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24629 # platforms (ab)use it in PIC code, but their linkers get confused if
24630 # the symbol is explicitly referenced. Since portable code cannot
24631 # rely on this symbol name, it's probably fine to never include it in
24632 # preloaded symbol tables.
24633 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024634 # Just being paranoid about ensuring that cc_basename is set.
24635 for cc_temp in $compiler""; do
24636 case $cc_temp in
24637 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24638 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24639 \-*) ;;
24640 *) break;;
24641 esac
24642done
24643cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024644
24645 case $host_os in
24646 cygwin* | mingw* | pw32*)
24647 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24648 # When not using gcc, we currently assume that we are using
24649 # Microsoft Visual C++.
24650 if test "$GCC" != yes; then
24651 with_gnu_ld=no
24652 fi
24653 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024654 interix*)
24655 # we just hope/assume this is gcc and not c89 (= MSVC++)
24656 with_gnu_ld=yes
24657 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024658 openbsd*)
24659 with_gnu_ld=no
24660 ;;
24661 esac
24662
24663 ld_shlibs_GCJ=yes
24664 if test "$with_gnu_ld" = yes; then
24665 # If archive_cmds runs LD, not CC, wlarc should be empty
24666 wlarc='${wl}'
24667
Reid Spencera773bd52006-08-04 18:18:08 +000024668 # Set some defaults for GNU ld with shared library support. These
24669 # are reset later if shared libraries are not supported. Putting them
24670 # here allows them to be overridden if necessary.
24671 runpath_var=LD_RUN_PATH
24672 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24673 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24674 # ancient GNU ld didn't support --whole-archive et. al.
24675 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24676 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24677 else
24678 whole_archive_flag_spec_GCJ=
24679 fi
24680 supports_anon_versioning=no
24681 case `$LD -v 2>/dev/null` in
24682 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24683 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24684 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24685 *\ 2.11.*) ;; # other 2.11 versions
24686 *) supports_anon_versioning=yes ;;
24687 esac
24688
John Criswell47fdd832003-07-14 16:52:07 +000024689 # See if GNU ld supports shared libraries.
24690 case $host_os in
24691 aix3* | aix4* | aix5*)
24692 # On AIX/PPC, the GNU linker is very broken
24693 if test "$host_cpu" != ia64; then
24694 ld_shlibs_GCJ=no
24695 cat <<EOF 1>&2
24696
24697*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24698*** to be unable to reliably create shared libraries on AIX.
24699*** Therefore, libtool is disabling shared libraries support. If you
24700*** really care for shared libraries, you may want to modify your PATH
24701*** so that a non-GNU linker is found, and then restart.
24702
24703EOF
24704 fi
24705 ;;
24706
24707 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024708 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 +000024709 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24710 hardcode_minus_L_GCJ=yes
24711
24712 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24713 # that the semantics of dynamic libraries on AmigaOS, at least up
24714 # to version 4, is to share data among multiple programs linked
24715 # with the same dynamic library. Since this doesn't match the
24716 # behavior of shared libraries on other platforms, we can't use
24717 # them.
24718 ld_shlibs_GCJ=no
24719 ;;
24720
24721 beos*)
24722 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24723 allow_undefined_flag_GCJ=unsupported
24724 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24725 # support --undefined. This deserves some investigation. FIXME
24726 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24727 else
24728 ld_shlibs_GCJ=no
24729 fi
24730 ;;
24731
24732 cygwin* | mingw* | pw32*)
24733 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24734 # as there is no search path for DLLs.
24735 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24736 allow_undefined_flag_GCJ=unsupported
24737 always_export_symbols_GCJ=no
24738 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024739 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 +000024740
24741 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024742 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 +000024743 # If the export-symbols file already is a .def file (1st line
24744 # is EXPORTS), use it as is; otherwise, prepend...
24745 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24746 cp $export_symbols $output_objdir/$soname.def;
24747 else
24748 echo EXPORTS > $output_objdir/$soname.def;
24749 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024750 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024751 $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 +000024752 else
Reid Spencera773bd52006-08-04 18:18:08 +000024753 ld_shlibs_GCJ=no
24754 fi
24755 ;;
24756
24757 interix3*)
24758 hardcode_direct_GCJ=no
24759 hardcode_shlibpath_var_GCJ=no
24760 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24761 export_dynamic_flag_spec_GCJ='${wl}-E'
24762 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24763 # Instead, shared libraries are loaded at an image base (0x10000000 by
24764 # default) and relocated if they conflict, which is a slow very memory
24765 # consuming and fragmenting process. To avoid this, we pick a random,
24766 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24767 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24768 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'
24769 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'
24770 ;;
24771
24772 linux*)
24773 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24774 tmp_addflag=
24775 case $cc_basename,$host_cpu in
24776 pgcc*) # Portland Group C compiler
24777 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'
24778 tmp_addflag=' $pic_flag'
24779 ;;
24780 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24781 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'
24782 tmp_addflag=' $pic_flag -Mnomain' ;;
24783 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24784 tmp_addflag=' -i_dynamic' ;;
24785 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24786 tmp_addflag=' -i_dynamic -nofor_main' ;;
24787 ifc* | ifort*) # Intel Fortran compiler
24788 tmp_addflag=' -nofor_main' ;;
24789 esac
24790 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24791
24792 if test $supports_anon_versioning = yes; then
24793 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24794 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24795 $echo "local: *; };" >> $output_objdir/$libname.ver~
24796 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24797 fi
24798 else
24799 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024800 fi
24801 ;;
24802
24803 netbsd*)
24804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24805 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24806 wlarc=
24807 else
24808 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24809 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24810 fi
24811 ;;
24812
Reid Spencera773bd52006-08-04 18:18:08 +000024813 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024814 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24815 ld_shlibs_GCJ=no
24816 cat <<EOF 1>&2
24817
24818*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24819*** create shared libraries on Solaris systems. Therefore, libtool
24820*** is disabling shared libraries support. We urge you to upgrade GNU
24821*** binutils to release 2.9.1 or newer. Another option is to modify
24822*** your PATH or compiler configuration so that the native linker is
24823*** used, and then restart.
24824
24825EOF
24826 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24827 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24828 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24829 else
24830 ld_shlibs_GCJ=no
24831 fi
24832 ;;
24833
Reid Spencera773bd52006-08-04 18:18:08 +000024834 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24835 case `$LD -v 2>&1` in
24836 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24837 ld_shlibs_GCJ=no
24838 cat <<_LT_EOF 1>&2
24839
24840*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24841*** reliably create shared libraries on SCO systems. Therefore, libtool
24842*** is disabling shared libraries support. We urge you to upgrade GNU
24843*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24844*** your PATH or compiler configuration so that the native linker is
24845*** used, and then restart.
24846
24847_LT_EOF
24848 ;;
24849 *)
24850 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24851 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24852 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24853 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24854 else
24855 ld_shlibs_GCJ=no
24856 fi
24857 ;;
24858 esac
24859 ;;
24860
John Criswell47fdd832003-07-14 16:52:07 +000024861 sunos4*)
24862 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24863 wlarc=
24864 hardcode_direct_GCJ=yes
24865 hardcode_shlibpath_var_GCJ=no
24866 ;;
24867
24868 *)
24869 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24870 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24871 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24872 else
24873 ld_shlibs_GCJ=no
24874 fi
24875 ;;
24876 esac
24877
Reid Spencera773bd52006-08-04 18:18:08 +000024878 if test "$ld_shlibs_GCJ" = no; then
24879 runpath_var=
24880 hardcode_libdir_flag_spec_GCJ=
24881 export_dynamic_flag_spec_GCJ=
24882 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024883 fi
24884 else
24885 # PORTME fill in a description of your system's linker (not GNU ld)
24886 case $host_os in
24887 aix3*)
24888 allow_undefined_flag_GCJ=unsupported
24889 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024890 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 +000024891 # Note: this linker hardcodes the directories in LIBPATH if there
24892 # are no directories specified by -L.
24893 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024894 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024895 # Neither direct hardcoding nor static linking is supported with a
24896 # broken collect2.
24897 hardcode_direct_GCJ=unsupported
24898 fi
24899 ;;
24900
24901 aix4* | aix5*)
24902 if test "$host_cpu" = ia64; then
24903 # On IA64, the linker does run time linking by default, so we don't
24904 # have to do anything special.
24905 aix_use_runtimelinking=no
24906 exp_sym_flag='-Bexport'
24907 no_entry_flag=""
24908 else
24909 # If we're using GNU nm, then we don't want the "-C" option.
24910 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24911 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24912 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'
24913 else
24914 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'
24915 fi
24916 aix_use_runtimelinking=no
24917
24918 # Test if we are trying to use run time linking or normal
24919 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24920 # need to do runtime linking.
24921 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24922 for ld_flag in $LDFLAGS; do
24923 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24924 aix_use_runtimelinking=yes
24925 break
24926 fi
24927 done
Reid Spencera773bd52006-08-04 18:18:08 +000024928 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024929 esac
24930
24931 exp_sym_flag='-bexport'
24932 no_entry_flag='-bnoentry'
24933 fi
24934
24935 # When large executables or shared objects are built, AIX ld can
24936 # have problems creating the table of contents. If linking a library
24937 # or program results in "error TOC overflow" add -mminimal-toc to
24938 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24939 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24940
24941 archive_cmds_GCJ=''
24942 hardcode_direct_GCJ=yes
24943 hardcode_libdir_separator_GCJ=':'
24944 link_all_deplibs_GCJ=yes
24945
24946 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024947 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024948 # We only want to do this on AIX 4.2 and lower, the check
24949 # below for broken collect2 doesn't work under 4.3+
24950 collect2name=`${CC} -print-prog-name=collect2`
24951 if test -f "$collect2name" && \
24952 strings "$collect2name" | grep resolve_lib_name >/dev/null
24953 then
24954 # We have reworked collect2
24955 hardcode_direct_GCJ=yes
24956 else
24957 # We have old collect2
24958 hardcode_direct_GCJ=unsupported
24959 # It fails to find uninstalled libraries when the uninstalled
24960 # path is not listed in the libpath. Setting hardcode_minus_L
24961 # to unsupported forces relinking
24962 hardcode_minus_L_GCJ=yes
24963 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24964 hardcode_libdir_separator_GCJ=
24965 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024966 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024967 esac
24968 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024969 if test "$aix_use_runtimelinking" = yes; then
24970 shared_flag="$shared_flag "'${wl}-G'
24971 fi
John Criswell47fdd832003-07-14 16:52:07 +000024972 else
24973 # not using gcc
24974 if test "$host_cpu" = ia64; then
24975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24976 # chokes on -Wl,-G. The following line is correct:
24977 shared_flag='-G'
24978 else
Reid Spencera773bd52006-08-04 18:18:08 +000024979 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024980 shared_flag='${wl}-G'
24981 else
24982 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024983 fi
John Criswell47fdd832003-07-14 16:52:07 +000024984 fi
24985 fi
24986
24987 # It seems that -bexpall does not export symbols beginning with
24988 # underscore (_), so it is better to generate a list of symbols to export.
24989 always_export_symbols_GCJ=yes
24990 if test "$aix_use_runtimelinking" = yes; then
24991 # Warning - without using the other runtime loading flags (-brtl),
24992 # -berok will link without error, but may produce a broken library.
24993 allow_undefined_flag_GCJ='-berok'
24994 # Determine the default libpath from the value encoded in an empty executable.
24995 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024996/* confdefs.h. */
24997_ACEOF
24998cat confdefs.h >>conftest.$ac_ext
24999cat >>conftest.$ac_ext <<_ACEOF
25000/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025001
John Criswell47fdd832003-07-14 16:52:07 +000025002int
25003main ()
25004{
25005
25006 ;
25007 return 0;
25008}
25009_ACEOF
25010rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025011if { (ac_try="$ac_link"
25012case "(($ac_try" in
25013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25014 *) ac_try_echo=$ac_try;;
25015esac
25016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25017 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025018 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025019 grep -v '^ *+' conftest.er1 >conftest.err
25020 rm -f conftest.er1
25021 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025023 (exit $ac_status); } &&
25024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25025 { (case "(($ac_try" in
25026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25027 *) ac_try_echo=$ac_try;;
25028esac
25029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25030 (eval "$ac_try") 2>&5
25031 ac_status=$?
25032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033 (exit $ac_status); }; } &&
25034 { ac_try='test -s conftest$ac_exeext'
25035 { (case "(($ac_try" in
25036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037 *) ac_try_echo=$ac_try;;
25038esac
25039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25040 (eval "$ac_try") 2>&5
25041 ac_status=$?
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025044
25045aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25046}'`
25047# Check for a 64-bit object if we didn't find anything.
25048if 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; }
25049}'`; fi
25050else
25051 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025052sed 's/^/| /' conftest.$ac_ext >&5
25053
Reid Spencera773bd52006-08-04 18:18:08 +000025054
John Criswell47fdd832003-07-14 16:52:07 +000025055fi
Reid Spencera773bd52006-08-04 18:18:08 +000025056
Bill Wendlingebcceee2009-04-18 11:20:33 +000025057rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025058 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025059if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25060
25061 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000025062 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 +000025063 else
25064 if test "$host_cpu" = ia64; then
25065 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25066 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000025067 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 +000025068 else
25069 # Determine the default libpath from the value encoded in an empty executable.
25070 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025071/* confdefs.h. */
25072_ACEOF
25073cat confdefs.h >>conftest.$ac_ext
25074cat >>conftest.$ac_ext <<_ACEOF
25075/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025076
John Criswell47fdd832003-07-14 16:52:07 +000025077int
25078main ()
25079{
25080
25081 ;
25082 return 0;
25083}
25084_ACEOF
25085rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025086if { (ac_try="$ac_link"
25087case "(($ac_try" in
25088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25089 *) ac_try_echo=$ac_try;;
25090esac
25091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25092 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025093 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025094 grep -v '^ *+' conftest.er1 >conftest.err
25095 rm -f conftest.er1
25096 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025098 (exit $ac_status); } &&
25099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25100 { (case "(($ac_try" in
25101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102 *) ac_try_echo=$ac_try;;
25103esac
25104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25105 (eval "$ac_try") 2>&5
25106 ac_status=$?
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); }; } &&
25109 { ac_try='test -s conftest$ac_exeext'
25110 { (case "(($ac_try" in
25111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25112 *) ac_try_echo=$ac_try;;
25113esac
25114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25115 (eval "$ac_try") 2>&5
25116 ac_status=$?
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025119
25120aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25121}'`
25122# Check for a 64-bit object if we didn't find anything.
25123if 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; }
25124}'`; fi
25125else
25126 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025127sed 's/^/| /' conftest.$ac_ext >&5
25128
Reid Spencera773bd52006-08-04 18:18:08 +000025129
John Criswell47fdd832003-07-14 16:52:07 +000025130fi
Reid Spencera773bd52006-08-04 18:18:08 +000025131
Bill Wendlingebcceee2009-04-18 11:20:33 +000025132rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025133 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025134if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25135
25136 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25137 # Warning - without using the other run time loading flags,
25138 # -berok will link without error, but may produce a broken library.
25139 no_undefined_flag_GCJ=' ${wl}-bernotok'
25140 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025141 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025142 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025143 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025144 # This is similar to how AIX traditionally builds its shared libraries.
25145 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 +000025146 fi
25147 fi
25148 ;;
25149
25150 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025151 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 +000025152 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25153 hardcode_minus_L_GCJ=yes
25154 # see comment about different semantics on the GNU ld section
25155 ld_shlibs_GCJ=no
25156 ;;
25157
Reid Spencer2706f8c2004-09-19 23:53:36 +000025158 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025159 export_dynamic_flag_spec_GCJ=-rdynamic
25160 ;;
25161
25162 cygwin* | mingw* | pw32*)
25163 # When not using gcc, we currently assume that we are using
25164 # Microsoft Visual C++.
25165 # hardcode_libdir_flag_spec is actually meaningless, as there is
25166 # no search path for DLLs.
25167 hardcode_libdir_flag_spec_GCJ=' '
25168 allow_undefined_flag_GCJ=unsupported
25169 # Tell ltmain to make .lib files, not .a files.
25170 libext=lib
25171 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025172 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025173 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025174 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 +000025175 # The linker will automatically build a .lib file if we build a DLL.
25176 old_archive_From_new_cmds_GCJ='true'
25177 # FIXME: Should let the user specify the lib program.
25178 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025179 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025180 enable_shared_with_static_runtimes_GCJ=yes
25181 ;;
25182
25183 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025184 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025185 rhapsody* | darwin1.[012])
25186 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25187 ;;
25188 *) # Darwin 1.3 on
25189 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25190 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25191 else
25192 case ${MACOSX_DEPLOYMENT_TARGET} in
25193 10.[012])
25194 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25195 ;;
25196 10.*)
25197 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25198 ;;
25199 esac
25200 fi
25201 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025202 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025203 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025204 hardcode_direct_GCJ=no
25205 hardcode_automatic_GCJ=yes
25206 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025207 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025208 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025209 if test "$GCC" = yes ; then
25210 output_verbose_link_cmd='echo'
25211 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25212 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025213 # 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 +000025214 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}'
25215 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 +000025216 else
Reid Spencera773bd52006-08-04 18:18:08 +000025217 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025218 xlc*)
25219 output_verbose_link_cmd='echo'
25220 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25221 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025222 # 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 +000025223 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}'
25224 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 +000025225 ;;
25226 *)
25227 ld_shlibs_GCJ=no
25228 ;;
25229 esac
John Criswell47fdd832003-07-14 16:52:07 +000025230 fi
25231 ;;
25232
25233 dgux*)
25234 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25235 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25236 hardcode_shlibpath_var_GCJ=no
25237 ;;
25238
25239 freebsd1*)
25240 ld_shlibs_GCJ=no
25241 ;;
25242
25243 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25244 # support. Future versions do this automatically, but an explicit c++rt0.o
25245 # does not break anything, and helps significantly (at the cost of a little
25246 # extra space).
25247 freebsd2.2*)
25248 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25249 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25250 hardcode_direct_GCJ=yes
25251 hardcode_shlibpath_var_GCJ=no
25252 ;;
25253
25254 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25255 freebsd2*)
25256 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25257 hardcode_direct_GCJ=yes
25258 hardcode_minus_L_GCJ=yes
25259 hardcode_shlibpath_var_GCJ=no
25260 ;;
25261
25262 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025263 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025264 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25265 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25266 hardcode_direct_GCJ=yes
25267 hardcode_shlibpath_var_GCJ=no
25268 ;;
25269
25270 hpux9*)
25271 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025272 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 +000025273 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025274 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 +000025275 fi
25276 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25277 hardcode_libdir_separator_GCJ=:
25278 hardcode_direct_GCJ=yes
25279
25280 # hardcode_minus_L: Not really in the search PATH,
25281 # but as the default location of the library.
25282 hardcode_minus_L_GCJ=yes
25283 export_dynamic_flag_spec_GCJ='${wl}-E'
25284 ;;
25285
Reid Spencera773bd52006-08-04 18:18:08 +000025286 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025287 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025288 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25289 else
25290 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25291 fi
25292 if test "$with_gnu_ld" = no; then
25293 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25294 hardcode_libdir_separator_GCJ=:
25295
25296 hardcode_direct_GCJ=yes
25297 export_dynamic_flag_spec_GCJ='${wl}-E'
25298
25299 # hardcode_minus_L: Not really in the search PATH,
25300 # but as the default location of the library.
25301 hardcode_minus_L_GCJ=yes
25302 fi
25303 ;;
25304
25305 hpux11*)
25306 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25307 case $host_cpu in
25308 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025309 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25310 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025311 ia64*)
25312 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25313 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025314 *)
25315 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25316 ;;
25317 esac
25318 else
Reid Spencera773bd52006-08-04 18:18:08 +000025319 case $host_cpu in
25320 hppa*64*)
25321 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25322 ;;
25323 ia64*)
25324 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025325 ;;
25326 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025327 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 +000025328 ;;
25329 esac
25330 fi
25331 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025332 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25333 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025334
Reid Spencera773bd52006-08-04 18:18:08 +000025335 case $host_cpu in
25336 hppa*64*|ia64*)
25337 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25338 hardcode_direct_GCJ=no
25339 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025340 ;;
25341 *)
John Criswell47fdd832003-07-14 16:52:07 +000025342 hardcode_direct_GCJ=yes
25343 export_dynamic_flag_spec_GCJ='${wl}-E'
25344
25345 # hardcode_minus_L: Not really in the search PATH,
25346 # but as the default location of the library.
25347 hardcode_minus_L_GCJ=yes
25348 ;;
25349 esac
25350 fi
25351 ;;
25352
25353 irix5* | irix6* | nonstopux*)
25354 if test "$GCC" = yes; then
25355 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'
25356 else
25357 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'
25358 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25359 fi
25360 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25361 hardcode_libdir_separator_GCJ=:
25362 link_all_deplibs_GCJ=yes
25363 ;;
25364
25365 netbsd*)
25366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25367 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25368 else
25369 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25370 fi
25371 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25372 hardcode_direct_GCJ=yes
25373 hardcode_shlibpath_var_GCJ=no
25374 ;;
25375
25376 newsos6)
25377 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25378 hardcode_direct_GCJ=yes
25379 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25380 hardcode_libdir_separator_GCJ=:
25381 hardcode_shlibpath_var_GCJ=no
25382 ;;
25383
25384 openbsd*)
25385 hardcode_direct_GCJ=yes
25386 hardcode_shlibpath_var_GCJ=no
25387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25388 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025389 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 +000025390 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25391 export_dynamic_flag_spec_GCJ='${wl}-E'
25392 else
25393 case $host_os in
25394 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25395 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25396 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25397 ;;
25398 *)
25399 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25400 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25401 ;;
25402 esac
25403 fi
25404 ;;
25405
25406 os2*)
25407 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25408 hardcode_minus_L_GCJ=yes
25409 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025410 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 +000025411 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25412 ;;
25413
25414 osf3*)
25415 if test "$GCC" = yes; then
25416 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25417 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'
25418 else
25419 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25420 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'
25421 fi
25422 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25423 hardcode_libdir_separator_GCJ=:
25424 ;;
25425
25426 osf4* | osf5*) # as osf3* with the addition of -msym flag
25427 if test "$GCC" = yes; then
25428 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25429 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'
25430 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25431 else
25432 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25433 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 +000025434 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 +000025435 $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 +000025436
John Criswell47fdd832003-07-14 16:52:07 +000025437 # Both c and cxx compiler support -rpath directly
25438 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25439 fi
25440 hardcode_libdir_separator_GCJ=:
25441 ;;
25442
John Criswell47fdd832003-07-14 16:52:07 +000025443 solaris*)
25444 no_undefined_flag_GCJ=' -z text'
25445 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025446 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025447 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025448 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25449 $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 +000025450 else
Reid Spencera773bd52006-08-04 18:18:08 +000025451 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025452 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025453 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25454 $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 +000025455 fi
25456 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25457 hardcode_shlibpath_var_GCJ=no
25458 case $host_os in
25459 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025460 *)
25461 # The compiler driver will combine linker options so we
25462 # cannot just pass the convience library names through
25463 # without $wl, iff we do not link with $LD.
25464 # Luckily, gcc supports the same syntax we need for Sun Studio.
25465 # Supported since Solaris 2.6 (maybe 2.5.1?)
25466 case $wlarc in
25467 '')
25468 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25469 *)
25470 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' ;;
25471 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025472 esac
25473 link_all_deplibs_GCJ=yes
25474 ;;
25475
25476 sunos4*)
25477 if test "x$host_vendor" = xsequent; then
25478 # Use $CC to link under sequent, because it throws in some extra .o
25479 # files that make .init and .fini sections work.
25480 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25481 else
25482 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25483 fi
25484 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25485 hardcode_direct_GCJ=yes
25486 hardcode_minus_L_GCJ=yes
25487 hardcode_shlibpath_var_GCJ=no
25488 ;;
25489
25490 sysv4)
25491 case $host_vendor in
25492 sni)
25493 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25494 hardcode_direct_GCJ=yes # is this really true???
25495 ;;
25496 siemens)
25497 ## LD is ld it makes a PLAMLIB
25498 ## CC just makes a GrossModule.
25499 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25500 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25501 hardcode_direct_GCJ=no
25502 ;;
25503 motorola)
25504 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25505 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25506 ;;
25507 esac
25508 runpath_var='LD_RUN_PATH'
25509 hardcode_shlibpath_var_GCJ=no
25510 ;;
25511
25512 sysv4.3*)
25513 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25514 hardcode_shlibpath_var_GCJ=no
25515 export_dynamic_flag_spec_GCJ='-Bexport'
25516 ;;
25517
25518 sysv4*MP*)
25519 if test -d /usr/nec; then
25520 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25521 hardcode_shlibpath_var_GCJ=no
25522 runpath_var=LD_RUN_PATH
25523 hardcode_runpath_var=yes
25524 ld_shlibs_GCJ=yes
25525 fi
25526 ;;
25527
Reid Spencera773bd52006-08-04 18:18:08 +000025528 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25529 no_undefined_flag_GCJ='${wl}-z,text'
25530 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025531 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025532 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025533
John Criswell47fdd832003-07-14 16:52:07 +000025534 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025535 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25536 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 +000025537 else
Reid Spencera773bd52006-08-04 18:18:08 +000025538 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25539 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 +000025540 fi
John Criswell47fdd832003-07-14 16:52:07 +000025541 ;;
25542
Reid Spencera773bd52006-08-04 18:18:08 +000025543 sysv5* | sco3.2v5* | sco5v6*)
25544 # Note: We can NOT use -z defs as we might desire, because we do not
25545 # link with -lc, and that would cause any symbols used from libc to
25546 # always be unresolved, which means just about no library would
25547 # ever link correctly. If we're not using GNU ld we use -z text
25548 # though, which does catch some bad symbols but isn't as heavy-handed
25549 # as -z defs.
25550 no_undefined_flag_GCJ='${wl}-z,text'
25551 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25552 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025553 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025554 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25555 hardcode_libdir_separator_GCJ=':'
25556 link_all_deplibs_GCJ=yes
25557 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025558 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025559
25560 if test "$GCC" = yes; then
25561 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25562 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25563 else
25564 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25565 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25566 fi
John Criswell47fdd832003-07-14 16:52:07 +000025567 ;;
25568
25569 uts4*)
25570 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25571 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25572 hardcode_shlibpath_var_GCJ=no
25573 ;;
25574
25575 *)
25576 ld_shlibs_GCJ=no
25577 ;;
25578 esac
25579 fi
25580
Reid Spencera773bd52006-08-04 18:18:08 +000025581{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25582echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025583test "$ld_shlibs_GCJ" = no && can_build_shared=no
25584
John Criswell47fdd832003-07-14 16:52:07 +000025585#
25586# Do we need to explicitly link libc?
25587#
25588case "x$archive_cmds_need_lc_GCJ" in
25589x|xyes)
25590 # Assume -lc should be added
25591 archive_cmds_need_lc_GCJ=yes
25592
25593 if test "$enable_shared" = yes && test "$GCC" = yes; then
25594 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025595 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025596 # FIXME: we may have to deal with multi-command sequences.
25597 ;;
25598 '$CC '*)
25599 # Test whether the compiler implicitly links with -lc since on some
25600 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25601 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025602 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25603echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025604 $rm conftest*
25605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25606
25607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25608 (eval $ac_compile) 2>&5
25609 ac_status=$?
25610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611 (exit $ac_status); } 2>conftest.err; then
25612 soname=conftest
25613 lib=conftest
25614 libobjs=conftest.$ac_objext
25615 deplibs=
25616 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025617 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025618 compiler_flags=-v
25619 linker_flags=-v
25620 verstring=
25621 output_objdir=.
25622 libname=conftest
25623 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25624 allow_undefined_flag_GCJ=
25625 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25626 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25627 ac_status=$?
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); }
25630 then
25631 archive_cmds_need_lc_GCJ=no
25632 else
25633 archive_cmds_need_lc_GCJ=yes
25634 fi
25635 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25636 else
25637 cat conftest.err 1>&5
25638 fi
25639 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025640 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25641echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025642 ;;
25643 esac
25644 fi
25645 ;;
25646esac
25647
Reid Spencera773bd52006-08-04 18:18:08 +000025648{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25649echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025650library_names_spec=
25651libname_spec='lib$name'
25652soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025653shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025654postinstall_cmds=
25655postuninstall_cmds=
25656finish_cmds=
25657finish_eval=
25658shlibpath_var=
25659shlibpath_overrides_runpath=unknown
25660version_type=none
25661dynamic_linker="$host_os ld.so"
25662sys_lib_dlsearch_path_spec="/lib /usr/lib"
25663if test "$GCC" = yes; then
25664 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25665 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25666 # if the path contains ";" then we assume it to be the separator
25667 # otherwise default to the standard path separator (i.e. ":") - it is
25668 # assumed that no part of a normal pathname contains ";" but that should
25669 # okay in the real world where ";" in dirpaths is itself problematic.
25670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25671 else
25672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25673 fi
25674else
25675 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25676fi
25677need_lib_prefix=unknown
25678hardcode_into_libs=no
25679
25680# when you set need_version to no, make sure it does not cause -set_version
25681# flags to be left without arguments
25682need_version=unknown
25683
25684case $host_os in
25685aix3*)
25686 version_type=linux
25687 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25688 shlibpath_var=LIBPATH
25689
25690 # AIX 3 has no versioning support, so we append a major version to the name.
25691 soname_spec='${libname}${release}${shared_ext}$major'
25692 ;;
25693
25694aix4* | aix5*)
25695 version_type=linux
25696 need_lib_prefix=no
25697 need_version=no
25698 hardcode_into_libs=yes
25699 if test "$host_cpu" = ia64; then
25700 # AIX 5 supports IA64
25701 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25702 shlibpath_var=LD_LIBRARY_PATH
25703 else
25704 # With GCC up to 2.95.x, collect2 would create an import file
25705 # for dependence libraries. The import file would start with
25706 # the line `#! .'. This would cause the generated library to
25707 # depend on `.', always an invalid library. This was fixed in
25708 # development snapshots of GCC prior to 3.0.
25709 case $host_os in
25710 aix4 | aix4.[01] | aix4.[01].*)
25711 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25712 echo ' yes '
25713 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25714 :
25715 else
25716 can_build_shared=no
25717 fi
25718 ;;
25719 esac
25720 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25721 # soname into executable. Probably we can add versioning support to
25722 # collect2, so additional links can be useful in future.
25723 if test "$aix_use_runtimelinking" = yes; then
25724 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25725 # instead of lib<name>.a to let people know that these are not
25726 # typical AIX shared libraries.
25727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25728 else
25729 # We preserve .a as extension for shared libraries through AIX4.2
25730 # and later when we are not doing run time linking.
25731 library_names_spec='${libname}${release}.a $libname.a'
25732 soname_spec='${libname}${release}${shared_ext}$major'
25733 fi
25734 shlibpath_var=LIBPATH
25735 fi
25736 ;;
25737
25738amigaos*)
25739 library_names_spec='$libname.ixlibrary $libname.a'
25740 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025741 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 +000025742 ;;
25743
25744beos*)
25745 library_names_spec='${libname}${shared_ext}'
25746 dynamic_linker="$host_os ld.so"
25747 shlibpath_var=LIBRARY_PATH
25748 ;;
25749
Reid Spencer2706f8c2004-09-19 23:53:36 +000025750bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025751 version_type=linux
25752 need_version=no
25753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25754 soname_spec='${libname}${release}${shared_ext}$major'
25755 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25756 shlibpath_var=LD_LIBRARY_PATH
25757 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25758 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25759 # the default ld.so.conf also contains /usr/contrib/lib and
25760 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25761 # libtool to hard-code these into programs
25762 ;;
25763
25764cygwin* | mingw* | pw32*)
25765 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025766 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025767 need_version=no
25768 need_lib_prefix=no
25769
25770 case $GCC,$host_os in
25771 yes,cygwin* | yes,mingw* | yes,pw32*)
25772 library_names_spec='$libname.dll.a'
25773 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025774 postinstall_cmds='base_file=`basename \${file}`~
25775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25776 dldir=$destdir/`dirname \$dlpath`~
25777 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025778 $install_prog $dir/$dlname \$dldir/$dlname~
25779 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25781 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025782 $rm \$dlpath'
25783 shlibpath_overrides_runpath=yes
25784
25785 case $host_os in
25786 cygwin*)
25787 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25788 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 +000025789 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025790 ;;
25791 mingw*)
25792 # MinGW DLLs use traditional 'lib' prefix
25793 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25794 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25795 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25796 # It is most probably a Windows format PATH printed by
25797 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25798 # path with ; separators, and with drive letters. We can handle the
25799 # drive letters (cygwin fileutils understands them), so leave them,
25800 # especially as we might pass files found there to a mingw objdump,
25801 # which wouldn't understand a cygwinified path. Ahh.
25802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25803 else
25804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25805 fi
25806 ;;
25807 pw32*)
25808 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025809 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 +000025810 ;;
25811 esac
25812 ;;
25813
25814 *)
25815 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25816 ;;
25817 esac
25818 dynamic_linker='Win32 ld.exe'
25819 # FIXME: first we should search . and the directory the executable is in
25820 shlibpath_var=PATH
25821 ;;
25822
25823darwin* | rhapsody*)
25824 dynamic_linker="$host_os dyld"
25825 version_type=darwin
25826 need_lib_prefix=no
25827 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025828 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025829 soname_spec='${libname}${release}${major}$shared_ext'
25830 shlibpath_overrides_runpath=yes
25831 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025832 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025833 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025834 if test "$GCC" = yes; then
25835 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"`
25836 else
25837 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025838 fi
25839 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25840 ;;
25841
25842dgux*)
25843 version_type=linux
25844 need_lib_prefix=no
25845 need_version=no
25846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25847 soname_spec='${libname}${release}${shared_ext}$major'
25848 shlibpath_var=LD_LIBRARY_PATH
25849 ;;
25850
25851freebsd1*)
25852 dynamic_linker=no
25853 ;;
25854
Reid Spencer2706f8c2004-09-19 23:53:36 +000025855kfreebsd*-gnu)
25856 version_type=linux
25857 need_lib_prefix=no
25858 need_version=no
25859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25860 soname_spec='${libname}${release}${shared_ext}$major'
25861 shlibpath_var=LD_LIBRARY_PATH
25862 shlibpath_overrides_runpath=no
25863 hardcode_into_libs=yes
25864 dynamic_linker='GNU ld.so'
25865 ;;
25866
Reid Spencera773bd52006-08-04 18:18:08 +000025867freebsd* | dragonfly*)
25868 # DragonFly does not have aout. When/if they implement a new
25869 # versioning mechanism, adjust this.
25870 if test -x /usr/bin/objformat; then
25871 objformat=`/usr/bin/objformat`
25872 else
25873 case $host_os in
25874 freebsd[123]*) objformat=aout ;;
25875 *) objformat=elf ;;
25876 esac
25877 fi
John Criswell47fdd832003-07-14 16:52:07 +000025878 version_type=freebsd-$objformat
25879 case $version_type in
25880 freebsd-elf*)
25881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25882 need_version=no
25883 need_lib_prefix=no
25884 ;;
25885 freebsd-*)
25886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25887 need_version=yes
25888 ;;
25889 esac
25890 shlibpath_var=LD_LIBRARY_PATH
25891 case $host_os in
25892 freebsd2*)
25893 shlibpath_overrides_runpath=yes
25894 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025895 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025896 shlibpath_overrides_runpath=yes
25897 hardcode_into_libs=yes
25898 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025899 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25900 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025901 shlibpath_overrides_runpath=no
25902 hardcode_into_libs=yes
25903 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025904 freebsd*) # from 4.6 on
25905 shlibpath_overrides_runpath=yes
25906 hardcode_into_libs=yes
25907 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025908 esac
25909 ;;
25910
25911gnu*)
25912 version_type=linux
25913 need_lib_prefix=no
25914 need_version=no
25915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25916 soname_spec='${libname}${release}${shared_ext}$major'
25917 shlibpath_var=LD_LIBRARY_PATH
25918 hardcode_into_libs=yes
25919 ;;
25920
25921hpux9* | hpux10* | hpux11*)
25922 # Give a soname corresponding to the major version so that dld.sl refuses to
25923 # link against other versions.
25924 version_type=sunos
25925 need_lib_prefix=no
25926 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025927 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025928 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025929 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025930 hardcode_into_libs=yes
25931 dynamic_linker="$host_os dld.so"
25932 shlibpath_var=LD_LIBRARY_PATH
25933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25935 soname_spec='${libname}${release}${shared_ext}$major'
25936 if test "X$HPUX_IA64_MODE" = X32; then
25937 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25938 else
25939 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25940 fi
25941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25942 ;;
25943 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025944 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025945 hardcode_into_libs=yes
25946 dynamic_linker="$host_os dld.sl"
25947 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25950 soname_spec='${libname}${release}${shared_ext}$major'
25951 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25953 ;;
25954 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025955 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025956 dynamic_linker="$host_os dld.sl"
25957 shlibpath_var=SHLIB_PATH
25958 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25960 soname_spec='${libname}${release}${shared_ext}$major'
25961 ;;
25962 esac
25963 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25964 postinstall_cmds='chmod 555 $lib'
25965 ;;
25966
Reid Spencera773bd52006-08-04 18:18:08 +000025967interix3*)
25968 version_type=linux
25969 need_lib_prefix=no
25970 need_version=no
25971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25972 soname_spec='${libname}${release}${shared_ext}$major'
25973 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25974 shlibpath_var=LD_LIBRARY_PATH
25975 shlibpath_overrides_runpath=no
25976 hardcode_into_libs=yes
25977 ;;
25978
John Criswell47fdd832003-07-14 16:52:07 +000025979irix5* | irix6* | nonstopux*)
25980 case $host_os in
25981 nonstopux*) version_type=nonstopux ;;
25982 *)
25983 if test "$lt_cv_prog_gnu_ld" = yes; then
25984 version_type=linux
25985 else
25986 version_type=irix
25987 fi ;;
25988 esac
25989 need_lib_prefix=no
25990 need_version=no
25991 soname_spec='${libname}${release}${shared_ext}$major'
25992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25993 case $host_os in
25994 irix5* | nonstopux*)
25995 libsuff= shlibsuff=
25996 ;;
25997 *)
25998 case $LD in # libtool.m4 will add one of these switches to LD
25999 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26000 libsuff= shlibsuff= libmagic=32-bit;;
26001 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26002 libsuff=32 shlibsuff=N32 libmagic=N32;;
26003 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26004 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26005 *) libsuff= shlibsuff= libmagic=never-match;;
26006 esac
26007 ;;
26008 esac
26009 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26010 shlibpath_overrides_runpath=no
26011 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26012 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26013 hardcode_into_libs=yes
26014 ;;
26015
26016# No shared lib support for Linux oldld, aout, or coff.
26017linux*oldld* | linux*aout* | linux*coff*)
26018 dynamic_linker=no
26019 ;;
26020
26021# This must be Linux ELF.
26022linux*)
26023 version_type=linux
26024 need_lib_prefix=no
26025 need_version=no
26026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26027 soname_spec='${libname}${release}${shared_ext}$major'
26028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26029 shlibpath_var=LD_LIBRARY_PATH
26030 shlibpath_overrides_runpath=no
26031 # This implies no fast_install, which is unacceptable.
26032 # Some rework will be needed to allow for fast_install
26033 # before this can be enabled.
26034 hardcode_into_libs=yes
26035
Reid Spencer2706f8c2004-09-19 23:53:36 +000026036 # Append ld.so.conf contents to the search path
26037 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000026038 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 +000026039 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26040 fi
26041
John Criswell47fdd832003-07-14 16:52:07 +000026042 # We used to test for /lib/ld.so.1 and disable shared libraries on
26043 # powerpc, because MkLinux only supported shared libraries with the
26044 # GNU dynamic linker. Since this was broken with cross compilers,
26045 # most powerpc-linux boxes support dynamic linking these days and
26046 # people can always --disable-shared, the test was removed, and we
26047 # assume the GNU/Linux dynamic linker is in use.
26048 dynamic_linker='GNU/Linux ld.so'
26049 ;;
26050
Reid Spencer2706f8c2004-09-19 23:53:36 +000026051knetbsd*-gnu)
26052 version_type=linux
26053 need_lib_prefix=no
26054 need_version=no
26055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26056 soname_spec='${libname}${release}${shared_ext}$major'
26057 shlibpath_var=LD_LIBRARY_PATH
26058 shlibpath_overrides_runpath=no
26059 hardcode_into_libs=yes
26060 dynamic_linker='GNU ld.so'
26061 ;;
26062
John Criswell47fdd832003-07-14 16:52:07 +000026063netbsd*)
26064 version_type=sunos
26065 need_lib_prefix=no
26066 need_version=no
26067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26070 dynamic_linker='NetBSD (a.out) ld.so'
26071 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000026073 soname_spec='${libname}${release}${shared_ext}$major'
26074 dynamic_linker='NetBSD ld.elf_so'
26075 fi
26076 shlibpath_var=LD_LIBRARY_PATH
26077 shlibpath_overrides_runpath=yes
26078 hardcode_into_libs=yes
26079 ;;
26080
26081newsos6)
26082 version_type=linux
26083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26084 shlibpath_var=LD_LIBRARY_PATH
26085 shlibpath_overrides_runpath=yes
26086 ;;
26087
Reid Spencer2706f8c2004-09-19 23:53:36 +000026088nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000026089 version_type=linux
26090 need_lib_prefix=no
26091 need_version=no
26092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26093 soname_spec='${libname}${release}${shared_ext}$major'
26094 shlibpath_var=LD_LIBRARY_PATH
26095 shlibpath_overrides_runpath=yes
26096 ;;
26097
26098openbsd*)
26099 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000026100 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000026101 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000026102 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26103 case $host_os in
26104 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26105 *) need_version=no ;;
26106 esac
John Criswell47fdd832003-07-14 16:52:07 +000026107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26109 shlibpath_var=LD_LIBRARY_PATH
26110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26111 case $host_os in
26112 openbsd2.[89] | openbsd2.[89].*)
26113 shlibpath_overrides_runpath=no
26114 ;;
26115 *)
26116 shlibpath_overrides_runpath=yes
26117 ;;
26118 esac
26119 else
26120 shlibpath_overrides_runpath=yes
26121 fi
26122 ;;
26123
26124os2*)
26125 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000026126 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000026127 need_lib_prefix=no
26128 library_names_spec='$libname${shared_ext} $libname.a'
26129 dynamic_linker='OS/2 ld.exe'
26130 shlibpath_var=LIBPATH
26131 ;;
26132
26133osf3* | osf4* | osf5*)
26134 version_type=osf
26135 need_lib_prefix=no
26136 need_version=no
26137 soname_spec='${libname}${release}${shared_ext}$major'
26138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26139 shlibpath_var=LD_LIBRARY_PATH
26140 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26141 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26142 ;;
26143
John Criswell47fdd832003-07-14 16:52:07 +000026144solaris*)
26145 version_type=linux
26146 need_lib_prefix=no
26147 need_version=no
26148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26149 soname_spec='${libname}${release}${shared_ext}$major'
26150 shlibpath_var=LD_LIBRARY_PATH
26151 shlibpath_overrides_runpath=yes
26152 hardcode_into_libs=yes
26153 # ldd complains unless libraries are executable
26154 postinstall_cmds='chmod +x $lib'
26155 ;;
26156
26157sunos4*)
26158 version_type=sunos
26159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26160 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26161 shlibpath_var=LD_LIBRARY_PATH
26162 shlibpath_overrides_runpath=yes
26163 if test "$with_gnu_ld" = yes; then
26164 need_lib_prefix=no
26165 fi
26166 need_version=yes
26167 ;;
26168
Reid Spencera773bd52006-08-04 18:18:08 +000026169sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026170 version_type=linux
26171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26172 soname_spec='${libname}${release}${shared_ext}$major'
26173 shlibpath_var=LD_LIBRARY_PATH
26174 case $host_vendor in
26175 sni)
26176 shlibpath_overrides_runpath=no
26177 need_lib_prefix=no
26178 export_dynamic_flag_spec='${wl}-Blargedynsym'
26179 runpath_var=LD_RUN_PATH
26180 ;;
26181 siemens)
26182 need_lib_prefix=no
26183 ;;
26184 motorola)
26185 need_lib_prefix=no
26186 need_version=no
26187 shlibpath_overrides_runpath=no
26188 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26189 ;;
26190 esac
26191 ;;
26192
26193sysv4*MP*)
26194 if test -d /usr/nec ;then
26195 version_type=linux
26196 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26197 soname_spec='$libname${shared_ext}.$major'
26198 shlibpath_var=LD_LIBRARY_PATH
26199 fi
26200 ;;
26201
Reid Spencera773bd52006-08-04 18:18:08 +000026202sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26203 version_type=freebsd-elf
26204 need_lib_prefix=no
26205 need_version=no
26206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26207 soname_spec='${libname}${release}${shared_ext}$major'
26208 shlibpath_var=LD_LIBRARY_PATH
26209 hardcode_into_libs=yes
26210 if test "$with_gnu_ld" = yes; then
26211 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26212 shlibpath_overrides_runpath=no
26213 else
26214 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26215 shlibpath_overrides_runpath=yes
26216 case $host_os in
26217 sco3.2v5*)
26218 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26219 ;;
26220 esac
26221 fi
26222 sys_lib_dlsearch_path_spec='/usr/lib'
26223 ;;
26224
John Criswell47fdd832003-07-14 16:52:07 +000026225uts4*)
26226 version_type=linux
26227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26228 soname_spec='${libname}${release}${shared_ext}$major'
26229 shlibpath_var=LD_LIBRARY_PATH
26230 ;;
26231
26232*)
26233 dynamic_linker=no
26234 ;;
26235esac
Reid Spencera773bd52006-08-04 18:18:08 +000026236{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26237echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026238test "$dynamic_linker" = no && can_build_shared=no
26239
Reid Spencera773bd52006-08-04 18:18:08 +000026240variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26241if test "$GCC" = yes; then
26242 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26243fi
26244
26245{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26246echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026247hardcode_action_GCJ=
26248if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26249 test -n "$runpath_var_GCJ" || \
26250 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26251
26252 # We can hardcode non-existant directories.
26253 if test "$hardcode_direct_GCJ" != no &&
26254 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26255 # have to relink, otherwise we might link with an installed library
26256 # when we should be linking with a yet-to-be-installed one
26257 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26258 test "$hardcode_minus_L_GCJ" != no; then
26259 # Linking always hardcodes the temporary library directory.
26260 hardcode_action_GCJ=relink
26261 else
26262 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26263 hardcode_action_GCJ=immediate
26264 fi
26265else
26266 # We cannot hardcode anything, or else we can only hardcode existing
26267 # directories.
26268 hardcode_action_GCJ=unsupported
26269fi
Reid Spencera773bd52006-08-04 18:18:08 +000026270{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26271echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026272
26273if test "$hardcode_action_GCJ" = relink; then
26274 # Fast installation is not supported
26275 enable_fast_install=no
26276elif test "$shlibpath_overrides_runpath" = yes ||
26277 test "$enable_shared" = no; then
26278 # Fast installation is not necessary
26279 enable_fast_install=needless
26280fi
26281
John Criswell47fdd832003-07-14 16:52:07 +000026282
26283# The else clause should only fire when bootstrapping the
26284# libtool distribution, otherwise you forgot to ship ltmain.sh
26285# with your package, and you will get complaints that there are
26286# no rules to generate ltmain.sh.
26287if test -f "$ltmain"; then
26288 # See if we are running on zsh, and set the options which allow our commands through
26289 # without removal of \ escapes.
26290 if test -n "${ZSH_VERSION+set}" ; then
26291 setopt NO_GLOB_SUBST
26292 fi
26293 # Now quote all the things that may contain metacharacters while being
26294 # careful not to overquote the AC_SUBSTed values. We take copies of the
26295 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026296 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 +000026297 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026298 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26299 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26300 deplibs_check_method reload_flag reload_cmds need_locks \
26301 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26302 lt_cv_sys_global_symbol_to_c_name_address \
26303 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26304 old_postinstall_cmds old_postuninstall_cmds \
26305 compiler_GCJ \
26306 CC_GCJ \
26307 LD_GCJ \
26308 lt_prog_compiler_wl_GCJ \
26309 lt_prog_compiler_pic_GCJ \
26310 lt_prog_compiler_static_GCJ \
26311 lt_prog_compiler_no_builtin_flag_GCJ \
26312 export_dynamic_flag_spec_GCJ \
26313 thread_safe_flag_spec_GCJ \
26314 whole_archive_flag_spec_GCJ \
26315 enable_shared_with_static_runtimes_GCJ \
26316 old_archive_cmds_GCJ \
26317 old_archive_from_new_cmds_GCJ \
26318 predep_objects_GCJ \
26319 postdep_objects_GCJ \
26320 predeps_GCJ \
26321 postdeps_GCJ \
26322 compiler_lib_search_path_GCJ \
26323 archive_cmds_GCJ \
26324 archive_expsym_cmds_GCJ \
26325 postinstall_cmds_GCJ \
26326 postuninstall_cmds_GCJ \
26327 old_archive_from_expsyms_cmds_GCJ \
26328 allow_undefined_flag_GCJ \
26329 no_undefined_flag_GCJ \
26330 export_symbols_cmds_GCJ \
26331 hardcode_libdir_flag_spec_GCJ \
26332 hardcode_libdir_flag_spec_ld_GCJ \
26333 hardcode_libdir_separator_GCJ \
26334 hardcode_automatic_GCJ \
26335 module_cmds_GCJ \
26336 module_expsym_cmds_GCJ \
26337 lt_cv_prog_compiler_c_o_GCJ \
26338 exclude_expsyms_GCJ \
26339 include_expsyms_GCJ; do
26340
26341 case $var in
26342 old_archive_cmds_GCJ | \
26343 old_archive_from_new_cmds_GCJ | \
26344 archive_cmds_GCJ | \
26345 archive_expsym_cmds_GCJ | \
26346 module_cmds_GCJ | \
26347 module_expsym_cmds_GCJ | \
26348 old_archive_from_expsyms_cmds_GCJ | \
26349 export_symbols_cmds_GCJ | \
26350 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26351 postinstall_cmds | postuninstall_cmds | \
26352 old_postinstall_cmds | old_postuninstall_cmds | \
26353 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26354 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026355 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 +000026356 ;;
26357 *)
26358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26359 ;;
26360 esac
26361 done
26362
26363 case $lt_echo in
26364 *'\$0 --fallback-echo"')
26365 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26366 ;;
26367 esac
26368
26369cfgfile="$ofile"
26370
26371 cat <<__EOF__ >> "$cfgfile"
26372# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26373
26374# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26375
26376# Shell to use when invoking shell scripts.
26377SHELL=$lt_SHELL
26378
26379# Whether or not to build shared libraries.
26380build_libtool_libs=$enable_shared
26381
26382# Whether or not to build static libraries.
26383build_old_libs=$enable_static
26384
26385# Whether or not to add -lc for building shared libraries.
26386build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26387
26388# Whether or not to disallow shared libs when runtime libs are static
26389allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26390
26391# Whether or not to optimize for fast installation.
26392fast_install=$enable_fast_install
26393
26394# The host system.
26395host_alias=$host_alias
26396host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026397host_os=$host_os
26398
26399# The build system.
26400build_alias=$build_alias
26401build=$build
26402build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026403
26404# An echo program that does not interpret backslashes.
26405echo=$lt_echo
26406
26407# The archiver.
26408AR=$lt_AR
26409AR_FLAGS=$lt_AR_FLAGS
26410
26411# A C compiler.
26412LTCC=$lt_LTCC
26413
Reid Spencera773bd52006-08-04 18:18:08 +000026414# LTCC compiler flags.
26415LTCFLAGS=$lt_LTCFLAGS
26416
John Criswell47fdd832003-07-14 16:52:07 +000026417# A language-specific compiler.
26418CC=$lt_compiler_GCJ
26419
26420# Is the compiler the GNU C compiler?
26421with_gcc=$GCC_GCJ
26422
26423# An ERE matcher.
26424EGREP=$lt_EGREP
26425
26426# The linker used to build libraries.
26427LD=$lt_LD_GCJ
26428
26429# Whether we need hard or soft links.
26430LN_S=$lt_LN_S
26431
26432# A BSD-compatible nm program.
26433NM=$lt_NM
26434
26435# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026436STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026437
26438# Used to examine libraries when file_magic_cmd begins "file"
26439MAGIC_CMD=$MAGIC_CMD
26440
26441# Used on cygwin: DLL creation program.
26442DLLTOOL="$DLLTOOL"
26443
26444# Used on cygwin: object dumper.
26445OBJDUMP="$OBJDUMP"
26446
26447# Used on cygwin: assembler.
26448AS="$AS"
26449
26450# The name of the directory that contains temporary libtool files.
26451objdir=$objdir
26452
26453# How to create reloadable object files.
26454reload_flag=$lt_reload_flag
26455reload_cmds=$lt_reload_cmds
26456
26457# How to pass a linker flag through the compiler.
26458wl=$lt_lt_prog_compiler_wl_GCJ
26459
26460# Object file suffix (normally "o").
26461objext="$ac_objext"
26462
26463# Old archive suffix (normally "a").
26464libext="$libext"
26465
26466# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026467shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026468
26469# Executable file suffix (normally "").
26470exeext="$exeext"
26471
26472# Additional compiler flags for building library objects.
26473pic_flag=$lt_lt_prog_compiler_pic_GCJ
26474pic_mode=$pic_mode
26475
26476# What is the maximum length of a command?
26477max_cmd_len=$lt_cv_sys_max_cmd_len
26478
26479# Does compiler simultaneously support -c and -o options?
26480compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26481
Reid Spencera773bd52006-08-04 18:18:08 +000026482# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026483need_locks=$lt_need_locks
26484
26485# Do we need the lib prefix for modules?
26486need_lib_prefix=$need_lib_prefix
26487
26488# Do we need a version for libraries?
26489need_version=$need_version
26490
26491# Whether dlopen is supported.
26492dlopen_support=$enable_dlopen
26493
26494# Whether dlopen of programs is supported.
26495dlopen_self=$enable_dlopen_self
26496
26497# Whether dlopen of statically linked programs is supported.
26498dlopen_self_static=$enable_dlopen_self_static
26499
26500# Compiler flag to prevent dynamic linking.
26501link_static_flag=$lt_lt_prog_compiler_static_GCJ
26502
26503# Compiler flag to turn off builtin functions.
26504no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26505
26506# Compiler flag to allow reflexive dlopens.
26507export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26508
26509# Compiler flag to generate shared objects directly from archives.
26510whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26511
26512# Compiler flag to generate thread-safe objects.
26513thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26514
26515# Library versioning type.
26516version_type=$version_type
26517
26518# Format of library name prefix.
26519libname_spec=$lt_libname_spec
26520
26521# List of archive names. First name is the real one, the rest are links.
26522# The last name is the one that the linker finds with -lNAME.
26523library_names_spec=$lt_library_names_spec
26524
26525# The coded name of the library, if different from the real name.
26526soname_spec=$lt_soname_spec
26527
26528# Commands used to build and install an old-style archive.
26529RANLIB=$lt_RANLIB
26530old_archive_cmds=$lt_old_archive_cmds_GCJ
26531old_postinstall_cmds=$lt_old_postinstall_cmds
26532old_postuninstall_cmds=$lt_old_postuninstall_cmds
26533
26534# Create an old-style archive from a shared archive.
26535old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26536
26537# Create a temporary old-style archive to link instead of a shared archive.
26538old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26539
26540# Commands used to build and install a shared archive.
26541archive_cmds=$lt_archive_cmds_GCJ
26542archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26543postinstall_cmds=$lt_postinstall_cmds
26544postuninstall_cmds=$lt_postuninstall_cmds
26545
26546# Commands used to build a loadable module (assumed same as above if empty)
26547module_cmds=$lt_module_cmds_GCJ
26548module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26549
26550# Commands to strip libraries.
26551old_striplib=$lt_old_striplib
26552striplib=$lt_striplib
26553
26554# Dependencies to place before the objects being linked to create a
26555# shared library.
26556predep_objects=$lt_predep_objects_GCJ
26557
26558# Dependencies to place after the objects being linked to create a
26559# shared library.
26560postdep_objects=$lt_postdep_objects_GCJ
26561
26562# Dependencies to place before the objects being linked to create a
26563# shared library.
26564predeps=$lt_predeps_GCJ
26565
26566# Dependencies to place after the objects being linked to create a
26567# shared library.
26568postdeps=$lt_postdeps_GCJ
26569
26570# The library search path used internally by the compiler when linking
26571# a shared library.
26572compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26573
26574# Method to check whether dependent libraries are shared objects.
26575deplibs_check_method=$lt_deplibs_check_method
26576
26577# Command to use when deplibs_check_method == file_magic.
26578file_magic_cmd=$lt_file_magic_cmd
26579
26580# Flag that allows shared libraries with undefined symbols to be built.
26581allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26582
26583# Flag that forces no undefined symbols.
26584no_undefined_flag=$lt_no_undefined_flag_GCJ
26585
26586# Commands used to finish a libtool library installation in a directory.
26587finish_cmds=$lt_finish_cmds
26588
26589# Same as above, but a single script fragment to be evaled but not shown.
26590finish_eval=$lt_finish_eval
26591
26592# Take the output of nm and produce a listing of raw symbols and C names.
26593global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26594
26595# Transform the output of nm in a proper C declaration
26596global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26597
26598# Transform the output of nm in a C name address pair
26599global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26600
26601# This is the shared library runtime path variable.
26602runpath_var=$runpath_var
26603
26604# This is the shared library path variable.
26605shlibpath_var=$shlibpath_var
26606
26607# Is shlibpath searched before the hard-coded library search path?
26608shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26609
26610# How to hardcode a shared library path into an executable.
26611hardcode_action=$hardcode_action_GCJ
26612
26613# Whether we should hardcode library paths into libraries.
26614hardcode_into_libs=$hardcode_into_libs
26615
26616# Flag to hardcode \$libdir into a binary during linking.
26617# This must work even if \$libdir does not exist.
26618hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26619
26620# If ld is used when linking, flag to hardcode \$libdir into
26621# a binary during linking. This must work even if \$libdir does
26622# not exist.
26623hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26624
26625# Whether we need a single -rpath flag with a separated argument.
26626hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26627
26628# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26629# resulting binary.
26630hardcode_direct=$hardcode_direct_GCJ
26631
26632# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26633# resulting binary.
26634hardcode_minus_L=$hardcode_minus_L_GCJ
26635
26636# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26637# the resulting binary.
26638hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26639
26640# Set to yes if building a shared library automatically hardcodes DIR into the library
26641# and all subsequent libraries and executables linked against it.
26642hardcode_automatic=$hardcode_automatic_GCJ
26643
26644# Variables whose values should be saved in libtool wrapper scripts and
26645# restored at relink time.
26646variables_saved_for_relink="$variables_saved_for_relink"
26647
26648# Whether libtool must link a program against all its dependency libraries.
26649link_all_deplibs=$link_all_deplibs_GCJ
26650
26651# Compile-time system search path for libraries
26652sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26653
26654# Run-time system search path for libraries
26655sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26656
26657# Fix the shell variable \$srcfile for the compiler.
26658fix_srcfile_path="$fix_srcfile_path_GCJ"
26659
26660# Set to yes if exported symbols are required.
26661always_export_symbols=$always_export_symbols_GCJ
26662
26663# The commands to list exported symbols.
26664export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26665
26666# The commands to extract the exported symbol list from a shared archive.
26667extract_expsyms_cmds=$lt_extract_expsyms_cmds
26668
26669# Symbols that should not be listed in the preloaded symbols.
26670exclude_expsyms=$lt_exclude_expsyms_GCJ
26671
26672# Symbols that must always be exported.
26673include_expsyms=$lt_include_expsyms_GCJ
26674
26675# ### END LIBTOOL TAG CONFIG: $tagname
26676
26677__EOF__
26678
26679
26680else
26681 # If there is no Makefile yet, we rely on a make rule to execute
26682 # `config.status --recheck' to rerun these tests and create the
26683 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026684 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26685 if test -f "$ltmain_in"; then
26686 test -f Makefile && make "$ltmain"
26687 fi
John Criswell47fdd832003-07-14 16:52:07 +000026688fi
26689
26690
26691ac_ext=c
26692ac_cpp='$CPP $CPPFLAGS'
26693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26695ac_compiler_gnu=$ac_cv_c_compiler_gnu
26696
26697CC="$lt_save_CC"
26698
26699 else
26700 tagname=""
26701 fi
26702 ;;
26703
26704 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026705 ac_ext=c
26706ac_cpp='$CPP $CPPFLAGS'
26707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26709ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026710
26711
26712# Source file extension for RC test sources.
26713ac_ext=rc
26714
26715# Object file extension for compiled RC test sources.
26716objext=o
26717objext_RC=$objext
26718
26719# Code to be used in simple compile tests
26720lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26721
26722# Code to be used in simple link tests
26723lt_simple_link_test_code="$lt_simple_compile_test_code"
26724
26725# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26726
26727# If no C compiler was specified, use CC.
26728LTCC=${LTCC-"$CC"}
26729
Reid Spencera773bd52006-08-04 18:18:08 +000026730# If no C compiler flags were specified, use CFLAGS.
26731LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26732
John Criswell47fdd832003-07-14 16:52:07 +000026733# Allow CC to be a program name with arguments.
26734compiler=$CC
26735
26736
Reid Spencera773bd52006-08-04 18:18:08 +000026737# save warnings/boilerplate of simple test code
26738ac_outfile=conftest.$ac_objext
26739printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26740eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26741_lt_compiler_boilerplate=`cat conftest.err`
26742$rm conftest*
26743
26744ac_outfile=conftest.$ac_objext
26745printf "$lt_simple_link_test_code" >conftest.$ac_ext
26746eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26747_lt_linker_boilerplate=`cat conftest.err`
26748$rm conftest*
26749
26750
John Criswell47fdd832003-07-14 16:52:07 +000026751# Allow CC to be a program name with arguments.
26752lt_save_CC="$CC"
26753CC=${RC-"windres"}
26754compiler=$CC
26755compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026756for cc_temp in $compiler""; do
26757 case $cc_temp in
26758 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26759 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26760 \-*) ;;
26761 *) break;;
26762 esac
26763done
26764cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26765
John Criswell47fdd832003-07-14 16:52:07 +000026766lt_cv_prog_compiler_c_o_RC=yes
26767
26768# The else clause should only fire when bootstrapping the
26769# libtool distribution, otherwise you forgot to ship ltmain.sh
26770# with your package, and you will get complaints that there are
26771# no rules to generate ltmain.sh.
26772if test -f "$ltmain"; then
26773 # See if we are running on zsh, and set the options which allow our commands through
26774 # without removal of \ escapes.
26775 if test -n "${ZSH_VERSION+set}" ; then
26776 setopt NO_GLOB_SUBST
26777 fi
26778 # Now quote all the things that may contain metacharacters while being
26779 # careful not to overquote the AC_SUBSTed values. We take copies of the
26780 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026781 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 +000026782 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026783 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26784 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26785 deplibs_check_method reload_flag reload_cmds need_locks \
26786 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26787 lt_cv_sys_global_symbol_to_c_name_address \
26788 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26789 old_postinstall_cmds old_postuninstall_cmds \
26790 compiler_RC \
26791 CC_RC \
26792 LD_RC \
26793 lt_prog_compiler_wl_RC \
26794 lt_prog_compiler_pic_RC \
26795 lt_prog_compiler_static_RC \
26796 lt_prog_compiler_no_builtin_flag_RC \
26797 export_dynamic_flag_spec_RC \
26798 thread_safe_flag_spec_RC \
26799 whole_archive_flag_spec_RC \
26800 enable_shared_with_static_runtimes_RC \
26801 old_archive_cmds_RC \
26802 old_archive_from_new_cmds_RC \
26803 predep_objects_RC \
26804 postdep_objects_RC \
26805 predeps_RC \
26806 postdeps_RC \
26807 compiler_lib_search_path_RC \
26808 archive_cmds_RC \
26809 archive_expsym_cmds_RC \
26810 postinstall_cmds_RC \
26811 postuninstall_cmds_RC \
26812 old_archive_from_expsyms_cmds_RC \
26813 allow_undefined_flag_RC \
26814 no_undefined_flag_RC \
26815 export_symbols_cmds_RC \
26816 hardcode_libdir_flag_spec_RC \
26817 hardcode_libdir_flag_spec_ld_RC \
26818 hardcode_libdir_separator_RC \
26819 hardcode_automatic_RC \
26820 module_cmds_RC \
26821 module_expsym_cmds_RC \
26822 lt_cv_prog_compiler_c_o_RC \
26823 exclude_expsyms_RC \
26824 include_expsyms_RC; do
26825
26826 case $var in
26827 old_archive_cmds_RC | \
26828 old_archive_from_new_cmds_RC | \
26829 archive_cmds_RC | \
26830 archive_expsym_cmds_RC | \
26831 module_cmds_RC | \
26832 module_expsym_cmds_RC | \
26833 old_archive_from_expsyms_cmds_RC | \
26834 export_symbols_cmds_RC | \
26835 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26836 postinstall_cmds | postuninstall_cmds | \
26837 old_postinstall_cmds | old_postuninstall_cmds | \
26838 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26839 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026840 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 +000026841 ;;
26842 *)
26843 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26844 ;;
26845 esac
26846 done
26847
26848 case $lt_echo in
26849 *'\$0 --fallback-echo"')
26850 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26851 ;;
26852 esac
26853
26854cfgfile="$ofile"
26855
26856 cat <<__EOF__ >> "$cfgfile"
26857# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26858
26859# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26860
26861# Shell to use when invoking shell scripts.
26862SHELL=$lt_SHELL
26863
26864# Whether or not to build shared libraries.
26865build_libtool_libs=$enable_shared
26866
26867# Whether or not to build static libraries.
26868build_old_libs=$enable_static
26869
26870# Whether or not to add -lc for building shared libraries.
26871build_libtool_need_lc=$archive_cmds_need_lc_RC
26872
26873# Whether or not to disallow shared libs when runtime libs are static
26874allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26875
26876# Whether or not to optimize for fast installation.
26877fast_install=$enable_fast_install
26878
26879# The host system.
26880host_alias=$host_alias
26881host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026882host_os=$host_os
26883
26884# The build system.
26885build_alias=$build_alias
26886build=$build
26887build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026888
26889# An echo program that does not interpret backslashes.
26890echo=$lt_echo
26891
26892# The archiver.
26893AR=$lt_AR
26894AR_FLAGS=$lt_AR_FLAGS
26895
26896# A C compiler.
26897LTCC=$lt_LTCC
26898
Reid Spencera773bd52006-08-04 18:18:08 +000026899# LTCC compiler flags.
26900LTCFLAGS=$lt_LTCFLAGS
26901
John Criswell47fdd832003-07-14 16:52:07 +000026902# A language-specific compiler.
26903CC=$lt_compiler_RC
26904
26905# Is the compiler the GNU C compiler?
26906with_gcc=$GCC_RC
26907
26908# An ERE matcher.
26909EGREP=$lt_EGREP
26910
26911# The linker used to build libraries.
26912LD=$lt_LD_RC
26913
26914# Whether we need hard or soft links.
26915LN_S=$lt_LN_S
26916
26917# A BSD-compatible nm program.
26918NM=$lt_NM
26919
26920# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026921STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026922
26923# Used to examine libraries when file_magic_cmd begins "file"
26924MAGIC_CMD=$MAGIC_CMD
26925
26926# Used on cygwin: DLL creation program.
26927DLLTOOL="$DLLTOOL"
26928
26929# Used on cygwin: object dumper.
26930OBJDUMP="$OBJDUMP"
26931
26932# Used on cygwin: assembler.
26933AS="$AS"
26934
26935# The name of the directory that contains temporary libtool files.
26936objdir=$objdir
26937
26938# How to create reloadable object files.
26939reload_flag=$lt_reload_flag
26940reload_cmds=$lt_reload_cmds
26941
26942# How to pass a linker flag through the compiler.
26943wl=$lt_lt_prog_compiler_wl_RC
26944
26945# Object file suffix (normally "o").
26946objext="$ac_objext"
26947
26948# Old archive suffix (normally "a").
26949libext="$libext"
26950
26951# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026952shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026953
26954# Executable file suffix (normally "").
26955exeext="$exeext"
26956
26957# Additional compiler flags for building library objects.
26958pic_flag=$lt_lt_prog_compiler_pic_RC
26959pic_mode=$pic_mode
26960
26961# What is the maximum length of a command?
26962max_cmd_len=$lt_cv_sys_max_cmd_len
26963
26964# Does compiler simultaneously support -c and -o options?
26965compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26966
Reid Spencera773bd52006-08-04 18:18:08 +000026967# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026968need_locks=$lt_need_locks
26969
26970# Do we need the lib prefix for modules?
26971need_lib_prefix=$need_lib_prefix
26972
26973# Do we need a version for libraries?
26974need_version=$need_version
26975
26976# Whether dlopen is supported.
26977dlopen_support=$enable_dlopen
26978
26979# Whether dlopen of programs is supported.
26980dlopen_self=$enable_dlopen_self
26981
26982# Whether dlopen of statically linked programs is supported.
26983dlopen_self_static=$enable_dlopen_self_static
26984
26985# Compiler flag to prevent dynamic linking.
26986link_static_flag=$lt_lt_prog_compiler_static_RC
26987
26988# Compiler flag to turn off builtin functions.
26989no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26990
26991# Compiler flag to allow reflexive dlopens.
26992export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26993
26994# Compiler flag to generate shared objects directly from archives.
26995whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26996
26997# Compiler flag to generate thread-safe objects.
26998thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26999
27000# Library versioning type.
27001version_type=$version_type
27002
27003# Format of library name prefix.
27004libname_spec=$lt_libname_spec
27005
27006# List of archive names. First name is the real one, the rest are links.
27007# The last name is the one that the linker finds with -lNAME.
27008library_names_spec=$lt_library_names_spec
27009
27010# The coded name of the library, if different from the real name.
27011soname_spec=$lt_soname_spec
27012
27013# Commands used to build and install an old-style archive.
27014RANLIB=$lt_RANLIB
27015old_archive_cmds=$lt_old_archive_cmds_RC
27016old_postinstall_cmds=$lt_old_postinstall_cmds
27017old_postuninstall_cmds=$lt_old_postuninstall_cmds
27018
27019# Create an old-style archive from a shared archive.
27020old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27021
27022# Create a temporary old-style archive to link instead of a shared archive.
27023old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27024
27025# Commands used to build and install a shared archive.
27026archive_cmds=$lt_archive_cmds_RC
27027archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27028postinstall_cmds=$lt_postinstall_cmds
27029postuninstall_cmds=$lt_postuninstall_cmds
27030
27031# Commands used to build a loadable module (assumed same as above if empty)
27032module_cmds=$lt_module_cmds_RC
27033module_expsym_cmds=$lt_module_expsym_cmds_RC
27034
27035# Commands to strip libraries.
27036old_striplib=$lt_old_striplib
27037striplib=$lt_striplib
27038
27039# Dependencies to place before the objects being linked to create a
27040# shared library.
27041predep_objects=$lt_predep_objects_RC
27042
27043# Dependencies to place after the objects being linked to create a
27044# shared library.
27045postdep_objects=$lt_postdep_objects_RC
27046
27047# Dependencies to place before the objects being linked to create a
27048# shared library.
27049predeps=$lt_predeps_RC
27050
27051# Dependencies to place after the objects being linked to create a
27052# shared library.
27053postdeps=$lt_postdeps_RC
27054
27055# The library search path used internally by the compiler when linking
27056# a shared library.
27057compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27058
27059# Method to check whether dependent libraries are shared objects.
27060deplibs_check_method=$lt_deplibs_check_method
27061
27062# Command to use when deplibs_check_method == file_magic.
27063file_magic_cmd=$lt_file_magic_cmd
27064
27065# Flag that allows shared libraries with undefined symbols to be built.
27066allow_undefined_flag=$lt_allow_undefined_flag_RC
27067
27068# Flag that forces no undefined symbols.
27069no_undefined_flag=$lt_no_undefined_flag_RC
27070
27071# Commands used to finish a libtool library installation in a directory.
27072finish_cmds=$lt_finish_cmds
27073
27074# Same as above, but a single script fragment to be evaled but not shown.
27075finish_eval=$lt_finish_eval
27076
27077# Take the output of nm and produce a listing of raw symbols and C names.
27078global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27079
27080# Transform the output of nm in a proper C declaration
27081global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27082
27083# Transform the output of nm in a C name address pair
27084global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27085
27086# This is the shared library runtime path variable.
27087runpath_var=$runpath_var
27088
27089# This is the shared library path variable.
27090shlibpath_var=$shlibpath_var
27091
27092# Is shlibpath searched before the hard-coded library search path?
27093shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27094
27095# How to hardcode a shared library path into an executable.
27096hardcode_action=$hardcode_action_RC
27097
27098# Whether we should hardcode library paths into libraries.
27099hardcode_into_libs=$hardcode_into_libs
27100
27101# Flag to hardcode \$libdir into a binary during linking.
27102# This must work even if \$libdir does not exist.
27103hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27104
27105# If ld is used when linking, flag to hardcode \$libdir into
27106# a binary during linking. This must work even if \$libdir does
27107# not exist.
27108hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27109
27110# Whether we need a single -rpath flag with a separated argument.
27111hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27112
27113# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27114# resulting binary.
27115hardcode_direct=$hardcode_direct_RC
27116
27117# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27118# resulting binary.
27119hardcode_minus_L=$hardcode_minus_L_RC
27120
27121# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27122# the resulting binary.
27123hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27124
27125# Set to yes if building a shared library automatically hardcodes DIR into the library
27126# and all subsequent libraries and executables linked against it.
27127hardcode_automatic=$hardcode_automatic_RC
27128
27129# Variables whose values should be saved in libtool wrapper scripts and
27130# restored at relink time.
27131variables_saved_for_relink="$variables_saved_for_relink"
27132
27133# Whether libtool must link a program against all its dependency libraries.
27134link_all_deplibs=$link_all_deplibs_RC
27135
27136# Compile-time system search path for libraries
27137sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27138
27139# Run-time system search path for libraries
27140sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27141
27142# Fix the shell variable \$srcfile for the compiler.
27143fix_srcfile_path="$fix_srcfile_path_RC"
27144
27145# Set to yes if exported symbols are required.
27146always_export_symbols=$always_export_symbols_RC
27147
27148# The commands to list exported symbols.
27149export_symbols_cmds=$lt_export_symbols_cmds_RC
27150
27151# The commands to extract the exported symbol list from a shared archive.
27152extract_expsyms_cmds=$lt_extract_expsyms_cmds
27153
27154# Symbols that should not be listed in the preloaded symbols.
27155exclude_expsyms=$lt_exclude_expsyms_RC
27156
27157# Symbols that must always be exported.
27158include_expsyms=$lt_include_expsyms_RC
27159
27160# ### END LIBTOOL TAG CONFIG: $tagname
27161
27162__EOF__
27163
27164
27165else
27166 # If there is no Makefile yet, we rely on a make rule to execute
27167 # `config.status --recheck' to rerun these tests and create the
27168 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027169 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27170 if test -f "$ltmain_in"; then
27171 test -f Makefile && make "$ltmain"
27172 fi
John Criswell47fdd832003-07-14 16:52:07 +000027173fi
27174
27175
27176ac_ext=c
27177ac_cpp='$CPP $CPPFLAGS'
27178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27180ac_compiler_gnu=$ac_cv_c_compiler_gnu
27181
27182CC="$lt_save_CC"
27183
27184 ;;
27185
27186 *)
27187 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27188echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27189 { (exit 1); exit 1; }; }
27190 ;;
27191 esac
27192
27193 # Append the new tag name to the list of available tags.
27194 if test -n "$tagname" ; then
27195 available_tags="$available_tags $tagname"
27196 fi
27197 fi
27198 done
27199 IFS="$lt_save_ifs"
27200
27201 # Now substitute the updated list of available tags.
27202 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27203 mv "${ofile}T" "$ofile"
27204 chmod +x "$ofile"
27205 else
27206 rm -f "${ofile}T"
27207 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27208echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27209 { (exit 1); exit 1; }; }
27210 fi
27211fi
John Criswell7a73b802003-06-30 21:59:07 +000027212
27213
27214
27215# This can be used to rebuild libtool when needed
27216LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27217
27218# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027219LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027220
27221# Prevent multiple expansion
27222
27223
27224
John Criswell47fdd832003-07-14 16:52:07 +000027225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
27241
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027242
Reid Spencer582a23c2004-12-29 07:07:57 +000027243if test "$lt_cv_dlopen_self" = "yes" ; then
27244
27245cat >>confdefs.h <<\_ACEOF
27246#define CAN_DLOPEN_SELF 1
27247_ACEOF
27248
27249fi
27250
Douglas Gregor01746742009-05-11 18:05:52 +000027251
Reid Spencer7931a782004-12-27 06:15:02 +000027252if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027253 LLVMGCC="llvm-gcc${EXEEXT}"
27254 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027255 LLVMGCCCOMMAND="$LLVMGCC"
27256 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027257 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27258
27259 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27260
Reid Spencerc84492c2005-06-02 22:34:49 +000027261 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27262set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027265if test "${ac_cv_path_LLVMGCC+set}" = set; then
27266 echo $ECHO_N "(cached) $ECHO_C" >&6
27267else
27268 case $LLVMGCC in
27269 [\\/]* | ?:[\\/]*)
27270 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27271 ;;
27272 *)
27273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27274for as_dir in $PATH
27275do
27276 IFS=$as_save_IFS
27277 test -z "$as_dir" && as_dir=.
27278 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027279 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 +000027280 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27282 break 2
27283 fi
27284done
27285done
Reid Spencera773bd52006-08-04 18:18:08 +000027286IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027287
Reid Spencer59473af2004-12-25 07:31:29 +000027288 ;;
27289esac
27290fi
27291LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027292if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027293 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27294echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027295else
Reid Spencera773bd52006-08-04 18:18:08 +000027296 { echo "$as_me:$LINENO: result: no" >&5
27297echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027298fi
27299
Reid Spencera773bd52006-08-04 18:18:08 +000027300
Reid Spencerc84492c2005-06-02 22:34:49 +000027301 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27302set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027305if test "${ac_cv_path_LLVMGXX+set}" = set; then
27306 echo $ECHO_N "(cached) $ECHO_C" >&6
27307else
27308 case $LLVMGXX in
27309 [\\/]* | ?:[\\/]*)
27310 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27311 ;;
27312 *)
27313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27314for as_dir in $PATH
27315do
27316 IFS=$as_save_IFS
27317 test -z "$as_dir" && as_dir=.
27318 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027319 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 +000027320 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27322 break 2
27323 fi
27324done
27325done
Reid Spencera773bd52006-08-04 18:18:08 +000027326IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027327
Reid Spencer59473af2004-12-25 07:31:29 +000027328 ;;
27329esac
27330fi
27331LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027332if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027333 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27334echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027335else
Reid Spencera773bd52006-08-04 18:18:08 +000027336 { echo "$as_me:$LINENO: result: no" >&5
27337echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027338fi
27339
Reid Spencera773bd52006-08-04 18:18:08 +000027340
Reid Spencer59473af2004-12-25 07:31:29 +000027341else
Devang Patel5d28b882007-12-04 22:54:47 +000027342 if test -z "$LLVMGCC"; then
27343 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027344 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000027345 fi
27346 if test -z "$LLVMGXX"; then
27347 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027348 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000027349 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027350
Reid Spencer59473af2004-12-25 07:31:29 +000027351 LLVMGCC=$LLVMGCC
27352
27353 LLVMGXX=$LLVMGXX
27354
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027355 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27356
27357 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27358
Reid Spencer59473af2004-12-25 07:31:29 +000027359fi
27360
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027361
Reid Spencera773bd52006-08-04 18:18:08 +000027362{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27363echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027364
Reid Spencer86901802004-12-08 23:07:27 +000027365ICC=no
27366IXX=no
27367case $CC in
27368 icc*|icpc*)
27369 ICC=yes
27370 IXX=yes
27371 ;;
27372 *)
27373 ;;
27374esac
27375
Duraid Madina937c60a2006-02-15 07:57:42 +000027376if test "$GCC" != "yes" && test "$ICC" != "yes"
27377then
27378 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27379echo "$as_me: error: gcc|icc required but not found" >&2;}
27380 { (exit 1); exit 1; }; }
27381fi
27382
27383if test "$GXX" != "yes" && test "$IXX" != "yes"
27384then
27385 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27386echo "$as_me: error: g++|icc required but not found" >&2;}
27387 { (exit 1); exit 1; }; }
27388fi
27389
Reid Spencer86901802004-12-08 23:07:27 +000027390if test "$GCC" = "yes"
27391then
Chris Lattner399c7c72008-02-05 19:43:53 +000027392 cat >conftest.$ac_ext <<_ACEOF
27393#if !defined(__GNUC__) || __GNUC__ < 3
27394#error Unsupported GCC version
27395#endif
27396
27397_ACEOF
27398rm -f conftest.$ac_objext
27399if { (ac_try="$ac_compile"
27400case "(($ac_try" in
27401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27402 *) ac_try_echo=$ac_try;;
27403esac
27404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27405 (eval "$ac_compile") 2>conftest.er1
27406 ac_status=$?
27407 grep -v '^ *+' conftest.er1 >conftest.err
27408 rm -f conftest.er1
27409 cat conftest.err >&5
27410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027411 (exit $ac_status); } &&
27412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27413 { (case "(($ac_try" in
27414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415 *) ac_try_echo=$ac_try;;
27416esac
27417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418 (eval "$ac_try") 2>&5
27419 ac_status=$?
27420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421 (exit $ac_status); }; } &&
27422 { ac_try='test -s conftest.$ac_objext'
27423 { (case "(($ac_try" in
27424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27425 *) ac_try_echo=$ac_try;;
27426esac
27427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27428 (eval "$ac_try") 2>&5
27429 ac_status=$?
27430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027432 :
27433else
27434 echo "$as_me: failed program was:" >&5
27435sed 's/^/| /' conftest.$ac_ext >&5
27436
27437 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027438echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27439 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027440fi
27441
27442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027443fi
27444
27445if test -z "$llvm_cv_gnu_make_command"
27446then
27447 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27448echo "$as_me: error: GNU Make required but not found" >&2;}
27449 { (exit 1); exit 1; }; }
27450fi
27451
Reid Spencera773bd52006-08-04 18:18:08 +000027452{ echo "$as_me:$LINENO: result: ok" >&5
27453echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027454
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000027455
27456
Reid Spencera773bd52006-08-04 18:18:08 +000027457{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27458echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027459if test "${ac_cv_lib_m_sin+set}" = set; then
27460 echo $ECHO_N "(cached) $ECHO_C" >&6
27461else
27462 ac_check_lib_save_LIBS=$LIBS
27463LIBS="-lm $LIBS"
27464cat >conftest.$ac_ext <<_ACEOF
27465/* confdefs.h. */
27466_ACEOF
27467cat confdefs.h >>conftest.$ac_ext
27468cat >>conftest.$ac_ext <<_ACEOF
27469/* end confdefs.h. */
27470
Reid Spencera773bd52006-08-04 18:18:08 +000027471/* Override any GCC internal prototype to avoid an error.
27472 Use char because int might match the return type of a GCC
27473 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027474#ifdef __cplusplus
27475extern "C"
27476#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027477char sin ();
27478int
27479main ()
27480{
Reid Spencera773bd52006-08-04 18:18:08 +000027481return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027482 ;
27483 return 0;
27484}
27485_ACEOF
27486rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027487if { (ac_try="$ac_link"
27488case "(($ac_try" in
27489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27490 *) ac_try_echo=$ac_try;;
27491esac
27492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27493 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027494 ac_status=$?
27495 grep -v '^ *+' conftest.er1 >conftest.err
27496 rm -f conftest.er1
27497 cat conftest.err >&5
27498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027499 (exit $ac_status); } &&
27500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27501 { (case "(($ac_try" in
27502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27503 *) ac_try_echo=$ac_try;;
27504esac
27505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27506 (eval "$ac_try") 2>&5
27507 ac_status=$?
27508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509 (exit $ac_status); }; } &&
27510 { ac_try='test -s conftest$ac_exeext'
27511 { (case "(($ac_try" in
27512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27513 *) ac_try_echo=$ac_try;;
27514esac
27515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27516 (eval "$ac_try") 2>&5
27517 ac_status=$?
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027520 ac_cv_lib_m_sin=yes
27521else
27522 echo "$as_me: failed program was:" >&5
27523sed 's/^/| /' conftest.$ac_ext >&5
27524
Reid Spencera773bd52006-08-04 18:18:08 +000027525 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027526fi
Reid Spencera773bd52006-08-04 18:18:08 +000027527
Bill Wendlingebcceee2009-04-18 11:20:33 +000027528rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027529 conftest$ac_exeext conftest.$ac_ext
27530LIBS=$ac_check_lib_save_LIBS
27531fi
Reid Spencera773bd52006-08-04 18:18:08 +000027532{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27533echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027534if test $ac_cv_lib_m_sin = yes; then
27535 cat >>confdefs.h <<_ACEOF
27536#define HAVE_LIBM 1
27537_ACEOF
27538
27539 LIBS="-lm $LIBS"
27540
27541fi
27542
Jeff Cohen28783c32007-01-12 18:22:38 +000027543if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027544
Reid Spencera773bd52006-08-04 18:18:08 +000027545{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27546echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027547if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027548 echo $ECHO_N "(cached) $ECHO_C" >&6
27549else
27550 ac_check_lib_save_LIBS=$LIBS
27551LIBS="-limagehlp $LIBS"
27552cat >conftest.$ac_ext <<_ACEOF
27553/* confdefs.h. */
27554_ACEOF
27555cat confdefs.h >>conftest.$ac_ext
27556cat >>conftest.$ac_ext <<_ACEOF
27557/* end confdefs.h. */
27558
Reid Spencer48fdf912006-06-01 19:03:21 +000027559
Reid Spencer484fc8e2006-06-01 16:55:59 +000027560int
27561main ()
27562{
Reid Spencera773bd52006-08-04 18:18:08 +000027563return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027564 ;
27565 return 0;
27566}
27567_ACEOF
27568rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027569if { (ac_try="$ac_link"
27570case "(($ac_try" in
27571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27572 *) ac_try_echo=$ac_try;;
27573esac
27574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027576 ac_status=$?
27577 grep -v '^ *+' conftest.er1 >conftest.err
27578 rm -f conftest.er1
27579 cat conftest.err >&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027581 (exit $ac_status); } &&
27582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27583 { (case "(($ac_try" in
27584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27585 *) ac_try_echo=$ac_try;;
27586esac
27587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27588 (eval "$ac_try") 2>&5
27589 ac_status=$?
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); }; } &&
27592 { ac_try='test -s conftest$ac_exeext'
27593 { (case "(($ac_try" in
27594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27595 *) ac_try_echo=$ac_try;;
27596esac
27597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27598 (eval "$ac_try") 2>&5
27599 ac_status=$?
27600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027602 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027603else
27604 echo "$as_me: failed program was:" >&5
27605sed 's/^/| /' conftest.$ac_ext >&5
27606
Reid Spencera773bd52006-08-04 18:18:08 +000027607 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027608fi
Reid Spencera773bd52006-08-04 18:18:08 +000027609
Bill Wendlingebcceee2009-04-18 11:20:33 +000027610rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027611 conftest$ac_exeext conftest.$ac_ext
27612LIBS=$ac_check_lib_save_LIBS
27613fi
Reid Spencera773bd52006-08-04 18:18:08 +000027614{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27615echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027616if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027617 cat >>confdefs.h <<_ACEOF
27618#define HAVE_LIBIMAGEHLP 1
27619_ACEOF
27620
27621 LIBS="-limagehlp $LIBS"
27622
27623fi
27624
27625
Reid Spencera773bd52006-08-04 18:18:08 +000027626{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27627echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027628if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027629 echo $ECHO_N "(cached) $ECHO_C" >&6
27630else
27631 ac_check_lib_save_LIBS=$LIBS
27632LIBS="-lpsapi $LIBS"
27633cat >conftest.$ac_ext <<_ACEOF
27634/* confdefs.h. */
27635_ACEOF
27636cat confdefs.h >>conftest.$ac_ext
27637cat >>conftest.$ac_ext <<_ACEOF
27638/* end confdefs.h. */
27639
Reid Spencer48fdf912006-06-01 19:03:21 +000027640
Reid Spencer484fc8e2006-06-01 16:55:59 +000027641int
27642main ()
27643{
Reid Spencera773bd52006-08-04 18:18:08 +000027644return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027645 ;
27646 return 0;
27647}
27648_ACEOF
27649rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027650if { (ac_try="$ac_link"
27651case "(($ac_try" in
27652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27653 *) ac_try_echo=$ac_try;;
27654esac
27655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27656 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027657 ac_status=$?
27658 grep -v '^ *+' conftest.er1 >conftest.err
27659 rm -f conftest.er1
27660 cat conftest.err >&5
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027662 (exit $ac_status); } &&
27663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27664 { (case "(($ac_try" in
27665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666 *) ac_try_echo=$ac_try;;
27667esac
27668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669 (eval "$ac_try") 2>&5
27670 ac_status=$?
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); }; } &&
27673 { ac_try='test -s conftest$ac_exeext'
27674 { (case "(($ac_try" in
27675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676 *) ac_try_echo=$ac_try;;
27677esac
27678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679 (eval "$ac_try") 2>&5
27680 ac_status=$?
27681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027683 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027684else
27685 echo "$as_me: failed program was:" >&5
27686sed 's/^/| /' conftest.$ac_ext >&5
27687
Reid Spencera773bd52006-08-04 18:18:08 +000027688 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027689fi
Reid Spencera773bd52006-08-04 18:18:08 +000027690
Bill Wendlingebcceee2009-04-18 11:20:33 +000027691rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027692 conftest$ac_exeext conftest.$ac_ext
27693LIBS=$ac_check_lib_save_LIBS
27694fi
Reid Spencera773bd52006-08-04 18:18:08 +000027695{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27696echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027697if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027698 cat >>confdefs.h <<_ACEOF
27699#define HAVE_LIBPSAPI 1
27700_ACEOF
27701
27702 LIBS="-lpsapi $LIBS"
27703
27704fi
27705
27706fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027707
Reid Spencera773bd52006-08-04 18:18:08 +000027708{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27709echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027710if test "${ac_cv_search_dlopen+set}" = set; then
27711 echo $ECHO_N "(cached) $ECHO_C" >&6
27712else
27713 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027714cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027715/* confdefs.h. */
27716_ACEOF
27717cat confdefs.h >>conftest.$ac_ext
27718cat >>conftest.$ac_ext <<_ACEOF
27719/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027720
Reid Spencera773bd52006-08-04 18:18:08 +000027721/* Override any GCC internal prototype to avoid an error.
27722 Use char because int might match the return type of a GCC
27723 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027724#ifdef __cplusplus
27725extern "C"
27726#endif
John Criswell7a73b802003-06-30 21:59:07 +000027727char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027728int
27729main ()
27730{
Reid Spencera773bd52006-08-04 18:18:08 +000027731return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027732 ;
27733 return 0;
27734}
27735_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027736for ac_lib in '' dl; do
27737 if test -z "$ac_lib"; then
27738 ac_res="none required"
27739 else
27740 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027741 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027742 fi
27743 rm -f conftest.$ac_objext conftest$ac_exeext
27744if { (ac_try="$ac_link"
27745case "(($ac_try" in
27746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27747 *) ac_try_echo=$ac_try;;
27748esac
27749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27750 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027751 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027752 grep -v '^ *+' conftest.er1 >conftest.err
27753 rm -f conftest.er1
27754 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027756 (exit $ac_status); } &&
27757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27758 { (case "(($ac_try" in
27759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27760 *) ac_try_echo=$ac_try;;
27761esac
27762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27763 (eval "$ac_try") 2>&5
27764 ac_status=$?
27765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766 (exit $ac_status); }; } &&
27767 { ac_try='test -s conftest$ac_exeext'
27768 { (case "(($ac_try" in
27769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27770 *) ac_try_echo=$ac_try;;
27771esac
27772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27773 (eval "$ac_try") 2>&5
27774 ac_status=$?
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027777 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027778else
27779 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027780sed 's/^/| /' conftest.$ac_ext >&5
27781
Reid Spencera773bd52006-08-04 18:18:08 +000027782
John Criswell7a73b802003-06-30 21:59:07 +000027783fi
Reid Spencera773bd52006-08-04 18:18:08 +000027784
Bill Wendlingebcceee2009-04-18 11:20:33 +000027785rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027786 conftest$ac_exeext
27787 if test "${ac_cv_search_dlopen+set}" = set; then
27788 break
John Criswell7a73b802003-06-30 21:59:07 +000027789fi
Reid Spencera773bd52006-08-04 18:18:08 +000027790done
27791if test "${ac_cv_search_dlopen+set}" = set; then
27792 :
27793else
27794 ac_cv_search_dlopen=no
27795fi
27796rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027797LIBS=$ac_func_search_save_LIBS
27798fi
Reid Spencera773bd52006-08-04 18:18:08 +000027799{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27800echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27801ac_res=$ac_cv_search_dlopen
27802if test "$ac_res" != no; then
27803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027804
27805cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027806#define HAVE_DLOPEN 1
27807_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027808
27809else
Brian Gaekec45be042003-10-07 06:01:34 +000027810 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27811echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027812fi
27813
27814
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027815if test "$llvm_cv_enable_libffi" = "yes" ; then
27816 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027817echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27818if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027819 echo $ECHO_N "(cached) $ECHO_C" >&6
27820else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027821 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027822cat >conftest.$ac_ext <<_ACEOF
27823/* confdefs.h. */
27824_ACEOF
27825cat confdefs.h >>conftest.$ac_ext
27826cat >>conftest.$ac_ext <<_ACEOF
27827/* end confdefs.h. */
27828
27829/* Override any GCC internal prototype to avoid an error.
27830 Use char because int might match the return type of a GCC
27831 builtin and then its argument prototype would still apply. */
27832#ifdef __cplusplus
27833extern "C"
27834#endif
27835char ffi_call ();
27836int
27837main ()
27838{
27839return ffi_call ();
27840 ;
27841 return 0;
27842}
27843_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027844for ac_lib in '' ffi; do
27845 if test -z "$ac_lib"; then
27846 ac_res="none required"
27847 else
27848 ac_res=-l$ac_lib
27849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27850 fi
27851 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027852if { (ac_try="$ac_link"
27853case "(($ac_try" in
27854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855 *) ac_try_echo=$ac_try;;
27856esac
27857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27858 (eval "$ac_link") 2>conftest.er1
27859 ac_status=$?
27860 grep -v '^ *+' conftest.er1 >conftest.err
27861 rm -f conftest.er1
27862 cat conftest.err >&5
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027864 (exit $ac_status); } &&
27865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27866 { (case "(($ac_try" in
27867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27868 *) ac_try_echo=$ac_try;;
27869esac
27870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27871 (eval "$ac_try") 2>&5
27872 ac_status=$?
27873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874 (exit $ac_status); }; } &&
27875 { ac_try='test -s conftest$ac_exeext'
27876 { (case "(($ac_try" in
27877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27878 *) ac_try_echo=$ac_try;;
27879esac
27880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27881 (eval "$ac_try") 2>&5
27882 ac_status=$?
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027885 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027886else
27887 echo "$as_me: failed program was:" >&5
27888sed 's/^/| /' conftest.$ac_ext >&5
27889
Nick Lewycky267fddb2009-04-13 04:26:27 +000027890
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027891fi
27892
Bill Wendlingebcceee2009-04-18 11:20:33 +000027893rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027894 conftest$ac_exeext
27895 if test "${ac_cv_search_ffi_call+set}" = set; then
27896 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027897fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027898done
27899if test "${ac_cv_search_ffi_call+set}" = set; then
27900 :
27901else
27902 ac_cv_search_ffi_call=no
27903fi
27904rm conftest.$ac_ext
27905LIBS=$ac_func_search_save_LIBS
27906fi
27907{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27908echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27909ac_res=$ac_cv_search_ffi_call
27910if test "$ac_res" != no; then
27911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27912
27913cat >>confdefs.h <<\_ACEOF
27914#define HAVE_FFI_CALL 1
27915_ACEOF
27916
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027917else
27918 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27919echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27920fi
27921
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027922fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027923
Reid Spencera773bd52006-08-04 18:18:08 +000027924{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27925echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027926if test "${ac_cv_search_mallinfo+set}" = set; then
27927 echo $ECHO_N "(cached) $ECHO_C" >&6
27928else
27929 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027930cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027931/* confdefs.h. */
27932_ACEOF
27933cat confdefs.h >>conftest.$ac_ext
27934cat >>conftest.$ac_ext <<_ACEOF
27935/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027936
Reid Spencera773bd52006-08-04 18:18:08 +000027937/* Override any GCC internal prototype to avoid an error.
27938 Use char because int might match the return type of a GCC
27939 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027940#ifdef __cplusplus
27941extern "C"
27942#endif
John Criswell7a73b802003-06-30 21:59:07 +000027943char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027944int
27945main ()
27946{
Reid Spencera773bd52006-08-04 18:18:08 +000027947return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027948 ;
27949 return 0;
27950}
27951_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027952for ac_lib in '' malloc; do
27953 if test -z "$ac_lib"; then
27954 ac_res="none required"
27955 else
27956 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027958 fi
27959 rm -f conftest.$ac_objext conftest$ac_exeext
27960if { (ac_try="$ac_link"
27961case "(($ac_try" in
27962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27963 *) ac_try_echo=$ac_try;;
27964esac
27965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27966 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027967 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027968 grep -v '^ *+' conftest.er1 >conftest.err
27969 rm -f conftest.er1
27970 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027972 (exit $ac_status); } &&
27973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27974 { (case "(($ac_try" in
27975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27976 *) ac_try_echo=$ac_try;;
27977esac
27978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27979 (eval "$ac_try") 2>&5
27980 ac_status=$?
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); }; } &&
27983 { ac_try='test -s conftest$ac_exeext'
27984 { (case "(($ac_try" in
27985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986 *) ac_try_echo=$ac_try;;
27987esac
27988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989 (eval "$ac_try") 2>&5
27990 ac_status=$?
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027993 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027994else
27995 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027996sed 's/^/| /' conftest.$ac_ext >&5
27997
Reid Spencera773bd52006-08-04 18:18:08 +000027998
John Criswell7a73b802003-06-30 21:59:07 +000027999fi
Reid Spencera773bd52006-08-04 18:18:08 +000028000
Bill Wendlingebcceee2009-04-18 11:20:33 +000028001rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028002 conftest$ac_exeext
28003 if test "${ac_cv_search_mallinfo+set}" = set; then
28004 break
John Criswell7a73b802003-06-30 21:59:07 +000028005fi
Reid Spencera773bd52006-08-04 18:18:08 +000028006done
28007if test "${ac_cv_search_mallinfo+set}" = set; then
28008 :
28009else
28010 ac_cv_search_mallinfo=no
28011fi
28012rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028013LIBS=$ac_func_search_save_LIBS
28014fi
Reid Spencera773bd52006-08-04 18:18:08 +000028015{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28016echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28017ac_res=$ac_cv_search_mallinfo
28018if test "$ac_res" != no; then
28019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000028020
28021cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000028022#define HAVE_MALLINFO 1
28023_ACEOF
28024
28025fi
28026
28027
Reid Spencer0a262ba2005-08-24 10:07:20 +000028028if test "$ENABLE_THREADS" -eq 1 ; then
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028029 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_init" >&5
28030echo $ECHO_N "checking for library containing pthread_mutex_init... $ECHO_C" >&6; }
28031if test "${ac_cv_search_pthread_mutex_init+set}" = set; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028032 echo $ECHO_N "(cached) $ECHO_C" >&6
28033else
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028034 ac_func_search_save_LIBS=$LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000028035cat >conftest.$ac_ext <<_ACEOF
28036/* confdefs.h. */
28037_ACEOF
28038cat confdefs.h >>conftest.$ac_ext
28039cat >>conftest.$ac_ext <<_ACEOF
28040/* end confdefs.h. */
28041
Reid Spencera773bd52006-08-04 18:18:08 +000028042/* Override any GCC internal prototype to avoid an error.
28043 Use char because int might match the return type of a GCC
28044 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000028045#ifdef __cplusplus
28046extern "C"
28047#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000028048char pthread_mutex_init ();
28049int
28050main ()
28051{
Reid Spencera773bd52006-08-04 18:18:08 +000028052return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000028053 ;
28054 return 0;
28055}
28056_ACEOF
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028057for ac_lib in '' pthread; do
28058 if test -z "$ac_lib"; then
28059 ac_res="none required"
28060 else
28061 ac_res=-l$ac_lib
28062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28063 fi
28064 rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028065if { (ac_try="$ac_link"
28066case "(($ac_try" in
28067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068 *) ac_try_echo=$ac_try;;
28069esac
28070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28071 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000028072 ac_status=$?
28073 grep -v '^ *+' conftest.er1 >conftest.err
28074 rm -f conftest.er1
28075 cat conftest.err >&5
28076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028077 (exit $ac_status); } &&
28078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28079 { (case "(($ac_try" in
28080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28081 *) ac_try_echo=$ac_try;;
28082esac
28083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28084 (eval "$ac_try") 2>&5
28085 ac_status=$?
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); }; } &&
28088 { ac_try='test -s conftest$ac_exeext'
28089 { (case "(($ac_try" in
28090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091 *) ac_try_echo=$ac_try;;
28092esac
28093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28094 (eval "$ac_try") 2>&5
28095 ac_status=$?
28096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); }; }; then
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028098 ac_cv_search_pthread_mutex_init=$ac_res
Reid Spencer22177fe2005-07-12 15:24:20 +000028099else
28100 echo "$as_me: failed program was:" >&5
28101sed 's/^/| /' conftest.$ac_ext >&5
28102
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028103
Reid Spencer22177fe2005-07-12 15:24:20 +000028104fi
Reid Spencera773bd52006-08-04 18:18:08 +000028105
Bill Wendlingebcceee2009-04-18 11:20:33 +000028106rm -f core conftest.err conftest.$ac_objext \
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028107 conftest$ac_exeext
28108 if test "${ac_cv_search_pthread_mutex_init+set}" = set; then
28109 break
Reid Spencer22177fe2005-07-12 15:24:20 +000028110fi
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028111done
28112if test "${ac_cv_search_pthread_mutex_init+set}" = set; then
28113 :
28114else
28115 ac_cv_search_pthread_mutex_init=no
28116fi
28117rm conftest.$ac_ext
28118LIBS=$ac_func_search_save_LIBS
28119fi
28120{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_init" >&5
28121echo "${ECHO_T}$ac_cv_search_pthread_mutex_init" >&6; }
28122ac_res=$ac_cv_search_pthread_mutex_init
28123if test "$ac_res" != no; then
28124 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer22177fe2005-07-12 15:24:20 +000028125
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028126cat >>confdefs.h <<\_ACEOF
28127#define HAVE_PTHREAD 1
28128_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000028129
28130fi
28131
Reid Spencera773bd52006-08-04 18:18:08 +000028132 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28133echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000028134if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28135 echo $ECHO_N "(cached) $ECHO_C" >&6
28136else
28137 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000028138cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000028139/* confdefs.h. */
28140_ACEOF
28141cat confdefs.h >>conftest.$ac_ext
28142cat >>conftest.$ac_ext <<_ACEOF
28143/* end confdefs.h. */
28144
Reid Spencera773bd52006-08-04 18:18:08 +000028145/* Override any GCC internal prototype to avoid an error.
28146 Use char because int might match the return type of a GCC
28147 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000028148#ifdef __cplusplus
28149extern "C"
28150#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000028151char pthread_mutex_lock ();
28152int
28153main ()
28154{
Reid Spencera773bd52006-08-04 18:18:08 +000028155return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000028156 ;
28157 return 0;
28158}
28159_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028160for ac_lib in '' pthread; do
28161 if test -z "$ac_lib"; then
28162 ac_res="none required"
28163 else
28164 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000028165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028166 fi
28167 rm -f conftest.$ac_objext conftest$ac_exeext
28168if { (ac_try="$ac_link"
28169case "(($ac_try" in
28170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28171 *) ac_try_echo=$ac_try;;
28172esac
28173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28174 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000028175 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028176 grep -v '^ *+' conftest.er1 >conftest.err
28177 rm -f conftest.er1
28178 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000028179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028180 (exit $ac_status); } &&
28181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28182 { (case "(($ac_try" in
28183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28184 *) ac_try_echo=$ac_try;;
28185esac
28186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28187 (eval "$ac_try") 2>&5
28188 ac_status=$?
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); }; } &&
28191 { ac_try='test -s conftest$ac_exeext'
28192 { (case "(($ac_try" in
28193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28194 *) ac_try_echo=$ac_try;;
28195esac
28196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28197 (eval "$ac_try") 2>&5
28198 ac_status=$?
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028201 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028202else
28203 echo "$as_me: failed program was:" >&5
28204sed 's/^/| /' conftest.$ac_ext >&5
28205
Reid Spencera773bd52006-08-04 18:18:08 +000028206
Brian Gaeke5f268f72003-12-05 19:29:01 +000028207fi
Reid Spencera773bd52006-08-04 18:18:08 +000028208
Bill Wendlingebcceee2009-04-18 11:20:33 +000028209rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028210 conftest$ac_exeext
28211 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28212 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028213fi
Reid Spencera773bd52006-08-04 18:18:08 +000028214done
28215if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28216 :
28217else
28218 ac_cv_search_pthread_mutex_lock=no
28219fi
28220rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028221LIBS=$ac_func_search_save_LIBS
28222fi
Reid Spencera773bd52006-08-04 18:18:08 +000028223{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28224echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28225ac_res=$ac_cv_search_pthread_mutex_lock
28226if test "$ac_res" != no; then
28227 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028228
John Criswell40468462004-09-24 21:19:06 +000028229cat >>confdefs.h <<\_ACEOF
28230#define HAVE_PTHREAD_MUTEX_LOCK 1
28231_ACEOF
28232
28233fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028234
Owen Andersonde8aed22009-06-16 18:20:20 +000028235 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28236echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28237if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28238 echo $ECHO_N "(cached) $ECHO_C" >&6
28239else
28240 ac_func_search_save_LIBS=$LIBS
28241cat >conftest.$ac_ext <<_ACEOF
28242/* confdefs.h. */
28243_ACEOF
28244cat confdefs.h >>conftest.$ac_ext
28245cat >>conftest.$ac_ext <<_ACEOF
28246/* end confdefs.h. */
28247
28248/* Override any GCC internal prototype to avoid an error.
28249 Use char because int might match the return type of a GCC
28250 builtin and then its argument prototype would still apply. */
28251#ifdef __cplusplus
28252extern "C"
28253#endif
28254char pthread_rwlock_init ();
28255int
28256main ()
28257{
28258return pthread_rwlock_init ();
28259 ;
28260 return 0;
28261}
28262_ACEOF
28263for ac_lib in '' pthread; do
28264 if test -z "$ac_lib"; then
28265 ac_res="none required"
28266 else
28267 ac_res=-l$ac_lib
28268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28269 fi
28270 rm -f conftest.$ac_objext conftest$ac_exeext
28271if { (ac_try="$ac_link"
28272case "(($ac_try" in
28273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274 *) ac_try_echo=$ac_try;;
28275esac
28276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277 (eval "$ac_link") 2>conftest.er1
28278 ac_status=$?
28279 grep -v '^ *+' conftest.er1 >conftest.err
28280 rm -f conftest.er1
28281 cat conftest.err >&5
28282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283 (exit $ac_status); } &&
28284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28285 { (case "(($ac_try" in
28286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28287 *) ac_try_echo=$ac_try;;
28288esac
28289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28290 (eval "$ac_try") 2>&5
28291 ac_status=$?
28292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293 (exit $ac_status); }; } &&
28294 { ac_try='test -s conftest$ac_exeext'
28295 { (case "(($ac_try" in
28296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28297 *) ac_try_echo=$ac_try;;
28298esac
28299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28300 (eval "$ac_try") 2>&5
28301 ac_status=$?
28302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303 (exit $ac_status); }; }; then
28304 ac_cv_search_pthread_rwlock_init=$ac_res
28305else
28306 echo "$as_me: failed program was:" >&5
28307sed 's/^/| /' conftest.$ac_ext >&5
28308
28309
28310fi
28311
28312rm -f core conftest.err conftest.$ac_objext \
28313 conftest$ac_exeext
28314 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28315 break
28316fi
28317done
28318if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28319 :
28320else
28321 ac_cv_search_pthread_rwlock_init=no
28322fi
28323rm conftest.$ac_ext
28324LIBS=$ac_func_search_save_LIBS
28325fi
28326{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28327echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28328ac_res=$ac_cv_search_pthread_rwlock_init
28329if test "$ac_res" != no; then
28330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28331
28332cat >>confdefs.h <<\_ACEOF
28333#define HAVE_PTHREAD_RWLOCK_INIT 1
28334_ACEOF
28335
28336fi
28337
Owen Anderson27fcfe12009-06-25 23:10:26 +000028338 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28339echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28340if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28341 echo $ECHO_N "(cached) $ECHO_C" >&6
28342else
28343 ac_func_search_save_LIBS=$LIBS
28344cat >conftest.$ac_ext <<_ACEOF
28345/* confdefs.h. */
28346_ACEOF
28347cat confdefs.h >>conftest.$ac_ext
28348cat >>conftest.$ac_ext <<_ACEOF
28349/* end confdefs.h. */
28350
28351/* Override any GCC internal prototype to avoid an error.
28352 Use char because int might match the return type of a GCC
28353 builtin and then its argument prototype would still apply. */
28354#ifdef __cplusplus
28355extern "C"
28356#endif
28357char pthread_getspecific ();
28358int
28359main ()
28360{
28361return pthread_getspecific ();
28362 ;
28363 return 0;
28364}
28365_ACEOF
28366for ac_lib in '' pthread; do
28367 if test -z "$ac_lib"; then
28368 ac_res="none required"
28369 else
28370 ac_res=-l$ac_lib
28371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28372 fi
28373 rm -f conftest.$ac_objext conftest$ac_exeext
28374if { (ac_try="$ac_link"
28375case "(($ac_try" in
28376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28377 *) ac_try_echo=$ac_try;;
28378esac
28379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28380 (eval "$ac_link") 2>conftest.er1
28381 ac_status=$?
28382 grep -v '^ *+' conftest.er1 >conftest.err
28383 rm -f conftest.er1
28384 cat conftest.err >&5
28385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386 (exit $ac_status); } &&
28387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28388 { (case "(($ac_try" in
28389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28390 *) ac_try_echo=$ac_try;;
28391esac
28392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28393 (eval "$ac_try") 2>&5
28394 ac_status=$?
28395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396 (exit $ac_status); }; } &&
28397 { ac_try='test -s conftest$ac_exeext'
28398 { (case "(($ac_try" in
28399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28400 *) ac_try_echo=$ac_try;;
28401esac
28402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28403 (eval "$ac_try") 2>&5
28404 ac_status=$?
28405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406 (exit $ac_status); }; }; then
28407 ac_cv_search_pthread_getspecific=$ac_res
28408else
28409 echo "$as_me: failed program was:" >&5
28410sed 's/^/| /' conftest.$ac_ext >&5
28411
28412
28413fi
28414
28415rm -f core conftest.err conftest.$ac_objext \
28416 conftest$ac_exeext
28417 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28418 break
28419fi
28420done
28421if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28422 :
28423else
28424 ac_cv_search_pthread_getspecific=no
28425fi
28426rm conftest.$ac_ext
28427LIBS=$ac_func_search_save_LIBS
28428fi
28429{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28430echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28431ac_res=$ac_cv_search_pthread_getspecific
28432if test "$ac_res" != no; then
28433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28434
28435cat >>confdefs.h <<\_ACEOF
28436#define HAVE_PTHREAD_GETSPECIFIC 1
28437_ACEOF
28438
28439fi
28440
Reid Spencer0a262ba2005-08-24 10:07:20 +000028441fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028442
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028443
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028444# Check whether --with-udis86 was given.
28445if test "${with_udis86+set}" = set; then
28446 withval=$with_udis86;
28447 USE_UDIS86=1
28448
28449 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028450 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028451 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28452 esac
28453
28454{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28455echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28456if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28457 echo $ECHO_N "(cached) $ECHO_C" >&6
28458else
28459 ac_check_lib_save_LIBS=$LIBS
28460LIBS="-ludis86 $LIBS"
28461cat >conftest.$ac_ext <<_ACEOF
28462/* confdefs.h. */
28463_ACEOF
28464cat confdefs.h >>conftest.$ac_ext
28465cat >>conftest.$ac_ext <<_ACEOF
28466/* end confdefs.h. */
28467
28468/* Override any GCC internal prototype to avoid an error.
28469 Use char because int might match the return type of a GCC
28470 builtin and then its argument prototype would still apply. */
28471#ifdef __cplusplus
28472extern "C"
28473#endif
28474char ud_init ();
28475int
28476main ()
28477{
28478return ud_init ();
28479 ;
28480 return 0;
28481}
28482_ACEOF
28483rm -f conftest.$ac_objext conftest$ac_exeext
28484if { (ac_try="$ac_link"
28485case "(($ac_try" in
28486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487 *) ac_try_echo=$ac_try;;
28488esac
28489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490 (eval "$ac_link") 2>conftest.er1
28491 ac_status=$?
28492 grep -v '^ *+' conftest.er1 >conftest.err
28493 rm -f conftest.er1
28494 cat conftest.err >&5
28495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028496 (exit $ac_status); } &&
28497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28498 { (case "(($ac_try" in
28499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28500 *) ac_try_echo=$ac_try;;
28501esac
28502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28503 (eval "$ac_try") 2>&5
28504 ac_status=$?
28505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); }; } &&
28507 { ac_try='test -s conftest$ac_exeext'
28508 { (case "(($ac_try" in
28509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28510 *) ac_try_echo=$ac_try;;
28511esac
28512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28513 (eval "$ac_try") 2>&5
28514 ac_status=$?
28515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028517 ac_cv_lib_udis86_ud_init=yes
28518else
28519 echo "$as_me: failed program was:" >&5
28520sed 's/^/| /' conftest.$ac_ext >&5
28521
28522 ac_cv_lib_udis86_ud_init=no
28523fi
28524
Bill Wendlingebcceee2009-04-18 11:20:33 +000028525rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028526 conftest$ac_exeext conftest.$ac_ext
28527LIBS=$ac_check_lib_save_LIBS
28528fi
28529{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28530echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28531if test $ac_cv_lib_udis86_ud_init = yes; then
28532 cat >>confdefs.h <<_ACEOF
28533#define HAVE_LIBUDIS86 1
28534_ACEOF
28535
28536 LIBS="-ludis86 $LIBS"
28537
28538else
28539
28540 echo "Error! You need to have libudis86 around."
28541 exit -1
28542
28543fi
28544
28545
28546else
28547 USE_UDIS86=0
28548
28549fi
28550
28551
28552cat >>confdefs.h <<_ACEOF
28553#define USE_UDIS86 $USE_UDIS86
28554_ACEOF
28555
28556
28557
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028558# Check whether --with-oprofile was given.
28559if test "${with_oprofile+set}" = set; then
28560 withval=$with_oprofile;
28561 USE_OPROFILE=1
28562
28563 case "$withval" in
28564 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028565 no) llvm_cv_oppath=
28566 USE_OPROFILE=0
28567 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028568 *) llvm_cv_oppath="${withval}/lib/oprofile"
28569 CPPFLAGS="-I${withval}/include";;
28570 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028571 if test -n "$llvm_cv_oppath" ; then
28572 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28573 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28574echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28575if test "${ac_cv_search_bfd_init+set}" = set; then
28576 echo $ECHO_N "(cached) $ECHO_C" >&6
28577else
28578 ac_func_search_save_LIBS=$LIBS
28579cat >conftest.$ac_ext <<_ACEOF
28580/* confdefs.h. */
28581_ACEOF
28582cat confdefs.h >>conftest.$ac_ext
28583cat >>conftest.$ac_ext <<_ACEOF
28584/* end confdefs.h. */
28585
28586/* Override any GCC internal prototype to avoid an error.
28587 Use char because int might match the return type of a GCC
28588 builtin and then its argument prototype would still apply. */
28589#ifdef __cplusplus
28590extern "C"
28591#endif
28592char bfd_init ();
28593int
28594main ()
28595{
28596return bfd_init ();
28597 ;
28598 return 0;
28599}
28600_ACEOF
28601for ac_lib in '' bfd; do
28602 if test -z "$ac_lib"; then
28603 ac_res="none required"
28604 else
28605 ac_res=-l$ac_lib
28606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28607 fi
28608 rm -f conftest.$ac_objext conftest$ac_exeext
28609if { (ac_try="$ac_link"
28610case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28613esac
28614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_link") 2>conftest.er1
28616 ac_status=$?
28617 grep -v '^ *+' conftest.er1 >conftest.err
28618 rm -f conftest.er1
28619 cat conftest.err >&5
28620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28621 (exit $ac_status); } &&
28622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28623 { (case "(($ac_try" in
28624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28625 *) ac_try_echo=$ac_try;;
28626esac
28627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28628 (eval "$ac_try") 2>&5
28629 ac_status=$?
28630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631 (exit $ac_status); }; } &&
28632 { ac_try='test -s conftest$ac_exeext'
28633 { (case "(($ac_try" in
28634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28635 *) ac_try_echo=$ac_try;;
28636esac
28637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28638 (eval "$ac_try") 2>&5
28639 ac_status=$?
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); }; }; then
28642 ac_cv_search_bfd_init=$ac_res
28643else
28644 echo "$as_me: failed program was:" >&5
28645sed 's/^/| /' conftest.$ac_ext >&5
28646
28647
28648fi
28649
28650rm -f core conftest.err conftest.$ac_objext \
28651 conftest$ac_exeext
28652 if test "${ac_cv_search_bfd_init+set}" = set; then
28653 break
28654fi
28655done
28656if test "${ac_cv_search_bfd_init+set}" = set; then
28657 :
28658else
28659 ac_cv_search_bfd_init=no
28660fi
28661rm conftest.$ac_ext
28662LIBS=$ac_func_search_save_LIBS
28663fi
28664{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28665echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28666ac_res=$ac_cv_search_bfd_init
28667if test "$ac_res" != no; then
28668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28669
28670fi
28671
28672 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028673echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28674if test "${ac_cv_search_op_open_agent+set}" = set; then
28675 echo $ECHO_N "(cached) $ECHO_C" >&6
28676else
28677 ac_func_search_save_LIBS=$LIBS
28678cat >conftest.$ac_ext <<_ACEOF
28679/* confdefs.h. */
28680_ACEOF
28681cat confdefs.h >>conftest.$ac_ext
28682cat >>conftest.$ac_ext <<_ACEOF
28683/* end confdefs.h. */
28684
28685/* Override any GCC internal prototype to avoid an error.
28686 Use char because int might match the return type of a GCC
28687 builtin and then its argument prototype would still apply. */
28688#ifdef __cplusplus
28689extern "C"
28690#endif
28691char op_open_agent ();
28692int
28693main ()
28694{
28695return op_open_agent ();
28696 ;
28697 return 0;
28698}
28699_ACEOF
28700for ac_lib in '' opagent; do
28701 if test -z "$ac_lib"; then
28702 ac_res="none required"
28703 else
28704 ac_res=-l$ac_lib
28705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28706 fi
28707 rm -f conftest.$ac_objext conftest$ac_exeext
28708if { (ac_try="$ac_link"
28709case "(($ac_try" in
28710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28711 *) ac_try_echo=$ac_try;;
28712esac
28713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28714 (eval "$ac_link") 2>conftest.er1
28715 ac_status=$?
28716 grep -v '^ *+' conftest.er1 >conftest.err
28717 rm -f conftest.er1
28718 cat conftest.err >&5
28719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720 (exit $ac_status); } &&
28721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28722 { (case "(($ac_try" in
28723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724 *) ac_try_echo=$ac_try;;
28725esac
28726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727 (eval "$ac_try") 2>&5
28728 ac_status=$?
28729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730 (exit $ac_status); }; } &&
28731 { ac_try='test -s conftest$ac_exeext'
28732 { (case "(($ac_try" in
28733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28734 *) ac_try_echo=$ac_try;;
28735esac
28736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28737 (eval "$ac_try") 2>&5
28738 ac_status=$?
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); }; }; then
28741 ac_cv_search_op_open_agent=$ac_res
28742else
28743 echo "$as_me: failed program was:" >&5
28744sed 's/^/| /' conftest.$ac_ext >&5
28745
28746
28747fi
28748
28749rm -f core conftest.err conftest.$ac_objext \
28750 conftest$ac_exeext
28751 if test "${ac_cv_search_op_open_agent+set}" = set; then
28752 break
28753fi
28754done
28755if test "${ac_cv_search_op_open_agent+set}" = set; then
28756 :
28757else
28758 ac_cv_search_op_open_agent=no
28759fi
28760rm conftest.$ac_ext
28761LIBS=$ac_func_search_save_LIBS
28762fi
28763{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28764echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28765ac_res=$ac_cv_search_op_open_agent
28766if test "$ac_res" != no; then
28767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28768
28769else
28770
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028771 echo "Error! You need to have libopagent around."
28772 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028773
28774fi
28775
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028776 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028777 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28778echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28779if test "${ac_cv_header_opagent_h+set}" = set; then
28780 echo $ECHO_N "(cached) $ECHO_C" >&6
28781fi
28782{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28783echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28784else
28785 # Is the header compilable?
28786{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28787echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28788cat >conftest.$ac_ext <<_ACEOF
28789/* confdefs.h. */
28790_ACEOF
28791cat confdefs.h >>conftest.$ac_ext
28792cat >>conftest.$ac_ext <<_ACEOF
28793/* end confdefs.h. */
28794$ac_includes_default
28795#include <opagent.h>
28796_ACEOF
28797rm -f conftest.$ac_objext
28798if { (ac_try="$ac_compile"
28799case "(($ac_try" in
28800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28801 *) ac_try_echo=$ac_try;;
28802esac
28803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28804 (eval "$ac_compile") 2>conftest.er1
28805 ac_status=$?
28806 grep -v '^ *+' conftest.er1 >conftest.err
28807 rm -f conftest.er1
28808 cat conftest.err >&5
28809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); } &&
28811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28812 { (case "(($ac_try" in
28813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28814 *) ac_try_echo=$ac_try;;
28815esac
28816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28817 (eval "$ac_try") 2>&5
28818 ac_status=$?
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); }; } &&
28821 { ac_try='test -s conftest.$ac_objext'
28822 { (case "(($ac_try" in
28823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28824 *) ac_try_echo=$ac_try;;
28825esac
28826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28827 (eval "$ac_try") 2>&5
28828 ac_status=$?
28829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 (exit $ac_status); }; }; then
28831 ac_header_compiler=yes
28832else
28833 echo "$as_me: failed program was:" >&5
28834sed 's/^/| /' conftest.$ac_ext >&5
28835
28836 ac_header_compiler=no
28837fi
28838
28839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28840{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28841echo "${ECHO_T}$ac_header_compiler" >&6; }
28842
28843# Is the header present?
28844{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28845echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28846cat >conftest.$ac_ext <<_ACEOF
28847/* confdefs.h. */
28848_ACEOF
28849cat confdefs.h >>conftest.$ac_ext
28850cat >>conftest.$ac_ext <<_ACEOF
28851/* end confdefs.h. */
28852#include <opagent.h>
28853_ACEOF
28854if { (ac_try="$ac_cpp conftest.$ac_ext"
28855case "(($ac_try" in
28856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857 *) ac_try_echo=$ac_try;;
28858esac
28859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28861 ac_status=$?
28862 grep -v '^ *+' conftest.er1 >conftest.err
28863 rm -f conftest.er1
28864 cat conftest.err >&5
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); } >/dev/null; then
28867 if test -s conftest.err; then
28868 ac_cpp_err=$ac_c_preproc_warn_flag
28869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28870 else
28871 ac_cpp_err=
28872 fi
28873else
28874 ac_cpp_err=yes
28875fi
28876if test -z "$ac_cpp_err"; then
28877 ac_header_preproc=yes
28878else
28879 echo "$as_me: failed program was:" >&5
28880sed 's/^/| /' conftest.$ac_ext >&5
28881
28882 ac_header_preproc=no
28883fi
28884
28885rm -f conftest.err conftest.$ac_ext
28886{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28887echo "${ECHO_T}$ac_header_preproc" >&6; }
28888
28889# So? What about this header?
28890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28891 yes:no: )
28892 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28893echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28894 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28895echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28896 ac_header_preproc=yes
28897 ;;
28898 no:yes:* )
28899 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28900echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28901 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28902echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28903 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28904echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28905 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28906echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28907 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28908echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28909 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28910echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28911 ( cat <<\_ASBOX
28912## ----------------------------------- ##
28913## Report this to llvmbugs@cs.uiuc.edu ##
28914## ----------------------------------- ##
28915_ASBOX
28916 ) | sed "s/^/$as_me: WARNING: /" >&2
28917 ;;
28918esac
28919{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28920echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28921if test "${ac_cv_header_opagent_h+set}" = set; then
28922 echo $ECHO_N "(cached) $ECHO_C" >&6
28923else
28924 ac_cv_header_opagent_h=$ac_header_preproc
28925fi
28926{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28927echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28928
28929fi
28930if test $ac_cv_header_opagent_h = yes; then
28931 :
28932else
28933
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028934 echo "Error! You need to have opagent.h around."
28935 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028936
28937fi
28938
28939
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028940 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028941
28942else
28943
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028944 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028945
28946
28947fi
28948
28949
28950cat >>confdefs.h <<_ACEOF
28951#define USE_OPROFILE $USE_OPROFILE
28952_ACEOF
28953
28954
28955
Reid Spencer59473af2004-12-25 07:31:29 +000028956
28957
28958
28959
28960
28961ac_header_dirent=no
28962for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28963 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028964{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28965echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028967 echo $ECHO_N "(cached) $ECHO_C" >&6
28968else
28969 cat >conftest.$ac_ext <<_ACEOF
28970/* confdefs.h. */
28971_ACEOF
28972cat confdefs.h >>conftest.$ac_ext
28973cat >>conftest.$ac_ext <<_ACEOF
28974/* end confdefs.h. */
28975#include <sys/types.h>
28976#include <$ac_hdr>
28977
28978int
28979main ()
28980{
28981if ((DIR *) 0)
28982return 0;
28983 ;
28984 return 0;
28985}
28986_ACEOF
28987rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028988if { (ac_try="$ac_compile"
28989case "(($ac_try" in
28990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28991 *) ac_try_echo=$ac_try;;
28992esac
28993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28994 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028995 ac_status=$?
28996 grep -v '^ *+' conftest.er1 >conftest.err
28997 rm -f conftest.er1
28998 cat conftest.err >&5
28999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029000 (exit $ac_status); } &&
29001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29002 { (case "(($ac_try" in
29003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29004 *) ac_try_echo=$ac_try;;
29005esac
29006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29007 (eval "$ac_try") 2>&5
29008 ac_status=$?
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); }; } &&
29011 { ac_try='test -s conftest.$ac_objext'
29012 { (case "(($ac_try" in
29013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29014 *) ac_try_echo=$ac_try;;
29015esac
29016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29017 (eval "$ac_try") 2>&5
29018 ac_status=$?
29019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029021 eval "$as_ac_Header=yes"
29022else
29023 echo "$as_me: failed program was:" >&5
29024sed 's/^/| /' conftest.$ac_ext >&5
29025
Reid Spencera773bd52006-08-04 18:18:08 +000029026 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000029027fi
Reid Spencera773bd52006-08-04 18:18:08 +000029028
29029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029030fi
Reid Spencera773bd52006-08-04 18:18:08 +000029031ac_res=`eval echo '${'$as_ac_Header'}'`
29032 { echo "$as_me:$LINENO: result: $ac_res" >&5
29033echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029034if test `eval echo '${'$as_ac_Header'}'` = yes; then
29035 cat >>confdefs.h <<_ACEOF
29036#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29037_ACEOF
29038
29039ac_header_dirent=$ac_hdr; break
29040fi
29041
29042done
29043# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29044if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000029045 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29046echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029047if test "${ac_cv_search_opendir+set}" = set; then
29048 echo $ECHO_N "(cached) $ECHO_C" >&6
29049else
29050 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029051cat >conftest.$ac_ext <<_ACEOF
29052/* confdefs.h. */
29053_ACEOF
29054cat confdefs.h >>conftest.$ac_ext
29055cat >>conftest.$ac_ext <<_ACEOF
29056/* end confdefs.h. */
29057
Reid Spencera773bd52006-08-04 18:18:08 +000029058/* Override any GCC internal prototype to avoid an error.
29059 Use char because int might match the return type of a GCC
29060 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029061#ifdef __cplusplus
29062extern "C"
29063#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029064char opendir ();
29065int
29066main ()
29067{
Reid Spencera773bd52006-08-04 18:18:08 +000029068return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029069 ;
29070 return 0;
29071}
29072_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029073for ac_lib in '' dir; do
29074 if test -z "$ac_lib"; then
29075 ac_res="none required"
29076 else
29077 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029078 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029079 fi
29080 rm -f conftest.$ac_objext conftest$ac_exeext
29081if { (ac_try="$ac_link"
29082case "(($ac_try" in
29083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29084 *) ac_try_echo=$ac_try;;
29085esac
29086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29087 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029088 ac_status=$?
29089 grep -v '^ *+' conftest.er1 >conftest.err
29090 rm -f conftest.er1
29091 cat conftest.err >&5
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029093 (exit $ac_status); } &&
29094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29095 { (case "(($ac_try" in
29096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097 *) ac_try_echo=$ac_try;;
29098esac
29099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100 (eval "$ac_try") 2>&5
29101 ac_status=$?
29102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103 (exit $ac_status); }; } &&
29104 { ac_try='test -s conftest$ac_exeext'
29105 { (case "(($ac_try" in
29106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29107 *) ac_try_echo=$ac_try;;
29108esac
29109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29110 (eval "$ac_try") 2>&5
29111 ac_status=$?
29112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29113 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029114 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029115else
29116 echo "$as_me: failed program was:" >&5
29117sed 's/^/| /' conftest.$ac_ext >&5
29118
Reid Spencera773bd52006-08-04 18:18:08 +000029119
Reid Spencer59473af2004-12-25 07:31:29 +000029120fi
Reid Spencera773bd52006-08-04 18:18:08 +000029121
Bill Wendlingebcceee2009-04-18 11:20:33 +000029122rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029123 conftest$ac_exeext
29124 if test "${ac_cv_search_opendir+set}" = set; then
29125 break
Reid Spencer59473af2004-12-25 07:31:29 +000029126fi
Reid Spencera773bd52006-08-04 18:18:08 +000029127done
29128if test "${ac_cv_search_opendir+set}" = set; then
29129 :
29130else
29131 ac_cv_search_opendir=no
29132fi
29133rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029134LIBS=$ac_func_search_save_LIBS
29135fi
Reid Spencera773bd52006-08-04 18:18:08 +000029136{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29137echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29138ac_res=$ac_cv_search_opendir
29139if test "$ac_res" != no; then
29140 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029141
29142fi
29143
29144else
Reid Spencera773bd52006-08-04 18:18:08 +000029145 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29146echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029147if test "${ac_cv_search_opendir+set}" = set; then
29148 echo $ECHO_N "(cached) $ECHO_C" >&6
29149else
29150 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029151cat >conftest.$ac_ext <<_ACEOF
29152/* confdefs.h. */
29153_ACEOF
29154cat confdefs.h >>conftest.$ac_ext
29155cat >>conftest.$ac_ext <<_ACEOF
29156/* end confdefs.h. */
29157
Reid Spencera773bd52006-08-04 18:18:08 +000029158/* Override any GCC internal prototype to avoid an error.
29159 Use char because int might match the return type of a GCC
29160 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029161#ifdef __cplusplus
29162extern "C"
29163#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029164char opendir ();
29165int
29166main ()
29167{
Reid Spencera773bd52006-08-04 18:18:08 +000029168return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029169 ;
29170 return 0;
29171}
29172_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029173for ac_lib in '' x; do
29174 if test -z "$ac_lib"; then
29175 ac_res="none required"
29176 else
29177 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029179 fi
29180 rm -f conftest.$ac_objext conftest$ac_exeext
29181if { (ac_try="$ac_link"
29182case "(($ac_try" in
29183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29184 *) ac_try_echo=$ac_try;;
29185esac
29186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29187 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029188 ac_status=$?
29189 grep -v '^ *+' conftest.er1 >conftest.err
29190 rm -f conftest.er1
29191 cat conftest.err >&5
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029193 (exit $ac_status); } &&
29194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29195 { (case "(($ac_try" in
29196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29197 *) ac_try_echo=$ac_try;;
29198esac
29199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29200 (eval "$ac_try") 2>&5
29201 ac_status=$?
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); }; } &&
29204 { ac_try='test -s conftest$ac_exeext'
29205 { (case "(($ac_try" in
29206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29207 *) ac_try_echo=$ac_try;;
29208esac
29209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29210 (eval "$ac_try") 2>&5
29211 ac_status=$?
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029214 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029215else
29216 echo "$as_me: failed program was:" >&5
29217sed 's/^/| /' conftest.$ac_ext >&5
29218
Reid Spencera773bd52006-08-04 18:18:08 +000029219
Reid Spencer59473af2004-12-25 07:31:29 +000029220fi
Reid Spencera773bd52006-08-04 18:18:08 +000029221
Bill Wendlingebcceee2009-04-18 11:20:33 +000029222rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029223 conftest$ac_exeext
29224 if test "${ac_cv_search_opendir+set}" = set; then
29225 break
Reid Spencer59473af2004-12-25 07:31:29 +000029226fi
Reid Spencera773bd52006-08-04 18:18:08 +000029227done
29228if test "${ac_cv_search_opendir+set}" = set; then
29229 :
29230else
29231 ac_cv_search_opendir=no
29232fi
29233rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029234LIBS=$ac_func_search_save_LIBS
29235fi
Reid Spencera773bd52006-08-04 18:18:08 +000029236{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29237echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29238ac_res=$ac_cv_search_opendir
29239if test "$ac_res" != no; then
29240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029241
29242fi
29243
29244fi
29245
Reid Spencera773bd52006-08-04 18:18:08 +000029246{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29247echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029248if test "${ac_cv_header_mmap_anon+set}" = set; then
29249 echo $ECHO_N "(cached) $ECHO_C" >&6
29250else
29251 ac_ext=c
29252ac_cpp='$CPP $CPPFLAGS'
29253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29255ac_compiler_gnu=$ac_cv_c_compiler_gnu
29256
29257 cat >conftest.$ac_ext <<_ACEOF
29258/* confdefs.h. */
29259_ACEOF
29260cat confdefs.h >>conftest.$ac_ext
29261cat >>conftest.$ac_ext <<_ACEOF
29262/* end confdefs.h. */
29263#include <sys/mman.h>
29264#include <unistd.h>
29265#include <fcntl.h>
29266int
29267main ()
29268{
29269mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29270 ;
29271 return 0;
29272}
29273_ACEOF
29274rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029275if { (ac_try="$ac_compile"
29276case "(($ac_try" in
29277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278 *) ac_try_echo=$ac_try;;
29279esac
29280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29281 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029282 ac_status=$?
29283 grep -v '^ *+' conftest.er1 >conftest.err
29284 rm -f conftest.er1
29285 cat conftest.err >&5
29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029287 (exit $ac_status); } &&
29288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29289 { (case "(($ac_try" in
29290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291 *) ac_try_echo=$ac_try;;
29292esac
29293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294 (eval "$ac_try") 2>&5
29295 ac_status=$?
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); }; } &&
29298 { ac_try='test -s conftest.$ac_objext'
29299 { (case "(($ac_try" in
29300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301 *) ac_try_echo=$ac_try;;
29302esac
29303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304 (eval "$ac_try") 2>&5
29305 ac_status=$?
29306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029308 ac_cv_header_mmap_anon=yes
29309else
29310 echo "$as_me: failed program was:" >&5
29311sed 's/^/| /' conftest.$ac_ext >&5
29312
Reid Spencera773bd52006-08-04 18:18:08 +000029313 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000029314fi
Reid Spencera773bd52006-08-04 18:18:08 +000029315
29316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029317 ac_ext=c
29318ac_cpp='$CPP $CPPFLAGS'
29319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29321ac_compiler_gnu=$ac_cv_c_compiler_gnu
29322
29323
29324fi
Reid Spencera773bd52006-08-04 18:18:08 +000029325{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29326echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029327if test "$ac_cv_header_mmap_anon" = yes; then
29328
29329cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000029330#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000029331_ACEOF
29332
29333fi
29334
Reid Spencera773bd52006-08-04 18:18:08 +000029335{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29336echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029337if test "${ac_cv_header_stat_broken+set}" = set; then
29338 echo $ECHO_N "(cached) $ECHO_C" >&6
29339else
29340 cat >conftest.$ac_ext <<_ACEOF
29341/* confdefs.h. */
29342_ACEOF
29343cat confdefs.h >>conftest.$ac_ext
29344cat >>conftest.$ac_ext <<_ACEOF
29345/* end confdefs.h. */
29346#include <sys/types.h>
29347#include <sys/stat.h>
29348
Reid Spencera773bd52006-08-04 18:18:08 +000029349#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029350# if S_ISBLK (S_IFDIR)
29351You lose.
29352# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029353#endif
29354
Reid Spencera773bd52006-08-04 18:18:08 +000029355#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029356# if S_ISBLK (S_IFCHR)
29357You lose.
29358# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029359#endif
29360
Reid Spencera773bd52006-08-04 18:18:08 +000029361#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029362# if S_ISLNK (S_IFREG)
29363You lose.
29364# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029365#endif
29366
Reid Spencera773bd52006-08-04 18:18:08 +000029367#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029368# if S_ISSOCK (S_IFREG)
29369You lose.
29370# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029371#endif
29372
29373_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000029374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29375 $EGREP "You lose" >/dev/null 2>&1; then
29376 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029377else
Bill Wendlingebcceee2009-04-18 11:20:33 +000029378 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029379fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000029380rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029381
Reid Spencer59473af2004-12-25 07:31:29 +000029382fi
Reid Spencera773bd52006-08-04 18:18:08 +000029383{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29384echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029385if test $ac_cv_header_stat_broken = yes; then
29386
29387cat >>confdefs.h <<\_ACEOF
29388#define STAT_MACROS_BROKEN 1
29389_ACEOF
29390
29391fi
29392
Reid Spencera773bd52006-08-04 18:18:08 +000029393{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29394echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029395if test "${ac_cv_header_stdc+set}" = set; then
29396 echo $ECHO_N "(cached) $ECHO_C" >&6
29397else
29398 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029399/* confdefs.h. */
29400_ACEOF
29401cat confdefs.h >>conftest.$ac_ext
29402cat >>conftest.$ac_ext <<_ACEOF
29403/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029404#include <stdlib.h>
29405#include <stdarg.h>
29406#include <string.h>
29407#include <float.h>
29408
John Criswell0c38eaf2003-09-10 15:17:25 +000029409int
29410main ()
29411{
29412
29413 ;
29414 return 0;
29415}
John Criswell7a73b802003-06-30 21:59:07 +000029416_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029417rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029418if { (ac_try="$ac_compile"
29419case "(($ac_try" in
29420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29421 *) ac_try_echo=$ac_try;;
29422esac
29423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29424 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029425 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029426 grep -v '^ *+' conftest.er1 >conftest.err
29427 rm -f conftest.er1
29428 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029430 (exit $ac_status); } &&
29431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29432 { (case "(($ac_try" in
29433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29434 *) ac_try_echo=$ac_try;;
29435esac
29436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29437 (eval "$ac_try") 2>&5
29438 ac_status=$?
29439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29440 (exit $ac_status); }; } &&
29441 { ac_try='test -s conftest.$ac_objext'
29442 { (case "(($ac_try" in
29443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29444 *) ac_try_echo=$ac_try;;
29445esac
29446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29447 (eval "$ac_try") 2>&5
29448 ac_status=$?
29449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029451 ac_cv_header_stdc=yes
29452else
29453 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029454sed 's/^/| /' conftest.$ac_ext >&5
29455
Reid Spencera773bd52006-08-04 18:18:08 +000029456 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000029457fi
Reid Spencera773bd52006-08-04 18:18:08 +000029458
29459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029460
29461if test $ac_cv_header_stdc = yes; then
29462 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29463 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029464/* confdefs.h. */
29465_ACEOF
29466cat confdefs.h >>conftest.$ac_ext
29467cat >>conftest.$ac_ext <<_ACEOF
29468/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029469#include <string.h>
29470
29471_ACEOF
29472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029473 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029474 :
29475else
29476 ac_cv_header_stdc=no
29477fi
29478rm -f conftest*
29479
29480fi
29481
29482if test $ac_cv_header_stdc = yes; then
29483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29484 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029485/* confdefs.h. */
29486_ACEOF
29487cat confdefs.h >>conftest.$ac_ext
29488cat >>conftest.$ac_ext <<_ACEOF
29489/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029490#include <stdlib.h>
29491
29492_ACEOF
29493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029494 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029495 :
29496else
29497 ac_cv_header_stdc=no
29498fi
29499rm -f conftest*
29500
29501fi
29502
29503if test $ac_cv_header_stdc = yes; then
29504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29505 if test "$cross_compiling" = yes; then
29506 :
29507else
29508 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029509/* confdefs.h. */
29510_ACEOF
29511cat confdefs.h >>conftest.$ac_ext
29512cat >>conftest.$ac_ext <<_ACEOF
29513/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029514#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000029515#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000029516#if ((' ' & 0x0FF) == 0x020)
29517# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29518# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29519#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029520# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029521 (('a' <= (c) && (c) <= 'i') \
29522 || ('j' <= (c) && (c) <= 'r') \
29523 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000029524# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29525#endif
29526
29527#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29528int
29529main ()
29530{
29531 int i;
29532 for (i = 0; i < 256; i++)
29533 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000029534 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000029535 return 2;
29536 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029537}
29538_ACEOF
29539rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029540if { (ac_try="$ac_link"
29541case "(($ac_try" in
29542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29543 *) ac_try_echo=$ac_try;;
29544esac
29545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29546 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029547 ac_status=$?
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029550 { (case "(($ac_try" in
29551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29552 *) ac_try_echo=$ac_try;;
29553esac
29554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29555 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029556 ac_status=$?
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); }; }; then
29559 :
29560else
29561 echo "$as_me: program exited with status $ac_status" >&5
29562echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029563sed 's/^/| /' conftest.$ac_ext >&5
29564
John Criswell7a73b802003-06-30 21:59:07 +000029565( exit $ac_status )
29566ac_cv_header_stdc=no
29567fi
Reid Spencera773bd52006-08-04 18:18:08 +000029568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29569fi
29570
29571
John Criswell7a73b802003-06-30 21:59:07 +000029572fi
29573fi
Reid Spencera773bd52006-08-04 18:18:08 +000029574{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29575echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029576if test $ac_cv_header_stdc = yes; then
29577
29578cat >>confdefs.h <<\_ACEOF
29579#define STDC_HEADERS 1
29580_ACEOF
29581
29582fi
29583
Reid Spencera773bd52006-08-04 18:18:08 +000029584{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29585echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029586if test "${ac_cv_header_sys_wait_h+set}" = set; then
29587 echo $ECHO_N "(cached) $ECHO_C" >&6
29588else
29589 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029590/* confdefs.h. */
29591_ACEOF
29592cat confdefs.h >>conftest.$ac_ext
29593cat >>conftest.$ac_ext <<_ACEOF
29594/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029595#include <sys/types.h>
29596#include <sys/wait.h>
29597#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000029598# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000029599#endif
29600#ifndef WIFEXITED
29601# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29602#endif
29603
John Criswell7a73b802003-06-30 21:59:07 +000029604int
29605main ()
29606{
29607 int s;
29608 wait (&s);
29609 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29610 ;
29611 return 0;
29612}
29613_ACEOF
29614rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029615if { (ac_try="$ac_compile"
29616case "(($ac_try" in
29617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29618 *) ac_try_echo=$ac_try;;
29619esac
29620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29621 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029622 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029623 grep -v '^ *+' conftest.er1 >conftest.err
29624 rm -f conftest.er1
29625 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029627 (exit $ac_status); } &&
29628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29629 { (case "(($ac_try" in
29630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29631 *) ac_try_echo=$ac_try;;
29632esac
29633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29634 (eval "$ac_try") 2>&5
29635 ac_status=$?
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); }; } &&
29638 { ac_try='test -s conftest.$ac_objext'
29639 { (case "(($ac_try" in
29640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29641 *) ac_try_echo=$ac_try;;
29642esac
29643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29644 (eval "$ac_try") 2>&5
29645 ac_status=$?
29646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029648 ac_cv_header_sys_wait_h=yes
29649else
29650 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029651sed 's/^/| /' conftest.$ac_ext >&5
29652
Reid Spencera773bd52006-08-04 18:18:08 +000029653 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000029654fi
Reid Spencera773bd52006-08-04 18:18:08 +000029655
29656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029657fi
Reid Spencera773bd52006-08-04 18:18:08 +000029658{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29659echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029660if test $ac_cv_header_sys_wait_h = yes; then
29661
29662cat >>confdefs.h <<\_ACEOF
29663#define HAVE_SYS_WAIT_H 1
29664_ACEOF
29665
29666fi
29667
Reid Spencera773bd52006-08-04 18:18:08 +000029668{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29669echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029670if test "${ac_cv_header_time+set}" = set; then
29671 echo $ECHO_N "(cached) $ECHO_C" >&6
29672else
29673 cat >conftest.$ac_ext <<_ACEOF
29674/* confdefs.h. */
29675_ACEOF
29676cat confdefs.h >>conftest.$ac_ext
29677cat >>conftest.$ac_ext <<_ACEOF
29678/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029679#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029680#include <sys/time.h>
29681#include <time.h>
29682
29683int
29684main ()
29685{
29686if ((struct tm *) 0)
29687return 0;
29688 ;
29689 return 0;
29690}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029691_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029692rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029693if { (ac_try="$ac_compile"
29694case "(($ac_try" in
29695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29696 *) ac_try_echo=$ac_try;;
29697esac
29698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29699 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029700 ac_status=$?
29701 grep -v '^ *+' conftest.er1 >conftest.err
29702 rm -f conftest.er1
29703 cat conftest.err >&5
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029705 (exit $ac_status); } &&
29706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29707 { (case "(($ac_try" in
29708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29709 *) ac_try_echo=$ac_try;;
29710esac
29711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29712 (eval "$ac_try") 2>&5
29713 ac_status=$?
29714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715 (exit $ac_status); }; } &&
29716 { ac_try='test -s conftest.$ac_objext'
29717 { (case "(($ac_try" in
29718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29719 *) ac_try_echo=$ac_try;;
29720esac
29721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29722 (eval "$ac_try") 2>&5
29723 ac_status=$?
29724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029726 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029727else
29728 echo "$as_me: failed program was:" >&5
29729sed 's/^/| /' conftest.$ac_ext >&5
29730
Reid Spencera773bd52006-08-04 18:18:08 +000029731 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029732fi
Reid Spencera773bd52006-08-04 18:18:08 +000029733
29734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029735fi
Reid Spencera773bd52006-08-04 18:18:08 +000029736{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29737echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029738if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029739
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029740cat >>confdefs.h <<\_ACEOF
29741#define TIME_WITH_SYS_TIME 1
29742_ACEOF
29743
29744fi
29745
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029746
Reid Spencer59473af2004-12-25 07:31:29 +000029747
29748
29749
29750
29751
29752
29753for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29754do
29755as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029756if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029760 echo $ECHO_N "(cached) $ECHO_C" >&6
29761fi
Reid Spencera773bd52006-08-04 18:18:08 +000029762ac_res=`eval echo '${'$as_ac_Header'}'`
29763 { echo "$as_me:$LINENO: result: $ac_res" >&5
29764echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029765else
29766 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029767{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29768echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029769cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029770/* confdefs.h. */
29771_ACEOF
29772cat confdefs.h >>conftest.$ac_ext
29773cat >>conftest.$ac_ext <<_ACEOF
29774/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029775$ac_includes_default
29776#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029777_ACEOF
29778rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029779if { (ac_try="$ac_compile"
29780case "(($ac_try" in
29781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29782 *) ac_try_echo=$ac_try;;
29783esac
29784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29785 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029786 ac_status=$?
29787 grep -v '^ *+' conftest.er1 >conftest.err
29788 rm -f conftest.er1
29789 cat conftest.err >&5
29790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029791 (exit $ac_status); } &&
29792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29793 { (case "(($ac_try" in
29794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29795 *) ac_try_echo=$ac_try;;
29796esac
29797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29798 (eval "$ac_try") 2>&5
29799 ac_status=$?
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); }; } &&
29802 { ac_try='test -s conftest.$ac_objext'
29803 { (case "(($ac_try" in
29804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29805 *) ac_try_echo=$ac_try;;
29806esac
29807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29808 (eval "$ac_try") 2>&5
29809 ac_status=$?
29810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029812 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029813else
29814 echo "$as_me: failed program was:" >&5
29815sed 's/^/| /' conftest.$ac_ext >&5
29816
Reid Spencera773bd52006-08-04 18:18:08 +000029817 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029818fi
Reid Spencera773bd52006-08-04 18:18:08 +000029819
29820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29821{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29822echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029823
Reid Spencer59473af2004-12-25 07:31:29 +000029824# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029825{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29826echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029827cat >conftest.$ac_ext <<_ACEOF
29828/* confdefs.h. */
29829_ACEOF
29830cat confdefs.h >>conftest.$ac_ext
29831cat >>conftest.$ac_ext <<_ACEOF
29832/* end confdefs.h. */
29833#include <$ac_header>
29834_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029835if { (ac_try="$ac_cpp conftest.$ac_ext"
29836case "(($ac_try" in
29837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838 *) ac_try_echo=$ac_try;;
29839esac
29840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029842 ac_status=$?
29843 grep -v '^ *+' conftest.er1 >conftest.err
29844 rm -f conftest.er1
29845 cat conftest.err >&5
29846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029847 (exit $ac_status); } >/dev/null; then
29848 if test -s conftest.err; then
29849 ac_cpp_err=$ac_c_preproc_warn_flag
29850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29851 else
29852 ac_cpp_err=
29853 fi
29854else
29855 ac_cpp_err=yes
29856fi
29857if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029858 ac_header_preproc=yes
29859else
29860 echo "$as_me: failed program was:" >&5
29861sed 's/^/| /' conftest.$ac_ext >&5
29862
29863 ac_header_preproc=no
29864fi
Reid Spencera773bd52006-08-04 18:18:08 +000029865
Reid Spencer59473af2004-12-25 07:31:29 +000029866rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029867{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29868echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029869
29870# So? What about this header?
29871case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29872 yes:no: )
29873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29874echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29876echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29877 ac_header_preproc=yes
29878 ;;
29879 no:yes:* )
29880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29881echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29883echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29885echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29887echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29891echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029892 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029893## ----------------------------------- ##
29894## Report this to llvmbugs@cs.uiuc.edu ##
29895## ----------------------------------- ##
29896_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029897 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029898 ;;
29899esac
Reid Spencera773bd52006-08-04 18:18:08 +000029900{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029903 echo $ECHO_N "(cached) $ECHO_C" >&6
29904else
29905 eval "$as_ac_Header=\$ac_header_preproc"
29906fi
Reid Spencera773bd52006-08-04 18:18:08 +000029907ac_res=`eval echo '${'$as_ac_Header'}'`
29908 { echo "$as_me:$LINENO: result: $ac_res" >&5
29909echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029910
29911fi
Reid Spencer59473af2004-12-25 07:31:29 +000029912if test `eval echo '${'$as_ac_Header'}'` = yes; then
29913 cat >>confdefs.h <<_ACEOF
29914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029915_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029916
29917fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029918
Reid Spencer59473af2004-12-25 07:31:29 +000029919done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029920
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029921
29922
Reid Spencer59473af2004-12-25 07:31:29 +000029923
29924
29925
29926
Douglas Gregor071d73d2009-05-18 17:21:34 +000029927for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000029928do
29929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029934 echo $ECHO_N "(cached) $ECHO_C" >&6
29935fi
Reid Spencera773bd52006-08-04 18:18:08 +000029936ac_res=`eval echo '${'$as_ac_Header'}'`
29937 { echo "$as_me:$LINENO: result: $ac_res" >&5
29938echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029939else
29940 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029941{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29942echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029943cat >conftest.$ac_ext <<_ACEOF
29944/* confdefs.h. */
29945_ACEOF
29946cat confdefs.h >>conftest.$ac_ext
29947cat >>conftest.$ac_ext <<_ACEOF
29948/* end confdefs.h. */
29949$ac_includes_default
29950#include <$ac_header>
29951_ACEOF
29952rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029953if { (ac_try="$ac_compile"
29954case "(($ac_try" in
29955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29956 *) ac_try_echo=$ac_try;;
29957esac
29958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29959 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029960 ac_status=$?
29961 grep -v '^ *+' conftest.er1 >conftest.err
29962 rm -f conftest.er1
29963 cat conftest.err >&5
29964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029965 (exit $ac_status); } &&
29966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29967 { (case "(($ac_try" in
29968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29969 *) ac_try_echo=$ac_try;;
29970esac
29971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29972 (eval "$ac_try") 2>&5
29973 ac_status=$?
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); }; } &&
29976 { ac_try='test -s conftest.$ac_objext'
29977 { (case "(($ac_try" in
29978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29979 *) ac_try_echo=$ac_try;;
29980esac
29981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29982 (eval "$ac_try") 2>&5
29983 ac_status=$?
29984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029986 ac_header_compiler=yes
29987else
29988 echo "$as_me: failed program was:" >&5
29989sed 's/^/| /' conftest.$ac_ext >&5
29990
Reid Spencera773bd52006-08-04 18:18:08 +000029991 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029992fi
Reid Spencera773bd52006-08-04 18:18:08 +000029993
29994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29995{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29996echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029997
29998# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029999{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30000echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030001cat >conftest.$ac_ext <<_ACEOF
30002/* confdefs.h. */
30003_ACEOF
30004cat confdefs.h >>conftest.$ac_ext
30005cat >>conftest.$ac_ext <<_ACEOF
30006/* end confdefs.h. */
30007#include <$ac_header>
30008_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030009if { (ac_try="$ac_cpp conftest.$ac_ext"
30010case "(($ac_try" in
30011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012 *) ac_try_echo=$ac_try;;
30013esac
30014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030016 ac_status=$?
30017 grep -v '^ *+' conftest.er1 >conftest.err
30018 rm -f conftest.er1
30019 cat conftest.err >&5
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030021 (exit $ac_status); } >/dev/null; then
30022 if test -s conftest.err; then
30023 ac_cpp_err=$ac_c_preproc_warn_flag
30024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30025 else
30026 ac_cpp_err=
30027 fi
30028else
30029 ac_cpp_err=yes
30030fi
30031if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000030032 ac_header_preproc=yes
30033else
30034 echo "$as_me: failed program was:" >&5
30035sed 's/^/| /' conftest.$ac_ext >&5
30036
30037 ac_header_preproc=no
30038fi
Reid Spencera773bd52006-08-04 18:18:08 +000030039
Reid Spencer59473af2004-12-25 07:31:29 +000030040rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030041{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30042echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030043
30044# So? What about this header?
30045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30046 yes:no: )
30047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30048echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30050echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30051 ac_header_preproc=yes
30052 ;;
30053 no:yes:* )
30054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30055echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30057echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30059echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30061echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30063echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30065echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030066 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030067## ----------------------------------- ##
30068## Report this to llvmbugs@cs.uiuc.edu ##
30069## ----------------------------------- ##
30070_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030071 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030072 ;;
30073esac
Reid Spencera773bd52006-08-04 18:18:08 +000030074{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030077 echo $ECHO_N "(cached) $ECHO_C" >&6
30078else
30079 eval "$as_ac_Header=\$ac_header_preproc"
30080fi
Reid Spencera773bd52006-08-04 18:18:08 +000030081ac_res=`eval echo '${'$as_ac_Header'}'`
30082 { echo "$as_me:$LINENO: result: $ac_res" >&5
30083echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030084
30085fi
30086if test `eval echo '${'$as_ac_Header'}'` = yes; then
30087 cat >>confdefs.h <<_ACEOF
30088#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30089_ACEOF
30090
30091fi
30092
30093done
30094
30095
Douglas Gregor071d73d2009-05-18 17:21:34 +000030096
30097for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000030098do
30099as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30104 echo $ECHO_N "(cached) $ECHO_C" >&6
30105fi
30106ac_res=`eval echo '${'$as_ac_Header'}'`
30107 { echo "$as_me:$LINENO: result: $ac_res" >&5
30108echo "${ECHO_T}$ac_res" >&6; }
30109else
30110 # Is the header compilable?
30111{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30112echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30113cat >conftest.$ac_ext <<_ACEOF
30114/* confdefs.h. */
30115_ACEOF
30116cat confdefs.h >>conftest.$ac_ext
30117cat >>conftest.$ac_ext <<_ACEOF
30118/* end confdefs.h. */
30119$ac_includes_default
30120#include <$ac_header>
30121_ACEOF
30122rm -f conftest.$ac_objext
30123if { (ac_try="$ac_compile"
30124case "(($ac_try" in
30125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126 *) ac_try_echo=$ac_try;;
30127esac
30128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129 (eval "$ac_compile") 2>conftest.er1
30130 ac_status=$?
30131 grep -v '^ *+' conftest.er1 >conftest.err
30132 rm -f conftest.er1
30133 cat conftest.err >&5
30134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030135 (exit $ac_status); } &&
30136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30137 { (case "(($ac_try" in
30138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30139 *) ac_try_echo=$ac_try;;
30140esac
30141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30142 (eval "$ac_try") 2>&5
30143 ac_status=$?
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145 (exit $ac_status); }; } &&
30146 { ac_try='test -s conftest.$ac_objext'
30147 { (case "(($ac_try" in
30148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30149 *) ac_try_echo=$ac_try;;
30150esac
30151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30152 (eval "$ac_try") 2>&5
30153 ac_status=$?
30154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030156 ac_header_compiler=yes
30157else
30158 echo "$as_me: failed program was:" >&5
30159sed 's/^/| /' conftest.$ac_ext >&5
30160
30161 ac_header_compiler=no
30162fi
30163
30164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30165{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30166echo "${ECHO_T}$ac_header_compiler" >&6; }
30167
30168# Is the header present?
30169{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30170echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30171cat >conftest.$ac_ext <<_ACEOF
30172/* confdefs.h. */
30173_ACEOF
30174cat confdefs.h >>conftest.$ac_ext
30175cat >>conftest.$ac_ext <<_ACEOF
30176/* end confdefs.h. */
30177#include <$ac_header>
30178_ACEOF
30179if { (ac_try="$ac_cpp conftest.$ac_ext"
30180case "(($ac_try" in
30181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30182 *) ac_try_echo=$ac_try;;
30183esac
30184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30186 ac_status=$?
30187 grep -v '^ *+' conftest.er1 >conftest.err
30188 rm -f conftest.er1
30189 cat conftest.err >&5
30190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030191 (exit $ac_status); } >/dev/null; then
30192 if test -s conftest.err; then
30193 ac_cpp_err=$ac_c_preproc_warn_flag
30194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30195 else
30196 ac_cpp_err=
30197 fi
30198else
30199 ac_cpp_err=yes
30200fi
30201if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030202 ac_header_preproc=yes
30203else
30204 echo "$as_me: failed program was:" >&5
30205sed 's/^/| /' conftest.$ac_ext >&5
30206
30207 ac_header_preproc=no
30208fi
30209
30210rm -f conftest.err conftest.$ac_ext
30211{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30212echo "${ECHO_T}$ac_header_preproc" >&6; }
30213
30214# So? What about this header?
30215case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30216 yes:no: )
30217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30218echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30220echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30221 ac_header_preproc=yes
30222 ;;
30223 no:yes:* )
30224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30225echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30227echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30228 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30229echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30230 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30231echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30233echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30234 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30235echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30236 ( cat <<\_ASBOX
30237## ----------------------------------- ##
30238## Report this to llvmbugs@cs.uiuc.edu ##
30239## ----------------------------------- ##
30240_ASBOX
30241 ) | sed "s/^/$as_me: WARNING: /" >&2
30242 ;;
30243esac
30244{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30247 echo $ECHO_N "(cached) $ECHO_C" >&6
30248else
30249 eval "$as_ac_Header=\$ac_header_preproc"
30250fi
30251ac_res=`eval echo '${'$as_ac_Header'}'`
30252 { echo "$as_me:$LINENO: result: $ac_res" >&5
30253echo "${ECHO_T}$ac_res" >&6; }
30254
30255fi
30256if test `eval echo '${'$as_ac_Header'}'` = yes; then
30257 cat >>confdefs.h <<_ACEOF
30258#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30259_ACEOF
30260
30261fi
30262
30263done
Reid Spencer59473af2004-12-25 07:31:29 +000030264
30265
30266
30267
Reid Spencerbe3e4192007-08-17 05:45:26 +000030268
30269for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030270do
30271as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030276 echo $ECHO_N "(cached) $ECHO_C" >&6
30277fi
Reid Spencera773bd52006-08-04 18:18:08 +000030278ac_res=`eval echo '${'$as_ac_Header'}'`
30279 { echo "$as_me:$LINENO: result: $ac_res" >&5
30280echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030281else
30282 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030283{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30284echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030285cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030286/* confdefs.h. */
30287_ACEOF
30288cat confdefs.h >>conftest.$ac_ext
30289cat >>conftest.$ac_ext <<_ACEOF
30290/* end confdefs.h. */
30291$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030292#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030293_ACEOF
30294rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030295if { (ac_try="$ac_compile"
30296case "(($ac_try" in
30297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30298 *) ac_try_echo=$ac_try;;
30299esac
30300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30301 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030302 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030303 grep -v '^ *+' conftest.er1 >conftest.err
30304 rm -f conftest.er1
30305 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030307 (exit $ac_status); } &&
30308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30309 { (case "(($ac_try" in
30310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30311 *) ac_try_echo=$ac_try;;
30312esac
30313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30314 (eval "$ac_try") 2>&5
30315 ac_status=$?
30316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317 (exit $ac_status); }; } &&
30318 { ac_try='test -s conftest.$ac_objext'
30319 { (case "(($ac_try" in
30320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30321 *) ac_try_echo=$ac_try;;
30322esac
30323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30324 (eval "$ac_try") 2>&5
30325 ac_status=$?
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030328 ac_header_compiler=yes
30329else
30330 echo "$as_me: failed program was:" >&5
30331sed 's/^/| /' conftest.$ac_ext >&5
30332
Reid Spencera773bd52006-08-04 18:18:08 +000030333 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030334fi
Reid Spencera773bd52006-08-04 18:18:08 +000030335
30336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30337{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30338echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030339
30340# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030341{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30342echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030343cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030344/* confdefs.h. */
30345_ACEOF
30346cat confdefs.h >>conftest.$ac_ext
30347cat >>conftest.$ac_ext <<_ACEOF
30348/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030349#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030350_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030351if { (ac_try="$ac_cpp conftest.$ac_ext"
30352case "(($ac_try" in
30353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30354 *) ac_try_echo=$ac_try;;
30355esac
30356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030358 ac_status=$?
30359 grep -v '^ *+' conftest.er1 >conftest.err
30360 rm -f conftest.er1
30361 cat conftest.err >&5
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030363 (exit $ac_status); } >/dev/null; then
30364 if test -s conftest.err; then
30365 ac_cpp_err=$ac_c_preproc_warn_flag
30366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30367 else
30368 ac_cpp_err=
30369 fi
30370else
30371 ac_cpp_err=yes
30372fi
30373if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030374 ac_header_preproc=yes
30375else
30376 echo "$as_me: failed program was:" >&5
30377sed 's/^/| /' conftest.$ac_ext >&5
30378
30379 ac_header_preproc=no
30380fi
Reid Spencera773bd52006-08-04 18:18:08 +000030381
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030382rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030383{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30384echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030385
30386# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030387case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30388 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30390echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30392echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030393 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030394 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030395 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30397echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30399echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30401echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30403echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30405echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30407echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030408 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030409## ----------------------------------- ##
30410## Report this to llvmbugs@cs.uiuc.edu ##
30411## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030412_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030413 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030414 ;;
30415esac
Reid Spencera773bd52006-08-04 18:18:08 +000030416{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30418if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030419 echo $ECHO_N "(cached) $ECHO_C" >&6
30420else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030421 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030422fi
Reid Spencera773bd52006-08-04 18:18:08 +000030423ac_res=`eval echo '${'$as_ac_Header'}'`
30424 { echo "$as_me:$LINENO: result: $ac_res" >&5
30425echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030426
30427fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030428if test `eval echo '${'$as_ac_Header'}'` = yes; then
30429 cat >>confdefs.h <<_ACEOF
30430#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000030431_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000030432
30433fi
John Criswell7ed43ad2004-07-19 16:12:29 +000030434
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030435done
30436
John Criswell7ed43ad2004-07-19 16:12:29 +000030437
Reid Spencercdb08a32006-06-05 16:11:07 +000030438
Reid Spencera6d990a2006-09-14 06:17:21 +000030439
Douglas Gregor01746742009-05-11 18:05:52 +000030440
30441for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000030442do
30443as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030448 echo $ECHO_N "(cached) $ECHO_C" >&6
30449fi
Reid Spencera773bd52006-08-04 18:18:08 +000030450ac_res=`eval echo '${'$as_ac_Header'}'`
30451 { echo "$as_me:$LINENO: result: $ac_res" >&5
30452echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030453else
30454 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030455{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30456echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030457cat >conftest.$ac_ext <<_ACEOF
30458/* confdefs.h. */
30459_ACEOF
30460cat confdefs.h >>conftest.$ac_ext
30461cat >>conftest.$ac_ext <<_ACEOF
30462/* end confdefs.h. */
30463$ac_includes_default
30464#include <$ac_header>
30465_ACEOF
30466rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030467if { (ac_try="$ac_compile"
30468case "(($ac_try" in
30469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30470 *) ac_try_echo=$ac_try;;
30471esac
30472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30473 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030474 ac_status=$?
30475 grep -v '^ *+' conftest.er1 >conftest.err
30476 rm -f conftest.er1
30477 cat conftest.err >&5
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030479 (exit $ac_status); } &&
30480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30481 { (case "(($ac_try" in
30482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483 *) ac_try_echo=$ac_try;;
30484esac
30485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486 (eval "$ac_try") 2>&5
30487 ac_status=$?
30488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); }; } &&
30490 { ac_try='test -s conftest.$ac_objext'
30491 { (case "(($ac_try" in
30492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493 *) ac_try_echo=$ac_try;;
30494esac
30495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496 (eval "$ac_try") 2>&5
30497 ac_status=$?
30498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030500 ac_header_compiler=yes
30501else
30502 echo "$as_me: failed program was:" >&5
30503sed 's/^/| /' conftest.$ac_ext >&5
30504
Reid Spencera773bd52006-08-04 18:18:08 +000030505 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000030506fi
Reid Spencera773bd52006-08-04 18:18:08 +000030507
30508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30509{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30510echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030511
30512# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030513{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30514echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030515cat >conftest.$ac_ext <<_ACEOF
30516/* confdefs.h. */
30517_ACEOF
30518cat confdefs.h >>conftest.$ac_ext
30519cat >>conftest.$ac_ext <<_ACEOF
30520/* end confdefs.h. */
30521#include <$ac_header>
30522_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030523if { (ac_try="$ac_cpp conftest.$ac_ext"
30524case "(($ac_try" in
30525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30526 *) ac_try_echo=$ac_try;;
30527esac
30528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030530 ac_status=$?
30531 grep -v '^ *+' conftest.er1 >conftest.err
30532 rm -f conftest.er1
30533 cat conftest.err >&5
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030535 (exit $ac_status); } >/dev/null; then
30536 if test -s conftest.err; then
30537 ac_cpp_err=$ac_c_preproc_warn_flag
30538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30539 else
30540 ac_cpp_err=
30541 fi
30542else
30543 ac_cpp_err=yes
30544fi
30545if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000030546 ac_header_preproc=yes
30547else
30548 echo "$as_me: failed program was:" >&5
30549sed 's/^/| /' conftest.$ac_ext >&5
30550
30551 ac_header_preproc=no
30552fi
Reid Spencera773bd52006-08-04 18:18:08 +000030553
Chris Lattner0b142592005-11-14 06:57:34 +000030554rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030555{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30556echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030557
30558# So? What about this header?
30559case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30560 yes:no: )
30561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30562echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30564echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30565 ac_header_preproc=yes
30566 ;;
30567 no:yes:* )
30568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30569echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30571echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30573echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30575echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30577echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30579echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030580 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000030581## ----------------------------------- ##
30582## Report this to llvmbugs@cs.uiuc.edu ##
30583## ----------------------------------- ##
30584_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030585 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000030586 ;;
30587esac
Reid Spencera773bd52006-08-04 18:18:08 +000030588{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030591 echo $ECHO_N "(cached) $ECHO_C" >&6
30592else
30593 eval "$as_ac_Header=\$ac_header_preproc"
30594fi
Reid Spencera773bd52006-08-04 18:18:08 +000030595ac_res=`eval echo '${'$as_ac_Header'}'`
30596 { echo "$as_me:$LINENO: result: $ac_res" >&5
30597echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030598
30599fi
30600if test `eval echo '${'$as_ac_Header'}'` = yes; then
30601 cat >>confdefs.h <<_ACEOF
30602#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30603_ACEOF
30604
30605fi
30606
30607done
30608
Reid Spencer0a262ba2005-08-24 10:07:20 +000030609if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030610
30611for ac_header in pthread.h
30612do
30613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030618 echo $ECHO_N "(cached) $ECHO_C" >&6
30619fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030620ac_res=`eval echo '${'$as_ac_Header'}'`
30621 { echo "$as_me:$LINENO: result: $ac_res" >&5
30622echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030623else
30624 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030625{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030627cat >conftest.$ac_ext <<_ACEOF
30628/* confdefs.h. */
30629_ACEOF
30630cat confdefs.h >>conftest.$ac_ext
30631cat >>conftest.$ac_ext <<_ACEOF
30632/* end confdefs.h. */
30633$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000030634#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030635_ACEOF
30636rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030637if { (ac_try="$ac_compile"
30638case "(($ac_try" in
30639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30640 *) ac_try_echo=$ac_try;;
30641esac
30642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30643 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030644 ac_status=$?
30645 grep -v '^ *+' conftest.er1 >conftest.err
30646 rm -f conftest.er1
30647 cat conftest.err >&5
30648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030649 (exit $ac_status); } &&
30650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30651 { (case "(($ac_try" in
30652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30653 *) ac_try_echo=$ac_try;;
30654esac
30655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30656 (eval "$ac_try") 2>&5
30657 ac_status=$?
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659 (exit $ac_status); }; } &&
30660 { ac_try='test -s conftest.$ac_objext'
30661 { (case "(($ac_try" in
30662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30663 *) ac_try_echo=$ac_try;;
30664esac
30665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30666 (eval "$ac_try") 2>&5
30667 ac_status=$?
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030670 ac_header_compiler=yes
30671else
30672 echo "$as_me: failed program was:" >&5
30673sed 's/^/| /' conftest.$ac_ext >&5
30674
Reid Spencera773bd52006-08-04 18:18:08 +000030675 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000030676fi
Reid Spencera773bd52006-08-04 18:18:08 +000030677
30678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30679{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30680echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030681
30682# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030683{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030685cat >conftest.$ac_ext <<_ACEOF
30686/* confdefs.h. */
30687_ACEOF
30688cat confdefs.h >>conftest.$ac_ext
30689cat >>conftest.$ac_ext <<_ACEOF
30690/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000030691#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030692_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030693if { (ac_try="$ac_cpp conftest.$ac_ext"
30694case "(($ac_try" in
30695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30696 *) ac_try_echo=$ac_try;;
30697esac
30698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030700 ac_status=$?
30701 grep -v '^ *+' conftest.er1 >conftest.err
30702 rm -f conftest.er1
30703 cat conftest.err >&5
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030705 (exit $ac_status); } >/dev/null; then
30706 if test -s conftest.err; then
30707 ac_cpp_err=$ac_c_preproc_warn_flag
30708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30709 else
30710 ac_cpp_err=
30711 fi
30712else
30713 ac_cpp_err=yes
30714fi
30715if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030716 ac_header_preproc=yes
30717else
30718 echo "$as_me: failed program was:" >&5
30719sed 's/^/| /' conftest.$ac_ext >&5
30720
30721 ac_header_preproc=no
30722fi
Reid Spencera773bd52006-08-04 18:18:08 +000030723
Reid Spencer0a262ba2005-08-24 10:07:20 +000030724rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030725{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30726echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030727
30728# So? What about this header?
30729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30730 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30732echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30734echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030735 ac_header_preproc=yes
30736 ;;
30737 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30739echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30741echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30743echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30745echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30749echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030750 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030751## ----------------------------------- ##
30752## Report this to llvmbugs@cs.uiuc.edu ##
30753## ----------------------------------- ##
30754_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030755 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030756 ;;
30757esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030758{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030761 echo $ECHO_N "(cached) $ECHO_C" >&6
30762else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030763 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030764fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030765ac_res=`eval echo '${'$as_ac_Header'}'`
30766 { echo "$as_me:$LINENO: result: $ac_res" >&5
30767echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030768
30769fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030770if test `eval echo '${'$as_ac_Header'}'` = yes; then
30771 cat >>confdefs.h <<_ACEOF
30772#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30773_ACEOF
30774 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030775
30776else
30777 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030778
30779fi
30780
Reid Spencerbe3e4192007-08-17 05:45:26 +000030781done
Reid Spencer1000b732006-12-01 00:37:14 +000030782
30783else
30784 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030785
30786fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030787
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030788if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030789
30790
30791for ac_header in ffi.h ffi/ffi.h
30792do
30793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30797if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30798 echo $ECHO_N "(cached) $ECHO_C" >&6
30799fi
30800ac_res=`eval echo '${'$as_ac_Header'}'`
30801 { echo "$as_me:$LINENO: result: $ac_res" >&5
30802echo "${ECHO_T}$ac_res" >&6; }
30803else
30804 # Is the header compilable?
30805{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30806echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30807cat >conftest.$ac_ext <<_ACEOF
30808/* confdefs.h. */
30809_ACEOF
30810cat confdefs.h >>conftest.$ac_ext
30811cat >>conftest.$ac_ext <<_ACEOF
30812/* end confdefs.h. */
30813$ac_includes_default
30814#include <$ac_header>
30815_ACEOF
30816rm -f conftest.$ac_objext
30817if { (ac_try="$ac_compile"
30818case "(($ac_try" in
30819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820 *) ac_try_echo=$ac_try;;
30821esac
30822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823 (eval "$ac_compile") 2>conftest.er1
30824 ac_status=$?
30825 grep -v '^ *+' conftest.er1 >conftest.err
30826 rm -f conftest.er1
30827 cat conftest.err >&5
30828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030829 (exit $ac_status); } &&
30830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30831 { (case "(($ac_try" in
30832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30833 *) ac_try_echo=$ac_try;;
30834esac
30835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30836 (eval "$ac_try") 2>&5
30837 ac_status=$?
30838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30839 (exit $ac_status); }; } &&
30840 { ac_try='test -s conftest.$ac_objext'
30841 { (case "(($ac_try" in
30842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30843 *) ac_try_echo=$ac_try;;
30844esac
30845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30846 (eval "$ac_try") 2>&5
30847 ac_status=$?
30848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30849 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030850 ac_header_compiler=yes
30851else
30852 echo "$as_me: failed program was:" >&5
30853sed 's/^/| /' conftest.$ac_ext >&5
30854
30855 ac_header_compiler=no
30856fi
30857
30858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30859{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30860echo "${ECHO_T}$ac_header_compiler" >&6; }
30861
30862# Is the header present?
30863{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30864echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30865cat >conftest.$ac_ext <<_ACEOF
30866/* confdefs.h. */
30867_ACEOF
30868cat confdefs.h >>conftest.$ac_ext
30869cat >>conftest.$ac_ext <<_ACEOF
30870/* end confdefs.h. */
30871#include <$ac_header>
30872_ACEOF
30873if { (ac_try="$ac_cpp conftest.$ac_ext"
30874case "(($ac_try" in
30875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30876 *) ac_try_echo=$ac_try;;
30877esac
30878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30880 ac_status=$?
30881 grep -v '^ *+' conftest.er1 >conftest.err
30882 rm -f conftest.er1
30883 cat conftest.err >&5
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030885 (exit $ac_status); } >/dev/null; then
30886 if test -s conftest.err; then
30887 ac_cpp_err=$ac_c_preproc_warn_flag
30888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30889 else
30890 ac_cpp_err=
30891 fi
30892else
30893 ac_cpp_err=yes
30894fi
30895if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030896 ac_header_preproc=yes
30897else
30898 echo "$as_me: failed program was:" >&5
30899sed 's/^/| /' conftest.$ac_ext >&5
30900
30901 ac_header_preproc=no
30902fi
30903
30904rm -f conftest.err conftest.$ac_ext
30905{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30906echo "${ECHO_T}$ac_header_preproc" >&6; }
30907
30908# So? What about this header?
30909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30910 yes:no: )
30911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30912echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30914echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30915 ac_header_preproc=yes
30916 ;;
30917 no:yes:* )
30918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30919echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30921echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30923echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30925echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30929echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30930 ( cat <<\_ASBOX
30931## ----------------------------------- ##
30932## Report this to llvmbugs@cs.uiuc.edu ##
30933## ----------------------------------- ##
30934_ASBOX
30935 ) | sed "s/^/$as_me: WARNING: /" >&2
30936 ;;
30937esac
30938{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30941 echo $ECHO_N "(cached) $ECHO_C" >&6
30942else
30943 eval "$as_ac_Header=\$ac_header_preproc"
30944fi
30945ac_res=`eval echo '${'$as_ac_Header'}'`
30946 { echo "$as_me:$LINENO: result: $ac_res" >&5
30947echo "${ECHO_T}$ac_res" >&6; }
30948
30949fi
30950if test `eval echo '${'$as_ac_Header'}'` = yes; then
30951 cat >>confdefs.h <<_ACEOF
30952#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30953_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030954
30955fi
30956
30957done
30958
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030959fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030960
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030961
Reid Spencer8085cff2005-01-16 02:58:39 +000030962
Reid Spencerb2ed05262006-11-03 18:04:08 +000030963 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30964echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30965if test "${ac_cv_huge_val_sanity+set}" = set; then
30966 echo $ECHO_N "(cached) $ECHO_C" >&6
30967else
30968
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030969 ac_ext=cpp
30970ac_cpp='$CXXCPP $CPPFLAGS'
30971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000030974
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030975 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000030976 if test "$cross_compiling" = yes; then
30977 ac_cv_huge_val_sanity=yes
30978else
30979 cat >conftest.$ac_ext <<_ACEOF
30980/* confdefs.h. */
30981_ACEOF
30982cat confdefs.h >>conftest.$ac_ext
30983cat >>conftest.$ac_ext <<_ACEOF
30984/* end confdefs.h. */
30985#include <math.h>
30986int
30987main ()
30988{
30989double x = HUGE_VAL; return x != x;
30990 ;
30991 return 0;
30992}
30993_ACEOF
30994rm -f conftest$ac_exeext
30995if { (ac_try="$ac_link"
30996case "(($ac_try" in
30997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30998 *) ac_try_echo=$ac_try;;
30999esac
31000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31001 (eval "$ac_link") 2>&5
31002 ac_status=$?
31003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31005 { (case "(($ac_try" in
31006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31007 *) ac_try_echo=$ac_try;;
31008esac
31009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31010 (eval "$ac_try") 2>&5
31011 ac_status=$?
31012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31013 (exit $ac_status); }; }; then
31014 ac_cv_huge_val_sanity=yes
31015else
31016 echo "$as_me: program exited with status $ac_status" >&5
31017echo "$as_me: failed program was:" >&5
31018sed 's/^/| /' conftest.$ac_ext >&5
31019
31020( exit $ac_status )
31021ac_cv_huge_val_sanity=no
31022fi
31023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31024fi
31025
31026
31027 ac_ext=c
31028ac_cpp='$CPP $CPPFLAGS'
31029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31031ac_compiler_gnu=$ac_cv_c_compiler_gnu
31032
31033
31034fi
31035{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31036echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31037 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31038
31039
Reid Spencera773bd52006-08-04 18:18:08 +000031040{ echo "$as_me:$LINENO: checking for pid_t" >&5
31041echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031042if test "${ac_cv_type_pid_t+set}" = set; then
31043 echo $ECHO_N "(cached) $ECHO_C" >&6
31044else
31045 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031046/* confdefs.h. */
31047_ACEOF
31048cat confdefs.h >>conftest.$ac_ext
31049cat >>conftest.$ac_ext <<_ACEOF
31050/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031051$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031052typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031053int
31054main ()
31055{
Reid Spencera773bd52006-08-04 18:18:08 +000031056if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031057 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031058if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031059 return 0;
31060 ;
31061 return 0;
31062}
31063_ACEOF
31064rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031065if { (ac_try="$ac_compile"
31066case "(($ac_try" in
31067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31068 *) ac_try_echo=$ac_try;;
31069esac
31070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31071 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031072 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031073 grep -v '^ *+' conftest.er1 >conftest.err
31074 rm -f conftest.er1
31075 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031077 (exit $ac_status); } &&
31078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31079 { (case "(($ac_try" in
31080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31081 *) ac_try_echo=$ac_try;;
31082esac
31083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31084 (eval "$ac_try") 2>&5
31085 ac_status=$?
31086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087 (exit $ac_status); }; } &&
31088 { ac_try='test -s conftest.$ac_objext'
31089 { (case "(($ac_try" in
31090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31091 *) ac_try_echo=$ac_try;;
31092esac
31093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31094 (eval "$ac_try") 2>&5
31095 ac_status=$?
31096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31097 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031098 ac_cv_type_pid_t=yes
31099else
31100 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031101sed 's/^/| /' conftest.$ac_ext >&5
31102
Reid Spencera773bd52006-08-04 18:18:08 +000031103 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031104fi
Reid Spencera773bd52006-08-04 18:18:08 +000031105
31106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031107fi
Reid Spencera773bd52006-08-04 18:18:08 +000031108{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31109echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031110if test $ac_cv_type_pid_t = yes; then
31111 :
31112else
31113
31114cat >>confdefs.h <<_ACEOF
31115#define pid_t int
31116_ACEOF
31117
31118fi
31119
Reid Spencera773bd52006-08-04 18:18:08 +000031120{ echo "$as_me:$LINENO: checking for size_t" >&5
31121echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031122if test "${ac_cv_type_size_t+set}" = set; then
31123 echo $ECHO_N "(cached) $ECHO_C" >&6
31124else
31125 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031126/* confdefs.h. */
31127_ACEOF
31128cat confdefs.h >>conftest.$ac_ext
31129cat >>conftest.$ac_ext <<_ACEOF
31130/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031131$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031132typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031133int
31134main ()
31135{
Reid Spencera773bd52006-08-04 18:18:08 +000031136if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031137 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031138if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031139 return 0;
31140 ;
31141 return 0;
31142}
31143_ACEOF
31144rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031145if { (ac_try="$ac_compile"
31146case "(($ac_try" in
31147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31148 *) ac_try_echo=$ac_try;;
31149esac
31150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31151 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031152 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031153 grep -v '^ *+' conftest.er1 >conftest.err
31154 rm -f conftest.er1
31155 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031157 (exit $ac_status); } &&
31158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31159 { (case "(($ac_try" in
31160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31161 *) ac_try_echo=$ac_try;;
31162esac
31163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31164 (eval "$ac_try") 2>&5
31165 ac_status=$?
31166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31167 (exit $ac_status); }; } &&
31168 { ac_try='test -s conftest.$ac_objext'
31169 { (case "(($ac_try" in
31170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31171 *) ac_try_echo=$ac_try;;
31172esac
31173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31174 (eval "$ac_try") 2>&5
31175 ac_status=$?
31176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031178 ac_cv_type_size_t=yes
31179else
31180 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031181sed 's/^/| /' conftest.$ac_ext >&5
31182
Reid Spencera773bd52006-08-04 18:18:08 +000031183 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031184fi
Reid Spencera773bd52006-08-04 18:18:08 +000031185
31186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031187fi
Reid Spencera773bd52006-08-04 18:18:08 +000031188{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31189echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031190if test $ac_cv_type_size_t = yes; then
31191 :
31192else
31193
31194cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031195#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000031196_ACEOF
31197
31198fi
31199
Reid Spencera773bd52006-08-04 18:18:08 +000031200{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31201echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031202if test "${ac_cv_type_signal+set}" = set; then
31203 echo $ECHO_N "(cached) $ECHO_C" >&6
31204else
31205 cat >conftest.$ac_ext <<_ACEOF
31206/* confdefs.h. */
31207_ACEOF
31208cat confdefs.h >>conftest.$ac_ext
31209cat >>conftest.$ac_ext <<_ACEOF
31210/* end confdefs.h. */
31211#include <sys/types.h>
31212#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031213
31214int
31215main ()
31216{
Reid Spencera773bd52006-08-04 18:18:08 +000031217return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031218 ;
31219 return 0;
31220}
31221_ACEOF
31222rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031223if { (ac_try="$ac_compile"
31224case "(($ac_try" in
31225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31226 *) ac_try_echo=$ac_try;;
31227esac
31228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31229 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031230 ac_status=$?
31231 grep -v '^ *+' conftest.er1 >conftest.err
31232 rm -f conftest.er1
31233 cat conftest.err >&5
31234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031235 (exit $ac_status); } &&
31236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31237 { (case "(($ac_try" in
31238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31239 *) ac_try_echo=$ac_try;;
31240esac
31241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31242 (eval "$ac_try") 2>&5
31243 ac_status=$?
31244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31245 (exit $ac_status); }; } &&
31246 { ac_try='test -s conftest.$ac_objext'
31247 { (case "(($ac_try" in
31248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31249 *) ac_try_echo=$ac_try;;
31250esac
31251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31252 (eval "$ac_try") 2>&5
31253 ac_status=$?
31254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000031256 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031257else
31258 echo "$as_me: failed program was:" >&5
31259sed 's/^/| /' conftest.$ac_ext >&5
31260
Reid Spencera773bd52006-08-04 18:18:08 +000031261 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031262fi
Reid Spencera773bd52006-08-04 18:18:08 +000031263
31264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031265fi
Reid Spencera773bd52006-08-04 18:18:08 +000031266{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31267echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031268
31269cat >>confdefs.h <<_ACEOF
31270#define RETSIGTYPE $ac_cv_type_signal
31271_ACEOF
31272
31273
Reid Spencera773bd52006-08-04 18:18:08 +000031274{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31275echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031276if test "${ac_cv_struct_tm+set}" = set; then
31277 echo $ECHO_N "(cached) $ECHO_C" >&6
31278else
31279 cat >conftest.$ac_ext <<_ACEOF
31280/* confdefs.h. */
31281_ACEOF
31282cat confdefs.h >>conftest.$ac_ext
31283cat >>conftest.$ac_ext <<_ACEOF
31284/* end confdefs.h. */
31285#include <sys/types.h>
31286#include <time.h>
31287
31288int
31289main ()
31290{
Bill Wendlingebcceee2009-04-18 11:20:33 +000031291struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031292 ;
31293 return 0;
31294}
31295_ACEOF
31296rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031297if { (ac_try="$ac_compile"
31298case "(($ac_try" in
31299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300 *) ac_try_echo=$ac_try;;
31301esac
31302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031304 ac_status=$?
31305 grep -v '^ *+' conftest.er1 >conftest.err
31306 rm -f conftest.er1
31307 cat conftest.err >&5
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031309 (exit $ac_status); } &&
31310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31311 { (case "(($ac_try" in
31312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31313 *) ac_try_echo=$ac_try;;
31314esac
31315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31316 (eval "$ac_try") 2>&5
31317 ac_status=$?
31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319 (exit $ac_status); }; } &&
31320 { ac_try='test -s conftest.$ac_objext'
31321 { (case "(($ac_try" in
31322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31323 *) ac_try_echo=$ac_try;;
31324esac
31325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31326 (eval "$ac_try") 2>&5
31327 ac_status=$?
31328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31329 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031330 ac_cv_struct_tm=time.h
31331else
31332 echo "$as_me: failed program was:" >&5
31333sed 's/^/| /' conftest.$ac_ext >&5
31334
Reid Spencera773bd52006-08-04 18:18:08 +000031335 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031336fi
Reid Spencera773bd52006-08-04 18:18:08 +000031337
31338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031339fi
Reid Spencera773bd52006-08-04 18:18:08 +000031340{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31341echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031342if test $ac_cv_struct_tm = sys/time.h; then
31343
31344cat >>confdefs.h <<\_ACEOF
31345#define TM_IN_SYS_TIME 1
31346_ACEOF
31347
31348fi
31349
Reid Spencera773bd52006-08-04 18:18:08 +000031350{ echo "$as_me:$LINENO: checking for int64_t" >&5
31351echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031352if test "${ac_cv_type_int64_t+set}" = set; then
31353 echo $ECHO_N "(cached) $ECHO_C" >&6
31354else
31355 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031356/* confdefs.h. */
31357_ACEOF
31358cat confdefs.h >>conftest.$ac_ext
31359cat >>conftest.$ac_ext <<_ACEOF
31360/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031361$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031362typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031363int
31364main ()
31365{
Reid Spencera773bd52006-08-04 18:18:08 +000031366if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031367 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031368if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031369 return 0;
31370 ;
31371 return 0;
31372}
31373_ACEOF
31374rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031375if { (ac_try="$ac_compile"
31376case "(($ac_try" in
31377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31378 *) ac_try_echo=$ac_try;;
31379esac
31380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31381 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031382 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031383 grep -v '^ *+' conftest.er1 >conftest.err
31384 rm -f conftest.er1
31385 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031387 (exit $ac_status); } &&
31388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31389 { (case "(($ac_try" in
31390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31391 *) ac_try_echo=$ac_try;;
31392esac
31393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31394 (eval "$ac_try") 2>&5
31395 ac_status=$?
31396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31397 (exit $ac_status); }; } &&
31398 { ac_try='test -s conftest.$ac_objext'
31399 { (case "(($ac_try" in
31400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31401 *) ac_try_echo=$ac_try;;
31402esac
31403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31404 (eval "$ac_try") 2>&5
31405 ac_status=$?
31406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031408 ac_cv_type_int64_t=yes
31409else
31410 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031411sed 's/^/| /' conftest.$ac_ext >&5
31412
Reid Spencera773bd52006-08-04 18:18:08 +000031413 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031414fi
Reid Spencera773bd52006-08-04 18:18:08 +000031415
31416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031417fi
Reid Spencera773bd52006-08-04 18:18:08 +000031418{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31419echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031420if test $ac_cv_type_int64_t = yes; then
31421
31422cat >>confdefs.h <<_ACEOF
31423#define HAVE_INT64_T 1
31424_ACEOF
31425
31426
31427else
31428 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31429echo "$as_me: error: Type int64_t required but not found" >&2;}
31430 { (exit 1); exit 1; }; }
31431fi
31432
Reid Spencera773bd52006-08-04 18:18:08 +000031433{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31434echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031435if test "${ac_cv_type_uint64_t+set}" = set; then
31436 echo $ECHO_N "(cached) $ECHO_C" >&6
31437else
31438 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031439/* confdefs.h. */
31440_ACEOF
31441cat confdefs.h >>conftest.$ac_ext
31442cat >>conftest.$ac_ext <<_ACEOF
31443/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031444$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031445typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031446int
31447main ()
31448{
Reid Spencera773bd52006-08-04 18:18:08 +000031449if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031450 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031451if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031452 return 0;
31453 ;
31454 return 0;
31455}
31456_ACEOF
31457rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031458if { (ac_try="$ac_compile"
31459case "(($ac_try" in
31460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31461 *) ac_try_echo=$ac_try;;
31462esac
31463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31464 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031465 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031466 grep -v '^ *+' conftest.er1 >conftest.err
31467 rm -f conftest.er1
31468 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031470 (exit $ac_status); } &&
31471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31472 { (case "(($ac_try" in
31473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31474 *) ac_try_echo=$ac_try;;
31475esac
31476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31477 (eval "$ac_try") 2>&5
31478 ac_status=$?
31479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480 (exit $ac_status); }; } &&
31481 { ac_try='test -s conftest.$ac_objext'
31482 { (case "(($ac_try" in
31483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31484 *) ac_try_echo=$ac_try;;
31485esac
31486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31487 (eval "$ac_try") 2>&5
31488 ac_status=$?
31489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031491 ac_cv_type_uint64_t=yes
31492else
31493 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031494sed 's/^/| /' conftest.$ac_ext >&5
31495
Reid Spencera773bd52006-08-04 18:18:08 +000031496 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031497fi
Reid Spencera773bd52006-08-04 18:18:08 +000031498
31499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031500fi
Reid Spencera773bd52006-08-04 18:18:08 +000031501{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31502echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031503if test $ac_cv_type_uint64_t = yes; then
31504
31505cat >>confdefs.h <<_ACEOF
31506#define HAVE_UINT64_T 1
31507_ACEOF
31508
31509
31510else
Reid Spencera773bd52006-08-04 18:18:08 +000031511 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31512echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031513if test "${ac_cv_type_u_int64_t+set}" = set; then
31514 echo $ECHO_N "(cached) $ECHO_C" >&6
31515else
31516 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000031517/* confdefs.h. */
31518_ACEOF
31519cat confdefs.h >>conftest.$ac_ext
31520cat >>conftest.$ac_ext <<_ACEOF
31521/* end confdefs.h. */
31522$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031523typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000031524int
31525main ()
31526{
Reid Spencera773bd52006-08-04 18:18:08 +000031527if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000031528 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031529if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000031530 return 0;
31531 ;
31532 return 0;
31533}
31534_ACEOF
31535rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031536if { (ac_try="$ac_compile"
31537case "(($ac_try" in
31538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31539 *) ac_try_echo=$ac_try;;
31540esac
31541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31542 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000031543 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031544 grep -v '^ *+' conftest.er1 >conftest.err
31545 rm -f conftest.er1
31546 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000031547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031548 (exit $ac_status); } &&
31549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31550 { (case "(($ac_try" in
31551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31552 *) ac_try_echo=$ac_try;;
31553esac
31554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31555 (eval "$ac_try") 2>&5
31556 ac_status=$?
31557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31558 (exit $ac_status); }; } &&
31559 { ac_try='test -s conftest.$ac_objext'
31560 { (case "(($ac_try" in
31561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31562 *) ac_try_echo=$ac_try;;
31563esac
31564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31565 (eval "$ac_try") 2>&5
31566 ac_status=$?
31567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000031569 ac_cv_type_u_int64_t=yes
31570else
31571 echo "$as_me: failed program was:" >&5
31572sed 's/^/| /' conftest.$ac_ext >&5
31573
Reid Spencera773bd52006-08-04 18:18:08 +000031574 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000031575fi
Reid Spencera773bd52006-08-04 18:18:08 +000031576
31577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000031578fi
Reid Spencera773bd52006-08-04 18:18:08 +000031579{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31580echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031581if test $ac_cv_type_u_int64_t = yes; then
31582
31583cat >>confdefs.h <<_ACEOF
31584#define HAVE_U_INT64_T 1
31585_ACEOF
31586
31587
Misha Brukmanceca9042004-09-02 23:02:30 +000031588else
31589 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31590echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31591 { (exit 1); exit 1; }; }
31592fi
31593
John Criswell679ff312004-09-02 18:44:44 +000031594fi
31595
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031596
31597
31598
31599
31600
31601
31602
Reid Spencerf4bb9b12006-01-19 08:22:40 +000031603
31604
Reid Spencerdf3be822006-01-23 08:15:53 +000031605for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031606do
31607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031608{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31610if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031611 echo $ECHO_N "(cached) $ECHO_C" >&6
31612else
31613 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031614/* confdefs.h. */
31615_ACEOF
31616cat confdefs.h >>conftest.$ac_ext
31617cat >>conftest.$ac_ext <<_ACEOF
31618/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31621#define $ac_func innocuous_$ac_func
31622
31623/* System header to define __stub macros and hopefully few prototypes,
31624 which can conflict with char $ac_func (); below.
31625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31626 <limits.h> exists even on freestanding compilers. */
31627
31628#ifdef __STDC__
31629# include <limits.h>
31630#else
31631# include <assert.h>
31632#endif
31633
31634#undef $ac_func
31635
Reid Spencera773bd52006-08-04 18:18:08 +000031636/* Override any GCC internal prototype to avoid an error.
31637 Use char because int might match the return type of a GCC
31638 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031639#ifdef __cplusplus
31640extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031641#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031642char $ac_func ();
31643/* The GNU C library defines this for functions which it implements
31644 to always fail with ENOSYS. Some functions are actually named
31645 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031646#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031647choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031648#endif
John Criswell7a73b802003-06-30 21:59:07 +000031649
John Criswell7a73b802003-06-30 21:59:07 +000031650int
31651main ()
31652{
Reid Spencera773bd52006-08-04 18:18:08 +000031653return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031654 ;
31655 return 0;
31656}
31657_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031658rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031659if { (ac_try="$ac_link"
31660case "(($ac_try" in
31661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31662 *) ac_try_echo=$ac_try;;
31663esac
31664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31665 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031666 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031667 grep -v '^ *+' conftest.er1 >conftest.err
31668 rm -f conftest.er1
31669 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031671 (exit $ac_status); } &&
31672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31673 { (case "(($ac_try" in
31674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31675 *) ac_try_echo=$ac_try;;
31676esac
31677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31678 (eval "$ac_try") 2>&5
31679 ac_status=$?
31680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681 (exit $ac_status); }; } &&
31682 { ac_try='test -s conftest$ac_exeext'
31683 { (case "(($ac_try" in
31684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31685 *) ac_try_echo=$ac_try;;
31686esac
31687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31688 (eval "$ac_try") 2>&5
31689 ac_status=$?
31690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31691 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031692 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031693else
31694 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031695sed 's/^/| /' conftest.$ac_ext >&5
31696
Reid Spencera773bd52006-08-04 18:18:08 +000031697 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031698fi
Reid Spencera773bd52006-08-04 18:18:08 +000031699
Bill Wendlingebcceee2009-04-18 11:20:33 +000031700rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031701 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031702fi
Reid Spencera773bd52006-08-04 18:18:08 +000031703ac_res=`eval echo '${'$as_ac_var'}'`
31704 { echo "$as_me:$LINENO: result: $ac_res" >&5
31705echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031706if test `eval echo '${'$as_ac_var'}'` = yes; then
31707 cat >>confdefs.h <<_ACEOF
31708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031709_ACEOF
31710
31711fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031712done
John Criswell7a73b802003-06-30 21:59:07 +000031713
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031714
31715
31716
Reid Spencer6af3d262004-12-15 04:01:48 +000031717
Reid Spencer96cf5872007-07-13 10:05:30 +000031718for ac_func in powf fmodf strtof round
31719do
31720as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31721{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31722echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31723if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31724 echo $ECHO_N "(cached) $ECHO_C" >&6
31725else
31726 cat >conftest.$ac_ext <<_ACEOF
31727/* confdefs.h. */
31728_ACEOF
31729cat confdefs.h >>conftest.$ac_ext
31730cat >>conftest.$ac_ext <<_ACEOF
31731/* end confdefs.h. */
31732/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31734#define $ac_func innocuous_$ac_func
31735
31736/* System header to define __stub macros and hopefully few prototypes,
31737 which can conflict with char $ac_func (); below.
31738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31739 <limits.h> exists even on freestanding compilers. */
31740
31741#ifdef __STDC__
31742# include <limits.h>
31743#else
31744# include <assert.h>
31745#endif
31746
31747#undef $ac_func
31748
31749/* Override any GCC internal prototype to avoid an error.
31750 Use char because int might match the return type of a GCC
31751 builtin and then its argument prototype would still apply. */
31752#ifdef __cplusplus
31753extern "C"
31754#endif
31755char $ac_func ();
31756/* The GNU C library defines this for functions which it implements
31757 to always fail with ENOSYS. Some functions are actually named
31758 something starting with __ and the normal name is an alias. */
31759#if defined __stub_$ac_func || defined __stub___$ac_func
31760choke me
31761#endif
31762
31763int
31764main ()
31765{
31766return $ac_func ();
31767 ;
31768 return 0;
31769}
31770_ACEOF
31771rm -f conftest.$ac_objext conftest$ac_exeext
31772if { (ac_try="$ac_link"
31773case "(($ac_try" in
31774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31775 *) ac_try_echo=$ac_try;;
31776esac
31777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31778 (eval "$ac_link") 2>conftest.er1
31779 ac_status=$?
31780 grep -v '^ *+' conftest.er1 >conftest.err
31781 rm -f conftest.er1
31782 cat conftest.err >&5
31783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031784 (exit $ac_status); } &&
31785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31786 { (case "(($ac_try" in
31787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31788 *) ac_try_echo=$ac_try;;
31789esac
31790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31791 (eval "$ac_try") 2>&5
31792 ac_status=$?
31793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794 (exit $ac_status); }; } &&
31795 { ac_try='test -s conftest$ac_exeext'
31796 { (case "(($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_try") 2>&5
31802 ac_status=$?
31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031805 eval "$as_ac_var=yes"
31806else
31807 echo "$as_me: failed program was:" >&5
31808sed 's/^/| /' conftest.$ac_ext >&5
31809
31810 eval "$as_ac_var=no"
31811fi
31812
Bill Wendlingebcceee2009-04-18 11:20:33 +000031813rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031814 conftest$ac_exeext conftest.$ac_ext
31815fi
31816ac_res=`eval echo '${'$as_ac_var'}'`
31817 { echo "$as_me:$LINENO: result: $ac_res" >&5
31818echo "${ECHO_T}$ac_res" >&6; }
31819if test `eval echo '${'$as_ac_var'}'` = yes; then
31820 cat >>confdefs.h <<_ACEOF
31821#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31822_ACEOF
31823
31824fi
31825done
31826
31827
31828
31829
31830
Reid Spencer6af3d262004-12-15 04:01:48 +000031831
Reid Spencerb90645c2007-02-16 19:17:20 +000031832for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31833do
31834as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31835{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31836echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31837if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31838 echo $ECHO_N "(cached) $ECHO_C" >&6
31839else
31840 cat >conftest.$ac_ext <<_ACEOF
31841/* confdefs.h. */
31842_ACEOF
31843cat confdefs.h >>conftest.$ac_ext
31844cat >>conftest.$ac_ext <<_ACEOF
31845/* end confdefs.h. */
31846/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31848#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031849
Reid Spencerb90645c2007-02-16 19:17:20 +000031850/* System header to define __stub macros and hopefully few prototypes,
31851 which can conflict with char $ac_func (); below.
31852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31853 <limits.h> exists even on freestanding compilers. */
31854
31855#ifdef __STDC__
31856# include <limits.h>
31857#else
31858# include <assert.h>
31859#endif
31860
31861#undef $ac_func
31862
31863/* Override any GCC internal prototype to avoid an error.
31864 Use char because int might match the return type of a GCC
31865 builtin and then its argument prototype would still apply. */
31866#ifdef __cplusplus
31867extern "C"
31868#endif
31869char $ac_func ();
31870/* The GNU C library defines this for functions which it implements
31871 to always fail with ENOSYS. Some functions are actually named
31872 something starting with __ and the normal name is an alias. */
31873#if defined __stub_$ac_func || defined __stub___$ac_func
31874choke me
31875#endif
31876
31877int
31878main ()
31879{
31880return $ac_func ();
31881 ;
31882 return 0;
31883}
31884_ACEOF
31885rm -f conftest.$ac_objext conftest$ac_exeext
31886if { (ac_try="$ac_link"
31887case "(($ac_try" in
31888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31889 *) ac_try_echo=$ac_try;;
31890esac
31891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31892 (eval "$ac_link") 2>conftest.er1
31893 ac_status=$?
31894 grep -v '^ *+' conftest.er1 >conftest.err
31895 rm -f conftest.er1
31896 cat conftest.err >&5
31897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031898 (exit $ac_status); } &&
31899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31900 { (case "(($ac_try" in
31901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31902 *) ac_try_echo=$ac_try;;
31903esac
31904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31905 (eval "$ac_try") 2>&5
31906 ac_status=$?
31907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908 (exit $ac_status); }; } &&
31909 { ac_try='test -s conftest$ac_exeext'
31910 { (case "(($ac_try" in
31911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31912 *) ac_try_echo=$ac_try;;
31913esac
31914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31915 (eval "$ac_try") 2>&5
31916 ac_status=$?
31917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000031919 eval "$as_ac_var=yes"
31920else
31921 echo "$as_me: failed program was:" >&5
31922sed 's/^/| /' conftest.$ac_ext >&5
31923
31924 eval "$as_ac_var=no"
31925fi
31926
Bill Wendlingebcceee2009-04-18 11:20:33 +000031927rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000031928 conftest$ac_exeext conftest.$ac_ext
31929fi
31930ac_res=`eval echo '${'$as_ac_var'}'`
31931 { echo "$as_me:$LINENO: result: $ac_res" >&5
31932echo "${ECHO_T}$ac_res" >&6; }
31933if test `eval echo '${'$as_ac_var'}'` = yes; then
31934 cat >>confdefs.h <<_ACEOF
31935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31936_ACEOF
31937
31938fi
31939done
31940
31941
31942
31943
31944for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000031945do
31946as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031947{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31948echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31949if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031950 echo $ECHO_N "(cached) $ECHO_C" >&6
31951else
31952 cat >conftest.$ac_ext <<_ACEOF
31953/* confdefs.h. */
31954_ACEOF
31955cat confdefs.h >>conftest.$ac_ext
31956cat >>conftest.$ac_ext <<_ACEOF
31957/* end confdefs.h. */
31958/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31960#define $ac_func innocuous_$ac_func
31961
31962/* System header to define __stub macros and hopefully few prototypes,
31963 which can conflict with char $ac_func (); below.
31964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31965 <limits.h> exists even on freestanding compilers. */
31966
31967#ifdef __STDC__
31968# include <limits.h>
31969#else
31970# include <assert.h>
31971#endif
31972
31973#undef $ac_func
31974
Reid Spencera773bd52006-08-04 18:18:08 +000031975/* Override any GCC internal prototype to avoid an error.
31976 Use char because int might match the return type of a GCC
31977 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000031978#ifdef __cplusplus
31979extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000031980#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000031981char $ac_func ();
31982/* The GNU C library defines this for functions which it implements
31983 to always fail with ENOSYS. Some functions are actually named
31984 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031985#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000031986choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000031987#endif
31988
31989int
31990main ()
31991{
Reid Spencera773bd52006-08-04 18:18:08 +000031992return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000031993 ;
31994 return 0;
31995}
31996_ACEOF
31997rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031998if { (ac_try="$ac_link"
31999case "(($ac_try" in
32000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32001 *) ac_try_echo=$ac_try;;
32002esac
32003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32004 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000032005 ac_status=$?
32006 grep -v '^ *+' conftest.er1 >conftest.err
32007 rm -f conftest.er1
32008 cat conftest.err >&5
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032010 (exit $ac_status); } &&
32011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32012 { (case "(($ac_try" in
32013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32014 *) ac_try_echo=$ac_try;;
32015esac
32016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32017 (eval "$ac_try") 2>&5
32018 ac_status=$?
32019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020 (exit $ac_status); }; } &&
32021 { ac_try='test -s conftest$ac_exeext'
32022 { (case "(($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_try") 2>&5
32028 ac_status=$?
32029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032031 eval "$as_ac_var=yes"
32032else
32033 echo "$as_me: failed program was:" >&5
32034sed 's/^/| /' conftest.$ac_ext >&5
32035
Reid Spencera773bd52006-08-04 18:18:08 +000032036 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000032037fi
Reid Spencera773bd52006-08-04 18:18:08 +000032038
Bill Wendlingebcceee2009-04-18 11:20:33 +000032039rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000032040 conftest$ac_exeext conftest.$ac_ext
32041fi
Reid Spencera773bd52006-08-04 18:18:08 +000032042ac_res=`eval echo '${'$as_ac_var'}'`
32043 { echo "$as_me:$LINENO: result: $ac_res" >&5
32044echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000032045if test `eval echo '${'$as_ac_var'}'` = yes; then
32046 cat >>confdefs.h <<_ACEOF
32047#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32048_ACEOF
32049
32050fi
32051done
32052
32053
32054
32055
32056
32057
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032058for ac_func in mktemp realpath sbrk setrlimit strdup
32059do
32060as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32061{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32062echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32063if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32064 echo $ECHO_N "(cached) $ECHO_C" >&6
32065else
32066 cat >conftest.$ac_ext <<_ACEOF
32067/* confdefs.h. */
32068_ACEOF
32069cat confdefs.h >>conftest.$ac_ext
32070cat >>conftest.$ac_ext <<_ACEOF
32071/* end confdefs.h. */
32072/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32074#define $ac_func innocuous_$ac_func
32075
32076/* System header to define __stub macros and hopefully few prototypes,
32077 which can conflict with char $ac_func (); below.
32078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32079 <limits.h> exists even on freestanding compilers. */
32080
32081#ifdef __STDC__
32082# include <limits.h>
32083#else
32084# include <assert.h>
32085#endif
32086
32087#undef $ac_func
32088
32089/* Override any GCC internal prototype to avoid an error.
32090 Use char because int might match the return type of a GCC
32091 builtin and then its argument prototype would still apply. */
32092#ifdef __cplusplus
32093extern "C"
32094#endif
32095char $ac_func ();
32096/* The GNU C library defines this for functions which it implements
32097 to always fail with ENOSYS. Some functions are actually named
32098 something starting with __ and the normal name is an alias. */
32099#if defined __stub_$ac_func || defined __stub___$ac_func
32100choke me
32101#endif
32102
32103int
32104main ()
32105{
32106return $ac_func ();
32107 ;
32108 return 0;
32109}
32110_ACEOF
32111rm -f conftest.$ac_objext conftest$ac_exeext
32112if { (ac_try="$ac_link"
32113case "(($ac_try" in
32114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32115 *) ac_try_echo=$ac_try;;
32116esac
32117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32118 (eval "$ac_link") 2>conftest.er1
32119 ac_status=$?
32120 grep -v '^ *+' conftest.er1 >conftest.err
32121 rm -f conftest.er1
32122 cat conftest.err >&5
32123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124 (exit $ac_status); } &&
32125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32126 { (case "(($ac_try" in
32127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32128 *) ac_try_echo=$ac_try;;
32129esac
32130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32131 (eval "$ac_try") 2>&5
32132 ac_status=$?
32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134 (exit $ac_status); }; } &&
32135 { ac_try='test -s conftest$ac_exeext'
32136 { (case "(($ac_try" in
32137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32138 *) ac_try_echo=$ac_try;;
32139esac
32140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32141 (eval "$ac_try") 2>&5
32142 ac_status=$?
32143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32144 (exit $ac_status); }; }; then
32145 eval "$as_ac_var=yes"
32146else
32147 echo "$as_me: failed program was:" >&5
32148sed 's/^/| /' conftest.$ac_ext >&5
32149
32150 eval "$as_ac_var=no"
32151fi
32152
32153rm -f core conftest.err conftest.$ac_objext \
32154 conftest$ac_exeext conftest.$ac_ext
32155fi
32156ac_res=`eval echo '${'$as_ac_var'}'`
32157 { echo "$as_me:$LINENO: result: $ac_res" >&5
32158echo "${ECHO_T}$ac_res" >&6; }
32159if test `eval echo '${'$as_ac_var'}'` = yes; then
32160 cat >>confdefs.h <<_ACEOF
32161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32162_ACEOF
32163
32164fi
32165done
Reid Spencerdf3be822006-01-23 08:15:53 +000032166
32167
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032168
32169
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000032170
32171for ac_func in strerror strerror_r strerror_s setenv
Reid Spencer7931a782004-12-27 06:15:02 +000032172do
32173as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032174{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32175echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32176if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032177 echo $ECHO_N "(cached) $ECHO_C" >&6
32178else
32179 cat >conftest.$ac_ext <<_ACEOF
32180/* confdefs.h. */
32181_ACEOF
32182cat confdefs.h >>conftest.$ac_ext
32183cat >>conftest.$ac_ext <<_ACEOF
32184/* end confdefs.h. */
32185/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32187#define $ac_func innocuous_$ac_func
32188
32189/* System header to define __stub macros and hopefully few prototypes,
32190 which can conflict with char $ac_func (); below.
32191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32192 <limits.h> exists even on freestanding compilers. */
32193
32194#ifdef __STDC__
32195# include <limits.h>
32196#else
32197# include <assert.h>
32198#endif
32199
32200#undef $ac_func
32201
Reid Spencera773bd52006-08-04 18:18:08 +000032202/* Override any GCC internal prototype to avoid an error.
32203 Use char because int might match the return type of a GCC
32204 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000032205#ifdef __cplusplus
32206extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000032207#endif
Reid Spencer7931a782004-12-27 06:15:02 +000032208char $ac_func ();
32209/* The GNU C library defines this for functions which it implements
32210 to always fail with ENOSYS. Some functions are actually named
32211 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032212#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000032213choke me
Reid Spencer7931a782004-12-27 06:15:02 +000032214#endif
32215
32216int
32217main ()
32218{
Reid Spencera773bd52006-08-04 18:18:08 +000032219return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000032220 ;
32221 return 0;
32222}
32223_ACEOF
32224rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032225if { (ac_try="$ac_link"
32226case "(($ac_try" in
32227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228 *) ac_try_echo=$ac_try;;
32229esac
32230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32231 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000032232 ac_status=$?
32233 grep -v '^ *+' conftest.er1 >conftest.err
32234 rm -f conftest.er1
32235 cat conftest.err >&5
32236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032237 (exit $ac_status); } &&
32238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32239 { (case "(($ac_try" in
32240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32241 *) ac_try_echo=$ac_try;;
32242esac
32243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32244 (eval "$ac_try") 2>&5
32245 ac_status=$?
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); }; } &&
32248 { ac_try='test -s conftest$ac_exeext'
32249 { (case "(($ac_try" in
32250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251 *) ac_try_echo=$ac_try;;
32252esac
32253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254 (eval "$ac_try") 2>&5
32255 ac_status=$?
32256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032258 eval "$as_ac_var=yes"
32259else
32260 echo "$as_me: failed program was:" >&5
32261sed 's/^/| /' conftest.$ac_ext >&5
32262
Reid Spencera773bd52006-08-04 18:18:08 +000032263 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000032264fi
Reid Spencera773bd52006-08-04 18:18:08 +000032265
Bill Wendlingebcceee2009-04-18 11:20:33 +000032266rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000032267 conftest$ac_exeext conftest.$ac_ext
32268fi
Reid Spencera773bd52006-08-04 18:18:08 +000032269ac_res=`eval echo '${'$as_ac_var'}'`
32270 { echo "$as_me:$LINENO: result: $ac_res" >&5
32271echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000032272if test `eval echo '${'$as_ac_var'}'` = yes; then
32273 cat >>confdefs.h <<_ACEOF
32274#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32275_ACEOF
32276
32277fi
32278done
32279
32280
Reid Spencerba46ca32004-12-31 05:49:15 +000032281
32282
Chris Lattner0b142592005-11-14 06:57:34 +000032283
Chris Lattner511f11d2005-11-14 07:25:50 +000032284for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032285do
32286as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032287{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32288echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32289if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032290 echo $ECHO_N "(cached) $ECHO_C" >&6
32291else
32292 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032293/* confdefs.h. */
32294_ACEOF
32295cat confdefs.h >>conftest.$ac_ext
32296cat >>conftest.$ac_ext <<_ACEOF
32297/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032298/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32300#define $ac_func innocuous_$ac_func
32301
32302/* System header to define __stub macros and hopefully few prototypes,
32303 which can conflict with char $ac_func (); below.
32304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32305 <limits.h> exists even on freestanding compilers. */
32306
32307#ifdef __STDC__
32308# include <limits.h>
32309#else
32310# include <assert.h>
32311#endif
32312
32313#undef $ac_func
32314
Reid Spencera773bd52006-08-04 18:18:08 +000032315/* Override any GCC internal prototype to avoid an error.
32316 Use char because int might match the return type of a GCC
32317 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032318#ifdef __cplusplus
32319extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032320#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032321char $ac_func ();
32322/* The GNU C library defines this for functions which it implements
32323 to always fail with ENOSYS. Some functions are actually named
32324 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032325#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032326choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032327#endif
John Criswell7a73b802003-06-30 21:59:07 +000032328
John Criswell7a73b802003-06-30 21:59:07 +000032329int
32330main ()
32331{
Reid Spencera773bd52006-08-04 18:18:08 +000032332return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032333 ;
32334 return 0;
32335}
32336_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032337rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032338if { (ac_try="$ac_link"
32339case "(($ac_try" in
32340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32341 *) ac_try_echo=$ac_try;;
32342esac
32343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32344 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032345 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032346 grep -v '^ *+' conftest.er1 >conftest.err
32347 rm -f conftest.er1
32348 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032350 (exit $ac_status); } &&
32351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32352 { (case "(($ac_try" in
32353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32354 *) ac_try_echo=$ac_try;;
32355esac
32356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32357 (eval "$ac_try") 2>&5
32358 ac_status=$?
32359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32360 (exit $ac_status); }; } &&
32361 { ac_try='test -s conftest$ac_exeext'
32362 { (case "(($ac_try" in
32363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32364 *) ac_try_echo=$ac_try;;
32365esac
32366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32367 (eval "$ac_try") 2>&5
32368 ac_status=$?
32369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32370 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032371 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000032372else
32373 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032374sed 's/^/| /' conftest.$ac_ext >&5
32375
Reid Spencera773bd52006-08-04 18:18:08 +000032376 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032377fi
Reid Spencera773bd52006-08-04 18:18:08 +000032378
Bill Wendlingebcceee2009-04-18 11:20:33 +000032379rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032380 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032381fi
Reid Spencera773bd52006-08-04 18:18:08 +000032382ac_res=`eval echo '${'$as_ac_var'}'`
32383 { echo "$as_me:$LINENO: result: $ac_res" >&5
32384echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032385if test `eval echo '${'$as_ac_var'}'` = yes; then
32386 cat >>confdefs.h <<_ACEOF
32387#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000032388_ACEOF
32389
32390fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032391done
John Criswell7a73b802003-06-30 21:59:07 +000032392
Reid Spencercdb08a32006-06-05 16:11:07 +000032393
32394
32395
32396
Reid Spencerafa22e22006-12-10 23:29:19 +000032397for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000032398do
32399as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032400{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32401echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32402if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032403 echo $ECHO_N "(cached) $ECHO_C" >&6
32404else
32405 cat >conftest.$ac_ext <<_ACEOF
32406/* confdefs.h. */
32407_ACEOF
32408cat confdefs.h >>conftest.$ac_ext
32409cat >>conftest.$ac_ext <<_ACEOF
32410/* end confdefs.h. */
32411/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32413#define $ac_func innocuous_$ac_func
32414
32415/* System header to define __stub macros and hopefully few prototypes,
32416 which can conflict with char $ac_func (); below.
32417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32418 <limits.h> exists even on freestanding compilers. */
32419
32420#ifdef __STDC__
32421# include <limits.h>
32422#else
32423# include <assert.h>
32424#endif
32425
32426#undef $ac_func
32427
Reid Spencera773bd52006-08-04 18:18:08 +000032428/* Override any GCC internal prototype to avoid an error.
32429 Use char because int might match the return type of a GCC
32430 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000032431#ifdef __cplusplus
32432extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000032433#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000032434char $ac_func ();
32435/* The GNU C library defines this for functions which it implements
32436 to always fail with ENOSYS. Some functions are actually named
32437 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032438#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000032439choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000032440#endif
32441
32442int
32443main ()
32444{
Reid Spencera773bd52006-08-04 18:18:08 +000032445return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000032446 ;
32447 return 0;
32448}
32449_ACEOF
32450rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032451if { (ac_try="$ac_link"
32452case "(($ac_try" in
32453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32454 *) ac_try_echo=$ac_try;;
32455esac
32456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32457 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000032458 ac_status=$?
32459 grep -v '^ *+' conftest.er1 >conftest.err
32460 rm -f conftest.er1
32461 cat conftest.err >&5
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032463 (exit $ac_status); } &&
32464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32465 { (case "(($ac_try" in
32466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32467 *) ac_try_echo=$ac_try;;
32468esac
32469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32470 (eval "$ac_try") 2>&5
32471 ac_status=$?
32472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32473 (exit $ac_status); }; } &&
32474 { ac_try='test -s conftest$ac_exeext'
32475 { (case "(($ac_try" in
32476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32477 *) ac_try_echo=$ac_try;;
32478esac
32479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32480 (eval "$ac_try") 2>&5
32481 ac_status=$?
32482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32483 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032484 eval "$as_ac_var=yes"
32485else
32486 echo "$as_me: failed program was:" >&5
32487sed 's/^/| /' conftest.$ac_ext >&5
32488
Reid Spencera773bd52006-08-04 18:18:08 +000032489 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000032490fi
Reid Spencera773bd52006-08-04 18:18:08 +000032491
Bill Wendlingebcceee2009-04-18 11:20:33 +000032492rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000032493 conftest$ac_exeext conftest.$ac_ext
32494fi
Reid Spencera773bd52006-08-04 18:18:08 +000032495ac_res=`eval echo '${'$as_ac_var'}'`
32496 { echo "$as_me:$LINENO: result: $ac_res" >&5
32497echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000032498if test `eval echo '${'$as_ac_var'}'` = yes; then
32499 cat >>confdefs.h <<_ACEOF
32500#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32501_ACEOF
32502
32503fi
32504done
32505
Reid Spencera773bd52006-08-04 18:18:08 +000032506{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32507echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032508if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032509 echo $ECHO_N "(cached) $ECHO_C" >&6
32510else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032511 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032512ac_cpp='$CPP $CPPFLAGS'
32513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32515ac_compiler_gnu=$ac_cv_c_compiler_gnu
32516
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032517 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032518 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032519else
32520 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032521
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032522 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000032523_ACEOF
32524cat confdefs.h >>conftest.$ac_ext
32525cat >>conftest.$ac_ext <<_ACEOF
32526/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032527
John Criswella0137d32003-10-13 16:22:01 +000032528#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000032529#include <stdlib.h>
32530
John Criswella0137d32003-10-13 16:22:01 +000032531int
32532main ()
32533{
32534
Reid Spencer2706f8c2004-09-19 23:53:36 +000032535volatile double A, B;
32536char Buffer[100];
32537A = 1;
32538A /= 10.0;
32539sprintf(Buffer, "%a", A);
32540B = atof(Buffer);
32541if (A != B)
32542 return (1);
32543if (A != 0x1.999999999999ap-4)
32544 return (1);
32545return (0);
John Criswella0137d32003-10-13 16:22:01 +000032546 ;
32547 return 0;
32548}
32549_ACEOF
32550rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032551if { (ac_try="$ac_link"
32552case "(($ac_try" in
32553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32554 *) ac_try_echo=$ac_try;;
32555esac
32556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32557 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032558 ac_status=$?
32559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032561 { (case "(($ac_try" in
32562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32563 *) ac_try_echo=$ac_try;;
32564esac
32565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32566 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032567 ac_status=$?
32568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32569 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032570 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000032571else
32572 echo "$as_me: program exited with status $ac_status" >&5
32573echo "$as_me: failed program was:" >&5
32574sed 's/^/| /' conftest.$ac_ext >&5
32575
32576( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000032577llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032578fi
Reid Spencera773bd52006-08-04 18:18:08 +000032579rm -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 +000032580fi
Reid Spencera773bd52006-08-04 18:18:08 +000032581
32582
Reid Spencer2706f8c2004-09-19 23:53:36 +000032583 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032584ac_cpp='$CPP $CPPFLAGS'
32585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32587ac_compiler_gnu=$ac_cv_c_compiler_gnu
32588
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032589fi
Reid Spencera773bd52006-08-04 18:18:08 +000032590{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32591echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032592 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000032593
32594cat >>confdefs.h <<\_ACEOF
32595#define HAVE_PRINTF_A 1
32596_ACEOF
32597
Reid Spencer2706f8c2004-09-19 23:53:36 +000032598 fi
John Criswella0137d32003-10-13 16:22:01 +000032599
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032600# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32601# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000032602{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32603echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032604if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000032605 echo $ECHO_N "(cached) $ECHO_C" >&6
32606else
John Criswell0021c312004-02-13 21:57:29 +000032607 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000032608/* confdefs.h. */
32609_ACEOF
32610cat confdefs.h >>conftest.$ac_ext
32611cat >>conftest.$ac_ext <<_ACEOF
32612/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032613#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000032614int
32615main ()
32616{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032617char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000032618 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000032619 ;
32620 return 0;
32621}
32622_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032623rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032624if { (ac_try="$ac_link"
32625case "(($ac_try" in
32626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32627 *) ac_try_echo=$ac_try;;
32628esac
32629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32630 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000032631 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032632 grep -v '^ *+' conftest.er1 >conftest.err
32633 rm -f conftest.er1
32634 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000032635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032636 (exit $ac_status); } &&
32637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32638 { (case "(($ac_try" in
32639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32640 *) ac_try_echo=$ac_try;;
32641esac
32642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32643 (eval "$ac_try") 2>&5
32644 ac_status=$?
32645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646 (exit $ac_status); }; } &&
32647 { ac_try='test -s conftest$ac_exeext'
32648 { (case "(($ac_try" in
32649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32650 *) ac_try_echo=$ac_try;;
32651esac
32652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32653 (eval "$ac_try") 2>&5
32654 ac_status=$?
32655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32656 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032657 ac_cv_working_alloca_h=yes
32658else
32659 echo "$as_me: failed program was:" >&5
32660sed 's/^/| /' conftest.$ac_ext >&5
32661
Reid Spencera773bd52006-08-04 18:18:08 +000032662 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000032663fi
Reid Spencera773bd52006-08-04 18:18:08 +000032664
Bill Wendlingebcceee2009-04-18 11:20:33 +000032665rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032666 conftest$ac_exeext conftest.$ac_ext
32667fi
Reid Spencera773bd52006-08-04 18:18:08 +000032668{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32669echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032670if test $ac_cv_working_alloca_h = yes; then
32671
32672cat >>confdefs.h <<\_ACEOF
32673#define HAVE_ALLOCA_H 1
32674_ACEOF
32675
32676fi
32677
Reid Spencera773bd52006-08-04 18:18:08 +000032678{ echo "$as_me:$LINENO: checking for alloca" >&5
32679echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032680if test "${ac_cv_func_alloca_works+set}" = set; then
32681 echo $ECHO_N "(cached) $ECHO_C" >&6
32682else
32683 cat >conftest.$ac_ext <<_ACEOF
32684/* confdefs.h. */
32685_ACEOF
32686cat confdefs.h >>conftest.$ac_ext
32687cat >>conftest.$ac_ext <<_ACEOF
32688/* end confdefs.h. */
32689#ifdef __GNUC__
32690# define alloca __builtin_alloca
32691#else
32692# ifdef _MSC_VER
32693# include <malloc.h>
32694# define alloca _alloca
32695# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000032696# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032697# include <alloca.h>
32698# else
32699# ifdef _AIX
32700 #pragma alloca
32701# else
32702# ifndef alloca /* predefined by HP cc +Olibcalls */
32703char *alloca ();
32704# endif
32705# endif
32706# endif
32707# endif
32708#endif
32709
32710int
32711main ()
32712{
32713char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032714 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032715 ;
32716 return 0;
32717}
32718_ACEOF
32719rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032720if { (ac_try="$ac_link"
32721case "(($ac_try" in
32722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723 *) ac_try_echo=$ac_try;;
32724esac
32725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32726 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032727 ac_status=$?
32728 grep -v '^ *+' conftest.er1 >conftest.err
32729 rm -f conftest.er1
32730 cat conftest.err >&5
32731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032732 (exit $ac_status); } &&
32733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32734 { (case "(($ac_try" in
32735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32736 *) ac_try_echo=$ac_try;;
32737esac
32738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32739 (eval "$ac_try") 2>&5
32740 ac_status=$?
32741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742 (exit $ac_status); }; } &&
32743 { ac_try='test -s conftest$ac_exeext'
32744 { (case "(($ac_try" in
32745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32746 *) ac_try_echo=$ac_try;;
32747esac
32748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32749 (eval "$ac_try") 2>&5
32750 ac_status=$?
32751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32752 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032753 ac_cv_func_alloca_works=yes
32754else
32755 echo "$as_me: failed program was:" >&5
32756sed 's/^/| /' conftest.$ac_ext >&5
32757
Reid Spencera773bd52006-08-04 18:18:08 +000032758 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032759fi
Reid Spencera773bd52006-08-04 18:18:08 +000032760
Bill Wendlingebcceee2009-04-18 11:20:33 +000032761rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032762 conftest$ac_exeext conftest.$ac_ext
32763fi
Reid Spencera773bd52006-08-04 18:18:08 +000032764{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32765echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032766
32767if test $ac_cv_func_alloca_works = yes; then
32768
32769cat >>confdefs.h <<\_ACEOF
32770#define HAVE_ALLOCA 1
32771_ACEOF
32772
32773else
32774 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32775# that cause trouble. Some versions do not even contain alloca or
32776# contain a buggy version. If you still want to use their alloca,
32777# use ar to extract alloca.o from them instead of compiling alloca.c.
32778
Reid Spencera773bd52006-08-04 18:18:08 +000032779ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032780
32781cat >>confdefs.h <<\_ACEOF
32782#define C_ALLOCA 1
32783_ACEOF
32784
32785
Reid Spencera773bd52006-08-04 18:18:08 +000032786{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32787echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032788if test "${ac_cv_os_cray+set}" = set; then
32789 echo $ECHO_N "(cached) $ECHO_C" >&6
32790else
32791 cat >conftest.$ac_ext <<_ACEOF
32792/* confdefs.h. */
32793_ACEOF
32794cat confdefs.h >>conftest.$ac_ext
32795cat >>conftest.$ac_ext <<_ACEOF
32796/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032797#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032798webecray
32799#else
32800wenotbecray
32801#endif
32802
32803_ACEOF
32804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32805 $EGREP "webecray" >/dev/null 2>&1; then
32806 ac_cv_os_cray=yes
32807else
32808 ac_cv_os_cray=no
32809fi
32810rm -f conftest*
32811
32812fi
Reid Spencera773bd52006-08-04 18:18:08 +000032813{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32814echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032815if test $ac_cv_os_cray = yes; then
32816 for ac_func in _getb67 GETB67 getb67; do
32817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032818{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32820if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032821 echo $ECHO_N "(cached) $ECHO_C" >&6
32822else
32823 cat >conftest.$ac_ext <<_ACEOF
32824/* confdefs.h. */
32825_ACEOF
32826cat confdefs.h >>conftest.$ac_ext
32827cat >>conftest.$ac_ext <<_ACEOF
32828/* end confdefs.h. */
32829/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32831#define $ac_func innocuous_$ac_func
32832
32833/* System header to define __stub macros and hopefully few prototypes,
32834 which can conflict with char $ac_func (); below.
32835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32836 <limits.h> exists even on freestanding compilers. */
32837
32838#ifdef __STDC__
32839# include <limits.h>
32840#else
32841# include <assert.h>
32842#endif
32843
32844#undef $ac_func
32845
Reid Spencera773bd52006-08-04 18:18:08 +000032846/* Override any GCC internal prototype to avoid an error.
32847 Use char because int might match the return type of a GCC
32848 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032849#ifdef __cplusplus
32850extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032851#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032852char $ac_func ();
32853/* The GNU C library defines this for functions which it implements
32854 to always fail with ENOSYS. Some functions are actually named
32855 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032856#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032857choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032858#endif
32859
32860int
32861main ()
32862{
Reid Spencera773bd52006-08-04 18:18:08 +000032863return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032864 ;
32865 return 0;
32866}
32867_ACEOF
32868rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032869if { (ac_try="$ac_link"
32870case "(($ac_try" in
32871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32872 *) ac_try_echo=$ac_try;;
32873esac
32874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32875 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032876 ac_status=$?
32877 grep -v '^ *+' conftest.er1 >conftest.err
32878 rm -f conftest.er1
32879 cat conftest.err >&5
32880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032881 (exit $ac_status); } &&
32882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32883 { (case "(($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_try") 2>&5
32889 ac_status=$?
32890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891 (exit $ac_status); }; } &&
32892 { ac_try='test -s conftest$ac_exeext'
32893 { (case "(($ac_try" in
32894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32895 *) ac_try_echo=$ac_try;;
32896esac
32897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32898 (eval "$ac_try") 2>&5
32899 ac_status=$?
32900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032902 eval "$as_ac_var=yes"
32903else
32904 echo "$as_me: failed program was:" >&5
32905sed 's/^/| /' conftest.$ac_ext >&5
32906
Reid Spencera773bd52006-08-04 18:18:08 +000032907 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032908fi
Reid Spencera773bd52006-08-04 18:18:08 +000032909
Bill Wendlingebcceee2009-04-18 11:20:33 +000032910rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032911 conftest$ac_exeext conftest.$ac_ext
32912fi
Reid Spencera773bd52006-08-04 18:18:08 +000032913ac_res=`eval echo '${'$as_ac_var'}'`
32914 { echo "$as_me:$LINENO: result: $ac_res" >&5
32915echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032916if test `eval echo '${'$as_ac_var'}'` = yes; then
32917
32918cat >>confdefs.h <<_ACEOF
32919#define CRAY_STACKSEG_END $ac_func
32920_ACEOF
32921
32922 break
32923fi
32924
32925 done
32926fi
32927
Reid Spencera773bd52006-08-04 18:18:08 +000032928{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32929echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032930if test "${ac_cv_c_stack_direction+set}" = set; then
32931 echo $ECHO_N "(cached) $ECHO_C" >&6
32932else
32933 if test "$cross_compiling" = yes; then
32934 ac_cv_c_stack_direction=0
32935else
32936 cat >conftest.$ac_ext <<_ACEOF
32937/* confdefs.h. */
32938_ACEOF
32939cat confdefs.h >>conftest.$ac_ext
32940cat >>conftest.$ac_ext <<_ACEOF
32941/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032942$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032943int
32944find_stack_direction ()
32945{
32946 static char *addr = 0;
32947 auto char dummy;
32948 if (addr == 0)
32949 {
32950 addr = &dummy;
32951 return find_stack_direction ();
32952 }
John Criswell0021c312004-02-13 21:57:29 +000032953 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032954 return (&dummy > addr) ? 1 : -1;
32955}
John Criswell0021c312004-02-13 21:57:29 +000032956
John Criswell0021c312004-02-13 21:57:29 +000032957int
32958main ()
32959{
Reid Spencera773bd52006-08-04 18:18:08 +000032960 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000032961}
32962_ACEOF
32963rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032964if { (ac_try="$ac_link"
32965case "(($ac_try" in
32966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32967 *) ac_try_echo=$ac_try;;
32968esac
32969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32970 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032971 ac_status=$?
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032974 { (case "(($ac_try" in
32975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32976 *) ac_try_echo=$ac_try;;
32977esac
32978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32979 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032980 ac_status=$?
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032983 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000032984else
32985 echo "$as_me: program exited with status $ac_status" >&5
32986echo "$as_me: failed program was:" >&5
32987sed 's/^/| /' conftest.$ac_ext >&5
32988
32989( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032990ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000032991fi
Reid Spencera773bd52006-08-04 18:18:08 +000032992rm -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 +000032993fi
Reid Spencera773bd52006-08-04 18:18:08 +000032994
32995
John Criswell0021c312004-02-13 21:57:29 +000032996fi
Reid Spencera773bd52006-08-04 18:18:08 +000032997{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32998echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032999
33000cat >>confdefs.h <<_ACEOF
33001#define STACK_DIRECTION $ac_cv_c_stack_direction
33002_ACEOF
33003
33004
John Criswell0021c312004-02-13 21:57:29 +000033005fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033006
33007
Reid Spencera773bd52006-08-04 18:18:08 +000033008{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33009echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033010if test "${ac_cv_func_rand48+set}" = set; then
33011 echo $ECHO_N "(cached) $ECHO_C" >&6
33012else
Reid Spencera773bd52006-08-04 18:18:08 +000033013 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033014ac_cpp='$CXXCPP $CPPFLAGS'
33015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33018
33019 cat >conftest.$ac_ext <<_ACEOF
33020/* confdefs.h. */
33021_ACEOF
33022cat confdefs.h >>conftest.$ac_ext
33023cat >>conftest.$ac_ext <<_ACEOF
33024/* end confdefs.h. */
33025#include <stdlib.h>
33026int
33027main ()
33028{
33029srand48(0);lrand48();drand48();
33030 ;
33031 return 0;
33032}
33033_ACEOF
33034rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033035if { (ac_try="$ac_compile"
33036case "(($ac_try" in
33037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038 *) ac_try_echo=$ac_try;;
33039esac
33040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033042 ac_status=$?
33043 grep -v '^ *+' conftest.er1 >conftest.err
33044 rm -f conftest.er1
33045 cat conftest.err >&5
33046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033047 (exit $ac_status); } &&
33048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33049 { (case "(($ac_try" in
33050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33051 *) ac_try_echo=$ac_try;;
33052esac
33053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33054 (eval "$ac_try") 2>&5
33055 ac_status=$?
33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); }; } &&
33058 { ac_try='test -s conftest.$ac_objext'
33059 { (case "(($ac_try" in
33060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33061 *) ac_try_echo=$ac_try;;
33062esac
33063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33064 (eval "$ac_try") 2>&5
33065 ac_status=$?
33066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33067 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033068 ac_cv_func_rand48=yes
33069else
33070 echo "$as_me: failed program was:" >&5
33071sed 's/^/| /' conftest.$ac_ext >&5
33072
Reid Spencera773bd52006-08-04 18:18:08 +000033073 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033074fi
Reid Spencera773bd52006-08-04 18:18:08 +000033075
33076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033077 ac_ext=c
33078ac_cpp='$CPP $CPPFLAGS'
33079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33081ac_compiler_gnu=$ac_cv_c_compiler_gnu
33082
33083fi
Reid Spencera773bd52006-08-04 18:18:08 +000033084{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33085echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033086
33087if test "$ac_cv_func_rand48" = "yes" ; then
33088
33089cat >>confdefs.h <<\_ACEOF
33090#define HAVE_RAND48 1
33091_ACEOF
33092
33093fi
John Criswell0021c312004-02-13 21:57:29 +000033094
33095
Reid Spencera773bd52006-08-04 18:18:08 +000033096{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33097echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033098if test "${ac_cv_cxx_namespaces+set}" = set; then
33099 echo $ECHO_N "(cached) $ECHO_C" >&6
33100else
Reid Spencera773bd52006-08-04 18:18:08 +000033101 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033102ac_cpp='$CXXCPP $CPPFLAGS'
33103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33106
33107 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033108/* confdefs.h. */
33109_ACEOF
33110cat confdefs.h >>conftest.$ac_ext
33111cat >>conftest.$ac_ext <<_ACEOF
33112/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033113namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000033114int
33115main ()
33116{
33117using namespace Outer::Inner; return i;
33118 ;
33119 return 0;
33120}
33121_ACEOF
33122rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033123if { (ac_try="$ac_compile"
33124case "(($ac_try" in
33125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126 *) ac_try_echo=$ac_try;;
33127esac
33128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033130 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033131 grep -v '^ *+' conftest.er1 >conftest.err
33132 rm -f conftest.er1
33133 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033135 (exit $ac_status); } &&
33136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33137 { (case "(($ac_try" in
33138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33139 *) ac_try_echo=$ac_try;;
33140esac
33141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33142 (eval "$ac_try") 2>&5
33143 ac_status=$?
33144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145 (exit $ac_status); }; } &&
33146 { ac_try='test -s conftest.$ac_objext'
33147 { (case "(($ac_try" in
33148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33149 *) ac_try_echo=$ac_try;;
33150esac
33151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33152 (eval "$ac_try") 2>&5
33153 ac_status=$?
33154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033156 ac_cv_cxx_namespaces=yes
33157else
33158 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033159sed 's/^/| /' conftest.$ac_ext >&5
33160
Reid Spencera773bd52006-08-04 18:18:08 +000033161 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000033162fi
Reid Spencera773bd52006-08-04 18:18:08 +000033163
33164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033165 ac_ext=c
33166ac_cpp='$CPP $CPPFLAGS'
33167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33169ac_compiler_gnu=$ac_cv_c_compiler_gnu
33170
33171
33172fi
Reid Spencera773bd52006-08-04 18:18:08 +000033173{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33174echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033175if test "$ac_cv_cxx_namespaces" = yes; then
33176
33177cat >>confdefs.h <<\_ACEOF
33178#define HAVE_NAMESPACES
33179_ACEOF
33180
33181fi
33182
Reid Spencera773bd52006-08-04 18:18:08 +000033183{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33184echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033185if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33186 echo $ECHO_N "(cached) $ECHO_C" >&6
33187else
33188
Reid Spencera773bd52006-08-04 18:18:08 +000033189 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033190ac_cpp='$CXXCPP $CPPFLAGS'
33191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33194
33195 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033196/* confdefs.h. */
33197_ACEOF
33198cat confdefs.h >>conftest.$ac_ext
33199cat >>conftest.$ac_ext <<_ACEOF
33200/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033201#include <iterator>
33202#ifdef HAVE_NAMESPACES
33203using namespace std;
33204#endif
John Criswell7a73b802003-06-30 21:59:07 +000033205int
33206main ()
33207{
33208iterator<int,int,int> t; return 0;
33209 ;
33210 return 0;
33211}
33212_ACEOF
33213rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033214if { (ac_try="$ac_compile"
33215case "(($ac_try" in
33216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33217 *) ac_try_echo=$ac_try;;
33218esac
33219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33220 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033221 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033222 grep -v '^ *+' conftest.er1 >conftest.err
33223 rm -f conftest.er1
33224 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033226 (exit $ac_status); } &&
33227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33228 { (case "(($ac_try" in
33229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33230 *) ac_try_echo=$ac_try;;
33231esac
33232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33233 (eval "$ac_try") 2>&5
33234 ac_status=$?
33235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33236 (exit $ac_status); }; } &&
33237 { ac_try='test -s conftest.$ac_objext'
33238 { (case "(($ac_try" in
33239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33240 *) ac_try_echo=$ac_try;;
33241esac
33242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33243 (eval "$ac_try") 2>&5
33244 ac_status=$?
33245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033247 ac_cv_cxx_have_std_iterator=yes
33248else
33249 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033250sed 's/^/| /' conftest.$ac_ext >&5
33251
Reid Spencera773bd52006-08-04 18:18:08 +000033252 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033253fi
Reid Spencera773bd52006-08-04 18:18:08 +000033254
33255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033256 ac_ext=c
33257ac_cpp='$CPP $CPPFLAGS'
33258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33260ac_compiler_gnu=$ac_cv_c_compiler_gnu
33261
33262
33263fi
Reid Spencera773bd52006-08-04 18:18:08 +000033264{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33265echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033266if test "$ac_cv_cxx_have_std_iterator" = yes
33267then
John Criswell40468462004-09-24 21:19:06 +000033268
33269cat >>confdefs.h <<\_ACEOF
33270#define HAVE_STD_ITERATOR 1
33271_ACEOF
33272
33273else
33274
33275cat >>confdefs.h <<\_ACEOF
33276#define HAVE_STD_ITERATOR 0
33277_ACEOF
33278
John Criswell7a73b802003-06-30 21:59:07 +000033279fi
33280
Reid Spencera773bd52006-08-04 18:18:08 +000033281{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33282echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033283if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33284 echo $ECHO_N "(cached) $ECHO_C" >&6
33285else
33286
Reid Spencera773bd52006-08-04 18:18:08 +000033287 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033288ac_cpp='$CXXCPP $CPPFLAGS'
33289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33292
33293 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033294/* confdefs.h. */
33295_ACEOF
33296cat confdefs.h >>conftest.$ac_ext
33297cat >>conftest.$ac_ext <<_ACEOF
33298/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033299#include <iterator>
33300#ifdef HAVE_NAMESPACES
33301using namespace std;
33302#endif
John Criswell7a73b802003-06-30 21:59:07 +000033303int
33304main ()
33305{
John Criswellc78022e2003-07-29 19:11:58 +000033306bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033307 ;
33308 return 0;
33309}
33310_ACEOF
33311rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033312if { (ac_try="$ac_compile"
33313case "(($ac_try" in
33314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33315 *) ac_try_echo=$ac_try;;
33316esac
33317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33318 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033319 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033320 grep -v '^ *+' conftest.er1 >conftest.err
33321 rm -f conftest.er1
33322 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033324 (exit $ac_status); } &&
33325 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33326 { (case "(($ac_try" in
33327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33328 *) ac_try_echo=$ac_try;;
33329esac
33330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33331 (eval "$ac_try") 2>&5
33332 ac_status=$?
33333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334 (exit $ac_status); }; } &&
33335 { ac_try='test -s conftest.$ac_objext'
33336 { (case "(($ac_try" in
33337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33338 *) ac_try_echo=$ac_try;;
33339esac
33340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33341 (eval "$ac_try") 2>&5
33342 ac_status=$?
33343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33344 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033345 ac_cv_cxx_have_bi_iterator=yes
33346else
33347 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033348sed 's/^/| /' conftest.$ac_ext >&5
33349
Reid Spencera773bd52006-08-04 18:18:08 +000033350 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033351fi
Reid Spencera773bd52006-08-04 18:18:08 +000033352
33353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033354 ac_ext=c
33355ac_cpp='$CPP $CPPFLAGS'
33356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33358ac_compiler_gnu=$ac_cv_c_compiler_gnu
33359
33360
33361fi
Reid Spencera773bd52006-08-04 18:18:08 +000033362{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33363echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033364if test "$ac_cv_cxx_have_bi_iterator" = yes
33365then
John Criswell40468462004-09-24 21:19:06 +000033366
33367cat >>confdefs.h <<\_ACEOF
33368#define HAVE_BI_ITERATOR 1
33369_ACEOF
33370
33371else
33372
33373cat >>confdefs.h <<\_ACEOF
33374#define HAVE_BI_ITERATOR 0
33375_ACEOF
33376
John Criswell7a73b802003-06-30 21:59:07 +000033377fi
33378
Reid Spencera773bd52006-08-04 18:18:08 +000033379{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33380echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033381if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33382 echo $ECHO_N "(cached) $ECHO_C" >&6
33383else
33384
Reid Spencera773bd52006-08-04 18:18:08 +000033385 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033386ac_cpp='$CXXCPP $CPPFLAGS'
33387ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33388ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33389ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33390
33391 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033392/* confdefs.h. */
33393_ACEOF
33394cat confdefs.h >>conftest.$ac_ext
33395cat >>conftest.$ac_ext <<_ACEOF
33396/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033397#include <iterator>
33398#ifdef HAVE_NAMESPACES
33399using namespace std;
33400#endif
John Criswell7a73b802003-06-30 21:59:07 +000033401int
33402main ()
33403{
John Criswellc78022e2003-07-29 19:11:58 +000033404forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033405 ;
33406 return 0;
33407}
33408_ACEOF
33409rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033410if { (ac_try="$ac_compile"
33411case "(($ac_try" in
33412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33413 *) ac_try_echo=$ac_try;;
33414esac
33415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33416 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033417 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033418 grep -v '^ *+' conftest.er1 >conftest.err
33419 rm -f conftest.er1
33420 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033422 (exit $ac_status); } &&
33423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33424 { (case "(($ac_try" in
33425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33426 *) ac_try_echo=$ac_try;;
33427esac
33428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33429 (eval "$ac_try") 2>&5
33430 ac_status=$?
33431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33432 (exit $ac_status); }; } &&
33433 { ac_try='test -s conftest.$ac_objext'
33434 { (case "(($ac_try" in
33435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33436 *) ac_try_echo=$ac_try;;
33437esac
33438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33439 (eval "$ac_try") 2>&5
33440 ac_status=$?
33441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33442 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033443 ac_cv_cxx_have_fwd_iterator=yes
33444else
33445 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033446sed 's/^/| /' conftest.$ac_ext >&5
33447
Reid Spencera773bd52006-08-04 18:18:08 +000033448 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033449fi
Reid Spencera773bd52006-08-04 18:18:08 +000033450
33451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033452 ac_ext=c
33453ac_cpp='$CPP $CPPFLAGS'
33454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33456ac_compiler_gnu=$ac_cv_c_compiler_gnu
33457
33458
33459fi
Reid Spencera773bd52006-08-04 18:18:08 +000033460{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33461echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033462if test "$ac_cv_cxx_have_fwd_iterator" = yes
33463then
John Criswell40468462004-09-24 21:19:06 +000033464
33465cat >>confdefs.h <<\_ACEOF
33466#define HAVE_FWD_ITERATOR 1
33467_ACEOF
33468
33469else
33470
33471cat >>confdefs.h <<\_ACEOF
33472#define HAVE_FWD_ITERATOR 0
33473_ACEOF
33474
John Criswell7a73b802003-06-30 21:59:07 +000033475fi
33476
33477
Reid Spencera773bd52006-08-04 18:18:08 +000033478{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33479echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033480if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33481 echo $ECHO_N "(cached) $ECHO_C" >&6
33482else
Reid Spencera773bd52006-08-04 18:18:08 +000033483 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033484ac_cpp='$CXXCPP $CPPFLAGS'
33485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33488
Reid Spencerabec8f92004-10-27 23:03:44 +000033489 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033490/* confdefs.h. */
33491_ACEOF
33492cat confdefs.h >>conftest.$ac_ext
33493cat >>conftest.$ac_ext <<_ACEOF
33494/* end confdefs.h. */
33495#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033496int
33497main ()
33498{
33499float f; isnan(f);
33500 ;
33501 return 0;
33502}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033503_ACEOF
33504rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033505if { (ac_try="$ac_compile"
33506case "(($ac_try" in
33507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33508 *) ac_try_echo=$ac_try;;
33509esac
33510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33511 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033512 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033513 grep -v '^ *+' conftest.er1 >conftest.err
33514 rm -f conftest.er1
33515 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033517 (exit $ac_status); } &&
33518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33519 { (case "(($ac_try" in
33520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33521 *) ac_try_echo=$ac_try;;
33522esac
33523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33524 (eval "$ac_try") 2>&5
33525 ac_status=$?
33526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527 (exit $ac_status); }; } &&
33528 { ac_try='test -s conftest.$ac_objext'
33529 { (case "(($ac_try" in
33530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33531 *) ac_try_echo=$ac_try;;
33532esac
33533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33534 (eval "$ac_try") 2>&5
33535 ac_status=$?
33536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033538 ac_cv_func_isnan_in_math_h=yes
33539else
33540 echo "$as_me: failed program was:" >&5
33541sed 's/^/| /' conftest.$ac_ext >&5
33542
Reid Spencera773bd52006-08-04 18:18:08 +000033543 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033544fi
Reid Spencera773bd52006-08-04 18:18:08 +000033545
33546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033547 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033548ac_cpp='$CPP $CPPFLAGS'
33549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33551ac_compiler_gnu=$ac_cv_c_compiler_gnu
33552
33553fi
Reid Spencera773bd52006-08-04 18:18:08 +000033554{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33555echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033556
33557
33558if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033559
33560cat >>confdefs.h <<\_ACEOF
33561#define HAVE_ISNAN_IN_MATH_H 1
33562_ACEOF
33563
Reid Spencerabec8f92004-10-27 23:03:44 +000033564fi
33565
Reid Spencera773bd52006-08-04 18:18:08 +000033566{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33567echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033568if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33569 echo $ECHO_N "(cached) $ECHO_C" >&6
33570else
Reid Spencera773bd52006-08-04 18:18:08 +000033571 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033572ac_cpp='$CXXCPP $CPPFLAGS'
33573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33576
Reid Spencerabec8f92004-10-27 23:03:44 +000033577 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033578/* confdefs.h. */
33579_ACEOF
33580cat confdefs.h >>conftest.$ac_ext
33581cat >>conftest.$ac_ext <<_ACEOF
33582/* end confdefs.h. */
33583#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033584int
33585main ()
33586{
33587float f; isnan(f);
33588 ;
33589 return 0;
33590}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033591_ACEOF
33592rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033593if { (ac_try="$ac_compile"
33594case "(($ac_try" in
33595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33596 *) ac_try_echo=$ac_try;;
33597esac
33598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33599 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033600 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033601 grep -v '^ *+' conftest.er1 >conftest.err
33602 rm -f conftest.er1
33603 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033605 (exit $ac_status); } &&
33606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33607 { (case "(($ac_try" in
33608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33609 *) ac_try_echo=$ac_try;;
33610esac
33611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33612 (eval "$ac_try") 2>&5
33613 ac_status=$?
33614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615 (exit $ac_status); }; } &&
33616 { ac_try='test -s conftest.$ac_objext'
33617 { (case "(($ac_try" in
33618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33619 *) ac_try_echo=$ac_try;;
33620esac
33621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33622 (eval "$ac_try") 2>&5
33623 ac_status=$?
33624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33625 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033626 ac_cv_func_isnan_in_cmath=yes
33627else
33628 echo "$as_me: failed program was:" >&5
33629sed 's/^/| /' conftest.$ac_ext >&5
33630
Reid Spencera773bd52006-08-04 18:18:08 +000033631 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033632fi
Reid Spencera773bd52006-08-04 18:18:08 +000033633
33634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033635 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033636ac_cpp='$CPP $CPPFLAGS'
33637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33639ac_compiler_gnu=$ac_cv_c_compiler_gnu
33640
33641fi
Reid Spencera773bd52006-08-04 18:18:08 +000033642{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33643echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033644
33645if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033646
33647cat >>confdefs.h <<\_ACEOF
33648#define HAVE_ISNAN_IN_CMATH 1
33649_ACEOF
33650
Reid Spencerabec8f92004-10-27 23:03:44 +000033651fi
33652
Reid Spencera773bd52006-08-04 18:18:08 +000033653{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33654echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033655if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33656 echo $ECHO_N "(cached) $ECHO_C" >&6
33657else
Reid Spencera773bd52006-08-04 18:18:08 +000033658 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033659ac_cpp='$CXXCPP $CPPFLAGS'
33660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33663
Reid Spencerabec8f92004-10-27 23:03:44 +000033664 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033665/* confdefs.h. */
33666_ACEOF
33667cat confdefs.h >>conftest.$ac_ext
33668cat >>conftest.$ac_ext <<_ACEOF
33669/* end confdefs.h. */
33670#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033671int
33672main ()
33673{
33674float f; std::isnan(f);
33675 ;
33676 return 0;
33677}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033678_ACEOF
33679rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033680if { (ac_try="$ac_compile"
33681case "(($ac_try" in
33682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33683 *) ac_try_echo=$ac_try;;
33684esac
33685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33686 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033687 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033688 grep -v '^ *+' conftest.er1 >conftest.err
33689 rm -f conftest.er1
33690 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033692 (exit $ac_status); } &&
33693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33694 { (case "(($ac_try" in
33695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33696 *) ac_try_echo=$ac_try;;
33697esac
33698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33699 (eval "$ac_try") 2>&5
33700 ac_status=$?
33701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33702 (exit $ac_status); }; } &&
33703 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033713 ac_cv_func_std_isnan_in_cmath=yes
33714else
33715 echo "$as_me: failed program was:" >&5
33716sed 's/^/| /' conftest.$ac_ext >&5
33717
Reid Spencera773bd52006-08-04 18:18:08 +000033718 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033719fi
Reid Spencera773bd52006-08-04 18:18:08 +000033720
33721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033722 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033723ac_cpp='$CPP $CPPFLAGS'
33724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33726ac_compiler_gnu=$ac_cv_c_compiler_gnu
33727
33728fi
Reid Spencera773bd52006-08-04 18:18:08 +000033729{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33730echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033731
33732if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033733
33734cat >>confdefs.h <<\_ACEOF
33735#define HAVE_STD_ISNAN_IN_CMATH 1
33736_ACEOF
33737
Reid Spencerabec8f92004-10-27 23:03:44 +000033738fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033739
33740
Reid Spencera773bd52006-08-04 18:18:08 +000033741{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33742echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033743if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33744 echo $ECHO_N "(cached) $ECHO_C" >&6
33745else
Reid Spencera773bd52006-08-04 18:18:08 +000033746 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033747ac_cpp='$CXXCPP $CPPFLAGS'
33748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33751
Reid Spencerabec8f92004-10-27 23:03:44 +000033752 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033753/* confdefs.h. */
33754_ACEOF
33755cat confdefs.h >>conftest.$ac_ext
33756cat >>conftest.$ac_ext <<_ACEOF
33757/* end confdefs.h. */
33758#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033759int
33760main ()
33761{
33762float f; isinf(f);
33763 ;
33764 return 0;
33765}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033766_ACEOF
33767rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033768if { (ac_try="$ac_compile"
33769case "(($ac_try" in
33770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33771 *) ac_try_echo=$ac_try;;
33772esac
33773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33774 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033775 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033776 grep -v '^ *+' conftest.er1 >conftest.err
33777 rm -f conftest.er1
33778 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033780 (exit $ac_status); } &&
33781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33782 { (case "(($ac_try" in
33783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33784 *) ac_try_echo=$ac_try;;
33785esac
33786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33787 (eval "$ac_try") 2>&5
33788 ac_status=$?
33789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790 (exit $ac_status); }; } &&
33791 { ac_try='test -s conftest.$ac_objext'
33792 { (case "(($ac_try" in
33793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33794 *) ac_try_echo=$ac_try;;
33795esac
33796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33797 (eval "$ac_try") 2>&5
33798 ac_status=$?
33799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033801 ac_cv_func_isinf_in_math_h=yes
33802else
33803 echo "$as_me: failed program was:" >&5
33804sed 's/^/| /' conftest.$ac_ext >&5
33805
Reid Spencera773bd52006-08-04 18:18:08 +000033806 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033807fi
Reid Spencera773bd52006-08-04 18:18:08 +000033808
33809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033810 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033811ac_cpp='$CPP $CPPFLAGS'
33812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33814ac_compiler_gnu=$ac_cv_c_compiler_gnu
33815
33816fi
Reid Spencera773bd52006-08-04 18:18:08 +000033817{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33818echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033819
33820if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033821
33822cat >>confdefs.h <<\_ACEOF
33823#define HAVE_ISINF_IN_MATH_H 1
33824_ACEOF
33825
Reid Spencerabec8f92004-10-27 23:03:44 +000033826fi
33827
Reid Spencera773bd52006-08-04 18:18:08 +000033828{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33829echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033830if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33831 echo $ECHO_N "(cached) $ECHO_C" >&6
33832else
Reid Spencera773bd52006-08-04 18:18:08 +000033833 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033834ac_cpp='$CXXCPP $CPPFLAGS'
33835ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33836ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33837ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33838
Reid Spencerabec8f92004-10-27 23:03:44 +000033839 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033840/* confdefs.h. */
33841_ACEOF
33842cat confdefs.h >>conftest.$ac_ext
33843cat >>conftest.$ac_ext <<_ACEOF
33844/* end confdefs.h. */
33845#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033846int
33847main ()
33848{
33849float f; isinf(f);
33850 ;
33851 return 0;
33852}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033853_ACEOF
33854rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033855if { (ac_try="$ac_compile"
33856case "(($ac_try" in
33857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33858 *) ac_try_echo=$ac_try;;
33859esac
33860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33861 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033862 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033863 grep -v '^ *+' conftest.er1 >conftest.err
33864 rm -f conftest.er1
33865 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033867 (exit $ac_status); } &&
33868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33869 { (case "(($ac_try" in
33870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33871 *) ac_try_echo=$ac_try;;
33872esac
33873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33874 (eval "$ac_try") 2>&5
33875 ac_status=$?
33876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33877 (exit $ac_status); }; } &&
33878 { ac_try='test -s conftest.$ac_objext'
33879 { (case "(($ac_try" in
33880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33881 *) ac_try_echo=$ac_try;;
33882esac
33883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33884 (eval "$ac_try") 2>&5
33885 ac_status=$?
33886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33887 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033888 ac_cv_func_isinf_in_cmath=yes
33889else
33890 echo "$as_me: failed program was:" >&5
33891sed 's/^/| /' conftest.$ac_ext >&5
33892
Reid Spencera773bd52006-08-04 18:18:08 +000033893 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033894fi
Reid Spencera773bd52006-08-04 18:18:08 +000033895
33896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033897 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033898ac_cpp='$CPP $CPPFLAGS'
33899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33901ac_compiler_gnu=$ac_cv_c_compiler_gnu
33902
33903fi
Reid Spencera773bd52006-08-04 18:18:08 +000033904{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33905echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033906
33907if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033908
33909cat >>confdefs.h <<\_ACEOF
33910#define HAVE_ISINF_IN_CMATH 1
33911_ACEOF
33912
Reid Spencerabec8f92004-10-27 23:03:44 +000033913fi
33914
Reid Spencera773bd52006-08-04 18:18:08 +000033915{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33916echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033917if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33918 echo $ECHO_N "(cached) $ECHO_C" >&6
33919else
Reid Spencera773bd52006-08-04 18:18:08 +000033920 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033921ac_cpp='$CXXCPP $CPPFLAGS'
33922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33925
Reid Spencerabec8f92004-10-27 23:03:44 +000033926 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033927/* confdefs.h. */
33928_ACEOF
33929cat confdefs.h >>conftest.$ac_ext
33930cat >>conftest.$ac_ext <<_ACEOF
33931/* end confdefs.h. */
33932#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033933int
33934main ()
33935{
33936float f; std::isinf(f)}
33937 ;
33938 return 0;
33939}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033940_ACEOF
33941rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033942if { (ac_try="$ac_compile"
33943case "(($ac_try" in
33944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33945 *) ac_try_echo=$ac_try;;
33946esac
33947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33948 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033949 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033950 grep -v '^ *+' conftest.er1 >conftest.err
33951 rm -f conftest.er1
33952 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033954 (exit $ac_status); } &&
33955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33956 { (case "(($ac_try" in
33957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958 *) ac_try_echo=$ac_try;;
33959esac
33960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961 (eval "$ac_try") 2>&5
33962 ac_status=$?
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); }; } &&
33965 { ac_try='test -s conftest.$ac_objext'
33966 { (case "(($ac_try" in
33967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33968 *) ac_try_echo=$ac_try;;
33969esac
33970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33971 (eval "$ac_try") 2>&5
33972 ac_status=$?
33973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033975 ac_cv_func_std_isinf_in_cmath=yes
33976else
33977 echo "$as_me: failed program was:" >&5
33978sed 's/^/| /' conftest.$ac_ext >&5
33979
Reid Spencera773bd52006-08-04 18:18:08 +000033980 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033981fi
Reid Spencera773bd52006-08-04 18:18:08 +000033982
33983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033984 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033985ac_cpp='$CPP $CPPFLAGS'
33986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33988ac_compiler_gnu=$ac_cv_c_compiler_gnu
33989
33990fi
Reid Spencera773bd52006-08-04 18:18:08 +000033991{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33992echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033993
33994if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033995
33996cat >>confdefs.h <<\_ACEOF
33997#define HAVE_STD_ISINF_IN_CMATH 1
33998_ACEOF
33999
Reid Spencerabec8f92004-10-27 23:03:44 +000034000fi
34001
Reid Spencera773bd52006-08-04 18:18:08 +000034002{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34003echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000034004if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34005 echo $ECHO_N "(cached) $ECHO_C" >&6
34006else
Reid Spencera773bd52006-08-04 18:18:08 +000034007 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000034008ac_cpp='$CXXCPP $CPPFLAGS'
34009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34012
Reid Spencerabec8f92004-10-27 23:03:44 +000034013 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000034014/* confdefs.h. */
34015_ACEOF
34016cat confdefs.h >>conftest.$ac_ext
34017cat >>conftest.$ac_ext <<_ACEOF
34018/* end confdefs.h. */
34019#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000034020int
34021main ()
34022{
34023float f; finite(f);
34024 ;
34025 return 0;
34026}
Brian Gaeked59a6472004-07-21 03:33:58 +000034027_ACEOF
34028rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034029if { (ac_try="$ac_compile"
34030case "(($ac_try" in
34031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34032 *) ac_try_echo=$ac_try;;
34033esac
34034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34035 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000034036 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034037 grep -v '^ *+' conftest.er1 >conftest.err
34038 rm -f conftest.er1
34039 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000034040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034041 (exit $ac_status); } &&
34042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34043 { (case "(($ac_try" in
34044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34045 *) ac_try_echo=$ac_try;;
34046esac
34047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34048 (eval "$ac_try") 2>&5
34049 ac_status=$?
34050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051 (exit $ac_status); }; } &&
34052 { ac_try='test -s conftest.$ac_objext'
34053 { (case "(($ac_try" in
34054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34055 *) ac_try_echo=$ac_try;;
34056esac
34057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34058 (eval "$ac_try") 2>&5
34059 ac_status=$?
34060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034062 ac_cv_func_finite_in_ieeefp_h=yes
34063else
34064 echo "$as_me: failed program was:" >&5
34065sed 's/^/| /' conftest.$ac_ext >&5
34066
Reid Spencera773bd52006-08-04 18:18:08 +000034067 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000034068fi
Reid Spencera773bd52006-08-04 18:18:08 +000034069
34070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034071 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000034072ac_cpp='$CPP $CPPFLAGS'
34073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34075ac_compiler_gnu=$ac_cv_c_compiler_gnu
34076
34077fi
Reid Spencera773bd52006-08-04 18:18:08 +000034078{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34079echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034080
Brian Gaeke6802b552004-10-28 05:06:45 +000034081if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034082
34083cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000034084#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000034085_ACEOF
34086
Reid Spencerabec8f92004-10-27 23:03:44 +000034087fi
34088
34089
34090
Reid Spencer30fe5262007-01-20 07:48:49 +000034091if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000034092
34093
34094for ac_header in stdlib.h unistd.h
34095do
34096as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034101 echo $ECHO_N "(cached) $ECHO_C" >&6
34102fi
Reid Spencera773bd52006-08-04 18:18:08 +000034103ac_res=`eval echo '${'$as_ac_Header'}'`
34104 { echo "$as_me:$LINENO: result: $ac_res" >&5
34105echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034106else
34107 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000034108{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34109echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034110cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034111/* confdefs.h. */
34112_ACEOF
34113cat confdefs.h >>conftest.$ac_ext
34114cat >>conftest.$ac_ext <<_ACEOF
34115/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034116$ac_includes_default
34117#include <$ac_header>
34118_ACEOF
34119rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034120if { (ac_try="$ac_compile"
34121case "(($ac_try" in
34122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34123 *) ac_try_echo=$ac_try;;
34124esac
34125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34126 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034127 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034128 grep -v '^ *+' conftest.er1 >conftest.err
34129 rm -f conftest.er1
34130 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034132 (exit $ac_status); } &&
34133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34134 { (case "(($ac_try" in
34135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34136 *) ac_try_echo=$ac_try;;
34137esac
34138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34139 (eval "$ac_try") 2>&5
34140 ac_status=$?
34141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142 (exit $ac_status); }; } &&
34143 { ac_try='test -s conftest.$ac_objext'
34144 { (case "(($ac_try" in
34145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34146 *) ac_try_echo=$ac_try;;
34147esac
34148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34149 (eval "$ac_try") 2>&5
34150 ac_status=$?
34151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34152 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034153 ac_header_compiler=yes
34154else
34155 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034156sed 's/^/| /' conftest.$ac_ext >&5
34157
Reid Spencera773bd52006-08-04 18:18:08 +000034158 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000034159fi
Reid Spencera773bd52006-08-04 18:18:08 +000034160
34161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34162{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34163echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034164
34165# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000034166{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34167echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034168cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034169/* confdefs.h. */
34170_ACEOF
34171cat confdefs.h >>conftest.$ac_ext
34172cat >>conftest.$ac_ext <<_ACEOF
34173/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034174#include <$ac_header>
34175_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034176if { (ac_try="$ac_cpp conftest.$ac_ext"
34177case "(($ac_try" in
34178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34179 *) ac_try_echo=$ac_try;;
34180esac
34181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034183 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000034184 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000034185 rm -f conftest.er1
34186 cat conftest.err >&5
34187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034188 (exit $ac_status); } >/dev/null; then
34189 if test -s conftest.err; then
34190 ac_cpp_err=$ac_c_preproc_warn_flag
34191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34192 else
34193 ac_cpp_err=
34194 fi
34195else
34196 ac_cpp_err=yes
34197fi
34198if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000034199 ac_header_preproc=yes
34200else
34201 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034202sed 's/^/| /' conftest.$ac_ext >&5
34203
John Criswell7a73b802003-06-30 21:59:07 +000034204 ac_header_preproc=no
34205fi
Reid Spencera773bd52006-08-04 18:18:08 +000034206
John Criswell7a73b802003-06-30 21:59:07 +000034207rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000034208{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34209echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034210
34211# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034212case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34213 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000034214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34215echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34217echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34218 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000034219 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000034220 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000034221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34222echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34224echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34226echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34228echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000034229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34230echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34232echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000034233 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000034234## ----------------------------------- ##
34235## Report this to llvmbugs@cs.uiuc.edu ##
34236## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000034237_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000034238 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000034239 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034240esac
Reid Spencera773bd52006-08-04 18:18:08 +000034241{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034244 echo $ECHO_N "(cached) $ECHO_C" >&6
34245else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034246 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000034247fi
Reid Spencera773bd52006-08-04 18:18:08 +000034248ac_res=`eval echo '${'$as_ac_Header'}'`
34249 { echo "$as_me:$LINENO: result: $ac_res" >&5
34250echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034251
34252fi
34253if test `eval echo '${'$as_ac_Header'}'` = yes; then
34254 cat >>confdefs.h <<_ACEOF
34255#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34256_ACEOF
34257
34258fi
34259
34260done
34261
34262
34263for ac_func in getpagesize
34264do
34265as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034266{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34267echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34268if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034269 echo $ECHO_N "(cached) $ECHO_C" >&6
34270else
34271 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034272/* confdefs.h. */
34273_ACEOF
34274cat confdefs.h >>conftest.$ac_ext
34275cat >>conftest.$ac_ext <<_ACEOF
34276/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034277/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34279#define $ac_func innocuous_$ac_func
34280
John Criswell7a73b802003-06-30 21:59:07 +000034281/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000034282 which can conflict with char $ac_func (); below.
34283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34284 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034285
John Criswell0c38eaf2003-09-10 15:17:25 +000034286#ifdef __STDC__
34287# include <limits.h>
34288#else
34289# include <assert.h>
34290#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000034291
34292#undef $ac_func
34293
Reid Spencera773bd52006-08-04 18:18:08 +000034294/* Override any GCC internal prototype to avoid an error.
34295 Use char because int might match the return type of a GCC
34296 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000034297#ifdef __cplusplus
34298extern "C"
34299#endif
John Criswell7a73b802003-06-30 21:59:07 +000034300char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034301/* The GNU C library defines this for functions which it implements
34302 to always fail with ENOSYS. Some functions are actually named
34303 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000034304#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000034305choke me
John Criswell7a73b802003-06-30 21:59:07 +000034306#endif
34307
John Criswell0c38eaf2003-09-10 15:17:25 +000034308int
34309main ()
34310{
Reid Spencera773bd52006-08-04 18:18:08 +000034311return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034312 ;
34313 return 0;
34314}
34315_ACEOF
34316rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034317if { (ac_try="$ac_link"
34318case "(($ac_try" in
34319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34320 *) ac_try_echo=$ac_try;;
34321esac
34322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34323 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034324 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034325 grep -v '^ *+' conftest.er1 >conftest.err
34326 rm -f conftest.er1
34327 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034329 (exit $ac_status); } &&
34330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34331 { (case "(($ac_try" in
34332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34333 *) ac_try_echo=$ac_try;;
34334esac
34335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34336 (eval "$ac_try") 2>&5
34337 ac_status=$?
34338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34339 (exit $ac_status); }; } &&
34340 { ac_try='test -s conftest$ac_exeext'
34341 { (case "(($ac_try" in
34342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34343 *) ac_try_echo=$ac_try;;
34344esac
34345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34346 (eval "$ac_try") 2>&5
34347 ac_status=$?
34348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34349 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034350 eval "$as_ac_var=yes"
34351else
34352 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034353sed 's/^/| /' conftest.$ac_ext >&5
34354
Reid Spencera773bd52006-08-04 18:18:08 +000034355 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000034356fi
Reid Spencera773bd52006-08-04 18:18:08 +000034357
Bill Wendlingebcceee2009-04-18 11:20:33 +000034358rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034359 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034360fi
Reid Spencera773bd52006-08-04 18:18:08 +000034361ac_res=`eval echo '${'$as_ac_var'}'`
34362 { echo "$as_me:$LINENO: result: $ac_res" >&5
34363echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034364if test `eval echo '${'$as_ac_var'}'` = yes; then
34365 cat >>confdefs.h <<_ACEOF
34366#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34367_ACEOF
34368
34369fi
34370done
34371
Reid Spencera773bd52006-08-04 18:18:08 +000034372{ echo "$as_me:$LINENO: checking for working mmap" >&5
34373echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034374if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34375 echo $ECHO_N "(cached) $ECHO_C" >&6
34376else
34377 if test "$cross_compiling" = yes; then
34378 ac_cv_func_mmap_fixed_mapped=no
34379else
34380 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034381/* confdefs.h. */
34382_ACEOF
34383cat confdefs.h >>conftest.$ac_ext
34384cat >>conftest.$ac_ext <<_ACEOF
34385/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034386$ac_includes_default
34387/* malloc might have been renamed as rpl_malloc. */
34388#undef malloc
34389
34390/* Thanks to Mike Haertel and Jim Avera for this test.
34391 Here is a matrix of mmap possibilities:
34392 mmap private not fixed
34393 mmap private fixed at somewhere currently unmapped
34394 mmap private fixed at somewhere already mapped
34395 mmap shared not fixed
34396 mmap shared fixed at somewhere currently unmapped
34397 mmap shared fixed at somewhere already mapped
34398 For private mappings, we should verify that changes cannot be read()
34399 back from the file, nor mmap's back from the file at a different
34400 address. (There have been systems where private was not correctly
34401 implemented like the infamous i386 svr4.0, and systems where the
34402 VM page cache was not coherent with the file system buffer cache
34403 like early versions of FreeBSD and possibly contemporary NetBSD.)
34404 For shared mappings, we should conversely verify that changes get
34405 propagated back to all the places they're supposed to be.
34406
34407 Grep wants private fixed already mapped.
34408 The main things grep needs to know about mmap are:
34409 * does it exist and is it safe to write into the mmap'd area
34410 * how to use it (BSD variants) */
34411
34412#include <fcntl.h>
34413#include <sys/mman.h>
34414
Bill Wendlingebcceee2009-04-18 11:20:33 +000034415#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000034416char *malloc ();
34417#endif
34418
34419/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034420#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000034421/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034422# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034423# define HAVE_SYS_PARAM_H 1
34424# endif
34425
34426# ifdef _SC_PAGESIZE
34427# define getpagesize() sysconf(_SC_PAGESIZE)
34428# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034429# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034430# include <sys/param.h>
34431# ifdef EXEC_PAGESIZE
34432# define getpagesize() EXEC_PAGESIZE
34433# else /* no EXEC_PAGESIZE */
34434# ifdef NBPG
34435# define getpagesize() NBPG * CLSIZE
34436# ifndef CLSIZE
34437# define CLSIZE 1
34438# endif /* no CLSIZE */
34439# else /* no NBPG */
34440# ifdef NBPC
34441# define getpagesize() NBPC
34442# else /* no NBPC */
34443# ifdef PAGESIZE
34444# define getpagesize() PAGESIZE
34445# endif /* PAGESIZE */
34446# endif /* no NBPC */
34447# endif /* no NBPG */
34448# endif /* no EXEC_PAGESIZE */
34449# else /* no HAVE_SYS_PARAM_H */
34450# define getpagesize() 8192 /* punt totally */
34451# endif /* no HAVE_SYS_PARAM_H */
34452# endif /* no _SC_PAGESIZE */
34453
34454#endif /* no HAVE_GETPAGESIZE */
34455
34456int
34457main ()
34458{
34459 char *data, *data2, *data3;
34460 int i, pagesize;
34461 int fd;
34462
34463 pagesize = getpagesize ();
34464
34465 /* First, make a file with some known garbage in it. */
34466 data = (char *) malloc (pagesize);
34467 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000034468 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034469 for (i = 0; i < pagesize; ++i)
34470 *(data + i) = rand ();
34471 umask (0);
34472 fd = creat ("conftest.mmap", 0600);
34473 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034474 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034475 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034476 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034477 close (fd);
34478
34479 /* Next, try to mmap the file at a fixed address which already has
34480 something else allocated at it. If we can, also make sure that
34481 we see the same garbage. */
34482 fd = open ("conftest.mmap", O_RDWR);
34483 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034484 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034485 data2 = (char *) malloc (2 * pagesize);
34486 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000034487 return 1;
34488 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000034489 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000034490 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000034491 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034492 for (i = 0; i < pagesize; ++i)
34493 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034494 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034495
34496 /* Finally, make sure that changes to the mapped area do not
34497 percolate back to the file as seen by read(). (This is a bug on
34498 some variants of i386 svr4.0.) */
34499 for (i = 0; i < pagesize; ++i)
34500 *(data2 + i) = *(data2 + i) + 1;
34501 data3 = (char *) malloc (pagesize);
34502 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000034503 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034504 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034505 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034506 for (i = 0; i < pagesize; ++i)
34507 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034508 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034509 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034510 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034511}
34512_ACEOF
34513rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034514if { (ac_try="$ac_link"
34515case "(($ac_try" in
34516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34517 *) ac_try_echo=$ac_try;;
34518esac
34519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34520 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034521 ac_status=$?
34522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034524 { (case "(($ac_try" in
34525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34526 *) ac_try_echo=$ac_try;;
34527esac
34528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34529 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034530 ac_status=$?
34531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532 (exit $ac_status); }; }; then
34533 ac_cv_func_mmap_fixed_mapped=yes
34534else
34535 echo "$as_me: program exited with status $ac_status" >&5
34536echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034537sed 's/^/| /' conftest.$ac_ext >&5
34538
John Criswell7a73b802003-06-30 21:59:07 +000034539( exit $ac_status )
34540ac_cv_func_mmap_fixed_mapped=no
34541fi
Reid Spencera773bd52006-08-04 18:18:08 +000034542rm -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 +000034543fi
Reid Spencera773bd52006-08-04 18:18:08 +000034544
34545
John Criswell7a73b802003-06-30 21:59:07 +000034546fi
Reid Spencera773bd52006-08-04 18:18:08 +000034547{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34548echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034549if test $ac_cv_func_mmap_fixed_mapped = yes; then
34550
34551cat >>confdefs.h <<\_ACEOF
34552#define HAVE_MMAP 1
34553_ACEOF
34554
34555fi
34556rm -f conftest.mmap
34557
Reid Spencer30fe5262007-01-20 07:48:49 +000034558 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034559echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034560if test "${ac_cv_func_mmap_file+set}" = set; then
34561 echo $ECHO_N "(cached) $ECHO_C" >&6
34562else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034563 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034564ac_cpp='$CPP $CPPFLAGS'
34565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34567ac_compiler_gnu=$ac_cv_c_compiler_gnu
34568
34569 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034570 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034571else
34572 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034573
Reid Spencer777ce172004-09-20 04:09:56 +000034574 /* confdefs.h. */
34575_ACEOF
34576cat confdefs.h >>conftest.$ac_ext
34577cat >>conftest.$ac_ext <<_ACEOF
34578/* end confdefs.h. */
34579
John Criswell7a73b802003-06-30 21:59:07 +000034580#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034581#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034582#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034583
34584int
34585main ()
34586{
John Criswell7a73b802003-06-30 21:59:07 +000034587
34588 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034589 fd = creat ("foo",0777);
34590 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34591 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034592 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034593 ;
34594 return 0;
34595}
John Criswell7a73b802003-06-30 21:59:07 +000034596_ACEOF
34597rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034598if { (ac_try="$ac_link"
34599case "(($ac_try" in
34600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34601 *) ac_try_echo=$ac_try;;
34602esac
34603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34604 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034605 ac_status=$?
34606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034608 { (case "(($ac_try" in
34609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34610 *) ac_try_echo=$ac_try;;
34611esac
34612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34613 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034614 ac_status=$?
34615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616 (exit $ac_status); }; }; then
34617 ac_cv_func_mmap_file=yes
34618else
34619 echo "$as_me: program exited with status $ac_status" >&5
34620echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034621sed 's/^/| /' conftest.$ac_ext >&5
34622
John Criswell7a73b802003-06-30 21:59:07 +000034623( exit $ac_status )
34624ac_cv_func_mmap_file=no
34625fi
Reid Spencera773bd52006-08-04 18:18:08 +000034626rm -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 +000034627fi
Reid Spencera773bd52006-08-04 18:18:08 +000034628
34629
John Criswell7a73b802003-06-30 21:59:07 +000034630 ac_ext=c
34631ac_cpp='$CPP $CPPFLAGS'
34632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34634ac_compiler_gnu=$ac_cv_c_compiler_gnu
34635
34636
34637fi
Reid Spencera773bd52006-08-04 18:18:08 +000034638{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34639echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034640if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034641
34642cat >>confdefs.h <<\_ACEOF
34643#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034644_ACEOF
34645
34646 MMAP_FILE=yes
34647
34648fi
34649
Reid Spencer30fe5262007-01-20 07:48:49 +000034650 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034651echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034652if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34653 echo $ECHO_N "(cached) $ECHO_C" >&6
34654else
Reid Spencer582a23c2004-12-29 07:07:57 +000034655 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034656 ac_cv_need_dev_zero_for_mmap=yes
34657 else
34658 ac_cv_need_dev_zero_for_mmap=no
34659 fi
34660
34661fi
Reid Spencera773bd52006-08-04 18:18:08 +000034662{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34663echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034664if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34665
34666cat >>confdefs.h <<\_ACEOF
34667#define NEED_DEV_ZERO_FOR_MMAP 1
34668_ACEOF
34669
34670fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034671
Reid Spencer30fe5262007-01-20 07:48:49 +000034672 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34673 then
34674 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034675echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034676 fi
34677 if test "$ac_cv_func_mmap_file" = "no"
34678 then
34679 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034680echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034681 fi
John Criswellb13092b2003-07-22 21:00:24 +000034682fi
John Criswell7a73b802003-06-30 21:59:07 +000034683
Owen Andersona8603702009-05-19 22:18:56 +000034684{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000034685echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034686cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000034687/* confdefs.h. */
34688_ACEOF
34689cat confdefs.h >>conftest.$ac_ext
34690cat >>conftest.$ac_ext <<_ACEOF
34691/* end confdefs.h. */
34692int main() {
Owen Andersona8603702009-05-19 22:18:56 +000034693 volatile unsigned long val = 1;
34694 __sync_synchronize();
34695 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000034696 __sync_add_and_fetch(&val, 1);
34697 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000034698 return 0;
34699 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034700
34701_ACEOF
34702rm -f conftest.$ac_objext conftest$ac_exeext
34703if { (ac_try="$ac_link"
34704case "(($ac_try" in
34705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34706 *) ac_try_echo=$ac_try;;
34707esac
34708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34709 (eval "$ac_link") 2>conftest.er1
34710 ac_status=$?
34711 grep -v '^ *+' conftest.er1 >conftest.err
34712 rm -f conftest.er1
34713 cat conftest.err >&5
34714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715 (exit $ac_status); } &&
34716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34717 { (case "(($ac_try" in
34718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34719 *) ac_try_echo=$ac_try;;
34720esac
34721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34722 (eval "$ac_try") 2>&5
34723 ac_status=$?
34724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725 (exit $ac_status); }; } &&
34726 { ac_try='test -s conftest$ac_exeext'
34727 { (case "(($ac_try" in
34728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34729 *) ac_try_echo=$ac_try;;
34730esac
34731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34732 (eval "$ac_try") 2>&5
34733 ac_status=$?
34734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34735 (exit $ac_status); }; }; then
34736 { echo "$as_me:$LINENO: result: yes" >&5
34737echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034738
34739cat >>confdefs.h <<\_ACEOF
34740#define LLVM_MULTITHREADED 1
34741_ACEOF
34742
Owen Andersond4b272b2009-05-18 23:58:51 +000034743else
34744 echo "$as_me: failed program was:" >&5
34745sed 's/^/| /' conftest.$ac_ext >&5
34746
34747 { echo "$as_me:$LINENO: result: no" >&5
34748echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034749
Owen Andersona8603702009-05-19 22:18:56 +000034750cat >>confdefs.h <<\_ACEOF
34751#define LLVM_MULTITHREADED 0
34752_ACEOF
34753
34754 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34755echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034756fi
34757
34758rm -f core conftest.err conftest.$ac_objext \
34759 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034760
34761
John Criswell7a73b802003-06-30 21:59:07 +000034762
Nick Lewycky4372e692009-09-29 06:18:23 +000034763if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34764 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34765echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34766if test "${llvm_cv_linux_mixed+set}" = set; then
34767 echo $ECHO_N "(cached) $ECHO_C" >&6
34768else
34769 ac_ext=c
34770ac_cpp='$CPP $CPPFLAGS'
34771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34773ac_compiler_gnu=$ac_cv_c_compiler_gnu
34774
34775 cat >conftest.$ac_ext <<_ACEOF
34776/* confdefs.h. */
34777_ACEOF
34778cat confdefs.h >>conftest.$ac_ext
34779cat >>conftest.$ac_ext <<_ACEOF
34780/* end confdefs.h. */
34781#ifndef __x86_64__
34782 error: Not x86-64 even if uname says so!
34783 #endif
34784
34785int
34786main ()
34787{
34788
34789 ;
34790 return 0;
34791}
34792_ACEOF
34793rm -f conftest.$ac_objext
34794if { (ac_try="$ac_compile"
34795case "(($ac_try" in
34796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34797 *) ac_try_echo=$ac_try;;
34798esac
34799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34800 (eval "$ac_compile") 2>conftest.er1
34801 ac_status=$?
34802 grep -v '^ *+' conftest.er1 >conftest.err
34803 rm -f conftest.er1
34804 cat conftest.err >&5
34805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34806 (exit $ac_status); } &&
34807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34808 { (case "(($ac_try" in
34809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34810 *) ac_try_echo=$ac_try;;
34811esac
34812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34813 (eval "$ac_try") 2>&5
34814 ac_status=$?
34815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34816 (exit $ac_status); }; } &&
34817 { ac_try='test -s conftest.$ac_objext'
34818 { (case "(($ac_try" in
34819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34820 *) ac_try_echo=$ac_try;;
34821esac
34822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34823 (eval "$ac_try") 2>&5
34824 ac_status=$?
34825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826 (exit $ac_status); }; }; then
34827 llvm_cv_linux_mixed=no
34828else
34829 echo "$as_me: failed program was:" >&5
34830sed 's/^/| /' conftest.$ac_ext >&5
34831
34832 llvm_cv_linux_mixed=yes
34833fi
34834
34835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34836 ac_ext=c
34837ac_cpp='$CPP $CPPFLAGS'
34838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34840ac_compiler_gnu=$ac_cv_c_compiler_gnu
34841
34842
34843fi
34844{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34845echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34846
34847 if test "$llvm_cv_linux_mixed" = "yes"; then
34848 llvm_cv_target_arch="x86"
34849 ARCH="x86"
34850 fi
34851fi
34852
Reid Spencer9372f152007-07-30 20:13:24 +000034853
34854for ac_func in __dso_handle
34855do
34856as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34857{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34858echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34859if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34860 echo $ECHO_N "(cached) $ECHO_C" >&6
34861else
34862 cat >conftest.$ac_ext <<_ACEOF
34863/* confdefs.h. */
34864_ACEOF
34865cat confdefs.h >>conftest.$ac_ext
34866cat >>conftest.$ac_ext <<_ACEOF
34867/* end confdefs.h. */
34868/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34870#define $ac_func innocuous_$ac_func
34871
34872/* System header to define __stub macros and hopefully few prototypes,
34873 which can conflict with char $ac_func (); below.
34874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34875 <limits.h> exists even on freestanding compilers. */
34876
34877#ifdef __STDC__
34878# include <limits.h>
34879#else
34880# include <assert.h>
34881#endif
34882
34883#undef $ac_func
34884
34885/* Override any GCC internal prototype to avoid an error.
34886 Use char because int might match the return type of a GCC
34887 builtin and then its argument prototype would still apply. */
34888#ifdef __cplusplus
34889extern "C"
34890#endif
34891char $ac_func ();
34892/* The GNU C library defines this for functions which it implements
34893 to always fail with ENOSYS. Some functions are actually named
34894 something starting with __ and the normal name is an alias. */
34895#if defined __stub_$ac_func || defined __stub___$ac_func
34896choke me
34897#endif
34898
34899int
34900main ()
34901{
34902return $ac_func ();
34903 ;
34904 return 0;
34905}
34906_ACEOF
34907rm -f conftest.$ac_objext conftest$ac_exeext
34908if { (ac_try="$ac_link"
34909case "(($ac_try" in
34910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34911 *) ac_try_echo=$ac_try;;
34912esac
34913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34914 (eval "$ac_link") 2>conftest.er1
34915 ac_status=$?
34916 grep -v '^ *+' conftest.er1 >conftest.err
34917 rm -f conftest.er1
34918 cat conftest.err >&5
34919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034920 (exit $ac_status); } &&
34921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34922 { (case "(($ac_try" in
34923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34924 *) ac_try_echo=$ac_try;;
34925esac
34926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34927 (eval "$ac_try") 2>&5
34928 ac_status=$?
34929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930 (exit $ac_status); }; } &&
34931 { ac_try='test -s conftest$ac_exeext'
34932 { (case "(($ac_try" in
34933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34934 *) ac_try_echo=$ac_try;;
34935esac
34936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34937 (eval "$ac_try") 2>&5
34938 ac_status=$?
34939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34940 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034941 eval "$as_ac_var=yes"
34942else
34943 echo "$as_me: failed program was:" >&5
34944sed 's/^/| /' conftest.$ac_ext >&5
34945
34946 eval "$as_ac_var=no"
34947fi
34948
Bill Wendlingebcceee2009-04-18 11:20:33 +000034949rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034950 conftest$ac_exeext conftest.$ac_ext
34951fi
34952ac_res=`eval echo '${'$as_ac_var'}'`
34953 { echo "$as_me:$LINENO: result: $ac_res" >&5
34954echo "${ECHO_T}$ac_res" >&6; }
34955if test `eval echo '${'$as_ac_var'}'` = yes; then
34956 cat >>confdefs.h <<_ACEOF
34957#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34958_ACEOF
34959
34960fi
34961done
34962
34963
Reid Spencera773bd52006-08-04 18:18:08 +000034964{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34965echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034966if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34967 echo $ECHO_N "(cached) $ECHO_C" >&6
34968else
34969 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034970if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034971 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034972 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34973 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034974 if test $? -eq 0 ; then
34975 llvm_cv_llvmgcc_sanity="yes"
34976 fi
34977 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034978fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034979fi
Reid Spencera773bd52006-08-04 18:18:08 +000034980{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34981echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034982
34983if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034984 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34985echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034986 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034987 LLVMCC1=$llvmcc1path
34988
Reid Spencer502935f2004-12-22 05:56:56 +000034989 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034990 LLVMCC1PLUS=$llvmcc1pluspath
34991
Reid Spencer502935f2004-12-22 05:56:56 +000034992 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34993 LLVMGCCDIR=$llvmgccdir
34994
Reid Spencer282d8c12006-12-21 22:55:41 +000034995 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34996 LLVMGCCLIBEXEC=$llvmgcclibexec
34997
Reid Spencerb5d75b82006-05-09 00:31:01 +000034998 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034999 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35000 LLVMGCC_VERSION=$llvmgccversion
35001
35002 LLVMGCC_MAJVERS=$llvmgccmajvers
35003
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000035004 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000035005 LLVMGCC_LANGS=$llvmgcclangs
35006
35007 { echo "$as_me:$LINENO: result: ok" >&5
35008echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000035009fi
35010
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035011SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000035012
35013
Reid Spencere9de0912004-08-20 09:03:57 +000035014# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035015# information into substitutions that will end up in Makefile.config.in
35016# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000035017if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000035018 prefix="/usr/local"
35019fi
Reid Spencere9de0912004-08-20 09:03:57 +000035020eval LLVM_PREFIX="${prefix}";
35021eval LLVM_BINDIR="${prefix}/bin";
35022eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000035023eval LLVM_DATADIR="${prefix}/share/llvm";
35024eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35025eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000035026eval LLVM_INCLUDEDIR="${prefix}/include";
35027eval LLVM_INFODIR="${prefix}/info";
35028eval LLVM_MANDIR="${prefix}/man";
35029LLVM_CONFIGTIME=`date`
35030
35031
35032
35033
35034
35035
35036
35037
35038
35039
35040
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035041# Place the various directores into the config.h file as #defines so that we
35042# can know about the installation paths within LLVM.
35043
Reid Spencere9de0912004-08-20 09:03:57 +000035044cat >>confdefs.h <<_ACEOF
35045#define LLVM_PREFIX "$LLVM_PREFIX"
35046_ACEOF
35047
35048
35049cat >>confdefs.h <<_ACEOF
35050#define LLVM_BINDIR "$LLVM_BINDIR"
35051_ACEOF
35052
35053
35054cat >>confdefs.h <<_ACEOF
35055#define LLVM_LIBDIR "$LLVM_LIBDIR"
35056_ACEOF
35057
35058
35059cat >>confdefs.h <<_ACEOF
35060#define LLVM_DATADIR "$LLVM_DATADIR"
35061_ACEOF
35062
35063
35064cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000035065#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035066_ACEOF
35067
35068
35069cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000035070#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035071_ACEOF
35072
35073
35074cat >>confdefs.h <<_ACEOF
35075#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35076_ACEOF
35077
35078
35079cat >>confdefs.h <<_ACEOF
35080#define LLVM_INFODIR "$LLVM_INFODIR"
35081_ACEOF
35082
35083
35084cat >>confdefs.h <<_ACEOF
35085#define LLVM_MANDIR "$LLVM_MANDIR"
35086_ACEOF
35087
35088
35089cat >>confdefs.h <<_ACEOF
35090#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35091_ACEOF
35092
35093
Eric Christopher790e11c2007-12-01 00:34:39 +000035094cat >>confdefs.h <<_ACEOF
35095#define LLVM_HOSTTRIPLE "$host"
35096_ACEOF
35097
35098
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035099# Determine which bindings to build.
35100if test "$BINDINGS_TO_BUILD" = auto ; then
35101 BINDINGS_TO_BUILD=""
35102 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35103 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35104 fi
35105fi
35106BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35107
35108
35109# This isn't really configurey, but it avoids having to repeat the list in
35110# other files.
35111ALL_BINDINGS=ocaml
35112
35113
Gordon Henriksenf0915682007-10-02 16:42:22 +000035114# Do any work necessary to ensure that bindings have what they need.
35115binding_prereqs_failed=0
35116for a_binding in $BINDINGS_TO_BUILD ; do
35117 case "$a_binding" in
35118 ocaml)
35119 if test "x$OCAMLC" = x ; then
35120 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35121echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35122 binding_prereqs_failed=1
35123 fi
35124 if test "x$OCAMLDEP" = x ; then
35125 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35126echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35127 binding_prereqs_failed=1
35128 fi
35129 if test "x$OCAMLOPT" = x ; then
35130 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35131echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35132 fi
35133 if test "x$with_ocaml_libdir" != xauto ; then
35134 OCAML_LIBDIR=$with_ocaml_libdir
35135
35136 else
35137 ocaml_stdlib="`"$OCAMLC" -where`"
35138 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35139 then
35140 # ocaml stdlib is beneath our prefix; use stdlib
35141 OCAML_LIBDIR=$ocaml_stdlib
35142
35143 else
35144 # ocaml stdlib is outside our prefix; use libdir/ocaml
35145 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35146
35147 fi
35148 fi
35149 ;;
35150 esac
35151done
35152if test "$binding_prereqs_failed" = 1 ; then
35153 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35154echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35155 { (exit 1); exit 1; }; }
35156fi
35157
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035158{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35159echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35160if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35161 echo $ECHO_N "(cached) $ECHO_C" >&6
35162else
35163 ac_ext=cpp
35164ac_cpp='$CXXCPP $CPPFLAGS'
35165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35168
35169 oldcxxflags="$CXXFLAGS"
35170 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35171 cat >conftest.$ac_ext <<_ACEOF
35172/* confdefs.h. */
35173_ACEOF
35174cat confdefs.h >>conftest.$ac_ext
35175cat >>conftest.$ac_ext <<_ACEOF
35176/* end confdefs.h. */
35177
35178int
35179main ()
35180{
35181
35182 ;
35183 return 0;
35184}
35185_ACEOF
35186rm -f conftest.$ac_objext
35187if { (ac_try="$ac_compile"
35188case "(($ac_try" in
35189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35190 *) ac_try_echo=$ac_try;;
35191esac
35192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35193 (eval "$ac_compile") 2>conftest.er1
35194 ac_status=$?
35195 grep -v '^ *+' conftest.er1 >conftest.err
35196 rm -f conftest.er1
35197 cat conftest.err >&5
35198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000035199 (exit $ac_status); } &&
35200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35201 { (case "(($ac_try" in
35202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35203 *) ac_try_echo=$ac_try;;
35204esac
35205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35206 (eval "$ac_try") 2>&5
35207 ac_status=$?
35208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35209 (exit $ac_status); }; } &&
35210 { ac_try='test -s conftest.$ac_objext'
35211 { (case "(($ac_try" in
35212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35213 *) ac_try_echo=$ac_try;;
35214esac
35215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35216 (eval "$ac_try") 2>&5
35217 ac_status=$?
35218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35219 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035220 llvm_cv_cxx_visibility_inlines_hidden=yes
35221else
35222 echo "$as_me: failed program was:" >&5
35223sed 's/^/| /' conftest.$ac_ext >&5
35224
35225 llvm_cv_cxx_visibility_inlines_hidden=no
35226fi
35227
35228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35229 CXXFLAGS="$oldcxxflags"
35230 ac_ext=c
35231ac_cpp='$CPP $CPPFLAGS'
35232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35234ac_compiler_gnu=$ac_cv_c_compiler_gnu
35235
35236
35237fi
35238{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35239echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35240if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35241 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35242
35243else
35244 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35245
35246fi
35247
Gordon Henriksenf0915682007-10-02 16:42:22 +000035248
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035249if test "$llvm_cv_link_use_r" = "yes" ; then
35250 RPATH="-Wl,-R"
35251else
35252 RPATH="-Wl,-rpath"
35253fi
35254
35255
35256if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35257 RDYNAMIC="-Wl,-export-dynamic"
35258else
35259 RDYNAMIC=""
35260fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035261
35262
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035263
Reid Spencera773bd52006-08-04 18:18:08 +000035264ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035265
Douglas Gregor1555a232009-06-16 20:12:29 +000035266ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35267
35268ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35269
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035270ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35271
Reid Spencera773bd52006-08-04 18:18:08 +000035272ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035273
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035274
Reid Spencera773bd52006-08-04 18:18:08 +000035275ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035276
35277
Reid Spencerea949cf2006-08-16 00:45:38 +000035278ac_config_files="$ac_config_files llvm.spec"
35279
35280
Reid Spencera773bd52006-08-04 18:18:08 +000035281ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000035282
35283
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035284ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35285
35286
Reid Spencera773bd52006-08-04 18:18:08 +000035287ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000035288
35289
Reid Spencera773bd52006-08-04 18:18:08 +000035290ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000035291
Reid Spencera773bd52006-08-04 18:18:08 +000035292ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035293
35294
Reid Spencera773bd52006-08-04 18:18:08 +000035295ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035296
35297
Reid Spencera773bd52006-08-04 18:18:08 +000035298ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035299
35300
Reid Spencera773bd52006-08-04 18:18:08 +000035301ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035302
35303
Reid Spencer8b2e1412006-11-17 03:32:33 +000035304ac_config_commands="$ac_config_commands runtime/Makefile"
35305
35306
Reid Spencera773bd52006-08-04 18:18:08 +000035307ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035308
35309
Reid Spencera773bd52006-08-04 18:18:08 +000035310ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035311
35312
Bill Wendlingf24eb392009-01-04 23:12:30 +000035313ac_config_commands="$ac_config_commands unittests/Makefile"
35314
35315
Reid Spencera773bd52006-08-04 18:18:08 +000035316ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035317
35318
Reid Spencera773bd52006-08-04 18:18:08 +000035319ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035320
35321
Reid Spencera773bd52006-08-04 18:18:08 +000035322ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035323
35324
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035325ac_config_commands="$ac_config_commands bindings/Makefile"
35326
35327
35328ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35329
35330
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035331
John Criswell7a73b802003-06-30 21:59:07 +000035332cat >confcache <<\_ACEOF
35333# This file is a shell script that caches the results of configure
35334# tests run on this system so they can be shared between configure
35335# scripts and configure runs, see configure's option --config-cache.
35336# It is not useful on other systems. If it contains results you don't
35337# want to keep, you may remove or edit it.
35338#
35339# config.status only pays attention to the cache file if you give it
35340# the --recheck option to rerun configure.
35341#
John Criswell0c38eaf2003-09-10 15:17:25 +000035342# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000035343# loading this file, other *unset* `ac_cv_foo' will be assigned the
35344# following values.
35345
35346_ACEOF
35347
35348# The following way of writing the cache mishandles newlines in values,
35349# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000035350# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000035351# Ultrix sh set writes to stderr and can't be redirected directly,
35352# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000035353(
35354 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35355 eval ac_val=\$$ac_var
35356 case $ac_val in #(
35357 *${as_nl}*)
35358 case $ac_var in #(
35359 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35360echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35361 esac
35362 case $ac_var in #(
35363 _ | IFS | as_nl) ;; #(
35364 *) $as_unset $ac_var ;;
35365 esac ;;
35366 esac
35367 done
35368
John Criswell7a73b802003-06-30 21:59:07 +000035369 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000035370 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35371 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000035372 # `set' does not quote correctly, so add quotes (double-quote
35373 # substitution turns \\\\ into \\, and sed turns \\ into \).
35374 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035375 "s/'/'\\\\''/g;
35376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000035377 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000035378 *)
35379 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000035380 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000035381 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035382 esac |
35383 sort
35384) |
John Criswell7a73b802003-06-30 21:59:07 +000035385 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035386 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000035387 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000035388 :clear
John Criswell7a73b802003-06-30 21:59:07 +000035389 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35390 t end
Reid Spencera773bd52006-08-04 18:18:08 +000035391 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35392 :end' >>confcache
35393if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35394 if test -w "$cache_file"; then
35395 test "x$cache_file" != "x/dev/null" &&
35396 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35397echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035398 cat confcache >$cache_file
35399 else
Reid Spencera773bd52006-08-04 18:18:08 +000035400 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35401echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035402 fi
35403fi
35404rm -f confcache
35405
35406test "x$prefix" = xNONE && prefix=$ac_default_prefix
35407# Let make expand exec_prefix.
35408test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35409
John Criswell7a73b802003-06-30 21:59:07 +000035410DEFS=-DHAVE_CONFIG_H
35411
John Criswell0c38eaf2003-09-10 15:17:25 +000035412ac_libobjs=
35413ac_ltlibobjs=
35414for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35415 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000035416 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35417 ac_i=`echo "$ac_i" | sed "$ac_script"`
35418 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35419 # will be set to the directory where LIBOBJS objects are built.
35420 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35421 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000035422done
35423LIBOBJS=$ac_libobjs
35424
35425LTLIBOBJS=$ac_ltlibobjs
35426
35427
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035428if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35429 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35430Usually this means the macro was only invoked conditionally." >&5
35431echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35432Usually this means the macro was only invoked conditionally." >&2;}
35433 { (exit 1); exit 1; }; }
35434fi
35435if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35436 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35437Usually this means the macro was only invoked conditionally." >&5
35438echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35439Usually this means the macro was only invoked conditionally." >&2;}
35440 { (exit 1); exit 1; }; }
35441fi
John Criswell7a73b802003-06-30 21:59:07 +000035442
35443: ${CONFIG_STATUS=./config.status}
35444ac_clean_files_save=$ac_clean_files
35445ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35446{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35447echo "$as_me: creating $CONFIG_STATUS" >&6;}
35448cat >$CONFIG_STATUS <<_ACEOF
35449#! $SHELL
35450# Generated by $as_me.
35451# Run this file to recreate the current configuration.
35452# Compiler output produced by configure, useful for debugging
35453# configure, is in config.log if it exists.
35454
35455debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000035456ac_cs_recheck=false
35457ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000035458SHELL=\${CONFIG_SHELL-$SHELL}
35459_ACEOF
35460
35461cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035462## --------------------- ##
35463## M4sh Initialization. ##
35464## --------------------- ##
35465
Bill Wendlingebcceee2009-04-18 11:20:33 +000035466# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000035467if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35468 emulate sh
35469 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035470 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35471 # is contrary to our usage. Disable this feature.
35472 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000035473 setopt NO_GLOB_SUBST
35474else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035475 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000035476fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035477BIN_SH=xpg4; export BIN_SH # for Tru64
35478DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000035479
John Criswell7a73b802003-06-30 21:59:07 +000035480
Reid Spencera773bd52006-08-04 18:18:08 +000035481# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000035482# Avoid depending upon Character Ranges.
35483as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35484as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35485as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35486as_cr_digits='0123456789'
35487as_cr_alnum=$as_cr_Letters$as_cr_digits
35488
35489# The user is always right.
35490if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000035491 echo "#! /bin/sh" >conf$$.sh
35492 echo "exit 0" >>conf$$.sh
35493 chmod +x conf$$.sh
35494 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035495 PATH_SEPARATOR=';'
35496 else
35497 PATH_SEPARATOR=:
35498 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000035499 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000035500fi
35501
Reid Spencera773bd52006-08-04 18:18:08 +000035502# Support unset when possible.
35503if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35504 as_unset=unset
35505else
35506 as_unset=false
35507fi
John Criswell7a73b802003-06-30 21:59:07 +000035508
Reid Spencera773bd52006-08-04 18:18:08 +000035509
35510# IFS
35511# We need space, tab and new line, in precisely that order. Quoting is
35512# there to prevent editors from complaining about space-tab.
35513# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35514# splitting by setting IFS to empty value.)
35515as_nl='
35516'
35517IFS=" "" $as_nl"
35518
35519# Find who we are. Look in the path if we contain no directory separator.
35520case $0 in
35521 *[\\/]* ) as_myself=$0 ;;
35522 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000035523for as_dir in $PATH
35524do
35525 IFS=$as_save_IFS
35526 test -z "$as_dir" && as_dir=.
35527 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35528done
Reid Spencera773bd52006-08-04 18:18:08 +000035529IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000035530
Reid Spencera773bd52006-08-04 18:18:08 +000035531 ;;
35532esac
35533# We did not find ourselves, most probably we were run as `sh COMMAND'
35534# in which case we are not to be found in the path.
35535if test "x$as_myself" = x; then
35536 as_myself=$0
35537fi
35538if test ! -f "$as_myself"; then
35539 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35540 { (exit 1); exit 1; }
35541fi
35542
35543# Work around bugs in pre-3.0 UWIN ksh.
35544for as_var in ENV MAIL MAILPATH
35545do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35546done
35547PS1='$ '
35548PS2='> '
35549PS4='+ '
35550
35551# NLS nuisances.
35552for as_var in \
35553 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35554 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35555 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000035556do
Reid Spencera773bd52006-08-04 18:18:08 +000035557 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35558 eval $as_var=C; export $as_var
35559 else
35560 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35561 fi
35562done
35563
35564# Required to use basename.
35565if expr a : '\(a\)' >/dev/null 2>&1 &&
35566 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35567 as_expr=expr
35568else
35569 as_expr=false
35570fi
35571
35572if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35573 as_basename=basename
35574else
35575 as_basename=false
35576fi
35577
35578
35579# Name of the executable.
35580as_me=`$as_basename -- "$0" ||
35581$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35582 X"$0" : 'X\(//\)$' \| \
35583 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35584echo X/"$0" |
35585 sed '/^.*\/\([^/][^/]*\)\/*$/{
35586 s//\1/
35587 q
35588 }
35589 /^X\/\(\/\/\)$/{
35590 s//\1/
35591 q
35592 }
35593 /^X\/\(\/\).*/{
35594 s//\1/
35595 q
35596 }
35597 s/.*/./; q'`
35598
35599# CDPATH.
35600$as_unset CDPATH
35601
35602
35603
John Criswell7a73b802003-06-30 21:59:07 +000035604 as_lineno_1=$LINENO
35605 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000035606 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000035607 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000035608
35609 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35610 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000035611 # line-number line after each line using $LINENO; the second 'sed'
35612 # does the real work. The second script uses 'N' to pair each
35613 # line-number line with the line containing $LINENO, and appends
35614 # trailing '-' during substitution so that $LINENO is not a special
35615 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000035616 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000035617 # scripts with optimization help from Paolo Bonzini. Blame Lee
35618 # E. McMahon (1931-1989) for sed's syntax. :-)
35619 sed -n '
35620 p
35621 /[$]LINENO/=
35622 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000035623 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035624 s/[$]LINENO.*/&-/
35625 t lineno
35626 b
35627 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000035628 N
Reid Spencera773bd52006-08-04 18:18:08 +000035629 :loop
35630 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000035631 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000035632 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000035633 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000035634 chmod +x "$as_me.lineno" ||
35635 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000035636 { (exit 1); exit 1; }; }
35637
35638 # Don't try to exec as it changes $[0], causing all sort of problems
35639 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000035640 # original and so on. Autoconf is especially sensitive to this).
35641 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000035642 # Exit status is that of the last command.
35643 exit
35644}
35645
35646
Reid Spencera773bd52006-08-04 18:18:08 +000035647if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35648 as_dirname=dirname
35649else
35650 as_dirname=false
35651fi
35652
35653ECHO_C= ECHO_N= ECHO_T=
35654case `echo -n x` in
35655-n*)
35656 case `echo 'x\c'` in
35657 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35658 *) ECHO_C='\c';;
35659 esac;;
35660*)
35661 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000035662esac
35663
Reid Spencera773bd52006-08-04 18:18:08 +000035664if expr a : '\(a\)' >/dev/null 2>&1 &&
35665 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000035666 as_expr=expr
35667else
35668 as_expr=false
35669fi
35670
35671rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000035672if test -d conf$$.dir; then
35673 rm -f conf$$.dir/conf$$.file
35674else
35675 rm -f conf$$.dir
35676 mkdir conf$$.dir
35677fi
John Criswell7a73b802003-06-30 21:59:07 +000035678echo >conf$$.file
35679if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000035680 as_ln_s='ln -s'
35681 # ... but there are two gotchas:
35682 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35683 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35684 # In both cases, we have to default to `cp -p'.
35685 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000035686 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000035687elif ln conf$$.file conf$$ 2>/dev/null; then
35688 as_ln_s=ln
35689else
35690 as_ln_s='cp -p'
35691fi
Reid Spencera773bd52006-08-04 18:18:08 +000035692rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35693rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035694
John Criswell0c38eaf2003-09-10 15:17:25 +000035695if mkdir -p . 2>/dev/null; then
35696 as_mkdir_p=:
35697else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035698 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035699 as_mkdir_p=false
35700fi
35701
Bill Wendlingebcceee2009-04-18 11:20:33 +000035702# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35703# systems may use methods other than mode bits to determine executability.
35704cat >conf$$.file <<_ASEOF
35705#! /bin/sh
35706exit 0
35707_ASEOF
35708chmod +x conf$$.file
35709if test -x conf$$.file >/dev/null 2>&1; then
35710 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035711else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035712 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035713fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035714rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035715
35716# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035717as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035718
35719# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035720as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035721
35722
John Criswell7a73b802003-06-30 21:59:07 +000035723exec 6>&1
35724
Reid Spencera773bd52006-08-04 18:18:08 +000035725# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035726# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035727# values after options handling.
35728ac_log="
Tanya Lattner953042b2009-08-22 04:37:30 +000035729This file was extended by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000035730generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035731
35732 CONFIG_FILES = $CONFIG_FILES
35733 CONFIG_HEADERS = $CONFIG_HEADERS
35734 CONFIG_LINKS = $CONFIG_LINKS
35735 CONFIG_COMMANDS = $CONFIG_COMMANDS
35736 $ $0 $@
35737
Reid Spencera773bd52006-08-04 18:18:08 +000035738on `(hostname || uname -n) 2>/dev/null | sed 1q`
35739"
35740
John Criswell7a73b802003-06-30 21:59:07 +000035741_ACEOF
35742
Reid Spencera773bd52006-08-04 18:18:08 +000035743cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035744# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035745config_files="$ac_config_files"
35746config_headers="$ac_config_headers"
35747config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035748
Reid Spencera773bd52006-08-04 18:18:08 +000035749_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035750
35751cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035752ac_cs_usage="\
35753\`$as_me' instantiates files from templates according to the
35754current configuration.
35755
35756Usage: $0 [OPTIONS] [FILE]...
35757
35758 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000035759 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035760 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035761 -d, --debug don't remove temporary files
35762 --recheck update $as_me by reconfiguring in the same conditions
35763 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035764 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035765 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035766 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035767
35768Configuration files:
35769$config_files
35770
35771Configuration headers:
35772$config_headers
35773
John Criswellc764fbc2003-09-06 15:17:13 +000035774Configuration commands:
35775$config_commands
35776
John Criswell7a73b802003-06-30 21:59:07 +000035777Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035778
Reid Spencera773bd52006-08-04 18:18:08 +000035779_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035780cat >>$CONFIG_STATUS <<_ACEOF
35781ac_cs_version="\\
Tanya Lattner953042b2009-08-22 04:37:30 +000035782llvm config.status 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000035783configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035784 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035785
Reid Spencera773bd52006-08-04 18:18:08 +000035786Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035787This config.status script is free software; the Free Software Foundation
35788gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035789
35790ac_pwd='$ac_pwd'
35791srcdir='$srcdir'
35792INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035793_ACEOF
35794
35795cat >>$CONFIG_STATUS <<\_ACEOF
35796# If no file are specified by the user, then we need to provide default
35797# value. By we need to know if files were specified by the user.
35798ac_need_defaults=:
35799while test $# != 0
35800do
35801 case $1 in
35802 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035803 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35804 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035805 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035806 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035807 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035808 ac_option=$1
35809 ac_optarg=$2
35810 ac_shift=shift
35811 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035812 esac
35813
John Criswell0c38eaf2003-09-10 15:17:25 +000035814 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035815 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035816 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35817 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035818 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35819 echo "$ac_cs_version"; exit ;;
35820 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035821 debug=: ;;
35822 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035823 $ac_shift
35824 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035825 ac_need_defaults=false;;
35826 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035827 $ac_shift
35828 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035829 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035830 --he | --h)
35831 # Conflict between --help and --header
35832 { echo "$as_me: error: ambiguous option: $1
35833Try \`$0 --help' for more information." >&2
35834 { (exit 1); exit 1; }; };;
35835 --help | --hel | -h )
35836 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035837 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35838 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35839 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035840
35841 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035842 -*) { echo "$as_me: error: unrecognized option: $1
35843Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035844 { (exit 1); exit 1; }; } ;;
35845
Reid Spencera773bd52006-08-04 18:18:08 +000035846 *) ac_config_targets="$ac_config_targets $1"
35847 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035848
35849 esac
35850 shift
35851done
35852
John Criswell0c38eaf2003-09-10 15:17:25 +000035853ac_configure_extra_args=
35854
35855if $ac_cs_silent; then
35856 exec 6>/dev/null
35857 ac_configure_extra_args="$ac_configure_extra_args --silent"
35858fi
35859
35860_ACEOF
35861cat >>$CONFIG_STATUS <<_ACEOF
35862if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035863 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35864 CONFIG_SHELL=$SHELL
35865 export CONFIG_SHELL
35866 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035867fi
35868
John Criswell7a73b802003-06-30 21:59:07 +000035869_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035870cat >>$CONFIG_STATUS <<\_ACEOF
35871exec 5>>config.log
35872{
35873 echo
35874 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35875## Running $as_me. ##
35876_ASBOX
35877 echo "$ac_log"
35878} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035879
Reid Spencera773bd52006-08-04 18:18:08 +000035880_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035881cat >>$CONFIG_STATUS <<_ACEOF
35882#
Reid Spencera773bd52006-08-04 18:18:08 +000035883# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035884#
Reid Spencerc0682832005-02-24 19:05:19 +000035885llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035886
35887_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035888
John Criswell7a73b802003-06-30 21:59:07 +000035889cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035890
35891# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035892for ac_config_target in $ac_config_targets
35893do
Reid Spencera773bd52006-08-04 18:18:08 +000035894 case $ac_config_target in
35895 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000035896 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35897 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035898 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035899 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035900 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035901 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035902 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035903 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035904 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35905 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35906 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35907 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35908 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35909 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035910 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035911 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35912 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035913 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035914 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35915 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35916 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035917 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35918 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035919
John Criswell7a73b802003-06-30 21:59:07 +000035920 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35921echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35922 { (exit 1); exit 1; }; };;
35923 esac
35924done
35925
Reid Spencera773bd52006-08-04 18:18:08 +000035926
John Criswell7a73b802003-06-30 21:59:07 +000035927# If the user did not use the arguments to specify the items to instantiate,
35928# then the envvar interface is used. Set only those that are not.
35929# We use the long form for the default assignment because of an extremely
35930# bizarre bug on SunOS 4.1.3.
35931if $ac_need_defaults; then
35932 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35933 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035934 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035935fi
35936
John Criswell0c38eaf2003-09-10 15:17:25 +000035937# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035938# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035939# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035940# Hook for its removal unless debugging.
35941# Note that there is a small window in which the directory will not be cleaned:
35942# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035943$debug ||
35944{
Reid Spencera773bd52006-08-04 18:18:08 +000035945 tmp=
35946 trap 'exit_status=$?
35947 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35948' 0
John Criswell7a73b802003-06-30 21:59:07 +000035949 trap '{ (exit 1); exit 1; }' 1 2 13 15
35950}
John Criswell7a73b802003-06-30 21:59:07 +000035951# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035952
John Criswell7a73b802003-06-30 21:59:07 +000035953{
Reid Spencera773bd52006-08-04 18:18:08 +000035954 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035955 test -n "$tmp" && test -d "$tmp"
35956} ||
35957{
Reid Spencera773bd52006-08-04 18:18:08 +000035958 tmp=./conf$$-$RANDOM
35959 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035960} ||
35961{
John Criswell0c38eaf2003-09-10 15:17:25 +000035962 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035963 { (exit 1); exit 1; }
35964}
35965
John Criswell7a73b802003-06-30 21:59:07 +000035966#
Reid Spencera773bd52006-08-04 18:18:08 +000035967# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035968#
35969
35970# No need to generate the scripts if there are no CONFIG_FILES.
35971# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035972if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035973
35974_ACEOF
35975
Reid Spencera773bd52006-08-04 18:18:08 +000035976
35977
35978ac_delim='%!_!# '
35979for ac_last_try in false false false false false :; do
35980 cat >conf$$subs.sed <<_ACEOF
35981SHELL!$SHELL$ac_delim
35982PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35983PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35984PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35985PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35986PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35987PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35988exec_prefix!$exec_prefix$ac_delim
35989prefix!$prefix$ac_delim
35990program_transform_name!$program_transform_name$ac_delim
35991bindir!$bindir$ac_delim
35992sbindir!$sbindir$ac_delim
35993libexecdir!$libexecdir$ac_delim
35994datarootdir!$datarootdir$ac_delim
35995datadir!$datadir$ac_delim
35996sysconfdir!$sysconfdir$ac_delim
35997sharedstatedir!$sharedstatedir$ac_delim
35998localstatedir!$localstatedir$ac_delim
35999includedir!$includedir$ac_delim
36000oldincludedir!$oldincludedir$ac_delim
36001docdir!$docdir$ac_delim
36002infodir!$infodir$ac_delim
36003htmldir!$htmldir$ac_delim
36004dvidir!$dvidir$ac_delim
36005pdfdir!$pdfdir$ac_delim
36006psdir!$psdir$ac_delim
36007libdir!$libdir$ac_delim
36008localedir!$localedir$ac_delim
36009mandir!$mandir$ac_delim
36010DEFS!$DEFS$ac_delim
36011ECHO_C!$ECHO_C$ac_delim
36012ECHO_N!$ECHO_N$ac_delim
36013ECHO_T!$ECHO_T$ac_delim
36014LIBS!$LIBS$ac_delim
36015build_alias!$build_alias$ac_delim
36016host_alias!$host_alias$ac_delim
36017target_alias!$target_alias$ac_delim
36018LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36019subdirs!$subdirs$ac_delim
36020build!$build$ac_delim
36021build_cpu!$build_cpu$ac_delim
36022build_vendor!$build_vendor$ac_delim
36023build_os!$build_os$ac_delim
36024host!$host$ac_delim
36025host_cpu!$host_cpu$ac_delim
36026host_vendor!$host_vendor$ac_delim
36027host_os!$host_os$ac_delim
36028target!$target$ac_delim
36029target_cpu!$target_cpu$ac_delim
36030target_vendor!$target_vendor$ac_delim
36031target_os!$target_os$ac_delim
36032OS!$OS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036033HOST_OS!$HOST_OS$ac_delim
36034TARGET_OS!$TARGET_OS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036035LINKALL!$LINKALL$ac_delim
36036NOLINKALL!$NOLINKALL$ac_delim
36037LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36038LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Nick Lewycky83fc4472009-09-29 05:48:51 +000036039ARCH!$ARCH$ac_delim
36040ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036041CC!$CC$ac_delim
36042CFLAGS!$CFLAGS$ac_delim
36043LDFLAGS!$LDFLAGS$ac_delim
36044CPPFLAGS!$CPPFLAGS$ac_delim
36045ac_ct_CC!$ac_ct_CC$ac_delim
36046EXEEXT!$EXEEXT$ac_delim
36047OBJEXT!$OBJEXT$ac_delim
36048CPP!$CPP$ac_delim
36049GREP!$GREP$ac_delim
36050EGREP!$EGREP$ac_delim
36051LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36052BUILD_CC!$BUILD_CC$ac_delim
36053BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000036054BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036055CVSBUILD!$CVSBUILD$ac_delim
36056ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036057ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036058DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000036059ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36060EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000036061DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036062DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036063JIT!$JIT$ac_delim
36064TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36065ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36066ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000036067ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036068TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036069LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36070LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036071LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000036072ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036073EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000036074BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036075ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36076ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036077CXX!$CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036078_ACEOF
36079
36080 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36081 break
36082 elif $ac_last_try; then
36083 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36084echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36085 { (exit 1); exit 1; }; }
36086 else
36087 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000036088 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036089done
36090
36091ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36092if test -n "$ac_eof"; then
36093 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36094 ac_eof=`expr $ac_eof + 1`
36095fi
36096
36097cat >>$CONFIG_STATUS <<_ACEOF
36098cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36099/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36100_ACEOF
36101sed '
36102s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36103s/^/s,@/; s/!/@,|#_!!_#|/
36104:n
36105t n
36106s/'"$ac_delim"'$/,g/; t
36107s/$/\\/; p
36108N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36109' >>$CONFIG_STATUS <conf$$subs.sed
36110rm -f conf$$subs.sed
36111cat >>$CONFIG_STATUS <<_ACEOF
36112CEOF$ac_eof
36113_ACEOF
36114
36115
36116ac_delim='%!_!# '
36117for ac_last_try in false false false false false :; do
36118 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036119CXXFLAGS!$CXXFLAGS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036120ac_ct_CXX!$ac_ct_CXX$ac_delim
Shantonu Sen7e836972009-08-11 13:39:52 +000036121NM!$NM$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036122ifGNUmake!$ifGNUmake$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036123LN_S!$LN_S$ac_delim
36124CMP!$CMP$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036125CP!$CP$ac_delim
36126DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036127FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036128MKDIR!$MKDIR$ac_delim
36129MV!$MV$ac_delim
36130RANLIB!$RANLIB$ac_delim
36131RM!$RM$ac_delim
36132SED!$SED$ac_delim
36133TAR!$TAR$ac_delim
36134BINPWD!$BINPWD$ac_delim
36135GRAPHVIZ!$GRAPHVIZ$ac_delim
36136DOT!$DOT$ac_delim
David Greenef0b9eff2009-07-09 17:16:26 +000036137FDP!$FDP$ac_delim
36138NEATO!$NEATO$ac_delim
36139TWOPI!$TWOPI$ac_delim
36140CIRCO!$CIRCO$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036141GV!$GV$ac_delim
36142DOTTY!$DOTTY$ac_delim
36143PERL!$PERL$ac_delim
36144HAVE_PERL!$HAVE_PERL$ac_delim
36145INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36146INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36147INSTALL_DATA!$INSTALL_DATA$ac_delim
36148BZIP2!$BZIP2$ac_delim
36149DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036150GROFF!$GROFF$ac_delim
36151GZIP!$GZIP$ac_delim
36152POD2HTML!$POD2HTML$ac_delim
36153POD2MAN!$POD2MAN$ac_delim
36154RUNTEST!$RUNTEST$ac_delim
36155TCLSH!$TCLSH$ac_delim
36156ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000036157OCAMLC!$OCAMLC$ac_delim
36158OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000036159OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000036160OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000036161GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036162INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36163INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36164CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36165CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36166LIBADD_DL!$LIBADD_DL$ac_delim
36167ECHO!$ECHO$ac_delim
36168AR!$AR$ac_delim
36169STRIP!$STRIP$ac_delim
36170CXXCPP!$CXXCPP$ac_delim
36171F77!$F77$ac_delim
36172FFLAGS!$FFLAGS$ac_delim
36173ac_ct_F77!$ac_ct_F77$ac_delim
36174LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000036175LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36176LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000036177LLVMGCC!$LLVMGCC$ac_delim
36178LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000036179USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000036180USE_OPROFILE!$USE_OPROFILE$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000036181HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000036182HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036183ALLOCA!$ALLOCA$ac_delim
36184MMAP_FILE!$MMAP_FILE$ac_delim
36185LLVMCC1!$LLVMCC1$ac_delim
36186LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36187LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000036188LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036189LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36190LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000036191LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036192SHLIBEXT!$SHLIBEXT$ac_delim
36193LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36194LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36195LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36196LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36197LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36198LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36199LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36200LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36201LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36202LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000036203BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36204ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000036205OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000036206ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000036207RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000036208RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036209LIBOBJS!$LIBOBJS$ac_delim
36210LTLIBOBJS!$LTLIBOBJS$ac_delim
36211_ACEOF
36212
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036213 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
Reid Spencera773bd52006-08-04 18:18:08 +000036214 break
36215 elif $ac_last_try; then
36216 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36217echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36218 { (exit 1); exit 1; }; }
36219 else
36220 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36221 fi
36222done
36223
36224ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36225if test -n "$ac_eof"; then
36226 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36227 ac_eof=`expr $ac_eof + 1`
36228fi
36229
36230cat >>$CONFIG_STATUS <<_ACEOF
36231cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36232/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36233_ACEOF
36234sed '
36235s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36236s/^/s,@/; s/!/@,|#_!!_#|/
36237:n
36238t n
36239s/'"$ac_delim"'$/,g/; t
36240s/$/\\/; p
36241N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36242' >>$CONFIG_STATUS <conf$$subs.sed
36243rm -f conf$$subs.sed
36244cat >>$CONFIG_STATUS <<_ACEOF
36245:end
36246s/|#_!!_#|//g
36247CEOF$ac_eof
36248_ACEOF
36249
36250
36251# VPATH may cause trouble with some makes, so we remove $(srcdir),
36252# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36253# trailing colons and then remove the whole line if VPATH becomes empty
36254# (actually we leave an empty line to preserve line numbers).
36255if test "x$srcdir" = x.; then
36256 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36257s/:*\$(srcdir):*/:/
36258s/:*\${srcdir}:*/:/
36259s/:*@srcdir@:*/:/
36260s/^\([^=]*=[ ]*\):*/\1/
36261s/:*$//
36262s/^[^=]*=[ ]*$//
36263}'
36264fi
36265
36266cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036267fi # test -n "$CONFIG_FILES"
36268
Reid Spencera773bd52006-08-04 18:18:08 +000036269
36270for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36271do
36272 case $ac_tag in
36273 :[FHLC]) ac_mode=$ac_tag; continue;;
36274 esac
36275 case $ac_mode$ac_tag in
36276 :[FHL]*:*);;
36277 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36278echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36279 { (exit 1); exit 1; }; };;
36280 :[FH]-) ac_tag=-:-;;
36281 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36282 esac
36283 ac_save_IFS=$IFS
36284 IFS=:
36285 set x $ac_tag
36286 IFS=$ac_save_IFS
36287 shift
36288 ac_file=$1
36289 shift
36290
36291 case $ac_mode in
36292 :L) ac_source=$1;;
36293 :[FH])
36294 ac_file_inputs=
36295 for ac_f
36296 do
36297 case $ac_f in
36298 -) ac_f="$tmp/stdin";;
36299 *) # Look for the file first in the build tree, then in the source tree
36300 # (if the path is not absolute). The absolute path cannot be DOS-style,
36301 # because $ac_f cannot contain `:'.
36302 test -f "$ac_f" ||
36303 case $ac_f in
36304 [\\/$]*) false;;
36305 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36306 esac ||
36307 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36308echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36309 { (exit 1); exit 1; }; };;
36310 esac
36311 ac_file_inputs="$ac_file_inputs $ac_f"
36312 done
36313
36314 # Let's still pretend it is `configure' which instantiates (i.e., don't
36315 # use $as_me), people would be surprised to read:
36316 # /* config.h. Generated by config.status. */
36317 configure_input="Generated from "`IFS=:
36318 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36319 if test x"$ac_file" != x-; then
36320 configure_input="$ac_file. $configure_input"
36321 { echo "$as_me:$LINENO: creating $ac_file" >&5
36322echo "$as_me: creating $ac_file" >&6;}
36323 fi
36324
36325 case $ac_tag in
36326 *:-:* | *:-) cat >"$tmp/stdin";;
36327 esac
36328 ;;
John Criswell7a73b802003-06-30 21:59:07 +000036329 esac
36330
Reid Spencera773bd52006-08-04 18:18:08 +000036331 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000036332$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036333 X"$ac_file" : 'X\(//\)[^/]' \| \
36334 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036335 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000036336echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000036337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36338 s//\1/
36339 q
36340 }
36341 /^X\(\/\/\)[^/].*/{
36342 s//\1/
36343 q
36344 }
36345 /^X\(\/\/\)$/{
36346 s//\1/
36347 q
36348 }
36349 /^X\(\/\).*/{
36350 s//\1/
36351 q
36352 }
36353 s/.*/./; q'`
36354 { as_dir="$ac_dir"
36355 case $as_dir in #(
36356 -*) as_dir=./$as_dir;;
36357 esac
36358 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000036359 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036360 while :; do
36361 case $as_dir in #(
36362 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36363 *) as_qdir=$as_dir;;
36364 esac
36365 as_dirs="'$as_qdir' $as_dirs"
36366 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036367$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036368 X"$as_dir" : 'X\(//\)[^/]' \| \
36369 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036370 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036371echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36373 s//\1/
36374 q
36375 }
36376 /^X\(\/\/\)[^/].*/{
36377 s//\1/
36378 q
36379 }
36380 /^X\(\/\/\)$/{
36381 s//\1/
36382 q
36383 }
36384 /^X\(\/\).*/{
36385 s//\1/
36386 q
36387 }
36388 s/.*/./; q'`
36389 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000036390 done
Reid Spencera773bd52006-08-04 18:18:08 +000036391 test -z "$as_dirs" || eval "mkdir $as_dirs"
36392 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36393echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000036394 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000036395 ac_builddir=.
36396
Reid Spencera773bd52006-08-04 18:18:08 +000036397case "$ac_dir" in
36398.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36399*)
John Criswell7a73b802003-06-30 21:59:07 +000036400 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036401 # A ".." for each directory in $ac_dir_suffix.
36402 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36403 case $ac_top_builddir_sub in
36404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36406 esac ;;
36407esac
36408ac_abs_top_builddir=$ac_pwd
36409ac_abs_builddir=$ac_pwd$ac_dir_suffix
36410# for backward compatibility:
36411ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000036412
36413case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036414 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000036415 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036416 ac_top_srcdir=$ac_top_builddir_sub
36417 ac_abs_top_srcdir=$ac_pwd ;;
36418 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000036419 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036420 ac_top_srcdir=$srcdir
36421 ac_abs_top_srcdir=$srcdir ;;
36422 *) # Relative name.
36423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36424 ac_top_srcdir=$ac_top_build_prefix$srcdir
36425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000036426esac
Reid Spencera773bd52006-08-04 18:18:08 +000036427ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000036428
John Criswell7a73b802003-06-30 21:59:07 +000036429
Reid Spencera773bd52006-08-04 18:18:08 +000036430 case $ac_mode in
36431 :F)
36432 #
36433 # CONFIG_FILE
36434 #
John Criswell7a73b802003-06-30 21:59:07 +000036435
36436 case $INSTALL in
36437 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036438 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000036439 esac
John Criswell7a73b802003-06-30 21:59:07 +000036440_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036441
36442cat >>$CONFIG_STATUS <<\_ACEOF
36443# If the template does not know about datarootdir, expand it.
36444# FIXME: This hack should be removed a few years after 2.60.
36445ac_datarootdir_hack=; ac_datarootdir_seen=
36446
36447case `sed -n '/datarootdir/ {
36448 p
36449 q
36450}
36451/@datadir@/p
36452/@docdir@/p
36453/@infodir@/p
36454/@localedir@/p
36455/@mandir@/p
36456' $ac_file_inputs` in
36457*datarootdir*) ac_datarootdir_seen=yes;;
36458*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36459 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36460echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36461_ACEOF
36462cat >>$CONFIG_STATUS <<_ACEOF
36463 ac_datarootdir_hack='
36464 s&@datadir@&$datadir&g
36465 s&@docdir@&$docdir&g
36466 s&@infodir@&$infodir&g
36467 s&@localedir@&$localedir&g
36468 s&@mandir@&$mandir&g
36469 s&\\\${datarootdir}&$datarootdir&g' ;;
36470esac
36471_ACEOF
36472
36473# Neutralize VPATH when `$srcdir' = `.'.
36474# Shell code in configure.ac might set extrasub.
36475# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000036476cat >>$CONFIG_STATUS <<_ACEOF
36477 sed "$ac_vpsub
36478$extrasub
36479_ACEOF
36480cat >>$CONFIG_STATUS <<\_ACEOF
36481:t
36482/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000036483s&@configure_input@&$configure_input&;t t
36484s&@top_builddir@&$ac_top_builddir_sub&;t t
36485s&@srcdir@&$ac_srcdir&;t t
36486s&@abs_srcdir@&$ac_abs_srcdir&;t t
36487s&@top_srcdir@&$ac_top_srcdir&;t t
36488s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36489s&@builddir@&$ac_builddir&;t t
36490s&@abs_builddir@&$ac_abs_builddir&;t t
36491s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36492s&@INSTALL@&$ac_INSTALL&;t t
36493$ac_datarootdir_hack
36494" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000036495
Reid Spencera773bd52006-08-04 18:18:08 +000036496test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36497 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36498 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36499 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36500which seems to be undefined. Please make sure it is defined." >&5
36501echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36502which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000036503
Reid Spencera773bd52006-08-04 18:18:08 +000036504 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000036505 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000036506 -) cat "$tmp/out"; rm -f "$tmp/out";;
36507 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000036508 esac
Reid Spencera773bd52006-08-04 18:18:08 +000036509 ;;
36510 :H)
36511 #
36512 # CONFIG_HEADER
36513 #
John Criswell7a73b802003-06-30 21:59:07 +000036514_ACEOF
36515
Reid Spencera773bd52006-08-04 18:18:08 +000036516# Transform confdefs.h into a sed script `conftest.defines', that
36517# substitutes the proper values into config.h.in to produce config.h.
36518rm -f conftest.defines conftest.tail
36519# First, append a space to every undef/define line, to ease matching.
36520echo 's/$/ /' >conftest.defines
36521# Then, protect against being on the right side of a sed subst, or in
36522# an unquoted here document, in config.status. If some macros were
36523# called several times there might be several #defines for the same
36524# symbol, which is useless. But do not sort them, since the last
36525# AC_DEFINE must be honored.
36526ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36527# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36528# NAME is the cpp macro being defined, VALUE is the value it is being given.
36529# PARAMS is the parameter list in the macro definition--in most cases, it's
36530# just an empty string.
36531ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36532ac_dB='\\)[ (].*,\\1define\\2'
36533ac_dC=' '
36534ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000036535
Reid Spencera773bd52006-08-04 18:18:08 +000036536uniq confdefs.h |
36537 sed -n '
36538 t rset
36539 :rset
36540 s/^[ ]*#[ ]*define[ ][ ]*//
36541 t ok
36542 d
36543 :ok
36544 s/[\\&,]/\\&/g
36545 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36546 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36547 ' >>conftest.defines
36548
36549# Remove the space that was appended to ease matching.
36550# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000036551# example, in the case of _POSIX_SOURCE, which is predefined and required
36552# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000036553# (The regexp can be short, since the line contains either #define or #undef.)
36554echo 's/ $//
36555s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000036556
Reid Spencera773bd52006-08-04 18:18:08 +000036557# Break up conftest.defines:
36558ac_max_sed_lines=50
36559
36560# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36561# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36562# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36563# et cetera.
36564ac_in='$ac_file_inputs'
36565ac_out='"$tmp/out1"'
36566ac_nxt='"$tmp/out2"'
36567
36568while :
John Criswell7a73b802003-06-30 21:59:07 +000036569do
Reid Spencera773bd52006-08-04 18:18:08 +000036570 # Write a here document:
36571 cat >>$CONFIG_STATUS <<_ACEOF
36572 # First, check the format of the line:
36573 cat >"\$tmp/defines.sed" <<\\CEOF
36574/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36575/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36576b
36577:def
36578_ACEOF
36579 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036580 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036581 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36582 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36583 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36584 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000036585 rm -f conftest.defines
36586 mv conftest.tail conftest.defines
36587done
Reid Spencera773bd52006-08-04 18:18:08 +000036588rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000036589
Reid Spencera773bd52006-08-04 18:18:08 +000036590echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036591cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036592 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000036593 echo "/* $configure_input */" >"$tmp/config.h"
36594 cat "$ac_result" >>"$tmp/config.h"
36595 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000036596 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36597echo "$as_me: $ac_file is unchanged" >&6;}
36598 else
John Criswell7a73b802003-06-30 21:59:07 +000036599 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000036600 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000036601 fi
36602 else
Reid Spencera773bd52006-08-04 18:18:08 +000036603 echo "/* $configure_input */"
36604 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000036605 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036606 rm -f "$tmp/out12"
36607 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036608
Reid Spencera773bd52006-08-04 18:18:08 +000036609 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36610echo "$as_me: executing $ac_file commands" >&6;}
36611 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036612 esac
John Criswell7a73b802003-06-30 21:59:07 +000036613
Reid Spencera773bd52006-08-04 18:18:08 +000036614
36615 case $ac_file$ac_mode in
36616 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036617 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036618 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000036619 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036620 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036621 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036622 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036623 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036624 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036625 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036626 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036627 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036628 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000036629 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036630 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036631 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036632 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036633 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036634 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036635 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036636 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036637 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036638 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036639 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036640 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000036641 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036642
36643 esac
36644done # for ac_tag
36645
John Criswell7a73b802003-06-30 21:59:07 +000036646
36647{ (exit 0); exit 0; }
36648_ACEOF
36649chmod +x $CONFIG_STATUS
36650ac_clean_files=$ac_clean_files_save
36651
36652
36653# configure is writing to config.log, and then calls config.status.
36654# config.status does its own redirection, appending to config.log.
36655# Unfortunately, on DOS this fails, as config.log is still kept open
36656# by configure, so config.status won't be able to write to it; its
36657# output is simply discarded. So we exec the FD to /dev/null,
36658# effectively closing config.log, so it can be properly (re)opened and
36659# appended to by config.status. When coming back to configure, we
36660# need to make the FD available again.
36661if test "$no_create" != yes; then
36662 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000036663 ac_config_status_args=
36664 test "$silent" = yes &&
36665 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000036666 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000036667 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000036668 exec 5>>config.log
36669 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36670 # would make configure fail if this is the last instruction.
36671 $ac_cs_success || { (exit 1); exit 1; }
36672fi
36673
John Criswell12399a12003-09-30 15:55:44 +000036674#
36675# CONFIG_SUBDIRS section.
36676#
36677if test "$no_recursion" != yes; then
36678
36679 # Remove --cache-file and --srcdir arguments so they do not pile up.
36680 ac_sub_configure_args=
36681 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000036682 eval "set x $ac_configure_args"
36683 shift
36684 for ac_arg
36685 do
John Criswell12399a12003-09-30 15:55:44 +000036686 if test -n "$ac_prev"; then
36687 ac_prev=
36688 continue
36689 fi
36690 case $ac_arg in
36691 -cache-file | --cache-file | --cache-fil | --cache-fi \
36692 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36693 ac_prev=cache_file ;;
36694 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36695 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36696 | --c=*)
36697 ;;
36698 --config-cache | -C)
36699 ;;
36700 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36701 ac_prev=srcdir ;;
36702 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36703 ;;
36704 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36705 ac_prev=prefix ;;
36706 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36707 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036708 *)
36709 case $ac_arg in
36710 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36711 esac
36712 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036713 esac
36714 done
36715
36716 # Always prepend --prefix to ensure using the same prefix
36717 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036718 ac_arg="--prefix=$prefix"
36719 case $ac_arg in
36720 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36721 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000036722 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036723
36724 ac_popdir=`pwd`
36725 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36726
36727 # Do not complain, so a configure script can configure whichever
36728 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036729 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036730
Reid Spencera773bd52006-08-04 18:18:08 +000036731 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36732 echo "$as_me:$LINENO: $ac_msg" >&5
36733 echo "$ac_msg" >&6
36734 { as_dir="$ac_dir"
36735 case $as_dir in #(
36736 -*) as_dir=./$as_dir;;
36737 esac
36738 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036739 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036740 while :; do
36741 case $as_dir in #(
36742 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36743 *) as_qdir=$as_dir;;
36744 esac
36745 as_dirs="'$as_qdir' $as_dirs"
36746 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036747$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036748 X"$as_dir" : 'X\(//\)[^/]' \| \
36749 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036750 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036751echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36753 s//\1/
36754 q
36755 }
36756 /^X\(\/\/\)[^/].*/{
36757 s//\1/
36758 q
36759 }
36760 /^X\(\/\/\)$/{
36761 s//\1/
36762 q
36763 }
36764 /^X\(\/\).*/{
36765 s//\1/
36766 q
36767 }
36768 s/.*/./; q'`
36769 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036770 done
Reid Spencera773bd52006-08-04 18:18:08 +000036771 test -z "$as_dirs" || eval "mkdir $as_dirs"
36772 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36773echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036774 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036775 ac_builddir=.
36776
Reid Spencera773bd52006-08-04 18:18:08 +000036777case "$ac_dir" in
36778.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36779*)
John Criswell12399a12003-09-30 15:55:44 +000036780 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036781 # A ".." for each directory in $ac_dir_suffix.
36782 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36783 case $ac_top_builddir_sub in
36784 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36785 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36786 esac ;;
36787esac
36788ac_abs_top_builddir=$ac_pwd
36789ac_abs_builddir=$ac_pwd$ac_dir_suffix
36790# for backward compatibility:
36791ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036792
36793case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036794 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036795 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036796 ac_top_srcdir=$ac_top_builddir_sub
36797 ac_abs_top_srcdir=$ac_pwd ;;
36798 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036799 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036800 ac_top_srcdir=$srcdir
36801 ac_abs_top_srcdir=$srcdir ;;
36802 *) # Relative name.
36803 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36804 ac_top_srcdir=$ac_top_build_prefix$srcdir
36805 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036806esac
Reid Spencera773bd52006-08-04 18:18:08 +000036807ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036808
36809
Reid Spencera773bd52006-08-04 18:18:08 +000036810 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036811
36812 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036813 if test -f "$ac_srcdir/configure.gnu"; then
36814 ac_sub_configure=$ac_srcdir/configure.gnu
36815 elif test -f "$ac_srcdir/configure"; then
36816 ac_sub_configure=$ac_srcdir/configure
36817 elif test -f "$ac_srcdir/configure.in"; then
36818 # This should be Cygnus configure.
36819 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036820 else
36821 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36822echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36823 ac_sub_configure=
36824 fi
36825
36826 # The recursion is here.
36827 if test -n "$ac_sub_configure"; then
36828 # Make the cache file name correct relative to the subdirectory.
36829 case $cache_file in
36830 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036831 *) # Relative name.
36832 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036833 esac
36834
Reid Spencera773bd52006-08-04 18:18:08 +000036835 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36836echo "$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 +000036837 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036838 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36839 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036840 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036841echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36842 { (exit 1); exit 1; }; }
36843 fi
36844
Reid Spencera773bd52006-08-04 18:18:08 +000036845 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036846 done
36847fi
36848