blob: bed64f85163a40335b841ecaf2ccda77e9fd19cb [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
Bill Wendlinga0833352009-03-12 04:10:09 +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
Reid Spencera773bd52006-08-04 18:18:08 +0000840JIT
841TARGET_HAS_JIT
842ENABLE_DOXYGEN
843ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000844ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000845TARGETS_TO_BUILD
Douglas Gregor1555a232009-06-16 20:12:29 +0000846LLVM_ENUM_TARGETS
847LLVM_ENUM_ASM_PRINTERS
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +0000848LLVM_ENUM_ASM_PARSERS
Reid Spencer65c5d752006-11-05 17:08:18 +0000849ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000850EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000851BINUTILS_INCDIR
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +0000852ENABLE_LLVMC_DYNAMIC
853ENABLE_LLVMC_DYNAMIC_PLUGINS
Reid Spencera773bd52006-08-04 18:18:08 +0000854CXX
855CXXFLAGS
856ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000857NM
858ifGNUmake
859LN_S
860CMP
861CP
862DATE
863FIND
864MKDIR
865MV
866RANLIB
867RM
868SED
869TAR
870BINPWD
871GRAPHVIZ
872DOT
David Greenef0b9eff2009-07-09 17:16:26 +0000873FDP
874NEATO
875TWOPI
876CIRCO
Reid Spencera773bd52006-08-04 18:18:08 +0000877GV
878DOTTY
879PERL
880HAVE_PERL
881INSTALL_PROGRAM
882INSTALL_SCRIPT
883INSTALL_DATA
884BZIP2
885DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000886GROFF
887GZIP
888POD2HTML
889POD2MAN
890RUNTEST
891TCLSH
892ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000893OCAMLC
894OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000895OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000896OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000897GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000898INSTALL_LTDL_TRUE
899INSTALL_LTDL_FALSE
900CONVENIENCE_LTDL_TRUE
901CONVENIENCE_LTDL_FALSE
902LIBADD_DL
903ECHO
904AR
905STRIP
906CXXCPP
907F77
908FFLAGS
909ac_ct_F77
910LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000911LLVMGCCCOMMAND
912LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000913LLVMGCC
914LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000915USE_UDIS86
Jeffrey Yasskina93e7702009-07-10 21:09:55 +0000916USE_OPROFILE
Reid Spencer1000b732006-12-01 00:37:14 +0000917HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000918HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000919ALLOCA
920MMAP_FILE
921LLVMCC1
922LLVMCC1PLUS
923LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000924LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000925LLVMGCC_VERSION
926LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000927LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000928SHLIBEXT
929LLVM_PREFIX
930LLVM_BINDIR
931LLVM_LIBDIR
932LLVM_DATADIR
933LLVM_DOCSDIR
934LLVM_ETCDIR
935LLVM_INCLUDEDIR
936LLVM_INFODIR
937LLVM_MANDIR
938LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000939BINDINGS_TO_BUILD
940ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000941OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000942ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000943RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000944RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000945LIBOBJS
946LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000947ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000948 ac_precious_vars='build_alias
949host_alias
950target_alias
951CC
952CFLAGS
953LDFLAGS
954CPPFLAGS
955CPP
956CXX
957CXXFLAGS
958CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000959CXXCPP
960F77
961FFLAGS'
962ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000963projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000964projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000965projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000966projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000967projects/llvm-reopt
968projects/llvm-gcc
969projects/llvm-java
970projects/llvm-tv
971projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000972projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000973projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000974
975# Initialize some variables set by options.
976ac_init_help=
977ac_init_version=false
978# The variables have the same names as the options, with
979# dashes changed to underlines.
980cache_file=/dev/null
981exec_prefix=NONE
982no_create=
983no_recursion=
984prefix=NONE
985program_prefix=NONE
986program_suffix=NONE
987program_transform_name=s,x,x,
988silent=
989site=
990srcdir=
991verbose=
992x_includes=NONE
993x_libraries=NONE
994
995# Installation directory options.
996# These are left unexpanded so users can "make install exec_prefix=/foo"
997# and all the variables that are supposed to be based on exec_prefix
998# by default will actually change.
999# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +00001000# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +00001001bindir='${exec_prefix}/bin'
1002sbindir='${exec_prefix}/sbin'
1003libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001004datarootdir='${prefix}/share'
1005datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001006sysconfdir='${prefix}/etc'
1007sharedstatedir='${prefix}/com'
1008localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001009includedir='${prefix}/include'
1010oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001011docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1012infodir='${datarootdir}/info'
1013htmldir='${docdir}'
1014dvidir='${docdir}'
1015pdfdir='${docdir}'
1016psdir='${docdir}'
1017libdir='${exec_prefix}/lib'
1018localedir='${datarootdir}/locale'
1019mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001020
1021ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001022ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001023for ac_option
1024do
1025 # If the previous option needs an argument, assign it.
1026 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001027 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001028 ac_prev=
1029 continue
1030 fi
1031
Reid Spencera773bd52006-08-04 18:18:08 +00001032 case $ac_option in
1033 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 *) ac_optarg=yes ;;
1035 esac
John Criswell7a73b802003-06-30 21:59:07 +00001036
1037 # Accept the important Cygnus configure options, so we can diagnose typos.
1038
Reid Spencera773bd52006-08-04 18:18:08 +00001039 case $ac_dashdash$ac_option in
1040 --)
1041 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001042
1043 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044 ac_prev=bindir ;;
1045 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046 bindir=$ac_optarg ;;
1047
1048 -build | --build | --buil | --bui | --bu)
1049 ac_prev=build_alias ;;
1050 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051 build_alias=$ac_optarg ;;
1052
1053 -cache-file | --cache-file | --cache-fil | --cache-fi \
1054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055 ac_prev=cache_file ;;
1056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058 cache_file=$ac_optarg ;;
1059
1060 --config-cache | -C)
1061 cache_file=config.cache ;;
1062
Reid Spencera773bd52006-08-04 18:18:08 +00001063 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001064 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001065 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001066 datadir=$ac_optarg ;;
1067
Reid Spencera773bd52006-08-04 18:18:08 +00001068 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069 | --dataroo | --dataro | --datar)
1070 ac_prev=datarootdir ;;
1071 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073 datarootdir=$ac_optarg ;;
1074
John Criswell7a73b802003-06-30 21:59:07 +00001075 -disable-* | --disable-*)
1076 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001078 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001079 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1080 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001081 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001082 eval enable_$ac_feature=no ;;
1083
1084 -docdir | --docdir | --docdi | --doc | --do)
1085 ac_prev=docdir ;;
1086 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1087 docdir=$ac_optarg ;;
1088
1089 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090 ac_prev=dvidir ;;
1091 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1092 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001093
1094 -enable-* | --enable-*)
1095 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001097 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001098 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1099 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001100 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001101 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001102
1103 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1104 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1105 | --exec | --exe | --ex)
1106 ac_prev=exec_prefix ;;
1107 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1108 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1109 | --exec=* | --exe=* | --ex=*)
1110 exec_prefix=$ac_optarg ;;
1111
1112 -gas | --gas | --ga | --g)
1113 # Obsolete; use --with-gas.
1114 with_gas=yes ;;
1115
1116 -help | --help | --hel | --he | -h)
1117 ac_init_help=long ;;
1118 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1119 ac_init_help=recursive ;;
1120 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1121 ac_init_help=short ;;
1122
1123 -host | --host | --hos | --ho)
1124 ac_prev=host_alias ;;
1125 -host=* | --host=* | --hos=* | --ho=*)
1126 host_alias=$ac_optarg ;;
1127
Reid Spencera773bd52006-08-04 18:18:08 +00001128 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1129 ac_prev=htmldir ;;
1130 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1131 | --ht=*)
1132 htmldir=$ac_optarg ;;
1133
John Criswell7a73b802003-06-30 21:59:07 +00001134 -includedir | --includedir | --includedi | --included | --include \
1135 | --includ | --inclu | --incl | --inc)
1136 ac_prev=includedir ;;
1137 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1138 | --includ=* | --inclu=* | --incl=* | --inc=*)
1139 includedir=$ac_optarg ;;
1140
1141 -infodir | --infodir | --infodi | --infod | --info | --inf)
1142 ac_prev=infodir ;;
1143 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1144 infodir=$ac_optarg ;;
1145
1146 -libdir | --libdir | --libdi | --libd)
1147 ac_prev=libdir ;;
1148 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1149 libdir=$ac_optarg ;;
1150
1151 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1152 | --libexe | --libex | --libe)
1153 ac_prev=libexecdir ;;
1154 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1155 | --libexe=* | --libex=* | --libe=*)
1156 libexecdir=$ac_optarg ;;
1157
Reid Spencera773bd52006-08-04 18:18:08 +00001158 -localedir | --localedir | --localedi | --localed | --locale)
1159 ac_prev=localedir ;;
1160 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1161 localedir=$ac_optarg ;;
1162
John Criswell7a73b802003-06-30 21:59:07 +00001163 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001164 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001165 ac_prev=localstatedir ;;
1166 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001167 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001168 localstatedir=$ac_optarg ;;
1169
1170 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1171 ac_prev=mandir ;;
1172 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1173 mandir=$ac_optarg ;;
1174
1175 -nfp | --nfp | --nf)
1176 # Obsolete; use --without-fp.
1177 with_fp=no ;;
1178
1179 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1180 | --no-cr | --no-c | -n)
1181 no_create=yes ;;
1182
1183 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1184 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 no_recursion=yes ;;
1186
1187 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1188 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1189 | --oldin | --oldi | --old | --ol | --o)
1190 ac_prev=oldincludedir ;;
1191 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1192 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1193 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1194 oldincludedir=$ac_optarg ;;
1195
1196 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1197 ac_prev=prefix ;;
1198 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1199 prefix=$ac_optarg ;;
1200
1201 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1202 | --program-pre | --program-pr | --program-p)
1203 ac_prev=program_prefix ;;
1204 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1205 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1206 program_prefix=$ac_optarg ;;
1207
1208 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1209 | --program-suf | --program-su | --program-s)
1210 ac_prev=program_suffix ;;
1211 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1212 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1213 program_suffix=$ac_optarg ;;
1214
1215 -program-transform-name | --program-transform-name \
1216 | --program-transform-nam | --program-transform-na \
1217 | --program-transform-n | --program-transform- \
1218 | --program-transform | --program-transfor \
1219 | --program-transfo | --program-transf \
1220 | --program-trans | --program-tran \
1221 | --progr-tra | --program-tr | --program-t)
1222 ac_prev=program_transform_name ;;
1223 -program-transform-name=* | --program-transform-name=* \
1224 | --program-transform-nam=* | --program-transform-na=* \
1225 | --program-transform-n=* | --program-transform-=* \
1226 | --program-transform=* | --program-transfor=* \
1227 | --program-transfo=* | --program-transf=* \
1228 | --program-trans=* | --program-tran=* \
1229 | --progr-tra=* | --program-tr=* | --program-t=*)
1230 program_transform_name=$ac_optarg ;;
1231
Reid Spencera773bd52006-08-04 18:18:08 +00001232 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1233 ac_prev=pdfdir ;;
1234 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1235 pdfdir=$ac_optarg ;;
1236
1237 -psdir | --psdir | --psdi | --psd | --ps)
1238 ac_prev=psdir ;;
1239 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 psdir=$ac_optarg ;;
1241
John Criswell7a73b802003-06-30 21:59:07 +00001242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1244 silent=yes ;;
1245
1246 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247 ac_prev=sbindir ;;
1248 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249 | --sbi=* | --sb=*)
1250 sbindir=$ac_optarg ;;
1251
1252 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254 | --sharedst | --shareds | --shared | --share | --shar \
1255 | --sha | --sh)
1256 ac_prev=sharedstatedir ;;
1257 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260 | --sha=* | --sh=*)
1261 sharedstatedir=$ac_optarg ;;
1262
1263 -site | --site | --sit)
1264 ac_prev=site ;;
1265 -site=* | --site=* | --sit=*)
1266 site=$ac_optarg ;;
1267
1268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269 ac_prev=srcdir ;;
1270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271 srcdir=$ac_optarg ;;
1272
1273 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274 | --syscon | --sysco | --sysc | --sys | --sy)
1275 ac_prev=sysconfdir ;;
1276 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278 sysconfdir=$ac_optarg ;;
1279
1280 -target | --target | --targe | --targ | --tar | --ta | --t)
1281 ac_prev=target_alias ;;
1282 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283 target_alias=$ac_optarg ;;
1284
1285 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 verbose=yes ;;
1287
1288 -version | --version | --versio | --versi | --vers | -V)
1289 ac_init_version=: ;;
1290
1291 -with-* | --with-*)
1292 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001294 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001295 { echo "$as_me: error: invalid package name: $ac_package" >&2
1296 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001297 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001298 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001299
1300 -without-* | --without-*)
1301 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001303 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001304 { echo "$as_me: error: invalid package name: $ac_package" >&2
1305 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001306 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001307 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001308
1309 --x)
1310 # Obsolete; use --with-x.
1311 with_x=yes ;;
1312
1313 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314 | --x-incl | --x-inc | --x-in | --x-i)
1315 ac_prev=x_includes ;;
1316 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318 x_includes=$ac_optarg ;;
1319
1320 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322 ac_prev=x_libraries ;;
1323 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325 x_libraries=$ac_optarg ;;
1326
1327 -*) { echo "$as_me: error: unrecognized option: $ac_option
1328Try \`$0 --help' for more information." >&2
1329 { (exit 1); exit 1; }; }
1330 ;;
1331
1332 *=*)
1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
1335 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1336 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1337 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001338 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001339 export $ac_envvar ;;
1340
1341 *)
1342 # FIXME: should be removed in autoconf 3.0.
1343 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1347 ;;
1348
1349 esac
1350done
1351
1352if test -n "$ac_prev"; then
1353 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354 { echo "$as_me: error: missing argument to $ac_option" >&2
1355 { (exit 1); exit 1; }; }
1356fi
1357
Reid Spencera773bd52006-08-04 18:18:08 +00001358# Be sure to have absolute directory names.
1359for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1360 datadir sysconfdir sharedstatedir localstatedir includedir \
1361 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1362 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001363do
Reid Spencera773bd52006-08-04 18:18:08 +00001364 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001365 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001366 [\\/$]* | ?:[\\/]* ) continue;;
1367 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001368 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001369 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1370 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001371done
1372
1373# There might be people who depend on the old broken behavior: `$host'
1374# used to hold the argument of --host etc.
1375# FIXME: To remove some day.
1376build=$build_alias
1377host=$host_alias
1378target=$target_alias
1379
1380# FIXME: To remove some day.
1381if test "x$host_alias" != x; then
1382 if test "x$build_alias" = x; then
1383 cross_compiling=maybe
1384 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1385 If a cross compiler is detected then cross compile mode will be used." >&2
1386 elif test "x$build_alias" != "x$host_alias"; then
1387 cross_compiling=yes
1388 fi
1389fi
1390
1391ac_tool_prefix=
1392test -n "$host_alias" && ac_tool_prefix=$host_alias-
1393
1394test "$silent" = yes && exec 6>/dev/null
1395
1396
Reid Spencera773bd52006-08-04 18:18:08 +00001397ac_pwd=`pwd` && test -n "$ac_pwd" &&
1398ac_ls_di=`ls -di .` &&
1399ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1400 { echo "$as_me: error: Working directory cannot be determined" >&2
1401 { (exit 1); exit 1; }; }
1402test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1403 { echo "$as_me: error: pwd does not report name of working directory" >&2
1404 { (exit 1); exit 1; }; }
1405
1406
John Criswell7a73b802003-06-30 21:59:07 +00001407# Find the source files, if location was not specified.
1408if test -z "$srcdir"; then
1409 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001410 # Try the directory containing this script, then the parent directory.
1411 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001412$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001413 X"$0" : 'X\(//\)[^/]' \| \
1414 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001415 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001416echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418 s//\1/
1419 q
1420 }
1421 /^X\(\/\/\)[^/].*/{
1422 s//\1/
1423 q
1424 }
1425 /^X\(\/\/\)$/{
1426 s//\1/
1427 q
1428 }
1429 /^X\(\/\).*/{
1430 s//\1/
1431 q
1432 }
1433 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001434 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001435 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001436 srcdir=..
1437 fi
1438else
1439 ac_srcdir_defaulted=no
1440fi
Reid Spencera773bd52006-08-04 18:18:08 +00001441if test ! -r "$srcdir/$ac_unique_file"; then
1442 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1443 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001444 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001445fi
Reid Spencera773bd52006-08-04 18:18:08 +00001446ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1447ac_abs_confdir=`(
1448 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001449 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001450 pwd)`
1451# When building in place, set srcdir=.
1452if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 srcdir=.
1454fi
1455# Remove unnecessary trailing slashes from srcdir.
1456# Double slashes in file names in object file debugging info
1457# mess up M-x gdb in Emacs.
1458case $srcdir in
1459*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460esac
1461for ac_var in $ac_precious_vars; do
1462 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_env_${ac_var}_value=\$${ac_var}
1464 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466done
John Criswell7a73b802003-06-30 21:59:07 +00001467
1468#
1469# Report the --help message.
1470#
1471if test "$ac_init_help" = "long"; then
1472 # Omit some internal or obsolete options to make the list less imposing.
1473 # This message is too long to be a string in the A/UX 3.1 sh.
1474 cat <<_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001475\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001476
1477Usage: $0 [OPTION]... [VAR=VALUE]...
1478
1479To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480VAR=VALUE. See below for descriptions of some of the useful variables.
1481
1482Defaults for the options are specified in brackets.
1483
1484Configuration:
1485 -h, --help display this help and exit
1486 --help=short display options specific to this package
1487 --help=recursive display the short help of all the included packages
1488 -V, --version display version information and exit
1489 -q, --quiet, --silent do not print \`checking...' messages
1490 --cache-file=FILE cache test results in FILE [disabled]
1491 -C, --config-cache alias for \`--cache-file=config.cache'
1492 -n, --no-create do not create output files
1493 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1494
John Criswell7a73b802003-06-30 21:59:07 +00001495Installation directories:
1496 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001497 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001498 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001499 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001500
1501By default, \`make install' will install all the files in
1502\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1503an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504for instance \`--prefix=\$HOME'.
1505
1506For better control, use the options below.
1507
1508Fine tuning of the installation directories:
1509 --bindir=DIR user executables [EPREFIX/bin]
1510 --sbindir=DIR system admin executables [EPREFIX/sbin]
1511 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001512 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1513 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1514 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1515 --libdir=DIR object code libraries [EPREFIX/lib]
1516 --includedir=DIR C header files [PREFIX/include]
1517 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1520 --infodir=DIR info documentation [DATAROOTDIR/info]
1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1522 --mandir=DIR man documentation [DATAROOTDIR/man]
1523 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1524 --htmldir=DIR html documentation [DOCDIR]
1525 --dvidir=DIR dvi documentation [DOCDIR]
1526 --pdfdir=DIR pdf documentation [DOCDIR]
1527 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001528_ACEOF
1529
1530 cat <<\_ACEOF
1531
1532System types:
1533 --build=BUILD configure for building on BUILD [guessed]
1534 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1535 --target=TARGET configure for building compilers for TARGET [HOST]
1536_ACEOF
1537fi
1538
1539if test -n "$ac_init_help"; then
1540 case $ac_init_help in
Tanya Lattner953042b2009-08-22 04:37:30 +00001541 short | recursive ) echo "Configuration of llvm 2.7svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001542 esac
1543 cat <<\_ACEOF
1544
1545Optional Features:
1546 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1547 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001548 --enable-optimized Compile with optimizations enabled (default is NO)
1549 --enable-profiling Compile with profiling enabled (default is NO)
1550 --enable-assertions Compile with assertion checks enabled (default is
1551 YES)
David Greenea696d242007-06-28 19:36:08 +00001552 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001553 Compile with expensive debug checks enabled (default
1554 is NO)
1555 --enable-debug-runtime Build runtime libs with debug symbols (default is
1556 NO)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001557 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001558 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001559 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001560 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001561 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001562 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001563 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001564 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1565 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001566 --enable-bindings Build specific language bindings:
1567 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001568 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001569 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1570 Win32)
1571 --enable-llvmc-dynamic-plugins
1572 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001573 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001574 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001575 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001576 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001577 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001578 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001579 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001580 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001581 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001582
1583Optional Packages:
1584 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1585 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001586 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1587 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001588 --with-llvmgcc Specify location of llvm-gcc driver (default
1589 searches PATH)
1590 --with-llvmgxx Specify location of llvm-g++ driver (default
1591 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001592 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001593 --with-ocaml-libdir Specify install location for ocaml bindings (default
1594 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001595 --with-binutils-include Specify path to binutils/include/ containing
1596 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001597 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001598 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1599 --with-pic try to use only PIC/non-PIC objects [default=use
1600 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001601 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001602 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001603 --with-oprofile=<prefix>
1604 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001605
1606Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001607 CC C compiler command
1608 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001609 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1610 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001611 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1612 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001613 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001614 CXX C++ compiler command
1615 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001616 CXXCPP C++ preprocessor
1617 F77 Fortran 77 compiler command
1618 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001619
1620Use these variables to override the choices made by `configure' or to help
1621it to find libraries and programs with nonstandard names/locations.
1622
1623Report bugs to <llvmbugs@cs.uiuc.edu>.
1624_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001625ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001626fi
1627
1628if test "$ac_init_help" = "recursive"; then
1629 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001630 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001631 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001632 ac_builddir=.
1633
Reid Spencera773bd52006-08-04 18:18:08 +00001634case "$ac_dir" in
1635.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636*)
John Criswell7a73b802003-06-30 21:59:07 +00001637 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001638 # A ".." for each directory in $ac_dir_suffix.
1639 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1640 case $ac_top_builddir_sub in
1641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1643 esac ;;
1644esac
1645ac_abs_top_builddir=$ac_pwd
1646ac_abs_builddir=$ac_pwd$ac_dir_suffix
1647# for backward compatibility:
1648ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001649
1650case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001651 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001652 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001653 ac_top_srcdir=$ac_top_builddir_sub
1654 ac_abs_top_srcdir=$ac_pwd ;;
1655 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001656 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001657 ac_top_srcdir=$srcdir
1658 ac_abs_top_srcdir=$srcdir ;;
1659 *) # Relative name.
1660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1661 ac_top_srcdir=$ac_top_build_prefix$srcdir
1662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001663esac
Reid Spencera773bd52006-08-04 18:18:08 +00001664ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001665
Reid Spencera773bd52006-08-04 18:18:08 +00001666 cd "$ac_dir" || { ac_status=$?; continue; }
1667 # Check for guested configure.
1668 if test -f "$ac_srcdir/configure.gnu"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1671 elif test -f "$ac_srcdir/configure"; then
1672 echo &&
1673 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001674 else
1675 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001676 fi || ac_status=$?
1677 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001678 done
1679fi
1680
Reid Spencera773bd52006-08-04 18:18:08 +00001681test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001682if $ac_init_version; then
1683 cat <<\_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001684llvm configure 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001685generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001686
Reid Spencera773bd52006-08-04 18:18:08 +00001687Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16882002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001689This configure script is free software; the Free Software Foundation
1690gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001691
Tanya Lattnerc2264592009-08-22 21:01:26 +00001692Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001693_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001694 exit
John Criswell7a73b802003-06-30 21:59:07 +00001695fi
Reid Spencera773bd52006-08-04 18:18:08 +00001696cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001697This file contains any messages produced by compilers while
1698running configure, to aid debugging if configure makes a mistake.
1699
Tanya Lattner953042b2009-08-22 04:37:30 +00001700It was created by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001701generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001702
1703 $ $0 $@
1704
1705_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001706exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001707{
1708cat <<_ASUNAME
1709## --------- ##
1710## Platform. ##
1711## --------- ##
1712
1713hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717uname -v = `(uname -v) 2>/dev/null || echo unknown`
1718
1719/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1721
1722/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1723/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1724/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001725/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001726/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1727/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1728/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1729
1730_ASUNAME
1731
1732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733for as_dir in $PATH
1734do
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 echo "PATH: $as_dir"
1738done
Reid Spencera773bd52006-08-04 18:18:08 +00001739IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001740
1741} >&5
1742
1743cat >&5 <<_ACEOF
1744
1745
1746## ----------- ##
1747## Core tests. ##
1748## ----------- ##
1749
1750_ACEOF
1751
1752
1753# Keep a trace of the command line.
1754# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001755# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001756# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001757# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001758ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001759ac_configure_args0=
1760ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001761ac_must_keep_next=false
1762for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001763do
John Criswell0c38eaf2003-09-10 15:17:25 +00001764 for ac_arg
1765 do
1766 case $ac_arg in
1767 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1769 | -silent | --silent | --silen | --sile | --sil)
1770 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001771 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1773 esac
1774 case $ac_pass in
1775 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1776 2)
1777 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1778 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001779 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001780 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001781 case $ac_arg in
1782 *=* | --config-cache | -C | -disable-* | --disable-* \
1783 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1784 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1785 | -with-* | --with-* | -without-* | --without-* | --x)
1786 case "$ac_configure_args0 " in
1787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1788 esac
1789 ;;
1790 -* ) ac_must_keep_next=true ;;
1791 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001792 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001793 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001794 ;;
1795 esac
1796 done
John Criswell7a73b802003-06-30 21:59:07 +00001797done
John Criswell0c38eaf2003-09-10 15:17:25 +00001798$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1799$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 +00001800
1801# When interrupted or exit'd, cleanup temporary files, and complete
1802# config.log. We remove comments because anyway the quotes in there
1803# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001804# WARNING: Use '\'' to represent an apostrophe within the trap.
1805# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001806trap 'exit_status=$?
1807 # Save into config.log some information that might help in debugging.
1808 {
1809 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001810
John Criswell7a73b802003-06-30 21:59:07 +00001811 cat <<\_ASBOX
1812## ---------------- ##
1813## Cache variables. ##
1814## ---------------- ##
1815_ASBOX
1816 echo
1817 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001818(
1819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820 eval ac_val=\$$ac_var
1821 case $ac_val in #(
1822 *${as_nl}*)
1823 case $ac_var in #(
1824 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1825echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1826 esac
1827 case $ac_var in #(
1828 _ | IFS | as_nl) ;; #(
1829 *) $as_unset $ac_var ;;
1830 esac ;;
1831 esac
1832 done
John Criswell7a73b802003-06-30 21:59:07 +00001833 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001834 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001836 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001837 "s/'\''/'\''\\\\'\'''\''/g;
1838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1839 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001840 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001841 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001842 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001843 esac |
1844 sort
1845)
John Criswell7a73b802003-06-30 21:59:07 +00001846 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001847
1848 cat <<\_ASBOX
1849## ----------------- ##
1850## Output variables. ##
1851## ----------------- ##
1852_ASBOX
1853 echo
1854 for ac_var in $ac_subst_vars
1855 do
Reid Spencera773bd52006-08-04 18:18:08 +00001856 eval ac_val=\$$ac_var
1857 case $ac_val in
1858 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 esac
1860 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001861 done | sort
1862 echo
1863
1864 if test -n "$ac_subst_files"; then
1865 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001866## ------------------- ##
1867## File substitutions. ##
1868## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001869_ASBOX
1870 echo
1871 for ac_var in $ac_subst_files
1872 do
Reid Spencera773bd52006-08-04 18:18:08 +00001873 eval ac_val=\$$ac_var
1874 case $ac_val in
1875 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 esac
1877 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001878 done | sort
1879 echo
1880 fi
1881
John Criswell7a73b802003-06-30 21:59:07 +00001882 if test -s confdefs.h; then
1883 cat <<\_ASBOX
1884## ----------- ##
1885## confdefs.h. ##
1886## ----------- ##
1887_ASBOX
1888 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001889 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001890 echo
1891 fi
1892 test "$ac_signal" != 0 &&
1893 echo "$as_me: caught signal $ac_signal"
1894 echo "$as_me: exit $exit_status"
1895 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001896 rm -f core *.core core.conftest.* &&
1897 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001898 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001899' 0
John Criswell7a73b802003-06-30 21:59:07 +00001900for ac_signal in 1 2 13 15; do
1901 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1902done
1903ac_signal=0
1904
1905# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001906rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001907
1908# Predefined preprocessor variables.
1909
1910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE_NAME "$PACKAGE_NAME"
1912_ACEOF
1913
1914
1915cat >>confdefs.h <<_ACEOF
1916#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917_ACEOF
1918
1919
1920cat >>confdefs.h <<_ACEOF
1921#define PACKAGE_VERSION "$PACKAGE_VERSION"
1922_ACEOF
1923
1924
1925cat >>confdefs.h <<_ACEOF
1926#define PACKAGE_STRING "$PACKAGE_STRING"
1927_ACEOF
1928
1929
1930cat >>confdefs.h <<_ACEOF
1931#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1932_ACEOF
1933
1934
1935# Let the site file select an alternate cache file if it wants to.
1936# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001937if test -n "$CONFIG_SITE"; then
1938 set x "$CONFIG_SITE"
1939elif test "x$prefix" != xNONE; then
1940 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1941else
1942 set x "$ac_default_prefix/share/config.site" \
1943 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001944fi
Reid Spencera773bd52006-08-04 18:18:08 +00001945shift
1946for ac_site_file
1947do
John Criswell7a73b802003-06-30 21:59:07 +00001948 if test -r "$ac_site_file"; then
1949 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1950echo "$as_me: loading site script $ac_site_file" >&6;}
1951 sed 's/^/| /' "$ac_site_file" >&5
1952 . "$ac_site_file"
1953 fi
1954done
1955
1956if test -r "$cache_file"; then
1957 # Some versions of bash will fail to source /dev/null (special
1958 # files actually), so we avoid doing that.
1959 if test -f "$cache_file"; then
1960 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1961echo "$as_me: loading cache $cache_file" >&6;}
1962 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001963 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1964 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001965 esac
1966 fi
1967else
1968 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1969echo "$as_me: creating cache $cache_file" >&6;}
1970 >$cache_file
1971fi
1972
1973# Check that the precious variables saved in the cache have kept the same
1974# value.
1975ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001976for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001977 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1978 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001979 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1980 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001981 case $ac_old_set,$ac_new_set in
1982 set,)
1983 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1984echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1985 ac_cache_corrupted=: ;;
1986 ,set)
1987 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1988echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1989 ac_cache_corrupted=: ;;
1990 ,);;
1991 *)
1992 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001993 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001994echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001995 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001996echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001997 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001998echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001999 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00002000 fi;;
2001 esac
2002 # Pass precious variables to config.status.
2003 if test "$ac_new_set" = set; then
2004 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00002005 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002006 *) ac_arg=$ac_var=$ac_new_val ;;
2007 esac
2008 case " $ac_configure_args " in
2009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2010 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2011 esac
2012 fi
2013done
2014if $ac_cache_corrupted; then
2015 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019 { (exit 1); exit 1; }; }
2020fi
2021
Reid Spencera773bd52006-08-04 18:18:08 +00002022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
John Criswell7a73b802003-06-30 21:59:07 +00002046ac_ext=c
2047ac_cpp='$CPP $CPPFLAGS'
2048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051
2052
2053
Tanya Lattnerc2264592009-08-22 21:01:26 +00002054LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002055
2056
2057
2058
2059
2060
2061
John Criswell7a73b802003-06-30 21:59:07 +00002062ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002063for ac_dir in autoconf "$srcdir"/autoconf; do
2064 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002065 ac_aux_dir=$ac_dir
2066 ac_install_sh="$ac_aux_dir/install-sh -c"
2067 break
Reid Spencera773bd52006-08-04 18:18:08 +00002068 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002069 ac_aux_dir=$ac_dir
2070 ac_install_sh="$ac_aux_dir/install.sh -c"
2071 break
Reid Spencera773bd52006-08-04 18:18:08 +00002072 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002073 ac_aux_dir=$ac_dir
2074 ac_install_sh="$ac_aux_dir/shtool install -c"
2075 break
2076 fi
2077done
2078if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002079 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2080echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002081 { (exit 1); exit 1; }; }
2082fi
Reid Spencera773bd52006-08-04 18:18:08 +00002083
2084# These three variables are undocumented and unsupported,
2085# and are intended to be withdrawn in a future Autoconf release.
2086# They can cause serious problems if a builder's source tree is in a directory
2087# whose full name contains unusual characters.
2088ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2089ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2090ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2091
John Criswell7a73b802003-06-30 21:59:07 +00002092
John Criswell392aaa32003-07-22 19:18:09 +00002093
Reid Spencer2706f8c2004-09-19 23:53:36 +00002094if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002095 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2096 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002097echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2098 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002099 fi
John Criswell93e1c722003-09-15 17:04:06 +00002100fi
2101
John Criswell33a911a2003-11-25 20:36:46 +00002102for i in `ls ${srcdir}/projects`
2103do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002104 if test -d ${srcdir}/projects/${i} ; then
2105 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002106 CVS) ;;
2107 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002108 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002109 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002110 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002111 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002112 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002113 # llvm-test is the old name of the test-suite, kept here for backwards
2114 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002115 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002116 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002117 test-suite) subdirs="$subdirs projects/test-suite"
2118 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002119 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002120;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002121 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002122 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002123 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002124 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002125 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002126 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002127 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002128 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002129 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002130 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002131 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002132 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002133 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002134 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2135echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002136 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002137 esac
John Criswell33a911a2003-11-25 20:36:46 +00002138 fi
2139done
John Criswell559a6c12003-09-30 16:31:48 +00002140
John Criswell7a73b802003-06-30 21:59:07 +00002141
2142# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002143$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2144 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2145echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002146 { (exit 1); exit 1; }; }
2147
Reid Spencera773bd52006-08-04 18:18:08 +00002148{ echo "$as_me:$LINENO: checking build system type" >&5
2149echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002150if test "${ac_cv_build+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152else
Reid Spencera773bd52006-08-04 18:18:08 +00002153 ac_build_alias=$build_alias
2154test "x$ac_build_alias" = x &&
2155 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2156test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002157 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2158echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2159 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002160ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2161 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2162echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002163 { (exit 1); exit 1; }; }
2164
2165fi
Reid Spencera773bd52006-08-04 18:18:08 +00002166{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2167echo "${ECHO_T}$ac_cv_build" >&6; }
2168case $ac_cv_build in
2169*-*-*) ;;
2170*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2171echo "$as_me: error: invalid value of canonical build" >&2;}
2172 { (exit 1); exit 1; }; };;
2173esac
John Criswell7a73b802003-06-30 21:59:07 +00002174build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002175ac_save_IFS=$IFS; IFS='-'
2176set x $ac_cv_build
2177shift
2178build_cpu=$1
2179build_vendor=$2
2180shift; shift
2181# Remember, the first character of IFS is used to create $*,
2182# except with old shells:
2183build_os=$*
2184IFS=$ac_save_IFS
2185case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002186
2187
Reid Spencera773bd52006-08-04 18:18:08 +00002188{ echo "$as_me:$LINENO: checking host system type" >&5
2189echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002190if test "${ac_cv_host+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
Reid Spencera773bd52006-08-04 18:18:08 +00002193 if test "x$host_alias" = x; then
2194 ac_cv_host=$ac_cv_build
2195else
2196 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2197 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2198echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002199 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002200fi
John Criswell7a73b802003-06-30 21:59:07 +00002201
2202fi
Reid Spencera773bd52006-08-04 18:18:08 +00002203{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2204echo "${ECHO_T}$ac_cv_host" >&6; }
2205case $ac_cv_host in
2206*-*-*) ;;
2207*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2208echo "$as_me: error: invalid value of canonical host" >&2;}
2209 { (exit 1); exit 1; }; };;
2210esac
John Criswell7a73b802003-06-30 21:59:07 +00002211host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002212ac_save_IFS=$IFS; IFS='-'
2213set x $ac_cv_host
2214shift
2215host_cpu=$1
2216host_vendor=$2
2217shift; shift
2218# Remember, the first character of IFS is used to create $*,
2219# except with old shells:
2220host_os=$*
2221IFS=$ac_save_IFS
2222case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002223
2224
Reid Spencera773bd52006-08-04 18:18:08 +00002225{ echo "$as_me:$LINENO: checking target system type" >&5
2226echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002227if test "${ac_cv_target+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229else
Reid Spencera773bd52006-08-04 18:18:08 +00002230 if test "x$target_alias" = x; then
2231 ac_cv_target=$ac_cv_host
2232else
2233 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2234 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2235echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002236 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002237fi
John Criswell7a73b802003-06-30 21:59:07 +00002238
2239fi
Reid Spencera773bd52006-08-04 18:18:08 +00002240{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2241echo "${ECHO_T}$ac_cv_target" >&6; }
2242case $ac_cv_target in
2243*-*-*) ;;
2244*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2245echo "$as_me: error: invalid value of canonical target" >&2;}
2246 { (exit 1); exit 1; }; };;
2247esac
John Criswell7a73b802003-06-30 21:59:07 +00002248target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002249ac_save_IFS=$IFS; IFS='-'
2250set x $ac_cv_target
2251shift
2252target_cpu=$1
2253target_vendor=$2
2254shift; shift
2255# Remember, the first character of IFS is used to create $*,
2256# except with old shells:
2257target_os=$*
2258IFS=$ac_save_IFS
2259case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002260
2261
2262# The aliases save the names the user supplied, while $host etc.
2263# will get canonicalized.
2264test -n "$target_alias" &&
2265 test "$program_prefix$program_suffix$program_transform_name" = \
2266 NONENONEs,x,x, &&
2267 program_prefix=${target_alias}-
2268
Reid Spencera773bd52006-08-04 18:18:08 +00002269{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2270echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002271if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002272 echo $ECHO_N "(cached) $ECHO_C" >&6
2273else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002274 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002275 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002278 llvm_cv_os_type="AIX"
2279 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002280 *-*-irix*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="IRIX"
2284 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002285 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002288 llvm_cv_os_type="Cygwin"
2289 llvm_cv_platform_type="Unix" ;;
2290 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002291 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002292 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002293 llvm_cv_os_type="Darwin"
2294 llvm_cv_platform_type="Unix" ;;
2295 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002298 llvm_cv_os_type="FreeBSD"
2299 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002300 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002303 llvm_cv_os_type="OpenBSD"
2304 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002305 *-*-netbsd*)
2306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308 llvm_cv_os_type="NetBSD"
2309 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002310 *-*-dragonfly*)
2311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313 llvm_cv_os_type="DragonFly"
2314 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002315 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002318 llvm_cv_os_type="HP-UX"
2319 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002320 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002321 llvm_cv_link_all_option="-Wl,--whole-archive"
2322 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002323 llvm_cv_os_type="Interix"
2324 llvm_cv_platform_type="Unix" ;;
2325 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002326 llvm_cv_link_all_option="-Wl,--whole-archive"
2327 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002328 llvm_cv_os_type="Linux"
2329 llvm_cv_platform_type="Unix" ;;
2330 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002331 llvm_cv_link_all_option="-Wl,-z,allextract"
2332 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002333 llvm_cv_os_type="SunOS"
2334 llvm_cv_platform_type="Unix" ;;
2335 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002336 llvm_cv_link_all_option="-Wl,--whole-archive"
2337 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002338 llvm_cv_os_type="Win32"
2339 llvm_cv_platform_type="Win32" ;;
2340 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002341 llvm_cv_link_all_option="-Wl,--whole-archive"
2342 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002343 llvm_cv_os_type="MingW"
2344 llvm_cv_platform_type="Win32" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002345 *-unknown-eabi*)
2346 llvm_cv_link_all_option="-Wl,--whole-archive"
2347 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2348 llvm_cv_os_type="Freestanding"
2349 llvm_cv_platform_type="Unix" ;;
2350 *-unknown-elf*)
2351 llvm_cv_link_all_option="-Wl,--whole-archive"
2352 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2353 llvm_cv_os_type="Freestanding"
2354 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002355 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002356 llvm_cv_link_all_option=""
2357 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002358 llvm_cv_os_type="Unknown"
2359 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002360esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002361fi
Reid Spencera773bd52006-08-04 18:18:08 +00002362{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2363echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002364
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002365{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2366echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2367if test "${llvm_cv_target_os_type+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
2370 case $target in
2371 *-*-aix*)
2372 llvm_cv_target_os_type="AIX" ;;
2373 *-*-irix*)
2374 llvm_cv_target_os_type="IRIX" ;;
2375 *-*-cygwin*)
2376 llvm_cv_target_os_type="Cygwin" ;;
2377 *-*-darwin*)
2378 llvm_cv_target_os_type="Darwin" ;;
2379 *-*-freebsd*)
2380 llvm_cv_target_os_type="FreeBSD" ;;
2381 *-*-openbsd*)
2382 llvm_cv_target_os_type="OpenBSD" ;;
2383 *-*-netbsd*)
2384 llvm_cv_target_os_type="NetBSD" ;;
2385 *-*-dragonfly*)
2386 llvm_cv_target_os_type="DragonFly" ;;
2387 *-*-hpux*)
2388 llvm_cv_target_os_type="HP-UX" ;;
2389 *-*-interix*)
2390 llvm_cv_target_os_type="Interix" ;;
2391 *-*-linux*)
2392 llvm_cv_target_os_type="Linux" ;;
2393 *-*-solaris*)
2394 llvm_cv_target_os_type="SunOS" ;;
2395 *-*-win32*)
2396 llvm_cv_target_os_type="Win32" ;;
2397 *-*-mingw*)
2398 llvm_cv_target_os_type="MingW" ;;
2399 *-unknown-eabi*)
2400 llvm_cv_target_os_type="Freestanding" ;;
2401 *)
2402 llvm_cv_target_os_type="Unknown" ;;
2403esac
2404fi
2405{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2406echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2407
Reid Spencer7b3e8512004-12-24 06:29:05 +00002408if test "$llvm_cv_os_type" = "Unknown" ; then
2409 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2410echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002411 { (exit 1); exit 1; }; }
2412fi
2413
Reid Spencer7b3e8512004-12-24 06:29:05 +00002414OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002416HOST_OS=$llvm_cv_os_type
2417
2418TARGET_OS=$llvm_cv_target_os_type
2419
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420
Reid Spencera773bd52006-08-04 18:18:08 +00002421LINKALL=$llvm_cv_link_all_option
2422
2423NOLINKALL=$llvm_cv_no_link_all_option
2424
2425
Reid Spencer7b3e8512004-12-24 06:29:05 +00002426case $llvm_cv_platform_type in
2427 Unix)
2428
2429cat >>confdefs.h <<\_ACEOF
2430#define LLVM_ON_UNIX 1
2431_ACEOF
2432
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002433 LLVM_ON_UNIX=1
2434
2435 LLVM_ON_WIN32=0
2436
Reid Spencer7b3e8512004-12-24 06:29:05 +00002437 ;;
2438 Win32)
2439
2440cat >>confdefs.h <<\_ACEOF
2441#define LLVM_ON_WIN32 1
2442_ACEOF
2443
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002444 LLVM_ON_UNIX=0
2445
2446 LLVM_ON_WIN32=1
2447
Reid Spencer7b3e8512004-12-24 06:29:05 +00002448 ;;
2449esac
2450
Reid Spencera773bd52006-08-04 18:18:08 +00002451{ echo "$as_me:$LINENO: checking target architecture" >&5
2452echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002453if test "${llvm_cv_target_arch+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2455else
2456 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002457 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002458 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002459 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2460 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002461 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002462 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002463 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002464 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002465 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002466 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002467 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002468 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002469 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002470esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471fi
Reid Spencera773bd52006-08-04 18:18:08 +00002472{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2473echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002474
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475if test "$llvm_cv_target_arch" = "Unknown" ; then
2476 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2477echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2478fi
John Criswell76595452003-07-01 22:07:39 +00002479
Douglas Gregor0711c302009-06-17 00:43:20 +00002480# Determine the LLVM native architecture for the target
2481case "$llvm_cv_target_arch" in
2482 x86) LLVM_NATIVE_ARCH="X86" ;;
2483 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2484 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2485esac
2486
Bill Wendlinga0833352009-03-12 04:10:09 +00002487ARCH=$llvm_cv_target_arch
2488
2489
2490ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002491ac_cpp='$CPP $CPPFLAGS'
2492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2494ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002495if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002496 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2497set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002498{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500if test "${ac_cv_prog_CC+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2502else
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2505else
2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH
2508do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002512 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 +00002513 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2516 fi
2517done
2518done
Reid Spencera773bd52006-08-04 18:18:08 +00002519IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002520
2521fi
2522fi
2523CC=$ac_cv_prog_CC
2524if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002525 { echo "$as_me:$LINENO: result: $CC" >&5
2526echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002527else
Reid Spencera773bd52006-08-04 18:18:08 +00002528 { echo "$as_me:$LINENO: result: no" >&5
2529echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002530fi
2531
Reid Spencera773bd52006-08-04 18:18:08 +00002532
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002533fi
2534if test -z "$ac_cv_prog_CC"; then
2535 ac_ct_CC=$CC
2536 # Extract the first word of "gcc", so it can be a program name with args.
2537set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002540if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542else
2543 if test -n "$ac_ct_CC"; then
2544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2545else
2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547for as_dir in $PATH
2548do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002552 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 +00002553 ac_cv_prog_ac_ct_CC="gcc"
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2556 fi
2557done
2558done
Reid Spencera773bd52006-08-04 18:18:08 +00002559IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002560
2561fi
2562fi
2563ac_ct_CC=$ac_cv_prog_ac_ct_CC
2564if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002565 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2566echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002567else
Reid Spencera773bd52006-08-04 18:18:08 +00002568 { echo "$as_me:$LINENO: result: no" >&5
2569echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002570fi
2571
Reid Spencera773bd52006-08-04 18:18:08 +00002572 if test "x$ac_ct_CC" = x; then
2573 CC=""
2574 else
2575 case $cross_compiling:$ac_tool_warned in
2576yes:)
2577{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2578whose name does not start with the host triplet. If you think this
2579configuration is useful to you, please write to autoconf@gnu.org." >&5
2580echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2581whose name does not start with the host triplet. If you think this
2582configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2583ac_tool_warned=yes ;;
2584esac
2585 CC=$ac_ct_CC
2586 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002587else
2588 CC="$ac_cv_prog_CC"
2589fi
2590
2591if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002592 if test -n "$ac_tool_prefix"; then
2593 # 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 +00002594set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002595{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002597if test "${ac_cv_prog_CC+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599else
2600 if test -n "$CC"; then
2601 ac_cv_prog_CC="$CC" # Let the user override the test.
2602else
2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604for as_dir in $PATH
2605do
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002609 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 +00002610 ac_cv_prog_CC="${ac_tool_prefix}cc"
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 break 2
2613 fi
2614done
2615done
Reid Spencera773bd52006-08-04 18:18:08 +00002616IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002617
2618fi
2619fi
2620CC=$ac_cv_prog_CC
2621if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002622 { echo "$as_me:$LINENO: result: $CC" >&5
2623echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624else
Reid Spencera773bd52006-08-04 18:18:08 +00002625 { echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627fi
2628
Reid Spencera773bd52006-08-04 18:18:08 +00002629
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631fi
2632if test -z "$CC"; then
2633 # Extract the first word of "cc", so it can be a program name with args.
2634set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637if test "${ac_cv_prog_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639else
2640 if test -n "$CC"; then
2641 ac_cv_prog_CC="$CC" # Let the user override the test.
2642else
2643 ac_prog_rejected=no
2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645for as_dir in $PATH
2646do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2652 ac_prog_rejected=yes
2653 continue
2654 fi
2655 ac_cv_prog_CC="cc"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2658 fi
2659done
2660done
Reid Spencera773bd52006-08-04 18:18:08 +00002661IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002662
2663if test $ac_prog_rejected = yes; then
2664 # We found a bogon in the path, so make sure we never use it.
2665 set dummy $ac_cv_prog_CC
2666 shift
2667 if test $# != 0; then
2668 # We chose a different compiler from the bogus one.
2669 # However, it has the same basename, so the bogon will be chosen
2670 # first if we set CC to just the basename; use the full file name.
2671 shift
2672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2673 fi
2674fi
2675fi
2676fi
2677CC=$ac_cv_prog_CC
2678if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002679 { echo "$as_me:$LINENO: result: $CC" >&5
2680echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002681else
Reid Spencera773bd52006-08-04 18:18:08 +00002682 { echo "$as_me:$LINENO: result: no" >&5
2683echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002684fi
2685
Reid Spencera773bd52006-08-04 18:18:08 +00002686
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002687fi
2688if test -z "$CC"; then
2689 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002690 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002691 do
2692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2693set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002694{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002696if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002699 if test -n "$CC"; then
2700 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002701else
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002708 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 +00002709 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2712 fi
2713done
2714done
Reid Spencera773bd52006-08-04 18:18:08 +00002715IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002716
2717fi
2718fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002719CC=$ac_cv_prog_CC
2720if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002721 { echo "$as_me:$LINENO: result: $CC" >&5
2722echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002723else
Reid Spencera773bd52006-08-04 18:18:08 +00002724 { echo "$as_me:$LINENO: result: no" >&5
2725echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002726fi
2727
Reid Spencera773bd52006-08-04 18:18:08 +00002728
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002729 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002730 done
2731fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002732if test -z "$CC"; then
2733 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002734 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002735do
2736 # Extract the first word of "$ac_prog", so it can be a program name with args.
2737set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002740if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002741 echo $ECHO_N "(cached) $ECHO_C" >&6
2742else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002743 if test -n "$ac_ct_CC"; then
2744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002745else
2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH
2748do
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002752 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 +00002753 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 break 2
2756 fi
2757done
2758done
Reid Spencera773bd52006-08-04 18:18:08 +00002759IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002760
2761fi
2762fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002763ac_ct_CC=$ac_cv_prog_ac_ct_CC
2764if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002765 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2766echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002767else
Reid Spencera773bd52006-08-04 18:18:08 +00002768 { echo "$as_me:$LINENO: result: no" >&5
2769echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002770fi
2771
Reid Spencera773bd52006-08-04 18:18:08 +00002772
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002773 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002774done
John Criswell7a73b802003-06-30 21:59:07 +00002775
Reid Spencera773bd52006-08-04 18:18:08 +00002776 if test "x$ac_ct_CC" = x; then
2777 CC=""
2778 else
2779 case $cross_compiling:$ac_tool_warned in
2780yes:)
2781{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2782whose name does not start with the host triplet. If you think this
2783configuration is useful to you, please write to autoconf@gnu.org." >&5
2784echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2785whose name does not start with the host triplet. If you think this
2786configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2787ac_tool_warned=yes ;;
2788esac
2789 CC=$ac_ct_CC
2790 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002791fi
2792
John Criswell7a73b802003-06-30 21:59:07 +00002793fi
2794
2795
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002796test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2797See \`config.log' for more details." >&5
2798echo "$as_me: error: no acceptable C compiler found in \$PATH
2799See \`config.log' for more details." >&2;}
2800 { (exit 1); exit 1; }; }
2801
John Criswell7a73b802003-06-30 21:59:07 +00002802# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002803echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002804ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002805{ (ac_try="$ac_compiler --version >&5"
2806case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809esac
2810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002815{ (ac_try="$ac_compiler -v >&5"
2816case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2819esac
2820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002825{ (ac_try="$ac_compiler -V >&5"
2826case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829esac
2830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }
2835
2836cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002837/* confdefs.h. */
2838_ACEOF
2839cat confdefs.h >>conftest.$ac_ext
2840cat >>conftest.$ac_ext <<_ACEOF
2841/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002842
John Criswell7a73b802003-06-30 21:59:07 +00002843int
2844main ()
2845{
2846
2847 ;
2848 return 0;
2849}
2850_ACEOF
2851ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002852ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002853# Try to create an executable without -o first, disregard a.out.
2854# It will help us diagnose broken compilers, and finding out an intuition
2855# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002856{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2857echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002858ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002859#
2860# List of possible output files, starting from the most likely.
2861# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2862# only as a last resort. b.out is created by i960 compilers.
2863ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2864#
2865# The IRIX 6 linker writes into existing files which may not be
2866# executable, retaining their permissions. Remove them first so a
2867# subsequent execution test works.
2868ac_rmfiles=
2869for ac_file in $ac_files
2870do
2871 case $ac_file in
2872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2873 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2874 esac
2875done
2876rm -f $ac_rmfiles
2877
2878if { (ac_try="$ac_link_default"
2879case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882esac
2883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002888 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2889# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2890# in a Makefile. We should not override ac_cv_exeext if it was cached,
2891# so that the user can short-circuit this test for compilers unknown to
2892# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002893for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002894do
2895 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002896 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002898 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002899 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002900 # We found the default executable, but exeext='' is most
2901 # certainly right.
2902 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002903 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002904 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2905 then :; else
2906 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2907 fi
2908 # We set ac_cv_exeext here because the later test for it is not
2909 # safe: cross compilers may not add the suffix if given an `-o'
2910 # argument, so we may need to know it at that point already.
2911 # Even if this section looks crufty: it has the advantage of
2912 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002913 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002914 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002915 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002916 esac
2917done
Reid Spencera773bd52006-08-04 18:18:08 +00002918test "$ac_cv_exeext" = no && ac_cv_exeext=
2919
John Criswell7a73b802003-06-30 21:59:07 +00002920else
2921 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002922sed 's/^/| /' conftest.$ac_ext >&5
2923
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002924{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002925See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002926echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002927See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002928 { (exit 77); exit 77; }; }
2929fi
2930
2931ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002932{ echo "$as_me:$LINENO: result: $ac_file" >&5
2933echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002934
Reid Spencera773bd52006-08-04 18:18:08 +00002935# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002936# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002937{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2938echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002939# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2940# If not cross compiling, check that we can run a simple program.
2941if test "$cross_compiling" != yes; then
2942 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002943 { (case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946esac
2947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; }; then
2952 cross_compiling=no
2953 else
2954 if test "$cross_compiling" = maybe; then
2955 cross_compiling=yes
2956 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002957 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002958If you meant to cross compile, use \`--host'.
2959See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002960echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002961If you meant to cross compile, use \`--host'.
2962See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002963 { (exit 1); exit 1; }; }
2964 fi
2965 fi
2966fi
Reid Spencera773bd52006-08-04 18:18:08 +00002967{ echo "$as_me:$LINENO: result: yes" >&5
2968echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002969
John Criswell0c38eaf2003-09-10 15:17:25 +00002970rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002971ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002972# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002973# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002974{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2975echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2976{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2977echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002978
Reid Spencera773bd52006-08-04 18:18:08 +00002979{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2980echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2981if { (ac_try="$ac_link"
2982case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985esac
2986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; then
2991 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2992# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2993# work properly (i.e., refer to `conftest.exe'), while it won't with
2994# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002995for ac_file in conftest.exe conftest conftest.*; do
2996 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002997 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002999 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00003000 break;;
John Criswell7a73b802003-06-30 21:59:07 +00003001 * ) break;;
3002 esac
3003done
3004else
John Criswell0c38eaf2003-09-10 15:17:25 +00003005 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3006See \`config.log' for more details." >&5
3007echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3008See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003009 { (exit 1); exit 1; }; }
3010fi
3011
3012rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003013{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3014echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003015
3016rm -f conftest.$ac_ext
3017EXEEXT=$ac_cv_exeext
3018ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003019{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3020echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003021if test "${ac_cv_objext+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023else
3024 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003025/* confdefs.h. */
3026_ACEOF
3027cat confdefs.h >>conftest.$ac_ext
3028cat >>conftest.$ac_ext <<_ACEOF
3029/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003030
John Criswell7a73b802003-06-30 21:59:07 +00003031int
3032main ()
3033{
3034
3035 ;
3036 return 0;
3037}
3038_ACEOF
3039rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00003040if { (ac_try="$ac_compile"
3041case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044esac
3045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003050 for ac_file in conftest.o conftest.obj conftest.*; do
3051 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00003052 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003054 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3055 break;;
3056 esac
3057done
3058else
3059 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003060sed 's/^/| /' conftest.$ac_ext >&5
3061
3062{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3063See \`config.log' for more details." >&5
3064echo "$as_me: error: cannot compute suffix of object files: cannot compile
3065See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003066 { (exit 1); exit 1; }; }
3067fi
3068
3069rm -f conftest.$ac_cv_objext conftest.$ac_ext
3070fi
Reid Spencera773bd52006-08-04 18:18:08 +00003071{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3072echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003073OBJEXT=$ac_cv_objext
3074ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003075{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3076echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003077if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003078 echo $ECHO_N "(cached) $ECHO_C" >&6
3079else
3080 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003081/* confdefs.h. */
3082_ACEOF
3083cat confdefs.h >>conftest.$ac_ext
3084cat >>conftest.$ac_ext <<_ACEOF
3085/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003086
John Criswell7a73b802003-06-30 21:59:07 +00003087int
3088main ()
3089{
3090#ifndef __GNUC__
3091 choke me
3092#endif
3093
3094 ;
3095 return 0;
3096}
3097_ACEOF
3098rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003099if { (ac_try="$ac_compile"
3100case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103esac
3104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003106 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003107 grep -v '^ *+' conftest.er1 >conftest.err
3108 rm -f conftest.er1
3109 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003111 (exit $ac_status); } &&
3112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3113 { (case "(($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_try") 2>&5
3119 ac_status=$?
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; } &&
3122 { ac_try='test -s conftest.$ac_objext'
3123 { (case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_try") 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003132 ac_compiler_gnu=yes
3133else
3134 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003135sed 's/^/| /' conftest.$ac_ext >&5
3136
Reid Spencera773bd52006-08-04 18:18:08 +00003137 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003138fi
Reid Spencera773bd52006-08-04 18:18:08 +00003139
3140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003141ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003142
3143fi
Reid Spencera773bd52006-08-04 18:18:08 +00003144{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3145echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003146GCC=`test $ac_compiler_gnu = yes && echo yes`
3147ac_test_CFLAGS=${CFLAGS+set}
3148ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003149{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3150echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003151if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003152 echo $ECHO_N "(cached) $ECHO_C" >&6
3153else
Reid Spencera773bd52006-08-04 18:18:08 +00003154 ac_save_c_werror_flag=$ac_c_werror_flag
3155 ac_c_werror_flag=yes
3156 ac_cv_prog_cc_g=no
3157 CFLAGS="-g"
3158 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003159/* confdefs.h. */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
3163/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003164
John Criswell7a73b802003-06-30 21:59:07 +00003165int
3166main ()
3167{
3168
3169 ;
3170 return 0;
3171}
3172_ACEOF
3173rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003174if { (ac_try="$ac_compile"
3175case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178esac
3179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003181 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003182 grep -v '^ *+' conftest.er1 >conftest.err
3183 rm -f conftest.er1
3184 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003186 (exit $ac_status); } &&
3187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3188 { (case "(($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_try") 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; } &&
3197 { ac_try='test -s conftest.$ac_objext'
3198 { (case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201esac
3202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_try") 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003207 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003208else
3209 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003210sed 's/^/| /' conftest.$ac_ext >&5
3211
Reid Spencera773bd52006-08-04 18:18:08 +00003212 CFLAGS=""
3213 cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h. */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h. */
3219
3220int
3221main ()
3222{
3223
3224 ;
3225 return 0;
3226}
3227_ACEOF
3228rm -f conftest.$ac_objext
3229if { (ac_try="$ac_compile"
3230case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233esac
3234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compile") 2>conftest.er1
3236 ac_status=$?
3237 grep -v '^ *+' conftest.er1 >conftest.err
3238 rm -f conftest.er1
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3243 { (case "(($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_try") 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256esac
3257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_try") 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003262 :
3263else
3264 echo "$as_me: failed program was:" >&5
3265sed 's/^/| /' conftest.$ac_ext >&5
3266
3267 ac_c_werror_flag=$ac_save_c_werror_flag
3268 CFLAGS="-g"
3269 cat >conftest.$ac_ext <<_ACEOF
3270/* confdefs.h. */
3271_ACEOF
3272cat confdefs.h >>conftest.$ac_ext
3273cat >>conftest.$ac_ext <<_ACEOF
3274/* end confdefs.h. */
3275
3276int
3277main ()
3278{
3279
3280 ;
3281 return 0;
3282}
3283_ACEOF
3284rm -f conftest.$ac_objext
3285if { (ac_try="$ac_compile"
3286case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289esac
3290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_compile") 2>conftest.er1
3292 ac_status=$?
3293 grep -v '^ *+' conftest.er1 >conftest.err
3294 rm -f conftest.er1
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003297 (exit $ac_status); } &&
3298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3299 { (case "(($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_try") 2>&5
3305 ac_status=$?
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; } &&
3308 { ac_try='test -s conftest.$ac_objext'
3309 { (case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312esac
3313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_try") 2>&5
3315 ac_status=$?
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003318 ac_cv_prog_cc_g=yes
3319else
3320 echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323
John Criswell7a73b802003-06-30 21:59:07 +00003324fi
Reid Spencera773bd52006-08-04 18:18:08 +00003325
3326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003327fi
Reid Spencera773bd52006-08-04 18:18:08 +00003328
3329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330fi
3331
3332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 ac_c_werror_flag=$ac_save_c_werror_flag
3334fi
3335{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3336echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003337if test "$ac_test_CFLAGS" = set; then
3338 CFLAGS=$ac_save_CFLAGS
3339elif test $ac_cv_prog_cc_g = yes; then
3340 if test "$GCC" = yes; then
3341 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003342 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003343 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003344 fi
3345else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003346 if test "$GCC" = yes; then
3347 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003348 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003349 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003350 fi
3351fi
Reid Spencera773bd52006-08-04 18:18:08 +00003352{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3353echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3354if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356else
Reid Spencera773bd52006-08-04 18:18:08 +00003357 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003358ac_save_CC=$CC
3359cat >conftest.$ac_ext <<_ACEOF
3360/* confdefs.h. */
3361_ACEOF
3362cat confdefs.h >>conftest.$ac_ext
3363cat >>conftest.$ac_ext <<_ACEOF
3364/* end confdefs.h. */
3365#include <stdarg.h>
3366#include <stdio.h>
3367#include <sys/types.h>
3368#include <sys/stat.h>
3369/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3370struct buf { int x; };
3371FILE * (*rcsopen) (struct buf *, struct stat *, int);
3372static char *e (p, i)
3373 char **p;
3374 int i;
3375{
3376 return p[i];
3377}
3378static char *f (char * (*g) (char **, int), char **p, ...)
3379{
3380 char *s;
3381 va_list v;
3382 va_start (v,p);
3383 s = g (p, va_arg (v,int));
3384 va_end (v);
3385 return s;
3386}
3387
3388/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3389 function prototypes and stuff, but not '\xHH' hex character constants.
3390 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003391 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3393 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003394 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003395int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3396
Reid Spencera773bd52006-08-04 18:18:08 +00003397/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3398 inside strings and character constants. */
3399#define FOO(x) 'x'
3400int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3401
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003402int test (int i, double x);
3403struct s1 {int (*f) (int a);};
3404struct s2 {int (*f) (double a);};
3405int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3406int argc;
3407char **argv;
3408int
3409main ()
3410{
3411return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3412 ;
3413 return 0;
3414}
3415_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003416for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3417 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003418do
3419 CC="$ac_save_CC $ac_arg"
3420 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003421if { (ac_try="$ac_compile"
3422case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425esac
3426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003428 ac_status=$?
3429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003433 (exit $ac_status); } &&
3434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3435 { (case "(($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_try") 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; } &&
3444 { ac_try='test -s conftest.$ac_objext'
3445 { (case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448esac
3449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_try") 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003454 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003455else
3456 echo "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
3458
Reid Spencera773bd52006-08-04 18:18:08 +00003459
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003460fi
Reid Spencera773bd52006-08-04 18:18:08 +00003461
3462rm -f core conftest.err conftest.$ac_objext
3463 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003464done
Reid Spencera773bd52006-08-04 18:18:08 +00003465rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003466CC=$ac_save_CC
3467
3468fi
Reid Spencera773bd52006-08-04 18:18:08 +00003469# AC_CACHE_VAL
3470case "x$ac_cv_prog_cc_c89" in
3471 x)
3472 { echo "$as_me:$LINENO: result: none needed" >&5
3473echo "${ECHO_T}none needed" >&6; } ;;
3474 xno)
3475 { echo "$as_me:$LINENO: result: unsupported" >&5
3476echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003477 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003478 CC="$CC $ac_cv_prog_cc_c89"
3479 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3480echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003481esac
3482
John Criswell0c38eaf2003-09-10 15:17:25 +00003483
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003484ac_ext=c
3485ac_cpp='$CPP $CPPFLAGS'
3486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488ac_compiler_gnu=$ac_cv_c_compiler_gnu
3489
3490
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003491ac_ext=c
3492ac_cpp='$CPP $CPPFLAGS'
3493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003496{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3497echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003498# On Suns, sometimes $CPP names a directory.
3499if test -n "$CPP" && test -d "$CPP"; then
3500 CPP=
3501fi
3502if test -z "$CPP"; then
3503 if test "${ac_cv_prog_CPP+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
3506 # Double quotes because CPP needs to be expanded
3507 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3508 do
3509 ac_preproc_ok=false
3510for ac_c_preproc_warn_flag in '' yes
3511do
3512 # Use a header file that comes with gcc, so configuring glibc
3513 # with a fresh cross-compiler works.
3514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3515 # <limits.h> exists even on freestanding compilers.
3516 # On the NeXT, cc -E runs the code through the compiler's parser,
3517 # not just through cpp. "Syntax error" is here to catch this case.
3518 cat >conftest.$ac_ext <<_ACEOF
3519/* confdefs.h. */
3520_ACEOF
3521cat confdefs.h >>conftest.$ac_ext
3522cat >>conftest.$ac_ext <<_ACEOF
3523/* end confdefs.h. */
3524#ifdef __STDC__
3525# include <limits.h>
3526#else
3527# include <assert.h>
3528#endif
3529 Syntax error
3530_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003531if { (ac_try="$ac_cpp conftest.$ac_ext"
3532case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535esac
3536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003538 ac_status=$?
3539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003543 (exit $ac_status); } >/dev/null; then
3544 if test -s conftest.err; then
3545 ac_cpp_err=$ac_c_preproc_warn_flag
3546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3547 else
3548 ac_cpp_err=
3549 fi
3550else
3551 ac_cpp_err=yes
3552fi
3553if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003554 :
3555else
3556 echo "$as_me: failed program was:" >&5
3557sed 's/^/| /' conftest.$ac_ext >&5
3558
3559 # Broken: fails on valid input.
3560continue
3561fi
Reid Spencera773bd52006-08-04 18:18:08 +00003562
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003563rm -f conftest.err conftest.$ac_ext
3564
Reid Spencera773bd52006-08-04 18:18:08 +00003565 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003566 # can be detected and how.
3567 cat >conftest.$ac_ext <<_ACEOF
3568/* confdefs.h. */
3569_ACEOF
3570cat confdefs.h >>conftest.$ac_ext
3571cat >>conftest.$ac_ext <<_ACEOF
3572/* end confdefs.h. */
3573#include <ac_nonexistent.h>
3574_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003575if { (ac_try="$ac_cpp conftest.$ac_ext"
3576case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579esac
3580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003582 ac_status=$?
3583 grep -v '^ *+' conftest.er1 >conftest.err
3584 rm -f conftest.er1
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003587 (exit $ac_status); } >/dev/null; then
3588 if test -s conftest.err; then
3589 ac_cpp_err=$ac_c_preproc_warn_flag
3590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3591 else
3592 ac_cpp_err=
3593 fi
3594else
3595 ac_cpp_err=yes
3596fi
3597if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003598 # Broken: success on invalid input.
3599continue
3600else
3601 echo "$as_me: failed program was:" >&5
3602sed 's/^/| /' conftest.$ac_ext >&5
3603
3604 # Passes both tests.
3605ac_preproc_ok=:
3606break
3607fi
Reid Spencera773bd52006-08-04 18:18:08 +00003608
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003609rm -f conftest.err conftest.$ac_ext
3610
3611done
3612# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3613rm -f conftest.err conftest.$ac_ext
3614if $ac_preproc_ok; then
3615 break
3616fi
3617
3618 done
3619 ac_cv_prog_CPP=$CPP
3620
3621fi
3622 CPP=$ac_cv_prog_CPP
3623else
3624 ac_cv_prog_CPP=$CPP
3625fi
Reid Spencera773bd52006-08-04 18:18:08 +00003626{ echo "$as_me:$LINENO: result: $CPP" >&5
3627echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003628ac_preproc_ok=false
3629for ac_c_preproc_warn_flag in '' yes
3630do
3631 # Use a header file that comes with gcc, so configuring glibc
3632 # with a fresh cross-compiler works.
3633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3634 # <limits.h> exists even on freestanding compilers.
3635 # On the NeXT, cc -E runs the code through the compiler's parser,
3636 # not just through cpp. "Syntax error" is here to catch this case.
3637 cat >conftest.$ac_ext <<_ACEOF
3638/* confdefs.h. */
3639_ACEOF
3640cat confdefs.h >>conftest.$ac_ext
3641cat >>conftest.$ac_ext <<_ACEOF
3642/* end confdefs.h. */
3643#ifdef __STDC__
3644# include <limits.h>
3645#else
3646# include <assert.h>
3647#endif
3648 Syntax error
3649_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003650if { (ac_try="$ac_cpp conftest.$ac_ext"
3651case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654esac
3655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003657 ac_status=$?
3658 grep -v '^ *+' conftest.er1 >conftest.err
3659 rm -f conftest.er1
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003662 (exit $ac_status); } >/dev/null; then
3663 if test -s conftest.err; then
3664 ac_cpp_err=$ac_c_preproc_warn_flag
3665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3666 else
3667 ac_cpp_err=
3668 fi
3669else
3670 ac_cpp_err=yes
3671fi
3672if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003673 :
3674else
3675 echo "$as_me: failed program was:" >&5
3676sed 's/^/| /' conftest.$ac_ext >&5
3677
3678 # Broken: fails on valid input.
3679continue
3680fi
Reid Spencera773bd52006-08-04 18:18:08 +00003681
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003682rm -f conftest.err conftest.$ac_ext
3683
Reid Spencera773bd52006-08-04 18:18:08 +00003684 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003685 # can be detected and how.
3686 cat >conftest.$ac_ext <<_ACEOF
3687/* confdefs.h. */
3688_ACEOF
3689cat confdefs.h >>conftest.$ac_ext
3690cat >>conftest.$ac_ext <<_ACEOF
3691/* end confdefs.h. */
3692#include <ac_nonexistent.h>
3693_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003694if { (ac_try="$ac_cpp conftest.$ac_ext"
3695case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698esac
3699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003701 ac_status=$?
3702 grep -v '^ *+' conftest.er1 >conftest.err
3703 rm -f conftest.er1
3704 cat conftest.err >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003706 (exit $ac_status); } >/dev/null; then
3707 if test -s conftest.err; then
3708 ac_cpp_err=$ac_c_preproc_warn_flag
3709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3710 else
3711 ac_cpp_err=
3712 fi
3713else
3714 ac_cpp_err=yes
3715fi
3716if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003717 # Broken: success on invalid input.
3718continue
3719else
3720 echo "$as_me: failed program was:" >&5
3721sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 # Passes both tests.
3724ac_preproc_ok=:
3725break
3726fi
Reid Spencera773bd52006-08-04 18:18:08 +00003727
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003728rm -f conftest.err conftest.$ac_ext
3729
3730done
3731# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3732rm -f conftest.err conftest.$ac_ext
3733if $ac_preproc_ok; then
3734 :
3735else
3736 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3737See \`config.log' for more details." >&5
3738echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3739See \`config.log' for more details." >&2;}
3740 { (exit 1); exit 1; }; }
3741fi
3742
John Criswell7a73b802003-06-30 21:59:07 +00003743ac_ext=c
3744ac_cpp='$CPP $CPPFLAGS'
3745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748
John Criswell7a73b802003-06-30 21:59:07 +00003749
Reid Spencera773bd52006-08-04 18:18:08 +00003750{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3751echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003752if test "${ac_cv_path_GREP+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754else
Reid Spencera773bd52006-08-04 18:18:08 +00003755 # Extract the first word of "grep ggrep" to use in msg output
3756if test -z "$GREP"; then
3757set dummy grep ggrep; ac_prog_name=$2
3758if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760else
Reid Spencera773bd52006-08-04 18:18:08 +00003761 ac_path_GREP_found=false
3762# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003764for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003765do
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003768 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003769 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003770 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003771 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003772 # Check for GNU ac_path_GREP and select it if it is found.
3773 # Check for GNU $ac_path_GREP
3774case `"$ac_path_GREP" --version 2>&1` in
3775*GNU*)
3776 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3777*)
3778 ac_count=0
3779 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3780 while :
3781 do
3782 cat "conftest.in" "conftest.in" >"conftest.tmp"
3783 mv "conftest.tmp" "conftest.in"
3784 cp "conftest.in" "conftest.nl"
3785 echo 'GREP' >> "conftest.nl"
3786 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3788 ac_count=`expr $ac_count + 1`
3789 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3790 # Best one so far, save it but keep looking for a better one
3791 ac_cv_path_GREP="$ac_path_GREP"
3792 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003793 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003794 # 10*(2^10) chars as input seems more than enough
3795 test $ac_count -gt 10 && break
3796 done
3797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3798esac
3799
3800
3801 $ac_path_GREP_found && break 3
3802 done
3803done
3804
3805done
3806IFS=$as_save_IFS
3807
3808
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003809fi
Reid Spencera773bd52006-08-04 18:18:08 +00003810
3811GREP="$ac_cv_path_GREP"
3812if test -z "$GREP"; then
3813 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3814echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3815 { (exit 1); exit 1; }; }
3816fi
3817
3818else
3819 ac_cv_path_GREP=$GREP
3820fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003821
John Criswell7a73b802003-06-30 21:59:07 +00003822
Reid Spencera773bd52006-08-04 18:18:08 +00003823fi
3824{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3825echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3826 GREP="$ac_cv_path_GREP"
3827
3828
3829{ echo "$as_me:$LINENO: checking for egrep" >&5
3830echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3831if test "${ac_cv_path_EGREP+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
3834 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3835 then ac_cv_path_EGREP="$GREP -E"
3836 else
3837 # Extract the first word of "egrep" to use in msg output
3838if test -z "$EGREP"; then
3839set dummy egrep; ac_prog_name=$2
3840if test "${ac_cv_path_EGREP+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843 ac_path_EGREP_found=false
3844# Loop through the user's path and test for each of PROGNAME-LIST
3845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3847do
3848 IFS=$as_save_IFS
3849 test -z "$as_dir" && as_dir=.
3850 for ac_prog in egrep; do
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003853 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003854 # Check for GNU ac_path_EGREP and select it if it is found.
3855 # Check for GNU $ac_path_EGREP
3856case `"$ac_path_EGREP" --version 2>&1` in
3857*GNU*)
3858 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3859*)
3860 ac_count=0
3861 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3862 while :
3863 do
3864 cat "conftest.in" "conftest.in" >"conftest.tmp"
3865 mv "conftest.tmp" "conftest.in"
3866 cp "conftest.in" "conftest.nl"
3867 echo 'EGREP' >> "conftest.nl"
3868 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3870 ac_count=`expr $ac_count + 1`
3871 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3872 # Best one so far, save it but keep looking for a better one
3873 ac_cv_path_EGREP="$ac_path_EGREP"
3874 ac_path_EGREP_max=$ac_count
3875 fi
3876 # 10*(2^10) chars as input seems more than enough
3877 test $ac_count -gt 10 && break
3878 done
3879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3880esac
3881
3882
3883 $ac_path_EGREP_found && break 3
3884 done
3885done
3886
3887done
3888IFS=$as_save_IFS
3889
3890
3891fi
3892
3893EGREP="$ac_cv_path_EGREP"
3894if test -z "$EGREP"; then
3895 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3896echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3897 { (exit 1); exit 1; }; }
3898fi
3899
3900else
3901 ac_cv_path_EGREP=$EGREP
3902fi
3903
3904
3905 fi
3906fi
3907{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3908echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3909 EGREP="$ac_cv_path_EGREP"
3910
3911
3912{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3913echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003914if test "${ac_cv_header_stdc+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003918/* confdefs.h. */
3919_ACEOF
3920cat confdefs.h >>conftest.$ac_ext
3921cat >>conftest.$ac_ext <<_ACEOF
3922/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003923#include <stdlib.h>
3924#include <stdarg.h>
3925#include <string.h>
3926#include <float.h>
3927
John Criswell0c38eaf2003-09-10 15:17:25 +00003928int
3929main ()
3930{
3931
3932 ;
3933 return 0;
3934}
John Criswell7a73b802003-06-30 21:59:07 +00003935_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003936rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003937if { (ac_try="$ac_compile"
3938case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941esac
3942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003944 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003945 grep -v '^ *+' conftest.er1 >conftest.err
3946 rm -f conftest.er1
3947 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003949 (exit $ac_status); } &&
3950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3951 { (case "(($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_try") 2>&5
3957 ac_status=$?
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; } &&
3960 { ac_try='test -s conftest.$ac_objext'
3961 { (case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964esac
3965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_try") 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003970 ac_cv_header_stdc=yes
3971else
3972 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003973sed 's/^/| /' conftest.$ac_ext >&5
3974
Reid Spencera773bd52006-08-04 18:18:08 +00003975 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003976fi
Reid Spencera773bd52006-08-04 18:18:08 +00003977
3978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003979
3980if test $ac_cv_header_stdc = yes; then
3981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3982 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003983/* confdefs.h. */
3984_ACEOF
3985cat confdefs.h >>conftest.$ac_ext
3986cat >>conftest.$ac_ext <<_ACEOF
3987/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003988#include <string.h>
3989
3990_ACEOF
3991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003992 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003993 :
3994else
3995 ac_cv_header_stdc=no
3996fi
3997rm -f conftest*
3998
3999fi
4000
4001if test $ac_cv_header_stdc = yes; then
4002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4003 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004004/* confdefs.h. */
4005_ACEOF
4006cat confdefs.h >>conftest.$ac_ext
4007cat >>conftest.$ac_ext <<_ACEOF
4008/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004009#include <stdlib.h>
4010
4011_ACEOF
4012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004013 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004014 :
4015else
4016 ac_cv_header_stdc=no
4017fi
4018rm -f conftest*
4019
4020fi
4021
4022if test $ac_cv_header_stdc = yes; then
4023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4024 if test "$cross_compiling" = yes; then
4025 :
4026else
4027 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004028/* confdefs.h. */
4029_ACEOF
4030cat confdefs.h >>conftest.$ac_ext
4031cat >>conftest.$ac_ext <<_ACEOF
4032/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004033#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004034#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004035#if ((' ' & 0x0FF) == 0x020)
4036# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4037# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4038#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004039# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004040 (('a' <= (c) && (c) <= 'i') \
4041 || ('j' <= (c) && (c) <= 'r') \
4042 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004043# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4044#endif
4045
4046#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4047int
4048main ()
4049{
4050 int i;
4051 for (i = 0; i < 256; i++)
4052 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004053 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004054 return 2;
4055 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004056}
4057_ACEOF
4058rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00004059if { (ac_try="$ac_link"
4060case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063esac
4064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00004069 { (case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072esac
4073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 :
4079else
4080 echo "$as_me: program exited with status $ac_status" >&5
4081echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004082sed 's/^/| /' conftest.$ac_ext >&5
4083
John Criswell7a73b802003-06-30 21:59:07 +00004084( exit $ac_status )
4085ac_cv_header_stdc=no
4086fi
Reid Spencera773bd52006-08-04 18:18:08 +00004087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4088fi
4089
4090
John Criswell7a73b802003-06-30 21:59:07 +00004091fi
4092fi
Reid Spencera773bd52006-08-04 18:18:08 +00004093{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4094echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004095if test $ac_cv_header_stdc = yes; then
4096
4097cat >>confdefs.h <<\_ACEOF
4098#define STDC_HEADERS 1
4099_ACEOF
4100
4101fi
4102
Reid Spencera773bd52006-08-04 18:18:08 +00004103# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4114 inttypes.h stdint.h unistd.h
4115do
4116as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4117{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4121else
4122 cat >conftest.$ac_ext <<_ACEOF
4123/* confdefs.h. */
4124_ACEOF
4125cat confdefs.h >>conftest.$ac_ext
4126cat >>conftest.$ac_ext <<_ACEOF
4127/* end confdefs.h. */
4128$ac_includes_default
4129
4130#include <$ac_header>
4131_ACEOF
4132rm -f conftest.$ac_objext
4133if { (ac_try="$ac_compile"
4134case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137esac
4138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4147 { (case "(($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_try") 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try='test -s conftest.$ac_objext'
4157 { (case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4160esac
4161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_try") 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004166 eval "$as_ac_Header=yes"
4167else
4168 echo "$as_me: failed program was:" >&5
4169sed 's/^/| /' conftest.$ac_ext >&5
4170
4171 eval "$as_ac_Header=no"
4172fi
4173
4174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175fi
4176ac_res=`eval echo '${'$as_ac_Header'}'`
4177 { echo "$as_me:$LINENO: result: $ac_res" >&5
4178echo "${ECHO_T}$ac_res" >&6; }
4179if test `eval echo '${'$as_ac_Header'}'` = yes; then
4180 cat >>confdefs.h <<_ACEOF
4181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4182_ACEOF
4183
4184fi
4185
4186done
4187
4188
4189{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4190echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4191if test "${ac_cv_c_bigendian+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193else
4194 # See if sys/param.h defines the BYTE_ORDER macro.
4195cat >conftest.$ac_ext <<_ACEOF
4196/* confdefs.h. */
4197_ACEOF
4198cat confdefs.h >>conftest.$ac_ext
4199cat >>conftest.$ac_ext <<_ACEOF
4200/* end confdefs.h. */
4201#include <sys/types.h>
4202#include <sys/param.h>
4203
4204int
4205main ()
4206{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004207#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004208 bogus endian macros
4209#endif
4210
4211 ;
4212 return 0;
4213}
4214_ACEOF
4215rm -f conftest.$ac_objext
4216if { (ac_try="$ac_compile"
4217case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220esac
4221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_compile") 2>conftest.er1
4223 ac_status=$?
4224 grep -v '^ *+' conftest.er1 >conftest.err
4225 rm -f conftest.er1
4226 cat conftest.err >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004228 (exit $ac_status); } &&
4229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4230 { (case "(($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_try") 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; } &&
4239 { ac_try='test -s conftest.$ac_objext'
4240 { (case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243esac
4244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_try") 2>&5
4246 ac_status=$?
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004249 # It does; now see whether it defined to BIG_ENDIAN or not.
4250cat >conftest.$ac_ext <<_ACEOF
4251/* confdefs.h. */
4252_ACEOF
4253cat confdefs.h >>conftest.$ac_ext
4254cat >>conftest.$ac_ext <<_ACEOF
4255/* end confdefs.h. */
4256#include <sys/types.h>
4257#include <sys/param.h>
4258
4259int
4260main ()
4261{
4262#if BYTE_ORDER != BIG_ENDIAN
4263 not big endian
4264#endif
4265
4266 ;
4267 return 0;
4268}
4269_ACEOF
4270rm -f conftest.$ac_objext
4271if { (ac_try="$ac_compile"
4272case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275esac
4276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_compile") 2>conftest.er1
4278 ac_status=$?
4279 grep -v '^ *+' conftest.er1 >conftest.err
4280 rm -f conftest.er1
4281 cat conftest.err >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004283 (exit $ac_status); } &&
4284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4285 { (case "(($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_try") 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try='test -s conftest.$ac_objext'
4295 { (case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298esac
4299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_try") 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004304 ac_cv_c_bigendian=yes
4305else
4306 echo "$as_me: failed program was:" >&5
4307sed 's/^/| /' conftest.$ac_ext >&5
4308
4309 ac_cv_c_bigendian=no
4310fi
4311
4312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313else
4314 echo "$as_me: failed program was:" >&5
4315sed 's/^/| /' conftest.$ac_ext >&5
4316
4317 # It does not; compile a test program.
4318if test "$cross_compiling" = yes; then
4319 # try to guess the endianness by grepping values into an object file
4320 ac_cv_c_bigendian=unknown
4321 cat >conftest.$ac_ext <<_ACEOF
4322/* confdefs.h. */
4323_ACEOF
4324cat confdefs.h >>conftest.$ac_ext
4325cat >>conftest.$ac_ext <<_ACEOF
4326/* end confdefs.h. */
4327short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4328short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4329void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4330short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4331short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4332void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4333int
4334main ()
4335{
4336 _ascii (); _ebcdic ();
4337 ;
4338 return 0;
4339}
4340_ACEOF
4341rm -f conftest.$ac_objext
4342if { (ac_try="$ac_compile"
4343case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346esac
4347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_compile") 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4356 { (case "(($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_try") 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369esac
4370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_try") 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004375 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4376 ac_cv_c_bigendian=yes
4377fi
4378if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4379 if test "$ac_cv_c_bigendian" = unknown; then
4380 ac_cv_c_bigendian=no
4381 else
4382 # finding both strings is unlikely to happen, but who knows?
4383 ac_cv_c_bigendian=unknown
4384 fi
4385fi
4386else
4387 echo "$as_me: failed program was:" >&5
4388sed 's/^/| /' conftest.$ac_ext >&5
4389
4390
4391fi
4392
4393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394else
4395 cat >conftest.$ac_ext <<_ACEOF
4396/* confdefs.h. */
4397_ACEOF
4398cat confdefs.h >>conftest.$ac_ext
4399cat >>conftest.$ac_ext <<_ACEOF
4400/* end confdefs.h. */
4401$ac_includes_default
4402int
4403main ()
4404{
4405
4406 /* Are we little or big endian? From Harbison&Steele. */
4407 union
4408 {
4409 long int l;
4410 char c[sizeof (long int)];
4411 } u;
4412 u.l = 1;
4413 return u.c[sizeof (long int) - 1] == 1;
4414
4415 ;
4416 return 0;
4417}
4418_ACEOF
4419rm -f conftest$ac_exeext
4420if { (ac_try="$ac_link"
4421case "(($ac_try" in
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4424esac
4425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426 (eval "$ac_link") 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4430 { (case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433esac
4434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_try") 2>&5
4436 ac_status=$?
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; }; then
4439 ac_cv_c_bigendian=no
4440else
4441 echo "$as_me: program exited with status $ac_status" >&5
4442echo "$as_me: failed program was:" >&5
4443sed 's/^/| /' conftest.$ac_ext >&5
4444
4445( exit $ac_status )
4446ac_cv_c_bigendian=yes
4447fi
4448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4449fi
4450
4451
4452fi
4453
4454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455fi
4456{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4457echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4458case $ac_cv_c_bigendian in
4459 yes)
4460 ENDIAN=big
4461 ;;
4462 no)
4463 ENDIAN=little
4464 ;;
4465 *)
4466 { { echo "$as_me:$LINENO: error: unknown endianness
4467presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4468echo "$as_me: error: unknown endianness
4469presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4470 { (exit 1); exit 1; }; } ;;
4471esac
4472
4473
4474if test "$cross_compiling" = yes; then
4475 LLVM_CROSS_COMPILING=1
4476
4477
4478{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4479echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4480if test "${ac_cv_build_exeext+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482else
4483 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4484 ac_cv_build_exeext=.exe
4485else
4486 ac_build_prefix=${build_alias}-
4487
4488 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4489set dummy ${ac_build_prefix}gcc; ac_word=$2
4490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4492if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494else
4495 if test -n "$BUILD_CC"; then
4496 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4497else
4498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499for as_dir in $PATH
4500do
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004504 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 +00004505 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4508 fi
4509done
4510done
4511IFS=$as_save_IFS
4512
4513fi
4514fi
4515BUILD_CC=$ac_cv_prog_BUILD_CC
4516if test -n "$BUILD_CC"; then
4517 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4518echo "${ECHO_T}$BUILD_CC" >&6; }
4519else
4520 { echo "$as_me:$LINENO: result: no" >&5
4521echo "${ECHO_T}no" >&6; }
4522fi
4523
4524
4525 if test -z "$BUILD_CC"; then
4526 # Extract the first word of "gcc", so it can be a program name with args.
4527set dummy gcc; ac_word=$2
4528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532else
4533 if test -n "$BUILD_CC"; then
4534 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4535else
4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004542 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 +00004543 ac_cv_prog_BUILD_CC="gcc"
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4546 fi
4547done
4548done
4549IFS=$as_save_IFS
4550
4551fi
4552fi
4553BUILD_CC=$ac_cv_prog_BUILD_CC
4554if test -n "$BUILD_CC"; then
4555 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4556echo "${ECHO_T}$BUILD_CC" >&6; }
4557else
4558 { echo "$as_me:$LINENO: result: no" >&5
4559echo "${ECHO_T}no" >&6; }
4560fi
4561
4562
4563 if test -z "$BUILD_CC"; then
4564 # Extract the first word of "cc", so it can be a program name with args.
4565set dummy cc; ac_word=$2
4566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4568if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570else
4571 if test -n "$BUILD_CC"; then
4572 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4573else
4574 ac_prog_rejected=no
4575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576for as_dir in $PATH
4577do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004581 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 +00004582 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4583 ac_prog_rejected=yes
4584 continue
4585 fi
4586 ac_cv_prog_BUILD_CC="cc"
4587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4589 fi
4590done
4591done
4592IFS=$as_save_IFS
4593
4594if test $ac_prog_rejected = yes; then
4595 # We found a bogon in the path, so make sure we never use it.
4596 set dummy $ac_cv_prog_BUILD_CC
4597 shift
4598 if test $# != 0; then
4599 # We chose a different compiler from the bogus one.
4600 # However, it has the same basename, so the bogon will be chosen
4601 # first if we set BUILD_CC to just the basename; use the full file name.
4602 shift
4603 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4604 fi
4605fi
4606fi
4607fi
4608BUILD_CC=$ac_cv_prog_BUILD_CC
4609if test -n "$BUILD_CC"; then
4610 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4611echo "${ECHO_T}$BUILD_CC" >&6; }
4612else
4613 { echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6; }
4615fi
4616
4617
4618 fi
4619 fi
4620 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4621echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4622 { (exit 1); exit 1; }; }
4623 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4624 rm -f conftest*
4625 echo 'int main () { return 0; }' > conftest.$ac_ext
4626 ac_cv_build_exeext=
4627 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4628 (eval $ac_build_link) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; then
4632 for file in conftest.*; do
4633 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004634 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004635 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4636 esac
4637 done
4638 else
4639 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4640echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4641 { (exit 1); exit 1; }; }
4642 fi
4643 rm -f conftest*
4644 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4645fi
4646fi
4647
4648BUILD_EXEEXT=""
4649test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4650{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4651echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4652ac_build_exeext=$BUILD_EXEEXT
4653
Jim Grosbach673612e2008-10-02 22:56:44 +00004654 ac_build_prefix=${build_alias}-
4655 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4656set dummy ${ac_build_prefix}g++; ac_word=$2
4657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661else
4662 if test -n "$BUILD_CXX"; then
4663 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4664else
4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004671 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 +00004672 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4675 fi
4676done
4677done
4678IFS=$as_save_IFS
4679
4680fi
4681fi
4682BUILD_CXX=$ac_cv_prog_BUILD_CXX
4683if test -n "$BUILD_CXX"; then
4684 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4685echo "${ECHO_T}$BUILD_CXX" >&6; }
4686else
4687 { echo "$as_me:$LINENO: result: no" >&5
4688echo "${ECHO_T}no" >&6; }
4689fi
4690
4691
4692 if test -z "$BUILD_CXX"; then
4693 # Extract the first word of "g++", so it can be a program name with args.
4694set dummy g++; ac_word=$2
4695{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4699else
4700 if test -n "$BUILD_CXX"; then
4701 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4702else
4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH
4705do
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004709 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 +00004710 ac_cv_prog_BUILD_CXX="g++"
4711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 break 2
4713 fi
4714done
4715done
4716IFS=$as_save_IFS
4717
4718fi
4719fi
4720BUILD_CXX=$ac_cv_prog_BUILD_CXX
4721if test -n "$BUILD_CXX"; then
4722 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4723echo "${ECHO_T}$BUILD_CXX" >&6; }
4724else
4725 { echo "$as_me:$LINENO: result: no" >&5
4726echo "${ECHO_T}no" >&6; }
4727fi
4728
4729
4730 if test -z "$BUILD_CXX"; then
4731 # Extract the first word of "c++", so it can be a program name with args.
4732set dummy c++; ac_word=$2
4733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737else
4738 if test -n "$BUILD_CXX"; then
4739 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4740else
4741 ac_prog_rejected=no
4742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH
4744do
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004748 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 +00004749 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4750 ac_prog_rejected=yes
4751 continue
4752 fi
4753 ac_cv_prog_BUILD_CXX="c++"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757done
4758done
4759IFS=$as_save_IFS
4760
4761if test $ac_prog_rejected = yes; then
4762 # We found a bogon in the path, so make sure we never use it.
4763 set dummy $ac_cv_prog_BUILD_CXX
4764 shift
4765 if test $# != 0; then
4766 # We chose a different compiler from the bogus one.
4767 # However, it has the same basename, so the bogon will be chosen
4768 # first if we set BUILD_CXX to just the basename; use the full file name.
4769 shift
4770 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4771 fi
4772fi
4773fi
4774fi
4775BUILD_CXX=$ac_cv_prog_BUILD_CXX
4776if test -n "$BUILD_CXX"; then
4777 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4778echo "${ECHO_T}$BUILD_CXX" >&6; }
4779else
4780 { echo "$as_me:$LINENO: result: no" >&5
4781echo "${ECHO_T}no" >&6; }
4782fi
4783
4784
4785 fi
4786 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004787else
4788 LLVM_CROSS_COMPILING=0
4789
4790fi
4791
Nick Lewycky5b28f862009-04-10 05:18:27 +00004792if 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 +00004793 cvsbuild="yes"
4794 optimize="no"
4795 CVSBUILD=CVSBUILD=1
4796
4797else
4798 cvsbuild="no"
4799 optimize="yes"
4800fi
4801
4802
4803# Check whether --enable-optimized was given.
4804if test "${enable_optimized+set}" = set; then
4805 enableval=$enable_optimized;
4806else
4807 enableval=$optimize
4808fi
4809
4810if test ${enableval} = "no" ; then
4811 ENABLE_OPTIMIZED=
4812
4813else
4814 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4815
4816fi
4817
David Greene2a5a12c2009-04-17 14:50:39 +00004818# Check whether --enable-profiling was given.
4819if test "${enable_profiling+set}" = set; then
4820 enableval=$enable_profiling;
4821else
4822 enableval="no"
4823fi
4824
4825if test ${enableval} = "no" ; then
4826 ENABLE_PROFILING=
4827
4828else
4829 ENABLE_PROFILING=ENABLE_PROFILING=1
4830
4831fi
4832
Reid Spencera773bd52006-08-04 18:18:08 +00004833# Check whether --enable-assertions was given.
4834if test "${enable_assertions+set}" = set; then
4835 enableval=$enable_assertions;
4836else
4837 enableval="yes"
4838fi
4839
4840if test ${enableval} = "yes" ; then
4841 DISABLE_ASSERTIONS=
4842
4843else
4844 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4845
4846fi
4847
David Greenea696d242007-06-28 19:36:08 +00004848# Check whether --enable-expensive-checks was given.
4849if test "${enable_expensive_checks+set}" = set; then
4850 enableval=$enable_expensive_checks;
4851else
4852 enableval="no"
4853fi
4854
4855if test ${enableval} = "yes" ; then
4856 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4857
4858 EXPENSIVE_CHECKS=yes
4859
4860else
4861 ENABLE_EXPENSIVE_CHECKS=
4862
4863 EXPENSIVE_CHECKS=no
4864
4865fi
4866
Reid Spencer8b2e1412006-11-17 03:32:33 +00004867# Check whether --enable-debug-runtime was given.
4868if test "${enable_debug_runtime+set}" = set; then
4869 enableval=$enable_debug_runtime;
4870else
4871 enableval=no
4872fi
4873
4874if test ${enableval} = "no" ; then
4875 DEBUG_RUNTIME=
4876
4877else
4878 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4879
4880fi
4881
Reid Spencera773bd52006-08-04 18:18:08 +00004882# Check whether --enable-jit was given.
4883if test "${enable_jit+set}" = set; then
4884 enableval=$enable_jit;
4885else
4886 enableval=default
4887fi
4888
4889if test ${enableval} = "no"
4890then
4891 JIT=
4892
4893else
4894 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004895 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004896 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004897 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004898 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004899 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004900 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004901 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004902 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004903 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004904 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004905 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004906 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004907 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004908 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004909 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004910 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004911 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004912 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004913 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004914 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004915 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004916 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004917 Blackfin) TARGET_HAS_JIT=0
4918 ;;
4919 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004920 ;;
4921 esac
4922fi
4923
4924# Check whether --enable-doxygen was given.
4925if test "${enable_doxygen+set}" = set; then
4926 enableval=$enable_doxygen;
4927else
4928 enableval=default
4929fi
4930
4931case "$enableval" in
4932 yes) ENABLE_DOXYGEN=1
4933 ;;
4934 no) ENABLE_DOXYGEN=0
4935 ;;
4936 default) ENABLE_DOXYGEN=0
4937 ;;
4938 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4939echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4940 { (exit 1); exit 1; }; } ;;
4941esac
4942
4943# Check whether --enable-threads was given.
4944if test "${enable_threads+set}" = set; then
4945 enableval=$enable_threads;
4946else
Reid Spencer65c5d752006-11-05 17:08:18 +00004947 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004948fi
4949
4950case "$enableval" in
4951 yes) ENABLE_THREADS=1
4952 ;;
4953 no) ENABLE_THREADS=0
4954 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004955 default) ENABLE_THREADS=1
4956 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004957 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4958echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4959 { (exit 1); exit 1; }; } ;;
4960esac
4961
Owen Andersona8603702009-05-19 22:18:56 +00004962cat >>confdefs.h <<_ACEOF
4963#define ENABLE_THREADS $ENABLE_THREADS
4964_ACEOF
4965
4966
Reid Spencer89b0d992006-12-16 22:07:52 +00004967# Check whether --enable-pic was given.
4968if test "${enable_pic+set}" = set; then
4969 enableval=$enable_pic;
4970else
4971 enableval=default
4972fi
4973
4974case "$enableval" in
4975 yes) ENABLE_PIC=1
4976 ;;
4977 no) ENABLE_PIC=0
4978 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004979 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004980 ;;
4981 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4982echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4983 { (exit 1); exit 1; }; } ;;
4984esac
4985
4986cat >>confdefs.h <<_ACEOF
4987#define ENABLE_PIC $ENABLE_PIC
4988_ACEOF
4989
4990
Reid Spencera773bd52006-08-04 18:18:08 +00004991TARGETS_TO_BUILD=""
4992# Check whether --enable-targets was given.
4993if test "${enable_targets+set}" = set; then
4994 enableval=$enable_targets;
4995else
4996 enableval=all
4997fi
4998
4999case "$enableval" in
Jakob Stoklund Olesen73b7bb72009-08-02 17:32:37 +00005000 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 +00005001 host-only)
5002 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005003 x86) TARGETS_TO_BUILD="X86" ;;
5004 x86_64) TARGETS_TO_BUILD="X86" ;;
5005 Sparc) TARGETS_TO_BUILD="Sparc" ;;
5006 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
5007 Alpha) TARGETS_TO_BUILD="Alpha" ;;
5008 ARM) TARGETS_TO_BUILD="ARM" ;;
5009 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00005010 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005011 PIC16) TARGETS_TO_BUILD="PIC16" ;;
5012 XCore) TARGETS_TO_BUILD="XCore" ;;
5013 MSP430) TARGETS_TO_BUILD="MSP430" ;;
5014 SystemZ) TARGETS_TO_BUILD="SystemZ" ;;
5015 Blackfin) TARGETS_TO_BUILD="Blackfin" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005016 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5017echo "$as_me: error: Can not set target to build" >&2;}
5018 { (exit 1); exit 1; }; } ;;
5019 esac
5020 ;;
5021 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5022 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005023 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5024 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5025 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5026 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5027 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5028 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5029 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5030 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5031 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5032 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5033 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5034 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5035 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5036 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5037 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5038 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005039 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5040echo "$as_me: error: Unrecognized target $a_target" >&2;}
5041 { (exit 1); exit 1; }; } ;;
5042 esac
5043 done
5044 ;;
5045esac
Reid Spencera773bd52006-08-04 18:18:08 +00005046TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5047
5048
Douglas Gregor0711c302009-06-17 00:43:20 +00005049# Determine whether we are building LLVM support for the native architecture.
5050# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5051for a_target in $TARGETS_TO_BUILD; do
5052 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00005053 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00005054
5055cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00005056#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00005057_ACEOF
5058
5059 fi
5060done
5061
Douglas Gregor1555a232009-06-16 20:12:29 +00005062# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005063# Targets.def, AsmPrinters.def, and AsmParsers.def.
Douglas Gregor1555a232009-06-16 20:12:29 +00005064LLVM_ENUM_TARGETS=""
5065LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005066LLVM_ENUM_ASM_PARSERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005067for target_to_build in $TARGETS_TO_BUILD; do
5068 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5069 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5070 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5071 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005072 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5073 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5074 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005075done
5076
5077
5078
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005079
Reid Spencer65c5d752006-11-05 17:08:18 +00005080# Check whether --enable-cbe-printf-a was given.
5081if test "${enable_cbe_printf_a+set}" = set; then
5082 enableval=$enable_cbe_printf_a;
5083else
5084 enableval=default
5085fi
5086
5087case "$enableval" in
5088 yes) ENABLE_CBE_PRINTF_A=1
5089 ;;
5090 no) ENABLE_CBE_PRINTF_A=0
5091 ;;
5092 default) ENABLE_CBE_PRINTF_A=1
5093 ;;
5094 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5095echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5096 { (exit 1); exit 1; }; } ;;
5097esac
5098
5099cat >>confdefs.h <<_ACEOF
5100#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5101_ACEOF
5102
5103
Reid Spencera773bd52006-08-04 18:18:08 +00005104
5105# Check whether --with-llvmgccdir was given.
5106if test "${with_llvmgccdir+set}" = set; then
5107 withval=$with_llvmgccdir;
5108else
5109 withval=default
5110fi
5111
5112case "$withval" in
5113 default) WITH_LLVMGCCDIR=default ;;
5114 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5115 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5116echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5117 { (exit 1); exit 1; }; } ;;
5118esac
5119
5120
Devang Patel5d28b882007-12-04 22:54:47 +00005121# Check whether --with-llvmgcc was given.
5122if test "${with_llvmgcc+set}" = set; then
5123 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5124 WITH_LLVMGCCDIR=""
5125fi
5126
5127
5128
5129# Check whether --with-llvmgxx was given.
5130if test "${with_llvmgxx+set}" = set; then
5131 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5132 WITH_LLVMGCCDIR=""
5133fi
5134
Douglas Gregor01746742009-05-11 18:05:52 +00005135
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005136if test -n "$LLVMGCC"; then
5137 LLVMGCCCOMMAND="$LLVMGCC"
5138fi
5139
5140if test -n "$LLVMGXX"; then
5141 LLVMGXXCOMMAND="$LLVMGXX"
5142fi
Devang Patel5d28b882007-12-04 22:54:47 +00005143
5144if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5145 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5146echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5147 { (exit 1); exit 1; }; };
5148fi
5149
5150if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5151 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5152echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5153 { (exit 1); exit 1; }; };
5154fi
5155
5156
Reid Spencera773bd52006-08-04 18:18:08 +00005157# Check whether --with-extra-options was given.
5158if test "${with_extra_options+set}" = set; then
5159 withval=$with_extra_options;
5160else
5161 withval=default
5162fi
5163
5164case "$withval" in
5165 default) EXTRA_OPTIONS= ;;
5166 *) EXTRA_OPTIONS=$withval ;;
5167esac
5168EXTRA_OPTIONS=$EXTRA_OPTIONS
5169
5170
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005171# Check whether --enable-bindings was given.
5172if test "${enable_bindings+set}" = set; then
5173 enableval=$enable_bindings;
5174else
5175 enableval=default
5176fi
5177
5178BINDINGS_TO_BUILD=""
5179case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005180 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005181 all ) BINDINGS_TO_BUILD="ocaml" ;;
5182 none | no) BINDINGS_TO_BUILD="" ;;
5183 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5184 case "$a_binding" in
5185 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5186 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5187echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5188 { (exit 1); exit 1; }; } ;;
5189 esac
5190 done
5191 ;;
5192esac
5193
Reid Spencera773bd52006-08-04 18:18:08 +00005194
Gordon Henriksenf0915682007-10-02 16:42:22 +00005195# Check whether --with-ocaml-libdir was given.
5196if test "${with_ocaml_libdir+set}" = set; then
5197 withval=$with_ocaml_libdir;
5198else
5199 withval=auto
5200fi
5201
5202case "$withval" in
5203 auto) with_ocaml_libdir="$withval" ;;
5204 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5205 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5206echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5207 { (exit 1); exit 1; }; } ;;
5208esac
5209
5210
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005211# Check whether --with-binutils-include was given.
5212if test "${with_binutils_include+set}" = set; then
5213 withval=$with_binutils_include;
5214else
5215 withval=default
5216fi
5217
5218case "$withval" in
5219 default) WITH_BINUTILS_INCDIR=default ;;
5220 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5221 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5222echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5223 { (exit 1); exit 1; }; } ;;
5224esac
5225if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5226 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5227
5228 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5229 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5230 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5231echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5232 { (exit 1); exit 1; }; };
5233 fi
5234fi
5235
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005236# Check whether --enable-libffi was given.
5237if test "${enable_libffi+set}" = set; then
5238 enableval=$enable_libffi;
5239else
5240 enableval=yes
5241fi
5242
5243case "$enableval" in
5244 yes) llvm_cv_enable_libffi="yes" ;;
5245 no) llvm_cv_enable_libffi="no" ;;
5246 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5247echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5248 { (exit 1); exit 1; }; } ;;
5249esac
5250
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005251if test "$llvm_cv_os_type" = "Win32" ; then
5252 llvmc_dynamic="yes"
5253else
5254 llvmc_dynamic="no"
5255fi
5256
5257# Check whether --enable-llvmc-dynamic was given.
5258if test "${enable_llvmc_dynamic+set}" = set; then
5259 enableval=$enable_llvmc_dynamic;
5260else
5261 enableval=$llvmc_dynamic
5262fi
5263
5264if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5265 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5266
5267else
5268 ENABLE_LLVMC_DYNAMIC=
5269
5270fi
5271
5272# Check whether --enable-llvmc-dynamic-plugins was given.
5273if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5274 enableval=$enable_llvmc_dynamic_plugins;
5275else
5276 enableval=yes
5277fi
5278
5279if test ${enableval} = "yes" ; then
5280 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5281
5282else
5283 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5284
5285fi
5286
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005287
Reid Spencera773bd52006-08-04 18:18:08 +00005288ac_ext=c
5289ac_cpp='$CPP $CPPFLAGS'
5290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5292ac_compiler_gnu=$ac_cv_c_compiler_gnu
5293{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5294echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5295# On Suns, sometimes $CPP names a directory.
5296if test -n "$CPP" && test -d "$CPP"; then
5297 CPP=
5298fi
5299if test -z "$CPP"; then
5300 if test "${ac_cv_prog_CPP+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5302else
5303 # Double quotes because CPP needs to be expanded
5304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5305 do
5306 ac_preproc_ok=false
5307for ac_c_preproc_warn_flag in '' yes
5308do
5309 # Use a header file that comes with gcc, so configuring glibc
5310 # with a fresh cross-compiler works.
5311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5312 # <limits.h> exists even on freestanding compilers.
5313 # On the NeXT, cc -E runs the code through the compiler's parser,
5314 # not just through cpp. "Syntax error" is here to catch this case.
5315 cat >conftest.$ac_ext <<_ACEOF
5316/* confdefs.h. */
5317_ACEOF
5318cat confdefs.h >>conftest.$ac_ext
5319cat >>conftest.$ac_ext <<_ACEOF
5320/* end confdefs.h. */
5321#ifdef __STDC__
5322# include <limits.h>
5323#else
5324# include <assert.h>
5325#endif
5326 Syntax error
5327_ACEOF
5328if { (ac_try="$ac_cpp conftest.$ac_ext"
5329case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332esac
5333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5335 ac_status=$?
5336 grep -v '^ *+' conftest.er1 >conftest.err
5337 rm -f conftest.er1
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005340 (exit $ac_status); } >/dev/null; then
5341 if test -s conftest.err; then
5342 ac_cpp_err=$ac_c_preproc_warn_flag
5343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5344 else
5345 ac_cpp_err=
5346 fi
5347else
5348 ac_cpp_err=yes
5349fi
5350if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005351 :
5352else
5353 echo "$as_me: failed program was:" >&5
5354sed 's/^/| /' conftest.$ac_ext >&5
5355
5356 # Broken: fails on valid input.
5357continue
5358fi
5359
5360rm -f conftest.err conftest.$ac_ext
5361
5362 # OK, works on sane cases. Now check whether nonexistent headers
5363 # can be detected and how.
5364 cat >conftest.$ac_ext <<_ACEOF
5365/* confdefs.h. */
5366_ACEOF
5367cat confdefs.h >>conftest.$ac_ext
5368cat >>conftest.$ac_ext <<_ACEOF
5369/* end confdefs.h. */
5370#include <ac_nonexistent.h>
5371_ACEOF
5372if { (ac_try="$ac_cpp conftest.$ac_ext"
5373case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376esac
5377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005384 (exit $ac_status); } >/dev/null; then
5385 if test -s conftest.err; then
5386 ac_cpp_err=$ac_c_preproc_warn_flag
5387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5388 else
5389 ac_cpp_err=
5390 fi
5391else
5392 ac_cpp_err=yes
5393fi
5394if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005395 # Broken: success on invalid input.
5396continue
5397else
5398 echo "$as_me: failed program was:" >&5
5399sed 's/^/| /' conftest.$ac_ext >&5
5400
5401 # Passes both tests.
5402ac_preproc_ok=:
5403break
5404fi
5405
5406rm -f conftest.err conftest.$ac_ext
5407
5408done
5409# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5410rm -f conftest.err conftest.$ac_ext
5411if $ac_preproc_ok; then
5412 break
5413fi
5414
5415 done
5416 ac_cv_prog_CPP=$CPP
5417
5418fi
5419 CPP=$ac_cv_prog_CPP
5420else
5421 ac_cv_prog_CPP=$CPP
5422fi
5423{ echo "$as_me:$LINENO: result: $CPP" >&5
5424echo "${ECHO_T}$CPP" >&6; }
5425ac_preproc_ok=false
5426for ac_c_preproc_warn_flag in '' yes
5427do
5428 # Use a header file that comes with gcc, so configuring glibc
5429 # with a fresh cross-compiler works.
5430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5431 # <limits.h> exists even on freestanding compilers.
5432 # On the NeXT, cc -E runs the code through the compiler's parser,
5433 # not just through cpp. "Syntax error" is here to catch this case.
5434 cat >conftest.$ac_ext <<_ACEOF
5435/* confdefs.h. */
5436_ACEOF
5437cat confdefs.h >>conftest.$ac_ext
5438cat >>conftest.$ac_ext <<_ACEOF
5439/* end confdefs.h. */
5440#ifdef __STDC__
5441# include <limits.h>
5442#else
5443# include <assert.h>
5444#endif
5445 Syntax error
5446_ACEOF
5447if { (ac_try="$ac_cpp conftest.$ac_ext"
5448case "(($ac_try" in
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5451esac
5452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5454 ac_status=$?
5455 grep -v '^ *+' conftest.er1 >conftest.err
5456 rm -f conftest.er1
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005459 (exit $ac_status); } >/dev/null; then
5460 if test -s conftest.err; then
5461 ac_cpp_err=$ac_c_preproc_warn_flag
5462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5463 else
5464 ac_cpp_err=
5465 fi
5466else
5467 ac_cpp_err=yes
5468fi
5469if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005470 :
5471else
5472 echo "$as_me: failed program was:" >&5
5473sed 's/^/| /' conftest.$ac_ext >&5
5474
5475 # Broken: fails on valid input.
5476continue
5477fi
5478
5479rm -f conftest.err conftest.$ac_ext
5480
5481 # OK, works on sane cases. Now check whether nonexistent headers
5482 # can be detected and how.
5483 cat >conftest.$ac_ext <<_ACEOF
5484/* confdefs.h. */
5485_ACEOF
5486cat confdefs.h >>conftest.$ac_ext
5487cat >>conftest.$ac_ext <<_ACEOF
5488/* end confdefs.h. */
5489#include <ac_nonexistent.h>
5490_ACEOF
5491if { (ac_try="$ac_cpp conftest.$ac_ext"
5492case "(($ac_try" in
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5495esac
5496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5498 ac_status=$?
5499 grep -v '^ *+' conftest.er1 >conftest.err
5500 rm -f conftest.er1
5501 cat conftest.err >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005503 (exit $ac_status); } >/dev/null; then
5504 if test -s conftest.err; then
5505 ac_cpp_err=$ac_c_preproc_warn_flag
5506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5507 else
5508 ac_cpp_err=
5509 fi
5510else
5511 ac_cpp_err=yes
5512fi
5513if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005514 # Broken: success on invalid input.
5515continue
5516else
5517 echo "$as_me: failed program was:" >&5
5518sed 's/^/| /' conftest.$ac_ext >&5
5519
5520 # Passes both tests.
5521ac_preproc_ok=:
5522break
5523fi
5524
5525rm -f conftest.err conftest.$ac_ext
5526
5527done
5528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5529rm -f conftest.err conftest.$ac_ext
5530if $ac_preproc_ok; then
5531 :
5532else
5533 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5534See \`config.log' for more details." >&5
5535echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5536See \`config.log' for more details." >&2;}
5537 { (exit 1); exit 1; }; }
5538fi
5539
5540ac_ext=c
5541ac_cpp='$CPP $CPPFLAGS'
5542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544ac_compiler_gnu=$ac_cv_c_compiler_gnu
5545
5546ac_ext=c
5547ac_cpp='$CPP $CPPFLAGS'
5548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550ac_compiler_gnu=$ac_cv_c_compiler_gnu
5551if test -n "$ac_tool_prefix"; then
5552 for ac_prog in gcc
5553 do
5554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5555set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5558if test "${ac_cv_prog_CC+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5560else
5561 if test -n "$CC"; then
5562 ac_cv_prog_CC="$CC" # Let the user override the test.
5563else
5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH
5566do
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005570 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 +00005571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 break 2
5574 fi
5575done
5576done
5577IFS=$as_save_IFS
5578
5579fi
5580fi
5581CC=$ac_cv_prog_CC
5582if test -n "$CC"; then
5583 { echo "$as_me:$LINENO: result: $CC" >&5
5584echo "${ECHO_T}$CC" >&6; }
5585else
5586 { echo "$as_me:$LINENO: result: no" >&5
5587echo "${ECHO_T}no" >&6; }
5588fi
5589
5590
5591 test -n "$CC" && break
5592 done
5593fi
5594if test -z "$CC"; then
5595 ac_ct_CC=$CC
5596 for ac_prog in gcc
5597do
5598 # Extract the first word of "$ac_prog", so it can be a program name with args.
5599set dummy $ac_prog; ac_word=$2
5600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5602if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604else
5605 if test -n "$ac_ct_CC"; then
5606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5607else
5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609for as_dir in $PATH
5610do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005614 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 +00005615 ac_cv_prog_ac_ct_CC="$ac_prog"
5616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5618 fi
5619done
5620done
5621IFS=$as_save_IFS
5622
5623fi
5624fi
5625ac_ct_CC=$ac_cv_prog_ac_ct_CC
5626if test -n "$ac_ct_CC"; then
5627 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5628echo "${ECHO_T}$ac_ct_CC" >&6; }
5629else
5630 { echo "$as_me:$LINENO: result: no" >&5
5631echo "${ECHO_T}no" >&6; }
5632fi
5633
5634
5635 test -n "$ac_ct_CC" && break
5636done
5637
5638 if test "x$ac_ct_CC" = x; then
5639 CC=""
5640 else
5641 case $cross_compiling:$ac_tool_warned in
5642yes:)
5643{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5644whose name does not start with the host triplet. If you think this
5645configuration is useful to you, please write to autoconf@gnu.org." >&5
5646echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5647whose name does not start with the host triplet. If you think this
5648configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5649ac_tool_warned=yes ;;
5650esac
5651 CC=$ac_ct_CC
5652 fi
5653fi
5654
5655
5656test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5657See \`config.log' for more details." >&5
5658echo "$as_me: error: no acceptable C compiler found in \$PATH
5659See \`config.log' for more details." >&2;}
5660 { (exit 1); exit 1; }; }
5661
5662# Provide some information about the compiler.
5663echo "$as_me:$LINENO: checking for C compiler version" >&5
5664ac_compiler=`set X $ac_compile; echo $2`
5665{ (ac_try="$ac_compiler --version >&5"
5666case "(($ac_try" in
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5669esac
5670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671 (eval "$ac_compiler --version >&5") 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }
5675{ (ac_try="$ac_compiler -v >&5"
5676case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679esac
5680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_compiler -v >&5") 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }
5685{ (ac_try="$ac_compiler -V >&5"
5686case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5689esac
5690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_compiler -V >&5") 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }
5695
5696{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5697echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5698if test "${ac_cv_c_compiler_gnu+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700else
5701 cat >conftest.$ac_ext <<_ACEOF
5702/* confdefs.h. */
5703_ACEOF
5704cat confdefs.h >>conftest.$ac_ext
5705cat >>conftest.$ac_ext <<_ACEOF
5706/* end confdefs.h. */
5707
5708int
5709main ()
5710{
5711#ifndef __GNUC__
5712 choke me
5713#endif
5714
5715 ;
5716 return 0;
5717}
5718_ACEOF
5719rm -f conftest.$ac_objext
5720if { (ac_try="$ac_compile"
5721case "(($ac_try" in
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5724esac
5725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_compile") 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005732 (exit $ac_status); } &&
5733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5734 { (case "(($ac_try" in
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5737esac
5738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_try") 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest.$ac_objext'
5744 { (case "(($ac_try" in
5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5747esac
5748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749 (eval "$ac_try") 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005753 ac_compiler_gnu=yes
5754else
5755 echo "$as_me: failed program was:" >&5
5756sed 's/^/| /' conftest.$ac_ext >&5
5757
5758 ac_compiler_gnu=no
5759fi
5760
5761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762ac_cv_c_compiler_gnu=$ac_compiler_gnu
5763
5764fi
5765{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5766echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5767GCC=`test $ac_compiler_gnu = yes && echo yes`
5768ac_test_CFLAGS=${CFLAGS+set}
5769ac_save_CFLAGS=$CFLAGS
5770{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5771echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5772if test "${ac_cv_prog_cc_g+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5774else
5775 ac_save_c_werror_flag=$ac_c_werror_flag
5776 ac_c_werror_flag=yes
5777 ac_cv_prog_cc_g=no
5778 CFLAGS="-g"
5779 cat >conftest.$ac_ext <<_ACEOF
5780/* confdefs.h. */
5781_ACEOF
5782cat confdefs.h >>conftest.$ac_ext
5783cat >>conftest.$ac_ext <<_ACEOF
5784/* end confdefs.h. */
5785
5786int
5787main ()
5788{
5789
5790 ;
5791 return 0;
5792}
5793_ACEOF
5794rm -f conftest.$ac_objext
5795if { (ac_try="$ac_compile"
5796case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799esac
5800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compile") 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005807 (exit $ac_status); } &&
5808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5809 { (case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5812esac
5813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_try") 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try='test -s conftest.$ac_objext'
5819 { (case "(($ac_try" in
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5822esac
5823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824 (eval "$ac_try") 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005828 ac_cv_prog_cc_g=yes
5829else
5830 echo "$as_me: failed program was:" >&5
5831sed 's/^/| /' conftest.$ac_ext >&5
5832
5833 CFLAGS=""
5834 cat >conftest.$ac_ext <<_ACEOF
5835/* confdefs.h. */
5836_ACEOF
5837cat confdefs.h >>conftest.$ac_ext
5838cat >>conftest.$ac_ext <<_ACEOF
5839/* end confdefs.h. */
5840
5841int
5842main ()
5843{
5844
5845 ;
5846 return 0;
5847}
5848_ACEOF
5849rm -f conftest.$ac_objext
5850if { (ac_try="$ac_compile"
5851case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854esac
5855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_compile") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5864 { (case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5867esac
5868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_try") 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5877esac
5878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_try") 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005883 :
5884else
5885 echo "$as_me: failed program was:" >&5
5886sed 's/^/| /' conftest.$ac_ext >&5
5887
5888 ac_c_werror_flag=$ac_save_c_werror_flag
5889 CFLAGS="-g"
5890 cat >conftest.$ac_ext <<_ACEOF
5891/* confdefs.h. */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h. */
5896
5897int
5898main ()
5899{
5900
5901 ;
5902 return 0;
5903}
5904_ACEOF
5905rm -f conftest.$ac_objext
5906if { (ac_try="$ac_compile"
5907case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5910esac
5911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_compile") 2>conftest.er1
5913 ac_status=$?
5914 grep -v '^ *+' conftest.er1 >conftest.err
5915 rm -f conftest.er1
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005918 (exit $ac_status); } &&
5919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5920 { (case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923esac
5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_try") 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; } &&
5929 { ac_try='test -s conftest.$ac_objext'
5930 { (case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5933esac
5934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_try") 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005939 ac_cv_prog_cc_g=yes
5940else
5941 echo "$as_me: failed program was:" >&5
5942sed 's/^/| /' conftest.$ac_ext >&5
5943
5944
5945fi
5946
5947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5948fi
5949
5950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951fi
5952
5953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 ac_c_werror_flag=$ac_save_c_werror_flag
5955fi
5956{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5957echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5958if test "$ac_test_CFLAGS" = set; then
5959 CFLAGS=$ac_save_CFLAGS
5960elif test $ac_cv_prog_cc_g = yes; then
5961 if test "$GCC" = yes; then
5962 CFLAGS="-g -O2"
5963 else
5964 CFLAGS="-g"
5965 fi
5966else
5967 if test "$GCC" = yes; then
5968 CFLAGS="-O2"
5969 else
5970 CFLAGS=
5971 fi
5972fi
5973{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5974echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5975if test "${ac_cv_prog_cc_c89+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5977else
5978 ac_cv_prog_cc_c89=no
5979ac_save_CC=$CC
5980cat >conftest.$ac_ext <<_ACEOF
5981/* confdefs.h. */
5982_ACEOF
5983cat confdefs.h >>conftest.$ac_ext
5984cat >>conftest.$ac_ext <<_ACEOF
5985/* end confdefs.h. */
5986#include <stdarg.h>
5987#include <stdio.h>
5988#include <sys/types.h>
5989#include <sys/stat.h>
5990/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5991struct buf { int x; };
5992FILE * (*rcsopen) (struct buf *, struct stat *, int);
5993static char *e (p, i)
5994 char **p;
5995 int i;
5996{
5997 return p[i];
5998}
5999static char *f (char * (*g) (char **, int), char **p, ...)
6000{
6001 char *s;
6002 va_list v;
6003 va_start (v,p);
6004 s = g (p, va_arg (v,int));
6005 va_end (v);
6006 return s;
6007}
6008
6009/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6010 function prototypes and stuff, but not '\xHH' hex character constants.
6011 These don't provoke an error unfortunately, instead are silently treated
6012 as 'x'. The following induces an error, until -std is added to get
6013 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6014 array size at least. It's necessary to write '\x00'==0 to get something
6015 that's true only with -std. */
6016int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6017
6018/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6019 inside strings and character constants. */
6020#define FOO(x) 'x'
6021int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6022
6023int test (int i, double x);
6024struct s1 {int (*f) (int a);};
6025struct s2 {int (*f) (double a);};
6026int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6027int argc;
6028char **argv;
6029int
6030main ()
6031{
6032return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6033 ;
6034 return 0;
6035}
6036_ACEOF
6037for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6038 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6039do
6040 CC="$ac_save_CC $ac_arg"
6041 rm -f conftest.$ac_objext
6042if { (ac_try="$ac_compile"
6043case "(($ac_try" in
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6046esac
6047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 (eval "$ac_compile") 2>conftest.er1
6049 ac_status=$?
6050 grep -v '^ *+' conftest.er1 >conftest.err
6051 rm -f conftest.er1
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006054 (exit $ac_status); } &&
6055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6056 { (case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059esac
6060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_try") 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; } &&
6065 { ac_try='test -s conftest.$ac_objext'
6066 { (case "(($ac_try" in
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6069esac
6070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_try") 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006075 ac_cv_prog_cc_c89=$ac_arg
6076else
6077 echo "$as_me: failed program was:" >&5
6078sed 's/^/| /' conftest.$ac_ext >&5
6079
6080
6081fi
6082
6083rm -f core conftest.err conftest.$ac_objext
6084 test "x$ac_cv_prog_cc_c89" != "xno" && break
6085done
6086rm -f conftest.$ac_ext
6087CC=$ac_save_CC
6088
6089fi
6090# AC_CACHE_VAL
6091case "x$ac_cv_prog_cc_c89" in
6092 x)
6093 { echo "$as_me:$LINENO: result: none needed" >&5
6094echo "${ECHO_T}none needed" >&6; } ;;
6095 xno)
6096 { echo "$as_me:$LINENO: result: unsupported" >&5
6097echo "${ECHO_T}unsupported" >&6; } ;;
6098 *)
6099 CC="$CC $ac_cv_prog_cc_c89"
6100 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6101echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6102esac
6103
6104
6105ac_ext=c
6106ac_cpp='$CPP $CPPFLAGS'
6107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6109ac_compiler_gnu=$ac_cv_c_compiler_gnu
6110
6111ac_ext=cpp
6112ac_cpp='$CXXCPP $CPPFLAGS'
6113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6116if test -z "$CXX"; then
6117 if test -n "$CCC"; then
6118 CXX=$CCC
6119 else
6120 if test -n "$ac_tool_prefix"; then
6121 for ac_prog in g++
6122 do
6123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6124set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6125{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6127if test "${ac_cv_prog_CXX+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129else
6130 if test -n "$CXX"; then
6131 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6132else
6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134for as_dir in $PATH
6135do
6136 IFS=$as_save_IFS
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006139 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 +00006140 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 break 2
6143 fi
6144done
6145done
6146IFS=$as_save_IFS
6147
6148fi
6149fi
6150CXX=$ac_cv_prog_CXX
6151if test -n "$CXX"; then
6152 { echo "$as_me:$LINENO: result: $CXX" >&5
6153echo "${ECHO_T}$CXX" >&6; }
6154else
6155 { echo "$as_me:$LINENO: result: no" >&5
6156echo "${ECHO_T}no" >&6; }
6157fi
6158
6159
6160 test -n "$CXX" && break
6161 done
6162fi
6163if test -z "$CXX"; then
6164 ac_ct_CXX=$CXX
6165 for ac_prog in g++
6166do
6167 # Extract the first word of "$ac_prog", so it can be a program name with args.
6168set dummy $ac_prog; ac_word=$2
6169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6173else
6174 if test -n "$ac_ct_CXX"; then
6175 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6176else
6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178for as_dir in $PATH
6179do
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006183 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 +00006184 ac_cv_prog_ac_ct_CXX="$ac_prog"
6185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 break 2
6187 fi
6188done
6189done
6190IFS=$as_save_IFS
6191
6192fi
6193fi
6194ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6195if test -n "$ac_ct_CXX"; then
6196 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6197echo "${ECHO_T}$ac_ct_CXX" >&6; }
6198else
6199 { echo "$as_me:$LINENO: result: no" >&5
6200echo "${ECHO_T}no" >&6; }
6201fi
6202
6203
6204 test -n "$ac_ct_CXX" && break
6205done
6206
6207 if test "x$ac_ct_CXX" = x; then
6208 CXX="g++"
6209 else
6210 case $cross_compiling:$ac_tool_warned in
6211yes:)
6212{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6213whose name does not start with the host triplet. If you think this
6214configuration is useful to you, please write to autoconf@gnu.org." >&5
6215echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6216whose name does not start with the host triplet. If you think this
6217configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6218ac_tool_warned=yes ;;
6219esac
6220 CXX=$ac_ct_CXX
6221 fi
6222fi
6223
6224 fi
6225fi
6226# Provide some information about the compiler.
6227echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6228ac_compiler=`set X $ac_compile; echo $2`
6229{ (ac_try="$ac_compiler --version >&5"
6230case "(($ac_try" in
6231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232 *) ac_try_echo=$ac_try;;
6233esac
6234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6235 (eval "$ac_compiler --version >&5") 2>&5
6236 ac_status=$?
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }
6239{ (ac_try="$ac_compiler -v >&5"
6240case "(($ac_try" in
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6243esac
6244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245 (eval "$ac_compiler -v >&5") 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }
6249{ (ac_try="$ac_compiler -V >&5"
6250case "(($ac_try" in
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6253esac
6254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_compiler -V >&5") 2>&5
6256 ac_status=$?
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }
6259
6260{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6261echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6262if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264else
6265 cat >conftest.$ac_ext <<_ACEOF
6266/* confdefs.h. */
6267_ACEOF
6268cat confdefs.h >>conftest.$ac_ext
6269cat >>conftest.$ac_ext <<_ACEOF
6270/* end confdefs.h. */
6271
6272int
6273main ()
6274{
6275#ifndef __GNUC__
6276 choke me
6277#endif
6278
6279 ;
6280 return 0;
6281}
6282_ACEOF
6283rm -f conftest.$ac_objext
6284if { (ac_try="$ac_compile"
6285case "(($ac_try" in
6286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 *) ac_try_echo=$ac_try;;
6288esac
6289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 (eval "$ac_compile") 2>conftest.er1
6291 ac_status=$?
6292 grep -v '^ *+' conftest.er1 >conftest.err
6293 rm -f conftest.er1
6294 cat conftest.err >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006296 (exit $ac_status); } &&
6297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6298 { (case "(($ac_try" in
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6301esac
6302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_try") 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; } &&
6307 { ac_try='test -s conftest.$ac_objext'
6308 { (case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6311esac
6312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_try") 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006317 ac_compiler_gnu=yes
6318else
6319 echo "$as_me: failed program was:" >&5
6320sed 's/^/| /' conftest.$ac_ext >&5
6321
6322 ac_compiler_gnu=no
6323fi
6324
6325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6327
6328fi
6329{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6330echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6331GXX=`test $ac_compiler_gnu = yes && echo yes`
6332ac_test_CXXFLAGS=${CXXFLAGS+set}
6333ac_save_CXXFLAGS=$CXXFLAGS
6334{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6335echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6336if test "${ac_cv_prog_cxx_g+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338else
6339 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6340 ac_cxx_werror_flag=yes
6341 ac_cv_prog_cxx_g=no
6342 CXXFLAGS="-g"
6343 cat >conftest.$ac_ext <<_ACEOF
6344/* confdefs.h. */
6345_ACEOF
6346cat confdefs.h >>conftest.$ac_ext
6347cat >>conftest.$ac_ext <<_ACEOF
6348/* end confdefs.h. */
6349
6350int
6351main ()
6352{
6353
6354 ;
6355 return 0;
6356}
6357_ACEOF
6358rm -f conftest.$ac_objext
6359if { (ac_try="$ac_compile"
6360case "(($ac_try" in
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6363esac
6364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365 (eval "$ac_compile") 2>conftest.er1
6366 ac_status=$?
6367 grep -v '^ *+' conftest.er1 >conftest.err
6368 rm -f conftest.er1
6369 cat conftest.err >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006371 (exit $ac_status); } &&
6372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6373 { (case "(($ac_try" in
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6376esac
6377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378 (eval "$ac_try") 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; } &&
6382 { ac_try='test -s conftest.$ac_objext'
6383 { (case "(($ac_try" in
6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385 *) ac_try_echo=$ac_try;;
6386esac
6387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388 (eval "$ac_try") 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006392 ac_cv_prog_cxx_g=yes
6393else
6394 echo "$as_me: failed program was:" >&5
6395sed 's/^/| /' conftest.$ac_ext >&5
6396
6397 CXXFLAGS=""
6398 cat >conftest.$ac_ext <<_ACEOF
6399/* confdefs.h. */
6400_ACEOF
6401cat confdefs.h >>conftest.$ac_ext
6402cat >>conftest.$ac_ext <<_ACEOF
6403/* end confdefs.h. */
6404
6405int
6406main ()
6407{
6408
6409 ;
6410 return 0;
6411}
6412_ACEOF
6413rm -f conftest.$ac_objext
6414if { (ac_try="$ac_compile"
6415case "(($ac_try" in
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6418esac
6419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420 (eval "$ac_compile") 2>conftest.er1
6421 ac_status=$?
6422 grep -v '^ *+' conftest.er1 >conftest.err
6423 rm -f conftest.er1
6424 cat conftest.err >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006426 (exit $ac_status); } &&
6427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6428 { (case "(($ac_try" in
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6431esac
6432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433 (eval "$ac_try") 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; } &&
6437 { ac_try='test -s conftest.$ac_objext'
6438 { (case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441esac
6442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_try") 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006447 :
6448else
6449 echo "$as_me: failed program was:" >&5
6450sed 's/^/| /' conftest.$ac_ext >&5
6451
6452 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6453 CXXFLAGS="-g"
6454 cat >conftest.$ac_ext <<_ACEOF
6455/* confdefs.h. */
6456_ACEOF
6457cat confdefs.h >>conftest.$ac_ext
6458cat >>conftest.$ac_ext <<_ACEOF
6459/* end confdefs.h. */
6460
6461int
6462main ()
6463{
6464
6465 ;
6466 return 0;
6467}
6468_ACEOF
6469rm -f conftest.$ac_objext
6470if { (ac_try="$ac_compile"
6471case "(($ac_try" in
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6474esac
6475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_compile") 2>conftest.er1
6477 ac_status=$?
6478 grep -v '^ *+' conftest.er1 >conftest.err
6479 rm -f conftest.er1
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006482 (exit $ac_status); } &&
6483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6484 { (case "(($ac_try" in
6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486 *) ac_try_echo=$ac_try;;
6487esac
6488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489 (eval "$ac_try") 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; } &&
6493 { ac_try='test -s conftest.$ac_objext'
6494 { (case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497esac
6498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_try") 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006503 ac_cv_prog_cxx_g=yes
6504else
6505 echo "$as_me: failed program was:" >&5
6506sed 's/^/| /' conftest.$ac_ext >&5
6507
6508
6509fi
6510
6511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512fi
6513
6514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515fi
6516
6517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6519fi
6520{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6521echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6522if test "$ac_test_CXXFLAGS" = set; then
6523 CXXFLAGS=$ac_save_CXXFLAGS
6524elif test $ac_cv_prog_cxx_g = yes; then
6525 if test "$GXX" = yes; then
6526 CXXFLAGS="-g -O2"
6527 else
6528 CXXFLAGS="-g"
6529 fi
6530else
6531 if test "$GXX" = yes; then
6532 CXXFLAGS="-O2"
6533 else
6534 CXXFLAGS=
6535 fi
6536fi
6537ac_ext=c
6538ac_cpp='$CPP $CPPFLAGS'
6539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6541ac_compiler_gnu=$ac_cv_c_compiler_gnu
6542
Reid Spencera773bd52006-08-04 18:18:08 +00006543
6544{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6545echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6546if test "${lt_cv_path_NM+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6548else
6549 if test -n "$NM"; then
6550 # Let the user override the test.
6551 lt_cv_path_NM="$NM"
6552else
6553 lt_nm_to_check="${ac_tool_prefix}nm"
6554 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6555 lt_nm_to_check="$lt_nm_to_check nm"
6556 fi
6557 for lt_tmp_nm in $lt_nm_to_check; do
6558 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6559 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6560 IFS="$lt_save_ifs"
6561 test -z "$ac_dir" && ac_dir=.
6562 tmp_nm="$ac_dir/$lt_tmp_nm"
6563 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6564 # Check to see if the nm accepts a BSD-compat flag.
6565 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6566 # nm: unknown option "B" ignored
6567 # Tru64's nm complains that /dev/null is an invalid object file
6568 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6569 */dev/null* | *'Invalid file or object type'*)
6570 lt_cv_path_NM="$tmp_nm -B"
6571 break
6572 ;;
6573 *)
6574 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6575 */dev/null*)
6576 lt_cv_path_NM="$tmp_nm -p"
6577 break
6578 ;;
6579 *)
6580 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6581 continue # so that we can try to find one that supports BSD flags
6582 ;;
6583 esac
6584 ;;
6585 esac
6586 fi
6587 done
6588 IFS="$lt_save_ifs"
6589 done
6590 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6591fi
6592fi
6593{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6594echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6595NM="$lt_cv_path_NM"
6596
6597
6598
6599{ echo "$as_me:$LINENO: checking for GNU make" >&5
6600echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6601if test "${llvm_cv_gnu_make_command+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603else
6604 llvm_cv_gnu_make_command=''
6605 for a in "$MAKE" make gmake gnumake ; do
6606 if test -z "$a" ; then continue ; fi ;
6607 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6608 then
6609 llvm_cv_gnu_make_command=$a ;
6610 break;
6611 fi
6612 done
6613fi
6614{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6615echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6616 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6617 ifGNUmake='' ;
6618 else
6619 ifGNUmake='#' ;
6620 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6621echo "${ECHO_T}\"Not found\"" >&6; };
6622 fi
6623
6624
6625{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6626echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6627LN_S=$as_ln_s
6628if test "$LN_S" = "ln -s"; then
6629 { echo "$as_me:$LINENO: result: yes" >&5
6630echo "${ECHO_T}yes" >&6; }
6631else
6632 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6633echo "${ECHO_T}no, using $LN_S" >&6; }
6634fi
6635
6636# Extract the first word of "cmp", so it can be a program name with args.
6637set dummy cmp; ac_word=$2
6638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640if test "${ac_cv_path_CMP+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642else
6643 case $CMP in
6644 [\\/]* | ?:[\\/]*)
6645 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6646 ;;
6647 *)
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649for as_dir in $PATH
6650do
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006654 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 +00006655 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 break 2
6658 fi
6659done
6660done
6661IFS=$as_save_IFS
6662
6663 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6664 ;;
6665esac
6666fi
6667CMP=$ac_cv_path_CMP
6668if test -n "$CMP"; then
6669 { echo "$as_me:$LINENO: result: $CMP" >&5
6670echo "${ECHO_T}$CMP" >&6; }
6671else
6672 { echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6; }
6674fi
6675
6676
6677# Extract the first word of "cp", so it can be a program name with args.
6678set dummy cp; ac_word=$2
6679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681if test "${ac_cv_path_CP+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683else
6684 case $CP in
6685 [\\/]* | ?:[\\/]*)
6686 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6687 ;;
6688 *)
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690for as_dir in $PATH
6691do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006695 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 +00006696 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700done
6701done
6702IFS=$as_save_IFS
6703
6704 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6705 ;;
6706esac
6707fi
6708CP=$ac_cv_path_CP
6709if test -n "$CP"; then
6710 { echo "$as_me:$LINENO: result: $CP" >&5
6711echo "${ECHO_T}$CP" >&6; }
6712else
6713 { echo "$as_me:$LINENO: result: no" >&5
6714echo "${ECHO_T}no" >&6; }
6715fi
6716
6717
6718# Extract the first word of "date", so it can be a program name with args.
6719set dummy date; ac_word=$2
6720{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722if test "${ac_cv_path_DATE+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724else
6725 case $DATE in
6726 [\\/]* | ?:[\\/]*)
6727 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6728 ;;
6729 *)
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731for as_dir in $PATH
6732do
6733 IFS=$as_save_IFS
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006736 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 +00006737 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 break 2
6740 fi
6741done
6742done
6743IFS=$as_save_IFS
6744
6745 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6746 ;;
6747esac
6748fi
6749DATE=$ac_cv_path_DATE
6750if test -n "$DATE"; then
6751 { echo "$as_me:$LINENO: result: $DATE" >&5
6752echo "${ECHO_T}$DATE" >&6; }
6753else
6754 { echo "$as_me:$LINENO: result: no" >&5
6755echo "${ECHO_T}no" >&6; }
6756fi
6757
6758
6759# Extract the first word of "find", so it can be a program name with args.
6760set dummy find; ac_word=$2
6761{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763if test "${ac_cv_path_FIND+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6765else
6766 case $FIND in
6767 [\\/]* | ?:[\\/]*)
6768 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6769 ;;
6770 *)
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772for as_dir in $PATH
6773do
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006777 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 +00006778 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 break 2
6781 fi
6782done
6783done
6784IFS=$as_save_IFS
6785
6786 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6787 ;;
6788esac
6789fi
6790FIND=$ac_cv_path_FIND
6791if test -n "$FIND"; then
6792 { echo "$as_me:$LINENO: result: $FIND" >&5
6793echo "${ECHO_T}$FIND" >&6; }
6794else
6795 { echo "$as_me:$LINENO: result: no" >&5
6796echo "${ECHO_T}no" >&6; }
6797fi
6798
6799
6800# Extract the first word of "grep", so it can be a program name with args.
6801set dummy grep; ac_word=$2
6802{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6804if test "${ac_cv_path_GREP+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806else
6807 case $GREP in
6808 [\\/]* | ?:[\\/]*)
6809 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6810 ;;
6811 *)
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813for as_dir in $PATH
6814do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006818 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 +00006819 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6822 fi
6823done
6824done
6825IFS=$as_save_IFS
6826
6827 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6828 ;;
6829esac
6830fi
6831GREP=$ac_cv_path_GREP
6832if test -n "$GREP"; then
6833 { echo "$as_me:$LINENO: result: $GREP" >&5
6834echo "${ECHO_T}$GREP" >&6; }
6835else
6836 { echo "$as_me:$LINENO: result: no" >&5
6837echo "${ECHO_T}no" >&6; }
6838fi
6839
6840
6841# Extract the first word of "mkdir", so it can be a program name with args.
6842set dummy mkdir; ac_word=$2
6843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845if test "${ac_cv_path_MKDIR+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848 case $MKDIR in
6849 [\\/]* | ?:[\\/]*)
6850 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6851 ;;
6852 *)
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006859 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 +00006860 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6863 fi
6864done
6865done
6866IFS=$as_save_IFS
6867
6868 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6869 ;;
6870esac
6871fi
6872MKDIR=$ac_cv_path_MKDIR
6873if test -n "$MKDIR"; then
6874 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6875echo "${ECHO_T}$MKDIR" >&6; }
6876else
6877 { echo "$as_me:$LINENO: result: no" >&5
6878echo "${ECHO_T}no" >&6; }
6879fi
6880
6881
6882# Extract the first word of "mv", so it can be a program name with args.
6883set dummy mv; ac_word=$2
6884{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886if test "${ac_cv_path_MV+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6888else
6889 case $MV in
6890 [\\/]* | ?:[\\/]*)
6891 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6892 ;;
6893 *)
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895for as_dir in $PATH
6896do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006900 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 +00006901 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905done
6906done
6907IFS=$as_save_IFS
6908
6909 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6910 ;;
6911esac
6912fi
6913MV=$ac_cv_path_MV
6914if test -n "$MV"; then
6915 { echo "$as_me:$LINENO: result: $MV" >&5
6916echo "${ECHO_T}$MV" >&6; }
6917else
6918 { echo "$as_me:$LINENO: result: no" >&5
6919echo "${ECHO_T}no" >&6; }
6920fi
6921
6922
6923if test -n "$ac_tool_prefix"; then
6924 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6925set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928if test "${ac_cv_prog_RANLIB+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6930else
6931 if test -n "$RANLIB"; then
6932 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6933else
6934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935for as_dir in $PATH
6936do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006940 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 +00006941 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945done
6946done
6947IFS=$as_save_IFS
6948
6949fi
6950fi
6951RANLIB=$ac_cv_prog_RANLIB
6952if test -n "$RANLIB"; then
6953 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6954echo "${ECHO_T}$RANLIB" >&6; }
6955else
6956 { echo "$as_me:$LINENO: result: no" >&5
6957echo "${ECHO_T}no" >&6; }
6958fi
6959
6960
6961fi
6962if test -z "$ac_cv_prog_RANLIB"; then
6963 ac_ct_RANLIB=$RANLIB
6964 # Extract the first word of "ranlib", so it can be a program name with args.
6965set dummy ranlib; ac_word=$2
6966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970else
6971 if test -n "$ac_ct_RANLIB"; then
6972 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6973else
6974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006980 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 +00006981 ac_cv_prog_ac_ct_RANLIB="ranlib"
6982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6984 fi
6985done
6986done
6987IFS=$as_save_IFS
6988
6989fi
6990fi
6991ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6992if test -n "$ac_ct_RANLIB"; then
6993 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6994echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6995else
6996 { echo "$as_me:$LINENO: result: no" >&5
6997echo "${ECHO_T}no" >&6; }
6998fi
6999
7000 if test "x$ac_ct_RANLIB" = x; then
7001 RANLIB=":"
7002 else
7003 case $cross_compiling:$ac_tool_warned in
7004yes:)
7005{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7006whose name does not start with the host triplet. If you think this
7007configuration is useful to you, please write to autoconf@gnu.org." >&5
7008echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7009whose name does not start with the host triplet. If you think this
7010configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7011ac_tool_warned=yes ;;
7012esac
7013 RANLIB=$ac_ct_RANLIB
7014 fi
7015else
7016 RANLIB="$ac_cv_prog_RANLIB"
7017fi
7018
7019# Extract the first word of "rm", so it can be a program name with args.
7020set dummy rm; ac_word=$2
7021{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023if test "${ac_cv_path_RM+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025else
7026 case $RM in
7027 [\\/]* | ?:[\\/]*)
7028 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7029 ;;
7030 *)
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007037 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 +00007038 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 break 2
7041 fi
7042done
7043done
7044IFS=$as_save_IFS
7045
7046 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7047 ;;
7048esac
7049fi
7050RM=$ac_cv_path_RM
7051if test -n "$RM"; then
7052 { echo "$as_me:$LINENO: result: $RM" >&5
7053echo "${ECHO_T}$RM" >&6; }
7054else
7055 { echo "$as_me:$LINENO: result: no" >&5
7056echo "${ECHO_T}no" >&6; }
7057fi
7058
7059
7060# Extract the first word of "sed", so it can be a program name with args.
7061set dummy sed; ac_word=$2
7062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7064if test "${ac_cv_path_SED+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7066else
7067 case $SED in
7068 [\\/]* | ?:[\\/]*)
7069 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7070 ;;
7071 *)
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in $PATH
7074do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007078 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 +00007079 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7082 fi
7083done
7084done
7085IFS=$as_save_IFS
7086
7087 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7088 ;;
7089esac
7090fi
7091SED=$ac_cv_path_SED
7092if test -n "$SED"; then
7093 { echo "$as_me:$LINENO: result: $SED" >&5
7094echo "${ECHO_T}$SED" >&6; }
7095else
7096 { echo "$as_me:$LINENO: result: no" >&5
7097echo "${ECHO_T}no" >&6; }
7098fi
7099
7100
7101# Extract the first word of "tar", so it can be a program name with args.
7102set dummy tar; ac_word=$2
7103{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105if test "${ac_cv_path_TAR+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7107else
7108 case $TAR in
7109 [\\/]* | ?:[\\/]*)
7110 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7111 ;;
7112 *)
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007119 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 +00007120 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7123 fi
7124done
7125done
7126IFS=$as_save_IFS
7127
7128 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7129 ;;
7130esac
7131fi
7132TAR=$ac_cv_path_TAR
7133if test -n "$TAR"; then
7134 { echo "$as_me:$LINENO: result: $TAR" >&5
7135echo "${ECHO_T}$TAR" >&6; }
7136else
7137 { echo "$as_me:$LINENO: result: no" >&5
7138echo "${ECHO_T}no" >&6; }
7139fi
7140
7141
7142# Extract the first word of "pwd", so it can be a program name with args.
7143set dummy pwd; ac_word=$2
7144{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7146if test "${ac_cv_path_BINPWD+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148else
7149 case $BINPWD in
7150 [\\/]* | ?:[\\/]*)
7151 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7152 ;;
7153 *)
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155for as_dir in $PATH
7156do
7157 IFS=$as_save_IFS
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007160 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 +00007161 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 break 2
7164 fi
7165done
7166done
7167IFS=$as_save_IFS
7168
7169 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7170 ;;
7171esac
7172fi
7173BINPWD=$ac_cv_path_BINPWD
7174if test -n "$BINPWD"; then
7175 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7176echo "${ECHO_T}$BINPWD" >&6; }
7177else
7178 { echo "$as_me:$LINENO: result: no" >&5
7179echo "${ECHO_T}no" >&6; }
7180fi
7181
7182
7183
7184# Extract the first word of "Graphviz", so it can be a program name with args.
7185set dummy Graphviz; ac_word=$2
7186{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7188if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190else
7191 case $GRAPHVIZ in
7192 [\\/]* | ?:[\\/]*)
7193 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7194 ;;
7195 *)
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007202 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 +00007203 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7206 fi
7207done
7208done
7209IFS=$as_save_IFS
7210
7211 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7212 ;;
7213esac
7214fi
7215GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7216if test -n "$GRAPHVIZ"; then
7217 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7218echo "${ECHO_T}$GRAPHVIZ" >&6; }
7219else
7220 { echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6; }
7222fi
7223
7224
7225if test "$GRAPHVIZ" != "echo Graphviz" ; then
7226
7227cat >>confdefs.h <<\_ACEOF
7228#define HAVE_GRAPHVIZ 1
7229_ACEOF
7230
Jeff Cohen28783c32007-01-12 18:22:38 +00007231 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007232 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7233 fi
7234
7235cat >>confdefs.h <<_ACEOF
7236#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7237_ACEOF
7238
7239fi
7240# Extract the first word of "dot", so it can be a program name with args.
7241set dummy dot; ac_word=$2
7242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7244if test "${ac_cv_path_DOT+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246else
7247 case $DOT in
7248 [\\/]* | ?:[\\/]*)
7249 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7250 ;;
7251 *)
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253for as_dir in $PATH
7254do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007258 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 +00007259 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263done
7264done
7265IFS=$as_save_IFS
7266
7267 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7268 ;;
7269esac
7270fi
7271DOT=$ac_cv_path_DOT
7272if test -n "$DOT"; then
7273 { echo "$as_me:$LINENO: result: $DOT" >&5
7274echo "${ECHO_T}$DOT" >&6; }
7275else
7276 { echo "$as_me:$LINENO: result: no" >&5
7277echo "${ECHO_T}no" >&6; }
7278fi
7279
7280
7281if test "$DOT" != "echo dot" ; then
7282
7283cat >>confdefs.h <<\_ACEOF
7284#define HAVE_DOT 1
7285_ACEOF
7286
Jeff Cohen28783c32007-01-12 18:22:38 +00007287 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007288 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7289 fi
7290
7291cat >>confdefs.h <<_ACEOF
7292#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7293_ACEOF
7294
7295fi
David Greenef0b9eff2009-07-09 17:16:26 +00007296# Extract the first word of "fdp", so it can be a program name with args.
7297set dummy fdp; ac_word=$2
7298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300if test "${ac_cv_path_FDP+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302else
7303 case $FDP in
7304 [\\/]* | ?:[\\/]*)
7305 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7306 ;;
7307 *)
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7318 fi
7319done
7320done
7321IFS=$as_save_IFS
7322
7323 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7324 ;;
7325esac
7326fi
7327FDP=$ac_cv_path_FDP
7328if test -n "$FDP"; then
7329 { echo "$as_me:$LINENO: result: $FDP" >&5
7330echo "${ECHO_T}$FDP" >&6; }
7331else
7332 { echo "$as_me:$LINENO: result: no" >&5
7333echo "${ECHO_T}no" >&6; }
7334fi
7335
7336
7337if test "$FDP" != "echo fdp" ; then
7338
7339cat >>confdefs.h <<\_ACEOF
7340#define HAVE_FDP 1
7341_ACEOF
7342
7343 if test "$llvm_cv_os_type" = "MingW" ; then
7344 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7345 fi
7346
7347cat >>confdefs.h <<_ACEOF
7348#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7349_ACEOF
7350
7351fi
7352# Extract the first word of "neato", so it can be a program name with args.
7353set dummy neato; ac_word=$2
7354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356if test "${ac_cv_path_NEATO+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7358else
7359 case $NEATO in
7360 [\\/]* | ?:[\\/]*)
7361 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7362 ;;
7363 *)
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365for as_dir in $PATH
7366do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7374 fi
7375done
7376done
7377IFS=$as_save_IFS
7378
7379 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7380 ;;
7381esac
7382fi
7383NEATO=$ac_cv_path_NEATO
7384if test -n "$NEATO"; then
7385 { echo "$as_me:$LINENO: result: $NEATO" >&5
7386echo "${ECHO_T}$NEATO" >&6; }
7387else
7388 { echo "$as_me:$LINENO: result: no" >&5
7389echo "${ECHO_T}no" >&6; }
7390fi
7391
7392
7393if test "$NEATO" != "echo neato" ; then
7394
7395cat >>confdefs.h <<\_ACEOF
7396#define HAVE_NEATO 1
7397_ACEOF
7398
7399 if test "$llvm_cv_os_type" = "MingW" ; then
7400 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7401 fi
7402
7403cat >>confdefs.h <<_ACEOF
7404#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7405_ACEOF
7406
7407fi
7408# Extract the first word of "twopi", so it can be a program name with args.
7409set dummy twopi; ac_word=$2
7410{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7412if test "${ac_cv_path_TWOPI+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7414else
7415 case $TWOPI in
7416 [\\/]* | ?:[\\/]*)
7417 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7418 ;;
7419 *)
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421for as_dir in $PATH
7422do
7423 IFS=$as_save_IFS
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7427 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 break 2
7430 fi
7431done
7432done
7433IFS=$as_save_IFS
7434
7435 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7436 ;;
7437esac
7438fi
7439TWOPI=$ac_cv_path_TWOPI
7440if test -n "$TWOPI"; then
7441 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7442echo "${ECHO_T}$TWOPI" >&6; }
7443else
7444 { echo "$as_me:$LINENO: result: no" >&5
7445echo "${ECHO_T}no" >&6; }
7446fi
7447
7448
7449if test "$TWOPI" != "echo twopi" ; then
7450
7451cat >>confdefs.h <<\_ACEOF
7452#define HAVE_TWOPI 1
7453_ACEOF
7454
7455 if test "$llvm_cv_os_type" = "MingW" ; then
7456 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7457 fi
7458
7459cat >>confdefs.h <<_ACEOF
7460#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7461_ACEOF
7462
7463fi
7464# Extract the first word of "circo", so it can be a program name with args.
7465set dummy circo; ac_word=$2
7466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7468if test "${ac_cv_path_CIRCO+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470else
7471 case $CIRCO in
7472 [\\/]* | ?:[\\/]*)
7473 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7474 ;;
7475 *)
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477for as_dir in $PATH
7478do
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7486 fi
7487done
7488done
7489IFS=$as_save_IFS
7490
7491 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7492 ;;
7493esac
7494fi
7495CIRCO=$ac_cv_path_CIRCO
7496if test -n "$CIRCO"; then
7497 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7498echo "${ECHO_T}$CIRCO" >&6; }
7499else
7500 { echo "$as_me:$LINENO: result: no" >&5
7501echo "${ECHO_T}no" >&6; }
7502fi
7503
7504
7505if test "$CIRCO" != "echo circo" ; then
7506
7507cat >>confdefs.h <<\_ACEOF
7508#define HAVE_CIRCO 1
7509_ACEOF
7510
7511 if test "$llvm_cv_os_type" = "MingW" ; then
7512 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7513 fi
7514
7515cat >>confdefs.h <<_ACEOF
7516#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7517_ACEOF
7518
7519fi
Reid Spencera773bd52006-08-04 18:18:08 +00007520for ac_prog in gv gsview32
7521do
7522 # Extract the first word of "$ac_prog", so it can be a program name with args.
7523set dummy $ac_prog; ac_word=$2
7524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526if test "${ac_cv_path_GV+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528else
7529 case $GV in
7530 [\\/]* | ?:[\\/]*)
7531 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7532 ;;
7533 *)
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007540 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 +00007541 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7544 fi
7545done
7546done
7547IFS=$as_save_IFS
7548
7549 ;;
7550esac
7551fi
7552GV=$ac_cv_path_GV
7553if test -n "$GV"; then
7554 { echo "$as_me:$LINENO: result: $GV" >&5
7555echo "${ECHO_T}$GV" >&6; }
7556else
7557 { echo "$as_me:$LINENO: result: no" >&5
7558echo "${ECHO_T}no" >&6; }
7559fi
7560
7561
7562 test -n "$GV" && break
7563done
7564test -n "$GV" || GV="echo gv"
7565
7566if test "$GV" != "echo gv" ; then
7567
7568cat >>confdefs.h <<\_ACEOF
7569#define HAVE_GV 1
7570_ACEOF
7571
Jeff Cohen28783c32007-01-12 18:22:38 +00007572 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007573 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7574 fi
7575
7576cat >>confdefs.h <<_ACEOF
7577#define LLVM_PATH_GV "$GV${EXEEXT}"
7578_ACEOF
7579
7580fi
7581# Extract the first word of "dotty", so it can be a program name with args.
7582set dummy dotty; ac_word=$2
7583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585if test "${ac_cv_path_DOTTY+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7587else
7588 case $DOTTY in
7589 [\\/]* | ?:[\\/]*)
7590 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7591 ;;
7592 *)
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH
7595do
7596 IFS=$as_save_IFS
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007599 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 +00007600 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 break 2
7603 fi
7604done
7605done
7606IFS=$as_save_IFS
7607
7608 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7609 ;;
7610esac
7611fi
7612DOTTY=$ac_cv_path_DOTTY
7613if test -n "$DOTTY"; then
7614 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7615echo "${ECHO_T}$DOTTY" >&6; }
7616else
7617 { echo "$as_me:$LINENO: result: no" >&5
7618echo "${ECHO_T}no" >&6; }
7619fi
7620
7621
7622if test "$DOTTY" != "echo dotty" ; then
7623
7624cat >>confdefs.h <<\_ACEOF
7625#define HAVE_DOTTY 1
7626_ACEOF
7627
Jeff Cohen28783c32007-01-12 18:22:38 +00007628 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007629 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7630 fi
7631
7632cat >>confdefs.h <<_ACEOF
7633#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7634_ACEOF
7635
7636fi
7637
7638
7639# Extract the first word of "perl", so it can be a program name with args.
7640set dummy perl; ac_word=$2
7641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7643if test "${ac_cv_path_PERL+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7645else
7646 case $PERL in
7647 [\\/]* | ?:[\\/]*)
7648 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7649 ;;
7650 *)
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652for as_dir in $PATH
7653do
7654 IFS=$as_save_IFS
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007657 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 +00007658 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 break 2
7661 fi
7662done
7663done
7664IFS=$as_save_IFS
7665
7666 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7667 ;;
7668esac
7669fi
7670PERL=$ac_cv_path_PERL
7671if test -n "$PERL"; then
7672 { echo "$as_me:$LINENO: result: $PERL" >&5
7673echo "${ECHO_T}$PERL" >&6; }
7674else
7675 { echo "$as_me:$LINENO: result: no" >&5
7676echo "${ECHO_T}no" >&6; }
7677fi
7678
7679
7680if test "$PERL" != "none"; then
7681 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7682echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7683 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7684 { echo "$as_me:$LINENO: result: yes" >&5
7685echo "${ECHO_T}yes" >&6; }
7686 else
7687 PERL=none
7688 { echo "$as_me:$LINENO: result: not found" >&5
7689echo "${ECHO_T}not found" >&6; }
7690 fi
7691fi
7692
7693
7694if test x"$PERL" = xnone; then
7695 HAVE_PERL=0
7696
Reid Spencer59807fa2007-05-17 18:11:03 +00007697 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7698echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7699 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007700else
7701 HAVE_PERL=1
7702
7703fi
7704
7705# Find a good install program. We prefer a C program (faster),
7706# so one script is as good as another. But avoid the broken or
7707# incompatible versions:
7708# SysV /etc/install, /usr/sbin/install
7709# SunOS /usr/etc/install
7710# IRIX /sbin/install
7711# AIX /bin/install
7712# AmigaOS /C/install, which installs bootblocks on floppy discs
7713# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7714# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7715# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7716# OS/2's system install, which has a completely different semantic
7717# ./install, which can be erroneously created by make from ./install.sh.
7718{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7719echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7720if test -z "$INSTALL"; then
7721if test "${ac_cv_path_install+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7723else
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
7729 # Account for people who put trailing slashes in PATH elements.
7730case $as_dir/ in
7731 ./ | .// | /cC/* | \
7732 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7733 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7734 /usr/ucb/* ) ;;
7735 *)
7736 # OSF1 and SCO ODT 3.0 have their own names for install.
7737 # Don't use installbsd from OSF since it installs stuff as root
7738 # by default.
7739 for ac_prog in ginstall scoinst install; do
7740 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007741 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 +00007742 if test $ac_prog = install &&
7743 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7744 # AIX install. It has an incompatible calling convention.
7745 :
7746 elif test $ac_prog = install &&
7747 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7748 # program-specific install script used by HP pwplus--don't use.
7749 :
7750 else
7751 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7752 break 3
7753 fi
7754 fi
7755 done
7756 done
7757 ;;
7758esac
7759done
7760IFS=$as_save_IFS
7761
7762
7763fi
7764 if test "${ac_cv_path_install+set}" = set; then
7765 INSTALL=$ac_cv_path_install
7766 else
7767 # As a last resort, use the slow shell script. Don't cache a
7768 # value for INSTALL within a source directory, because that will
7769 # break other packages using the cache if that directory is
7770 # removed, or if the value is a relative name.
7771 INSTALL=$ac_install_sh
7772 fi
7773fi
7774{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7775echo "${ECHO_T}$INSTALL" >&6; }
7776
7777# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7778# It thinks the first close brace ends the variable substitution.
7779test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7780
7781test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7782
7783test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7784
7785
7786# Extract the first word of "bzip2", so it can be a program name with args.
7787set dummy bzip2; ac_word=$2
7788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7790if test "${ac_cv_path_BZIP2+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792else
7793 case $BZIP2 in
7794 [\\/]* | ?:[\\/]*)
7795 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7796 ;;
7797 *)
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799for as_dir in $PATH
7800do
7801 IFS=$as_save_IFS
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007804 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 +00007805 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 break 2
7808 fi
7809done
7810done
7811IFS=$as_save_IFS
7812
Reid Spencera773bd52006-08-04 18:18:08 +00007813 ;;
7814esac
7815fi
7816BZIP2=$ac_cv_path_BZIP2
7817if test -n "$BZIP2"; then
7818 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7819echo "${ECHO_T}$BZIP2" >&6; }
7820else
7821 { echo "$as_me:$LINENO: result: no" >&5
7822echo "${ECHO_T}no" >&6; }
7823fi
7824
7825
7826# Extract the first word of "doxygen", so it can be a program name with args.
7827set dummy doxygen; ac_word=$2
7828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7830if test "${ac_cv_path_DOXYGEN+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7832else
7833 case $DOXYGEN in
7834 [\\/]* | ?:[\\/]*)
7835 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7836 ;;
7837 *)
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839for as_dir in $PATH
7840do
7841 IFS=$as_save_IFS
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007844 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 +00007845 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 break 2
7848 fi
7849done
7850done
7851IFS=$as_save_IFS
7852
Reid Spencera773bd52006-08-04 18:18:08 +00007853 ;;
7854esac
7855fi
7856DOXYGEN=$ac_cv_path_DOXYGEN
7857if test -n "$DOXYGEN"; then
7858 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7859echo "${ECHO_T}$DOXYGEN" >&6; }
7860else
7861 { echo "$as_me:$LINENO: result: no" >&5
7862echo "${ECHO_T}no" >&6; }
7863fi
7864
7865
Reid Spencera773bd52006-08-04 18:18:08 +00007866# Extract the first word of "groff", so it can be a program name with args.
7867set dummy groff; ac_word=$2
7868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7870if test "${ac_cv_path_GROFF+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872else
7873 case $GROFF in
7874 [\\/]* | ?:[\\/]*)
7875 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7876 ;;
7877 *)
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879for as_dir in $PATH
7880do
7881 IFS=$as_save_IFS
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007884 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 +00007885 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 break 2
7888 fi
7889done
7890done
7891IFS=$as_save_IFS
7892
Reid Spencera773bd52006-08-04 18:18:08 +00007893 ;;
7894esac
7895fi
7896GROFF=$ac_cv_path_GROFF
7897if test -n "$GROFF"; then
7898 { echo "$as_me:$LINENO: result: $GROFF" >&5
7899echo "${ECHO_T}$GROFF" >&6; }
7900else
7901 { echo "$as_me:$LINENO: result: no" >&5
7902echo "${ECHO_T}no" >&6; }
7903fi
7904
7905
7906# Extract the first word of "gzip", so it can be a program name with args.
7907set dummy gzip; ac_word=$2
7908{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7910if test "${ac_cv_path_GZIP+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913 case $GZIP in
7914 [\\/]* | ?:[\\/]*)
7915 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7916 ;;
7917 *)
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919for as_dir in $PATH
7920do
7921 IFS=$as_save_IFS
7922 test -z "$as_dir" && as_dir=.
7923 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007924 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 +00007925 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 break 2
7928 fi
7929done
7930done
7931IFS=$as_save_IFS
7932
Reid Spencera773bd52006-08-04 18:18:08 +00007933 ;;
7934esac
7935fi
7936GZIP=$ac_cv_path_GZIP
7937if test -n "$GZIP"; then
7938 { echo "$as_me:$LINENO: result: $GZIP" >&5
7939echo "${ECHO_T}$GZIP" >&6; }
7940else
7941 { echo "$as_me:$LINENO: result: no" >&5
7942echo "${ECHO_T}no" >&6; }
7943fi
7944
7945
7946# Extract the first word of "pod2html", so it can be a program name with args.
7947set dummy pod2html; ac_word=$2
7948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7950if test "${ac_cv_path_POD2HTML+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7952else
7953 case $POD2HTML in
7954 [\\/]* | ?:[\\/]*)
7955 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7956 ;;
7957 *)
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007964 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 +00007965 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7968 fi
7969done
7970done
7971IFS=$as_save_IFS
7972
Reid Spencera773bd52006-08-04 18:18:08 +00007973 ;;
7974esac
7975fi
7976POD2HTML=$ac_cv_path_POD2HTML
7977if test -n "$POD2HTML"; then
7978 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7979echo "${ECHO_T}$POD2HTML" >&6; }
7980else
7981 { echo "$as_me:$LINENO: result: no" >&5
7982echo "${ECHO_T}no" >&6; }
7983fi
7984
7985
7986# Extract the first word of "pod2man", so it can be a program name with args.
7987set dummy pod2man; ac_word=$2
7988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7990if test "${ac_cv_path_POD2MAN+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992else
7993 case $POD2MAN in
7994 [\\/]* | ?:[\\/]*)
7995 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7996 ;;
7997 *)
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001 IFS=$as_save_IFS
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008004 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 +00008005 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 break 2
8008 fi
8009done
8010done
8011IFS=$as_save_IFS
8012
Reid Spencera773bd52006-08-04 18:18:08 +00008013 ;;
8014esac
8015fi
8016POD2MAN=$ac_cv_path_POD2MAN
8017if test -n "$POD2MAN"; then
8018 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8019echo "${ECHO_T}$POD2MAN" >&6; }
8020else
8021 { echo "$as_me:$LINENO: result: no" >&5
8022echo "${ECHO_T}no" >&6; }
8023fi
8024
8025
8026# Extract the first word of "runtest", so it can be a program name with args.
8027set dummy runtest; ac_word=$2
8028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8030if test "${ac_cv_path_RUNTEST+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032else
8033 case $RUNTEST in
8034 [\\/]* | ?:[\\/]*)
8035 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8036 ;;
8037 *)
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008045 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8048 fi
8049done
8050done
8051IFS=$as_save_IFS
8052
Reid Spencera773bd52006-08-04 18:18:08 +00008053 ;;
8054esac
8055fi
8056RUNTEST=$ac_cv_path_RUNTEST
8057if test -n "$RUNTEST"; then
8058 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8059echo "${ECHO_T}$RUNTEST" >&6; }
8060else
8061 { echo "$as_me:$LINENO: result: no" >&5
8062echo "${ECHO_T}no" >&6; }
8063fi
8064
8065
8066
8067no_itcl=true
8068{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8069echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8070
8071# Check whether --with-tclinclude was given.
8072if test "${with_tclinclude+set}" = set; then
8073 withval=$with_tclinclude; with_tclinclude=${withval}
8074else
8075 with_tclinclude=''
8076fi
8077
8078if test "${ac_cv_path_tclsh+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8080else
8081
8082if test x"${with_tclinclude}" != x ; then
8083 if test -f ${with_tclinclude}/tclsh ; then
8084 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8085 elif test -f ${with_tclinclude}/src/tclsh ; then
8086 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8087 else
8088 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8089echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8090 { (exit 1); exit 1; }; }
8091 fi
8092fi
8093
8094if test x"${ac_cv_path_tclsh}" = x ; then
8095 { echo "$as_me:$LINENO: result: none" >&5
8096echo "${ECHO_T}none" >&6; }
8097 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
8098do
8099 # Extract the first word of "$ac_prog", so it can be a program name with args.
8100set dummy $ac_prog; ac_word=$2
8101{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8103if test "${ac_cv_path_TCLSH+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105else
8106 case $TCLSH in
8107 [\\/]* | ?:[\\/]*)
8108 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8109 ;;
8110 *)
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112for as_dir in $PATH
8113do
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008117 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 +00008118 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 break 2
8121 fi
8122done
8123done
8124IFS=$as_save_IFS
8125
8126 ;;
8127esac
8128fi
8129TCLSH=$ac_cv_path_TCLSH
8130if test -n "$TCLSH"; then
8131 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8132echo "${ECHO_T}$TCLSH" >&6; }
8133else
8134 { echo "$as_me:$LINENO: result: no" >&5
8135echo "${ECHO_T}no" >&6; }
8136fi
8137
8138
8139 test -n "$TCLSH" && break
8140done
8141
8142 if test x"${TCLSH}" = x ; then
8143 ac_cv_path_tclsh='';
8144 else
8145 ac_cv_path_tclsh="${TCLSH}";
8146 fi
8147else
8148 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8149echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8150 TCLSH="${ac_cv_path_tclsh}"
8151
8152fi
8153
8154fi
8155
8156# Extract the first word of "zip", so it can be a program name with args.
8157set dummy zip; ac_word=$2
8158{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8160if test "${ac_cv_path_ZIP+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8162else
8163 case $ZIP in
8164 [\\/]* | ?:[\\/]*)
8165 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8166 ;;
8167 *)
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169for as_dir in $PATH
8170do
8171 IFS=$as_save_IFS
8172 test -z "$as_dir" && as_dir=.
8173 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008174 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 +00008175 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8177 break 2
8178 fi
8179done
8180done
8181IFS=$as_save_IFS
8182
Reid Spencera773bd52006-08-04 18:18:08 +00008183 ;;
8184esac
8185fi
8186ZIP=$ac_cv_path_ZIP
8187if test -n "$ZIP"; then
8188 { echo "$as_me:$LINENO: result: $ZIP" >&5
8189echo "${ECHO_T}$ZIP" >&6; }
8190else
8191 { echo "$as_me:$LINENO: result: no" >&5
8192echo "${ECHO_T}no" >&6; }
8193fi
8194
8195
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008196for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008197do
8198 # Extract the first word of "$ac_prog", so it can be a program name with args.
8199set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8202if test "${ac_cv_path_OCAMLC+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8204else
8205 case $OCAMLC in
8206 [\\/]* | ?:[\\/]*)
8207 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8208 ;;
8209 *)
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211for as_dir in $PATH
8212do
8213 IFS=$as_save_IFS
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008216 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 +00008217 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8219 break 2
8220 fi
8221done
8222done
8223IFS=$as_save_IFS
8224
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008225 ;;
8226esac
8227fi
8228OCAMLC=$ac_cv_path_OCAMLC
8229if test -n "$OCAMLC"; then
8230 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8231echo "${ECHO_T}$OCAMLC" >&6; }
8232else
8233 { echo "$as_me:$LINENO: result: no" >&5
8234echo "${ECHO_T}no" >&6; }
8235fi
8236
8237
Gordon Henriksene7072162008-03-07 18:20:01 +00008238 test -n "$OCAMLC" && break
8239done
8240
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008241for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008242do
8243 # Extract the first word of "$ac_prog", so it can be a program name with args.
8244set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008245{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8247if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249else
8250 case $OCAMLOPT in
8251 [\\/]* | ?:[\\/]*)
8252 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8253 ;;
8254 *)
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256for as_dir in $PATH
8257do
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008261 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 +00008262 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 break 2
8265 fi
8266done
8267done
8268IFS=$as_save_IFS
8269
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008270 ;;
8271esac
8272fi
8273OCAMLOPT=$ac_cv_path_OCAMLOPT
8274if test -n "$OCAMLOPT"; then
8275 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8276echo "${ECHO_T}$OCAMLOPT" >&6; }
8277else
8278 { echo "$as_me:$LINENO: result: no" >&5
8279echo "${ECHO_T}no" >&6; }
8280fi
8281
8282
Gordon Henriksene7072162008-03-07 18:20:01 +00008283 test -n "$OCAMLOPT" && break
8284done
8285
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008286for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008287do
8288 # Extract the first word of "$ac_prog", so it can be a program name with args.
8289set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008290{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8292if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294else
8295 case $OCAMLDEP in
8296 [\\/]* | ?:[\\/]*)
8297 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8298 ;;
8299 *)
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301for as_dir in $PATH
8302do
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008306 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 +00008307 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8310 fi
8311done
8312done
8313IFS=$as_save_IFS
8314
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008315 ;;
8316esac
8317fi
8318OCAMLDEP=$ac_cv_path_OCAMLDEP
8319if test -n "$OCAMLDEP"; then
8320 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8321echo "${ECHO_T}$OCAMLDEP" >&6; }
8322else
8323 { echo "$as_me:$LINENO: result: no" >&5
8324echo "${ECHO_T}no" >&6; }
8325fi
8326
8327
Gordon Henriksene7072162008-03-07 18:20:01 +00008328 test -n "$OCAMLDEP" && break
8329done
8330
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008331for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008332do
8333 # Extract the first word of "$ac_prog", so it can be a program name with args.
8334set dummy $ac_prog; ac_word=$2
8335{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8337if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8339else
8340 case $OCAMLDOC in
8341 [\\/]* | ?:[\\/]*)
8342 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8343 ;;
8344 *)
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346for as_dir in $PATH
8347do
8348 IFS=$as_save_IFS
8349 test -z "$as_dir" && as_dir=.
8350 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008351 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 +00008352 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8354 break 2
8355 fi
8356done
8357done
8358IFS=$as_save_IFS
8359
8360 ;;
8361esac
8362fi
8363OCAMLDOC=$ac_cv_path_OCAMLDOC
8364if test -n "$OCAMLDOC"; then
8365 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8366echo "${ECHO_T}$OCAMLDOC" >&6; }
8367else
8368 { echo "$as_me:$LINENO: result: no" >&5
8369echo "${ECHO_T}no" >&6; }
8370fi
8371
8372
8373 test -n "$OCAMLDOC" && break
8374done
8375
Torok Edwincc499a42008-10-22 09:56:27 +00008376for ac_prog in gas as
8377do
8378 # Extract the first word of "$ac_prog", so it can be a program name with args.
8379set dummy $ac_prog; ac_word=$2
8380{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8382if test "${ac_cv_path_GAS+set}" = set; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8384else
8385 case $GAS in
8386 [\\/]* | ?:[\\/]*)
8387 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8388 ;;
8389 *)
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391for as_dir in $PATH
8392do
8393 IFS=$as_save_IFS
8394 test -z "$as_dir" && as_dir=.
8395 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008396 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 +00008397 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8399 break 2
8400 fi
8401done
8402done
8403IFS=$as_save_IFS
8404
8405 ;;
8406esac
8407fi
8408GAS=$ac_cv_path_GAS
8409if test -n "$GAS"; then
8410 { echo "$as_me:$LINENO: result: $GAS" >&5
8411echo "${ECHO_T}$GAS" >&6; }
8412else
8413 { echo "$as_me:$LINENO: result: no" >&5
8414echo "${ECHO_T}no" >&6; }
8415fi
8416
8417
8418 test -n "$GAS" && break
8419done
8420
Reid Spencera773bd52006-08-04 18:18:08 +00008421
8422{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8423echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8424if test "${llvm_cv_link_use_r+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8426else
8427 ac_ext=c
8428ac_cpp='$CPP $CPPFLAGS'
8429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8431ac_compiler_gnu=$ac_cv_c_compiler_gnu
8432
8433 oldcflags="$CFLAGS"
8434 CFLAGS="$CFLAGS -Wl,-R."
8435 cat >conftest.$ac_ext <<_ACEOF
8436/* confdefs.h. */
8437_ACEOF
8438cat confdefs.h >>conftest.$ac_ext
8439cat >>conftest.$ac_ext <<_ACEOF
8440/* end confdefs.h. */
8441
8442int
8443main ()
8444{
8445int main() { return 0; }
8446 ;
8447 return 0;
8448}
8449_ACEOF
8450rm -f conftest.$ac_objext conftest$ac_exeext
8451if { (ac_try="$ac_link"
8452case "(($ac_try" in
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8455esac
8456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457 (eval "$ac_link") 2>conftest.er1
8458 ac_status=$?
8459 grep -v '^ *+' conftest.er1 >conftest.err
8460 rm -f conftest.er1
8461 cat conftest.err >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008463 (exit $ac_status); } &&
8464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8465 { (case "(($ac_try" in
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8468esac
8469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_try") 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; } &&
8474 { ac_try='test -s conftest$ac_exeext'
8475 { (case "(($ac_try" in
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8478esac
8479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_try") 2>&5
8481 ac_status=$?
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008484 llvm_cv_link_use_r=yes
8485else
8486 echo "$as_me: failed program was:" >&5
8487sed 's/^/| /' conftest.$ac_ext >&5
8488
8489 llvm_cv_link_use_r=no
8490fi
8491
Bill Wendlingebcceee2009-04-18 11:20:33 +00008492rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008493 conftest$ac_exeext conftest.$ac_ext
8494 CFLAGS="$oldcflags"
8495 ac_ext=c
8496ac_cpp='$CPP $CPPFLAGS'
8497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8499ac_compiler_gnu=$ac_cv_c_compiler_gnu
8500
8501
8502fi
8503{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8504echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8505if test "$llvm_cv_link_use_r" = yes ; then
8506
8507cat >>confdefs.h <<\_ACEOF
8508#define HAVE_LINK_R 1
8509_ACEOF
8510
8511 fi
8512
8513
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008514{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8515echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8516if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8518else
8519 ac_ext=c
8520ac_cpp='$CPP $CPPFLAGS'
8521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8523ac_compiler_gnu=$ac_cv_c_compiler_gnu
8524
8525 oldcflags="$CFLAGS"
8526 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8527 cat >conftest.$ac_ext <<_ACEOF
8528/* confdefs.h. */
8529_ACEOF
8530cat confdefs.h >>conftest.$ac_ext
8531cat >>conftest.$ac_ext <<_ACEOF
8532/* end confdefs.h. */
8533
8534int
8535main ()
8536{
8537int main() { return 0; }
8538 ;
8539 return 0;
8540}
8541_ACEOF
8542rm -f conftest.$ac_objext conftest$ac_exeext
8543if { (ac_try="$ac_link"
8544case "(($ac_try" in
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8547esac
8548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549 (eval "$ac_link") 2>conftest.er1
8550 ac_status=$?
8551 grep -v '^ *+' conftest.er1 >conftest.err
8552 rm -f conftest.er1
8553 cat conftest.err >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008555 (exit $ac_status); } &&
8556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8557 { (case "(($ac_try" in
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8560esac
8561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562 (eval "$ac_try") 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try='test -s conftest$ac_exeext'
8567 { (case "(($ac_try" in
8568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569 *) ac_try_echo=$ac_try;;
8570esac
8571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572 (eval "$ac_try") 2>&5
8573 ac_status=$?
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008576 llvm_cv_link_use_export_dynamic=yes
8577else
8578 echo "$as_me: failed program was:" >&5
8579sed 's/^/| /' conftest.$ac_ext >&5
8580
8581 llvm_cv_link_use_export_dynamic=no
8582fi
8583
Bill Wendlingebcceee2009-04-18 11:20:33 +00008584rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008585 conftest$ac_exeext conftest.$ac_ext
8586 CFLAGS="$oldcflags"
8587 ac_ext=c
8588ac_cpp='$CPP $CPPFLAGS'
8589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8591ac_compiler_gnu=$ac_cv_c_compiler_gnu
8592
8593
8594fi
8595{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8596echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8597if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8598
8599cat >>confdefs.h <<\_ACEOF
8600#define HAVE_LINK_EXPORT_DYNAMIC 1
8601_ACEOF
8602
8603 fi
8604
8605
Reid Spencera773bd52006-08-04 18:18:08 +00008606
8607
8608{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8609echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8610if test "${ac_cv_c_const+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8612else
8613 cat >conftest.$ac_ext <<_ACEOF
8614/* confdefs.h. */
8615_ACEOF
8616cat confdefs.h >>conftest.$ac_ext
8617cat >>conftest.$ac_ext <<_ACEOF
8618/* end confdefs.h. */
8619
8620int
8621main ()
8622{
8623/* FIXME: Include the comments suggested by Paul. */
8624#ifndef __cplusplus
8625 /* Ultrix mips cc rejects this. */
8626 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008627 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008628 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008629 char const *const *ccp;
8630 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008631 /* NEC SVR4.0.2 mips cc rejects this. */
8632 struct point {int x, y;};
8633 static struct point const zero = {0,0};
8634 /* AIX XL C 1.02.0.0 rejects this.
8635 It does not let you subtract one const X* pointer from another in
8636 an arm of an if-expression whose if-part is not a constant
8637 expression */
8638 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008639 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008640 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008641 ++ccp;
8642 p = (char**) ccp;
8643 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008644 { /* SCO 3.2v4 cc rejects this. */
8645 char *t;
8646 char const *s = 0 ? (char *) 0 : (char const *) 0;
8647
8648 *t++ = 0;
8649 if (s) return 0;
8650 }
8651 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8652 int x[] = {25, 17};
8653 const int *foo = &x[0];
8654 ++foo;
8655 }
8656 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8657 typedef const int *iptr;
8658 iptr p = 0;
8659 ++p;
8660 }
8661 { /* AIX XL C 1.02.0.0 rejects this saying
8662 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8663 struct s { int j; const int *ap[3]; };
8664 struct s *b; b->j = 5;
8665 }
8666 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8667 const int foo = 10;
8668 if (!foo) return 0;
8669 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008670 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008671#endif
8672
8673 ;
8674 return 0;
8675}
8676_ACEOF
8677rm -f conftest.$ac_objext
8678if { (ac_try="$ac_compile"
8679case "(($ac_try" in
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8682esac
8683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_compile") 2>conftest.er1
8685 ac_status=$?
8686 grep -v '^ *+' conftest.er1 >conftest.err
8687 rm -f conftest.er1
8688 cat conftest.err >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008690 (exit $ac_status); } &&
8691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8692 { (case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8695esac
8696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_try") 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; } &&
8701 { ac_try='test -s conftest.$ac_objext'
8702 { (case "(($ac_try" in
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8705esac
8706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_try") 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008711 ac_cv_c_const=yes
8712else
8713 echo "$as_me: failed program was:" >&5
8714sed 's/^/| /' conftest.$ac_ext >&5
8715
8716 ac_cv_c_const=no
8717fi
8718
8719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720fi
8721{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8722echo "${ECHO_T}$ac_cv_c_const" >&6; }
8723if test $ac_cv_c_const = no; then
8724
8725cat >>confdefs.h <<\_ACEOF
8726#define const
8727_ACEOF
8728
8729fi
8730
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008731
8732
8733
8734
8735
8736ac_header_dirent=no
8737for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8738 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008739{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8740echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8741if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008742 echo $ECHO_N "(cached) $ECHO_C" >&6
8743else
8744 cat >conftest.$ac_ext <<_ACEOF
8745/* confdefs.h. */
8746_ACEOF
8747cat confdefs.h >>conftest.$ac_ext
8748cat >>conftest.$ac_ext <<_ACEOF
8749/* end confdefs.h. */
8750#include <sys/types.h>
8751#include <$ac_hdr>
8752
8753int
8754main ()
8755{
8756if ((DIR *) 0)
8757return 0;
8758 ;
8759 return 0;
8760}
8761_ACEOF
8762rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008763if { (ac_try="$ac_compile"
8764case "(($ac_try" in
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8767esac
8768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008770 ac_status=$?
8771 grep -v '^ *+' conftest.er1 >conftest.err
8772 rm -f conftest.er1
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008775 (exit $ac_status); } &&
8776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8777 { (case "(($ac_try" in
8778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779 *) ac_try_echo=$ac_try;;
8780esac
8781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782 (eval "$ac_try") 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; } &&
8786 { ac_try='test -s conftest.$ac_objext'
8787 { (case "(($ac_try" in
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8790esac
8791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792 (eval "$ac_try") 2>&5
8793 ac_status=$?
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008796 eval "$as_ac_Header=yes"
8797else
8798 echo "$as_me: failed program was:" >&5
8799sed 's/^/| /' conftest.$ac_ext >&5
8800
Reid Spencera773bd52006-08-04 18:18:08 +00008801 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008802fi
Reid Spencera773bd52006-08-04 18:18:08 +00008803
8804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008805fi
Reid Spencera773bd52006-08-04 18:18:08 +00008806ac_res=`eval echo '${'$as_ac_Header'}'`
8807 { echo "$as_me:$LINENO: result: $ac_res" >&5
8808echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008809if test `eval echo '${'$as_ac_Header'}'` = yes; then
8810 cat >>confdefs.h <<_ACEOF
8811#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8812_ACEOF
8813
8814ac_header_dirent=$ac_hdr; break
8815fi
8816
8817done
8818# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8819if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008820 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8821echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008822if test "${ac_cv_search_opendir+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8824else
8825 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008826cat >conftest.$ac_ext <<_ACEOF
8827/* confdefs.h. */
8828_ACEOF
8829cat confdefs.h >>conftest.$ac_ext
8830cat >>conftest.$ac_ext <<_ACEOF
8831/* end confdefs.h. */
8832
Reid Spencera773bd52006-08-04 18:18:08 +00008833/* Override any GCC internal prototype to avoid an error.
8834 Use char because int might match the return type of a GCC
8835 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008836#ifdef __cplusplus
8837extern "C"
8838#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008839char opendir ();
8840int
8841main ()
8842{
Reid Spencera773bd52006-08-04 18:18:08 +00008843return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008844 ;
8845 return 0;
8846}
8847_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008848for ac_lib in '' dir; do
8849 if test -z "$ac_lib"; then
8850 ac_res="none required"
8851 else
8852 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008854 fi
8855 rm -f conftest.$ac_objext conftest$ac_exeext
8856if { (ac_try="$ac_link"
8857case "(($ac_try" in
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8860esac
8861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008863 ac_status=$?
8864 grep -v '^ *+' conftest.er1 >conftest.err
8865 rm -f conftest.er1
8866 cat conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008868 (exit $ac_status); } &&
8869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8870 { (case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8873esac
8874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_try") 2>&5
8876 ac_status=$?
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; } &&
8879 { ac_try='test -s conftest$ac_exeext'
8880 { (case "(($ac_try" in
8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882 *) ac_try_echo=$ac_try;;
8883esac
8884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_try") 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008889 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008890else
8891 echo "$as_me: failed program was:" >&5
8892sed 's/^/| /' conftest.$ac_ext >&5
8893
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008894
8895fi
8896
Bill Wendlingebcceee2009-04-18 11:20:33 +00008897rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008898 conftest$ac_exeext
8899 if test "${ac_cv_search_opendir+set}" = set; then
8900 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008901fi
John Criswell7a73b802003-06-30 21:59:07 +00008902done
Reid Spencera773bd52006-08-04 18:18:08 +00008903if test "${ac_cv_search_opendir+set}" = set; then
8904 :
8905else
8906 ac_cv_search_opendir=no
8907fi
8908rm conftest.$ac_ext
8909LIBS=$ac_func_search_save_LIBS
8910fi
8911{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8912echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8913ac_res=$ac_cv_search_opendir
8914if test "$ac_res" != no; then
8915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008916
Reid Spencera773bd52006-08-04 18:18:08 +00008917fi
8918
8919else
8920 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8921echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8922if test "${ac_cv_search_opendir+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924else
8925 ac_func_search_save_LIBS=$LIBS
8926cat >conftest.$ac_ext <<_ACEOF
8927/* confdefs.h. */
8928_ACEOF
8929cat confdefs.h >>conftest.$ac_ext
8930cat >>conftest.$ac_ext <<_ACEOF
8931/* end confdefs.h. */
8932
8933/* Override any GCC internal prototype to avoid an error.
8934 Use char because int might match the return type of a GCC
8935 builtin and then its argument prototype would still apply. */
8936#ifdef __cplusplus
8937extern "C"
8938#endif
8939char opendir ();
8940int
8941main ()
8942{
8943return opendir ();
8944 ;
8945 return 0;
8946}
8947_ACEOF
8948for ac_lib in '' x; do
8949 if test -z "$ac_lib"; then
8950 ac_res="none required"
8951 else
8952 ac_res=-l$ac_lib
8953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8954 fi
8955 rm -f conftest.$ac_objext conftest$ac_exeext
8956if { (ac_try="$ac_link"
8957case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8960esac
8961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_link") 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008968 (exit $ac_status); } &&
8969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8970 { (case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8973esac
8974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_try") 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest$ac_exeext'
8980 { (case "(($ac_try" in
8981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8983esac
8984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_try") 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008989 ac_cv_search_opendir=$ac_res
8990else
8991 echo "$as_me: failed program was:" >&5
8992sed 's/^/| /' conftest.$ac_ext >&5
8993
8994
8995fi
8996
Bill Wendlingebcceee2009-04-18 11:20:33 +00008997rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008998 conftest$ac_exeext
8999 if test "${ac_cv_search_opendir+set}" = set; then
9000 break
9001fi
9002done
9003if test "${ac_cv_search_opendir+set}" = set; then
9004 :
9005else
9006 ac_cv_search_opendir=no
9007fi
9008rm conftest.$ac_ext
9009LIBS=$ac_func_search_save_LIBS
9010fi
9011{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9012echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9013ac_res=$ac_cv_search_opendir
9014if test "$ac_res" != no; then
9015 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9016
9017fi
9018
9019fi
John Criswell7a73b802003-06-30 21:59:07 +00009020
9021
9022for ac_header in dlfcn.h
9023do
9024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00009025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00009029 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00009030fi
Reid Spencera773bd52006-08-04 18:18:08 +00009031ac_res=`eval echo '${'$as_ac_Header'}'`
9032 { echo "$as_me:$LINENO: result: $ac_res" >&5
9033echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00009034else
Brian Gaeke0a621332004-09-08 20:38:05 +00009035 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00009036{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009038cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009039/* confdefs.h. */
9040_ACEOF
9041cat confdefs.h >>conftest.$ac_ext
9042cat >>conftest.$ac_ext <<_ACEOF
9043/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009044$ac_includes_default
9045#include <$ac_header>
9046_ACEOF
9047rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00009048if { (ac_try="$ac_compile"
9049case "(($ac_try" in
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9052esac
9053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009055 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009056 grep -v '^ *+' conftest.er1 >conftest.err
9057 rm -f conftest.er1
9058 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009060 (exit $ac_status); } &&
9061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9062 { (case "(($ac_try" in
9063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064 *) ac_try_echo=$ac_try;;
9065esac
9066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9067 (eval "$ac_try") 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try='test -s conftest.$ac_objext'
9072 { (case "(($ac_try" in
9073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074 *) ac_try_echo=$ac_try;;
9075esac
9076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9077 (eval "$ac_try") 2>&5
9078 ac_status=$?
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009081 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00009082else
9083 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009084sed 's/^/| /' conftest.$ac_ext >&5
9085
Reid Spencera773bd52006-08-04 18:18:08 +00009086 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00009087fi
Reid Spencera773bd52006-08-04 18:18:08 +00009088
9089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9090{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9091echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009092
9093# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00009094{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9095echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009096cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009097/* confdefs.h. */
9098_ACEOF
9099cat confdefs.h >>conftest.$ac_ext
9100cat >>conftest.$ac_ext <<_ACEOF
9101/* end confdefs.h. */
9102#include <$ac_header>
9103_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009104if { (ac_try="$ac_cpp conftest.$ac_ext"
9105case "(($ac_try" in
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9108esac
9109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009111 ac_status=$?
9112 grep -v '^ *+' conftest.er1 >conftest.err
9113 rm -f conftest.er1
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009116 (exit $ac_status); } >/dev/null; then
9117 if test -s conftest.err; then
9118 ac_cpp_err=$ac_c_preproc_warn_flag
9119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9120 else
9121 ac_cpp_err=
9122 fi
9123else
9124 ac_cpp_err=yes
9125fi
9126if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009127 ac_header_preproc=yes
9128else
9129 echo "$as_me: failed program was:" >&5
9130sed 's/^/| /' conftest.$ac_ext >&5
9131
9132 ac_header_preproc=no
9133fi
Reid Spencera773bd52006-08-04 18:18:08 +00009134
Brian Gaeke0a621332004-09-08 20:38:05 +00009135rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009136{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9137echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009138
9139# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9141 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9146 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009147 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009148 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9152echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9156echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009161 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009162## ----------------------------------- ##
9163## Report this to llvmbugs@cs.uiuc.edu ##
9164## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009165_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009166 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009167 ;;
9168esac
Reid Spencera773bd52006-08-04 18:18:08 +00009169{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009172 echo $ECHO_N "(cached) $ECHO_C" >&6
9173else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009174 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009175fi
Reid Spencera773bd52006-08-04 18:18:08 +00009176ac_res=`eval echo '${'$as_ac_Header'}'`
9177 { echo "$as_me:$LINENO: result: $ac_res" >&5
9178echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009179
9180fi
John Criswell7a73b802003-06-30 21:59:07 +00009181if test `eval echo '${'$as_ac_Header'}'` = yes; then
9182 cat >>confdefs.h <<_ACEOF
9183#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9184_ACEOF
9185
9186fi
9187
9188done
9189
Reid Spencera773bd52006-08-04 18:18:08 +00009190# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009191if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009192 enableval=$enable_ltdl_install;
9193fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009194
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009195
Bill Wendlingebcceee2009-04-18 11:20:33 +00009196
9197
9198if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009199 INSTALL_LTDL_TRUE=
9200 INSTALL_LTDL_FALSE='#'
9201else
9202 INSTALL_LTDL_TRUE='#'
9203 INSTALL_LTDL_FALSE=
9204fi
9205
Bill Wendlingebcceee2009-04-18 11:20:33 +00009206
9207
9208if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009209 CONVENIENCE_LTDL_TRUE=
9210 CONVENIENCE_LTDL_FALSE='#'
9211else
9212 CONVENIENCE_LTDL_TRUE='#'
9213 CONVENIENCE_LTDL_FALSE=
9214fi
9215
9216
Reid Spencera773bd52006-08-04 18:18:08 +00009217{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9218echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009219library_names_spec=
9220libname_spec='lib$name'
9221soname_spec=
9222shrext_cmds=".so"
9223postinstall_cmds=
9224postuninstall_cmds=
9225finish_cmds=
9226finish_eval=
9227shlibpath_var=
9228shlibpath_overrides_runpath=unknown
9229version_type=none
9230dynamic_linker="$host_os ld.so"
9231sys_lib_dlsearch_path_spec="/lib /usr/lib"
9232if test "$GCC" = yes; then
9233 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9234 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9235 # if the path contains ";" then we assume it to be the separator
9236 # otherwise default to the standard path separator (i.e. ":") - it is
9237 # assumed that no part of a normal pathname contains ";" but that should
9238 # okay in the real world where ";" in dirpaths is itself problematic.
9239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9240 else
9241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9242 fi
9243else
9244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9245fi
9246need_lib_prefix=unknown
9247hardcode_into_libs=no
9248
9249# when you set need_version to no, make sure it does not cause -set_version
9250# flags to be left without arguments
9251need_version=unknown
9252
9253case $host_os in
9254aix3*)
9255 version_type=linux
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9257 shlibpath_var=LIBPATH
9258
9259 # AIX 3 has no versioning support, so we append a major version to the name.
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 ;;
9262
9263aix4* | aix5*)
9264 version_type=linux
9265 need_lib_prefix=no
9266 need_version=no
9267 hardcode_into_libs=yes
9268 if test "$host_cpu" = ia64; then
9269 # AIX 5 supports IA64
9270 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9271 shlibpath_var=LD_LIBRARY_PATH
9272 else
9273 # With GCC up to 2.95.x, collect2 would create an import file
9274 # for dependence libraries. The import file would start with
9275 # the line `#! .'. This would cause the generated library to
9276 # depend on `.', always an invalid library. This was fixed in
9277 # development snapshots of GCC prior to 3.0.
9278 case $host_os in
9279 aix4 | aix4.[01] | aix4.[01].*)
9280 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9281 echo ' yes '
9282 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9283 :
9284 else
9285 can_build_shared=no
9286 fi
9287 ;;
9288 esac
9289 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9290 # soname into executable. Probably we can add versioning support to
9291 # collect2, so additional links can be useful in future.
9292 if test "$aix_use_runtimelinking" = yes; then
9293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9294 # instead of lib<name>.a to let people know that these are not
9295 # typical AIX shared libraries.
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9297 else
9298 # We preserve .a as extension for shared libraries through AIX4.2
9299 # and later when we are not doing run time linking.
9300 library_names_spec='${libname}${release}.a $libname.a'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 fi
9303 shlibpath_var=LIBPATH
9304 fi
9305 ;;
9306
9307amigaos*)
9308 library_names_spec='$libname.ixlibrary $libname.a'
9309 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9310 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'
9311 ;;
9312
9313beos*)
9314 library_names_spec='${libname}${shared_ext}'
9315 dynamic_linker="$host_os ld.so"
9316 shlibpath_var=LIBRARY_PATH
9317 ;;
9318
9319bsdi[45]*)
9320 version_type=linux
9321 need_version=no
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9325 shlibpath_var=LD_LIBRARY_PATH
9326 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9327 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9328 # the default ld.so.conf also contains /usr/contrib/lib and
9329 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9330 # libtool to hard-code these into programs
9331 ;;
9332
9333cygwin* | mingw* | pw32*)
9334 version_type=windows
9335 shrext_cmds=".dll"
9336 need_version=no
9337 need_lib_prefix=no
9338
9339 case $GCC,$host_os in
9340 yes,cygwin* | yes,mingw* | yes,pw32*)
9341 library_names_spec='$libname.dll.a'
9342 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9343 postinstall_cmds='base_file=`basename \${file}`~
9344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9345 dldir=$destdir/`dirname \$dlpath`~
9346 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009347 $install_prog $dir/$dlname \$dldir/$dlname~
9348 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9350 dlpath=$dir/\$dldll~
9351 $rm \$dlpath'
9352 shlibpath_overrides_runpath=yes
9353
9354 case $host_os in
9355 cygwin*)
9356 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9357 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9358 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9359 ;;
9360 mingw*)
9361 # MinGW DLLs use traditional 'lib' prefix
9362 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9363 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9364 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9365 # It is most probably a Windows format PATH printed by
9366 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9367 # path with ; separators, and with drive letters. We can handle the
9368 # drive letters (cygwin fileutils understands them), so leave them,
9369 # especially as we might pass files found there to a mingw objdump,
9370 # which wouldn't understand a cygwinified path. Ahh.
9371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9372 else
9373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9374 fi
9375 ;;
9376 pw32*)
9377 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009378 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 +00009379 ;;
9380 esac
9381 ;;
9382
9383 *)
9384 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9385 ;;
9386 esac
9387 dynamic_linker='Win32 ld.exe'
9388 # FIXME: first we should search . and the directory the executable is in
9389 shlibpath_var=PATH
9390 ;;
9391
9392darwin* | rhapsody*)
9393 dynamic_linker="$host_os dyld"
9394 version_type=darwin
9395 need_lib_prefix=no
9396 need_version=no
9397 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9398 soname_spec='${libname}${release}${major}$shared_ext'
9399 shlibpath_overrides_runpath=yes
9400 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009401 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009402 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9403 if test "$GCC" = yes; then
9404 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"`
9405 else
9406 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9407 fi
9408 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9409 ;;
9410
9411dgux*)
9412 version_type=linux
9413 need_lib_prefix=no
9414 need_version=no
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9416 soname_spec='${libname}${release}${shared_ext}$major'
9417 shlibpath_var=LD_LIBRARY_PATH
9418 ;;
9419
9420freebsd1*)
9421 dynamic_linker=no
9422 ;;
9423
9424kfreebsd*-gnu)
9425 version_type=linux
9426 need_lib_prefix=no
9427 need_version=no
9428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9429 soname_spec='${libname}${release}${shared_ext}$major'
9430 shlibpath_var=LD_LIBRARY_PATH
9431 shlibpath_overrides_runpath=no
9432 hardcode_into_libs=yes
9433 dynamic_linker='GNU ld.so'
9434 ;;
9435
Reid Spencera773bd52006-08-04 18:18:08 +00009436freebsd* | dragonfly*)
9437 # DragonFly does not have aout. When/if they implement a new
9438 # versioning mechanism, adjust this.
9439 if test -x /usr/bin/objformat; then
9440 objformat=`/usr/bin/objformat`
9441 else
9442 case $host_os in
9443 freebsd[123]*) objformat=aout ;;
9444 *) objformat=elf ;;
9445 esac
9446 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009447 version_type=freebsd-$objformat
9448 case $version_type in
9449 freebsd-elf*)
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9451 need_version=no
9452 need_lib_prefix=no
9453 ;;
9454 freebsd-*)
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9456 need_version=yes
9457 ;;
9458 esac
9459 shlibpath_var=LD_LIBRARY_PATH
9460 case $host_os in
9461 freebsd2*)
9462 shlibpath_overrides_runpath=yes
9463 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009464 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009465 shlibpath_overrides_runpath=yes
9466 hardcode_into_libs=yes
9467 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009468 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9469 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009470 shlibpath_overrides_runpath=no
9471 hardcode_into_libs=yes
9472 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009473 freebsd*) # from 4.6 on
9474 shlibpath_overrides_runpath=yes
9475 hardcode_into_libs=yes
9476 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009477 esac
9478 ;;
9479
9480gnu*)
9481 version_type=linux
9482 need_lib_prefix=no
9483 need_version=no
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 shlibpath_var=LD_LIBRARY_PATH
9487 hardcode_into_libs=yes
9488 ;;
9489
9490hpux9* | hpux10* | hpux11*)
9491 # Give a soname corresponding to the major version so that dld.sl refuses to
9492 # link against other versions.
9493 version_type=sunos
9494 need_lib_prefix=no
9495 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009496 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009497 ia64*)
9498 shrext_cmds='.so'
9499 hardcode_into_libs=yes
9500 dynamic_linker="$host_os dld.so"
9501 shlibpath_var=LD_LIBRARY_PATH
9502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504 soname_spec='${libname}${release}${shared_ext}$major'
9505 if test "X$HPUX_IA64_MODE" = X32; then
9506 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9507 else
9508 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9509 fi
9510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9511 ;;
9512 hppa*64*)
9513 shrext_cmds='.sl'
9514 hardcode_into_libs=yes
9515 dynamic_linker="$host_os dld.sl"
9516 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519 soname_spec='${libname}${release}${shared_ext}$major'
9520 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9522 ;;
9523 *)
9524 shrext_cmds='.sl'
9525 dynamic_linker="$host_os dld.sl"
9526 shlibpath_var=SHLIB_PATH
9527 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529 soname_spec='${libname}${release}${shared_ext}$major'
9530 ;;
9531 esac
9532 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9533 postinstall_cmds='chmod 555 $lib'
9534 ;;
9535
Reid Spencera773bd52006-08-04 18:18:08 +00009536interix3*)
9537 version_type=linux
9538 need_lib_prefix=no
9539 need_version=no
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9543 shlibpath_var=LD_LIBRARY_PATH
9544 shlibpath_overrides_runpath=no
9545 hardcode_into_libs=yes
9546 ;;
9547
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009548irix5* | irix6* | nonstopux*)
9549 case $host_os in
9550 nonstopux*) version_type=nonstopux ;;
9551 *)
9552 if test "$lt_cv_prog_gnu_ld" = yes; then
9553 version_type=linux
9554 else
9555 version_type=irix
9556 fi ;;
9557 esac
9558 need_lib_prefix=no
9559 need_version=no
9560 soname_spec='${libname}${release}${shared_ext}$major'
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9562 case $host_os in
9563 irix5* | nonstopux*)
9564 libsuff= shlibsuff=
9565 ;;
9566 *)
9567 case $LD in # libtool.m4 will add one of these switches to LD
9568 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9569 libsuff= shlibsuff= libmagic=32-bit;;
9570 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9571 libsuff=32 shlibsuff=N32 libmagic=N32;;
9572 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9573 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9574 *) libsuff= shlibsuff= libmagic=never-match;;
9575 esac
9576 ;;
9577 esac
9578 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9579 shlibpath_overrides_runpath=no
9580 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9581 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9582 hardcode_into_libs=yes
9583 ;;
9584
9585# No shared lib support for Linux oldld, aout, or coff.
9586linux*oldld* | linux*aout* | linux*coff*)
9587 dynamic_linker=no
9588 ;;
9589
9590# This must be Linux ELF.
9591linux*)
9592 version_type=linux
9593 need_lib_prefix=no
9594 need_version=no
9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596 soname_spec='${libname}${release}${shared_ext}$major'
9597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9598 shlibpath_var=LD_LIBRARY_PATH
9599 shlibpath_overrides_runpath=no
9600 # This implies no fast_install, which is unacceptable.
9601 # Some rework will be needed to allow for fast_install
9602 # before this can be enabled.
9603 hardcode_into_libs=yes
9604
9605 # Append ld.so.conf contents to the search path
9606 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009607 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 +00009608 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9609 fi
9610
9611 # We used to test for /lib/ld.so.1 and disable shared libraries on
9612 # powerpc, because MkLinux only supported shared libraries with the
9613 # GNU dynamic linker. Since this was broken with cross compilers,
9614 # most powerpc-linux boxes support dynamic linking these days and
9615 # people can always --disable-shared, the test was removed, and we
9616 # assume the GNU/Linux dynamic linker is in use.
9617 dynamic_linker='GNU/Linux ld.so'
9618 ;;
9619
9620knetbsd*-gnu)
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 shlibpath_var=LD_LIBRARY_PATH
9627 shlibpath_overrides_runpath=no
9628 hardcode_into_libs=yes
9629 dynamic_linker='GNU ld.so'
9630 ;;
9631
9632netbsd*)
9633 version_type=sunos
9634 need_lib_prefix=no
9635 need_version=no
9636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9639 dynamic_linker='NetBSD (a.out) ld.so'
9640 else
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9642 soname_spec='${libname}${release}${shared_ext}$major'
9643 dynamic_linker='NetBSD ld.elf_so'
9644 fi
9645 shlibpath_var=LD_LIBRARY_PATH
9646 shlibpath_overrides_runpath=yes
9647 hardcode_into_libs=yes
9648 ;;
9649
9650newsos6)
9651 version_type=linux
9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653 shlibpath_var=LD_LIBRARY_PATH
9654 shlibpath_overrides_runpath=yes
9655 ;;
9656
9657nto-qnx*)
9658 version_type=linux
9659 need_lib_prefix=no
9660 need_version=no
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662 soname_spec='${libname}${release}${shared_ext}$major'
9663 shlibpath_var=LD_LIBRARY_PATH
9664 shlibpath_overrides_runpath=yes
9665 ;;
9666
9667openbsd*)
9668 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009669 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009670 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009671 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9672 case $host_os in
9673 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9674 *) need_version=no ;;
9675 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9678 shlibpath_var=LD_LIBRARY_PATH
9679 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9680 case $host_os in
9681 openbsd2.[89] | openbsd2.[89].*)
9682 shlibpath_overrides_runpath=no
9683 ;;
9684 *)
9685 shlibpath_overrides_runpath=yes
9686 ;;
9687 esac
9688 else
9689 shlibpath_overrides_runpath=yes
9690 fi
9691 ;;
9692
9693os2*)
9694 libname_spec='$name'
9695 shrext_cmds=".dll"
9696 need_lib_prefix=no
9697 library_names_spec='$libname${shared_ext} $libname.a'
9698 dynamic_linker='OS/2 ld.exe'
9699 shlibpath_var=LIBPATH
9700 ;;
9701
9702osf3* | osf4* | osf5*)
9703 version_type=osf
9704 need_lib_prefix=no
9705 need_version=no
9706 soname_spec='${libname}${release}${shared_ext}$major'
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708 shlibpath_var=LD_LIBRARY_PATH
9709 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9710 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9711 ;;
9712
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009713solaris*)
9714 version_type=linux
9715 need_lib_prefix=no
9716 need_version=no
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9718 soname_spec='${libname}${release}${shared_ext}$major'
9719 shlibpath_var=LD_LIBRARY_PATH
9720 shlibpath_overrides_runpath=yes
9721 hardcode_into_libs=yes
9722 # ldd complains unless libraries are executable
9723 postinstall_cmds='chmod +x $lib'
9724 ;;
9725
9726sunos4*)
9727 version_type=sunos
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9729 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9730 shlibpath_var=LD_LIBRARY_PATH
9731 shlibpath_overrides_runpath=yes
9732 if test "$with_gnu_ld" = yes; then
9733 need_lib_prefix=no
9734 fi
9735 need_version=yes
9736 ;;
9737
Reid Spencera773bd52006-08-04 18:18:08 +00009738sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009739 version_type=linux
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741 soname_spec='${libname}${release}${shared_ext}$major'
9742 shlibpath_var=LD_LIBRARY_PATH
9743 case $host_vendor in
9744 sni)
9745 shlibpath_overrides_runpath=no
9746 need_lib_prefix=no
9747 export_dynamic_flag_spec='${wl}-Blargedynsym'
9748 runpath_var=LD_RUN_PATH
9749 ;;
9750 siemens)
9751 need_lib_prefix=no
9752 ;;
9753 motorola)
9754 need_lib_prefix=no
9755 need_version=no
9756 shlibpath_overrides_runpath=no
9757 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9758 ;;
9759 esac
9760 ;;
9761
9762sysv4*MP*)
9763 if test -d /usr/nec ;then
9764 version_type=linux
9765 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9766 soname_spec='$libname${shared_ext}.$major'
9767 shlibpath_var=LD_LIBRARY_PATH
9768 fi
9769 ;;
9770
Reid Spencera773bd52006-08-04 18:18:08 +00009771sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9772 version_type=freebsd-elf
9773 need_lib_prefix=no
9774 need_version=no
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9776 soname_spec='${libname}${release}${shared_ext}$major'
9777 shlibpath_var=LD_LIBRARY_PATH
9778 hardcode_into_libs=yes
9779 if test "$with_gnu_ld" = yes; then
9780 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9781 shlibpath_overrides_runpath=no
9782 else
9783 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9784 shlibpath_overrides_runpath=yes
9785 case $host_os in
9786 sco3.2v5*)
9787 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9788 ;;
9789 esac
9790 fi
9791 sys_lib_dlsearch_path_spec='/usr/lib'
9792 ;;
9793
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009794uts4*)
9795 version_type=linux
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797 soname_spec='${libname}${release}${shared_ext}$major'
9798 shlibpath_var=LD_LIBRARY_PATH
9799 ;;
9800
9801*)
9802 dynamic_linker=no
9803 ;;
9804esac
Reid Spencera773bd52006-08-04 18:18:08 +00009805{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9806echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009807test "$dynamic_linker" = no && can_build_shared=no
9808
Reid Spencera773bd52006-08-04 18:18:08 +00009809variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9810if test "$GCC" = yes; then
9811 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9812fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009813
Reid Spencera773bd52006-08-04 18:18:08 +00009814
9815{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9816echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009817if test "${libltdl_cv_shlibext+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9819else
9820
9821module=yes
9822eval libltdl_cv_shlibext=$shrext_cmds
9823
9824fi
Reid Spencera773bd52006-08-04 18:18:08 +00009825{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9826echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009827if test -n "$libltdl_cv_shlibext"; then
9828
9829cat >>confdefs.h <<_ACEOF
9830#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9831_ACEOF
9832
9833fi
9834
9835
Reid Spencera773bd52006-08-04 18:18:08 +00009836{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9837echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838if test "${libltdl_cv_shlibpath_var+set}" = set; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9840else
9841 libltdl_cv_shlibpath_var="$shlibpath_var"
9842fi
Reid Spencera773bd52006-08-04 18:18:08 +00009843{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9844echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009845if test -n "$libltdl_cv_shlibpath_var"; then
9846
9847cat >>confdefs.h <<_ACEOF
9848#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9849_ACEOF
9850
9851fi
9852
9853
Reid Spencera773bd52006-08-04 18:18:08 +00009854{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9855echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009856if test "${libltdl_cv_sys_search_path+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9858else
9859 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9860fi
Reid Spencera773bd52006-08-04 18:18:08 +00009861{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9862echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009863if test -n "$libltdl_cv_sys_search_path"; then
9864 sys_search_path=
9865 for dir in $libltdl_cv_sys_search_path; do
9866 if test -z "$sys_search_path"; then
9867 sys_search_path="$dir"
9868 else
9869 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9870 fi
9871 done
9872
9873cat >>confdefs.h <<_ACEOF
9874#define LTDL_SYSSEARCHPATH "$sys_search_path"
9875_ACEOF
9876
9877fi
9878
Reid Spencera773bd52006-08-04 18:18:08 +00009879{ echo "$as_me:$LINENO: checking for objdir" >&5
9880echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009881if test "${libltdl_cv_objdir+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9883else
9884 libltdl_cv_objdir="$objdir"
9885 if test -n "$objdir"; then
9886 :
9887 else
9888 rm -f .libs 2>/dev/null
9889 mkdir .libs 2>/dev/null
9890 if test -d .libs; then
9891 libltdl_cv_objdir=.libs
9892 else
9893 # MS-DOS does not allow filenames that begin with a dot.
9894 libltdl_cv_objdir=_libs
9895 fi
9896 rmdir .libs 2>/dev/null
9897 fi
9898
9899fi
Reid Spencera773bd52006-08-04 18:18:08 +00009900{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9901echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009902
9903cat >>confdefs.h <<_ACEOF
9904#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9905_ACEOF
9906
9907
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009908
9909
9910
9911
9912# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009913{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9914echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009915if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9917else
9918
9919# These are sane defaults that work on at least a few old systems.
9920# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9921
9922# Character class describing NM global symbol codes.
9923symcode='[BCDEGRST]'
9924
9925# Regexp to match symbols that can be accessed directly from C.
9926sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9927
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009928# Transform an extracted symbol line into a proper C declaration
9929lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9930
9931# Transform an extracted symbol line into symbol name and symbol address
9932lt_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'"
9933
9934# Define system-specific variables.
9935case $host_os in
9936aix*)
9937 symcode='[BCDT]'
9938 ;;
9939cygwin* | mingw* | pw32*)
9940 symcode='[ABCDGISTW]'
9941 ;;
9942hpux*) # Its linker distinguishes data from code symbols
9943 if test "$host_cpu" = ia64; then
9944 symcode='[ABCDEGRST]'
9945 fi
9946 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9947 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'"
9948 ;;
9949linux*)
9950 if test "$host_cpu" = ia64; then
9951 symcode='[ABCDGIRSTW]'
9952 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9953 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'"
9954 fi
9955 ;;
9956irix* | nonstopux*)
9957 symcode='[BCDEGRST]'
9958 ;;
9959osf*)
9960 symcode='[BCDEGQRST]'
9961 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009962solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009963 symcode='[BDRT]'
9964 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009965sco3.2v5*)
9966 symcode='[DT]'
9967 ;;
9968sysv4.2uw2*)
9969 symcode='[DT]'
9970 ;;
9971sysv5* | sco5v6* | unixware* | OpenUNIX*)
9972 symcode='[ABDT]'
9973 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009974sysv4)
9975 symcode='[DFNSTU]'
9976 ;;
9977esac
9978
9979# Handle CRLF in mingw tool chain
9980opt_cr=
9981case $build_os in
9982mingw*)
9983 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9984 ;;
9985esac
9986
9987# If we're using GNU nm, then use its standard symbol codes.
9988case `$NM -V 2>&1` in
9989*GNU* | *'with BFD'*)
9990 symcode='[ABCDGIRSTW]' ;;
9991esac
9992
9993# Try without a prefix undercore, then with it.
9994for ac_symprfx in "" "_"; do
9995
Reid Spencera773bd52006-08-04 18:18:08 +00009996 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9997 symxfrm="\\1 $ac_symprfx\\2 \\2"
9998
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009999 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010000 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 +000010001
10002 # Check to see that the pipe works correctly.
10003 pipe_works=no
10004
10005 rm -f conftest*
10006 cat > conftest.$ac_ext <<EOF
10007#ifdef __cplusplus
10008extern "C" {
10009#endif
10010char nm_test_var;
10011void nm_test_func(){}
10012#ifdef __cplusplus
10013}
10014#endif
10015int main(){nm_test_var='a';nm_test_func();return(0);}
10016EOF
10017
10018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10019 (eval $ac_compile) 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; then
10023 # Now try to grab the symbols.
10024 nlist=conftest.nm
10025 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10026 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } && test -s "$nlist"; then
10030 # Try sorting and uniquifying the output.
10031 if sort "$nlist" | uniq > "$nlist"T; then
10032 mv -f "$nlist"T "$nlist"
10033 else
10034 rm -f "$nlist"T
10035 fi
10036
10037 # Make sure that we snagged all the symbols we need.
10038 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10039 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10040 cat <<EOF > conftest.$ac_ext
10041#ifdef __cplusplus
10042extern "C" {
10043#endif
10044
10045EOF
10046 # Now generate the symbol file.
10047 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10048
10049 cat <<EOF >> conftest.$ac_ext
10050#if defined (__STDC__) && __STDC__
10051# define lt_ptr_t void *
10052#else
10053# define lt_ptr_t char *
10054# define const
10055#endif
10056
10057/* The mapping between symbol names and symbols. */
10058const struct {
10059 const char *name;
10060 lt_ptr_t address;
10061}
10062lt_preloaded_symbols[] =
10063{
10064EOF
10065 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10066 cat <<\EOF >> conftest.$ac_ext
10067 {0, (lt_ptr_t) 0}
10068};
10069
10070#ifdef __cplusplus
10071}
10072#endif
10073EOF
10074 # Now try linking the two files.
10075 mv conftest.$ac_objext conftstm.$ac_objext
10076 lt_save_LIBS="$LIBS"
10077 lt_save_CFLAGS="$CFLAGS"
10078 LIBS="conftstm.$ac_objext"
10079 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081 (eval $ac_link) 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10085 pipe_works=yes
10086 fi
10087 LIBS="$lt_save_LIBS"
10088 CFLAGS="$lt_save_CFLAGS"
10089 else
10090 echo "cannot find nm_test_func in $nlist" >&5
10091 fi
10092 else
10093 echo "cannot find nm_test_var in $nlist" >&5
10094 fi
10095 else
10096 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10097 fi
10098 else
10099 echo "$progname: failed program was:" >&5
10100 cat conftest.$ac_ext >&5
10101 fi
10102 rm -f conftest* conftst*
10103
10104 # Do not use the global_symbol_pipe unless it works.
10105 if test "$pipe_works" = yes; then
10106 break
10107 else
10108 lt_cv_sys_global_symbol_pipe=
10109 fi
10110done
10111
10112fi
10113
10114if test -z "$lt_cv_sys_global_symbol_pipe"; then
10115 lt_cv_sys_global_symbol_to_cdecl=
10116fi
10117if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010118 { echo "$as_me:$LINENO: result: failed" >&5
10119echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010120else
Reid Spencera773bd52006-08-04 18:18:08 +000010121 { echo "$as_me:$LINENO: result: ok" >&5
10122echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010123fi
10124
10125
Reid Spencera773bd52006-08-04 18:18:08 +000010126{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10127echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010128if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10129 echo $ECHO_N "(cached) $ECHO_C" >&6
10130else
10131 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10132 libltdl_cv_preloaded_symbols=yes
10133 else
10134 libltdl_cv_preloaded_symbols=no
10135 fi
10136
10137fi
Reid Spencera773bd52006-08-04 18:18:08 +000010138{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10139echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010140if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10141
10142cat >>confdefs.h <<\_ACEOF
10143#define HAVE_PRELOADED_SYMBOLS 1
10144_ACEOF
10145
10146fi
10147
10148LIBADD_DL=
10149
10150ac_ext=c
10151ac_cpp='$CPP $CPPFLAGS'
10152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10154ac_compiler_gnu=$ac_cv_c_compiler_gnu
10155
10156
Reid Spencera773bd52006-08-04 18:18:08 +000010157{ echo "$as_me:$LINENO: checking for shl_load" >&5
10158echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010159if test "${ac_cv_func_shl_load+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10161else
10162 cat >conftest.$ac_ext <<_ACEOF
10163/* confdefs.h. */
10164_ACEOF
10165cat confdefs.h >>conftest.$ac_ext
10166cat >>conftest.$ac_ext <<_ACEOF
10167/* end confdefs.h. */
10168/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10170#define shl_load innocuous_shl_load
10171
10172/* System header to define __stub macros and hopefully few prototypes,
10173 which can conflict with char shl_load (); below.
10174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10175 <limits.h> exists even on freestanding compilers. */
10176
10177#ifdef __STDC__
10178# include <limits.h>
10179#else
10180# include <assert.h>
10181#endif
10182
10183#undef shl_load
10184
Reid Spencera773bd52006-08-04 18:18:08 +000010185/* Override any GCC internal prototype to avoid an error.
10186 Use char because int might match the return type of a GCC
10187 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010188#ifdef __cplusplus
10189extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010190#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010191char shl_load ();
10192/* The GNU C library defines this for functions which it implements
10193 to always fail with ENOSYS. Some functions are actually named
10194 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010195#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010196choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010197#endif
10198
10199int
10200main ()
10201{
Reid Spencera773bd52006-08-04 18:18:08 +000010202return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010203 ;
10204 return 0;
10205}
10206_ACEOF
10207rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010208if { (ac_try="$ac_link"
10209case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10212esac
10213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010220 (exit $ac_status); } &&
10221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10222 { (case "(($ac_try" in
10223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224 *) ac_try_echo=$ac_try;;
10225esac
10226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227 (eval "$ac_try") 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; } &&
10231 { ac_try='test -s conftest$ac_exeext'
10232 { (case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10235esac
10236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_try") 2>&5
10238 ac_status=$?
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010241 ac_cv_func_shl_load=yes
10242else
10243 echo "$as_me: failed program was:" >&5
10244sed 's/^/| /' conftest.$ac_ext >&5
10245
Reid Spencera773bd52006-08-04 18:18:08 +000010246 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010247fi
Reid Spencera773bd52006-08-04 18:18:08 +000010248
Bill Wendlingebcceee2009-04-18 11:20:33 +000010249rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010250 conftest$ac_exeext conftest.$ac_ext
10251fi
Reid Spencera773bd52006-08-04 18:18:08 +000010252{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10253echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010254if test $ac_cv_func_shl_load = yes; then
10255
10256cat >>confdefs.h <<\_ACEOF
10257#define HAVE_SHL_LOAD 1
10258_ACEOF
10259
10260else
Reid Spencera773bd52006-08-04 18:18:08 +000010261 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10262echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010263if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10265else
10266 ac_check_lib_save_LIBS=$LIBS
10267LIBS="-ldld $LIBS"
10268cat >conftest.$ac_ext <<_ACEOF
10269/* confdefs.h. */
10270_ACEOF
10271cat confdefs.h >>conftest.$ac_ext
10272cat >>conftest.$ac_ext <<_ACEOF
10273/* end confdefs.h. */
10274
Reid Spencera773bd52006-08-04 18:18:08 +000010275/* Override any GCC internal prototype to avoid an error.
10276 Use char because int might match the return type of a GCC
10277 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010278#ifdef __cplusplus
10279extern "C"
10280#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010281char shl_load ();
10282int
10283main ()
10284{
Reid Spencera773bd52006-08-04 18:18:08 +000010285return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010286 ;
10287 return 0;
10288}
10289_ACEOF
10290rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010291if { (ac_try="$ac_link"
10292case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10295esac
10296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010298 ac_status=$?
10299 grep -v '^ *+' conftest.er1 >conftest.err
10300 rm -f conftest.er1
10301 cat conftest.err >&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010303 (exit $ac_status); } &&
10304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10305 { (case "(($ac_try" in
10306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307 *) ac_try_echo=$ac_try;;
10308esac
10309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10310 (eval "$ac_try") 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; } &&
10314 { ac_try='test -s conftest$ac_exeext'
10315 { (case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10318esac
10319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320 (eval "$ac_try") 2>&5
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010324 ac_cv_lib_dld_shl_load=yes
10325else
10326 echo "$as_me: failed program was:" >&5
10327sed 's/^/| /' conftest.$ac_ext >&5
10328
Reid Spencera773bd52006-08-04 18:18:08 +000010329 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010330fi
Reid Spencera773bd52006-08-04 18:18:08 +000010331
Bill Wendlingebcceee2009-04-18 11:20:33 +000010332rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010333 conftest$ac_exeext conftest.$ac_ext
10334LIBS=$ac_check_lib_save_LIBS
10335fi
Reid Spencera773bd52006-08-04 18:18:08 +000010336{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10337echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010338if test $ac_cv_lib_dld_shl_load = yes; then
10339
10340cat >>confdefs.h <<\_ACEOF
10341#define HAVE_SHL_LOAD 1
10342_ACEOF
10343
10344 LIBADD_DL="$LIBADD_DL -ldld"
10345else
Reid Spencera773bd52006-08-04 18:18:08 +000010346 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10347echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010348if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350else
10351 ac_check_lib_save_LIBS=$LIBS
10352LIBS="-ldl $LIBS"
10353cat >conftest.$ac_ext <<_ACEOF
10354/* confdefs.h. */
10355_ACEOF
10356cat confdefs.h >>conftest.$ac_ext
10357cat >>conftest.$ac_ext <<_ACEOF
10358/* end confdefs.h. */
10359
Reid Spencera773bd52006-08-04 18:18:08 +000010360/* Override any GCC internal prototype to avoid an error.
10361 Use char because int might match the return type of a GCC
10362 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010363#ifdef __cplusplus
10364extern "C"
10365#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010366char dlopen ();
10367int
10368main ()
10369{
Reid Spencera773bd52006-08-04 18:18:08 +000010370return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010371 ;
10372 return 0;
10373}
10374_ACEOF
10375rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010376if { (ac_try="$ac_link"
10377case "(($ac_try" in
10378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379 *) ac_try_echo=$ac_try;;
10380esac
10381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010383 ac_status=$?
10384 grep -v '^ *+' conftest.er1 >conftest.err
10385 rm -f conftest.er1
10386 cat conftest.err >&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010388 (exit $ac_status); } &&
10389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10390 { (case "(($ac_try" in
10391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392 *) ac_try_echo=$ac_try;;
10393esac
10394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_try") 2>&5
10396 ac_status=$?
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; } &&
10399 { ac_try='test -s conftest$ac_exeext'
10400 { (case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10403esac
10404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_try") 2>&5
10406 ac_status=$?
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010409 ac_cv_lib_dl_dlopen=yes
10410else
10411 echo "$as_me: failed program was:" >&5
10412sed 's/^/| /' conftest.$ac_ext >&5
10413
Reid Spencera773bd52006-08-04 18:18:08 +000010414 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010415fi
Reid Spencera773bd52006-08-04 18:18:08 +000010416
Bill Wendlingebcceee2009-04-18 11:20:33 +000010417rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010418 conftest$ac_exeext conftest.$ac_ext
10419LIBS=$ac_check_lib_save_LIBS
10420fi
Reid Spencera773bd52006-08-04 18:18:08 +000010421{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10422echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010423if test $ac_cv_lib_dl_dlopen = yes; then
10424
10425cat >>confdefs.h <<\_ACEOF
10426#define HAVE_LIBDL 1
10427_ACEOF
10428
10429 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10430else
10431 cat >conftest.$ac_ext <<_ACEOF
10432/* confdefs.h. */
10433_ACEOF
10434cat confdefs.h >>conftest.$ac_ext
10435cat >>conftest.$ac_ext <<_ACEOF
10436/* end confdefs.h. */
10437#if HAVE_DLFCN_H
10438# include <dlfcn.h>
10439#endif
10440
10441int
10442main ()
10443{
10444dlopen(0, 0);
10445 ;
10446 return 0;
10447}
10448_ACEOF
10449rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010450if { (ac_try="$ac_link"
10451case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10454esac
10455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457 ac_status=$?
10458 grep -v '^ *+' conftest.er1 >conftest.err
10459 rm -f conftest.er1
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010462 (exit $ac_status); } &&
10463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10464 { (case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10467esac
10468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_try") 2>&5
10470 ac_status=$?
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; } &&
10473 { ac_try='test -s conftest$ac_exeext'
10474 { (case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10477esac
10478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479 (eval "$ac_try") 2>&5
10480 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010483
10484cat >>confdefs.h <<\_ACEOF
10485#define HAVE_LIBDL 1
10486_ACEOF
10487 libltdl_cv_func_dlopen="yes"
10488else
10489 echo "$as_me: failed program was:" >&5
10490sed 's/^/| /' conftest.$ac_ext >&5
10491
Reid Spencera773bd52006-08-04 18:18:08 +000010492 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10493echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010494if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10496else
10497 ac_check_lib_save_LIBS=$LIBS
10498LIBS="-lsvld $LIBS"
10499cat >conftest.$ac_ext <<_ACEOF
10500/* confdefs.h. */
10501_ACEOF
10502cat confdefs.h >>conftest.$ac_ext
10503cat >>conftest.$ac_ext <<_ACEOF
10504/* end confdefs.h. */
10505
Reid Spencera773bd52006-08-04 18:18:08 +000010506/* Override any GCC internal prototype to avoid an error.
10507 Use char because int might match the return type of a GCC
10508 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010509#ifdef __cplusplus
10510extern "C"
10511#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010512char dlopen ();
10513int
10514main ()
10515{
Reid Spencera773bd52006-08-04 18:18:08 +000010516return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010517 ;
10518 return 0;
10519}
10520_ACEOF
10521rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010522if { (ac_try="$ac_link"
10523case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10526esac
10527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010529 ac_status=$?
10530 grep -v '^ *+' conftest.er1 >conftest.err
10531 rm -f conftest.er1
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010534 (exit $ac_status); } &&
10535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10536 { (case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10539esac
10540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_try") 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; } &&
10545 { ac_try='test -s conftest$ac_exeext'
10546 { (case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10549esac
10550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_try") 2>&5
10552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010555 ac_cv_lib_svld_dlopen=yes
10556else
10557 echo "$as_me: failed program was:" >&5
10558sed 's/^/| /' conftest.$ac_ext >&5
10559
Reid Spencera773bd52006-08-04 18:18:08 +000010560 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010561fi
Reid Spencera773bd52006-08-04 18:18:08 +000010562
Bill Wendlingebcceee2009-04-18 11:20:33 +000010563rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010564 conftest$ac_exeext conftest.$ac_ext
10565LIBS=$ac_check_lib_save_LIBS
10566fi
Reid Spencera773bd52006-08-04 18:18:08 +000010567{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10568echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010569if test $ac_cv_lib_svld_dlopen = yes; then
10570
10571cat >>confdefs.h <<\_ACEOF
10572#define HAVE_LIBDL 1
10573_ACEOF
10574
10575 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10576else
Reid Spencera773bd52006-08-04 18:18:08 +000010577 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10578echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010579if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10581else
10582 ac_check_lib_save_LIBS=$LIBS
10583LIBS="-ldld $LIBS"
10584cat >conftest.$ac_ext <<_ACEOF
10585/* confdefs.h. */
10586_ACEOF
10587cat confdefs.h >>conftest.$ac_ext
10588cat >>conftest.$ac_ext <<_ACEOF
10589/* end confdefs.h. */
10590
Reid Spencera773bd52006-08-04 18:18:08 +000010591/* Override any GCC internal prototype to avoid an error.
10592 Use char because int might match the return type of a GCC
10593 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010594#ifdef __cplusplus
10595extern "C"
10596#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010597char dld_link ();
10598int
10599main ()
10600{
Reid Spencera773bd52006-08-04 18:18:08 +000010601return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010602 ;
10603 return 0;
10604}
10605_ACEOF
10606rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010607if { (ac_try="$ac_link"
10608case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611esac
10612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010614 ac_status=$?
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010619 (exit $ac_status); } &&
10620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10621 { (case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10624esac
10625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626 (eval "$ac_try") 2>&5
10627 ac_status=$?
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; } &&
10630 { ac_try='test -s conftest$ac_exeext'
10631 { (case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10634esac
10635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_try") 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010640 ac_cv_lib_dld_dld_link=yes
10641else
10642 echo "$as_me: failed program was:" >&5
10643sed 's/^/| /' conftest.$ac_ext >&5
10644
Reid Spencera773bd52006-08-04 18:18:08 +000010645 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010646fi
Reid Spencera773bd52006-08-04 18:18:08 +000010647
Bill Wendlingebcceee2009-04-18 11:20:33 +000010648rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649 conftest$ac_exeext conftest.$ac_ext
10650LIBS=$ac_check_lib_save_LIBS
10651fi
Reid Spencera773bd52006-08-04 18:18:08 +000010652{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10653echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010654if test $ac_cv_lib_dld_dld_link = yes; then
10655
10656cat >>confdefs.h <<\_ACEOF
10657#define HAVE_DLD 1
10658_ACEOF
10659
10660 LIBADD_DL="$LIBADD_DL -ldld"
10661else
Reid Spencera773bd52006-08-04 18:18:08 +000010662 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10663echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010664if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10666else
10667 cat >conftest.$ac_ext <<_ACEOF
10668/* confdefs.h. */
10669_ACEOF
10670cat confdefs.h >>conftest.$ac_ext
10671cat >>conftest.$ac_ext <<_ACEOF
10672/* end confdefs.h. */
10673/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10675#define _dyld_func_lookup innocuous__dyld_func_lookup
10676
10677/* System header to define __stub macros and hopefully few prototypes,
10678 which can conflict with char _dyld_func_lookup (); below.
10679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10680 <limits.h> exists even on freestanding compilers. */
10681
10682#ifdef __STDC__
10683# include <limits.h>
10684#else
10685# include <assert.h>
10686#endif
10687
10688#undef _dyld_func_lookup
10689
Reid Spencera773bd52006-08-04 18:18:08 +000010690/* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010693#ifdef __cplusplus
10694extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010695#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010696char _dyld_func_lookup ();
10697/* The GNU C library defines this for functions which it implements
10698 to always fail with ENOSYS. Some functions are actually named
10699 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010700#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010701choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010702#endif
10703
10704int
10705main ()
10706{
Reid Spencera773bd52006-08-04 18:18:08 +000010707return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010708 ;
10709 return 0;
10710}
10711_ACEOF
10712rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010713if { (ac_try="$ac_link"
10714case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10717esac
10718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010720 ac_status=$?
10721 grep -v '^ *+' conftest.er1 >conftest.err
10722 rm -f conftest.er1
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010725 (exit $ac_status); } &&
10726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10727 { (case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10730esac
10731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_try") 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest$ac_exeext'
10737 { (case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10740esac
10741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742 (eval "$ac_try") 2>&5
10743 ac_status=$?
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010746 ac_cv_func__dyld_func_lookup=yes
10747else
10748 echo "$as_me: failed program was:" >&5
10749sed 's/^/| /' conftest.$ac_ext >&5
10750
Reid Spencera773bd52006-08-04 18:18:08 +000010751 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010752fi
Reid Spencera773bd52006-08-04 18:18:08 +000010753
Bill Wendlingebcceee2009-04-18 11:20:33 +000010754rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010755 conftest$ac_exeext conftest.$ac_ext
10756fi
Reid Spencera773bd52006-08-04 18:18:08 +000010757{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10758echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010759if test $ac_cv_func__dyld_func_lookup = yes; then
10760
10761cat >>confdefs.h <<\_ACEOF
10762#define HAVE_DYLD 1
10763_ACEOF
10764
10765fi
10766
10767
10768fi
10769
10770
10771fi
10772
10773
10774fi
Reid Spencera773bd52006-08-04 18:18:08 +000010775
Bill Wendlingebcceee2009-04-18 11:20:33 +000010776rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010777 conftest$ac_exeext conftest.$ac_ext
10778
10779fi
10780
10781
10782fi
10783
10784
10785fi
10786
10787
10788if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10789then
10790 lt_save_LIBS="$LIBS"
10791 LIBS="$LIBS $LIBADD_DL"
10792
10793for ac_func in dlerror
10794do
10795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010796{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10798if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010799 echo $ECHO_N "(cached) $ECHO_C" >&6
10800else
10801 cat >conftest.$ac_ext <<_ACEOF
10802/* confdefs.h. */
10803_ACEOF
10804cat confdefs.h >>conftest.$ac_ext
10805cat >>conftest.$ac_ext <<_ACEOF
10806/* end confdefs.h. */
10807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10809#define $ac_func innocuous_$ac_func
10810
10811/* System header to define __stub macros and hopefully few prototypes,
10812 which can conflict with char $ac_func (); below.
10813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10814 <limits.h> exists even on freestanding compilers. */
10815
10816#ifdef __STDC__
10817# include <limits.h>
10818#else
10819# include <assert.h>
10820#endif
10821
10822#undef $ac_func
10823
Reid Spencera773bd52006-08-04 18:18:08 +000010824/* Override any GCC internal prototype to avoid an error.
10825 Use char because int might match the return type of a GCC
10826 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010827#ifdef __cplusplus
10828extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010829#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010830char $ac_func ();
10831/* The GNU C library defines this for functions which it implements
10832 to always fail with ENOSYS. Some functions are actually named
10833 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010834#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010835choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010836#endif
10837
10838int
10839main ()
10840{
Reid Spencera773bd52006-08-04 18:18:08 +000010841return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010842 ;
10843 return 0;
10844}
10845_ACEOF
10846rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010847if { (ac_try="$ac_link"
10848case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10851esac
10852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010854 ac_status=$?
10855 grep -v '^ *+' conftest.er1 >conftest.err
10856 rm -f conftest.er1
10857 cat conftest.err >&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010859 (exit $ac_status); } &&
10860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10861 { (case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10864esac
10865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_try") 2>&5
10867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; } &&
10870 { ac_try='test -s conftest$ac_exeext'
10871 { (case "(($ac_try" in
10872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10874esac
10875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876 (eval "$ac_try") 2>&5
10877 ac_status=$?
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010880 eval "$as_ac_var=yes"
10881else
10882 echo "$as_me: failed program was:" >&5
10883sed 's/^/| /' conftest.$ac_ext >&5
10884
Reid Spencera773bd52006-08-04 18:18:08 +000010885 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010886fi
Reid Spencera773bd52006-08-04 18:18:08 +000010887
Bill Wendlingebcceee2009-04-18 11:20:33 +000010888rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010889 conftest$ac_exeext conftest.$ac_ext
10890fi
Reid Spencera773bd52006-08-04 18:18:08 +000010891ac_res=`eval echo '${'$as_ac_var'}'`
10892 { echo "$as_me:$LINENO: result: $ac_res" >&5
10893echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010894if test `eval echo '${'$as_ac_var'}'` = yes; then
10895 cat >>confdefs.h <<_ACEOF
10896#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10897_ACEOF
10898
10899fi
10900done
10901
10902 LIBS="$lt_save_LIBS"
10903fi
10904ac_ext=c
10905ac_cpp='$CPP $CPPFLAGS'
10906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10908ac_compiler_gnu=$ac_cv_c_compiler_gnu
10909
10910
10911
Reid Spencera773bd52006-08-04 18:18:08 +000010912{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10913echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010914if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10916else
10917 ac_cv_sys_symbol_underscore=no
10918 cat > conftest.$ac_ext <<EOF
10919void nm_test_func(){}
10920int main(){nm_test_func;return 0;}
10921EOF
10922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10923 (eval $ac_compile) 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; then
10927 # Now try to grab the symbols.
10928 ac_nlist=conftest.nm
10929 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10930 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && test -s "$ac_nlist"; then
10934 # See whether the symbols have a leading underscore.
10935 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10936 ac_cv_sys_symbol_underscore=yes
10937 else
10938 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10939 :
10940 else
10941 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10942 fi
10943 fi
10944 else
10945 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10946 fi
10947 else
10948 echo "configure: failed program was:" >&5
10949 cat conftest.c >&5
10950 fi
10951 rm -rf conftest*
10952
10953fi
Reid Spencera773bd52006-08-04 18:18:08 +000010954{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10955echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010956
10957
10958if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10959 if test x"$libltdl_cv_func_dlopen" = xyes ||
10960 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010961 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10962echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010963if test "${libltdl_cv_need_uscore+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10965else
10966 libltdl_cv_need_uscore=unknown
10967 save_LIBS="$LIBS"
10968 LIBS="$LIBS $LIBADD_DL"
10969 if test "$cross_compiling" = yes; then :
10970 libltdl_cv_need_uscore=cross
10971else
10972 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10973 lt_status=$lt_dlunknown
10974 cat > conftest.$ac_ext <<EOF
Gabor Greif4c750542009-08-27 17:07:35 +000010975#line 10975 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010976#include "confdefs.h"
10977
10978#if HAVE_DLFCN_H
10979#include <dlfcn.h>
10980#endif
10981
10982#include <stdio.h>
10983
10984#ifdef RTLD_GLOBAL
10985# define LT_DLGLOBAL RTLD_GLOBAL
10986#else
10987# ifdef DL_GLOBAL
10988# define LT_DLGLOBAL DL_GLOBAL
10989# else
10990# define LT_DLGLOBAL 0
10991# endif
10992#endif
10993
10994/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10995 find out it does not work in some platform. */
10996#ifndef LT_DLLAZY_OR_NOW
10997# ifdef RTLD_LAZY
10998# define LT_DLLAZY_OR_NOW RTLD_LAZY
10999# else
11000# ifdef DL_LAZY
11001# define LT_DLLAZY_OR_NOW DL_LAZY
11002# else
11003# ifdef RTLD_NOW
11004# define LT_DLLAZY_OR_NOW RTLD_NOW
11005# else
11006# ifdef DL_NOW
11007# define LT_DLLAZY_OR_NOW DL_NOW
11008# else
11009# define LT_DLLAZY_OR_NOW 0
11010# endif
11011# endif
11012# endif
11013# endif
11014#endif
11015
11016#ifdef __cplusplus
11017extern "C" void exit (int);
11018#endif
11019
11020void fnord() { int i=42;}
11021int main ()
11022{
11023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11024 int status = $lt_dlunknown;
11025
11026 if (self)
11027 {
11028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11029 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11030 /* dlclose (self); */
11031 }
Reid Spencera773bd52006-08-04 18:18:08 +000011032 else
11033 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011034
11035 exit (status);
11036}
11037EOF
11038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11039 (eval $ac_link) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011043 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011044 lt_status=$?
11045 case x$lt_status in
11046 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11047 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011048 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011049 esac
11050 else :
11051 # compilation failed
11052
11053 fi
11054fi
11055rm -fr conftest*
11056
11057 LIBS="$save_LIBS"
11058
11059fi
Reid Spencera773bd52006-08-04 18:18:08 +000011060{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11061echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011062 fi
11063fi
11064
11065if test x"$libltdl_cv_need_uscore" = xyes; then
11066
11067cat >>confdefs.h <<\_ACEOF
11068#define NEED_USCORE 1
11069_ACEOF
11070
11071fi
11072
11073
Reid Spencera773bd52006-08-04 18:18:08 +000011074{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11075echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078else
11079 # PORTME does your system automatically load deplibs for dlopen?
11080 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11081 # For now, we just catch OSes we know something about -- in the
11082 # future, we'll try test this programmatically.
11083 libltdl_cv_sys_dlopen_deplibs=unknown
11084 case "$host_os" in
11085 aix3*|aix4.1.*|aix4.2.*)
11086 # Unknown whether this is true for these versions of AIX, but
11087 # we want this `case' here to explicitly catch those versions.
11088 libltdl_cv_sys_dlopen_deplibs=unknown
11089 ;;
11090 aix[45]*)
11091 libltdl_cv_sys_dlopen_deplibs=yes
11092 ;;
11093 darwin*)
11094 # Assuming the user has installed a libdl from somewhere, this is true
11095 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11096 libltdl_cv_sys_dlopen_deplibs=yes
11097 ;;
11098 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11099 # GNU and its variants, using gnu ld.so (Glibc)
11100 libltdl_cv_sys_dlopen_deplibs=yes
11101 ;;
11102 hpux10*|hpux11*)
11103 libltdl_cv_sys_dlopen_deplibs=yes
11104 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011105 interix*)
11106 libltdl_cv_sys_dlopen_deplibs=yes
11107 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011108 irix[12345]*|irix6.[01]*)
11109 # Catch all versions of IRIX before 6.2, and indicate that we don't
11110 # know how it worked for any of those versions.
11111 libltdl_cv_sys_dlopen_deplibs=unknown
11112 ;;
11113 irix*)
11114 # The case above catches anything before 6.2, and it's known that
11115 # at 6.2 and later dlopen does load deplibs.
11116 libltdl_cv_sys_dlopen_deplibs=yes
11117 ;;
11118 netbsd*)
11119 libltdl_cv_sys_dlopen_deplibs=yes
11120 ;;
11121 openbsd*)
11122 libltdl_cv_sys_dlopen_deplibs=yes
11123 ;;
11124 osf[1234]*)
11125 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11126 # it did *not* use an RPATH in a shared library to find objects the
11127 # library depends on, so we explictly say `no'.
11128 libltdl_cv_sys_dlopen_deplibs=no
11129 ;;
11130 osf5.0|osf5.0a|osf5.1)
11131 # dlopen *does* load deplibs and with the right loader patch applied
11132 # it even uses RPATH in a shared library to search for shared objects
11133 # that the library depends on, but there's no easy way to know if that
11134 # patch is installed. Since this is the case, all we can really
11135 # say is unknown -- it depends on the patch being installed. If
11136 # it is, this changes to `yes'. Without it, it would be `no'.
11137 libltdl_cv_sys_dlopen_deplibs=unknown
11138 ;;
11139 osf*)
11140 # the two cases above should catch all versions of osf <= 5.1. Read
11141 # the comments above for what we know about them.
11142 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11143 # is used to find them so we can finally say `yes'.
11144 libltdl_cv_sys_dlopen_deplibs=yes
11145 ;;
11146 solaris*)
11147 libltdl_cv_sys_dlopen_deplibs=yes
11148 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011149 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11150 libltdl_cv_sys_dlopen_deplibs=yes
11151 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011152 esac
11153
11154fi
Reid Spencera773bd52006-08-04 18:18:08 +000011155{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11156echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011157if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11158
11159cat >>confdefs.h <<\_ACEOF
11160#define LTDL_DLOPEN_DEPLIBS 1
11161_ACEOF
11162
11163fi
11164
11165
11166for ac_header in argz.h
11167do
11168as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11172if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011173 echo $ECHO_N "(cached) $ECHO_C" >&6
11174fi
Reid Spencera773bd52006-08-04 18:18:08 +000011175ac_res=`eval echo '${'$as_ac_Header'}'`
11176 { echo "$as_me:$LINENO: result: $ac_res" >&5
11177echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011178else
11179 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011180{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11181echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011182cat >conftest.$ac_ext <<_ACEOF
11183/* confdefs.h. */
11184_ACEOF
11185cat confdefs.h >>conftest.$ac_ext
11186cat >>conftest.$ac_ext <<_ACEOF
11187/* end confdefs.h. */
11188$ac_includes_default
11189#include <$ac_header>
11190_ACEOF
11191rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011192if { (ac_try="$ac_compile"
11193case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11196esac
11197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011204 (exit $ac_status); } &&
11205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11206 { (case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11209esac
11210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_try") 2>&5
11212 ac_status=$?
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; } &&
11215 { ac_try='test -s conftest.$ac_objext'
11216 { (case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11219esac
11220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_try") 2>&5
11222 ac_status=$?
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011225 ac_header_compiler=yes
11226else
11227 echo "$as_me: failed program was:" >&5
11228sed 's/^/| /' conftest.$ac_ext >&5
11229
Reid Spencera773bd52006-08-04 18:18:08 +000011230 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011231fi
Reid Spencera773bd52006-08-04 18:18:08 +000011232
11233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11234{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11235echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011236
11237# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011238{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11239echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011240cat >conftest.$ac_ext <<_ACEOF
11241/* confdefs.h. */
11242_ACEOF
11243cat confdefs.h >>conftest.$ac_ext
11244cat >>conftest.$ac_ext <<_ACEOF
11245/* end confdefs.h. */
11246#include <$ac_header>
11247_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011248if { (ac_try="$ac_cpp conftest.$ac_ext"
11249case "(($ac_try" in
11250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11252esac
11253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011255 ac_status=$?
11256 grep -v '^ *+' conftest.er1 >conftest.err
11257 rm -f conftest.er1
11258 cat conftest.err >&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011260 (exit $ac_status); } >/dev/null; then
11261 if test -s conftest.err; then
11262 ac_cpp_err=$ac_c_preproc_warn_flag
11263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11264 else
11265 ac_cpp_err=
11266 fi
11267else
11268 ac_cpp_err=yes
11269fi
11270if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011271 ac_header_preproc=yes
11272else
11273 echo "$as_me: failed program was:" >&5
11274sed 's/^/| /' conftest.$ac_ext >&5
11275
11276 ac_header_preproc=no
11277fi
Reid Spencera773bd52006-08-04 18:18:08 +000011278
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011279rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011280{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11281echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011282
11283# So? What about this header?
11284case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11285 yes:no: )
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11287echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11289echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11290 ac_header_preproc=yes
11291 ;;
11292 no:yes:* )
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11294echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11296echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11298echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11300echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11302echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11304echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011305 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011306## ----------------------------------- ##
11307## Report this to llvmbugs@cs.uiuc.edu ##
11308## ----------------------------------- ##
11309_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011310 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011311 ;;
11312esac
Reid Spencera773bd52006-08-04 18:18:08 +000011313{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11314echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011316 echo $ECHO_N "(cached) $ECHO_C" >&6
11317else
11318 eval "$as_ac_Header=\$ac_header_preproc"
11319fi
Reid Spencera773bd52006-08-04 18:18:08 +000011320ac_res=`eval echo '${'$as_ac_Header'}'`
11321 { echo "$as_me:$LINENO: result: $ac_res" >&5
11322echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011323
11324fi
11325if test `eval echo '${'$as_ac_Header'}'` = yes; then
11326 cat >>confdefs.h <<_ACEOF
11327#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11328_ACEOF
11329
11330fi
11331
11332done
11333
11334
Reid Spencera773bd52006-08-04 18:18:08 +000011335{ echo "$as_me:$LINENO: checking for error_t" >&5
11336echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011337if test "${ac_cv_type_error_t+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339else
11340 cat >conftest.$ac_ext <<_ACEOF
11341/* confdefs.h. */
11342_ACEOF
11343cat confdefs.h >>conftest.$ac_ext
11344cat >>conftest.$ac_ext <<_ACEOF
11345/* end confdefs.h. */
11346#if HAVE_ARGZ_H
11347# include <argz.h>
11348#endif
11349
Reid Spencera773bd52006-08-04 18:18:08 +000011350typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011351int
11352main ()
11353{
Reid Spencera773bd52006-08-04 18:18:08 +000011354if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011355 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011356if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011357 return 0;
11358 ;
11359 return 0;
11360}
11361_ACEOF
11362rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011363if { (ac_try="$ac_compile"
11364case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367esac
11368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011375 (exit $ac_status); } &&
11376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11377 { (case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380esac
11381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_try") 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; } &&
11386 { ac_try='test -s conftest.$ac_objext'
11387 { (case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11390esac
11391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_try") 2>&5
11393 ac_status=$?
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011396 ac_cv_type_error_t=yes
11397else
11398 echo "$as_me: failed program was:" >&5
11399sed 's/^/| /' conftest.$ac_ext >&5
11400
Reid Spencera773bd52006-08-04 18:18:08 +000011401 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011402fi
Reid Spencera773bd52006-08-04 18:18:08 +000011403
11404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011405fi
Reid Spencera773bd52006-08-04 18:18:08 +000011406{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11407echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011408if test $ac_cv_type_error_t = yes; then
11409
11410cat >>confdefs.h <<_ACEOF
11411#define HAVE_ERROR_T 1
11412_ACEOF
11413
11414
11415else
11416
11417cat >>confdefs.h <<\_ACEOF
11418#define error_t int
11419_ACEOF
11420
11421fi
11422
11423
11424
11425
11426
11427
11428
11429for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11430do
11431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011432{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11434if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436else
11437 cat >conftest.$ac_ext <<_ACEOF
11438/* confdefs.h. */
11439_ACEOF
11440cat confdefs.h >>conftest.$ac_ext
11441cat >>conftest.$ac_ext <<_ACEOF
11442/* end confdefs.h. */
11443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11445#define $ac_func innocuous_$ac_func
11446
11447/* System header to define __stub macros and hopefully few prototypes,
11448 which can conflict with char $ac_func (); below.
11449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11450 <limits.h> exists even on freestanding compilers. */
11451
11452#ifdef __STDC__
11453# include <limits.h>
11454#else
11455# include <assert.h>
11456#endif
11457
11458#undef $ac_func
11459
Reid Spencera773bd52006-08-04 18:18:08 +000011460/* Override any GCC internal prototype to avoid an error.
11461 Use char because int might match the return type of a GCC
11462 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011463#ifdef __cplusplus
11464extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011465#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011466char $ac_func ();
11467/* The GNU C library defines this for functions which it implements
11468 to always fail with ENOSYS. Some functions are actually named
11469 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011470#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011471choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011472#endif
11473
11474int
11475main ()
11476{
Reid Spencera773bd52006-08-04 18:18:08 +000011477return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011478 ;
11479 return 0;
11480}
11481_ACEOF
11482rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011483if { (ac_try="$ac_link"
11484case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11487esac
11488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011490 ac_status=$?
11491 grep -v '^ *+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011495 (exit $ac_status); } &&
11496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11497 { (case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11500esac
11501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_try") 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; } &&
11506 { ac_try='test -s conftest$ac_exeext'
11507 { (case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11510esac
11511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_try") 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011516 eval "$as_ac_var=yes"
11517else
11518 echo "$as_me: failed program was:" >&5
11519sed 's/^/| /' conftest.$ac_ext >&5
11520
Reid Spencera773bd52006-08-04 18:18:08 +000011521 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011522fi
Reid Spencera773bd52006-08-04 18:18:08 +000011523
Bill Wendlingebcceee2009-04-18 11:20:33 +000011524rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011525 conftest$ac_exeext conftest.$ac_ext
11526fi
Reid Spencera773bd52006-08-04 18:18:08 +000011527ac_res=`eval echo '${'$as_ac_var'}'`
11528 { echo "$as_me:$LINENO: result: $ac_res" >&5
11529echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011530if test `eval echo '${'$as_ac_var'}'` = yes; then
11531 cat >>confdefs.h <<_ACEOF
11532#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11533_ACEOF
11534
11535fi
11536done
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11566 stdio.h unistd.h
11567do
11568as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011573 echo $ECHO_N "(cached) $ECHO_C" >&6
11574fi
Reid Spencera773bd52006-08-04 18:18:08 +000011575ac_res=`eval echo '${'$as_ac_Header'}'`
11576 { echo "$as_me:$LINENO: result: $ac_res" >&5
11577echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011578else
11579 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011580{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11581echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011582cat >conftest.$ac_ext <<_ACEOF
11583/* confdefs.h. */
11584_ACEOF
11585cat confdefs.h >>conftest.$ac_ext
11586cat >>conftest.$ac_ext <<_ACEOF
11587/* end confdefs.h. */
11588$ac_includes_default
11589#include <$ac_header>
11590_ACEOF
11591rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011592if { (ac_try="$ac_compile"
11593case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11596esac
11597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011599 ac_status=$?
11600 grep -v '^ *+' conftest.er1 >conftest.err
11601 rm -f conftest.er1
11602 cat conftest.err >&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011604 (exit $ac_status); } &&
11605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11606 { (case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11609esac
11610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11611 (eval "$ac_try") 2>&5
11612 ac_status=$?
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; } &&
11615 { ac_try='test -s conftest.$ac_objext'
11616 { (case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11619esac
11620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621 (eval "$ac_try") 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011625 ac_header_compiler=yes
11626else
11627 echo "$as_me: failed program was:" >&5
11628sed 's/^/| /' conftest.$ac_ext >&5
11629
Reid Spencera773bd52006-08-04 18:18:08 +000011630 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011631fi
Reid Spencera773bd52006-08-04 18:18:08 +000011632
11633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11634{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11635echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011636
11637# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011638{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11639echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011640cat >conftest.$ac_ext <<_ACEOF
11641/* confdefs.h. */
11642_ACEOF
11643cat confdefs.h >>conftest.$ac_ext
11644cat >>conftest.$ac_ext <<_ACEOF
11645/* end confdefs.h. */
11646#include <$ac_header>
11647_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011648if { (ac_try="$ac_cpp conftest.$ac_ext"
11649case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652esac
11653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011660 (exit $ac_status); } >/dev/null; then
11661 if test -s conftest.err; then
11662 ac_cpp_err=$ac_c_preproc_warn_flag
11663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11664 else
11665 ac_cpp_err=
11666 fi
11667else
11668 ac_cpp_err=yes
11669fi
11670if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011671 ac_header_preproc=yes
11672else
11673 echo "$as_me: failed program was:" >&5
11674sed 's/^/| /' conftest.$ac_ext >&5
11675
11676 ac_header_preproc=no
11677fi
Reid Spencera773bd52006-08-04 18:18:08 +000011678
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011679rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011680{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11681echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011682
11683# So? What about this header?
11684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11685 yes:no: )
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11687echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11689echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11690 ac_header_preproc=yes
11691 ;;
11692 no:yes:* )
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11694echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11696echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11698echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11700echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11702echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11704echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011705 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011706## ----------------------------------- ##
11707## Report this to llvmbugs@cs.uiuc.edu ##
11708## ----------------------------------- ##
11709_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011710 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011711 ;;
11712esac
Reid Spencera773bd52006-08-04 18:18:08 +000011713{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011716 echo $ECHO_N "(cached) $ECHO_C" >&6
11717else
11718 eval "$as_ac_Header=\$ac_header_preproc"
11719fi
Reid Spencera773bd52006-08-04 18:18:08 +000011720ac_res=`eval echo '${'$as_ac_Header'}'`
11721 { echo "$as_me:$LINENO: result: $ac_res" >&5
11722echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011723
11724fi
11725if test `eval echo '${'$as_ac_Header'}'` = yes; then
11726 cat >>confdefs.h <<_ACEOF
11727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11728_ACEOF
11729
11730fi
11731
11732done
11733
11734
11735
11736
11737
11738for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11739do
11740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011741if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11742 { 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
11746fi
Reid Spencera773bd52006-08-04 18:18:08 +000011747ac_res=`eval echo '${'$as_ac_Header'}'`
11748 { echo "$as_me:$LINENO: result: $ac_res" >&5
11749echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011750else
11751 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011752{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11753echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011754cat >conftest.$ac_ext <<_ACEOF
11755/* confdefs.h. */
11756_ACEOF
11757cat confdefs.h >>conftest.$ac_ext
11758cat >>conftest.$ac_ext <<_ACEOF
11759/* end confdefs.h. */
11760$ac_includes_default
11761#include <$ac_header>
11762_ACEOF
11763rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011764if { (ac_try="$ac_compile"
11765case "(($ac_try" in
11766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11767 *) ac_try_echo=$ac_try;;
11768esac
11769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11770 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011771 ac_status=$?
11772 grep -v '^ *+' conftest.er1 >conftest.err
11773 rm -f conftest.er1
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011776 (exit $ac_status); } &&
11777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11778 { (case "(($ac_try" in
11779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780 *) ac_try_echo=$ac_try;;
11781esac
11782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11783 (eval "$ac_try") 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; } &&
11787 { ac_try='test -s conftest.$ac_objext'
11788 { (case "(($ac_try" in
11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790 *) ac_try_echo=$ac_try;;
11791esac
11792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793 (eval "$ac_try") 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011797 ac_header_compiler=yes
11798else
11799 echo "$as_me: failed program was:" >&5
11800sed 's/^/| /' conftest.$ac_ext >&5
11801
Reid Spencera773bd52006-08-04 18:18:08 +000011802 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011803fi
Reid Spencera773bd52006-08-04 18:18:08 +000011804
11805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11806{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11807echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011808
11809# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011810{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11811echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011812cat >conftest.$ac_ext <<_ACEOF
11813/* confdefs.h. */
11814_ACEOF
11815cat confdefs.h >>conftest.$ac_ext
11816cat >>conftest.$ac_ext <<_ACEOF
11817/* end confdefs.h. */
11818#include <$ac_header>
11819_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011820if { (ac_try="$ac_cpp conftest.$ac_ext"
11821case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11824esac
11825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011827 ac_status=$?
11828 grep -v '^ *+' conftest.er1 >conftest.err
11829 rm -f conftest.er1
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011832 (exit $ac_status); } >/dev/null; then
11833 if test -s conftest.err; then
11834 ac_cpp_err=$ac_c_preproc_warn_flag
11835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11836 else
11837 ac_cpp_err=
11838 fi
11839else
11840 ac_cpp_err=yes
11841fi
11842if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011843 ac_header_preproc=yes
11844else
11845 echo "$as_me: failed program was:" >&5
11846sed 's/^/| /' conftest.$ac_ext >&5
11847
11848 ac_header_preproc=no
11849fi
Reid Spencera773bd52006-08-04 18:18:08 +000011850
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011851rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011852{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11853echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011854
11855# So? What about this header?
11856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11857 yes:no: )
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11859echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11861echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11862 ac_header_preproc=yes
11863 ;;
11864 no:yes:* )
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11866echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11868echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11870echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11872echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11874echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11876echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011877 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011878## ----------------------------------- ##
11879## Report this to llvmbugs@cs.uiuc.edu ##
11880## ----------------------------------- ##
11881_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011882 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011883 ;;
11884esac
Reid Spencera773bd52006-08-04 18:18:08 +000011885{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011888 echo $ECHO_N "(cached) $ECHO_C" >&6
11889else
11890 eval "$as_ac_Header=\$ac_header_preproc"
11891fi
Reid Spencera773bd52006-08-04 18:18:08 +000011892ac_res=`eval echo '${'$as_ac_Header'}'`
11893 { echo "$as_me:$LINENO: result: $ac_res" >&5
11894echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011895
11896fi
11897if test `eval echo '${'$as_ac_Header'}'` = yes; then
11898 cat >>confdefs.h <<_ACEOF
11899#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11900_ACEOF
11901
11902fi
11903
11904done
11905
11906
11907
11908for ac_header in string.h strings.h
11909do
11910as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011915 echo $ECHO_N "(cached) $ECHO_C" >&6
11916fi
Reid Spencera773bd52006-08-04 18:18:08 +000011917ac_res=`eval echo '${'$as_ac_Header'}'`
11918 { echo "$as_me:$LINENO: result: $ac_res" >&5
11919echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011920else
11921 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011922{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11923echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011924cat >conftest.$ac_ext <<_ACEOF
11925/* confdefs.h. */
11926_ACEOF
11927cat confdefs.h >>conftest.$ac_ext
11928cat >>conftest.$ac_ext <<_ACEOF
11929/* end confdefs.h. */
11930$ac_includes_default
11931#include <$ac_header>
11932_ACEOF
11933rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011934if { (ac_try="$ac_compile"
11935case "(($ac_try" in
11936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11938esac
11939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011941 ac_status=$?
11942 grep -v '^ *+' conftest.er1 >conftest.err
11943 rm -f conftest.er1
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011946 (exit $ac_status); } &&
11947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11948 { (case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11951esac
11952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11953 (eval "$ac_try") 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; } &&
11957 { ac_try='test -s conftest.$ac_objext'
11958 { (case "(($ac_try" in
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11961esac
11962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963 (eval "$ac_try") 2>&5
11964 ac_status=$?
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011967 ac_header_compiler=yes
11968else
11969 echo "$as_me: failed program was:" >&5
11970sed 's/^/| /' conftest.$ac_ext >&5
11971
Reid Spencera773bd52006-08-04 18:18:08 +000011972 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011973fi
Reid Spencera773bd52006-08-04 18:18:08 +000011974
11975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11977echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011978
11979# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011980{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11981echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011982cat >conftest.$ac_ext <<_ACEOF
11983/* confdefs.h. */
11984_ACEOF
11985cat confdefs.h >>conftest.$ac_ext
11986cat >>conftest.$ac_ext <<_ACEOF
11987/* end confdefs.h. */
11988#include <$ac_header>
11989_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011990if { (ac_try="$ac_cpp conftest.$ac_ext"
11991case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11994esac
11995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011997 ac_status=$?
11998 grep -v '^ *+' conftest.er1 >conftest.err
11999 rm -f conftest.er1
12000 cat conftest.err >&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012002 (exit $ac_status); } >/dev/null; then
12003 if test -s conftest.err; then
12004 ac_cpp_err=$ac_c_preproc_warn_flag
12005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12006 else
12007 ac_cpp_err=
12008 fi
12009else
12010 ac_cpp_err=yes
12011fi
12012if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012013 ac_header_preproc=yes
12014else
12015 echo "$as_me: failed program was:" >&5
12016sed 's/^/| /' conftest.$ac_ext >&5
12017
12018 ac_header_preproc=no
12019fi
Reid Spencera773bd52006-08-04 18:18:08 +000012020
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012021rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000012022{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12023echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012024
12025# So? What about this header?
12026case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12027 yes:no: )
12028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12029echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12031echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12032 ac_header_preproc=yes
12033 ;;
12034 no:yes:* )
12035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12036echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12038echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12040echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12042echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12044echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12046echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000012047 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012048## ----------------------------------- ##
12049## Report this to llvmbugs@cs.uiuc.edu ##
12050## ----------------------------------- ##
12051_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000012052 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012053 ;;
12054esac
Reid Spencera773bd52006-08-04 18:18:08 +000012055{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012058 echo $ECHO_N "(cached) $ECHO_C" >&6
12059else
12060 eval "$as_ac_Header=\$ac_header_preproc"
12061fi
Reid Spencera773bd52006-08-04 18:18:08 +000012062ac_res=`eval echo '${'$as_ac_Header'}'`
12063 { echo "$as_me:$LINENO: result: $ac_res" >&5
12064echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012065
12066fi
12067if test `eval echo '${'$as_ac_Header'}'` = yes; then
12068 cat >>confdefs.h <<_ACEOF
12069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12070_ACEOF
12071 break
12072fi
12073
12074done
12075
12076
12077
12078
12079for ac_func in strchr index
12080do
12081as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012082{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12083echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12084if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012085 echo $ECHO_N "(cached) $ECHO_C" >&6
12086else
12087 cat >conftest.$ac_ext <<_ACEOF
12088/* confdefs.h. */
12089_ACEOF
12090cat confdefs.h >>conftest.$ac_ext
12091cat >>conftest.$ac_ext <<_ACEOF
12092/* end confdefs.h. */
12093/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12095#define $ac_func innocuous_$ac_func
12096
12097/* System header to define __stub macros and hopefully few prototypes,
12098 which can conflict with char $ac_func (); below.
12099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12100 <limits.h> exists even on freestanding compilers. */
12101
12102#ifdef __STDC__
12103# include <limits.h>
12104#else
12105# include <assert.h>
12106#endif
12107
12108#undef $ac_func
12109
Reid Spencera773bd52006-08-04 18:18:08 +000012110/* Override any GCC internal prototype to avoid an error.
12111 Use char because int might match the return type of a GCC
12112 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012113#ifdef __cplusplus
12114extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012115#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012116char $ac_func ();
12117/* The GNU C library defines this for functions which it implements
12118 to always fail with ENOSYS. Some functions are actually named
12119 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012120#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012121choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012122#endif
12123
12124int
12125main ()
12126{
Reid Spencera773bd52006-08-04 18:18:08 +000012127return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012128 ;
12129 return 0;
12130}
12131_ACEOF
12132rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012133if { (ac_try="$ac_link"
12134case "(($ac_try" in
12135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136 *) ac_try_echo=$ac_try;;
12137esac
12138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012140 ac_status=$?
12141 grep -v '^ *+' conftest.er1 >conftest.err
12142 rm -f conftest.er1
12143 cat conftest.err >&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012145 (exit $ac_status); } &&
12146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12147 { (case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12150esac
12151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_try") 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try='test -s conftest$ac_exeext'
12157 { (case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12160esac
12161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162 (eval "$ac_try") 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012166 eval "$as_ac_var=yes"
12167else
12168 echo "$as_me: failed program was:" >&5
12169sed 's/^/| /' conftest.$ac_ext >&5
12170
Reid Spencera773bd52006-08-04 18:18:08 +000012171 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012172fi
Reid Spencera773bd52006-08-04 18:18:08 +000012173
Bill Wendlingebcceee2009-04-18 11:20:33 +000012174rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012175 conftest$ac_exeext conftest.$ac_ext
12176fi
Reid Spencera773bd52006-08-04 18:18:08 +000012177ac_res=`eval echo '${'$as_ac_var'}'`
12178 { echo "$as_me:$LINENO: result: $ac_res" >&5
12179echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012180if test `eval echo '${'$as_ac_var'}'` = yes; then
12181 cat >>confdefs.h <<_ACEOF
12182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12183_ACEOF
12184 break
12185fi
12186done
12187
12188
12189
12190for ac_func in strrchr rindex
12191do
12192as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012193{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12195if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012196 echo $ECHO_N "(cached) $ECHO_C" >&6
12197else
12198 cat >conftest.$ac_ext <<_ACEOF
12199/* confdefs.h. */
12200_ACEOF
12201cat confdefs.h >>conftest.$ac_ext
12202cat >>conftest.$ac_ext <<_ACEOF
12203/* end confdefs.h. */
12204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12206#define $ac_func innocuous_$ac_func
12207
12208/* System header to define __stub macros and hopefully few prototypes,
12209 which can conflict with char $ac_func (); below.
12210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12211 <limits.h> exists even on freestanding compilers. */
12212
12213#ifdef __STDC__
12214# include <limits.h>
12215#else
12216# include <assert.h>
12217#endif
12218
12219#undef $ac_func
12220
Reid Spencera773bd52006-08-04 18:18:08 +000012221/* Override any GCC internal prototype to avoid an error.
12222 Use char because int might match the return type of a GCC
12223 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012224#ifdef __cplusplus
12225extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012226#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012227char $ac_func ();
12228/* The GNU C library defines this for functions which it implements
12229 to always fail with ENOSYS. Some functions are actually named
12230 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012231#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012232choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012233#endif
12234
12235int
12236main ()
12237{
Reid Spencera773bd52006-08-04 18:18:08 +000012238return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012239 ;
12240 return 0;
12241}
12242_ACEOF
12243rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012244if { (ac_try="$ac_link"
12245case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12248esac
12249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12258 { (case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261esac
12262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_try") 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest$ac_exeext'
12268 { (case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12271esac
12272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_try") 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012277 eval "$as_ac_var=yes"
12278else
12279 echo "$as_me: failed program was:" >&5
12280sed 's/^/| /' conftest.$ac_ext >&5
12281
Reid Spencera773bd52006-08-04 18:18:08 +000012282 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012283fi
Reid Spencera773bd52006-08-04 18:18:08 +000012284
Bill Wendlingebcceee2009-04-18 11:20:33 +000012285rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012286 conftest$ac_exeext conftest.$ac_ext
12287fi
Reid Spencera773bd52006-08-04 18:18:08 +000012288ac_res=`eval echo '${'$as_ac_var'}'`
12289 { echo "$as_me:$LINENO: result: $ac_res" >&5
12290echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012291if test `eval echo '${'$as_ac_var'}'` = yes; then
12292 cat >>confdefs.h <<_ACEOF
12293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12294_ACEOF
12295 break
12296fi
12297done
12298
12299
12300
12301for ac_func in memcpy bcopy
12302do
12303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012304{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12306if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308else
12309 cat >conftest.$ac_ext <<_ACEOF
12310/* confdefs.h. */
12311_ACEOF
12312cat confdefs.h >>conftest.$ac_ext
12313cat >>conftest.$ac_ext <<_ACEOF
12314/* end confdefs.h. */
12315/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12317#define $ac_func innocuous_$ac_func
12318
12319/* System header to define __stub macros and hopefully few prototypes,
12320 which can conflict with char $ac_func (); below.
12321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12322 <limits.h> exists even on freestanding compilers. */
12323
12324#ifdef __STDC__
12325# include <limits.h>
12326#else
12327# include <assert.h>
12328#endif
12329
12330#undef $ac_func
12331
Reid Spencera773bd52006-08-04 18:18:08 +000012332/* Override any GCC internal prototype to avoid an error.
12333 Use char because int might match the return type of a GCC
12334 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012335#ifdef __cplusplus
12336extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012337#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012338char $ac_func ();
12339/* The GNU C library defines this for functions which it implements
12340 to always fail with ENOSYS. Some functions are actually named
12341 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012342#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012343choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012344#endif
12345
12346int
12347main ()
12348{
Reid Spencera773bd52006-08-04 18:18:08 +000012349return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012350 ;
12351 return 0;
12352}
12353_ACEOF
12354rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012355if { (ac_try="$ac_link"
12356case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12359esac
12360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012362 ac_status=$?
12363 grep -v '^ *+' conftest.er1 >conftest.err
12364 rm -f conftest.er1
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012367 (exit $ac_status); } &&
12368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12369 { (case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372esac
12373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_try") 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest$ac_exeext'
12379 { (case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12382esac
12383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_try") 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012388 eval "$as_ac_var=yes"
12389else
12390 echo "$as_me: failed program was:" >&5
12391sed 's/^/| /' conftest.$ac_ext >&5
12392
Reid Spencera773bd52006-08-04 18:18:08 +000012393 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012394fi
Reid Spencera773bd52006-08-04 18:18:08 +000012395
Bill Wendlingebcceee2009-04-18 11:20:33 +000012396rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012397 conftest$ac_exeext conftest.$ac_ext
12398fi
Reid Spencera773bd52006-08-04 18:18:08 +000012399ac_res=`eval echo '${'$as_ac_var'}'`
12400 { echo "$as_me:$LINENO: result: $ac_res" >&5
12401echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012402if test `eval echo '${'$as_ac_var'}'` = yes; then
12403 cat >>confdefs.h <<_ACEOF
12404#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12405_ACEOF
12406 break
12407fi
12408done
12409
12410
12411
12412for ac_func in memmove strcmp
12413do
12414as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012415{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12416echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12417if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012418 echo $ECHO_N "(cached) $ECHO_C" >&6
12419else
12420 cat >conftest.$ac_ext <<_ACEOF
12421/* confdefs.h. */
12422_ACEOF
12423cat confdefs.h >>conftest.$ac_ext
12424cat >>conftest.$ac_ext <<_ACEOF
12425/* end confdefs.h. */
12426/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12428#define $ac_func innocuous_$ac_func
12429
12430/* System header to define __stub macros and hopefully few prototypes,
12431 which can conflict with char $ac_func (); below.
12432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12433 <limits.h> exists even on freestanding compilers. */
12434
12435#ifdef __STDC__
12436# include <limits.h>
12437#else
12438# include <assert.h>
12439#endif
12440
12441#undef $ac_func
12442
Reid Spencera773bd52006-08-04 18:18:08 +000012443/* Override any GCC internal prototype to avoid an error.
12444 Use char because int might match the return type of a GCC
12445 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012446#ifdef __cplusplus
12447extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012448#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012449char $ac_func ();
12450/* The GNU C library defines this for functions which it implements
12451 to always fail with ENOSYS. Some functions are actually named
12452 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012453#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012454choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012455#endif
12456
12457int
12458main ()
12459{
Reid Spencera773bd52006-08-04 18:18:08 +000012460return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012461 ;
12462 return 0;
12463}
12464_ACEOF
12465rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012466if { (ac_try="$ac_link"
12467case "(($ac_try" in
12468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12469 *) ac_try_echo=$ac_try;;
12470esac
12471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12472 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012473 ac_status=$?
12474 grep -v '^ *+' conftest.er1 >conftest.err
12475 rm -f conftest.er1
12476 cat conftest.err >&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012478 (exit $ac_status); } &&
12479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12480 { (case "(($ac_try" in
12481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482 *) ac_try_echo=$ac_try;;
12483esac
12484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485 (eval "$ac_try") 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; } &&
12489 { ac_try='test -s conftest$ac_exeext'
12490 { (case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12493esac
12494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_try") 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012499 eval "$as_ac_var=yes"
12500else
12501 echo "$as_me: failed program was:" >&5
12502sed 's/^/| /' conftest.$ac_ext >&5
12503
Reid Spencera773bd52006-08-04 18:18:08 +000012504 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012505fi
Reid Spencera773bd52006-08-04 18:18:08 +000012506
Bill Wendlingebcceee2009-04-18 11:20:33 +000012507rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012508 conftest$ac_exeext conftest.$ac_ext
12509fi
Reid Spencera773bd52006-08-04 18:18:08 +000012510ac_res=`eval echo '${'$as_ac_var'}'`
12511 { echo "$as_me:$LINENO: result: $ac_res" >&5
12512echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012513if test `eval echo '${'$as_ac_var'}'` = yes; then
12514 cat >>confdefs.h <<_ACEOF
12515#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12516_ACEOF
12517
12518fi
12519done
12520
12521
12522
12523
12524for ac_func in closedir opendir readdir
12525do
12526as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012527{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12528echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12529if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012530 echo $ECHO_N "(cached) $ECHO_C" >&6
12531else
12532 cat >conftest.$ac_ext <<_ACEOF
12533/* confdefs.h. */
12534_ACEOF
12535cat confdefs.h >>conftest.$ac_ext
12536cat >>conftest.$ac_ext <<_ACEOF
12537/* end confdefs.h. */
12538/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12540#define $ac_func innocuous_$ac_func
12541
12542/* System header to define __stub macros and hopefully few prototypes,
12543 which can conflict with char $ac_func (); below.
12544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12545 <limits.h> exists even on freestanding compilers. */
12546
12547#ifdef __STDC__
12548# include <limits.h>
12549#else
12550# include <assert.h>
12551#endif
12552
12553#undef $ac_func
12554
Reid Spencera773bd52006-08-04 18:18:08 +000012555/* Override any GCC internal prototype to avoid an error.
12556 Use char because int might match the return type of a GCC
12557 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012558#ifdef __cplusplus
12559extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012560#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012561char $ac_func ();
12562/* The GNU C library defines this for functions which it implements
12563 to always fail with ENOSYS. Some functions are actually named
12564 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012565#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012566choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012567#endif
12568
12569int
12570main ()
12571{
Reid Spencera773bd52006-08-04 18:18:08 +000012572return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012573 ;
12574 return 0;
12575}
12576_ACEOF
12577rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012578if { (ac_try="$ac_link"
12579case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582esac
12583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012585 ac_status=$?
12586 grep -v '^ *+' conftest.er1 >conftest.err
12587 rm -f conftest.er1
12588 cat conftest.err >&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012590 (exit $ac_status); } &&
12591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12592 { (case "(($ac_try" in
12593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594 *) ac_try_echo=$ac_try;;
12595esac
12596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12597 (eval "$ac_try") 2>&5
12598 ac_status=$?
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; } &&
12601 { ac_try='test -s conftest$ac_exeext'
12602 { (case "(($ac_try" in
12603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12604 *) ac_try_echo=$ac_try;;
12605esac
12606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12607 (eval "$ac_try") 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012611 eval "$as_ac_var=yes"
12612else
12613 echo "$as_me: failed program was:" >&5
12614sed 's/^/| /' conftest.$ac_ext >&5
12615
Reid Spencera773bd52006-08-04 18:18:08 +000012616 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012617fi
Reid Spencera773bd52006-08-04 18:18:08 +000012618
Bill Wendlingebcceee2009-04-18 11:20:33 +000012619rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012620 conftest$ac_exeext conftest.$ac_ext
12621fi
Reid Spencera773bd52006-08-04 18:18:08 +000012622ac_res=`eval echo '${'$as_ac_var'}'`
12623 { echo "$as_me:$LINENO: result: $ac_res" >&5
12624echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012625if test `eval echo '${'$as_ac_var'}'` = yes; then
12626 cat >>confdefs.h <<_ACEOF
12627#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12628_ACEOF
12629
12630fi
12631done
12632
12633
Reid Spencera773bd52006-08-04 18:18:08 +000012634# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012635if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012636 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012637 case $enableval in
12638 yes) enable_shared=yes ;;
12639 no) enable_shared=no ;;
12640 *)
12641 enable_shared=no
12642 # Look at the argument we got. We use all the common list separators.
12643 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12644 for pkg in $enableval; do
12645 IFS="$lt_save_ifs"
12646 if test "X$pkg" = "X$p"; then
12647 enable_shared=yes
12648 fi
12649 done
12650 IFS="$lt_save_ifs"
12651 ;;
12652 esac
12653else
12654 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012655fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012656
Reid Spencera773bd52006-08-04 18:18:08 +000012657
12658# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012659if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012660 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012661 case $enableval in
12662 yes) enable_static=yes ;;
12663 no) enable_static=no ;;
12664 *)
12665 enable_static=no
12666 # Look at the argument we got. We use all the common list separators.
12667 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12668 for pkg in $enableval; do
12669 IFS="$lt_save_ifs"
12670 if test "X$pkg" = "X$p"; then
12671 enable_static=yes
12672 fi
12673 done
12674 IFS="$lt_save_ifs"
12675 ;;
12676 esac
12677else
12678 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012679fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012680
Reid Spencera773bd52006-08-04 18:18:08 +000012681
12682# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012683if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012684 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012685 case $enableval in
12686 yes) enable_fast_install=yes ;;
12687 no) enable_fast_install=no ;;
12688 *)
12689 enable_fast_install=no
12690 # Look at the argument we got. We use all the common list separators.
12691 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12692 for pkg in $enableval; do
12693 IFS="$lt_save_ifs"
12694 if test "X$pkg" = "X$p"; then
12695 enable_fast_install=yes
12696 fi
12697 done
12698 IFS="$lt_save_ifs"
12699 ;;
12700 esac
12701else
12702 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012703fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012704
Reid Spencera773bd52006-08-04 18:18:08 +000012705
12706{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12707echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012708if test "${lt_cv_path_SED+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12710else
12711 # Loop through the user's path and test for sed and gsed.
12712# Then use that list of sed's as ones to test for truncation.
12713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714for as_dir in $PATH
12715do
12716 IFS=$as_save_IFS
12717 test -z "$as_dir" && as_dir=.
12718 for lt_ac_prog in sed gsed; do
12719 for ac_exec_ext in '' $ac_executable_extensions; do
12720 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12721 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12722 fi
12723 done
12724 done
12725done
12726lt_ac_max=0
12727lt_ac_count=0
12728# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12729# along with /bin/sed that truncates output.
12730for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012731 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012732 cat /dev/null > conftest.in
12733 lt_ac_count=0
12734 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12735 # Check for GNU sed and select it if it is found.
12736 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12737 lt_cv_path_SED=$lt_ac_sed
12738 break
12739 fi
12740 while true; do
12741 cat conftest.in conftest.in >conftest.tmp
12742 mv conftest.tmp conftest.in
12743 cp conftest.in conftest.nl
12744 echo >>conftest.nl
12745 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12746 cmp -s conftest.out conftest.nl || break
12747 # 10000 chars as input seems more than enough
12748 test $lt_ac_count -gt 10 && break
12749 lt_ac_count=`expr $lt_ac_count + 1`
12750 if test $lt_ac_count -gt $lt_ac_max; then
12751 lt_ac_max=$lt_ac_count
12752 lt_cv_path_SED=$lt_ac_sed
12753 fi
12754 done
12755done
12756
12757fi
12758
12759SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012760{ echo "$as_me:$LINENO: result: $SED" >&5
12761echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012762
12763
Reid Spencera773bd52006-08-04 18:18:08 +000012764# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012765if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012766 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012767else
12768 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012769fi
12770
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012771ac_prog=ld
12772if test "$GCC" = yes; then
12773 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012774 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12775echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012776 case $host in
12777 *-*-mingw*)
12778 # gcc leaves a trailing carriage return which upsets mingw
12779 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12780 *)
12781 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12782 esac
12783 case $ac_prog in
12784 # Accept absolute paths.
12785 [\\/]* | ?:[\\/]*)
12786 re_direlt='/[^/][^/]*/\.\./'
12787 # Canonicalize the pathname of ld
12788 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12789 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12790 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12791 done
12792 test -z "$LD" && LD="$ac_prog"
12793 ;;
12794 "")
12795 # If it fails, then pretend we aren't using GCC.
12796 ac_prog=ld
12797 ;;
12798 *)
12799 # If it is relative, then search for the first ld in PATH.
12800 with_gnu_ld=unknown
12801 ;;
12802 esac
12803elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012804 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12805echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012806else
Reid Spencera773bd52006-08-04 18:18:08 +000012807 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12808echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012809fi
12810if test "${lt_cv_path_LD+set}" = set; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12812else
12813 if test -z "$LD"; then
12814 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12815 for ac_dir in $PATH; do
12816 IFS="$lt_save_ifs"
12817 test -z "$ac_dir" && ac_dir=.
12818 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12819 lt_cv_path_LD="$ac_dir/$ac_prog"
12820 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012821 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012822 # Break only if it was the GNU/non-GNU ld that we prefer.
12823 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12824 *GNU* | *'with BFD'*)
12825 test "$with_gnu_ld" != no && break
12826 ;;
12827 *)
12828 test "$with_gnu_ld" != yes && break
12829 ;;
12830 esac
12831 fi
12832 done
12833 IFS="$lt_save_ifs"
12834else
12835 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12836fi
12837fi
12838
12839LD="$lt_cv_path_LD"
12840if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012841 { echo "$as_me:$LINENO: result: $LD" >&5
12842echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012843else
Reid Spencera773bd52006-08-04 18:18:08 +000012844 { echo "$as_me:$LINENO: result: no" >&5
12845echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012846fi
12847test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12848echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12849 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012850{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12851echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012852if test "${lt_cv_prog_gnu_ld+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854else
Reid Spencera773bd52006-08-04 18:18:08 +000012855 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012856case `$LD -v 2>&1 </dev/null` in
12857*GNU* | *'with BFD'*)
12858 lt_cv_prog_gnu_ld=yes
12859 ;;
12860*)
12861 lt_cv_prog_gnu_ld=no
12862 ;;
12863esac
12864fi
Reid Spencera773bd52006-08-04 18:18:08 +000012865{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12866echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012867with_gnu_ld=$lt_cv_prog_gnu_ld
12868
12869
Reid Spencera773bd52006-08-04 18:18:08 +000012870{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12871echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012872if test "${lt_cv_ld_reload_flag+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12874else
12875 lt_cv_ld_reload_flag='-r'
12876fi
Reid Spencera773bd52006-08-04 18:18:08 +000012877{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12878echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012879reload_flag=$lt_cv_ld_reload_flag
12880case $reload_flag in
12881"" | " "*) ;;
12882*) reload_flag=" $reload_flag" ;;
12883esac
12884reload_cmds='$LD$reload_flag -o $output$reload_objs'
12885case $host_os in
12886 darwin*)
12887 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012888 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012889 else
12890 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12891 fi
12892 ;;
12893esac
12894
Reid Spencera773bd52006-08-04 18:18:08 +000012895{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12896echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012897if test "${lt_cv_deplibs_check_method+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12899else
12900 lt_cv_file_magic_cmd='$MAGIC_CMD'
12901lt_cv_file_magic_test_file=
12902lt_cv_deplibs_check_method='unknown'
12903# Need to set the preceding variable on all platforms that support
12904# interlibrary dependencies.
12905# 'none' -- dependencies not supported.
12906# `unknown' -- same as none, but documents that we really don't know.
12907# 'pass_all' -- all dependencies passed with no checks.
12908# 'test_compile' -- check by making test program.
12909# 'file_magic [[regex]]' -- check by looking for files in library path
12910# which responds to the $file_magic_cmd with a given extended regex.
12911# If you have `file' or equivalent on your system and you're not sure
12912# whether `pass_all' will *always* work, you probably want this one.
12913
12914case $host_os in
12915aix4* | aix5*)
12916 lt_cv_deplibs_check_method=pass_all
12917 ;;
12918
12919beos*)
12920 lt_cv_deplibs_check_method=pass_all
12921 ;;
12922
12923bsdi[45]*)
12924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12925 lt_cv_file_magic_cmd='/usr/bin/file -L'
12926 lt_cv_file_magic_test_file=/shlib/libc.so
12927 ;;
12928
12929cygwin*)
12930 # func_win32_libid is a shell function defined in ltmain.sh
12931 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12932 lt_cv_file_magic_cmd='func_win32_libid'
12933 ;;
12934
12935mingw* | pw32*)
12936 # Base MSYS/MinGW do not provide the 'file' command needed by
12937 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12938 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12939 lt_cv_file_magic_cmd='$OBJDUMP -f'
12940 ;;
12941
12942darwin* | rhapsody*)
12943 lt_cv_deplibs_check_method=pass_all
12944 ;;
12945
Reid Spencera773bd52006-08-04 18:18:08 +000012946freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012947 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12948 case $host_cpu in
12949 i*86 )
12950 # Not sure whether the presence of OpenBSD here was a mistake.
12951 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012952 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 +000012953 lt_cv_file_magic_cmd=/usr/bin/file
12954 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12955 ;;
12956 esac
12957 else
12958 lt_cv_deplibs_check_method=pass_all
12959 fi
12960 ;;
12961
12962gnu*)
12963 lt_cv_deplibs_check_method=pass_all
12964 ;;
12965
12966hpux10.20* | hpux11*)
12967 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012968 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012969 ia64*)
12970 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12971 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12972 ;;
12973 hppa*64*)
12974 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]'
12975 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12976 ;;
12977 *)
12978 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12979 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12980 ;;
12981 esac
12982 ;;
12983
Reid Spencera773bd52006-08-04 18:18:08 +000012984interix3*)
12985 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12986 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12987 ;;
12988
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012989irix5* | irix6* | nonstopux*)
12990 case $LD in
12991 *-32|*"-32 ") libmagic=32-bit;;
12992 *-n32|*"-n32 ") libmagic=N32;;
12993 *-64|*"-64 ") libmagic=64-bit;;
12994 *) libmagic=never-match;;
12995 esac
12996 lt_cv_deplibs_check_method=pass_all
12997 ;;
12998
12999# This must be Linux ELF.
13000linux*)
13001 lt_cv_deplibs_check_method=pass_all
13002 ;;
13003
13004netbsd*)
13005 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13007 else
13008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13009 fi
13010 ;;
13011
13012newos6*)
13013 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13014 lt_cv_file_magic_cmd=/usr/bin/file
13015 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13016 ;;
13017
13018nto-qnx*)
13019 lt_cv_deplibs_check_method=unknown
13020 ;;
13021
13022openbsd*)
13023 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13025 else
13026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13027 fi
13028 ;;
13029
13030osf3* | osf4* | osf5*)
13031 lt_cv_deplibs_check_method=pass_all
13032 ;;
13033
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013034solaris*)
13035 lt_cv_deplibs_check_method=pass_all
13036 ;;
13037
Reid Spencera773bd52006-08-04 18:18:08 +000013038sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013039 case $host_vendor in
13040 motorola)
13041 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]'
13042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13043 ;;
13044 ncr)
13045 lt_cv_deplibs_check_method=pass_all
13046 ;;
13047 sequent)
13048 lt_cv_file_magic_cmd='/bin/file'
13049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13050 ;;
13051 sni)
13052 lt_cv_file_magic_cmd='/bin/file'
13053 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13054 lt_cv_file_magic_test_file=/lib/libc.so
13055 ;;
13056 siemens)
13057 lt_cv_deplibs_check_method=pass_all
13058 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013059 pc)
13060 lt_cv_deplibs_check_method=pass_all
13061 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013062 esac
13063 ;;
13064
Reid Spencera773bd52006-08-04 18:18:08 +000013065sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013066 lt_cv_deplibs_check_method=pass_all
13067 ;;
13068esac
13069
13070fi
Reid Spencera773bd52006-08-04 18:18:08 +000013071{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13072echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013073file_magic_cmd=$lt_cv_file_magic_cmd
13074deplibs_check_method=$lt_cv_deplibs_check_method
13075test -z "$deplibs_check_method" && deplibs_check_method=unknown
13076
13077
13078
13079# If no C compiler was specified, use CC.
13080LTCC=${LTCC-"$CC"}
13081
Reid Spencera773bd52006-08-04 18:18:08 +000013082# If no C compiler flags were specified, use CFLAGS.
13083LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13084
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013085# Allow CC to be a program name with arguments.
13086compiler=$CC
13087
Reid Spencera773bd52006-08-04 18:18:08 +000013088# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013089if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013090 enableval=$enable_libtool_lock;
13091fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013092
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013093test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13094
13095# Some flags need to be propagated to the compiler or linker for good
13096# libtool support.
13097case $host in
13098ia64-*-hpux*)
13099 # Find out which ABI we are using.
13100 echo 'int i;' > conftest.$ac_ext
13101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13102 (eval $ac_compile) 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; then
13106 case `/usr/bin/file conftest.$ac_objext` in
13107 *ELF-32*)
13108 HPUX_IA64_MODE="32"
13109 ;;
13110 *ELF-64*)
13111 HPUX_IA64_MODE="64"
13112 ;;
13113 esac
13114 fi
13115 rm -rf conftest*
13116 ;;
13117*-*-irix6*)
13118 # Find out which ABI we are using.
Gabor Greif4c750542009-08-27 17:07:35 +000013119 echo '#line 13119 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13121 (eval $ac_compile) 2>&5
13122 ac_status=$?
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; then
13125 if test "$lt_cv_prog_gnu_ld" = yes; then
13126 case `/usr/bin/file conftest.$ac_objext` in
13127 *32-bit*)
13128 LD="${LD-ld} -melf32bsmip"
13129 ;;
13130 *N32*)
13131 LD="${LD-ld} -melf32bmipn32"
13132 ;;
13133 *64-bit*)
13134 LD="${LD-ld} -melf64bmip"
13135 ;;
13136 esac
13137 else
13138 case `/usr/bin/file conftest.$ac_objext` in
13139 *32-bit*)
13140 LD="${LD-ld} -32"
13141 ;;
13142 *N32*)
13143 LD="${LD-ld} -n32"
13144 ;;
13145 *64-bit*)
13146 LD="${LD-ld} -64"
13147 ;;
13148 esac
13149 fi
13150 fi
13151 rm -rf conftest*
13152 ;;
13153
13154x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13155 # Find out which ABI we are using.
13156 echo 'int i;' > conftest.$ac_ext
13157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13158 (eval $ac_compile) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013162 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013163 *32-bit*)
13164 case $host in
13165 x86_64-*linux*)
13166 LD="${LD-ld} -m elf_i386"
13167 ;;
13168 ppc64-*linux*|powerpc64-*linux*)
13169 LD="${LD-ld} -m elf32ppclinux"
13170 ;;
13171 s390x-*linux*)
13172 LD="${LD-ld} -m elf_s390"
13173 ;;
13174 sparc64-*linux*)
13175 LD="${LD-ld} -m elf32_sparc"
13176 ;;
13177 esac
13178 ;;
13179 *64-bit*)
13180 case $host in
13181 x86_64-*linux*)
13182 LD="${LD-ld} -m elf_x86_64"
13183 ;;
13184 ppc*-*linux*|powerpc*-*linux*)
13185 LD="${LD-ld} -m elf64ppc"
13186 ;;
13187 s390*-*linux*)
13188 LD="${LD-ld} -m elf64_s390"
13189 ;;
13190 sparc*-*linux*)
13191 LD="${LD-ld} -m elf64_sparc"
13192 ;;
13193 esac
13194 ;;
13195 esac
13196 fi
13197 rm -rf conftest*
13198 ;;
13199
13200*-*-sco3.2v5*)
13201 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13202 SAVE_CFLAGS="$CFLAGS"
13203 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013204 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13205echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013206if test "${lt_cv_cc_needs_belf+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13208else
13209 ac_ext=c
13210ac_cpp='$CPP $CPPFLAGS'
13211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13213ac_compiler_gnu=$ac_cv_c_compiler_gnu
13214
13215 cat >conftest.$ac_ext <<_ACEOF
13216/* confdefs.h. */
13217_ACEOF
13218cat confdefs.h >>conftest.$ac_ext
13219cat >>conftest.$ac_ext <<_ACEOF
13220/* end confdefs.h. */
13221
Reid Spencera773bd52006-08-04 18:18:08 +000013222int
13223main ()
13224{
13225
13226 ;
13227 return 0;
13228}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013229_ACEOF
13230rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013231if { (ac_try="$ac_link"
13232case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13235esac
13236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013238 ac_status=$?
13239 grep -v '^ *+' conftest.er1 >conftest.err
13240 rm -f conftest.er1
13241 cat conftest.err >&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013243 (exit $ac_status); } &&
13244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13245 { (case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13248esac
13249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250 (eval "$ac_try") 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest$ac_exeext'
13255 { (case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13258esac
13259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_try") 2>&5
13261 ac_status=$?
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013264 lt_cv_cc_needs_belf=yes
13265else
13266 echo "$as_me: failed program was:" >&5
13267sed 's/^/| /' conftest.$ac_ext >&5
13268
Reid Spencera773bd52006-08-04 18:18:08 +000013269 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013270fi
Reid Spencera773bd52006-08-04 18:18:08 +000013271
Bill Wendlingebcceee2009-04-18 11:20:33 +000013272rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013273 conftest$ac_exeext conftest.$ac_ext
13274 ac_ext=c
13275ac_cpp='$CPP $CPPFLAGS'
13276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13278ac_compiler_gnu=$ac_cv_c_compiler_gnu
13279
13280fi
Reid Spencera773bd52006-08-04 18:18:08 +000013281{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13282echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013283 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13284 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13285 CFLAGS="$SAVE_CFLAGS"
13286 fi
13287 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013288sparc*-*solaris*)
13289 # Find out which ABI we are using.
13290 echo 'int i;' > conftest.$ac_ext
13291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13292 (eval $ac_compile) 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; then
13296 case `/usr/bin/file conftest.o` in
13297 *64-bit*)
13298 case $lt_cv_prog_gnu_ld in
13299 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13300 *) LD="${LD-ld} -64" ;;
13301 esac
13302 ;;
13303 esac
13304 fi
13305 rm -rf conftest*
13306 ;;
13307
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013308
13309esac
13310
13311need_locks="$enable_libtool_lock"
13312
13313
Reid Spencer2706f8c2004-09-19 23:53:36 +000013314
13315
13316if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13317 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13318 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013319 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013320ac_cpp='$CXXCPP $CPPFLAGS'
13321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013324{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13325echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013326if test -z "$CXXCPP"; then
13327 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013328 echo $ECHO_N "(cached) $ECHO_C" >&6
13329else
John Criswell47fdd832003-07-14 16:52:07 +000013330 # Double quotes because CXXCPP needs to be expanded
13331 for CXXCPP in "$CXX -E" "/lib/cpp"
13332 do
13333 ac_preproc_ok=false
13334for ac_cxx_preproc_warn_flag in '' yes
13335do
13336 # Use a header file that comes with gcc, so configuring glibc
13337 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13339 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013340 # On the NeXT, cc -E runs the code through the compiler's parser,
13341 # not just through cpp. "Syntax error" is here to catch this case.
13342 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013343/* confdefs.h. */
13344_ACEOF
13345cat confdefs.h >>conftest.$ac_ext
13346cat >>conftest.$ac_ext <<_ACEOF
13347/* end confdefs.h. */
13348#ifdef __STDC__
13349# include <limits.h>
13350#else
13351# include <assert.h>
13352#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013353 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013354_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013355if { (ac_try="$ac_cpp conftest.$ac_ext"
13356case "(($ac_try" in
13357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358 *) ac_try_echo=$ac_try;;
13359esac
13360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013362 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013363 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013364 rm -f conftest.er1
13365 cat conftest.err >&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013367 (exit $ac_status); } >/dev/null; then
13368 if test -s conftest.err; then
13369 ac_cpp_err=$ac_cxx_preproc_warn_flag
13370 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13371 else
13372 ac_cpp_err=
13373 fi
13374else
13375 ac_cpp_err=yes
13376fi
13377if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013378 :
13379else
13380 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013381sed 's/^/| /' conftest.$ac_ext >&5
13382
John Criswell47fdd832003-07-14 16:52:07 +000013383 # Broken: fails on valid input.
13384continue
13385fi
Reid Spencera773bd52006-08-04 18:18:08 +000013386
John Criswell47fdd832003-07-14 16:52:07 +000013387rm -f conftest.err conftest.$ac_ext
13388
Reid Spencera773bd52006-08-04 18:18:08 +000013389 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013390 # can be detected and how.
13391 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013392/* confdefs.h. */
13393_ACEOF
13394cat confdefs.h >>conftest.$ac_ext
13395cat >>conftest.$ac_ext <<_ACEOF
13396/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013397#include <ac_nonexistent.h>
13398_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013399if { (ac_try="$ac_cpp conftest.$ac_ext"
13400case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13403esac
13404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013406 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013407 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013411 (exit $ac_status); } >/dev/null; then
13412 if test -s conftest.err; then
13413 ac_cpp_err=$ac_cxx_preproc_warn_flag
13414 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13415 else
13416 ac_cpp_err=
13417 fi
13418else
13419 ac_cpp_err=yes
13420fi
13421if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013422 # Broken: success on invalid input.
13423continue
13424else
13425 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013426sed 's/^/| /' conftest.$ac_ext >&5
13427
John Criswell47fdd832003-07-14 16:52:07 +000013428 # Passes both tests.
13429ac_preproc_ok=:
13430break
13431fi
Reid Spencera773bd52006-08-04 18:18:08 +000013432
John Criswell47fdd832003-07-14 16:52:07 +000013433rm -f conftest.err conftest.$ac_ext
13434
13435done
13436# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13437rm -f conftest.err conftest.$ac_ext
13438if $ac_preproc_ok; then
13439 break
John Criswell7a73b802003-06-30 21:59:07 +000013440fi
13441
John Criswell47fdd832003-07-14 16:52:07 +000013442 done
13443 ac_cv_prog_CXXCPP=$CXXCPP
13444
13445fi
13446 CXXCPP=$ac_cv_prog_CXXCPP
13447else
13448 ac_cv_prog_CXXCPP=$CXXCPP
13449fi
Reid Spencera773bd52006-08-04 18:18:08 +000013450{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13451echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013452ac_preproc_ok=false
13453for ac_cxx_preproc_warn_flag in '' yes
13454do
13455 # Use a header file that comes with gcc, so configuring glibc
13456 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13458 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013459 # On the NeXT, cc -E runs the code through the compiler's parser,
13460 # not just through cpp. "Syntax error" is here to catch this case.
13461 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013462/* confdefs.h. */
13463_ACEOF
13464cat confdefs.h >>conftest.$ac_ext
13465cat >>conftest.$ac_ext <<_ACEOF
13466/* end confdefs.h. */
13467#ifdef __STDC__
13468# include <limits.h>
13469#else
13470# include <assert.h>
13471#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013472 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013473_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013474if { (ac_try="$ac_cpp conftest.$ac_ext"
13475case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13478esac
13479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013481 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013482 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013483 rm -f conftest.er1
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013486 (exit $ac_status); } >/dev/null; then
13487 if test -s conftest.err; then
13488 ac_cpp_err=$ac_cxx_preproc_warn_flag
13489 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13490 else
13491 ac_cpp_err=
13492 fi
13493else
13494 ac_cpp_err=yes
13495fi
13496if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013497 :
13498else
13499 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013500sed 's/^/| /' conftest.$ac_ext >&5
13501
John Criswell47fdd832003-07-14 16:52:07 +000013502 # Broken: fails on valid input.
13503continue
13504fi
Reid Spencera773bd52006-08-04 18:18:08 +000013505
John Criswell47fdd832003-07-14 16:52:07 +000013506rm -f conftest.err conftest.$ac_ext
13507
Reid Spencera773bd52006-08-04 18:18:08 +000013508 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013509 # can be detected and how.
13510 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013511/* confdefs.h. */
13512_ACEOF
13513cat confdefs.h >>conftest.$ac_ext
13514cat >>conftest.$ac_ext <<_ACEOF
13515/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013516#include <ac_nonexistent.h>
13517_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013518if { (ac_try="$ac_cpp conftest.$ac_ext"
13519case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13522esac
13523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013525 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013526 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013527 rm -f conftest.er1
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013530 (exit $ac_status); } >/dev/null; then
13531 if test -s conftest.err; then
13532 ac_cpp_err=$ac_cxx_preproc_warn_flag
13533 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13534 else
13535 ac_cpp_err=
13536 fi
13537else
13538 ac_cpp_err=yes
13539fi
13540if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013541 # Broken: success on invalid input.
13542continue
13543else
13544 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013545sed 's/^/| /' conftest.$ac_ext >&5
13546
John Criswell47fdd832003-07-14 16:52:07 +000013547 # Passes both tests.
13548ac_preproc_ok=:
13549break
13550fi
Reid Spencera773bd52006-08-04 18:18:08 +000013551
John Criswell47fdd832003-07-14 16:52:07 +000013552rm -f conftest.err conftest.$ac_ext
13553
13554done
13555# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13556rm -f conftest.err conftest.$ac_ext
13557if $ac_preproc_ok; then
13558 :
13559else
John Criswell0c38eaf2003-09-10 15:17:25 +000013560 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13561See \`config.log' for more details." >&5
13562echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13563See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013564 { (exit 1); exit 1; }; }
13565fi
13566
Reid Spencera773bd52006-08-04 18:18:08 +000013567ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013568ac_cpp='$CXXCPP $CPPFLAGS'
13569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13572
Reid Spencer2706f8c2004-09-19 23:53:36 +000013573fi
13574
John Criswell47fdd832003-07-14 16:52:07 +000013575
13576ac_ext=f
13577ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13578ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13579ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13580if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013581 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 +000013582 do
13583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13584set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013587if test "${ac_cv_prog_F77+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589else
13590 if test -n "$F77"; then
13591 ac_cv_prog_F77="$F77" # Let the user override the test.
13592else
13593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13594for as_dir in $PATH
13595do
13596 IFS=$as_save_IFS
13597 test -z "$as_dir" && as_dir=.
13598 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013599 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 +000013600 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13602 break 2
13603 fi
13604done
13605done
Reid Spencera773bd52006-08-04 18:18:08 +000013606IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013607
13608fi
13609fi
13610F77=$ac_cv_prog_F77
13611if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013612 { echo "$as_me:$LINENO: result: $F77" >&5
13613echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013614else
Reid Spencera773bd52006-08-04 18:18:08 +000013615 { echo "$as_me:$LINENO: result: no" >&5
13616echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013617fi
13618
Reid Spencera773bd52006-08-04 18:18:08 +000013619
John Criswell47fdd832003-07-14 16:52:07 +000013620 test -n "$F77" && break
13621 done
13622fi
13623if test -z "$F77"; then
13624 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013625 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 +000013626do
13627 # Extract the first word of "$ac_prog", so it can be a program name with args.
13628set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013631if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13633else
13634 if test -n "$ac_ct_F77"; then
13635 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13636else
13637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638for as_dir in $PATH
13639do
13640 IFS=$as_save_IFS
13641 test -z "$as_dir" && as_dir=.
13642 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013643 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 +000013644 ac_cv_prog_ac_ct_F77="$ac_prog"
13645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13646 break 2
13647 fi
13648done
13649done
Reid Spencera773bd52006-08-04 18:18:08 +000013650IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013651
13652fi
13653fi
13654ac_ct_F77=$ac_cv_prog_ac_ct_F77
13655if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013656 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13657echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013658else
Reid Spencera773bd52006-08-04 18:18:08 +000013659 { echo "$as_me:$LINENO: result: no" >&5
13660echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013661fi
13662
Reid Spencera773bd52006-08-04 18:18:08 +000013663
John Criswell47fdd832003-07-14 16:52:07 +000013664 test -n "$ac_ct_F77" && break
13665done
13666
Reid Spencera773bd52006-08-04 18:18:08 +000013667 if test "x$ac_ct_F77" = x; then
13668 F77=""
13669 else
13670 case $cross_compiling:$ac_tool_warned in
13671yes:)
13672{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13673whose name does not start with the host triplet. If you think this
13674configuration is useful to you, please write to autoconf@gnu.org." >&5
13675echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13676whose name does not start with the host triplet. If you think this
13677configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13678ac_tool_warned=yes ;;
13679esac
13680 F77=$ac_ct_F77
13681 fi
John Criswell47fdd832003-07-14 16:52:07 +000013682fi
13683
13684
13685# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013686echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013687ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013688{ (ac_try="$ac_compiler --version >&5"
13689case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13692esac
13693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013698{ (ac_try="$ac_compiler -v >&5"
13699case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13702esac
13703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013708{ (ac_try="$ac_compiler -V >&5"
13709case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13712esac
13713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013718rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013719
13720# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013721# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013722ac_save_ext=$ac_ext
13723ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013724{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13725echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013726if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13728else
13729 cat >conftest.$ac_ext <<_ACEOF
13730 program main
13731#ifndef __GNUC__
13732 choke me
13733#endif
13734
13735 end
13736_ACEOF
13737rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013738if { (ac_try="$ac_compile"
13739case "(($ac_try" in
13740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741 *) ac_try_echo=$ac_try;;
13742esac
13743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013745 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013746 grep -v '^ *+' conftest.er1 >conftest.err
13747 rm -f conftest.er1
13748 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013750 (exit $ac_status); } &&
13751 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13752 { (case "(($ac_try" in
13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13755esac
13756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_try") 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest.$ac_objext'
13762 { (case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13765esac
13766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767 (eval "$ac_try") 2>&5
13768 ac_status=$?
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013771 ac_compiler_gnu=yes
13772else
13773 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013774sed 's/^/| /' conftest.$ac_ext >&5
13775
Reid Spencera773bd52006-08-04 18:18:08 +000013776 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013777fi
Reid Spencera773bd52006-08-04 18:18:08 +000013778
13779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013780ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13781
13782fi
Reid Spencera773bd52006-08-04 18:18:08 +000013783{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13784echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013785ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013786ac_test_FFLAGS=${FFLAGS+set}
13787ac_save_FFLAGS=$FFLAGS
13788FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013789{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13790echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013791if test "${ac_cv_prog_f77_g+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13793else
13794 FFLAGS=-g
13795cat >conftest.$ac_ext <<_ACEOF
13796 program main
13797
13798 end
13799_ACEOF
13800rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013801if { (ac_try="$ac_compile"
13802case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13805esac
13806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013808 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013809 grep -v '^ *+' conftest.er1 >conftest.err
13810 rm -f conftest.er1
13811 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013813 (exit $ac_status); } &&
13814 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13815 { (case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13818esac
13819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_try") 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; } &&
13824 { ac_try='test -s conftest.$ac_objext'
13825 { (case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13828esac
13829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_try") 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013834 ac_cv_prog_f77_g=yes
13835else
13836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013837sed 's/^/| /' conftest.$ac_ext >&5
13838
Reid Spencera773bd52006-08-04 18:18:08 +000013839 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013840fi
Reid Spencera773bd52006-08-04 18:18:08 +000013841
13842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013843
13844fi
Reid Spencera773bd52006-08-04 18:18:08 +000013845{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13846echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013847if test "$ac_test_FFLAGS" = set; then
13848 FFLAGS=$ac_save_FFLAGS
13849elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013850 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013851 FFLAGS="-g -O2"
13852 else
13853 FFLAGS="-g"
13854 fi
13855else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013856 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013857 FFLAGS="-O2"
13858 else
13859 FFLAGS=
13860 fi
13861fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013862
13863G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013864ac_ext=c
13865ac_cpp='$CPP $CPPFLAGS'
13866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13868ac_compiler_gnu=$ac_cv_c_compiler_gnu
13869
13870
13871
13872# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13873
13874# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013875{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13876echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013877if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13878 echo $ECHO_N "(cached) $ECHO_C" >&6
13879else
13880 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013881 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013882
13883 case $build_os in
13884 msdosdjgpp*)
13885 # On DJGPP, this test can blow up pretty badly due to problems in libc
13886 # (any single argument exceeding 2000 bytes causes a buffer overrun
13887 # during glob expansion). Even if it were fixed, the result of this
13888 # check would be larger than it should be.
13889 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13890 ;;
13891
13892 gnu*)
13893 # Under GNU Hurd, this test is not required because there is
13894 # no limit to the length of command line arguments.
13895 # Libtool will interpret -1 as no limit whatsoever
13896 lt_cv_sys_max_cmd_len=-1;
13897 ;;
13898
13899 cygwin* | mingw*)
13900 # On Win9x/ME, this test blows up -- it succeeds, but takes
13901 # about 5 minutes as the teststring grows exponentially.
13902 # Worse, since 9x/ME are not pre-emptively multitasking,
13903 # you end up with a "frozen" computer, even though with patience
13904 # the test eventually succeeds (with a max line length of 256k).
13905 # Instead, let's just punt: use the minimum linelength reported by
13906 # all of the supported platforms: 8192 (on NT/2K/XP).
13907 lt_cv_sys_max_cmd_len=8192;
13908 ;;
13909
Reid Spencer2706f8c2004-09-19 23:53:36 +000013910 amigaos*)
13911 # On AmigaOS with pdksh, this test takes hours, literally.
13912 # So we just punt and use a minimum line length of 8192.
13913 lt_cv_sys_max_cmd_len=8192;
13914 ;;
13915
Reid Spencera773bd52006-08-04 18:18:08 +000013916 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013917 # This has been around since 386BSD, at least. Likely further.
13918 if test -x /sbin/sysctl; then
13919 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13920 elif test -x /usr/sbin/sysctl; then
13921 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13922 else
Reid Spencera773bd52006-08-04 18:18:08 +000013923 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013924 fi
13925 # And add a safety zone
13926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013928 ;;
13929
Reid Spencera773bd52006-08-04 18:18:08 +000013930 interix*)
13931 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13932 lt_cv_sys_max_cmd_len=196608
13933 ;;
13934
13935 osf*)
13936 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13937 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13938 # nice to cause kernel panics so lets avoid the loop below.
13939 # First set a reasonable default.
13940 lt_cv_sys_max_cmd_len=16384
13941 #
13942 if test -x /sbin/sysconfig; then
13943 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13944 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13945 esac
13946 fi
13947 ;;
13948 sco3.2v5*)
13949 lt_cv_sys_max_cmd_len=102400
13950 ;;
13951 sysv5* | sco5v6* | sysv4.2uw2*)
13952 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13953 if test -n "$kargmax"; then
13954 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13955 else
13956 lt_cv_sys_max_cmd_len=32768
13957 fi
13958 ;;
13959 *)
John Criswell47fdd832003-07-14 16:52:07 +000013960 # If test is not a shell built-in, we'll probably end up computing a
13961 # maximum length that is only half of the actual maximum length, but
13962 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013963 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13964 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13965 = "XX$teststring") >/dev/null 2>&1 &&
13966 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013967 lt_cv_sys_max_cmd_len=$new_result &&
13968 test $i != 17 # 1/2 MB should be enough
13969 do
13970 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013971 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013972 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013973 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013974 # Add a significant safety factor because C++ compilers can tack on massive
13975 # amounts of additional arguments before passing them to the linker.
13976 # It appears as though 1/2 is a usable value.
13977 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13978 ;;
13979 esac
13980
13981fi
13982
13983if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013984 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13985echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013986else
Reid Spencera773bd52006-08-04 18:18:08 +000013987 { echo "$as_me:$LINENO: result: none" >&5
13988echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013989fi
13990
13991
13992
13993
13994# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013995{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13996echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013997if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
13999else
14000
14001# These are sane defaults that work on at least a few old systems.
14002# [They come from Ultrix. What could be older than Ultrix?!! ;)]
14003
14004# Character class describing NM global symbol codes.
14005symcode='[BCDEGRST]'
14006
14007# Regexp to match symbols that can be accessed directly from C.
14008sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14009
John Criswell47fdd832003-07-14 16:52:07 +000014010# Transform an extracted symbol line into a proper C declaration
14011lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14012
14013# Transform an extracted symbol line into symbol name and symbol address
14014lt_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'"
14015
14016# Define system-specific variables.
14017case $host_os in
14018aix*)
14019 symcode='[BCDT]'
14020 ;;
14021cygwin* | mingw* | pw32*)
14022 symcode='[ABCDGISTW]'
14023 ;;
14024hpux*) # Its linker distinguishes data from code symbols
14025 if test "$host_cpu" = ia64; then
14026 symcode='[ABCDEGRST]'
14027 fi
14028 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14029 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'"
14030 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014031linux*)
14032 if test "$host_cpu" = ia64; then
14033 symcode='[ABCDGIRSTW]'
14034 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14035 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'"
14036 fi
14037 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014038irix* | nonstopux*)
14039 symcode='[BCDEGRST]'
14040 ;;
14041osf*)
14042 symcode='[BCDEGQRST]'
14043 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014044solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014045 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000014046 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014047sco3.2v5*)
14048 symcode='[DT]'
14049 ;;
14050sysv4.2uw2*)
14051 symcode='[DT]'
14052 ;;
14053sysv5* | sco5v6* | unixware* | OpenUNIX*)
14054 symcode='[ABDT]'
14055 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014056sysv4)
14057 symcode='[DFNSTU]'
14058 ;;
14059esac
14060
14061# Handle CRLF in mingw tool chain
14062opt_cr=
14063case $build_os in
14064mingw*)
14065 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14066 ;;
14067esac
14068
14069# If we're using GNU nm, then use its standard symbol codes.
14070case `$NM -V 2>&1` in
14071*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014072 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000014073esac
14074
14075# Try without a prefix undercore, then with it.
14076for ac_symprfx in "" "_"; do
14077
Reid Spencera773bd52006-08-04 18:18:08 +000014078 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14079 symxfrm="\\1 $ac_symprfx\\2 \\2"
14080
John Criswell47fdd832003-07-14 16:52:07 +000014081 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000014082 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 +000014083
14084 # Check to see that the pipe works correctly.
14085 pipe_works=no
14086
14087 rm -f conftest*
14088 cat > conftest.$ac_ext <<EOF
14089#ifdef __cplusplus
14090extern "C" {
14091#endif
14092char nm_test_var;
14093void nm_test_func(){}
14094#ifdef __cplusplus
14095}
14096#endif
14097int main(){nm_test_var='a';nm_test_func();return(0);}
14098EOF
14099
14100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14101 (eval $ac_compile) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; then
14105 # Now try to grab the symbols.
14106 nlist=conftest.nm
14107 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14108 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14109 ac_status=$?
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } && test -s "$nlist"; then
14112 # Try sorting and uniquifying the output.
14113 if sort "$nlist" | uniq > "$nlist"T; then
14114 mv -f "$nlist"T "$nlist"
14115 else
14116 rm -f "$nlist"T
14117 fi
14118
14119 # Make sure that we snagged all the symbols we need.
14120 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14121 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14122 cat <<EOF > conftest.$ac_ext
14123#ifdef __cplusplus
14124extern "C" {
14125#endif
14126
14127EOF
14128 # Now generate the symbol file.
14129 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14130
14131 cat <<EOF >> conftest.$ac_ext
14132#if defined (__STDC__) && __STDC__
14133# define lt_ptr_t void *
14134#else
14135# define lt_ptr_t char *
14136# define const
14137#endif
14138
14139/* The mapping between symbol names and symbols. */
14140const struct {
14141 const char *name;
14142 lt_ptr_t address;
14143}
14144lt_preloaded_symbols[] =
14145{
14146EOF
14147 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14148 cat <<\EOF >> conftest.$ac_ext
14149 {0, (lt_ptr_t) 0}
14150};
14151
14152#ifdef __cplusplus
14153}
14154#endif
14155EOF
14156 # Now try linking the two files.
14157 mv conftest.$ac_objext conftstm.$ac_objext
14158 lt_save_LIBS="$LIBS"
14159 lt_save_CFLAGS="$CFLAGS"
14160 LIBS="conftstm.$ac_objext"
14161 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14163 (eval $ac_link) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14167 pipe_works=yes
14168 fi
14169 LIBS="$lt_save_LIBS"
14170 CFLAGS="$lt_save_CFLAGS"
14171 else
14172 echo "cannot find nm_test_func in $nlist" >&5
14173 fi
14174 else
14175 echo "cannot find nm_test_var in $nlist" >&5
14176 fi
14177 else
14178 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14179 fi
14180 else
14181 echo "$progname: failed program was:" >&5
14182 cat conftest.$ac_ext >&5
14183 fi
14184 rm -f conftest* conftst*
14185
14186 # Do not use the global_symbol_pipe unless it works.
14187 if test "$pipe_works" = yes; then
14188 break
14189 else
14190 lt_cv_sys_global_symbol_pipe=
14191 fi
14192done
14193
14194fi
14195
14196if test -z "$lt_cv_sys_global_symbol_pipe"; then
14197 lt_cv_sys_global_symbol_to_cdecl=
14198fi
14199if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014200 { echo "$as_me:$LINENO: result: failed" >&5
14201echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014202else
Reid Spencera773bd52006-08-04 18:18:08 +000014203 { echo "$as_me:$LINENO: result: ok" >&5
14204echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014205fi
14206
Reid Spencera773bd52006-08-04 18:18:08 +000014207{ echo "$as_me:$LINENO: checking for objdir" >&5
14208echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014209if test "${lt_cv_objdir+set}" = set; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14211else
14212 rm -f .libs 2>/dev/null
14213mkdir .libs 2>/dev/null
14214if test -d .libs; then
14215 lt_cv_objdir=.libs
14216else
14217 # MS-DOS does not allow filenames that begin with a dot.
14218 lt_cv_objdir=_libs
14219fi
14220rmdir .libs 2>/dev/null
14221fi
Reid Spencera773bd52006-08-04 18:18:08 +000014222{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14223echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014224objdir=$lt_cv_objdir
14225
14226
14227
14228
14229
14230case $host_os in
14231aix3*)
14232 # AIX sometimes has problems with the GCC collect2 program. For some
14233 # reason, if we set the COLLECT_NAMES environment variable, the problems
14234 # vanish in a puff of smoke.
14235 if test "X${COLLECT_NAMES+set}" != Xset; then
14236 COLLECT_NAMES=
14237 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014238 fi
14239 ;;
14240esac
14241
John Criswell47fdd832003-07-14 16:52:07 +000014242# Sed substitution that helps us do robust quoting. It backslashifies
14243# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014244Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014245sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14246
14247# Same as above, but do not quote variable references.
14248double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14249
14250# Sed substitution to delay expansion of an escaped shell variable in a
14251# double_quote_subst'ed string.
14252delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14253
14254# Sed substitution to avoid accidental globbing in evaled expressions
14255no_glob_subst='s/\*/\\\*/g'
14256
14257# Constants:
14258rm="rm -f"
14259
14260# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014261default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014262can_build_shared=yes
14263
Reid Spencera773bd52006-08-04 18:18:08 +000014264# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014265# which needs '.lib').
14266libext=a
14267ltmain="$ac_aux_dir/ltmain.sh"
14268ofile="$default_ofile"
14269with_gnu_ld="$lt_cv_prog_gnu_ld"
14270
14271if test -n "$ac_tool_prefix"; then
14272 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14273set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014276if test "${ac_cv_prog_AR+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14278else
14279 if test -n "$AR"; then
14280 ac_cv_prog_AR="$AR" # Let the user override the test.
14281else
14282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14283for as_dir in $PATH
14284do
14285 IFS=$as_save_IFS
14286 test -z "$as_dir" && as_dir=.
14287 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014288 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 +000014289 ac_cv_prog_AR="${ac_tool_prefix}ar"
14290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14291 break 2
14292 fi
14293done
14294done
Reid Spencera773bd52006-08-04 18:18:08 +000014295IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014296
14297fi
14298fi
14299AR=$ac_cv_prog_AR
14300if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014301 { echo "$as_me:$LINENO: result: $AR" >&5
14302echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014303else
Reid Spencera773bd52006-08-04 18:18:08 +000014304 { echo "$as_me:$LINENO: result: no" >&5
14305echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014306fi
14307
Reid Spencera773bd52006-08-04 18:18:08 +000014308
John Criswell47fdd832003-07-14 16:52:07 +000014309fi
14310if test -z "$ac_cv_prog_AR"; then
14311 ac_ct_AR=$AR
14312 # Extract the first word of "ar", so it can be a program name with args.
14313set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014316if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14318else
14319 if test -n "$ac_ct_AR"; then
14320 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14321else
14322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14323for as_dir in $PATH
14324do
14325 IFS=$as_save_IFS
14326 test -z "$as_dir" && as_dir=.
14327 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014328 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 +000014329 ac_cv_prog_ac_ct_AR="ar"
14330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14331 break 2
14332 fi
14333done
14334done
Reid Spencera773bd52006-08-04 18:18:08 +000014335IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014336
John Criswell47fdd832003-07-14 16:52:07 +000014337fi
14338fi
14339ac_ct_AR=$ac_cv_prog_ac_ct_AR
14340if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014341 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14342echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014343else
Reid Spencera773bd52006-08-04 18:18:08 +000014344 { echo "$as_me:$LINENO: result: no" >&5
14345echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014346fi
14347
Reid Spencera773bd52006-08-04 18:18:08 +000014348 if test "x$ac_ct_AR" = x; then
14349 AR="false"
14350 else
14351 case $cross_compiling:$ac_tool_warned in
14352yes:)
14353{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14354whose name does not start with the host triplet. If you think this
14355configuration is useful to you, please write to autoconf@gnu.org." >&5
14356echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14357whose name does not start with the host triplet. If you think this
14358configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14359ac_tool_warned=yes ;;
14360esac
14361 AR=$ac_ct_AR
14362 fi
John Criswell47fdd832003-07-14 16:52:07 +000014363else
14364 AR="$ac_cv_prog_AR"
14365fi
14366
John Criswell7a73b802003-06-30 21:59:07 +000014367if test -n "$ac_tool_prefix"; then
14368 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14369set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014372if test "${ac_cv_prog_RANLIB+set}" = set; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14374else
14375 if test -n "$RANLIB"; then
14376 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14377else
14378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14379for as_dir in $PATH
14380do
14381 IFS=$as_save_IFS
14382 test -z "$as_dir" && as_dir=.
14383 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014384 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 +000014385 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14387 break 2
14388 fi
14389done
14390done
Reid Spencera773bd52006-08-04 18:18:08 +000014391IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014392
14393fi
14394fi
14395RANLIB=$ac_cv_prog_RANLIB
14396if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014397 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14398echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014399else
Reid Spencera773bd52006-08-04 18:18:08 +000014400 { echo "$as_me:$LINENO: result: no" >&5
14401echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014402fi
14403
Reid Spencera773bd52006-08-04 18:18:08 +000014404
John Criswell7a73b802003-06-30 21:59:07 +000014405fi
14406if test -z "$ac_cv_prog_RANLIB"; then
14407 ac_ct_RANLIB=$RANLIB
14408 # Extract the first word of "ranlib", so it can be a program name with args.
14409set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014410{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014412if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14413 echo $ECHO_N "(cached) $ECHO_C" >&6
14414else
14415 if test -n "$ac_ct_RANLIB"; then
14416 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14417else
14418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14419for as_dir in $PATH
14420do
14421 IFS=$as_save_IFS
14422 test -z "$as_dir" && as_dir=.
14423 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014424 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 +000014425 ac_cv_prog_ac_ct_RANLIB="ranlib"
14426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14427 break 2
14428 fi
14429done
14430done
Reid Spencera773bd52006-08-04 18:18:08 +000014431IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014432
John Criswell7a73b802003-06-30 21:59:07 +000014433fi
14434fi
14435ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14436if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014437 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14438echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014439else
Reid Spencera773bd52006-08-04 18:18:08 +000014440 { echo "$as_me:$LINENO: result: no" >&5
14441echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014442fi
14443
Reid Spencera773bd52006-08-04 18:18:08 +000014444 if test "x$ac_ct_RANLIB" = x; then
14445 RANLIB=":"
14446 else
14447 case $cross_compiling:$ac_tool_warned in
14448yes:)
14449{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14450whose name does not start with the host triplet. If you think this
14451configuration is useful to you, please write to autoconf@gnu.org." >&5
14452echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14453whose name does not start with the host triplet. If you think this
14454configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14455ac_tool_warned=yes ;;
14456esac
14457 RANLIB=$ac_ct_RANLIB
14458 fi
John Criswell7a73b802003-06-30 21:59:07 +000014459else
14460 RANLIB="$ac_cv_prog_RANLIB"
14461fi
14462
14463if test -n "$ac_tool_prefix"; then
14464 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14465set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014468if test "${ac_cv_prog_STRIP+set}" = set; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14470else
14471 if test -n "$STRIP"; then
14472 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14473else
14474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14475for as_dir in $PATH
14476do
14477 IFS=$as_save_IFS
14478 test -z "$as_dir" && as_dir=.
14479 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014480 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 +000014481 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14483 break 2
14484 fi
14485done
14486done
Reid Spencera773bd52006-08-04 18:18:08 +000014487IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014488
14489fi
14490fi
14491STRIP=$ac_cv_prog_STRIP
14492if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014493 { echo "$as_me:$LINENO: result: $STRIP" >&5
14494echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014495else
Reid Spencera773bd52006-08-04 18:18:08 +000014496 { echo "$as_me:$LINENO: result: no" >&5
14497echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014498fi
14499
Reid Spencera773bd52006-08-04 18:18:08 +000014500
John Criswell7a73b802003-06-30 21:59:07 +000014501fi
14502if test -z "$ac_cv_prog_STRIP"; then
14503 ac_ct_STRIP=$STRIP
14504 # Extract the first word of "strip", so it can be a program name with args.
14505set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014508if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14510else
14511 if test -n "$ac_ct_STRIP"; then
14512 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14513else
14514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14515for as_dir in $PATH
14516do
14517 IFS=$as_save_IFS
14518 test -z "$as_dir" && as_dir=.
14519 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014520 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 +000014521 ac_cv_prog_ac_ct_STRIP="strip"
14522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14523 break 2
14524 fi
14525done
14526done
Reid Spencera773bd52006-08-04 18:18:08 +000014527IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014528
John Criswell7a73b802003-06-30 21:59:07 +000014529fi
14530fi
14531ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14532if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014533 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14534echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014535else
Reid Spencera773bd52006-08-04 18:18:08 +000014536 { echo "$as_me:$LINENO: result: no" >&5
14537echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014538fi
14539
Reid Spencera773bd52006-08-04 18:18:08 +000014540 if test "x$ac_ct_STRIP" = x; then
14541 STRIP=":"
14542 else
14543 case $cross_compiling:$ac_tool_warned in
14544yes:)
14545{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14546whose name does not start with the host triplet. If you think this
14547configuration is useful to you, please write to autoconf@gnu.org." >&5
14548echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14549whose name does not start with the host triplet. If you think this
14550configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14551ac_tool_warned=yes ;;
14552esac
14553 STRIP=$ac_ct_STRIP
14554 fi
John Criswell7a73b802003-06-30 21:59:07 +000014555else
14556 STRIP="$ac_cv_prog_STRIP"
14557fi
14558
14559
John Criswell7a73b802003-06-30 21:59:07 +000014560old_CC="$CC"
14561old_CFLAGS="$CFLAGS"
14562
14563# Set sane defaults for various variables
14564test -z "$AR" && AR=ar
14565test -z "$AR_FLAGS" && AR_FLAGS=cru
14566test -z "$AS" && AS=as
14567test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014568test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014569test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014570test -z "$DLLTOOL" && DLLTOOL=dlltool
14571test -z "$LD" && LD=ld
14572test -z "$LN_S" && LN_S="ln -s"
14573test -z "$MAGIC_CMD" && MAGIC_CMD=file
14574test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014575test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014576test -z "$OBJDUMP" && OBJDUMP=objdump
14577test -z "$RANLIB" && RANLIB=:
14578test -z "$STRIP" && STRIP=:
14579test -z "$ac_objext" && ac_objext=o
14580
John Criswell7a73b802003-06-30 21:59:07 +000014581# Determine commands to create old-style static archives.
14582old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14583old_postinstall_cmds='chmod 644 $oldlib'
14584old_postuninstall_cmds=
14585
14586if test -n "$RANLIB"; then
14587 case $host_os in
14588 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014589 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014590 ;;
14591 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014592 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014593 ;;
14594 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014595 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014596fi
14597
Reid Spencera773bd52006-08-04 18:18:08 +000014598for cc_temp in $compiler""; do
14599 case $cc_temp in
14600 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14601 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14602 \-*) ;;
14603 *) break;;
14604 esac
14605done
14606cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14607
Reid Spencer2706f8c2004-09-19 23:53:36 +000014608
John Criswell47fdd832003-07-14 16:52:07 +000014609# Only perform the check for file, if the check method requires it
14610case $deplibs_check_method in
14611file_magic*)
14612 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014613 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14614echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014615if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014617else
John Criswell47fdd832003-07-14 16:52:07 +000014618 case $MAGIC_CMD in
14619[\\/*] | ?:[\\/]*)
14620 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14621 ;;
14622*)
14623 lt_save_MAGIC_CMD="$MAGIC_CMD"
14624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14625 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14626 for ac_dir in $ac_dummy; do
14627 IFS="$lt_save_ifs"
14628 test -z "$ac_dir" && ac_dir=.
14629 if test -f $ac_dir/${ac_tool_prefix}file; then
14630 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14631 if test -n "$file_magic_test_file"; then
14632 case $deplibs_check_method in
14633 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014634 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014635 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14636 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14637 $EGREP "$file_magic_regex" > /dev/null; then
14638 :
14639 else
14640 cat <<EOF 1>&2
14641
14642*** Warning: the command libtool uses to detect shared libraries,
14643*** $file_magic_cmd, produces output that libtool cannot recognize.
14644*** The result is that libtool may fail to recognize shared libraries
14645*** as such. This will affect the creation of libtool libraries that
14646*** depend on shared libraries, but programs linked with such libtool
14647*** libraries will work regardless of this problem. Nevertheless, you
14648*** may want to report the problem to your system manager and/or to
14649*** bug-libtool@gnu.org
14650
14651EOF
14652 fi ;;
14653 esac
14654 fi
14655 break
14656 fi
14657 done
14658 IFS="$lt_save_ifs"
14659 MAGIC_CMD="$lt_save_MAGIC_CMD"
14660 ;;
14661esac
John Criswell7a73b802003-06-30 21:59:07 +000014662fi
John Criswell7a73b802003-06-30 21:59:07 +000014663
John Criswell47fdd832003-07-14 16:52:07 +000014664MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14665if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014666 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14667echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014668else
Reid Spencera773bd52006-08-04 18:18:08 +000014669 { echo "$as_me:$LINENO: result: no" >&5
14670echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014671fi
John Criswell7a73b802003-06-30 21:59:07 +000014672
John Criswell47fdd832003-07-14 16:52:07 +000014673if test -z "$lt_cv_path_MAGIC_CMD"; then
14674 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014675 { echo "$as_me:$LINENO: checking for file" >&5
14676echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014677if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14679else
14680 case $MAGIC_CMD in
14681[\\/*] | ?:[\\/]*)
14682 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14683 ;;
14684*)
14685 lt_save_MAGIC_CMD="$MAGIC_CMD"
14686 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14687 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14688 for ac_dir in $ac_dummy; do
14689 IFS="$lt_save_ifs"
14690 test -z "$ac_dir" && ac_dir=.
14691 if test -f $ac_dir/file; then
14692 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14693 if test -n "$file_magic_test_file"; then
14694 case $deplibs_check_method in
14695 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014696 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14698 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14699 $EGREP "$file_magic_regex" > /dev/null; then
14700 :
14701 else
14702 cat <<EOF 1>&2
14703
14704*** Warning: the command libtool uses to detect shared libraries,
14705*** $file_magic_cmd, produces output that libtool cannot recognize.
14706*** The result is that libtool may fail to recognize shared libraries
14707*** as such. This will affect the creation of libtool libraries that
14708*** depend on shared libraries, but programs linked with such libtool
14709*** libraries will work regardless of this problem. Nevertheless, you
14710*** may want to report the problem to your system manager and/or to
14711*** bug-libtool@gnu.org
14712
14713EOF
14714 fi ;;
14715 esac
14716 fi
14717 break
14718 fi
14719 done
14720 IFS="$lt_save_ifs"
14721 MAGIC_CMD="$lt_save_MAGIC_CMD"
14722 ;;
14723esac
14724fi
14725
14726MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14727if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014728 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14729echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014730else
Reid Spencera773bd52006-08-04 18:18:08 +000014731 { echo "$as_me:$LINENO: result: no" >&5
14732echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014733fi
14734
14735 else
14736 MAGIC_CMD=:
14737 fi
14738fi
14739
14740 fi
14741 ;;
14742esac
14743
Reid Spencer17795972004-11-18 09:47:37 +000014744enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014745enable_win32_dll=no
14746
Reid Spencera773bd52006-08-04 18:18:08 +000014747# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014748if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014749 enableval=$enable_libtool_lock;
14750fi
John Criswell47fdd832003-07-14 16:52:07 +000014751
John Criswell47fdd832003-07-14 16:52:07 +000014752test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14753
John Criswell7a73b802003-06-30 21:59:07 +000014754
Reid Spencera773bd52006-08-04 18:18:08 +000014755# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014756if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014757 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014758else
14759 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014760fi
14761
John Criswell7a73b802003-06-30 21:59:07 +000014762test -z "$pic_mode" && pic_mode=default
14763
John Criswell47fdd832003-07-14 16:52:07 +000014764# Use C for the default configuration in the libtool script
14765tagname=
14766lt_save_CC="$CC"
14767ac_ext=c
14768ac_cpp='$CPP $CPPFLAGS'
14769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14771ac_compiler_gnu=$ac_cv_c_compiler_gnu
14772
14773
14774# Source file extension for C test sources.
14775ac_ext=c
14776
14777# Object file extension for compiled C test sources.
14778objext=o
14779objext=$objext
14780
14781# Code to be used in simple compile tests
14782lt_simple_compile_test_code="int some_variable = 0;\n"
14783
14784# Code to be used in simple link tests
14785lt_simple_link_test_code='int main(){return(0);}\n'
14786
14787
14788# If no C compiler was specified, use CC.
14789LTCC=${LTCC-"$CC"}
14790
Reid Spencera773bd52006-08-04 18:18:08 +000014791# If no C compiler flags were specified, use CFLAGS.
14792LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14793
John Criswell47fdd832003-07-14 16:52:07 +000014794# Allow CC to be a program name with arguments.
14795compiler=$CC
14796
14797
Reid Spencera773bd52006-08-04 18:18:08 +000014798# save warnings/boilerplate of simple test code
14799ac_outfile=conftest.$ac_objext
14800printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14801eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14802_lt_compiler_boilerplate=`cat conftest.err`
14803$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014804
Reid Spencera773bd52006-08-04 18:18:08 +000014805ac_outfile=conftest.$ac_objext
14806printf "$lt_simple_link_test_code" >conftest.$ac_ext
14807eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14808_lt_linker_boilerplate=`cat conftest.err`
14809$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014810
14811
John Criswell47fdd832003-07-14 16:52:07 +000014812
14813lt_prog_compiler_no_builtin_flag=
14814
14815if test "$GCC" = yes; then
14816 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14817
Reid Spencer2706f8c2004-09-19 23:53:36 +000014818
Reid Spencera773bd52006-08-04 18:18:08 +000014819{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14820echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014821if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14823else
14824 lt_cv_prog_compiler_rtti_exceptions=no
14825 ac_outfile=conftest.$ac_objext
14826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14827 lt_compiler_flag="-fno-rtti -fno-exceptions"
14828 # Insert the option either (1) after the last *FLAGS variable, or
14829 # (2) before a word containing "conftest.", or (3) at the end.
14830 # Note that $ac_compile itself does not contain backslashes and begins
14831 # with a dollar sign (not a hyphen), so the echo should work correctly.
14832 # The option is referenced via a variable to avoid confusing sed.
14833 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14836 -e 's:$: $lt_compiler_flag:'`
Gabor Greif4c750542009-08-27 17:07:35 +000014837 (eval echo "\"\$as_me:14837: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014838 (eval "$lt_compile" 2>conftest.err)
14839 ac_status=$?
14840 cat conftest.err >&5
Gabor Greif4c750542009-08-27 17:07:35 +000014841 echo "$as_me:14841: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014842 if (exit $ac_status) && test -s "$ac_outfile"; then
14843 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014844 # So say no if there are warnings other than the usual output.
14845 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014848 lt_cv_prog_compiler_rtti_exceptions=yes
14849 fi
14850 fi
14851 $rm conftest*
14852
14853fi
Reid Spencera773bd52006-08-04 18:18:08 +000014854{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14855echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014856
14857if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14858 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14859else
14860 :
14861fi
14862
14863fi
14864
14865lt_prog_compiler_wl=
14866lt_prog_compiler_pic=
14867lt_prog_compiler_static=
14868
Reid Spencera773bd52006-08-04 18:18:08 +000014869{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14870echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014871
14872 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014873 lt_prog_compiler_wl='-Wl,'
14874 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014875
14876 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014877 aix*)
14878 # All AIX code is PIC.
14879 if test "$host_cpu" = ia64; then
14880 # AIX 5 now supports IA64 processor
14881 lt_prog_compiler_static='-Bstatic'
14882 fi
John Criswell7a73b802003-06-30 21:59:07 +000014883 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014884
John Criswell7a73b802003-06-30 21:59:07 +000014885 amigaos*)
14886 # FIXME: we need at least 68020 code to build shared libraries, but
14887 # adding the `-m68020' flag to GCC prevents building anything better,
14888 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014889 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014890 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014891
14892 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014893 # PIC is the default for these OSes.
14894 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014895
14896 mingw* | pw32* | os2*)
14897 # This hack is so that the source file can tell whether it is being
14898 # built for inclusion in a dll (and should export symbols for example).
14899 lt_prog_compiler_pic='-DDLL_EXPORT'
14900 ;;
14901
John Criswell7a73b802003-06-30 21:59:07 +000014902 darwin* | rhapsody*)
14903 # PIC is the default on this platform
14904 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014905 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014906 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014907
Reid Spencera773bd52006-08-04 18:18:08 +000014908 interix3*)
14909 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14910 # Instead, we relocate shared libraries at runtime.
14911 ;;
14912
John Criswell47fdd832003-07-14 16:52:07 +000014913 msdosdjgpp*)
14914 # Just because we use GCC doesn't mean we suddenly get shared libraries
14915 # on systems that don't support them.
14916 lt_prog_compiler_can_build_shared=no
14917 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014918 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014919
John Criswell7a73b802003-06-30 21:59:07 +000014920 sysv4*MP*)
14921 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014922 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014923 fi
14924 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014925
14926 hpux*)
14927 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14928 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014929 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014930 hppa*64*|ia64*)
14931 # +Z the default
14932 ;;
14933 *)
14934 lt_prog_compiler_pic='-fPIC'
14935 ;;
14936 esac
14937 ;;
14938
John Criswell7a73b802003-06-30 21:59:07 +000014939 *)
John Criswell47fdd832003-07-14 16:52:07 +000014940 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014941 ;;
14942 esac
14943 else
John Criswell47fdd832003-07-14 16:52:07 +000014944 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014945 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014946 aix*)
14947 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014948 if test "$host_cpu" = ia64; then
14949 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014950 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014951 else
John Criswell47fdd832003-07-14 16:52:07 +000014952 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014953 fi
14954 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014955 darwin*)
14956 # PIC is the default on this platform
14957 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014958 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014959 xlc*)
14960 lt_prog_compiler_pic='-qnocommon'
14961 lt_prog_compiler_wl='-Wl,'
14962 ;;
14963 esac
14964 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014965
John Criswell47fdd832003-07-14 16:52:07 +000014966 mingw* | pw32* | os2*)
14967 # This hack is so that the source file can tell whether it is being
14968 # built for inclusion in a dll (and should export symbols for example).
14969 lt_prog_compiler_pic='-DDLL_EXPORT'
14970 ;;
14971
John Criswell7a73b802003-06-30 21:59:07 +000014972 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014973 lt_prog_compiler_wl='-Wl,'
14974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14975 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014976 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014977 hppa*64*|ia64*)
14978 # +Z the default
14979 ;;
14980 *)
14981 lt_prog_compiler_pic='+Z'
14982 ;;
14983 esac
14984 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14985 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014986 ;;
14987
John Criswell47fdd832003-07-14 16:52:07 +000014988 irix5* | irix6* | nonstopux*)
14989 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014990 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014991 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014992 ;;
14993
14994 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014995 lt_prog_compiler_pic='-KPIC'
14996 lt_prog_compiler_static='-Bstatic'
14997 ;;
14998
14999 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000015000 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015001 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000015002 lt_prog_compiler_wl='-Wl,'
15003 lt_prog_compiler_pic='-KPIC'
15004 lt_prog_compiler_static='-static'
15005 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015006 pgcc* | pgf77* | pgf90* | pgf95*)
15007 # Portland Group compilers (*not* the Pentium gcc compiler,
15008 # which looks to be a dead project)
15009 lt_prog_compiler_wl='-Wl,'
15010 lt_prog_compiler_pic='-fpic'
15011 lt_prog_compiler_static='-Bstatic'
15012 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015013 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000015014 lt_prog_compiler_wl='-Wl,'
15015 # All Alpha code is PIC.
15016 lt_prog_compiler_static='-non_shared'
15017 ;;
15018 esac
John Criswell7a73b802003-06-30 21:59:07 +000015019 ;;
15020
15021 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000015022 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015023 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000015024 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015025 ;;
15026
John Criswell7a73b802003-06-30 21:59:07 +000015027 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015028 lt_prog_compiler_pic='-KPIC'
15029 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000015030 case $cc_basename in
15031 f77* | f90* | f95*)
15032 lt_prog_compiler_wl='-Qoption ld ';;
15033 *)
15034 lt_prog_compiler_wl='-Wl,';;
15035 esac
John Criswell7a73b802003-06-30 21:59:07 +000015036 ;;
15037
15038 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000015039 lt_prog_compiler_wl='-Qoption ld '
15040 lt_prog_compiler_pic='-PIC'
15041 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015042 ;;
15043
Reid Spencera773bd52006-08-04 18:18:08 +000015044 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000015045 lt_prog_compiler_wl='-Wl,'
15046 lt_prog_compiler_pic='-KPIC'
15047 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015048 ;;
15049
15050 sysv4*MP*)
15051 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000015052 lt_prog_compiler_pic='-Kconform_pic'
15053 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015054 fi
15055 ;;
15056
Reid Spencera773bd52006-08-04 18:18:08 +000015057 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15058 lt_prog_compiler_wl='-Wl,'
15059 lt_prog_compiler_pic='-KPIC'
15060 lt_prog_compiler_static='-Bstatic'
15061 ;;
15062
15063 unicos*)
15064 lt_prog_compiler_wl='-Wl,'
15065 lt_prog_compiler_can_build_shared=no
15066 ;;
15067
John Criswell47fdd832003-07-14 16:52:07 +000015068 uts4*)
15069 lt_prog_compiler_pic='-pic'
15070 lt_prog_compiler_static='-Bstatic'
15071 ;;
15072
John Criswell7a73b802003-06-30 21:59:07 +000015073 *)
John Criswell47fdd832003-07-14 16:52:07 +000015074 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015075 ;;
15076 esac
15077 fi
15078
Reid Spencera773bd52006-08-04 18:18:08 +000015079{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15080echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015081
John Criswell47fdd832003-07-14 16:52:07 +000015082#
15083# Check to make sure the PIC flag actually works.
15084#
15085if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015086
Reid Spencera773bd52006-08-04 18:18:08 +000015087{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15088echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015089if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015090 echo $ECHO_N "(cached) $ECHO_C" >&6
15091else
John Criswell47fdd832003-07-14 16:52:07 +000015092 lt_prog_compiler_pic_works=no
15093 ac_outfile=conftest.$ac_objext
15094 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15095 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15096 # Insert the option either (1) after the last *FLAGS variable, or
15097 # (2) before a word containing "conftest.", or (3) at the end.
15098 # Note that $ac_compile itself does not contain backslashes and begins
15099 # with a dollar sign (not a hyphen), so the echo should work correctly.
15100 # The option is referenced via a variable to avoid confusing sed.
15101 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15104 -e 's:$: $lt_compiler_flag:'`
Gabor Greif4c750542009-08-27 17:07:35 +000015105 (eval echo "\"\$as_me:15105: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015106 (eval "$lt_compile" 2>conftest.err)
15107 ac_status=$?
15108 cat conftest.err >&5
Gabor Greif4c750542009-08-27 17:07:35 +000015109 echo "$as_me:15109: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015110 if (exit $ac_status) && test -s "$ac_outfile"; then
15111 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015112 # So say no if there are warnings other than the usual output.
15113 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015116 lt_prog_compiler_pic_works=yes
15117 fi
15118 fi
15119 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015120
John Criswell47fdd832003-07-14 16:52:07 +000015121fi
Reid Spencera773bd52006-08-04 18:18:08 +000015122{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15123echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015124
John Criswell47fdd832003-07-14 16:52:07 +000015125if test x"$lt_prog_compiler_pic_works" = xyes; then
15126 case $lt_prog_compiler_pic in
15127 "" | " "*) ;;
15128 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15129 esac
John Criswell7a73b802003-06-30 21:59:07 +000015130else
John Criswell47fdd832003-07-14 16:52:07 +000015131 lt_prog_compiler_pic=
15132 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015133fi
15134
John Criswell7a73b802003-06-30 21:59:07 +000015135fi
Reid Spencera773bd52006-08-04 18:18:08 +000015136case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015137 # For platforms which do not support PIC, -DPIC is meaningless:
15138 *djgpp*)
15139 lt_prog_compiler_pic=
15140 ;;
15141 *)
15142 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15143 ;;
15144esac
John Criswell7a73b802003-06-30 21:59:07 +000015145
Reid Spencera773bd52006-08-04 18:18:08 +000015146#
15147# Check to make sure the static flag actually works.
15148#
15149wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15150{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15151echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15152if test "${lt_prog_compiler_static_works+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15154else
15155 lt_prog_compiler_static_works=no
15156 save_LDFLAGS="$LDFLAGS"
15157 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15158 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15159 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15160 # The linker can only warn and ignore the option if not recognized
15161 # So say no if there are warnings
15162 if test -s conftest.err; then
15163 # Append any errors to the config.log.
15164 cat conftest.err 1>&5
15165 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15167 if diff conftest.exp conftest.er2 >/dev/null; then
15168 lt_prog_compiler_static_works=yes
15169 fi
15170 else
15171 lt_prog_compiler_static_works=yes
15172 fi
15173 fi
15174 $rm conftest*
15175 LDFLAGS="$save_LDFLAGS"
15176
15177fi
15178{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15179echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15180
15181if test x"$lt_prog_compiler_static_works" = xyes; then
15182 :
15183else
15184 lt_prog_compiler_static=
15185fi
15186
15187
15188{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15189echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015190if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015191 echo $ECHO_N "(cached) $ECHO_C" >&6
15192else
John Criswell47fdd832003-07-14 16:52:07 +000015193 lt_cv_prog_compiler_c_o=no
15194 $rm -r conftest 2>/dev/null
15195 mkdir conftest
15196 cd conftest
15197 mkdir out
15198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015199
John Criswell47fdd832003-07-14 16:52:07 +000015200 lt_compiler_flag="-o out/conftest2.$ac_objext"
15201 # Insert the option either (1) after the last *FLAGS variable, or
15202 # (2) before a word containing "conftest.", or (3) at the end.
15203 # Note that $ac_compile itself does not contain backslashes and begins
15204 # with a dollar sign (not a hyphen), so the echo should work correctly.
15205 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15208 -e 's:$: $lt_compiler_flag:'`
Gabor Greif4c750542009-08-27 17:07:35 +000015209 (eval echo "\"\$as_me:15209: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015210 (eval "$lt_compile" 2>out/conftest.err)
15211 ac_status=$?
15212 cat out/conftest.err >&5
Gabor Greif4c750542009-08-27 17:07:35 +000015213 echo "$as_me:15213: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015214 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15215 then
15216 # The compiler can only warn and ignore the option if not recognized
15217 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015218 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15219 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15220 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015221 lt_cv_prog_compiler_c_o=yes
15222 fi
15223 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015224 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015225 $rm conftest*
15226 # SGI C++ compiler will create directory out/ii_files/ for
15227 # template instantiation
15228 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15229 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015230 cd ..
15231 rmdir conftest
15232 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015233
15234fi
Reid Spencera773bd52006-08-04 18:18:08 +000015235{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15236echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015237
John Criswell7a73b802003-06-30 21:59:07 +000015238
John Criswell7a73b802003-06-30 21:59:07 +000015239hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015240if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015241 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015242 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15243echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015244 hard_links=yes
15245 $rm conftest*
15246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15247 touch conftest.a
15248 ln conftest.a conftest.b 2>&5 || hard_links=no
15249 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015250 { echo "$as_me:$LINENO: result: $hard_links" >&5
15251echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015252 if test "$hard_links" = no; then
15253 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15254echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15255 need_locks=warn
15256 fi
15257else
15258 need_locks=no
15259fi
John Criswell7a73b802003-06-30 21:59:07 +000015260
Reid Spencera773bd52006-08-04 18:18:08 +000015261{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15262echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015263
15264 runpath_var=
15265 allow_undefined_flag=
15266 enable_shared_with_static_runtimes=no
15267 archive_cmds=
15268 archive_expsym_cmds=
15269 old_archive_From_new_cmds=
15270 old_archive_from_expsyms_cmds=
15271 export_dynamic_flag_spec=
15272 whole_archive_flag_spec=
15273 thread_safe_flag_spec=
15274 hardcode_libdir_flag_spec=
15275 hardcode_libdir_flag_spec_ld=
15276 hardcode_libdir_separator=
15277 hardcode_direct=no
15278 hardcode_minus_L=no
15279 hardcode_shlibpath_var=unsupported
15280 link_all_deplibs=unknown
15281 hardcode_automatic=no
15282 module_cmds=
15283 module_expsym_cmds=
15284 always_export_symbols=no
15285 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15286 # include_expsyms should be a list of space-separated symbols to be *always*
15287 # included in the symbol list
15288 include_expsyms=
15289 # exclude_expsyms can be an extended regexp of symbols to exclude
15290 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15291 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15292 # as well as any symbol that contains `d'.
15293 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15294 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15295 # platforms (ab)use it in PIC code, but their linkers get confused if
15296 # the symbol is explicitly referenced. Since portable code cannot
15297 # rely on this symbol name, it's probably fine to never include it in
15298 # preloaded symbol tables.
15299 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015300 # Just being paranoid about ensuring that cc_basename is set.
15301 for cc_temp in $compiler""; do
15302 case $cc_temp in
15303 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15304 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15305 \-*) ;;
15306 *) break;;
15307 esac
15308done
15309cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015310
15311 case $host_os in
15312 cygwin* | mingw* | pw32*)
15313 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15314 # When not using gcc, we currently assume that we are using
15315 # Microsoft Visual C++.
15316 if test "$GCC" != yes; then
15317 with_gnu_ld=no
15318 fi
15319 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015320 interix*)
15321 # we just hope/assume this is gcc and not c89 (= MSVC++)
15322 with_gnu_ld=yes
15323 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015324 openbsd*)
15325 with_gnu_ld=no
15326 ;;
15327 esac
15328
15329 ld_shlibs=yes
15330 if test "$with_gnu_ld" = yes; then
15331 # If archive_cmds runs LD, not CC, wlarc should be empty
15332 wlarc='${wl}'
15333
Reid Spencera773bd52006-08-04 18:18:08 +000015334 # Set some defaults for GNU ld with shared library support. These
15335 # are reset later if shared libraries are not supported. Putting them
15336 # here allows them to be overridden if necessary.
15337 runpath_var=LD_RUN_PATH
15338 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15339 export_dynamic_flag_spec='${wl}--export-dynamic'
15340 # ancient GNU ld didn't support --whole-archive et. al.
15341 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15342 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15343 else
15344 whole_archive_flag_spec=
15345 fi
15346 supports_anon_versioning=no
15347 case `$LD -v 2>/dev/null` in
15348 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15349 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15350 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15351 *\ 2.11.*) ;; # other 2.11 versions
15352 *) supports_anon_versioning=yes ;;
15353 esac
15354
John Criswell47fdd832003-07-14 16:52:07 +000015355 # See if GNU ld supports shared libraries.
15356 case $host_os in
15357 aix3* | aix4* | aix5*)
15358 # On AIX/PPC, the GNU linker is very broken
15359 if test "$host_cpu" != ia64; then
15360 ld_shlibs=no
15361 cat <<EOF 1>&2
15362
15363*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15364*** to be unable to reliably create shared libraries on AIX.
15365*** Therefore, libtool is disabling shared libraries support. If you
15366*** really care for shared libraries, you may want to modify your PATH
15367*** so that a non-GNU linker is found, and then restart.
15368
15369EOF
15370 fi
15371 ;;
15372
15373 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015374 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 +000015375 hardcode_libdir_flag_spec='-L$libdir'
15376 hardcode_minus_L=yes
15377
15378 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15379 # that the semantics of dynamic libraries on AmigaOS, at least up
15380 # to version 4, is to share data among multiple programs linked
15381 # with the same dynamic library. Since this doesn't match the
15382 # behavior of shared libraries on other platforms, we can't use
15383 # them.
15384 ld_shlibs=no
15385 ;;
15386
15387 beos*)
15388 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15389 allow_undefined_flag=unsupported
15390 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15391 # support --undefined. This deserves some investigation. FIXME
15392 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15393 else
15394 ld_shlibs=no
15395 fi
15396 ;;
15397
15398 cygwin* | mingw* | pw32*)
15399 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15400 # as there is no search path for DLLs.
15401 hardcode_libdir_flag_spec='-L$libdir'
15402 allow_undefined_flag=unsupported
15403 always_export_symbols=no
15404 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015405 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 +000015406
15407 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015408 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 +000015409 # If the export-symbols file already is a .def file (1st line
15410 # is EXPORTS), use it as is; otherwise, prepend...
15411 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15412 cp $export_symbols $output_objdir/$soname.def;
15413 else
15414 echo EXPORTS > $output_objdir/$soname.def;
15415 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015416 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015417 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15418 else
15419 ld_shlibs=no
15420 fi
15421 ;;
15422
15423 interix3*)
15424 hardcode_direct=no
15425 hardcode_shlibpath_var=no
15426 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15427 export_dynamic_flag_spec='${wl}-E'
15428 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15429 # Instead, shared libraries are loaded at an image base (0x10000000 by
15430 # default) and relocated if they conflict, which is a slow very memory
15431 # consuming and fragmenting process. To avoid this, we pick a random,
15432 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15433 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15434 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15435 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'
15436 ;;
15437
15438 linux*)
15439 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15440 tmp_addflag=
15441 case $cc_basename,$host_cpu in
15442 pgcc*) # Portland Group C compiler
15443 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'
15444 tmp_addflag=' $pic_flag'
15445 ;;
15446 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15447 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'
15448 tmp_addflag=' $pic_flag -Mnomain' ;;
15449 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15450 tmp_addflag=' -i_dynamic' ;;
15451 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15452 tmp_addflag=' -i_dynamic -nofor_main' ;;
15453 ifc* | ifort*) # Intel Fortran compiler
15454 tmp_addflag=' -nofor_main' ;;
15455 esac
15456 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15457
15458 if test $supports_anon_versioning = yes; then
15459 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15460 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15461 $echo "local: *; };" >> $output_objdir/$libname.ver~
15462 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15463 fi
John Criswell47fdd832003-07-14 16:52:07 +000015464 else
15465 ld_shlibs=no
15466 fi
15467 ;;
15468
15469 netbsd*)
15470 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15471 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15472 wlarc=
15473 else
15474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15475 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15476 fi
15477 ;;
15478
Reid Spencera773bd52006-08-04 18:18:08 +000015479 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015480 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15481 ld_shlibs=no
15482 cat <<EOF 1>&2
15483
15484*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15485*** create shared libraries on Solaris systems. Therefore, libtool
15486*** is disabling shared libraries support. We urge you to upgrade GNU
15487*** binutils to release 2.9.1 or newer. Another option is to modify
15488*** your PATH or compiler configuration so that the native linker is
15489*** used, and then restart.
15490
15491EOF
15492 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15494 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15495 else
15496 ld_shlibs=no
15497 fi
15498 ;;
15499
Reid Spencera773bd52006-08-04 18:18:08 +000015500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15501 case `$LD -v 2>&1` in
15502 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15503 ld_shlibs=no
15504 cat <<_LT_EOF 1>&2
15505
15506*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15507*** reliably create shared libraries on SCO systems. Therefore, libtool
15508*** is disabling shared libraries support. We urge you to upgrade GNU
15509*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15510*** your PATH or compiler configuration so that the native linker is
15511*** used, and then restart.
15512
15513_LT_EOF
15514 ;;
15515 *)
15516 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15517 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15519 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15520 else
15521 ld_shlibs=no
15522 fi
15523 ;;
15524 esac
15525 ;;
15526
John Criswell47fdd832003-07-14 16:52:07 +000015527 sunos4*)
15528 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15529 wlarc=
15530 hardcode_direct=yes
15531 hardcode_shlibpath_var=no
15532 ;;
15533
15534 *)
15535 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15537 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15538 else
15539 ld_shlibs=no
15540 fi
15541 ;;
15542 esac
15543
Reid Spencera773bd52006-08-04 18:18:08 +000015544 if test "$ld_shlibs" = no; then
15545 runpath_var=
15546 hardcode_libdir_flag_spec=
15547 export_dynamic_flag_spec=
15548 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015549 fi
15550 else
15551 # PORTME fill in a description of your system's linker (not GNU ld)
15552 case $host_os in
15553 aix3*)
15554 allow_undefined_flag=unsupported
15555 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015556 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 +000015557 # Note: this linker hardcodes the directories in LIBPATH if there
15558 # are no directories specified by -L.
15559 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015560 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015561 # Neither direct hardcoding nor static linking is supported with a
15562 # broken collect2.
15563 hardcode_direct=unsupported
15564 fi
15565 ;;
15566
15567 aix4* | aix5*)
15568 if test "$host_cpu" = ia64; then
15569 # On IA64, the linker does run time linking by default, so we don't
15570 # have to do anything special.
15571 aix_use_runtimelinking=no
15572 exp_sym_flag='-Bexport'
15573 no_entry_flag=""
15574 else
15575 # If we're using GNU nm, then we don't want the "-C" option.
15576 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15577 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15578 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'
15579 else
15580 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'
15581 fi
15582 aix_use_runtimelinking=no
15583
15584 # Test if we are trying to use run time linking or normal
15585 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15586 # need to do runtime linking.
15587 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15588 for ld_flag in $LDFLAGS; do
15589 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15590 aix_use_runtimelinking=yes
15591 break
15592 fi
15593 done
Reid Spencera773bd52006-08-04 18:18:08 +000015594 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015595 esac
15596
15597 exp_sym_flag='-bexport'
15598 no_entry_flag='-bnoentry'
15599 fi
15600
15601 # When large executables or shared objects are built, AIX ld can
15602 # have problems creating the table of contents. If linking a library
15603 # or program results in "error TOC overflow" add -mminimal-toc to
15604 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15605 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15606
15607 archive_cmds=''
15608 hardcode_direct=yes
15609 hardcode_libdir_separator=':'
15610 link_all_deplibs=yes
15611
15612 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015613 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015614 # We only want to do this on AIX 4.2 and lower, the check
15615 # below for broken collect2 doesn't work under 4.3+
15616 collect2name=`${CC} -print-prog-name=collect2`
15617 if test -f "$collect2name" && \
15618 strings "$collect2name" | grep resolve_lib_name >/dev/null
15619 then
15620 # We have reworked collect2
15621 hardcode_direct=yes
15622 else
15623 # We have old collect2
15624 hardcode_direct=unsupported
15625 # It fails to find uninstalled libraries when the uninstalled
15626 # path is not listed in the libpath. Setting hardcode_minus_L
15627 # to unsupported forces relinking
15628 hardcode_minus_L=yes
15629 hardcode_libdir_flag_spec='-L$libdir'
15630 hardcode_libdir_separator=
15631 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015632 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015633 esac
15634 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015635 if test "$aix_use_runtimelinking" = yes; then
15636 shared_flag="$shared_flag "'${wl}-G'
15637 fi
John Criswell47fdd832003-07-14 16:52:07 +000015638 else
15639 # not using gcc
15640 if test "$host_cpu" = ia64; then
15641 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15642 # chokes on -Wl,-G. The following line is correct:
15643 shared_flag='-G'
15644 else
Reid Spencera773bd52006-08-04 18:18:08 +000015645 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015646 shared_flag='${wl}-G'
15647 else
15648 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015649 fi
John Criswell47fdd832003-07-14 16:52:07 +000015650 fi
15651 fi
15652
15653 # It seems that -bexpall does not export symbols beginning with
15654 # underscore (_), so it is better to generate a list of symbols to export.
15655 always_export_symbols=yes
15656 if test "$aix_use_runtimelinking" = yes; then
15657 # Warning - without using the other runtime loading flags (-brtl),
15658 # -berok will link without error, but may produce a broken library.
15659 allow_undefined_flag='-berok'
15660 # Determine the default libpath from the value encoded in an empty executable.
15661 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015662/* confdefs.h. */
15663_ACEOF
15664cat confdefs.h >>conftest.$ac_ext
15665cat >>conftest.$ac_ext <<_ACEOF
15666/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015667
John Criswell7a73b802003-06-30 21:59:07 +000015668int
15669main ()
15670{
John Criswell47fdd832003-07-14 16:52:07 +000015671
John Criswell7a73b802003-06-30 21:59:07 +000015672 ;
15673 return 0;
15674}
15675_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015676rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015677if { (ac_try="$ac_link"
15678case "(($ac_try" in
15679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15681esac
15682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015684 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015685 grep -v '^ *+' conftest.er1 >conftest.err
15686 rm -f conftest.er1
15687 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015689 (exit $ac_status); } &&
15690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15691 { (case "(($ac_try" in
15692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693 *) ac_try_echo=$ac_try;;
15694esac
15695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696 (eval "$ac_try") 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; } &&
15700 { ac_try='test -s conftest$ac_exeext'
15701 { (case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704esac
15705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_try") 2>&5
15707 ac_status=$?
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015710
John Criswell47fdd832003-07-14 16:52:07 +000015711aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15712}'`
15713# Check for a 64-bit object if we didn't find anything.
15714if 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; }
15715}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015716else
15717 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015718sed 's/^/| /' conftest.$ac_ext >&5
15719
Reid Spencera773bd52006-08-04 18:18:08 +000015720
John Criswell7a73b802003-06-30 21:59:07 +000015721fi
Reid Spencera773bd52006-08-04 18:18:08 +000015722
Bill Wendlingebcceee2009-04-18 11:20:33 +000015723rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015724 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015725if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015726
John Criswell47fdd832003-07-14 16:52:07 +000015727 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015728 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 +000015729 else
15730 if test "$host_cpu" = ia64; then
15731 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15732 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015733 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 +000015734 else
15735 # Determine the default libpath from the value encoded in an empty executable.
15736 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015737/* confdefs.h. */
15738_ACEOF
15739cat confdefs.h >>conftest.$ac_ext
15740cat >>conftest.$ac_ext <<_ACEOF
15741/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015742
John Criswell47fdd832003-07-14 16:52:07 +000015743int
15744main ()
15745{
John Criswell7a73b802003-06-30 21:59:07 +000015746
John Criswell47fdd832003-07-14 16:52:07 +000015747 ;
15748 return 0;
15749}
15750_ACEOF
15751rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015752if { (ac_try="$ac_link"
15753case "(($ac_try" in
15754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755 *) ac_try_echo=$ac_try;;
15756esac
15757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015759 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015760 grep -v '^ *+' conftest.er1 >conftest.err
15761 rm -f conftest.er1
15762 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015764 (exit $ac_status); } &&
15765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15766 { (case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15769esac
15770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_try") 2>&5
15772 ac_status=$?
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; } &&
15775 { ac_try='test -s conftest$ac_exeext'
15776 { (case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15779esac
15780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781 (eval "$ac_try") 2>&5
15782 ac_status=$?
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015785
John Criswell47fdd832003-07-14 16:52:07 +000015786aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15787}'`
15788# Check for a 64-bit object if we didn't find anything.
15789if 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; }
15790}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015791else
John Criswell47fdd832003-07-14 16:52:07 +000015792 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015793sed 's/^/| /' conftest.$ac_ext >&5
15794
Reid Spencera773bd52006-08-04 18:18:08 +000015795
John Criswell47fdd832003-07-14 16:52:07 +000015796fi
Reid Spencera773bd52006-08-04 18:18:08 +000015797
Bill Wendlingebcceee2009-04-18 11:20:33 +000015798rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015799 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015800if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015801
John Criswell47fdd832003-07-14 16:52:07 +000015802 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15803 # Warning - without using the other run time loading flags,
15804 # -berok will link without error, but may produce a broken library.
15805 no_undefined_flag=' ${wl}-bernotok'
15806 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015807 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015808 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015809 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015810 # This is similar to how AIX traditionally builds its shared libraries.
15811 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 +000015812 fi
15813 fi
John Criswell7a73b802003-06-30 21:59:07 +000015814 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015815
15816 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015817 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 +000015818 hardcode_libdir_flag_spec='-L$libdir'
15819 hardcode_minus_L=yes
15820 # see comment about different semantics on the GNU ld section
15821 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015822 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015823
Reid Spencer2706f8c2004-09-19 23:53:36 +000015824 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015825 export_dynamic_flag_spec=-rdynamic
15826 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015827
John Criswell47fdd832003-07-14 16:52:07 +000015828 cygwin* | mingw* | pw32*)
15829 # When not using gcc, we currently assume that we are using
15830 # Microsoft Visual C++.
15831 # hardcode_libdir_flag_spec is actually meaningless, as there is
15832 # no search path for DLLs.
15833 hardcode_libdir_flag_spec=' '
15834 allow_undefined_flag=unsupported
15835 # Tell ltmain to make .lib files, not .a files.
15836 libext=lib
15837 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015838 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015839 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015840 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015841 # The linker will automatically build a .lib file if we build a DLL.
15842 old_archive_From_new_cmds='true'
15843 # FIXME: Should let the user specify the lib program.
15844 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15845 fix_srcfile_path='`cygpath -w "$srcfile"`'
15846 enable_shared_with_static_runtimes=yes
15847 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015848
John Criswell47fdd832003-07-14 16:52:07 +000015849 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015850 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015851 rhapsody* | darwin1.[012])
15852 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15853 ;;
15854 *) # Darwin 1.3 on
15855 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15856 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15857 else
15858 case ${MACOSX_DEPLOYMENT_TARGET} in
15859 10.[012])
15860 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15861 ;;
15862 10.*)
15863 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15864 ;;
15865 esac
15866 fi
15867 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015868 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015869 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015870 hardcode_direct=no
15871 hardcode_automatic=yes
15872 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015873 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015874 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015875 if test "$GCC" = yes ; then
15876 output_verbose_link_cmd='echo'
15877 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15878 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015879 # 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 +000015880 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}'
15881 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 +000015882 else
Reid Spencera773bd52006-08-04 18:18:08 +000015883 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015884 xlc*)
15885 output_verbose_link_cmd='echo'
15886 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15887 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015888 # 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 +000015889 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}'
15890 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 +000015891 ;;
15892 *)
15893 ld_shlibs=no
15894 ;;
15895 esac
John Criswell7a73b802003-06-30 21:59:07 +000015896 fi
John Criswell47fdd832003-07-14 16:52:07 +000015897 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015898
John Criswell47fdd832003-07-14 16:52:07 +000015899 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015901 hardcode_libdir_flag_spec='-L$libdir'
15902 hardcode_shlibpath_var=no
15903 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015904
John Criswell47fdd832003-07-14 16:52:07 +000015905 freebsd1*)
15906 ld_shlibs=no
15907 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015908
John Criswell47fdd832003-07-14 16:52:07 +000015909 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15910 # support. Future versions do this automatically, but an explicit c++rt0.o
15911 # does not break anything, and helps significantly (at the cost of a little
15912 # extra space).
15913 freebsd2.2*)
15914 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15915 hardcode_libdir_flag_spec='-R$libdir'
15916 hardcode_direct=yes
15917 hardcode_shlibpath_var=no
15918 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015919
John Criswell47fdd832003-07-14 16:52:07 +000015920 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15921 freebsd2*)
15922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15923 hardcode_direct=yes
15924 hardcode_minus_L=yes
15925 hardcode_shlibpath_var=no
15926 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015927
John Criswell47fdd832003-07-14 16:52:07 +000015928 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015929 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015930 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15931 hardcode_libdir_flag_spec='-R$libdir'
15932 hardcode_direct=yes
15933 hardcode_shlibpath_var=no
15934 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015935
John Criswell47fdd832003-07-14 16:52:07 +000015936 hpux9*)
15937 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015938 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 +000015939 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015940 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 +000015941 fi
15942 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15943 hardcode_libdir_separator=:
15944 hardcode_direct=yes
15945
15946 # hardcode_minus_L: Not really in the search PATH,
15947 # but as the default location of the library.
15948 hardcode_minus_L=yes
15949 export_dynamic_flag_spec='${wl}-E'
15950 ;;
15951
Reid Spencera773bd52006-08-04 18:18:08 +000015952 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015953 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015954 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15955 else
15956 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15957 fi
15958 if test "$with_gnu_ld" = no; then
15959 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15960 hardcode_libdir_separator=:
15961
15962 hardcode_direct=yes
15963 export_dynamic_flag_spec='${wl}-E'
15964
15965 # hardcode_minus_L: Not really in the search PATH,
15966 # but as the default location of the library.
15967 hardcode_minus_L=yes
15968 fi
15969 ;;
15970
15971 hpux11*)
15972 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15973 case $host_cpu in
15974 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015975 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15976 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015977 ia64*)
15978 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15979 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015980 *)
15981 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15982 ;;
15983 esac
15984 else
Reid Spencera773bd52006-08-04 18:18:08 +000015985 case $host_cpu in
15986 hppa*64*)
15987 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15988 ;;
15989 ia64*)
15990 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015991 ;;
15992 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015993 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 +000015994 ;;
15995 esac
15996 fi
15997 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015998 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15999 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000016000
Reid Spencera773bd52006-08-04 18:18:08 +000016001 case $host_cpu in
16002 hppa*64*|ia64*)
16003 hardcode_libdir_flag_spec_ld='+b $libdir'
16004 hardcode_direct=no
16005 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000016006 ;;
16007 *)
John Criswell47fdd832003-07-14 16:52:07 +000016008 hardcode_direct=yes
16009 export_dynamic_flag_spec='${wl}-E'
16010
16011 # hardcode_minus_L: Not really in the search PATH,
16012 # but as the default location of the library.
16013 hardcode_minus_L=yes
16014 ;;
16015 esac
16016 fi
16017 ;;
16018
16019 irix5* | irix6* | nonstopux*)
16020 if test "$GCC" = yes; then
16021 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'
16022 else
16023 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'
16024 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16025 fi
16026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16027 hardcode_libdir_separator=:
16028 link_all_deplibs=yes
16029 ;;
16030
16031 netbsd*)
16032 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16033 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16034 else
16035 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16036 fi
16037 hardcode_libdir_flag_spec='-R$libdir'
16038 hardcode_direct=yes
16039 hardcode_shlibpath_var=no
16040 ;;
16041
16042 newsos6)
16043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16044 hardcode_direct=yes
16045 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16046 hardcode_libdir_separator=:
16047 hardcode_shlibpath_var=no
16048 ;;
16049
16050 openbsd*)
16051 hardcode_direct=yes
16052 hardcode_shlibpath_var=no
16053 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16054 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016055 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 +000016056 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16057 export_dynamic_flag_spec='${wl}-E'
16058 else
16059 case $host_os in
16060 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16062 hardcode_libdir_flag_spec='-R$libdir'
16063 ;;
16064 *)
16065 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16066 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16067 ;;
16068 esac
16069 fi
16070 ;;
16071
16072 os2*)
16073 hardcode_libdir_flag_spec='-L$libdir'
16074 hardcode_minus_L=yes
16075 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016076 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 +000016077 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16078 ;;
16079
16080 osf3*)
16081 if test "$GCC" = yes; then
16082 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16083 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'
16084 else
16085 allow_undefined_flag=' -expect_unresolved \*'
16086 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'
16087 fi
16088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16089 hardcode_libdir_separator=:
16090 ;;
16091
16092 osf4* | osf5*) # as osf3* with the addition of -msym flag
16093 if test "$GCC" = yes; then
16094 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16095 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'
16096 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16097 else
16098 allow_undefined_flag=' -expect_unresolved \*'
16099 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 +000016100 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 +000016101 $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 +000016102
John Criswell47fdd832003-07-14 16:52:07 +000016103 # Both c and cxx compiler support -rpath directly
16104 hardcode_libdir_flag_spec='-rpath $libdir'
16105 fi
16106 hardcode_libdir_separator=:
16107 ;;
16108
John Criswell47fdd832003-07-14 16:52:07 +000016109 solaris*)
16110 no_undefined_flag=' -z text'
16111 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016112 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016113 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016114 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16115 $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 +000016116 else
Reid Spencera773bd52006-08-04 18:18:08 +000016117 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016118 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016119 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16120 $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 +000016121 fi
16122 hardcode_libdir_flag_spec='-R$libdir'
16123 hardcode_shlibpath_var=no
16124 case $host_os in
16125 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016126 *)
16127 # The compiler driver will combine linker options so we
16128 # cannot just pass the convience library names through
16129 # without $wl, iff we do not link with $LD.
16130 # Luckily, gcc supports the same syntax we need for Sun Studio.
16131 # Supported since Solaris 2.6 (maybe 2.5.1?)
16132 case $wlarc in
16133 '')
16134 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16135 *)
16136 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' ;;
16137 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016138 esac
16139 link_all_deplibs=yes
16140 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016141
John Criswell47fdd832003-07-14 16:52:07 +000016142 sunos4*)
16143 if test "x$host_vendor" = xsequent; then
16144 # Use $CC to link under sequent, because it throws in some extra .o
16145 # files that make .init and .fini sections work.
16146 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16147 else
16148 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16149 fi
16150 hardcode_libdir_flag_spec='-L$libdir'
16151 hardcode_direct=yes
16152 hardcode_minus_L=yes
16153 hardcode_shlibpath_var=no
16154 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016155
John Criswell47fdd832003-07-14 16:52:07 +000016156 sysv4)
16157 case $host_vendor in
16158 sni)
16159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16160 hardcode_direct=yes # is this really true???
16161 ;;
16162 siemens)
16163 ## LD is ld it makes a PLAMLIB
16164 ## CC just makes a GrossModule.
16165 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16166 reload_cmds='$CC -r -o $output$reload_objs'
16167 hardcode_direct=no
16168 ;;
16169 motorola)
16170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16171 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16172 ;;
16173 esac
16174 runpath_var='LD_RUN_PATH'
16175 hardcode_shlibpath_var=no
16176 ;;
16177
16178 sysv4.3*)
16179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16180 hardcode_shlibpath_var=no
16181 export_dynamic_flag_spec='-Bexport'
16182 ;;
16183
16184 sysv4*MP*)
16185 if test -d /usr/nec; then
16186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16187 hardcode_shlibpath_var=no
16188 runpath_var=LD_RUN_PATH
16189 hardcode_runpath_var=yes
16190 ld_shlibs=yes
16191 fi
16192 ;;
16193
Reid Spencera773bd52006-08-04 18:18:08 +000016194 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16195 no_undefined_flag='${wl}-z,text'
16196 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016197 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016198 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016199
John Criswell47fdd832003-07-14 16:52:07 +000016200 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016201 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16202 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 +000016203 else
Reid Spencera773bd52006-08-04 18:18:08 +000016204 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16205 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 +000016206 fi
John Criswell47fdd832003-07-14 16:52:07 +000016207 ;;
16208
Reid Spencera773bd52006-08-04 18:18:08 +000016209 sysv5* | sco3.2v5* | sco5v6*)
16210 # Note: We can NOT use -z defs as we might desire, because we do not
16211 # link with -lc, and that would cause any symbols used from libc to
16212 # always be unresolved, which means just about no library would
16213 # ever link correctly. If we're not using GNU ld we use -z text
16214 # though, which does catch some bad symbols but isn't as heavy-handed
16215 # as -z defs.
16216 no_undefined_flag='${wl}-z,text'
16217 allow_undefined_flag='${wl}-z,nodefs'
16218 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016219 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016220 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16221 hardcode_libdir_separator=':'
16222 link_all_deplibs=yes
16223 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016224 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016225
16226 if test "$GCC" = yes; then
16227 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16228 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16229 else
16230 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16231 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16232 fi
John Criswell47fdd832003-07-14 16:52:07 +000016233 ;;
16234
16235 uts4*)
16236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16237 hardcode_libdir_flag_spec='-L$libdir'
16238 hardcode_shlibpath_var=no
16239 ;;
16240
16241 *)
16242 ld_shlibs=no
16243 ;;
16244 esac
16245 fi
16246
Reid Spencera773bd52006-08-04 18:18:08 +000016247{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16248echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016249test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016250
John Criswell47fdd832003-07-14 16:52:07 +000016251#
16252# Do we need to explicitly link libc?
16253#
16254case "x$archive_cmds_need_lc" in
16255x|xyes)
16256 # Assume -lc should be added
16257 archive_cmds_need_lc=yes
16258
16259 if test "$enable_shared" = yes && test "$GCC" = yes; then
16260 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016261 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016262 # FIXME: we may have to deal with multi-command sequences.
16263 ;;
16264 '$CC '*)
16265 # Test whether the compiler implicitly links with -lc since on some
16266 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16267 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016268 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16269echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016270 $rm conftest*
16271 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16272
16273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16274 (eval $ac_compile) 2>&5
16275 ac_status=$?
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } 2>conftest.err; then
16278 soname=conftest
16279 lib=conftest
16280 libobjs=conftest.$ac_objext
16281 deplibs=
16282 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016283 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016284 compiler_flags=-v
16285 linker_flags=-v
16286 verstring=
16287 output_objdir=.
16288 libname=conftest
16289 lt_save_allow_undefined_flag=$allow_undefined_flag
16290 allow_undefined_flag=
16291 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16292 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16293 ac_status=$?
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }
16296 then
16297 archive_cmds_need_lc=no
16298 else
16299 archive_cmds_need_lc=yes
16300 fi
16301 allow_undefined_flag=$lt_save_allow_undefined_flag
16302 else
16303 cat conftest.err 1>&5
16304 fi
16305 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016306 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16307echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016308 ;;
16309 esac
16310 fi
16311 ;;
16312esac
16313
Reid Spencera773bd52006-08-04 18:18:08 +000016314{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16315echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016316library_names_spec=
16317libname_spec='lib$name'
16318soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016319shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016320postinstall_cmds=
16321postuninstall_cmds=
16322finish_cmds=
16323finish_eval=
16324shlibpath_var=
16325shlibpath_overrides_runpath=unknown
16326version_type=none
16327dynamic_linker="$host_os ld.so"
16328sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016329if test "$GCC" = yes; then
16330 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16331 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16332 # if the path contains ";" then we assume it to be the separator
16333 # otherwise default to the standard path separator (i.e. ":") - it is
16334 # assumed that no part of a normal pathname contains ";" but that should
16335 # okay in the real world where ";" in dirpaths is itself problematic.
16336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16337 else
16338 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16339 fi
16340else
16341 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16342fi
16343need_lib_prefix=unknown
16344hardcode_into_libs=no
16345
16346# when you set need_version to no, make sure it does not cause -set_version
16347# flags to be left without arguments
16348need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016349
16350case $host_os in
16351aix3*)
16352 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016353 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016354 shlibpath_var=LIBPATH
16355
John Criswell47fdd832003-07-14 16:52:07 +000016356 # AIX 3 has no versioning support, so we append a major version to the name.
16357 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016358 ;;
16359
16360aix4* | aix5*)
16361 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016362 need_lib_prefix=no
16363 need_version=no
16364 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016365 if test "$host_cpu" = ia64; then
16366 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016367 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016368 shlibpath_var=LD_LIBRARY_PATH
16369 else
16370 # With GCC up to 2.95.x, collect2 would create an import file
16371 # for dependence libraries. The import file would start with
16372 # the line `#! .'. This would cause the generated library to
16373 # depend on `.', always an invalid library. This was fixed in
16374 # development snapshots of GCC prior to 3.0.
16375 case $host_os in
16376 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016377 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16378 echo ' yes '
16379 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16380 :
16381 else
16382 can_build_shared=no
16383 fi
16384 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016385 esac
John Criswell47fdd832003-07-14 16:52:07 +000016386 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16387 # soname into executable. Probably we can add versioning support to
16388 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016389 if test "$aix_use_runtimelinking" = yes; then
16390 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16391 # instead of lib<name>.a to let people know that these are not
16392 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016394 else
16395 # We preserve .a as extension for shared libraries through AIX4.2
16396 # and later when we are not doing run time linking.
16397 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016398 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016399 fi
16400 shlibpath_var=LIBPATH
16401 fi
16402 ;;
16403
16404amigaos*)
16405 library_names_spec='$libname.ixlibrary $libname.a'
16406 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016407 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 +000016408 ;;
16409
16410beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016411 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016412 dynamic_linker="$host_os ld.so"
16413 shlibpath_var=LIBRARY_PATH
16414 ;;
16415
Reid Spencer2706f8c2004-09-19 23:53:36 +000016416bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016417 version_type=linux
16418 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016421 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16424 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016425 # the default ld.so.conf also contains /usr/contrib/lib and
16426 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16427 # libtool to hard-code these into programs
16428 ;;
16429
16430cygwin* | mingw* | pw32*)
16431 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016432 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016433 need_version=no
16434 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016435
John Criswell7a73b802003-06-30 21:59:07 +000016436 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016437 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016438 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016439 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016440 postinstall_cmds='base_file=`basename \${file}`~
16441 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16442 dldir=$destdir/`dirname \$dlpath`~
16443 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016444 $install_prog $dir/$dlname \$dldir/$dlname~
16445 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016446 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16447 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016448 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016449 shlibpath_overrides_runpath=yes
16450
16451 case $host_os in
16452 cygwin*)
16453 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16454 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 +000016455 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016456 ;;
16457 mingw*)
16458 # MinGW DLLs use traditional 'lib' prefix
16459 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16460 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16461 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16462 # It is most probably a Windows format PATH printed by
16463 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16464 # path with ; separators, and with drive letters. We can handle the
16465 # drive letters (cygwin fileutils understands them), so leave them,
16466 # especially as we might pass files found there to a mingw objdump,
16467 # which wouldn't understand a cygwinified path. Ahh.
16468 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16469 else
16470 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16471 fi
16472 ;;
16473 pw32*)
16474 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016475 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 +000016476 ;;
16477 esac
John Criswell7a73b802003-06-30 21:59:07 +000016478 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016479
John Criswell7a73b802003-06-30 21:59:07 +000016480 *)
John Criswell47fdd832003-07-14 16:52:07 +000016481 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016482 ;;
16483 esac
16484 dynamic_linker='Win32 ld.exe'
16485 # FIXME: first we should search . and the directory the executable is in
16486 shlibpath_var=PATH
16487 ;;
16488
16489darwin* | rhapsody*)
16490 dynamic_linker="$host_os dyld"
16491 version_type=darwin
16492 need_lib_prefix=no
16493 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016494 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016495 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016496 shlibpath_overrides_runpath=yes
16497 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016498 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016499 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016500 if test "$GCC" = yes; then
16501 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"`
16502 else
16503 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016504 fi
16505 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16506 ;;
16507
16508dgux*)
16509 version_type=linux
16510 need_lib_prefix=no
16511 need_version=no
16512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16513 soname_spec='${libname}${release}${shared_ext}$major'
16514 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016515 ;;
16516
16517freebsd1*)
16518 dynamic_linker=no
16519 ;;
16520
Reid Spencer2706f8c2004-09-19 23:53:36 +000016521kfreebsd*-gnu)
16522 version_type=linux
16523 need_lib_prefix=no
16524 need_version=no
16525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16526 soname_spec='${libname}${release}${shared_ext}$major'
16527 shlibpath_var=LD_LIBRARY_PATH
16528 shlibpath_overrides_runpath=no
16529 hardcode_into_libs=yes
16530 dynamic_linker='GNU ld.so'
16531 ;;
16532
Reid Spencera773bd52006-08-04 18:18:08 +000016533freebsd* | dragonfly*)
16534 # DragonFly does not have aout. When/if they implement a new
16535 # versioning mechanism, adjust this.
16536 if test -x /usr/bin/objformat; then
16537 objformat=`/usr/bin/objformat`
16538 else
16539 case $host_os in
16540 freebsd[123]*) objformat=aout ;;
16541 *) objformat=elf ;;
16542 esac
16543 fi
John Criswell7a73b802003-06-30 21:59:07 +000016544 version_type=freebsd-$objformat
16545 case $version_type in
16546 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016548 need_version=no
16549 need_lib_prefix=no
16550 ;;
16551 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016553 need_version=yes
16554 ;;
16555 esac
16556 shlibpath_var=LD_LIBRARY_PATH
16557 case $host_os in
16558 freebsd2*)
16559 shlibpath_overrides_runpath=yes
16560 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016561 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016562 shlibpath_overrides_runpath=yes
16563 hardcode_into_libs=yes
16564 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016565 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16566 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016567 shlibpath_overrides_runpath=no
16568 hardcode_into_libs=yes
16569 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016570 freebsd*) # from 4.6 on
16571 shlibpath_overrides_runpath=yes
16572 hardcode_into_libs=yes
16573 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016574 esac
16575 ;;
16576
16577gnu*)
16578 version_type=linux
16579 need_lib_prefix=no
16580 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16582 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016583 shlibpath_var=LD_LIBRARY_PATH
16584 hardcode_into_libs=yes
16585 ;;
16586
16587hpux9* | hpux10* | hpux11*)
16588 # Give a soname corresponding to the major version so that dld.sl refuses to
16589 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016590 version_type=sunos
16591 need_lib_prefix=no
16592 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016593 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016594 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016595 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016596 hardcode_into_libs=yes
16597 dynamic_linker="$host_os dld.so"
16598 shlibpath_var=LD_LIBRARY_PATH
16599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16601 soname_spec='${libname}${release}${shared_ext}$major'
16602 if test "X$HPUX_IA64_MODE" = X32; then
16603 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16604 else
16605 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16606 fi
16607 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16608 ;;
16609 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016610 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016611 hardcode_into_libs=yes
16612 dynamic_linker="$host_os dld.sl"
16613 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16616 soname_spec='${libname}${release}${shared_ext}$major'
16617 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16618 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16619 ;;
16620 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016621 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016622 dynamic_linker="$host_os dld.sl"
16623 shlibpath_var=SHLIB_PATH
16624 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16626 soname_spec='${libname}${release}${shared_ext}$major'
16627 ;;
16628 esac
John Criswell7a73b802003-06-30 21:59:07 +000016629 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16630 postinstall_cmds='chmod 555 $lib'
16631 ;;
16632
Reid Spencera773bd52006-08-04 18:18:08 +000016633interix3*)
16634 version_type=linux
16635 need_lib_prefix=no
16636 need_version=no
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16638 soname_spec='${libname}${release}${shared_ext}$major'
16639 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16640 shlibpath_var=LD_LIBRARY_PATH
16641 shlibpath_overrides_runpath=no
16642 hardcode_into_libs=yes
16643 ;;
16644
John Criswell47fdd832003-07-14 16:52:07 +000016645irix5* | irix6* | nonstopux*)
16646 case $host_os in
16647 nonstopux*) version_type=nonstopux ;;
16648 *)
16649 if test "$lt_cv_prog_gnu_ld" = yes; then
16650 version_type=linux
16651 else
16652 version_type=irix
16653 fi ;;
16654 esac
John Criswell7a73b802003-06-30 21:59:07 +000016655 need_lib_prefix=no
16656 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016657 soname_spec='${libname}${release}${shared_ext}$major'
16658 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 +000016659 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016660 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016661 libsuff= shlibsuff=
16662 ;;
16663 *)
16664 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016665 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16666 libsuff= shlibsuff= libmagic=32-bit;;
16667 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16668 libsuff=32 shlibsuff=N32 libmagic=N32;;
16669 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16670 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016671 *) libsuff= shlibsuff= libmagic=never-match;;
16672 esac
16673 ;;
16674 esac
16675 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16676 shlibpath_overrides_runpath=no
16677 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16678 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016679 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016680 ;;
16681
16682# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016683linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016684 dynamic_linker=no
16685 ;;
16686
16687# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016688linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016689 version_type=linux
16690 need_lib_prefix=no
16691 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16695 shlibpath_var=LD_LIBRARY_PATH
16696 shlibpath_overrides_runpath=no
16697 # This implies no fast_install, which is unacceptable.
16698 # Some rework will be needed to allow for fast_install
16699 # before this can be enabled.
16700 hardcode_into_libs=yes
16701
Reid Spencer2706f8c2004-09-19 23:53:36 +000016702 # Append ld.so.conf contents to the search path
16703 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016704 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 +000016705 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16706 fi
16707
John Criswell7a73b802003-06-30 21:59:07 +000016708 # We used to test for /lib/ld.so.1 and disable shared libraries on
16709 # powerpc, because MkLinux only supported shared libraries with the
16710 # GNU dynamic linker. Since this was broken with cross compilers,
16711 # most powerpc-linux boxes support dynamic linking these days and
16712 # people can always --disable-shared, the test was removed, and we
16713 # assume the GNU/Linux dynamic linker is in use.
16714 dynamic_linker='GNU/Linux ld.so'
16715 ;;
16716
Reid Spencer2706f8c2004-09-19 23:53:36 +000016717knetbsd*-gnu)
16718 version_type=linux
16719 need_lib_prefix=no
16720 need_version=no
16721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16722 soname_spec='${libname}${release}${shared_ext}$major'
16723 shlibpath_var=LD_LIBRARY_PATH
16724 shlibpath_overrides_runpath=no
16725 hardcode_into_libs=yes
16726 dynamic_linker='GNU ld.so'
16727 ;;
16728
John Criswell7a73b802003-06-30 21:59:07 +000016729netbsd*)
16730 version_type=sunos
16731 need_lib_prefix=no
16732 need_version=no
16733 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16736 dynamic_linker='NetBSD (a.out) ld.so'
16737 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016739 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016740 dynamic_linker='NetBSD ld.elf_so'
16741 fi
16742 shlibpath_var=LD_LIBRARY_PATH
16743 shlibpath_overrides_runpath=yes
16744 hardcode_into_libs=yes
16745 ;;
16746
16747newsos6)
16748 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16750 shlibpath_var=LD_LIBRARY_PATH
16751 shlibpath_overrides_runpath=yes
16752 ;;
16753
Reid Spencer2706f8c2004-09-19 23:53:36 +000016754nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016755 version_type=linux
16756 need_lib_prefix=no
16757 need_version=no
16758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016760 shlibpath_var=LD_LIBRARY_PATH
16761 shlibpath_overrides_runpath=yes
16762 ;;
16763
16764openbsd*)
16765 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016766 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016767 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016768 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16769 case $host_os in
16770 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16771 *) need_version=no ;;
16772 esac
John Criswell47fdd832003-07-14 16:52:07 +000016773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16775 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016776 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 +000016777 case $host_os in
16778 openbsd2.[89] | openbsd2.[89].*)
16779 shlibpath_overrides_runpath=no
16780 ;;
16781 *)
16782 shlibpath_overrides_runpath=yes
16783 ;;
16784 esac
John Criswell7a73b802003-06-30 21:59:07 +000016785 else
16786 shlibpath_overrides_runpath=yes
16787 fi
John Criswell7a73b802003-06-30 21:59:07 +000016788 ;;
16789
16790os2*)
16791 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016792 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016793 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016794 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016795 dynamic_linker='OS/2 ld.exe'
16796 shlibpath_var=LIBPATH
16797 ;;
16798
16799osf3* | osf4* | osf5*)
16800 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016801 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016802 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016803 soname_spec='${libname}${release}${shared_ext}$major'
16804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016805 shlibpath_var=LD_LIBRARY_PATH
16806 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16807 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16808 ;;
16809
John Criswell7a73b802003-06-30 21:59:07 +000016810solaris*)
16811 version_type=linux
16812 need_lib_prefix=no
16813 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16815 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016816 shlibpath_var=LD_LIBRARY_PATH
16817 shlibpath_overrides_runpath=yes
16818 hardcode_into_libs=yes
16819 # ldd complains unless libraries are executable
16820 postinstall_cmds='chmod +x $lib'
16821 ;;
16822
16823sunos4*)
16824 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016826 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16827 shlibpath_var=LD_LIBRARY_PATH
16828 shlibpath_overrides_runpath=yes
16829 if test "$with_gnu_ld" = yes; then
16830 need_lib_prefix=no
16831 fi
16832 need_version=yes
16833 ;;
16834
Reid Spencera773bd52006-08-04 18:18:08 +000016835sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016836 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016839 shlibpath_var=LD_LIBRARY_PATH
16840 case $host_vendor in
16841 sni)
16842 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016843 need_lib_prefix=no
16844 export_dynamic_flag_spec='${wl}-Blargedynsym'
16845 runpath_var=LD_RUN_PATH
16846 ;;
16847 siemens)
16848 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016849 ;;
16850 motorola)
16851 need_lib_prefix=no
16852 need_version=no
16853 shlibpath_overrides_runpath=no
16854 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16855 ;;
16856 esac
16857 ;;
16858
John Criswell7a73b802003-06-30 21:59:07 +000016859sysv4*MP*)
16860 if test -d /usr/nec ;then
16861 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016862 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16863 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016864 shlibpath_var=LD_LIBRARY_PATH
16865 fi
16866 ;;
16867
Reid Spencera773bd52006-08-04 18:18:08 +000016868sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16869 version_type=freebsd-elf
16870 need_lib_prefix=no
16871 need_version=no
16872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16873 soname_spec='${libname}${release}${shared_ext}$major'
16874 shlibpath_var=LD_LIBRARY_PATH
16875 hardcode_into_libs=yes
16876 if test "$with_gnu_ld" = yes; then
16877 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16878 shlibpath_overrides_runpath=no
16879 else
16880 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16881 shlibpath_overrides_runpath=yes
16882 case $host_os in
16883 sco3.2v5*)
16884 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16885 ;;
16886 esac
16887 fi
16888 sys_lib_dlsearch_path_spec='/usr/lib'
16889 ;;
16890
John Criswell47fdd832003-07-14 16:52:07 +000016891uts4*)
16892 version_type=linux
16893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894 soname_spec='${libname}${release}${shared_ext}$major'
16895 shlibpath_var=LD_LIBRARY_PATH
16896 ;;
16897
John Criswell7a73b802003-06-30 21:59:07 +000016898*)
16899 dynamic_linker=no
16900 ;;
16901esac
Reid Spencera773bd52006-08-04 18:18:08 +000016902{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16903echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016904test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016905
Reid Spencera773bd52006-08-04 18:18:08 +000016906variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16907if test "$GCC" = yes; then
16908 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16909fi
16910
16911{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16912echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016913hardcode_action=
16914if test -n "$hardcode_libdir_flag_spec" || \
16915 test -n "$runpath_var" || \
16916 test "X$hardcode_automatic" = "Xyes" ; then
16917
16918 # We can hardcode non-existant directories.
16919 if test "$hardcode_direct" != no &&
16920 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16921 # have to relink, otherwise we might link with an installed library
16922 # when we should be linking with a yet-to-be-installed one
16923 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16924 test "$hardcode_minus_L" != no; then
16925 # Linking always hardcodes the temporary library directory.
16926 hardcode_action=relink
16927 else
16928 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16929 hardcode_action=immediate
16930 fi
16931else
16932 # We cannot hardcode anything, or else we can only hardcode existing
16933 # directories.
16934 hardcode_action=unsupported
16935fi
Reid Spencera773bd52006-08-04 18:18:08 +000016936{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16937echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016938
16939if test "$hardcode_action" = relink; then
16940 # Fast installation is not supported
16941 enable_fast_install=no
16942elif test "$shlibpath_overrides_runpath" = yes ||
16943 test "$enable_shared" = no; then
16944 # Fast installation is not necessary
16945 enable_fast_install=needless
16946fi
16947
16948striplib=
16949old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016950{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16951echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016952if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16953 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16954 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016955 { echo "$as_me:$LINENO: result: yes" >&5
16956echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016957else
16958# FIXME - insert some real tests, host_os isn't really good enough
16959 case $host_os in
16960 darwin*)
16961 if test -n "$STRIP" ; then
16962 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016963 { echo "$as_me:$LINENO: result: yes" >&5
16964echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016965 else
Reid Spencera773bd52006-08-04 18:18:08 +000016966 { echo "$as_me:$LINENO: result: no" >&5
16967echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016968fi
16969 ;;
16970 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016971 { echo "$as_me:$LINENO: result: no" >&5
16972echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016973 ;;
16974 esac
16975fi
16976
John Criswell7a73b802003-06-30 21:59:07 +000016977if test "x$enable_dlopen" != xyes; then
16978 enable_dlopen=unknown
16979 enable_dlopen_self=unknown
16980 enable_dlopen_self_static=unknown
16981else
16982 lt_cv_dlopen=no
16983 lt_cv_dlopen_libs=
16984
16985 case $host_os in
16986 beos*)
16987 lt_cv_dlopen="load_add_on"
16988 lt_cv_dlopen_libs=
16989 lt_cv_dlopen_self=yes
16990 ;;
16991
John Criswell47fdd832003-07-14 16:52:07 +000016992 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016993 lt_cv_dlopen="LoadLibrary"
16994 lt_cv_dlopen_libs=
16995 ;;
16996
John Criswell47fdd832003-07-14 16:52:07 +000016997 cygwin*)
16998 lt_cv_dlopen="dlopen"
16999 lt_cv_dlopen_libs=
17000 ;;
17001
17002 darwin*)
17003 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000017004 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17005echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017006if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17008else
17009 ac_check_lib_save_LIBS=$LIBS
17010LIBS="-ldl $LIBS"
17011cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017012/* confdefs.h. */
17013_ACEOF
17014cat confdefs.h >>conftest.$ac_ext
17015cat >>conftest.$ac_ext <<_ACEOF
17016/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017017
Reid Spencera773bd52006-08-04 18:18:08 +000017018/* Override any GCC internal prototype to avoid an error.
17019 Use char because int might match the return type of a GCC
17020 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000017021#ifdef __cplusplus
17022extern "C"
17023#endif
John Criswell47fdd832003-07-14 16:52:07 +000017024char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017025int
17026main ()
17027{
Reid Spencera773bd52006-08-04 18:18:08 +000017028return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017029 ;
17030 return 0;
17031}
17032_ACEOF
17033rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017034if { (ac_try="$ac_link"
17035case "(($ac_try" in
17036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037 *) ac_try_echo=$ac_try;;
17038esac
17039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017041 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017042 grep -v '^ *+' conftest.er1 >conftest.err
17043 rm -f conftest.er1
17044 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017046 (exit $ac_status); } &&
17047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17048 { (case "(($ac_try" in
17049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050 *) ac_try_echo=$ac_try;;
17051esac
17052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053 (eval "$ac_try") 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; } &&
17057 { ac_try='test -s conftest$ac_exeext'
17058 { (case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17061esac
17062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_try") 2>&5
17064 ac_status=$?
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000017067 ac_cv_lib_dl_dlopen=yes
17068else
17069 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017070sed 's/^/| /' conftest.$ac_ext >&5
17071
Reid Spencera773bd52006-08-04 18:18:08 +000017072 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000017073fi
Reid Spencera773bd52006-08-04 18:18:08 +000017074
Bill Wendlingebcceee2009-04-18 11:20:33 +000017075rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017076 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017077LIBS=$ac_check_lib_save_LIBS
17078fi
Reid Spencera773bd52006-08-04 18:18:08 +000017079{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17080echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017081if test $ac_cv_lib_dl_dlopen = yes; then
17082 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17083else
17084
17085 lt_cv_dlopen="dyld"
17086 lt_cv_dlopen_libs=
17087 lt_cv_dlopen_self=yes
17088
17089fi
17090
17091 ;;
17092
John Criswell7a73b802003-06-30 21:59:07 +000017093 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017094 { echo "$as_me:$LINENO: checking for shl_load" >&5
17095echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017096if test "${ac_cv_func_shl_load+set}" = set; then
17097 echo $ECHO_N "(cached) $ECHO_C" >&6
17098else
17099 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017100/* confdefs.h. */
17101_ACEOF
17102cat confdefs.h >>conftest.$ac_ext
17103cat >>conftest.$ac_ext <<_ACEOF
17104/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017105/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17107#define shl_load innocuous_shl_load
17108
John Criswell7a73b802003-06-30 21:59:07 +000017109/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017110 which can conflict with char shl_load (); below.
17111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17112 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017113
John Criswell0c38eaf2003-09-10 15:17:25 +000017114#ifdef __STDC__
17115# include <limits.h>
17116#else
17117# include <assert.h>
17118#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017119
17120#undef shl_load
17121
Reid Spencera773bd52006-08-04 18:18:08 +000017122/* Override any GCC internal prototype to avoid an error.
17123 Use char because int might match the return type of a GCC
17124 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017125#ifdef __cplusplus
17126extern "C"
17127#endif
John Criswell7a73b802003-06-30 21:59:07 +000017128char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017129/* The GNU C library defines this for functions which it implements
17130 to always fail with ENOSYS. Some functions are actually named
17131 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017132#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017133choke me
John Criswell7a73b802003-06-30 21:59:07 +000017134#endif
17135
John Criswell0c38eaf2003-09-10 15:17:25 +000017136int
17137main ()
17138{
Reid Spencera773bd52006-08-04 18:18:08 +000017139return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017140 ;
17141 return 0;
17142}
17143_ACEOF
17144rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017145if { (ac_try="$ac_link"
17146case "(($ac_try" in
17147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148 *) ac_try_echo=$ac_try;;
17149esac
17150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017152 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017153 grep -v '^ *+' conftest.er1 >conftest.err
17154 rm -f conftest.er1
17155 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017157 (exit $ac_status); } &&
17158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17159 { (case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17162esac
17163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_try") 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; } &&
17168 { ac_try='test -s conftest$ac_exeext'
17169 { (case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17172esac
17173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174 (eval "$ac_try") 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017178 ac_cv_func_shl_load=yes
17179else
17180 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017181sed 's/^/| /' conftest.$ac_ext >&5
17182
Reid Spencera773bd52006-08-04 18:18:08 +000017183 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017184fi
Reid Spencera773bd52006-08-04 18:18:08 +000017185
Bill Wendlingebcceee2009-04-18 11:20:33 +000017186rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017187 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017188fi
Reid Spencera773bd52006-08-04 18:18:08 +000017189{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17190echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017191if test $ac_cv_func_shl_load = yes; then
17192 lt_cv_dlopen="shl_load"
17193else
Reid Spencera773bd52006-08-04 18:18:08 +000017194 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17195echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017196if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17197 echo $ECHO_N "(cached) $ECHO_C" >&6
17198else
17199 ac_check_lib_save_LIBS=$LIBS
17200LIBS="-ldld $LIBS"
17201cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017202/* confdefs.h. */
17203_ACEOF
17204cat confdefs.h >>conftest.$ac_ext
17205cat >>conftest.$ac_ext <<_ACEOF
17206/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017207
Reid Spencera773bd52006-08-04 18:18:08 +000017208/* Override any GCC internal prototype to avoid an error.
17209 Use char because int might match the return type of a GCC
17210 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017211#ifdef __cplusplus
17212extern "C"
17213#endif
John Criswell7a73b802003-06-30 21:59:07 +000017214char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017215int
17216main ()
17217{
Reid Spencera773bd52006-08-04 18:18:08 +000017218return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017219 ;
17220 return 0;
17221}
17222_ACEOF
17223rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017224if { (ac_try="$ac_link"
17225case "(($ac_try" in
17226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227 *) ac_try_echo=$ac_try;;
17228esac
17229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017231 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017232 grep -v '^ *+' conftest.er1 >conftest.err
17233 rm -f conftest.er1
17234 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017236 (exit $ac_status); } &&
17237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17238 { (case "(($ac_try" in
17239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240 *) ac_try_echo=$ac_try;;
17241esac
17242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_try") 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; } &&
17247 { ac_try='test -s conftest$ac_exeext'
17248 { (case "(($ac_try" in
17249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17250 *) ac_try_echo=$ac_try;;
17251esac
17252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17253 (eval "$ac_try") 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017257 ac_cv_lib_dld_shl_load=yes
17258else
17259 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017260sed 's/^/| /' conftest.$ac_ext >&5
17261
Reid Spencera773bd52006-08-04 18:18:08 +000017262 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017263fi
Reid Spencera773bd52006-08-04 18:18:08 +000017264
Bill Wendlingebcceee2009-04-18 11:20:33 +000017265rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017266 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017267LIBS=$ac_check_lib_save_LIBS
17268fi
Reid Spencera773bd52006-08-04 18:18:08 +000017269{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17270echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017271if test $ac_cv_lib_dld_shl_load = yes; then
17272 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17273else
Reid Spencera773bd52006-08-04 18:18:08 +000017274 { echo "$as_me:$LINENO: checking for dlopen" >&5
17275echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017276if test "${ac_cv_func_dlopen+set}" = set; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17278else
17279 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017280/* confdefs.h. */
17281_ACEOF
17282cat confdefs.h >>conftest.$ac_ext
17283cat >>conftest.$ac_ext <<_ACEOF
17284/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017285/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17287#define dlopen innocuous_dlopen
17288
John Criswell7a73b802003-06-30 21:59:07 +000017289/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017290 which can conflict with char dlopen (); below.
17291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17292 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017293
John Criswell0c38eaf2003-09-10 15:17:25 +000017294#ifdef __STDC__
17295# include <limits.h>
17296#else
17297# include <assert.h>
17298#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017299
17300#undef dlopen
17301
Reid Spencera773bd52006-08-04 18:18:08 +000017302/* Override any GCC internal prototype to avoid an error.
17303 Use char because int might match the return type of a GCC
17304 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017305#ifdef __cplusplus
17306extern "C"
17307#endif
John Criswell7a73b802003-06-30 21:59:07 +000017308char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017309/* The GNU C library defines this for functions which it implements
17310 to always fail with ENOSYS. Some functions are actually named
17311 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017312#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017313choke me
John Criswell7a73b802003-06-30 21:59:07 +000017314#endif
17315
John Criswell0c38eaf2003-09-10 15:17:25 +000017316int
17317main ()
17318{
Reid Spencera773bd52006-08-04 18:18:08 +000017319return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017320 ;
17321 return 0;
17322}
17323_ACEOF
17324rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017325if { (ac_try="$ac_link"
17326case "(($ac_try" in
17327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328 *) ac_try_echo=$ac_try;;
17329esac
17330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017332 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017333 grep -v '^ *+' conftest.er1 >conftest.err
17334 rm -f conftest.er1
17335 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017337 (exit $ac_status); } &&
17338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17339 { (case "(($ac_try" in
17340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341 *) ac_try_echo=$ac_try;;
17342esac
17343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344 (eval "$ac_try") 2>&5
17345 ac_status=$?
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; } &&
17348 { ac_try='test -s conftest$ac_exeext'
17349 { (case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17352esac
17353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_try") 2>&5
17355 ac_status=$?
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017358 ac_cv_func_dlopen=yes
17359else
17360 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017361sed 's/^/| /' conftest.$ac_ext >&5
17362
Reid Spencera773bd52006-08-04 18:18:08 +000017363 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017364fi
Reid Spencera773bd52006-08-04 18:18:08 +000017365
Bill Wendlingebcceee2009-04-18 11:20:33 +000017366rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017367 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017368fi
Reid Spencera773bd52006-08-04 18:18:08 +000017369{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17370echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017371if test $ac_cv_func_dlopen = yes; then
17372 lt_cv_dlopen="dlopen"
17373else
Reid Spencera773bd52006-08-04 18:18:08 +000017374 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17375echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017376if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17378else
17379 ac_check_lib_save_LIBS=$LIBS
17380LIBS="-ldl $LIBS"
17381cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017382/* confdefs.h. */
17383_ACEOF
17384cat confdefs.h >>conftest.$ac_ext
17385cat >>conftest.$ac_ext <<_ACEOF
17386/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017387
Reid Spencera773bd52006-08-04 18:18:08 +000017388/* Override any GCC internal prototype to avoid an error.
17389 Use char because int might match the return type of a GCC
17390 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017391#ifdef __cplusplus
17392extern "C"
17393#endif
John Criswell7a73b802003-06-30 21:59:07 +000017394char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017395int
17396main ()
17397{
Reid Spencera773bd52006-08-04 18:18:08 +000017398return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017399 ;
17400 return 0;
17401}
17402_ACEOF
17403rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017404if { (ac_try="$ac_link"
17405case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17408esac
17409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017411 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017412 grep -v '^ *+' conftest.er1 >conftest.err
17413 rm -f conftest.er1
17414 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017416 (exit $ac_status); } &&
17417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17418 { (case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17421esac
17422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_try") 2>&5
17424 ac_status=$?
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; } &&
17427 { ac_try='test -s conftest$ac_exeext'
17428 { (case "(($ac_try" in
17429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430 *) ac_try_echo=$ac_try;;
17431esac
17432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_try") 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017437 ac_cv_lib_dl_dlopen=yes
17438else
17439 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017440sed 's/^/| /' conftest.$ac_ext >&5
17441
Reid Spencera773bd52006-08-04 18:18:08 +000017442 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017443fi
Reid Spencera773bd52006-08-04 18:18:08 +000017444
Bill Wendlingebcceee2009-04-18 11:20:33 +000017445rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017446 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017447LIBS=$ac_check_lib_save_LIBS
17448fi
Reid Spencera773bd52006-08-04 18:18:08 +000017449{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17450echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017451if test $ac_cv_lib_dl_dlopen = yes; then
17452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17453else
Reid Spencera773bd52006-08-04 18:18:08 +000017454 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17455echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017456if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17458else
17459 ac_check_lib_save_LIBS=$LIBS
17460LIBS="-lsvld $LIBS"
17461cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017462/* confdefs.h. */
17463_ACEOF
17464cat confdefs.h >>conftest.$ac_ext
17465cat >>conftest.$ac_ext <<_ACEOF
17466/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017467
Reid Spencera773bd52006-08-04 18:18:08 +000017468/* Override any GCC internal prototype to avoid an error.
17469 Use char because int might match the return type of a GCC
17470 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017471#ifdef __cplusplus
17472extern "C"
17473#endif
John Criswell7a73b802003-06-30 21:59:07 +000017474char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017475int
17476main ()
17477{
Reid Spencera773bd52006-08-04 18:18:08 +000017478return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017479 ;
17480 return 0;
17481}
17482_ACEOF
17483rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017484if { (ac_try="$ac_link"
17485case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17488esac
17489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017491 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017492 grep -v '^ *+' conftest.er1 >conftest.err
17493 rm -f conftest.er1
17494 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017496 (exit $ac_status); } &&
17497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17498 { (case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17501esac
17502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_try") 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest$ac_exeext'
17508 { (case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17511esac
17512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_try") 2>&5
17514 ac_status=$?
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017517 ac_cv_lib_svld_dlopen=yes
17518else
17519 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017520sed 's/^/| /' conftest.$ac_ext >&5
17521
Reid Spencera773bd52006-08-04 18:18:08 +000017522 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017523fi
Reid Spencera773bd52006-08-04 18:18:08 +000017524
Bill Wendlingebcceee2009-04-18 11:20:33 +000017525rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017526 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017527LIBS=$ac_check_lib_save_LIBS
17528fi
Reid Spencera773bd52006-08-04 18:18:08 +000017529{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17530echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017531if test $ac_cv_lib_svld_dlopen = yes; then
17532 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17533else
Reid Spencera773bd52006-08-04 18:18:08 +000017534 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17535echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017536if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17538else
17539 ac_check_lib_save_LIBS=$LIBS
17540LIBS="-ldld $LIBS"
17541cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017542/* confdefs.h. */
17543_ACEOF
17544cat confdefs.h >>conftest.$ac_ext
17545cat >>conftest.$ac_ext <<_ACEOF
17546/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017547
Reid Spencera773bd52006-08-04 18:18:08 +000017548/* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017551#ifdef __cplusplus
17552extern "C"
17553#endif
John Criswell7a73b802003-06-30 21:59:07 +000017554char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017555int
17556main ()
17557{
Reid Spencera773bd52006-08-04 18:18:08 +000017558return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017559 ;
17560 return 0;
17561}
17562_ACEOF
17563rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017564if { (ac_try="$ac_link"
17565case "(($ac_try" in
17566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567 *) ac_try_echo=$ac_try;;
17568esac
17569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017571 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017572 grep -v '^ *+' conftest.er1 >conftest.err
17573 rm -f conftest.er1
17574 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017576 (exit $ac_status); } &&
17577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17578 { (case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17581esac
17582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_try") 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; } &&
17587 { ac_try='test -s conftest$ac_exeext'
17588 { (case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17591esac
17592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_try") 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017597 ac_cv_lib_dld_dld_link=yes
17598else
17599 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017600sed 's/^/| /' conftest.$ac_ext >&5
17601
Reid Spencera773bd52006-08-04 18:18:08 +000017602 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017603fi
Reid Spencera773bd52006-08-04 18:18:08 +000017604
Bill Wendlingebcceee2009-04-18 11:20:33 +000017605rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017606 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017607LIBS=$ac_check_lib_save_LIBS
17608fi
Reid Spencera773bd52006-08-04 18:18:08 +000017609{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17610echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017611if test $ac_cv_lib_dld_dld_link = yes; then
17612 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17613fi
17614
17615
17616fi
17617
17618
17619fi
17620
17621
17622fi
17623
17624
17625fi
17626
17627
17628fi
17629
17630 ;;
17631 esac
17632
17633 if test "x$lt_cv_dlopen" != xno; then
17634 enable_dlopen=yes
17635 else
17636 enable_dlopen=no
17637 fi
17638
17639 case $lt_cv_dlopen in
17640 dlopen)
17641 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017642 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017643
17644 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017645 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017646
17647 save_LIBS="$LIBS"
17648 LIBS="$lt_cv_dlopen_libs $LIBS"
17649
Reid Spencera773bd52006-08-04 18:18:08 +000017650 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17651echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017652if test "${lt_cv_dlopen_self+set}" = set; then
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17654else
17655 if test "$cross_compiling" = yes; then :
17656 lt_cv_dlopen_self=cross
17657else
John Criswell47fdd832003-07-14 16:52:07 +000017658 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017659 lt_status=$lt_dlunknown
17660 cat > conftest.$ac_ext <<EOF
Gabor Greif4c750542009-08-27 17:07:35 +000017661#line 17661 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017662#include "confdefs.h"
17663
17664#if HAVE_DLFCN_H
17665#include <dlfcn.h>
17666#endif
17667
17668#include <stdio.h>
17669
17670#ifdef RTLD_GLOBAL
17671# define LT_DLGLOBAL RTLD_GLOBAL
17672#else
17673# ifdef DL_GLOBAL
17674# define LT_DLGLOBAL DL_GLOBAL
17675# else
17676# define LT_DLGLOBAL 0
17677# endif
17678#endif
17679
17680/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17681 find out it does not work in some platform. */
17682#ifndef LT_DLLAZY_OR_NOW
17683# ifdef RTLD_LAZY
17684# define LT_DLLAZY_OR_NOW RTLD_LAZY
17685# else
17686# ifdef DL_LAZY
17687# define LT_DLLAZY_OR_NOW DL_LAZY
17688# else
17689# ifdef RTLD_NOW
17690# define LT_DLLAZY_OR_NOW RTLD_NOW
17691# else
17692# ifdef DL_NOW
17693# define LT_DLLAZY_OR_NOW DL_NOW
17694# else
17695# define LT_DLLAZY_OR_NOW 0
17696# endif
17697# endif
17698# endif
17699# endif
17700#endif
17701
17702#ifdef __cplusplus
17703extern "C" void exit (int);
17704#endif
17705
17706void fnord() { int i=42;}
17707int main ()
17708{
17709 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17710 int status = $lt_dlunknown;
17711
17712 if (self)
17713 {
17714 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17715 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17716 /* dlclose (self); */
17717 }
Reid Spencera773bd52006-08-04 18:18:08 +000017718 else
17719 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017720
17721 exit (status);
17722}
17723EOF
17724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17725 (eval $ac_link) 2>&5
17726 ac_status=$?
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017729 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017730 lt_status=$?
17731 case x$lt_status in
17732 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17733 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017734 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017735 esac
17736 else :
17737 # compilation failed
17738 lt_cv_dlopen_self=no
17739 fi
17740fi
17741rm -fr conftest*
17742
17743
17744fi
Reid Spencera773bd52006-08-04 18:18:08 +000017745{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17746echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017747
17748 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017749 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17750 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17751echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017752if test "${lt_cv_dlopen_self_static+set}" = set; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
17754else
17755 if test "$cross_compiling" = yes; then :
17756 lt_cv_dlopen_self_static=cross
17757else
John Criswell47fdd832003-07-14 16:52:07 +000017758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017759 lt_status=$lt_dlunknown
17760 cat > conftest.$ac_ext <<EOF
Gabor Greif4c750542009-08-27 17:07:35 +000017761#line 17761 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017762#include "confdefs.h"
17763
17764#if HAVE_DLFCN_H
17765#include <dlfcn.h>
17766#endif
17767
17768#include <stdio.h>
17769
17770#ifdef RTLD_GLOBAL
17771# define LT_DLGLOBAL RTLD_GLOBAL
17772#else
17773# ifdef DL_GLOBAL
17774# define LT_DLGLOBAL DL_GLOBAL
17775# else
17776# define LT_DLGLOBAL 0
17777# endif
17778#endif
17779
17780/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17781 find out it does not work in some platform. */
17782#ifndef LT_DLLAZY_OR_NOW
17783# ifdef RTLD_LAZY
17784# define LT_DLLAZY_OR_NOW RTLD_LAZY
17785# else
17786# ifdef DL_LAZY
17787# define LT_DLLAZY_OR_NOW DL_LAZY
17788# else
17789# ifdef RTLD_NOW
17790# define LT_DLLAZY_OR_NOW RTLD_NOW
17791# else
17792# ifdef DL_NOW
17793# define LT_DLLAZY_OR_NOW DL_NOW
17794# else
17795# define LT_DLLAZY_OR_NOW 0
17796# endif
17797# endif
17798# endif
17799# endif
17800#endif
17801
17802#ifdef __cplusplus
17803extern "C" void exit (int);
17804#endif
17805
17806void fnord() { int i=42;}
17807int main ()
17808{
17809 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17810 int status = $lt_dlunknown;
17811
17812 if (self)
17813 {
17814 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17815 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17816 /* dlclose (self); */
17817 }
Reid Spencera773bd52006-08-04 18:18:08 +000017818 else
17819 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017820
17821 exit (status);
17822}
17823EOF
17824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17825 (eval $ac_link) 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017829 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017830 lt_status=$?
17831 case x$lt_status in
17832 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17833 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017834 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017835 esac
17836 else :
17837 # compilation failed
17838 lt_cv_dlopen_self_static=no
17839 fi
17840fi
17841rm -fr conftest*
17842
17843
17844fi
Reid Spencera773bd52006-08-04 18:18:08 +000017845{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17846echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017847 fi
17848
17849 CPPFLAGS="$save_CPPFLAGS"
17850 LDFLAGS="$save_LDFLAGS"
17851 LIBS="$save_LIBS"
17852 ;;
17853 esac
17854
17855 case $lt_cv_dlopen_self in
17856 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17857 *) enable_dlopen_self=unknown ;;
17858 esac
17859
17860 case $lt_cv_dlopen_self_static in
17861 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17862 *) enable_dlopen_self_static=unknown ;;
17863 esac
17864fi
17865
17866
Reid Spencera773bd52006-08-04 18:18:08 +000017867# Report which library types will actually be built
17868{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17869echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17870{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17871echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017872
Reid Spencera773bd52006-08-04 18:18:08 +000017873{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17874echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017875test "$can_build_shared" = "no" && enable_shared=no
17876
17877# On AIX, shared libraries and static libraries use the same namespace, and
17878# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017879case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017880aix3*)
17881 test "$enable_shared" = yes && enable_static=no
17882 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017883 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017884 postinstall_cmds='$RANLIB $lib'
17885 fi
17886 ;;
17887
Reid Spencer2706f8c2004-09-19 23:53:36 +000017888aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017889 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17890 test "$enable_shared" = yes && enable_static=no
17891 fi
John Criswell7a73b802003-06-30 21:59:07 +000017892 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017893esac
Reid Spencera773bd52006-08-04 18:18:08 +000017894{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17895echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017896
Reid Spencera773bd52006-08-04 18:18:08 +000017897{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17898echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017899# Make sure either enable_shared or enable_static is yes.
17900test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017901{ echo "$as_me:$LINENO: result: $enable_static" >&5
17902echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017903
17904# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017905# libtool distribution, otherwise you forgot to ship ltmain.sh
17906# with your package, and you will get complaints that there are
17907# no rules to generate ltmain.sh.
17908if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017909 # See if we are running on zsh, and set the options which allow our commands through
17910 # without removal of \ escapes.
17911 if test -n "${ZSH_VERSION+set}" ; then
17912 setopt NO_GLOB_SUBST
17913 fi
John Criswell7a73b802003-06-30 21:59:07 +000017914 # Now quote all the things that may contain metacharacters while being
17915 # careful not to overquote the AC_SUBSTed values. We take copies of the
17916 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017917 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 +000017918 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017919 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17920 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17921 deplibs_check_method reload_flag reload_cmds need_locks \
17922 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17923 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017924 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017925 old_postinstall_cmds old_postuninstall_cmds \
17926 compiler \
17927 CC \
17928 LD \
17929 lt_prog_compiler_wl \
17930 lt_prog_compiler_pic \
17931 lt_prog_compiler_static \
17932 lt_prog_compiler_no_builtin_flag \
17933 export_dynamic_flag_spec \
17934 thread_safe_flag_spec \
17935 whole_archive_flag_spec \
17936 enable_shared_with_static_runtimes \
17937 old_archive_cmds \
17938 old_archive_from_new_cmds \
17939 predep_objects \
17940 postdep_objects \
17941 predeps \
17942 postdeps \
17943 compiler_lib_search_path \
17944 archive_cmds \
17945 archive_expsym_cmds \
17946 postinstall_cmds \
17947 postuninstall_cmds \
17948 old_archive_from_expsyms_cmds \
17949 allow_undefined_flag \
17950 no_undefined_flag \
17951 export_symbols_cmds \
17952 hardcode_libdir_flag_spec \
17953 hardcode_libdir_flag_spec_ld \
17954 hardcode_libdir_separator \
17955 hardcode_automatic \
17956 module_cmds \
17957 module_expsym_cmds \
17958 lt_cv_prog_compiler_c_o \
17959 exclude_expsyms \
17960 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017961
17962 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017963 old_archive_cmds | \
17964 old_archive_from_new_cmds | \
17965 archive_cmds | \
17966 archive_expsym_cmds | \
17967 module_cmds | \
17968 module_expsym_cmds | \
17969 old_archive_from_expsyms_cmds | \
17970 export_symbols_cmds | \
17971 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017972 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017973 old_postinstall_cmds | old_postuninstall_cmds | \
17974 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017975 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017976 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 +000017977 ;;
17978 *)
17979 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17980 ;;
17981 esac
17982 done
17983
John Criswell47fdd832003-07-14 16:52:07 +000017984 case $lt_echo in
17985 *'\$0 --fallback-echo"')
17986 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17987 ;;
17988 esac
17989
17990cfgfile="${ofile}T"
17991 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17992 $rm -f "$cfgfile"
17993 { echo "$as_me:$LINENO: creating $ofile" >&5
17994echo "$as_me: creating $ofile" >&6;}
17995
17996 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017997#! $SHELL
17998
John Criswell47fdd832003-07-14 16:52:07 +000017999# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000018000# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18001# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18002#
John Criswell47fdd832003-07-14 16:52:07 +000018003# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18004# Free Software Foundation, Inc.
18005#
18006# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000018007# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18008#
18009# This program is free software; you can redistribute it and/or modify
18010# it under the terms of the GNU General Public License as published by
18011# the Free Software Foundation; either version 2 of the License, or
18012# (at your option) any later version.
18013#
18014# This program is distributed in the hope that it will be useful, but
18015# WITHOUT ANY WARRANTY; without even the implied warranty of
18016# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18017# General Public License for more details.
18018#
18019# You should have received a copy of the GNU General Public License
18020# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000018021# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000018022#
18023# As a special exception to the GNU General Public License, if you
18024# distribute this file as part of a program that contains a
18025# configuration script generated by Autoconf, you may include it under
18026# the same distribution terms that you use for the rest of that program.
18027
John Criswell47fdd832003-07-14 16:52:07 +000018028# A sed program that does not truncate output.
18029SED=$lt_SED
18030
John Criswell7a73b802003-06-30 21:59:07 +000018031# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000018032Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000018033
18034# The HP-UX ksh and POSIX shell print the target directory to stdout
18035# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018036(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000018037
John Criswell47fdd832003-07-14 16:52:07 +000018038# The names of the tagged configurations supported by this script.
18039available_tags=
18040
John Criswell7a73b802003-06-30 21:59:07 +000018041# ### BEGIN LIBTOOL CONFIG
18042
18043# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18044
18045# Shell to use when invoking shell scripts.
18046SHELL=$lt_SHELL
18047
18048# Whether or not to build shared libraries.
18049build_libtool_libs=$enable_shared
18050
18051# Whether or not to build static libraries.
18052build_old_libs=$enable_static
18053
18054# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000018055build_libtool_need_lc=$archive_cmds_need_lc
18056
18057# Whether or not to disallow shared libs when runtime libs are static
18058allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000018059
18060# Whether or not to optimize for fast installation.
18061fast_install=$enable_fast_install
18062
18063# The host system.
18064host_alias=$host_alias
18065host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000018066host_os=$host_os
18067
18068# The build system.
18069build_alias=$build_alias
18070build=$build
18071build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000018072
18073# An echo program that does not interpret backslashes.
18074echo=$lt_echo
18075
18076# The archiver.
18077AR=$lt_AR
18078AR_FLAGS=$lt_AR_FLAGS
18079
John Criswell47fdd832003-07-14 16:52:07 +000018080# A C compiler.
18081LTCC=$lt_LTCC
18082
Reid Spencera773bd52006-08-04 18:18:08 +000018083# LTCC compiler flags.
18084LTCFLAGS=$lt_LTCFLAGS
18085
John Criswell47fdd832003-07-14 16:52:07 +000018086# A language-specific compiler.
18087CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000018088
18089# Is the compiler the GNU C compiler?
18090with_gcc=$GCC
18091
John Criswell47fdd832003-07-14 16:52:07 +000018092# An ERE matcher.
18093EGREP=$lt_EGREP
18094
John Criswell7a73b802003-06-30 21:59:07 +000018095# The linker used to build libraries.
18096LD=$lt_LD
18097
18098# Whether we need hard or soft links.
18099LN_S=$lt_LN_S
18100
18101# A BSD-compatible nm program.
18102NM=$lt_NM
18103
18104# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018105STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000018106
18107# Used to examine libraries when file_magic_cmd begins "file"
18108MAGIC_CMD=$MAGIC_CMD
18109
18110# Used on cygwin: DLL creation program.
18111DLLTOOL="$DLLTOOL"
18112
18113# Used on cygwin: object dumper.
18114OBJDUMP="$OBJDUMP"
18115
18116# Used on cygwin: assembler.
18117AS="$AS"
18118
18119# The name of the directory that contains temporary libtool files.
18120objdir=$objdir
18121
18122# How to create reloadable object files.
18123reload_flag=$lt_reload_flag
18124reload_cmds=$lt_reload_cmds
18125
18126# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018127wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018128
18129# Object file suffix (normally "o").
18130objext="$ac_objext"
18131
18132# Old archive suffix (normally "a").
18133libext="$libext"
18134
John Criswell47fdd832003-07-14 16:52:07 +000018135# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018136shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018137
John Criswell7a73b802003-06-30 21:59:07 +000018138# Executable file suffix (normally "").
18139exeext="$exeext"
18140
18141# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018142pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018143pic_mode=$pic_mode
18144
John Criswell47fdd832003-07-14 16:52:07 +000018145# What is the maximum length of a command?
18146max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018147
John Criswell47fdd832003-07-14 16:52:07 +000018148# Does compiler simultaneously support -c and -o options?
18149compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018150
Reid Spencera773bd52006-08-04 18:18:08 +000018151# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018152need_locks=$lt_need_locks
18153
18154# Do we need the lib prefix for modules?
18155need_lib_prefix=$need_lib_prefix
18156
18157# Do we need a version for libraries?
18158need_version=$need_version
18159
18160# Whether dlopen is supported.
18161dlopen_support=$enable_dlopen
18162
18163# Whether dlopen of programs is supported.
18164dlopen_self=$enable_dlopen_self
18165
18166# Whether dlopen of statically linked programs is supported.
18167dlopen_self_static=$enable_dlopen_self_static
18168
18169# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018170link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018171
18172# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018173no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018174
18175# Compiler flag to allow reflexive dlopens.
18176export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18177
18178# Compiler flag to generate shared objects directly from archives.
18179whole_archive_flag_spec=$lt_whole_archive_flag_spec
18180
18181# Compiler flag to generate thread-safe objects.
18182thread_safe_flag_spec=$lt_thread_safe_flag_spec
18183
18184# Library versioning type.
18185version_type=$version_type
18186
18187# Format of library name prefix.
18188libname_spec=$lt_libname_spec
18189
18190# List of archive names. First name is the real one, the rest are links.
18191# The last name is the one that the linker finds with -lNAME.
18192library_names_spec=$lt_library_names_spec
18193
18194# The coded name of the library, if different from the real name.
18195soname_spec=$lt_soname_spec
18196
18197# Commands used to build and install an old-style archive.
18198RANLIB=$lt_RANLIB
18199old_archive_cmds=$lt_old_archive_cmds
18200old_postinstall_cmds=$lt_old_postinstall_cmds
18201old_postuninstall_cmds=$lt_old_postuninstall_cmds
18202
18203# Create an old-style archive from a shared archive.
18204old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18205
18206# Create a temporary old-style archive to link instead of a shared archive.
18207old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18208
18209# Commands used to build and install a shared archive.
18210archive_cmds=$lt_archive_cmds
18211archive_expsym_cmds=$lt_archive_expsym_cmds
18212postinstall_cmds=$lt_postinstall_cmds
18213postuninstall_cmds=$lt_postuninstall_cmds
18214
John Criswell47fdd832003-07-14 16:52:07 +000018215# Commands used to build a loadable module (assumed same as above if empty)
18216module_cmds=$lt_module_cmds
18217module_expsym_cmds=$lt_module_expsym_cmds
18218
John Criswell7a73b802003-06-30 21:59:07 +000018219# Commands to strip libraries.
18220old_striplib=$lt_old_striplib
18221striplib=$lt_striplib
18222
John Criswell47fdd832003-07-14 16:52:07 +000018223# Dependencies to place before the objects being linked to create a
18224# shared library.
18225predep_objects=$lt_predep_objects
18226
18227# Dependencies to place after the objects being linked to create a
18228# shared library.
18229postdep_objects=$lt_postdep_objects
18230
18231# Dependencies to place before the objects being linked to create a
18232# shared library.
18233predeps=$lt_predeps
18234
18235# Dependencies to place after the objects being linked to create a
18236# shared library.
18237postdeps=$lt_postdeps
18238
18239# The library search path used internally by the compiler when linking
18240# a shared library.
18241compiler_lib_search_path=$lt_compiler_lib_search_path
18242
John Criswell7a73b802003-06-30 21:59:07 +000018243# Method to check whether dependent libraries are shared objects.
18244deplibs_check_method=$lt_deplibs_check_method
18245
18246# Command to use when deplibs_check_method == file_magic.
18247file_magic_cmd=$lt_file_magic_cmd
18248
18249# Flag that allows shared libraries with undefined symbols to be built.
18250allow_undefined_flag=$lt_allow_undefined_flag
18251
18252# Flag that forces no undefined symbols.
18253no_undefined_flag=$lt_no_undefined_flag
18254
18255# Commands used to finish a libtool library installation in a directory.
18256finish_cmds=$lt_finish_cmds
18257
18258# Same as above, but a single script fragment to be evaled but not shown.
18259finish_eval=$lt_finish_eval
18260
18261# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018262global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018263
18264# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018265global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018266
18267# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018268global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018269
18270# This is the shared library runtime path variable.
18271runpath_var=$runpath_var
18272
18273# This is the shared library path variable.
18274shlibpath_var=$shlibpath_var
18275
18276# Is shlibpath searched before the hard-coded library search path?
18277shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18278
18279# How to hardcode a shared library path into an executable.
18280hardcode_action=$hardcode_action
18281
18282# Whether we should hardcode library paths into libraries.
18283hardcode_into_libs=$hardcode_into_libs
18284
18285# Flag to hardcode \$libdir into a binary during linking.
18286# This must work even if \$libdir does not exist.
18287hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18288
John Criswell47fdd832003-07-14 16:52:07 +000018289# If ld is used when linking, flag to hardcode \$libdir into
18290# a binary during linking. This must work even if \$libdir does
18291# not exist.
18292hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18293
John Criswell7a73b802003-06-30 21:59:07 +000018294# Whether we need a single -rpath flag with a separated argument.
18295hardcode_libdir_separator=$lt_hardcode_libdir_separator
18296
John Criswell47fdd832003-07-14 16:52:07 +000018297# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018298# resulting binary.
18299hardcode_direct=$hardcode_direct
18300
18301# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18302# resulting binary.
18303hardcode_minus_L=$hardcode_minus_L
18304
18305# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18306# the resulting binary.
18307hardcode_shlibpath_var=$hardcode_shlibpath_var
18308
John Criswell47fdd832003-07-14 16:52:07 +000018309# Set to yes if building a shared library automatically hardcodes DIR into the library
18310# and all subsequent libraries and executables linked against it.
18311hardcode_automatic=$hardcode_automatic
18312
John Criswell7a73b802003-06-30 21:59:07 +000018313# Variables whose values should be saved in libtool wrapper scripts and
18314# restored at relink time.
18315variables_saved_for_relink="$variables_saved_for_relink"
18316
18317# Whether libtool must link a program against all its dependency libraries.
18318link_all_deplibs=$link_all_deplibs
18319
18320# Compile-time system search path for libraries
18321sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18322
18323# Run-time system search path for libraries
18324sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18325
18326# Fix the shell variable \$srcfile for the compiler.
18327fix_srcfile_path="$fix_srcfile_path"
18328
18329# Set to yes if exported symbols are required.
18330always_export_symbols=$always_export_symbols
18331
18332# The commands to list exported symbols.
18333export_symbols_cmds=$lt_export_symbols_cmds
18334
18335# The commands to extract the exported symbol list from a shared archive.
18336extract_expsyms_cmds=$lt_extract_expsyms_cmds
18337
18338# Symbols that should not be listed in the preloaded symbols.
18339exclude_expsyms=$lt_exclude_expsyms
18340
18341# Symbols that must always be exported.
18342include_expsyms=$lt_include_expsyms
18343
18344# ### END LIBTOOL CONFIG
18345
18346__EOF__
18347
John Criswell47fdd832003-07-14 16:52:07 +000018348
John Criswell7a73b802003-06-30 21:59:07 +000018349 case $host_os in
18350 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018351 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018352
18353# AIX sometimes has problems with the GCC collect2 program. For some
18354# reason, if we set the COLLECT_NAMES environment variable, the problems
18355# vanish in a puff of smoke.
18356if test "X${COLLECT_NAMES+set}" != Xset; then
18357 COLLECT_NAMES=
18358 export COLLECT_NAMES
18359fi
18360EOF
18361 ;;
18362 esac
18363
John Criswell7a73b802003-06-30 21:59:07 +000018364 # We use sed instead of cat because bash on DJGPP gets confused if
18365 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18366 # text mode, it properly converts lines to CR/LF. This bash problem
18367 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018368 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018369
John Criswell47fdd832003-07-14 16:52:07 +000018370 mv -f "$cfgfile" "$ofile" || \
18371 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018372 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018373
18374else
18375 # If there is no Makefile yet, we rely on a make rule to execute
18376 # `config.status --recheck' to rerun these tests and create the
18377 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018378 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18379 if test -f "$ltmain_in"; then
18380 test -f Makefile && make "$ltmain"
18381 fi
John Criswell7a73b802003-06-30 21:59:07 +000018382fi
John Criswell7a73b802003-06-30 21:59:07 +000018383
18384
John Criswell47fdd832003-07-14 16:52:07 +000018385ac_ext=c
18386ac_cpp='$CPP $CPPFLAGS'
18387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18389ac_compiler_gnu=$ac_cv_c_compiler_gnu
18390
18391CC="$lt_save_CC"
18392
18393
Reid Spencera773bd52006-08-04 18:18:08 +000018394# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018395if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018396 withval=$with_tags; tagnames="$withval"
18397fi
18398
John Criswell47fdd832003-07-14 16:52:07 +000018399
18400if test -f "$ltmain" && test -n "$tagnames"; then
18401 if test ! -f "${ofile}"; then
18402 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18403echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18404 fi
18405
18406 if test -z "$LTCC"; then
18407 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18408 if test -z "$LTCC"; then
18409 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18410echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18411 else
18412 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18413echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18414 fi
18415 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018416 if test -z "$LTCFLAGS"; then
18417 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18418 fi
John Criswell47fdd832003-07-14 16:52:07 +000018419
18420 # Extract list of available tagged configurations in $ofile.
18421 # Note that this assumes the entire list is on one line.
18422 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18423
18424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18425 for tagname in $tagnames; do
18426 IFS="$lt_save_ifs"
18427 # Check whether tagname contains only valid characters
18428 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18429 "") ;;
18430 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18431echo "$as_me: error: invalid tag name: $tagname" >&2;}
18432 { (exit 1); exit 1; }; }
18433 ;;
18434 esac
18435
18436 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18437 then
18438 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18439echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18440 { (exit 1); exit 1; }; }
18441 fi
18442
18443 # Update the list of available tags.
18444 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018445 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018446
18447 case $tagname in
18448 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018449 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18450 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18451 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018452 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018453ac_cpp='$CXXCPP $CPPFLAGS'
18454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18457
18458
18459
18460
18461archive_cmds_need_lc_CXX=no
18462allow_undefined_flag_CXX=
18463always_export_symbols_CXX=no
18464archive_expsym_cmds_CXX=
18465export_dynamic_flag_spec_CXX=
18466hardcode_direct_CXX=no
18467hardcode_libdir_flag_spec_CXX=
18468hardcode_libdir_flag_spec_ld_CXX=
18469hardcode_libdir_separator_CXX=
18470hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018471hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018472hardcode_automatic_CXX=no
18473module_cmds_CXX=
18474module_expsym_cmds_CXX=
18475link_all_deplibs_CXX=unknown
18476old_archive_cmds_CXX=$old_archive_cmds
18477no_undefined_flag_CXX=
18478whole_archive_flag_spec_CXX=
18479enable_shared_with_static_runtimes_CXX=no
18480
18481# Dependencies to place before and after the object being linked:
18482predep_objects_CXX=
18483postdep_objects_CXX=
18484predeps_CXX=
18485postdeps_CXX=
18486compiler_lib_search_path_CXX=
18487
18488# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018489ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018490
18491# Object file extension for compiled C++ test sources.
18492objext=o
18493objext_CXX=$objext
18494
18495# Code to be used in simple compile tests
18496lt_simple_compile_test_code="int some_variable = 0;\n"
18497
18498# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018499lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018500
18501# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18502
18503# If no C compiler was specified, use CC.
18504LTCC=${LTCC-"$CC"}
18505
Reid Spencera773bd52006-08-04 18:18:08 +000018506# If no C compiler flags were specified, use CFLAGS.
18507LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18508
John Criswell47fdd832003-07-14 16:52:07 +000018509# Allow CC to be a program name with arguments.
18510compiler=$CC
18511
18512
Reid Spencera773bd52006-08-04 18:18:08 +000018513# save warnings/boilerplate of simple test code
18514ac_outfile=conftest.$ac_objext
18515printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18516eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18517_lt_compiler_boilerplate=`cat conftest.err`
18518$rm conftest*
18519
18520ac_outfile=conftest.$ac_objext
18521printf "$lt_simple_link_test_code" >conftest.$ac_ext
18522eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18523_lt_linker_boilerplate=`cat conftest.err`
18524$rm conftest*
18525
18526
John Criswell47fdd832003-07-14 16:52:07 +000018527# Allow CC to be a program name with arguments.
18528lt_save_CC=$CC
18529lt_save_LD=$LD
18530lt_save_GCC=$GCC
18531GCC=$GXX
18532lt_save_with_gnu_ld=$with_gnu_ld
18533lt_save_path_LD=$lt_cv_path_LD
18534if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18535 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18536else
Reid Spencera773bd52006-08-04 18:18:08 +000018537 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018538fi
18539if test -n "${lt_cv_path_LDCXX+set}"; then
18540 lt_cv_path_LD=$lt_cv_path_LDCXX
18541else
Reid Spencera773bd52006-08-04 18:18:08 +000018542 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018543fi
18544test -z "${LDCXX+set}" || LD=$LDCXX
18545CC=${CXX-"c++"}
18546compiler=$CC
18547compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018548for cc_temp in $compiler""; do
18549 case $cc_temp in
18550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18552 \-*) ;;
18553 *) break;;
18554 esac
18555done
18556cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18557
John Criswell47fdd832003-07-14 16:52:07 +000018558
18559# We don't want -fno-exception wen compiling C++ code, so set the
18560# no_builtin_flag separately
18561if test "$GXX" = yes; then
18562 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18563else
18564 lt_prog_compiler_no_builtin_flag_CXX=
18565fi
18566
18567if test "$GXX" = yes; then
18568 # Set up default GNU C++ configuration
18569
18570
Reid Spencera773bd52006-08-04 18:18:08 +000018571# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018572if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018573 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018574else
18575 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018576fi
18577
John Criswell47fdd832003-07-14 16:52:07 +000018578ac_prog=ld
18579if test "$GCC" = yes; then
18580 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018581 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18582echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018583 case $host in
18584 *-*-mingw*)
18585 # gcc leaves a trailing carriage return which upsets mingw
18586 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18587 *)
18588 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18589 esac
18590 case $ac_prog in
18591 # Accept absolute paths.
18592 [\\/]* | ?:[\\/]*)
18593 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018594 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018595 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18596 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18597 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18598 done
18599 test -z "$LD" && LD="$ac_prog"
18600 ;;
18601 "")
18602 # If it fails, then pretend we aren't using GCC.
18603 ac_prog=ld
18604 ;;
18605 *)
18606 # If it is relative, then search for the first ld in PATH.
18607 with_gnu_ld=unknown
18608 ;;
18609 esac
18610elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018611 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18612echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018613else
Reid Spencera773bd52006-08-04 18:18:08 +000018614 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18615echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018616fi
18617if test "${lt_cv_path_LD+set}" = set; then
18618 echo $ECHO_N "(cached) $ECHO_C" >&6
18619else
18620 if test -z "$LD"; then
18621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18622 for ac_dir in $PATH; do
18623 IFS="$lt_save_ifs"
18624 test -z "$ac_dir" && ac_dir=.
18625 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18626 lt_cv_path_LD="$ac_dir/$ac_prog"
18627 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018628 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018629 # Break only if it was the GNU/non-GNU ld that we prefer.
18630 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18631 *GNU* | *'with BFD'*)
18632 test "$with_gnu_ld" != no && break
18633 ;;
18634 *)
18635 test "$with_gnu_ld" != yes && break
18636 ;;
18637 esac
18638 fi
18639 done
18640 IFS="$lt_save_ifs"
18641else
18642 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18643fi
18644fi
18645
18646LD="$lt_cv_path_LD"
18647if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018648 { echo "$as_me:$LINENO: result: $LD" >&5
18649echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018650else
Reid Spencera773bd52006-08-04 18:18:08 +000018651 { echo "$as_me:$LINENO: result: no" >&5
18652echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018653fi
18654test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18655echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18656 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018657{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18658echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018659if test "${lt_cv_prog_gnu_ld+set}" = set; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18661else
Reid Spencera773bd52006-08-04 18:18:08 +000018662 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018663case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018664*GNU* | *'with BFD'*)
18665 lt_cv_prog_gnu_ld=yes
18666 ;;
18667*)
18668 lt_cv_prog_gnu_ld=no
18669 ;;
18670esac
18671fi
Reid Spencera773bd52006-08-04 18:18:08 +000018672{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18673echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018674with_gnu_ld=$lt_cv_prog_gnu_ld
18675
18676
18677
18678 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18679 # archiving commands below assume that GNU ld is being used.
18680 if test "$with_gnu_ld" = yes; then
18681 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18682 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'
18683
18684 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18685 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18686
18687 # If archive_cmds runs LD, not CC, wlarc should be empty
18688 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18689 # investigate it a little bit more. (MM)
18690 wlarc='${wl}'
18691
18692 # ancient GNU ld didn't support --whole-archive et. al.
18693 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18694 grep 'no-whole-archive' > /dev/null; then
18695 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18696 else
18697 whole_archive_flag_spec_CXX=
18698 fi
18699 else
18700 with_gnu_ld=no
18701 wlarc=
18702
18703 # A generic and very simple default shared library creation
18704 # command for GNU C++ for the case where it uses the native
18705 # linker, instead of GNU ld. If possible, this setting should
18706 # overridden to take advantage of the native linker features on
18707 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018708 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018709 fi
18710
18711 # Commands to make compiler produce verbose output that lists
18712 # what "hidden" libraries, object files and flags are used when
18713 # linking a shared library.
18714 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18715
18716else
18717 GXX=no
18718 with_gnu_ld=no
18719 wlarc=
18720fi
18721
18722# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018723{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18724echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018725ld_shlibs_CXX=yes
18726case $host_os in
18727 aix3*)
18728 # FIXME: insert proper C++ library support
18729 ld_shlibs_CXX=no
18730 ;;
18731 aix4* | aix5*)
18732 if test "$host_cpu" = ia64; then
18733 # On IA64, the linker does run time linking by default, so we don't
18734 # have to do anything special.
18735 aix_use_runtimelinking=no
18736 exp_sym_flag='-Bexport'
18737 no_entry_flag=""
18738 else
18739 aix_use_runtimelinking=no
18740
18741 # Test if we are trying to use run time linking or normal
18742 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18743 # need to do runtime linking.
18744 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18745 for ld_flag in $LDFLAGS; do
18746 case $ld_flag in
18747 *-brtl*)
18748 aix_use_runtimelinking=yes
18749 break
18750 ;;
18751 esac
18752 done
Reid Spencera773bd52006-08-04 18:18:08 +000018753 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018754 esac
18755
18756 exp_sym_flag='-bexport'
18757 no_entry_flag='-bnoentry'
18758 fi
18759
18760 # When large executables or shared objects are built, AIX ld can
18761 # have problems creating the table of contents. If linking a library
18762 # or program results in "error TOC overflow" add -mminimal-toc to
18763 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18764 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18765
18766 archive_cmds_CXX=''
18767 hardcode_direct_CXX=yes
18768 hardcode_libdir_separator_CXX=':'
18769 link_all_deplibs_CXX=yes
18770
18771 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018772 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018773 # We only want to do this on AIX 4.2 and lower, the check
18774 # below for broken collect2 doesn't work under 4.3+
18775 collect2name=`${CC} -print-prog-name=collect2`
18776 if test -f "$collect2name" && \
18777 strings "$collect2name" | grep resolve_lib_name >/dev/null
18778 then
18779 # We have reworked collect2
18780 hardcode_direct_CXX=yes
18781 else
18782 # We have old collect2
18783 hardcode_direct_CXX=unsupported
18784 # It fails to find uninstalled libraries when the uninstalled
18785 # path is not listed in the libpath. Setting hardcode_minus_L
18786 # to unsupported forces relinking
18787 hardcode_minus_L_CXX=yes
18788 hardcode_libdir_flag_spec_CXX='-L$libdir'
18789 hardcode_libdir_separator_CXX=
18790 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018791 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018792 esac
18793 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018794 if test "$aix_use_runtimelinking" = yes; then
18795 shared_flag="$shared_flag "'${wl}-G'
18796 fi
John Criswell47fdd832003-07-14 16:52:07 +000018797 else
18798 # not using gcc
18799 if test "$host_cpu" = ia64; then
18800 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18801 # chokes on -Wl,-G. The following line is correct:
18802 shared_flag='-G'
18803 else
18804 if test "$aix_use_runtimelinking" = yes; then
18805 shared_flag='${wl}-G'
18806 else
18807 shared_flag='${wl}-bM:SRE'
18808 fi
18809 fi
18810 fi
18811
18812 # It seems that -bexpall does not export symbols beginning with
18813 # underscore (_), so it is better to generate a list of symbols to export.
18814 always_export_symbols_CXX=yes
18815 if test "$aix_use_runtimelinking" = yes; then
18816 # Warning - without using the other runtime loading flags (-brtl),
18817 # -berok will link without error, but may produce a broken library.
18818 allow_undefined_flag_CXX='-berok'
18819 # Determine the default libpath from the value encoded in an empty executable.
18820 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018821/* confdefs.h. */
18822_ACEOF
18823cat confdefs.h >>conftest.$ac_ext
18824cat >>conftest.$ac_ext <<_ACEOF
18825/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018826
John Criswell47fdd832003-07-14 16:52:07 +000018827int
18828main ()
18829{
18830
18831 ;
18832 return 0;
18833}
18834_ACEOF
18835rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018836if { (ac_try="$ac_link"
18837case "(($ac_try" in
18838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18839 *) ac_try_echo=$ac_try;;
18840esac
18841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18842 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018843 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018844 grep -v '^ *+' conftest.er1 >conftest.err
18845 rm -f conftest.er1
18846 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018848 (exit $ac_status); } &&
18849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18850 { (case "(($ac_try" in
18851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852 *) ac_try_echo=$ac_try;;
18853esac
18854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18855 (eval "$ac_try") 2>&5
18856 ac_status=$?
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); }; } &&
18859 { ac_try='test -s conftest$ac_exeext'
18860 { (case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18863esac
18864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865 (eval "$ac_try") 2>&5
18866 ac_status=$?
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018869
18870aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18871}'`
18872# Check for a 64-bit object if we didn't find anything.
18873if 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; }
18874}'`; fi
18875else
18876 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018877sed 's/^/| /' conftest.$ac_ext >&5
18878
Reid Spencera773bd52006-08-04 18:18:08 +000018879
John Criswell47fdd832003-07-14 16:52:07 +000018880fi
Reid Spencera773bd52006-08-04 18:18:08 +000018881
Bill Wendlingebcceee2009-04-18 11:20:33 +000018882rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018883 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018884if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18885
18886 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18887
Reid Spencera773bd52006-08-04 18:18:08 +000018888 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 +000018889 else
18890 if test "$host_cpu" = ia64; then
18891 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18892 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018893 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 +000018894 else
18895 # Determine the default libpath from the value encoded in an empty executable.
18896 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018897/* confdefs.h. */
18898_ACEOF
18899cat confdefs.h >>conftest.$ac_ext
18900cat >>conftest.$ac_ext <<_ACEOF
18901/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018902
John Criswell47fdd832003-07-14 16:52:07 +000018903int
18904main ()
18905{
18906
18907 ;
18908 return 0;
18909}
18910_ACEOF
18911rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018912if { (ac_try="$ac_link"
18913case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18916esac
18917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018919 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018920 grep -v '^ *+' conftest.er1 >conftest.err
18921 rm -f conftest.er1
18922 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018924 (exit $ac_status); } &&
18925 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18926 { (case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18929esac
18930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_try") 2>&5
18932 ac_status=$?
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; } &&
18935 { ac_try='test -s conftest$ac_exeext'
18936 { (case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18939esac
18940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941 (eval "$ac_try") 2>&5
18942 ac_status=$?
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018945
18946aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18947}'`
18948# Check for a 64-bit object if we didn't find anything.
18949if 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; }
18950}'`; fi
18951else
18952 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018953sed 's/^/| /' conftest.$ac_ext >&5
18954
Reid Spencera773bd52006-08-04 18:18:08 +000018955
John Criswell47fdd832003-07-14 16:52:07 +000018956fi
Reid Spencera773bd52006-08-04 18:18:08 +000018957
Bill Wendlingebcceee2009-04-18 11:20:33 +000018958rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018959 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018960if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18961
18962 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18963 # Warning - without using the other run time loading flags,
18964 # -berok will link without error, but may produce a broken library.
18965 no_undefined_flag_CXX=' ${wl}-bernotok'
18966 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018967 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018968 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018969 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018970 # This is similar to how AIX traditionally builds its shared libraries.
18971 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 +000018972 fi
18973 fi
18974 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018975
18976 beos*)
18977 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18978 allow_undefined_flag_CXX=unsupported
18979 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18980 # support --undefined. This deserves some investigation. FIXME
18981 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18982 else
18983 ld_shlibs_CXX=no
18984 fi
18985 ;;
18986
John Criswell47fdd832003-07-14 16:52:07 +000018987 chorus*)
18988 case $cc_basename in
18989 *)
18990 # FIXME: insert proper C++ library support
18991 ld_shlibs_CXX=no
18992 ;;
18993 esac
18994 ;;
18995
18996 cygwin* | mingw* | pw32*)
18997 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18998 # as there is no search path for DLLs.
18999 hardcode_libdir_flag_spec_CXX='-L$libdir'
19000 allow_undefined_flag_CXX=unsupported
19001 always_export_symbols_CXX=no
19002 enable_shared_with_static_runtimes_CXX=yes
19003
19004 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000019005 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 +000019006 # If the export-symbols file already is a .def file (1st line
19007 # is EXPORTS), use it as is; otherwise, prepend...
19008 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19009 cp $export_symbols $output_objdir/$soname.def;
19010 else
19011 echo EXPORTS > $output_objdir/$soname.def;
19012 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019013 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000019014 $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 +000019015 else
19016 ld_shlibs_CXX=no
19017 fi
19018 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019019 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000019020 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019021 rhapsody* | darwin1.[012])
19022 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19023 ;;
19024 *) # Darwin 1.3 on
19025 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19026 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19027 else
19028 case ${MACOSX_DEPLOYMENT_TARGET} in
19029 10.[012])
19030 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19031 ;;
19032 10.*)
19033 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19034 ;;
19035 esac
19036 fi
19037 ;;
19038 esac
19039 archive_cmds_need_lc_CXX=no
19040 hardcode_direct_CXX=no
19041 hardcode_automatic_CXX=yes
19042 hardcode_shlibpath_var_CXX=unsupported
19043 whole_archive_flag_spec_CXX=''
19044 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019045
Reid Spencer2706f8c2004-09-19 23:53:36 +000019046 if test "$GXX" = yes ; then
19047 lt_int_apple_cc_single_mod=no
19048 output_verbose_link_cmd='echo'
19049 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19050 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000019051 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019052 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019053 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 +000019054 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019055 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 +000019056 fi
19057 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019058 # 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 +000019059 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019060 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 +000019061 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019062 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 +000019063 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000019064 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 +000019065 else
Reid Spencera773bd52006-08-04 18:18:08 +000019066 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019067 xlc*)
19068 output_verbose_link_cmd='echo'
19069 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'
19070 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019071 # 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 +000019072 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}'
19073 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 +000019074 ;;
19075 *)
19076 ld_shlibs_CXX=no
19077 ;;
19078 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000019079 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019080 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019081
19082 dgux*)
19083 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019084 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019085 # FIXME: insert proper C++ library support
19086 ld_shlibs_CXX=no
19087 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019088 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019089 # Green Hills C++ Compiler
19090 # FIXME: insert proper C++ library support
19091 ld_shlibs_CXX=no
19092 ;;
19093 *)
19094 # FIXME: insert proper C++ library support
19095 ld_shlibs_CXX=no
19096 ;;
19097 esac
19098 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019099 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000019100 # C++ shared libraries reported to be fairly broken before switch to ELF
19101 ld_shlibs_CXX=no
19102 ;;
19103 freebsd-elf*)
19104 archive_cmds_need_lc_CXX=no
19105 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019106 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019107 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19108 # conventions
19109 ld_shlibs_CXX=yes
19110 ;;
19111 gnu*)
19112 ;;
19113 hpux9*)
19114 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19115 hardcode_libdir_separator_CXX=:
19116 export_dynamic_flag_spec_CXX='${wl}-E'
19117 hardcode_direct_CXX=yes
19118 hardcode_minus_L_CXX=yes # Not in the search PATH,
19119 # but as the default
19120 # location of the library.
19121
19122 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019123 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019124 # FIXME: insert proper C++ library support
19125 ld_shlibs_CXX=no
19126 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019127 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019128 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 +000019129 # Commands to make compiler produce verbose output that lists
19130 # what "hidden" libraries, object files and flags are used when
19131 # linking a shared library.
19132 #
19133 # There doesn't appear to be a way to prevent this compiler from
19134 # explicitly linking system object files so we need to strip them
19135 # from the output so that they don't get included in the library
19136 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019137 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 +000019138 ;;
19139 *)
19140 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019141 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 +000019142 else
19143 # FIXME: insert proper C++ library support
19144 ld_shlibs_CXX=no
19145 fi
19146 ;;
19147 esac
19148 ;;
19149 hpux10*|hpux11*)
19150 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019151 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19152 hardcode_libdir_separator_CXX=:
19153
19154 case $host_cpu in
19155 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019156 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019157 ;;
19158 *)
John Criswell47fdd832003-07-14 16:52:07 +000019159 export_dynamic_flag_spec_CXX='${wl}-E'
19160 ;;
19161 esac
19162 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019163 case $host_cpu in
19164 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019165 hardcode_direct_CXX=no
19166 hardcode_shlibpath_var_CXX=no
19167 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019168 *)
19169 hardcode_direct_CXX=yes
19170 hardcode_minus_L_CXX=yes # Not in the search PATH,
19171 # but as the default
19172 # location of the library.
19173 ;;
19174 esac
19175
19176 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019177 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019178 # FIXME: insert proper C++ library support
19179 ld_shlibs_CXX=no
19180 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019181 aCC*)
19182 case $host_cpu in
19183 hppa*64*)
19184 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19185 ;;
19186 ia64*)
19187 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 +000019188 ;;
19189 *)
19190 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19191 ;;
19192 esac
19193 # Commands to make compiler produce verbose output that lists
19194 # what "hidden" libraries, object files and flags are used when
19195 # linking a shared library.
19196 #
19197 # There doesn't appear to be a way to prevent this compiler from
19198 # explicitly linking system object files so we need to strip them
19199 # from the output so that they don't get included in the library
19200 # dependencies.
19201 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'
19202 ;;
19203 *)
19204 if test "$GXX" = yes; then
19205 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019206 case $host_cpu in
19207 hppa*64*)
19208 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19209 ;;
19210 ia64*)
19211 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 +000019212 ;;
19213 *)
19214 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'
19215 ;;
19216 esac
19217 fi
19218 else
19219 # FIXME: insert proper C++ library support
19220 ld_shlibs_CXX=no
19221 fi
19222 ;;
19223 esac
19224 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019225 interix3*)
19226 hardcode_direct_CXX=no
19227 hardcode_shlibpath_var_CXX=no
19228 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19229 export_dynamic_flag_spec_CXX='${wl}-E'
19230 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19231 # Instead, shared libraries are loaded at an image base (0x10000000 by
19232 # default) and relocated if they conflict, which is a slow very memory
19233 # consuming and fragmenting process. To avoid this, we pick a random,
19234 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19235 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19236 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'
19237 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'
19238 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019239 irix5* | irix6*)
19240 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019241 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019242 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019243 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 +000019244
19245 # Archives containing C++ object files must be created using
19246 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19247 # necessary to make sure instantiated templates are included
19248 # in the archive.
19249 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19250 ;;
19251 *)
19252 if test "$GXX" = yes; then
19253 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019254 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 +000019255 else
19256 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'
19257 fi
19258 fi
19259 link_all_deplibs_CXX=yes
19260 ;;
19261 esac
19262 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19263 hardcode_libdir_separator_CXX=:
19264 ;;
19265 linux*)
19266 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019267 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019268 # Kuck and Associates, Inc. (KAI) C++ Compiler
19269
19270 # KCC will only create a shared library if the output file
19271 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19272 # to its proper name (with version) after linking.
19273 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'
19274 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'
19275 # Commands to make compiler produce verbose output that lists
19276 # what "hidden" libraries, object files and flags are used when
19277 # linking a shared library.
19278 #
19279 # There doesn't appear to be a way to prevent this compiler from
19280 # explicitly linking system object files so we need to strip them
19281 # from the output so that they don't get included in the library
19282 # dependencies.
19283 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'
19284
19285 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19286 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19287
19288 # Archives containing C++ object files must be created using
19289 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19290 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19291 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019292 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019293 # Intel C++
19294 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019295 # version 8.0 and above of icpc choke on multiply defined symbols
19296 # if we add $predep_objects and $postdep_objects, however 7.1 and
19297 # earlier do not add the objects themselves.
19298 case `$CC -V 2>&1` in
19299 *"Version 7."*)
19300 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19301 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'
19302 ;;
19303 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019304 tmp_idyn=
19305 case $host_cpu in
19306 ia64*) tmp_idyn=' -i_dynamic';;
19307 esac
19308 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19309 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 +000019310 ;;
19311 esac
John Criswell47fdd832003-07-14 16:52:07 +000019312 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019313 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19314 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19315 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19316 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019317 pgCC*)
19318 # Portland Group C++ compiler
19319 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19320 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'
19321
19322 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19323 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19324 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'
19325 ;;
19326 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019327 # Compaq C++
19328 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19329 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'
19330
19331 runpath_var=LD_RUN_PATH
19332 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19333 hardcode_libdir_separator_CXX=:
19334
19335 # Commands to make compiler produce verbose output that lists
19336 # what "hidden" libraries, object files and flags are used when
19337 # linking a shared library.
19338 #
19339 # There doesn't appear to be a way to prevent this compiler from
19340 # explicitly linking system object files so we need to strip them
19341 # from the output so that they don't get included in the library
19342 # dependencies.
19343 output_verbose_link_cmd='templist=`$CC -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'
19344 ;;
19345 esac
19346 ;;
19347 lynxos*)
19348 # FIXME: insert proper C++ library support
19349 ld_shlibs_CXX=no
19350 ;;
19351 m88k*)
19352 # FIXME: insert proper C++ library support
19353 ld_shlibs_CXX=no
19354 ;;
19355 mvs*)
19356 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019357 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019358 # FIXME: insert proper C++ library support
19359 ld_shlibs_CXX=no
19360 ;;
19361 *)
19362 # FIXME: insert proper C++ library support
19363 ld_shlibs_CXX=no
19364 ;;
19365 esac
19366 ;;
19367 netbsd*)
19368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19369 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19370 wlarc=
19371 hardcode_libdir_flag_spec_CXX='-R$libdir'
19372 hardcode_direct_CXX=yes
19373 hardcode_shlibpath_var_CXX=no
19374 fi
19375 # Workaround some broken pre-1.5 toolchains
19376 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19377 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019378 openbsd2*)
19379 # C++ shared libraries are fairly broken
19380 ld_shlibs_CXX=no
19381 ;;
19382 openbsd*)
19383 hardcode_direct_CXX=yes
19384 hardcode_shlibpath_var_CXX=no
19385 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19386 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19388 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19389 export_dynamic_flag_spec_CXX='${wl}-E'
19390 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19391 fi
19392 output_verbose_link_cmd='echo'
19393 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019394 osf3*)
19395 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019396 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019397 # Kuck and Associates, Inc. (KAI) C++ Compiler
19398
19399 # KCC will only create a shared library if the output file
19400 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19401 # to its proper name (with version) after linking.
19402 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'
19403
19404 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19405 hardcode_libdir_separator_CXX=:
19406
19407 # Archives containing C++ object files must be created using
19408 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19409 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19410
19411 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019412 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019413 # Rational C++ 2.4.1
19414 # FIXME: insert proper C++ library support
19415 ld_shlibs_CXX=no
19416 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019417 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019418 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019419 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 +000019420
19421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19422 hardcode_libdir_separator_CXX=:
19423
19424 # Commands to make compiler produce verbose output that lists
19425 # what "hidden" libraries, object files and flags are used when
19426 # linking a shared library.
19427 #
19428 # There doesn't appear to be a way to prevent this compiler from
19429 # explicitly linking system object files so we need to strip them
19430 # from the output so that they don't get included in the library
19431 # dependencies.
19432 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'
19433 ;;
19434 *)
19435 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19436 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019437 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 +000019438
19439 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19440 hardcode_libdir_separator_CXX=:
19441
19442 # Commands to make compiler produce verbose output that lists
19443 # what "hidden" libraries, object files and flags are used when
19444 # linking a shared library.
19445 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19446
19447 else
19448 # FIXME: insert proper C++ library support
19449 ld_shlibs_CXX=no
19450 fi
19451 ;;
19452 esac
19453 ;;
19454 osf4* | osf5*)
19455 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019456 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019457 # Kuck and Associates, Inc. (KAI) C++ Compiler
19458
19459 # KCC will only create a shared library if the output file
19460 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19461 # to its proper name (with version) after linking.
19462 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'
19463
19464 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19465 hardcode_libdir_separator_CXX=:
19466
19467 # Archives containing C++ object files must be created using
19468 # the KAI C++ compiler.
19469 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19470 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019471 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019472 # Rational C++ 2.4.1
19473 # FIXME: insert proper C++ library support
19474 ld_shlibs_CXX=no
19475 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019476 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019477 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019478 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 +000019479 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19480 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019481 $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 +000019482 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019483
19484 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19485 hardcode_libdir_separator_CXX=:
19486
19487 # Commands to make compiler produce verbose output that lists
19488 # what "hidden" libraries, object files and flags are used when
19489 # linking a shared library.
19490 #
19491 # There doesn't appear to be a way to prevent this compiler from
19492 # explicitly linking system object files so we need to strip them
19493 # from the output so that they don't get included in the library
19494 # dependencies.
19495 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'
19496 ;;
19497 *)
19498 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19499 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019500 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 +000019501
19502 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19503 hardcode_libdir_separator_CXX=:
19504
19505 # Commands to make compiler produce verbose output that lists
19506 # what "hidden" libraries, object files and flags are used when
19507 # linking a shared library.
19508 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19509
19510 else
19511 # FIXME: insert proper C++ library support
19512 ld_shlibs_CXX=no
19513 fi
19514 ;;
19515 esac
19516 ;;
19517 psos*)
19518 # FIXME: insert proper C++ library support
19519 ld_shlibs_CXX=no
19520 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019521 sunos4*)
19522 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019523 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019524 # Sun C++ 4.x
19525 # FIXME: insert proper C++ library support
19526 ld_shlibs_CXX=no
19527 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019528 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019529 # Lucid
19530 # FIXME: insert proper C++ library support
19531 ld_shlibs_CXX=no
19532 ;;
19533 *)
19534 # FIXME: insert proper C++ library support
19535 ld_shlibs_CXX=no
19536 ;;
19537 esac
19538 ;;
19539 solaris*)
19540 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019541 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019542 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019543 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019544 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019545 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 +000019546 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 +000019547 $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 +000019548
19549 hardcode_libdir_flag_spec_CXX='-R$libdir'
19550 hardcode_shlibpath_var_CXX=no
19551 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019552 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019553 *)
19554 # The C++ compiler is used as linker so we must use $wl
19555 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019556 # linker. We must also pass each convience library through
19557 # to the system linker between allextract/defaultextract.
19558 # The C++ compiler will combine linker options so we
19559 # cannot just pass the convience library names through
19560 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019561 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019562 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 +000019563 ;;
19564 esac
19565 link_all_deplibs_CXX=yes
19566
Reid Spencera773bd52006-08-04 18:18:08 +000019567 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019568
19569 # Archives containing C++ object files must be created using
19570 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19571 # necessary to make sure instantiated templates are included
19572 # in the archive.
19573 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19574 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019575 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019576 # Green Hills C++ Compiler
19577 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19578
19579 # The C++ compiler must be used to create the archive.
19580 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19581 ;;
19582 *)
19583 # GNU C++ compiler with Solaris linker
19584 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19585 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19586 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019587 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 +000019588 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19589 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19590
John Criswell47fdd832003-07-14 16:52:07 +000019591 # Commands to make compiler produce verbose output that lists
19592 # what "hidden" libraries, object files and flags are used when
19593 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019594 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019595 else
19596 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19597 # platform.
19598 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 +000019599 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19600 $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 +000019601
19602 # Commands to make compiler produce verbose output that lists
19603 # what "hidden" libraries, object files and flags are used when
19604 # linking a shared library.
19605 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19606 fi
19607
19608 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19609 fi
19610 ;;
19611 esac
19612 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019613 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19614 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019615 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019616 hardcode_shlibpath_var_CXX=no
19617 runpath_var='LD_RUN_PATH'
19618
19619 case $cc_basename in
19620 CC*)
19621 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19622 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19623 ;;
19624 *)
19625 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19626 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19627 ;;
19628 esac
19629 ;;
19630 sysv5* | sco3.2v5* | sco5v6*)
19631 # Note: We can NOT use -z defs as we might desire, because we do not
19632 # link with -lc, and that would cause any symbols used from libc to
19633 # always be unresolved, which means just about no library would
19634 # ever link correctly. If we're not using GNU ld we use -z text
19635 # though, which does catch some bad symbols but isn't as heavy-handed
19636 # as -z defs.
19637 # For security reasons, it is highly recommended that you always
19638 # use absolute paths for naming shared libraries, and exclude the
19639 # DT_RUNPATH tag from executables and libraries. But doing so
19640 # requires that you compile everything twice, which is a pain.
19641 # So that behaviour is only enabled if SCOABSPATH is set to a
19642 # non-empty value in the environment. Most likely only useful for
19643 # creating official distributions of packages.
19644 # This is a hack until libtool officially supports absolute path
19645 # names for shared libraries.
19646 no_undefined_flag_CXX='${wl}-z,text'
19647 allow_undefined_flag_CXX='${wl}-z,nodefs'
19648 archive_cmds_need_lc_CXX=no
19649 hardcode_shlibpath_var_CXX=no
19650 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19651 hardcode_libdir_separator_CXX=':'
19652 link_all_deplibs_CXX=yes
19653 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19654 runpath_var='LD_RUN_PATH'
19655
19656 case $cc_basename in
19657 CC*)
19658 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19659 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19660 ;;
19661 *)
19662 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19663 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19664 ;;
19665 esac
John Criswell47fdd832003-07-14 16:52:07 +000019666 ;;
19667 tandem*)
19668 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019669 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019670 # NonStop-UX NCC 3.20
19671 # FIXME: insert proper C++ library support
19672 ld_shlibs_CXX=no
19673 ;;
19674 *)
19675 # FIXME: insert proper C++ library support
19676 ld_shlibs_CXX=no
19677 ;;
19678 esac
19679 ;;
19680 vxworks*)
19681 # FIXME: insert proper C++ library support
19682 ld_shlibs_CXX=no
19683 ;;
19684 *)
19685 # FIXME: insert proper C++ library support
19686 ld_shlibs_CXX=no
19687 ;;
19688esac
Reid Spencera773bd52006-08-04 18:18:08 +000019689{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19690echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019691test "$ld_shlibs_CXX" = no && can_build_shared=no
19692
19693GCC_CXX="$GXX"
19694LD_CXX="$LD"
19695
John Criswell47fdd832003-07-14 16:52:07 +000019696
19697cat > conftest.$ac_ext <<EOF
19698class Foo
19699{
19700public:
19701 Foo (void) { a = 0; }
19702private:
19703 int a;
19704};
19705EOF
19706
19707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19708 (eval $ac_compile) 2>&5
19709 ac_status=$?
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; then
19712 # Parse the compiler output and extract the necessary
19713 # objects, libraries and library flags.
19714
19715 # Sentinel used to keep track of whether or not we are before
19716 # the conftest object file.
19717 pre_test_object_deps_done=no
19718
19719 # The `*' in the case matches for architectures that use `case' in
19720 # $output_verbose_cmd can trigger glob expansion during the loop
19721 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019722 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019723
19724 for p in `eval $output_verbose_link_cmd`; do
19725 case $p in
19726
19727 -L* | -R* | -l*)
19728 # Some compilers place space between "-{L,R}" and the path.
19729 # Remove the space.
19730 if test $p = "-L" \
19731 || test $p = "-R"; then
19732 prev=$p
19733 continue
19734 else
19735 prev=
19736 fi
19737
19738 if test "$pre_test_object_deps_done" = no; then
19739 case $p in
19740 -L* | -R*)
19741 # Internal compiler library paths should come after those
19742 # provided the user. The postdeps already come after the
19743 # user supplied libs so there is no need to process them.
19744 if test -z "$compiler_lib_search_path_CXX"; then
19745 compiler_lib_search_path_CXX="${prev}${p}"
19746 else
19747 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19748 fi
19749 ;;
19750 # The "-l" case would never come before the object being
19751 # linked, so don't bother handling this case.
19752 esac
19753 else
19754 if test -z "$postdeps_CXX"; then
19755 postdeps_CXX="${prev}${p}"
19756 else
19757 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19758 fi
19759 fi
19760 ;;
19761
19762 *.$objext)
19763 # This assumes that the test object file only shows up
19764 # once in the compiler output.
19765 if test "$p" = "conftest.$objext"; then
19766 pre_test_object_deps_done=yes
19767 continue
19768 fi
19769
19770 if test "$pre_test_object_deps_done" = no; then
19771 if test -z "$predep_objects_CXX"; then
19772 predep_objects_CXX="$p"
19773 else
19774 predep_objects_CXX="$predep_objects_CXX $p"
19775 fi
19776 else
19777 if test -z "$postdep_objects_CXX"; then
19778 postdep_objects_CXX="$p"
19779 else
19780 postdep_objects_CXX="$postdep_objects_CXX $p"
19781 fi
19782 fi
19783 ;;
19784
19785 *) ;; # Ignore the rest.
19786
19787 esac
19788 done
19789
19790 # Clean up.
19791 rm -f a.out a.exe
19792else
19793 echo "libtool.m4: error: problem compiling CXX test program"
19794fi
19795
19796$rm -f confest.$objext
19797
Reid Spencera773bd52006-08-04 18:18:08 +000019798# PORTME: override above test on systems where it is broken
19799case $host_os in
19800interix3*)
19801 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19802 # hack all around it, let's just trust "g++" to DTRT.
19803 predep_objects_CXX=
19804 postdep_objects_CXX=
19805 postdeps_CXX=
19806 ;;
19807
19808solaris*)
19809 case $cc_basename in
19810 CC*)
19811 # Adding this requires a known-good setup of shared libraries for
19812 # Sun compiler versions before 5.6, else PIC objects from an old
19813 # archive will be linked into the output, leading to subtle bugs.
19814 postdeps_CXX='-lCstd -lCrun'
19815 ;;
19816 esac
19817 ;;
19818esac
19819
19820
John Criswell47fdd832003-07-14 16:52:07 +000019821case " $postdeps_CXX " in
19822*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19823esac
19824
19825lt_prog_compiler_wl_CXX=
19826lt_prog_compiler_pic_CXX=
19827lt_prog_compiler_static_CXX=
19828
Reid Spencera773bd52006-08-04 18:18:08 +000019829{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19830echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019831
19832 # C++ specific cases for pic, static, wl, etc.
19833 if test "$GXX" = yes; then
19834 lt_prog_compiler_wl_CXX='-Wl,'
19835 lt_prog_compiler_static_CXX='-static'
19836
19837 case $host_os in
19838 aix*)
19839 # All AIX code is PIC.
19840 if test "$host_cpu" = ia64; then
19841 # AIX 5 now supports IA64 processor
19842 lt_prog_compiler_static_CXX='-Bstatic'
19843 fi
19844 ;;
19845 amigaos*)
19846 # FIXME: we need at least 68020 code to build shared libraries, but
19847 # adding the `-m68020' flag to GCC prevents building anything better,
19848 # like `-m68040'.
19849 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19850 ;;
19851 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19852 # PIC is the default for these OSes.
19853 ;;
19854 mingw* | os2* | pw32*)
19855 # This hack is so that the source file can tell whether it is being
19856 # built for inclusion in a dll (and should export symbols for example).
19857 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19858 ;;
19859 darwin* | rhapsody*)
19860 # PIC is the default on this platform
19861 # Common symbols not allowed in MH_DYLIB files
19862 lt_prog_compiler_pic_CXX='-fno-common'
19863 ;;
19864 *djgpp*)
19865 # DJGPP does not support shared libraries at all
19866 lt_prog_compiler_pic_CXX=
19867 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019868 interix3*)
19869 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19870 # Instead, we relocate shared libraries at runtime.
19871 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019872 sysv4*MP*)
19873 if test -d /usr/nec; then
19874 lt_prog_compiler_pic_CXX=-Kconform_pic
19875 fi
19876 ;;
19877 hpux*)
19878 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19879 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019880 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019881 hppa*64*|ia64*)
19882 ;;
19883 *)
19884 lt_prog_compiler_pic_CXX='-fPIC'
19885 ;;
19886 esac
19887 ;;
19888 *)
19889 lt_prog_compiler_pic_CXX='-fPIC'
19890 ;;
19891 esac
19892 else
19893 case $host_os in
19894 aix4* | aix5*)
19895 # All AIX code is PIC.
19896 if test "$host_cpu" = ia64; then
19897 # AIX 5 now supports IA64 processor
19898 lt_prog_compiler_static_CXX='-Bstatic'
19899 else
19900 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19901 fi
19902 ;;
19903 chorus*)
19904 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019905 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019906 # Green Hills C++ Compiler
19907 # _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"
19908 ;;
19909 esac
19910 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019911 darwin*)
19912 # PIC is the default on this platform
19913 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019914 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019915 xlc*)
19916 lt_prog_compiler_pic_CXX='-qnocommon'
19917 lt_prog_compiler_wl_CXX='-Wl,'
19918 ;;
19919 esac
19920 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019921 dgux*)
19922 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019923 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019924 lt_prog_compiler_pic_CXX='-KPIC'
19925 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019926 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019927 # Green Hills C++ Compiler
19928 lt_prog_compiler_pic_CXX='-pic'
19929 ;;
19930 *)
19931 ;;
19932 esac
19933 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019934 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019935 # FreeBSD uses GNU C++
19936 ;;
19937 hpux9* | hpux10* | hpux11*)
19938 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019939 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019940 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019941 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019942 if test "$host_cpu" != ia64; then
19943 lt_prog_compiler_pic_CXX='+Z'
19944 fi
19945 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019946 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019947 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019948 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19949 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019950 hppa*64*|ia64*)
19951 # +Z the default
19952 ;;
19953 *)
19954 lt_prog_compiler_pic_CXX='+Z'
19955 ;;
19956 esac
19957 ;;
19958 *)
19959 ;;
19960 esac
19961 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019962 interix*)
19963 # This is c89, which is MS Visual C++ (no shared libs)
19964 # Anyone wants to do a port?
19965 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019966 irix5* | irix6* | nonstopux*)
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,'
19970 lt_prog_compiler_static_CXX='-non_shared'
19971 # CC pic flag -KPIC is the default.
19972 ;;
19973 *)
19974 ;;
19975 esac
19976 ;;
19977 linux*)
19978 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019979 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019980 # KAI C++ Compiler
19981 lt_prog_compiler_wl_CXX='--backend -Wl,'
19982 lt_prog_compiler_pic_CXX='-fPIC'
19983 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019984 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019985 # Intel C++
19986 lt_prog_compiler_wl_CXX='-Wl,'
19987 lt_prog_compiler_pic_CXX='-KPIC'
19988 lt_prog_compiler_static_CXX='-static'
19989 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019990 pgCC*)
19991 # Portland Group C++ compiler.
19992 lt_prog_compiler_wl_CXX='-Wl,'
19993 lt_prog_compiler_pic_CXX='-fpic'
19994 lt_prog_compiler_static_CXX='-Bstatic'
19995 ;;
19996 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019997 # Compaq C++
19998 # Make sure the PIC flag is empty. It appears that all Alpha
19999 # Linux and Compaq Tru64 Unix objects are PIC.
20000 lt_prog_compiler_pic_CXX=
20001 lt_prog_compiler_static_CXX='-non_shared'
20002 ;;
20003 *)
20004 ;;
20005 esac
20006 ;;
20007 lynxos*)
20008 ;;
20009 m88k*)
20010 ;;
20011 mvs*)
20012 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020013 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020014 lt_prog_compiler_pic_CXX='-W c,exportall'
20015 ;;
20016 *)
20017 ;;
20018 esac
20019 ;;
20020 netbsd*)
20021 ;;
20022 osf3* | osf4* | osf5*)
20023 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020024 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020025 lt_prog_compiler_wl_CXX='--backend -Wl,'
20026 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020027 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020028 # Rational C++ 2.4.1
20029 lt_prog_compiler_pic_CXX='-pic'
20030 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020031 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020032 # Digital/Compaq C++
20033 lt_prog_compiler_wl_CXX='-Wl,'
20034 # Make sure the PIC flag is empty. It appears that all Alpha
20035 # Linux and Compaq Tru64 Unix objects are PIC.
20036 lt_prog_compiler_pic_CXX=
20037 lt_prog_compiler_static_CXX='-non_shared'
20038 ;;
20039 *)
20040 ;;
20041 esac
20042 ;;
20043 psos*)
20044 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020045 solaris*)
20046 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020047 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020048 # Sun C++ 4.2, 5.x and Centerline C++
20049 lt_prog_compiler_pic_CXX='-KPIC'
20050 lt_prog_compiler_static_CXX='-Bstatic'
20051 lt_prog_compiler_wl_CXX='-Qoption ld '
20052 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020053 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000020054 # Green Hills C++ Compiler
20055 lt_prog_compiler_pic_CXX='-PIC'
20056 ;;
20057 *)
20058 ;;
20059 esac
20060 ;;
20061 sunos4*)
20062 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020063 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020064 # Sun C++ 4.x
20065 lt_prog_compiler_pic_CXX='-pic'
20066 lt_prog_compiler_static_CXX='-Bstatic'
20067 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020068 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000020069 # Lucid
20070 lt_prog_compiler_pic_CXX='-pic'
20071 ;;
20072 *)
20073 ;;
20074 esac
20075 ;;
20076 tandem*)
20077 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020078 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020079 # NonStop-UX NCC 3.20
20080 lt_prog_compiler_pic_CXX='-KPIC'
20081 ;;
20082 *)
20083 ;;
20084 esac
20085 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020086 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20087 case $cc_basename in
20088 CC*)
20089 lt_prog_compiler_wl_CXX='-Wl,'
20090 lt_prog_compiler_pic_CXX='-KPIC'
20091 lt_prog_compiler_static_CXX='-Bstatic'
20092 ;;
20093 esac
John Criswell47fdd832003-07-14 16:52:07 +000020094 ;;
20095 vxworks*)
20096 ;;
20097 *)
20098 lt_prog_compiler_can_build_shared_CXX=no
20099 ;;
20100 esac
20101 fi
20102
Reid Spencera773bd52006-08-04 18:18:08 +000020103{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20104echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020105
20106#
20107# Check to make sure the PIC flag actually works.
20108#
20109if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020110
Reid Spencera773bd52006-08-04 18:18:08 +000020111{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20112echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020113if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20115else
20116 lt_prog_compiler_pic_works_CXX=no
20117 ac_outfile=conftest.$ac_objext
20118 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20119 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20120 # Insert the option either (1) after the last *FLAGS variable, or
20121 # (2) before a word containing "conftest.", or (3) at the end.
20122 # Note that $ac_compile itself does not contain backslashes and begins
20123 # with a dollar sign (not a hyphen), so the echo should work correctly.
20124 # The option is referenced via a variable to avoid confusing sed.
20125 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20128 -e 's:$: $lt_compiler_flag:'`
Gabor Greif4c750542009-08-27 17:07:35 +000020129 (eval echo "\"\$as_me:20129: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020130 (eval "$lt_compile" 2>conftest.err)
20131 ac_status=$?
20132 cat conftest.err >&5
Gabor Greif4c750542009-08-27 17:07:35 +000020133 echo "$as_me:20133: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020134 if (exit $ac_status) && test -s "$ac_outfile"; then
20135 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020136 # So say no if there are warnings other than the usual output.
20137 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020140 lt_prog_compiler_pic_works_CXX=yes
20141 fi
20142 fi
20143 $rm conftest*
20144
20145fi
Reid Spencera773bd52006-08-04 18:18:08 +000020146{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20147echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020148
20149if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20150 case $lt_prog_compiler_pic_CXX in
20151 "" | " "*) ;;
20152 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20153 esac
20154else
20155 lt_prog_compiler_pic_CXX=
20156 lt_prog_compiler_can_build_shared_CXX=no
20157fi
20158
20159fi
Reid Spencera773bd52006-08-04 18:18:08 +000020160case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020161 # For platforms which do not support PIC, -DPIC is meaningless:
20162 *djgpp*)
20163 lt_prog_compiler_pic_CXX=
20164 ;;
20165 *)
20166 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20167 ;;
20168esac
20169
Reid Spencera773bd52006-08-04 18:18:08 +000020170#
20171# Check to make sure the static flag actually works.
20172#
20173wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20174{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20175echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20176if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20178else
20179 lt_prog_compiler_static_works_CXX=no
20180 save_LDFLAGS="$LDFLAGS"
20181 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20182 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20184 # The linker can only warn and ignore the option if not recognized
20185 # So say no if there are warnings
20186 if test -s conftest.err; then
20187 # Append any errors to the config.log.
20188 cat conftest.err 1>&5
20189 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20191 if diff conftest.exp conftest.er2 >/dev/null; then
20192 lt_prog_compiler_static_works_CXX=yes
20193 fi
20194 else
20195 lt_prog_compiler_static_works_CXX=yes
20196 fi
20197 fi
20198 $rm conftest*
20199 LDFLAGS="$save_LDFLAGS"
20200
20201fi
20202{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20203echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20204
20205if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20206 :
20207else
20208 lt_prog_compiler_static_CXX=
20209fi
20210
20211
20212{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20213echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020214if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20215 echo $ECHO_N "(cached) $ECHO_C" >&6
20216else
20217 lt_cv_prog_compiler_c_o_CXX=no
20218 $rm -r conftest 2>/dev/null
20219 mkdir conftest
20220 cd conftest
20221 mkdir out
20222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20223
John Criswell47fdd832003-07-14 16:52:07 +000020224 lt_compiler_flag="-o out/conftest2.$ac_objext"
20225 # Insert the option either (1) after the last *FLAGS variable, or
20226 # (2) before a word containing "conftest.", or (3) at the end.
20227 # Note that $ac_compile itself does not contain backslashes and begins
20228 # with a dollar sign (not a hyphen), so the echo should work correctly.
20229 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20232 -e 's:$: $lt_compiler_flag:'`
Gabor Greif4c750542009-08-27 17:07:35 +000020233 (eval echo "\"\$as_me:20233: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020234 (eval "$lt_compile" 2>out/conftest.err)
20235 ac_status=$?
20236 cat out/conftest.err >&5
Gabor Greif4c750542009-08-27 17:07:35 +000020237 echo "$as_me:20237: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020238 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20239 then
20240 # The compiler can only warn and ignore the option if not recognized
20241 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020245 lt_cv_prog_compiler_c_o_CXX=yes
20246 fi
20247 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020248 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020249 $rm conftest*
20250 # SGI C++ compiler will create directory out/ii_files/ for
20251 # template instantiation
20252 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20253 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020254 cd ..
20255 rmdir conftest
20256 $rm conftest*
20257
20258fi
Reid Spencera773bd52006-08-04 18:18:08 +000020259{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20260echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020261
20262
20263hard_links="nottested"
20264if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20265 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020266 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20267echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020268 hard_links=yes
20269 $rm conftest*
20270 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20271 touch conftest.a
20272 ln conftest.a conftest.b 2>&5 || hard_links=no
20273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020274 { echo "$as_me:$LINENO: result: $hard_links" >&5
20275echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020276 if test "$hard_links" = no; then
20277 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20278echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20279 need_locks=warn
20280 fi
20281else
20282 need_locks=no
20283fi
20284
Reid Spencera773bd52006-08-04 18:18:08 +000020285{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20286echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020287
20288 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20289 case $host_os in
20290 aix4* | aix5*)
20291 # If we're using GNU nm, then we don't want the "-C" option.
20292 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20293 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20294 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'
20295 else
20296 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'
20297 fi
20298 ;;
20299 pw32*)
20300 export_symbols_cmds_CXX="$ltdll_cmds"
20301 ;;
20302 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020303 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 +000020304 ;;
20305 *)
20306 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20307 ;;
20308 esac
20309
Reid Spencera773bd52006-08-04 18:18:08 +000020310{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20311echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020312test "$ld_shlibs_CXX" = no && can_build_shared=no
20313
John Criswell47fdd832003-07-14 16:52:07 +000020314#
20315# Do we need to explicitly link libc?
20316#
20317case "x$archive_cmds_need_lc_CXX" in
20318x|xyes)
20319 # Assume -lc should be added
20320 archive_cmds_need_lc_CXX=yes
20321
20322 if test "$enable_shared" = yes && test "$GCC" = yes; then
20323 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020324 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020325 # FIXME: we may have to deal with multi-command sequences.
20326 ;;
20327 '$CC '*)
20328 # Test whether the compiler implicitly links with -lc since on some
20329 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20330 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020331 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20332echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020333 $rm conftest*
20334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20335
20336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20337 (eval $ac_compile) 2>&5
20338 ac_status=$?
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } 2>conftest.err; then
20341 soname=conftest
20342 lib=conftest
20343 libobjs=conftest.$ac_objext
20344 deplibs=
20345 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020346 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020347 compiler_flags=-v
20348 linker_flags=-v
20349 verstring=
20350 output_objdir=.
20351 libname=conftest
20352 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20353 allow_undefined_flag_CXX=
20354 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20355 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20356 ac_status=$?
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }
20359 then
20360 archive_cmds_need_lc_CXX=no
20361 else
20362 archive_cmds_need_lc_CXX=yes
20363 fi
20364 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20365 else
20366 cat conftest.err 1>&5
20367 fi
20368 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020369 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20370echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020371 ;;
20372 esac
20373 fi
20374 ;;
20375esac
20376
Reid Spencera773bd52006-08-04 18:18:08 +000020377{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20378echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020379library_names_spec=
20380libname_spec='lib$name'
20381soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020382shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020383postinstall_cmds=
20384postuninstall_cmds=
20385finish_cmds=
20386finish_eval=
20387shlibpath_var=
20388shlibpath_overrides_runpath=unknown
20389version_type=none
20390dynamic_linker="$host_os ld.so"
20391sys_lib_dlsearch_path_spec="/lib /usr/lib"
20392if test "$GCC" = yes; then
20393 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20394 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20395 # if the path contains ";" then we assume it to be the separator
20396 # otherwise default to the standard path separator (i.e. ":") - it is
20397 # assumed that no part of a normal pathname contains ";" but that should
20398 # okay in the real world where ";" in dirpaths is itself problematic.
20399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20400 else
20401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20402 fi
20403else
20404 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20405fi
20406need_lib_prefix=unknown
20407hardcode_into_libs=no
20408
20409# when you set need_version to no, make sure it does not cause -set_version
20410# flags to be left without arguments
20411need_version=unknown
20412
20413case $host_os in
20414aix3*)
20415 version_type=linux
20416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20417 shlibpath_var=LIBPATH
20418
20419 # AIX 3 has no versioning support, so we append a major version to the name.
20420 soname_spec='${libname}${release}${shared_ext}$major'
20421 ;;
20422
20423aix4* | aix5*)
20424 version_type=linux
20425 need_lib_prefix=no
20426 need_version=no
20427 hardcode_into_libs=yes
20428 if test "$host_cpu" = ia64; then
20429 # AIX 5 supports IA64
20430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20431 shlibpath_var=LD_LIBRARY_PATH
20432 else
20433 # With GCC up to 2.95.x, collect2 would create an import file
20434 # for dependence libraries. The import file would start with
20435 # the line `#! .'. This would cause the generated library to
20436 # depend on `.', always an invalid library. This was fixed in
20437 # development snapshots of GCC prior to 3.0.
20438 case $host_os in
20439 aix4 | aix4.[01] | aix4.[01].*)
20440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20441 echo ' yes '
20442 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20443 :
20444 else
20445 can_build_shared=no
20446 fi
20447 ;;
20448 esac
20449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20450 # soname into executable. Probably we can add versioning support to
20451 # collect2, so additional links can be useful in future.
20452 if test "$aix_use_runtimelinking" = yes; then
20453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20454 # instead of lib<name>.a to let people know that these are not
20455 # typical AIX shared libraries.
20456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20457 else
20458 # We preserve .a as extension for shared libraries through AIX4.2
20459 # and later when we are not doing run time linking.
20460 library_names_spec='${libname}${release}.a $libname.a'
20461 soname_spec='${libname}${release}${shared_ext}$major'
20462 fi
20463 shlibpath_var=LIBPATH
20464 fi
20465 ;;
20466
20467amigaos*)
20468 library_names_spec='$libname.ixlibrary $libname.a'
20469 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020470 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 +000020471 ;;
20472
20473beos*)
20474 library_names_spec='${libname}${shared_ext}'
20475 dynamic_linker="$host_os ld.so"
20476 shlibpath_var=LIBRARY_PATH
20477 ;;
20478
Reid Spencer2706f8c2004-09-19 23:53:36 +000020479bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020480 version_type=linux
20481 need_version=no
20482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20483 soname_spec='${libname}${release}${shared_ext}$major'
20484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20485 shlibpath_var=LD_LIBRARY_PATH
20486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20488 # the default ld.so.conf also contains /usr/contrib/lib and
20489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20490 # libtool to hard-code these into programs
20491 ;;
20492
20493cygwin* | mingw* | pw32*)
20494 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020495 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020496 need_version=no
20497 need_lib_prefix=no
20498
20499 case $GCC,$host_os in
20500 yes,cygwin* | yes,mingw* | yes,pw32*)
20501 library_names_spec='$libname.dll.a'
20502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020503 postinstall_cmds='base_file=`basename \${file}`~
20504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20505 dldir=$destdir/`dirname \$dlpath`~
20506 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020507 $install_prog $dir/$dlname \$dldir/$dlname~
20508 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020509 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20510 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020511 $rm \$dlpath'
20512 shlibpath_overrides_runpath=yes
20513
20514 case $host_os in
20515 cygwin*)
20516 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20517 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 +000020518 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020519 ;;
20520 mingw*)
20521 # MinGW DLLs use traditional 'lib' prefix
20522 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20524 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20525 # It is most probably a Windows format PATH printed by
20526 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20527 # path with ; separators, and with drive letters. We can handle the
20528 # drive letters (cygwin fileutils understands them), so leave them,
20529 # especially as we might pass files found there to a mingw objdump,
20530 # which wouldn't understand a cygwinified path. Ahh.
20531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20532 else
20533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20534 fi
20535 ;;
20536 pw32*)
20537 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020538 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 +000020539 ;;
20540 esac
20541 ;;
20542
20543 *)
20544 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20545 ;;
20546 esac
20547 dynamic_linker='Win32 ld.exe'
20548 # FIXME: first we should search . and the directory the executable is in
20549 shlibpath_var=PATH
20550 ;;
20551
20552darwin* | rhapsody*)
20553 dynamic_linker="$host_os dyld"
20554 version_type=darwin
20555 need_lib_prefix=no
20556 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020557 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020558 soname_spec='${libname}${release}${major}$shared_ext'
20559 shlibpath_overrides_runpath=yes
20560 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020561 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020562 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020563 if test "$GCC" = yes; then
20564 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"`
20565 else
20566 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020567 fi
20568 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20569 ;;
20570
20571dgux*)
20572 version_type=linux
20573 need_lib_prefix=no
20574 need_version=no
20575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20576 soname_spec='${libname}${release}${shared_ext}$major'
20577 shlibpath_var=LD_LIBRARY_PATH
20578 ;;
20579
20580freebsd1*)
20581 dynamic_linker=no
20582 ;;
20583
Reid Spencer2706f8c2004-09-19 23:53:36 +000020584kfreebsd*-gnu)
20585 version_type=linux
20586 need_lib_prefix=no
20587 need_version=no
20588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20589 soname_spec='${libname}${release}${shared_ext}$major'
20590 shlibpath_var=LD_LIBRARY_PATH
20591 shlibpath_overrides_runpath=no
20592 hardcode_into_libs=yes
20593 dynamic_linker='GNU ld.so'
20594 ;;
20595
Reid Spencera773bd52006-08-04 18:18:08 +000020596freebsd* | dragonfly*)
20597 # DragonFly does not have aout. When/if they implement a new
20598 # versioning mechanism, adjust this.
20599 if test -x /usr/bin/objformat; then
20600 objformat=`/usr/bin/objformat`
20601 else
20602 case $host_os in
20603 freebsd[123]*) objformat=aout ;;
20604 *) objformat=elf ;;
20605 esac
20606 fi
John Criswell47fdd832003-07-14 16:52:07 +000020607 version_type=freebsd-$objformat
20608 case $version_type in
20609 freebsd-elf*)
20610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20611 need_version=no
20612 need_lib_prefix=no
20613 ;;
20614 freebsd-*)
20615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20616 need_version=yes
20617 ;;
20618 esac
20619 shlibpath_var=LD_LIBRARY_PATH
20620 case $host_os in
20621 freebsd2*)
20622 shlibpath_overrides_runpath=yes
20623 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020624 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020625 shlibpath_overrides_runpath=yes
20626 hardcode_into_libs=yes
20627 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020628 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20629 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020630 shlibpath_overrides_runpath=no
20631 hardcode_into_libs=yes
20632 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020633 freebsd*) # from 4.6 on
20634 shlibpath_overrides_runpath=yes
20635 hardcode_into_libs=yes
20636 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020637 esac
20638 ;;
20639
20640gnu*)
20641 version_type=linux
20642 need_lib_prefix=no
20643 need_version=no
20644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20645 soname_spec='${libname}${release}${shared_ext}$major'
20646 shlibpath_var=LD_LIBRARY_PATH
20647 hardcode_into_libs=yes
20648 ;;
20649
20650hpux9* | hpux10* | hpux11*)
20651 # Give a soname corresponding to the major version so that dld.sl refuses to
20652 # link against other versions.
20653 version_type=sunos
20654 need_lib_prefix=no
20655 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020656 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020657 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020658 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020659 hardcode_into_libs=yes
20660 dynamic_linker="$host_os dld.so"
20661 shlibpath_var=LD_LIBRARY_PATH
20662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20664 soname_spec='${libname}${release}${shared_ext}$major'
20665 if test "X$HPUX_IA64_MODE" = X32; then
20666 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20667 else
20668 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20669 fi
20670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20671 ;;
20672 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020673 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020674 hardcode_into_libs=yes
20675 dynamic_linker="$host_os dld.sl"
20676 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20679 soname_spec='${libname}${release}${shared_ext}$major'
20680 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20682 ;;
20683 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020684 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020685 dynamic_linker="$host_os dld.sl"
20686 shlibpath_var=SHLIB_PATH
20687 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20689 soname_spec='${libname}${release}${shared_ext}$major'
20690 ;;
20691 esac
20692 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20693 postinstall_cmds='chmod 555 $lib'
20694 ;;
20695
Reid Spencera773bd52006-08-04 18:18:08 +000020696interix3*)
20697 version_type=linux
20698 need_lib_prefix=no
20699 need_version=no
20700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20701 soname_spec='${libname}${release}${shared_ext}$major'
20702 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20703 shlibpath_var=LD_LIBRARY_PATH
20704 shlibpath_overrides_runpath=no
20705 hardcode_into_libs=yes
20706 ;;
20707
John Criswell47fdd832003-07-14 16:52:07 +000020708irix5* | irix6* | nonstopux*)
20709 case $host_os in
20710 nonstopux*) version_type=nonstopux ;;
20711 *)
20712 if test "$lt_cv_prog_gnu_ld" = yes; then
20713 version_type=linux
20714 else
20715 version_type=irix
20716 fi ;;
20717 esac
20718 need_lib_prefix=no
20719 need_version=no
20720 soname_spec='${libname}${release}${shared_ext}$major'
20721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20722 case $host_os in
20723 irix5* | nonstopux*)
20724 libsuff= shlibsuff=
20725 ;;
20726 *)
20727 case $LD in # libtool.m4 will add one of these switches to LD
20728 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20729 libsuff= shlibsuff= libmagic=32-bit;;
20730 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20731 libsuff=32 shlibsuff=N32 libmagic=N32;;
20732 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20733 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20734 *) libsuff= shlibsuff= libmagic=never-match;;
20735 esac
20736 ;;
20737 esac
20738 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20739 shlibpath_overrides_runpath=no
20740 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20741 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20742 hardcode_into_libs=yes
20743 ;;
20744
20745# No shared lib support for Linux oldld, aout, or coff.
20746linux*oldld* | linux*aout* | linux*coff*)
20747 dynamic_linker=no
20748 ;;
20749
20750# This must be Linux ELF.
20751linux*)
20752 version_type=linux
20753 need_lib_prefix=no
20754 need_version=no
20755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20756 soname_spec='${libname}${release}${shared_ext}$major'
20757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20758 shlibpath_var=LD_LIBRARY_PATH
20759 shlibpath_overrides_runpath=no
20760 # This implies no fast_install, which is unacceptable.
20761 # Some rework will be needed to allow for fast_install
20762 # before this can be enabled.
20763 hardcode_into_libs=yes
20764
Reid Spencer2706f8c2004-09-19 23:53:36 +000020765 # Append ld.so.conf contents to the search path
20766 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020767 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 +000020768 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20769 fi
20770
John Criswell47fdd832003-07-14 16:52:07 +000020771 # We used to test for /lib/ld.so.1 and disable shared libraries on
20772 # powerpc, because MkLinux only supported shared libraries with the
20773 # GNU dynamic linker. Since this was broken with cross compilers,
20774 # most powerpc-linux boxes support dynamic linking these days and
20775 # people can always --disable-shared, the test was removed, and we
20776 # assume the GNU/Linux dynamic linker is in use.
20777 dynamic_linker='GNU/Linux ld.so'
20778 ;;
20779
Reid Spencer2706f8c2004-09-19 23:53:36 +000020780knetbsd*-gnu)
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 shlibpath_var=LD_LIBRARY_PATH
20787 shlibpath_overrides_runpath=no
20788 hardcode_into_libs=yes
20789 dynamic_linker='GNU ld.so'
20790 ;;
20791
John Criswell47fdd832003-07-14 16:52:07 +000020792netbsd*)
20793 version_type=sunos
20794 need_lib_prefix=no
20795 need_version=no
20796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20799 dynamic_linker='NetBSD (a.out) ld.so'
20800 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020802 soname_spec='${libname}${release}${shared_ext}$major'
20803 dynamic_linker='NetBSD ld.elf_so'
20804 fi
20805 shlibpath_var=LD_LIBRARY_PATH
20806 shlibpath_overrides_runpath=yes
20807 hardcode_into_libs=yes
20808 ;;
20809
20810newsos6)
20811 version_type=linux
20812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20813 shlibpath_var=LD_LIBRARY_PATH
20814 shlibpath_overrides_runpath=yes
20815 ;;
20816
Reid Spencer2706f8c2004-09-19 23:53:36 +000020817nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020818 version_type=linux
20819 need_lib_prefix=no
20820 need_version=no
20821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20822 soname_spec='${libname}${release}${shared_ext}$major'
20823 shlibpath_var=LD_LIBRARY_PATH
20824 shlibpath_overrides_runpath=yes
20825 ;;
20826
20827openbsd*)
20828 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020829 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020830 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020831 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20832 case $host_os in
20833 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20834 *) need_version=no ;;
20835 esac
John Criswell47fdd832003-07-14 16:52:07 +000020836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20838 shlibpath_var=LD_LIBRARY_PATH
20839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20840 case $host_os in
20841 openbsd2.[89] | openbsd2.[89].*)
20842 shlibpath_overrides_runpath=no
20843 ;;
20844 *)
20845 shlibpath_overrides_runpath=yes
20846 ;;
20847 esac
20848 else
20849 shlibpath_overrides_runpath=yes
20850 fi
20851 ;;
20852
20853os2*)
20854 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020855 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020856 need_lib_prefix=no
20857 library_names_spec='$libname${shared_ext} $libname.a'
20858 dynamic_linker='OS/2 ld.exe'
20859 shlibpath_var=LIBPATH
20860 ;;
20861
20862osf3* | osf4* | osf5*)
20863 version_type=osf
20864 need_lib_prefix=no
20865 need_version=no
20866 soname_spec='${libname}${release}${shared_ext}$major'
20867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20868 shlibpath_var=LD_LIBRARY_PATH
20869 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20870 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20871 ;;
20872
John Criswell47fdd832003-07-14 16:52:07 +000020873solaris*)
20874 version_type=linux
20875 need_lib_prefix=no
20876 need_version=no
20877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20878 soname_spec='${libname}${release}${shared_ext}$major'
20879 shlibpath_var=LD_LIBRARY_PATH
20880 shlibpath_overrides_runpath=yes
20881 hardcode_into_libs=yes
20882 # ldd complains unless libraries are executable
20883 postinstall_cmds='chmod +x $lib'
20884 ;;
20885
20886sunos4*)
20887 version_type=sunos
20888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20889 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20890 shlibpath_var=LD_LIBRARY_PATH
20891 shlibpath_overrides_runpath=yes
20892 if test "$with_gnu_ld" = yes; then
20893 need_lib_prefix=no
20894 fi
20895 need_version=yes
20896 ;;
20897
Reid Spencera773bd52006-08-04 18:18:08 +000020898sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020899 version_type=linux
20900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20901 soname_spec='${libname}${release}${shared_ext}$major'
20902 shlibpath_var=LD_LIBRARY_PATH
20903 case $host_vendor in
20904 sni)
20905 shlibpath_overrides_runpath=no
20906 need_lib_prefix=no
20907 export_dynamic_flag_spec='${wl}-Blargedynsym'
20908 runpath_var=LD_RUN_PATH
20909 ;;
20910 siemens)
20911 need_lib_prefix=no
20912 ;;
20913 motorola)
20914 need_lib_prefix=no
20915 need_version=no
20916 shlibpath_overrides_runpath=no
20917 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20918 ;;
20919 esac
20920 ;;
20921
20922sysv4*MP*)
20923 if test -d /usr/nec ;then
20924 version_type=linux
20925 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20926 soname_spec='$libname${shared_ext}.$major'
20927 shlibpath_var=LD_LIBRARY_PATH
20928 fi
20929 ;;
20930
Reid Spencera773bd52006-08-04 18:18:08 +000020931sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20932 version_type=freebsd-elf
20933 need_lib_prefix=no
20934 need_version=no
20935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20936 soname_spec='${libname}${release}${shared_ext}$major'
20937 shlibpath_var=LD_LIBRARY_PATH
20938 hardcode_into_libs=yes
20939 if test "$with_gnu_ld" = yes; then
20940 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20941 shlibpath_overrides_runpath=no
20942 else
20943 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20944 shlibpath_overrides_runpath=yes
20945 case $host_os in
20946 sco3.2v5*)
20947 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20948 ;;
20949 esac
20950 fi
20951 sys_lib_dlsearch_path_spec='/usr/lib'
20952 ;;
20953
John Criswell47fdd832003-07-14 16:52:07 +000020954uts4*)
20955 version_type=linux
20956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20957 soname_spec='${libname}${release}${shared_ext}$major'
20958 shlibpath_var=LD_LIBRARY_PATH
20959 ;;
20960
20961*)
20962 dynamic_linker=no
20963 ;;
20964esac
Reid Spencera773bd52006-08-04 18:18:08 +000020965{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20966echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020967test "$dynamic_linker" = no && can_build_shared=no
20968
Reid Spencera773bd52006-08-04 18:18:08 +000020969variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20970if test "$GCC" = yes; then
20971 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20972fi
20973
20974{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20975echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020976hardcode_action_CXX=
20977if test -n "$hardcode_libdir_flag_spec_CXX" || \
20978 test -n "$runpath_var_CXX" || \
20979 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20980
20981 # We can hardcode non-existant directories.
20982 if test "$hardcode_direct_CXX" != no &&
20983 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20984 # have to relink, otherwise we might link with an installed library
20985 # when we should be linking with a yet-to-be-installed one
20986 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20987 test "$hardcode_minus_L_CXX" != no; then
20988 # Linking always hardcodes the temporary library directory.
20989 hardcode_action_CXX=relink
20990 else
20991 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20992 hardcode_action_CXX=immediate
20993 fi
20994else
20995 # We cannot hardcode anything, or else we can only hardcode existing
20996 # directories.
20997 hardcode_action_CXX=unsupported
20998fi
Reid Spencera773bd52006-08-04 18:18:08 +000020999{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21000echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021001
21002if test "$hardcode_action_CXX" = relink; then
21003 # Fast installation is not supported
21004 enable_fast_install=no
21005elif test "$shlibpath_overrides_runpath" = yes ||
21006 test "$enable_shared" = no; then
21007 # Fast installation is not necessary
21008 enable_fast_install=needless
21009fi
21010
John Criswell47fdd832003-07-14 16:52:07 +000021011
21012# The else clause should only fire when bootstrapping the
21013# libtool distribution, otherwise you forgot to ship ltmain.sh
21014# with your package, and you will get complaints that there are
21015# no rules to generate ltmain.sh.
21016if test -f "$ltmain"; then
21017 # See if we are running on zsh, and set the options which allow our commands through
21018 # without removal of \ escapes.
21019 if test -n "${ZSH_VERSION+set}" ; then
21020 setopt NO_GLOB_SUBST
21021 fi
21022 # Now quote all the things that may contain metacharacters while being
21023 # careful not to overquote the AC_SUBSTed values. We take copies of the
21024 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000021025 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 +000021026 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000021027 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21028 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21029 deplibs_check_method reload_flag reload_cmds need_locks \
21030 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21031 lt_cv_sys_global_symbol_to_c_name_address \
21032 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21033 old_postinstall_cmds old_postuninstall_cmds \
21034 compiler_CXX \
21035 CC_CXX \
21036 LD_CXX \
21037 lt_prog_compiler_wl_CXX \
21038 lt_prog_compiler_pic_CXX \
21039 lt_prog_compiler_static_CXX \
21040 lt_prog_compiler_no_builtin_flag_CXX \
21041 export_dynamic_flag_spec_CXX \
21042 thread_safe_flag_spec_CXX \
21043 whole_archive_flag_spec_CXX \
21044 enable_shared_with_static_runtimes_CXX \
21045 old_archive_cmds_CXX \
21046 old_archive_from_new_cmds_CXX \
21047 predep_objects_CXX \
21048 postdep_objects_CXX \
21049 predeps_CXX \
21050 postdeps_CXX \
21051 compiler_lib_search_path_CXX \
21052 archive_cmds_CXX \
21053 archive_expsym_cmds_CXX \
21054 postinstall_cmds_CXX \
21055 postuninstall_cmds_CXX \
21056 old_archive_from_expsyms_cmds_CXX \
21057 allow_undefined_flag_CXX \
21058 no_undefined_flag_CXX \
21059 export_symbols_cmds_CXX \
21060 hardcode_libdir_flag_spec_CXX \
21061 hardcode_libdir_flag_spec_ld_CXX \
21062 hardcode_libdir_separator_CXX \
21063 hardcode_automatic_CXX \
21064 module_cmds_CXX \
21065 module_expsym_cmds_CXX \
21066 lt_cv_prog_compiler_c_o_CXX \
21067 exclude_expsyms_CXX \
21068 include_expsyms_CXX; do
21069
21070 case $var in
21071 old_archive_cmds_CXX | \
21072 old_archive_from_new_cmds_CXX | \
21073 archive_cmds_CXX | \
21074 archive_expsym_cmds_CXX | \
21075 module_cmds_CXX | \
21076 module_expsym_cmds_CXX | \
21077 old_archive_from_expsyms_cmds_CXX | \
21078 export_symbols_cmds_CXX | \
21079 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21080 postinstall_cmds | postuninstall_cmds | \
21081 old_postinstall_cmds | old_postuninstall_cmds | \
21082 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21083 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021084 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 +000021085 ;;
21086 *)
21087 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21088 ;;
21089 esac
21090 done
21091
21092 case $lt_echo in
21093 *'\$0 --fallback-echo"')
21094 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21095 ;;
21096 esac
21097
21098cfgfile="$ofile"
21099
21100 cat <<__EOF__ >> "$cfgfile"
21101# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21102
21103# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21104
21105# Shell to use when invoking shell scripts.
21106SHELL=$lt_SHELL
21107
21108# Whether or not to build shared libraries.
21109build_libtool_libs=$enable_shared
21110
21111# Whether or not to build static libraries.
21112build_old_libs=$enable_static
21113
21114# Whether or not to add -lc for building shared libraries.
21115build_libtool_need_lc=$archive_cmds_need_lc_CXX
21116
21117# Whether or not to disallow shared libs when runtime libs are static
21118allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21119
21120# Whether or not to optimize for fast installation.
21121fast_install=$enable_fast_install
21122
21123# The host system.
21124host_alias=$host_alias
21125host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021126host_os=$host_os
21127
21128# The build system.
21129build_alias=$build_alias
21130build=$build
21131build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021132
21133# An echo program that does not interpret backslashes.
21134echo=$lt_echo
21135
21136# The archiver.
21137AR=$lt_AR
21138AR_FLAGS=$lt_AR_FLAGS
21139
21140# A C compiler.
21141LTCC=$lt_LTCC
21142
Reid Spencera773bd52006-08-04 18:18:08 +000021143# LTCC compiler flags.
21144LTCFLAGS=$lt_LTCFLAGS
21145
John Criswell47fdd832003-07-14 16:52:07 +000021146# A language-specific compiler.
21147CC=$lt_compiler_CXX
21148
21149# Is the compiler the GNU C compiler?
21150with_gcc=$GCC_CXX
21151
21152# An ERE matcher.
21153EGREP=$lt_EGREP
21154
21155# The linker used to build libraries.
21156LD=$lt_LD_CXX
21157
21158# Whether we need hard or soft links.
21159LN_S=$lt_LN_S
21160
21161# A BSD-compatible nm program.
21162NM=$lt_NM
21163
21164# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021165STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021166
21167# Used to examine libraries when file_magic_cmd begins "file"
21168MAGIC_CMD=$MAGIC_CMD
21169
21170# Used on cygwin: DLL creation program.
21171DLLTOOL="$DLLTOOL"
21172
21173# Used on cygwin: object dumper.
21174OBJDUMP="$OBJDUMP"
21175
21176# Used on cygwin: assembler.
21177AS="$AS"
21178
21179# The name of the directory that contains temporary libtool files.
21180objdir=$objdir
21181
21182# How to create reloadable object files.
21183reload_flag=$lt_reload_flag
21184reload_cmds=$lt_reload_cmds
21185
21186# How to pass a linker flag through the compiler.
21187wl=$lt_lt_prog_compiler_wl_CXX
21188
21189# Object file suffix (normally "o").
21190objext="$ac_objext"
21191
21192# Old archive suffix (normally "a").
21193libext="$libext"
21194
21195# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021196shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021197
21198# Executable file suffix (normally "").
21199exeext="$exeext"
21200
21201# Additional compiler flags for building library objects.
21202pic_flag=$lt_lt_prog_compiler_pic_CXX
21203pic_mode=$pic_mode
21204
21205# What is the maximum length of a command?
21206max_cmd_len=$lt_cv_sys_max_cmd_len
21207
21208# Does compiler simultaneously support -c and -o options?
21209compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21210
Reid Spencera773bd52006-08-04 18:18:08 +000021211# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021212need_locks=$lt_need_locks
21213
21214# Do we need the lib prefix for modules?
21215need_lib_prefix=$need_lib_prefix
21216
21217# Do we need a version for libraries?
21218need_version=$need_version
21219
21220# Whether dlopen is supported.
21221dlopen_support=$enable_dlopen
21222
21223# Whether dlopen of programs is supported.
21224dlopen_self=$enable_dlopen_self
21225
21226# Whether dlopen of statically linked programs is supported.
21227dlopen_self_static=$enable_dlopen_self_static
21228
21229# Compiler flag to prevent dynamic linking.
21230link_static_flag=$lt_lt_prog_compiler_static_CXX
21231
21232# Compiler flag to turn off builtin functions.
21233no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21234
21235# Compiler flag to allow reflexive dlopens.
21236export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21237
21238# Compiler flag to generate shared objects directly from archives.
21239whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21240
21241# Compiler flag to generate thread-safe objects.
21242thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21243
21244# Library versioning type.
21245version_type=$version_type
21246
21247# Format of library name prefix.
21248libname_spec=$lt_libname_spec
21249
21250# List of archive names. First name is the real one, the rest are links.
21251# The last name is the one that the linker finds with -lNAME.
21252library_names_spec=$lt_library_names_spec
21253
21254# The coded name of the library, if different from the real name.
21255soname_spec=$lt_soname_spec
21256
21257# Commands used to build and install an old-style archive.
21258RANLIB=$lt_RANLIB
21259old_archive_cmds=$lt_old_archive_cmds_CXX
21260old_postinstall_cmds=$lt_old_postinstall_cmds
21261old_postuninstall_cmds=$lt_old_postuninstall_cmds
21262
21263# Create an old-style archive from a shared archive.
21264old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21265
21266# Create a temporary old-style archive to link instead of a shared archive.
21267old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21268
21269# Commands used to build and install a shared archive.
21270archive_cmds=$lt_archive_cmds_CXX
21271archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21272postinstall_cmds=$lt_postinstall_cmds
21273postuninstall_cmds=$lt_postuninstall_cmds
21274
21275# Commands used to build a loadable module (assumed same as above if empty)
21276module_cmds=$lt_module_cmds_CXX
21277module_expsym_cmds=$lt_module_expsym_cmds_CXX
21278
21279# Commands to strip libraries.
21280old_striplib=$lt_old_striplib
21281striplib=$lt_striplib
21282
21283# Dependencies to place before the objects being linked to create a
21284# shared library.
21285predep_objects=$lt_predep_objects_CXX
21286
21287# Dependencies to place after the objects being linked to create a
21288# shared library.
21289postdep_objects=$lt_postdep_objects_CXX
21290
21291# Dependencies to place before the objects being linked to create a
21292# shared library.
21293predeps=$lt_predeps_CXX
21294
21295# Dependencies to place after the objects being linked to create a
21296# shared library.
21297postdeps=$lt_postdeps_CXX
21298
21299# The library search path used internally by the compiler when linking
21300# a shared library.
21301compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21302
21303# Method to check whether dependent libraries are shared objects.
21304deplibs_check_method=$lt_deplibs_check_method
21305
21306# Command to use when deplibs_check_method == file_magic.
21307file_magic_cmd=$lt_file_magic_cmd
21308
21309# Flag that allows shared libraries with undefined symbols to be built.
21310allow_undefined_flag=$lt_allow_undefined_flag_CXX
21311
21312# Flag that forces no undefined symbols.
21313no_undefined_flag=$lt_no_undefined_flag_CXX
21314
21315# Commands used to finish a libtool library installation in a directory.
21316finish_cmds=$lt_finish_cmds
21317
21318# Same as above, but a single script fragment to be evaled but not shown.
21319finish_eval=$lt_finish_eval
21320
21321# Take the output of nm and produce a listing of raw symbols and C names.
21322global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21323
21324# Transform the output of nm in a proper C declaration
21325global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21326
21327# Transform the output of nm in a C name address pair
21328global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21329
21330# This is the shared library runtime path variable.
21331runpath_var=$runpath_var
21332
21333# This is the shared library path variable.
21334shlibpath_var=$shlibpath_var
21335
21336# Is shlibpath searched before the hard-coded library search path?
21337shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21338
21339# How to hardcode a shared library path into an executable.
21340hardcode_action=$hardcode_action_CXX
21341
21342# Whether we should hardcode library paths into libraries.
21343hardcode_into_libs=$hardcode_into_libs
21344
21345# Flag to hardcode \$libdir into a binary during linking.
21346# This must work even if \$libdir does not exist.
21347hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21348
21349# If ld is used when linking, flag to hardcode \$libdir into
21350# a binary during linking. This must work even if \$libdir does
21351# not exist.
21352hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21353
21354# Whether we need a single -rpath flag with a separated argument.
21355hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21356
21357# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21358# resulting binary.
21359hardcode_direct=$hardcode_direct_CXX
21360
21361# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21362# resulting binary.
21363hardcode_minus_L=$hardcode_minus_L_CXX
21364
21365# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21366# the resulting binary.
21367hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21368
21369# Set to yes if building a shared library automatically hardcodes DIR into the library
21370# and all subsequent libraries and executables linked against it.
21371hardcode_automatic=$hardcode_automatic_CXX
21372
21373# Variables whose values should be saved in libtool wrapper scripts and
21374# restored at relink time.
21375variables_saved_for_relink="$variables_saved_for_relink"
21376
21377# Whether libtool must link a program against all its dependency libraries.
21378link_all_deplibs=$link_all_deplibs_CXX
21379
21380# Compile-time system search path for libraries
21381sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21382
21383# Run-time system search path for libraries
21384sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21385
21386# Fix the shell variable \$srcfile for the compiler.
21387fix_srcfile_path="$fix_srcfile_path_CXX"
21388
21389# Set to yes if exported symbols are required.
21390always_export_symbols=$always_export_symbols_CXX
21391
21392# The commands to list exported symbols.
21393export_symbols_cmds=$lt_export_symbols_cmds_CXX
21394
21395# The commands to extract the exported symbol list from a shared archive.
21396extract_expsyms_cmds=$lt_extract_expsyms_cmds
21397
21398# Symbols that should not be listed in the preloaded symbols.
21399exclude_expsyms=$lt_exclude_expsyms_CXX
21400
21401# Symbols that must always be exported.
21402include_expsyms=$lt_include_expsyms_CXX
21403
21404# ### END LIBTOOL TAG CONFIG: $tagname
21405
21406__EOF__
21407
21408
21409else
21410 # If there is no Makefile yet, we rely on a make rule to execute
21411 # `config.status --recheck' to rerun these tests and create the
21412 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021413 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21414 if test -f "$ltmain_in"; then
21415 test -f Makefile && make "$ltmain"
21416 fi
John Criswell47fdd832003-07-14 16:52:07 +000021417fi
21418
21419
21420ac_ext=c
21421ac_cpp='$CPP $CPPFLAGS'
21422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21424ac_compiler_gnu=$ac_cv_c_compiler_gnu
21425
21426CC=$lt_save_CC
21427LDCXX=$LD
21428LD=$lt_save_LD
21429GCC=$lt_save_GCC
21430with_gnu_ldcxx=$with_gnu_ld
21431with_gnu_ld=$lt_save_with_gnu_ld
21432lt_cv_path_LDCXX=$lt_cv_path_LD
21433lt_cv_path_LD=$lt_save_path_LD
21434lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21435lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21436
21437 else
21438 tagname=""
21439 fi
21440 ;;
21441
21442 F77)
21443 if test -n "$F77" && test "X$F77" != "Xno"; then
21444
21445ac_ext=f
21446ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21447ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21448ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21449
21450
21451archive_cmds_need_lc_F77=no
21452allow_undefined_flag_F77=
21453always_export_symbols_F77=no
21454archive_expsym_cmds_F77=
21455export_dynamic_flag_spec_F77=
21456hardcode_direct_F77=no
21457hardcode_libdir_flag_spec_F77=
21458hardcode_libdir_flag_spec_ld_F77=
21459hardcode_libdir_separator_F77=
21460hardcode_minus_L_F77=no
21461hardcode_automatic_F77=no
21462module_cmds_F77=
21463module_expsym_cmds_F77=
21464link_all_deplibs_F77=unknown
21465old_archive_cmds_F77=$old_archive_cmds
21466no_undefined_flag_F77=
21467whole_archive_flag_spec_F77=
21468enable_shared_with_static_runtimes_F77=no
21469
21470# Source file extension for f77 test sources.
21471ac_ext=f
21472
21473# Object file extension for compiled f77 test sources.
21474objext=o
21475objext_F77=$objext
21476
21477# Code to be used in simple compile tests
21478lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21479
21480# Code to be used in simple link tests
21481lt_simple_link_test_code=" program t\n end\n"
21482
21483# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21484
21485# If no C compiler was specified, use CC.
21486LTCC=${LTCC-"$CC"}
21487
Reid Spencera773bd52006-08-04 18:18:08 +000021488# If no C compiler flags were specified, use CFLAGS.
21489LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21490
John Criswell47fdd832003-07-14 16:52:07 +000021491# Allow CC to be a program name with arguments.
21492compiler=$CC
21493
21494
Reid Spencera773bd52006-08-04 18:18:08 +000021495# save warnings/boilerplate of simple test code
21496ac_outfile=conftest.$ac_objext
21497printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21498eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21499_lt_compiler_boilerplate=`cat conftest.err`
21500$rm conftest*
21501
21502ac_outfile=conftest.$ac_objext
21503printf "$lt_simple_link_test_code" >conftest.$ac_ext
21504eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21505_lt_linker_boilerplate=`cat conftest.err`
21506$rm conftest*
21507
21508
John Criswell47fdd832003-07-14 16:52:07 +000021509# Allow CC to be a program name with arguments.
21510lt_save_CC="$CC"
21511CC=${F77-"f77"}
21512compiler=$CC
21513compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021514for cc_temp in $compiler""; do
21515 case $cc_temp in
21516 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21517 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21518 \-*) ;;
21519 *) break;;
21520 esac
21521done
21522cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021523
John Criswell47fdd832003-07-14 16:52:07 +000021524
Reid Spencera773bd52006-08-04 18:18:08 +000021525{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21526echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21527{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21528echo "${ECHO_T}$can_build_shared" >&6; }
21529
21530{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21531echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021532test "$can_build_shared" = "no" && enable_shared=no
21533
21534# On AIX, shared libraries and static libraries use the same namespace, and
21535# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021536case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021537aix3*)
21538 test "$enable_shared" = yes && enable_static=no
21539 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021540 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021541 postinstall_cmds='$RANLIB $lib'
21542 fi
21543 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021544aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021545 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21546 test "$enable_shared" = yes && enable_static=no
21547 fi
John Criswell47fdd832003-07-14 16:52:07 +000021548 ;;
21549esac
Reid Spencera773bd52006-08-04 18:18:08 +000021550{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21551echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021552
Reid Spencera773bd52006-08-04 18:18:08 +000021553{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21554echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021555# Make sure either enable_shared or enable_static is yes.
21556test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021557{ echo "$as_me:$LINENO: result: $enable_static" >&5
21558echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021559
21560GCC_F77="$G77"
21561LD_F77="$LD"
21562
21563lt_prog_compiler_wl_F77=
21564lt_prog_compiler_pic_F77=
21565lt_prog_compiler_static_F77=
21566
Reid Spencera773bd52006-08-04 18:18:08 +000021567{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21568echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021569
21570 if test "$GCC" = yes; then
21571 lt_prog_compiler_wl_F77='-Wl,'
21572 lt_prog_compiler_static_F77='-static'
21573
21574 case $host_os in
21575 aix*)
21576 # All AIX code is PIC.
21577 if test "$host_cpu" = ia64; then
21578 # AIX 5 now supports IA64 processor
21579 lt_prog_compiler_static_F77='-Bstatic'
21580 fi
21581 ;;
21582
21583 amigaos*)
21584 # FIXME: we need at least 68020 code to build shared libraries, but
21585 # adding the `-m68020' flag to GCC prevents building anything better,
21586 # like `-m68040'.
21587 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21588 ;;
21589
21590 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21591 # PIC is the default for these OSes.
21592 ;;
21593
21594 mingw* | pw32* | os2*)
21595 # This hack is so that the source file can tell whether it is being
21596 # built for inclusion in a dll (and should export symbols for example).
21597 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21598 ;;
21599
21600 darwin* | rhapsody*)
21601 # PIC is the default on this platform
21602 # Common symbols not allowed in MH_DYLIB files
21603 lt_prog_compiler_pic_F77='-fno-common'
21604 ;;
21605
Reid Spencera773bd52006-08-04 18:18:08 +000021606 interix3*)
21607 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21608 # Instead, we relocate shared libraries at runtime.
21609 ;;
21610
John Criswell47fdd832003-07-14 16:52:07 +000021611 msdosdjgpp*)
21612 # Just because we use GCC doesn't mean we suddenly get shared libraries
21613 # on systems that don't support them.
21614 lt_prog_compiler_can_build_shared_F77=no
21615 enable_shared=no
21616 ;;
21617
21618 sysv4*MP*)
21619 if test -d /usr/nec; then
21620 lt_prog_compiler_pic_F77=-Kconform_pic
21621 fi
21622 ;;
21623
21624 hpux*)
21625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21626 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021627 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021628 hppa*64*|ia64*)
21629 # +Z the default
21630 ;;
21631 *)
21632 lt_prog_compiler_pic_F77='-fPIC'
21633 ;;
21634 esac
21635 ;;
21636
21637 *)
21638 lt_prog_compiler_pic_F77='-fPIC'
21639 ;;
21640 esac
21641 else
21642 # PORTME Check for flag to pass linker flags through the system compiler.
21643 case $host_os in
21644 aix*)
21645 lt_prog_compiler_wl_F77='-Wl,'
21646 if test "$host_cpu" = ia64; then
21647 # AIX 5 now supports IA64 processor
21648 lt_prog_compiler_static_F77='-Bstatic'
21649 else
21650 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21651 fi
21652 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021653 darwin*)
21654 # PIC is the default on this platform
21655 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021656 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021657 xlc*)
21658 lt_prog_compiler_pic_F77='-qnocommon'
21659 lt_prog_compiler_wl_F77='-Wl,'
21660 ;;
21661 esac
21662 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021663
21664 mingw* | pw32* | os2*)
21665 # This hack is so that the source file can tell whether it is being
21666 # built for inclusion in a dll (and should export symbols for example).
21667 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21668 ;;
21669
21670 hpux9* | hpux10* | hpux11*)
21671 lt_prog_compiler_wl_F77='-Wl,'
21672 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21673 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021674 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021675 hppa*64*|ia64*)
21676 # +Z the default
21677 ;;
21678 *)
21679 lt_prog_compiler_pic_F77='+Z'
21680 ;;
21681 esac
21682 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21683 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21684 ;;
21685
21686 irix5* | irix6* | nonstopux*)
21687 lt_prog_compiler_wl_F77='-Wl,'
21688 # PIC (with -KPIC) is the default.
21689 lt_prog_compiler_static_F77='-non_shared'
21690 ;;
21691
21692 newsos6)
21693 lt_prog_compiler_pic_F77='-KPIC'
21694 lt_prog_compiler_static_F77='-Bstatic'
21695 ;;
21696
21697 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021698 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021699 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021700 lt_prog_compiler_wl_F77='-Wl,'
21701 lt_prog_compiler_pic_F77='-KPIC'
21702 lt_prog_compiler_static_F77='-static'
21703 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021704 pgcc* | pgf77* | pgf90* | pgf95*)
21705 # Portland Group compilers (*not* the Pentium gcc compiler,
21706 # which looks to be a dead project)
21707 lt_prog_compiler_wl_F77='-Wl,'
21708 lt_prog_compiler_pic_F77='-fpic'
21709 lt_prog_compiler_static_F77='-Bstatic'
21710 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021711 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021712 lt_prog_compiler_wl_F77='-Wl,'
21713 # All Alpha code is PIC.
21714 lt_prog_compiler_static_F77='-non_shared'
21715 ;;
21716 esac
21717 ;;
21718
21719 osf3* | osf4* | osf5*)
21720 lt_prog_compiler_wl_F77='-Wl,'
21721 # All OSF/1 code is PIC.
21722 lt_prog_compiler_static_F77='-non_shared'
21723 ;;
21724
John Criswell47fdd832003-07-14 16:52:07 +000021725 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021726 lt_prog_compiler_pic_F77='-KPIC'
21727 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021728 case $cc_basename in
21729 f77* | f90* | f95*)
21730 lt_prog_compiler_wl_F77='-Qoption ld ';;
21731 *)
21732 lt_prog_compiler_wl_F77='-Wl,';;
21733 esac
John Criswell47fdd832003-07-14 16:52:07 +000021734 ;;
21735
21736 sunos4*)
21737 lt_prog_compiler_wl_F77='-Qoption ld '
21738 lt_prog_compiler_pic_F77='-PIC'
21739 lt_prog_compiler_static_F77='-Bstatic'
21740 ;;
21741
Reid Spencera773bd52006-08-04 18:18:08 +000021742 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021743 lt_prog_compiler_wl_F77='-Wl,'
21744 lt_prog_compiler_pic_F77='-KPIC'
21745 lt_prog_compiler_static_F77='-Bstatic'
21746 ;;
21747
21748 sysv4*MP*)
21749 if test -d /usr/nec ;then
21750 lt_prog_compiler_pic_F77='-Kconform_pic'
21751 lt_prog_compiler_static_F77='-Bstatic'
21752 fi
21753 ;;
21754
Reid Spencera773bd52006-08-04 18:18:08 +000021755 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21756 lt_prog_compiler_wl_F77='-Wl,'
21757 lt_prog_compiler_pic_F77='-KPIC'
21758 lt_prog_compiler_static_F77='-Bstatic'
21759 ;;
21760
21761 unicos*)
21762 lt_prog_compiler_wl_F77='-Wl,'
21763 lt_prog_compiler_can_build_shared_F77=no
21764 ;;
21765
John Criswell47fdd832003-07-14 16:52:07 +000021766 uts4*)
21767 lt_prog_compiler_pic_F77='-pic'
21768 lt_prog_compiler_static_F77='-Bstatic'
21769 ;;
21770
21771 *)
21772 lt_prog_compiler_can_build_shared_F77=no
21773 ;;
21774 esac
21775 fi
21776
Reid Spencera773bd52006-08-04 18:18:08 +000021777{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21778echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021779
21780#
21781# Check to make sure the PIC flag actually works.
21782#
21783if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021784
Reid Spencera773bd52006-08-04 18:18:08 +000021785{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21786echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021787if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21788 echo $ECHO_N "(cached) $ECHO_C" >&6
21789else
21790 lt_prog_compiler_pic_works_F77=no
21791 ac_outfile=conftest.$ac_objext
21792 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21793 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21794 # Insert the option either (1) after the last *FLAGS variable, or
21795 # (2) before a word containing "conftest.", or (3) at the end.
21796 # Note that $ac_compile itself does not contain backslashes and begins
21797 # with a dollar sign (not a hyphen), so the echo should work correctly.
21798 # The option is referenced via a variable to avoid confusing sed.
21799 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21802 -e 's:$: $lt_compiler_flag:'`
Gabor Greif4c750542009-08-27 17:07:35 +000021803 (eval echo "\"\$as_me:21803: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021804 (eval "$lt_compile" 2>conftest.err)
21805 ac_status=$?
21806 cat conftest.err >&5
Gabor Greif4c750542009-08-27 17:07:35 +000021807 echo "$as_me:21807: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021808 if (exit $ac_status) && test -s "$ac_outfile"; then
21809 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021810 # So say no if there are warnings other than the usual output.
21811 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21813 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021814 lt_prog_compiler_pic_works_F77=yes
21815 fi
21816 fi
21817 $rm conftest*
21818
21819fi
Reid Spencera773bd52006-08-04 18:18:08 +000021820{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21821echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021822
21823if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21824 case $lt_prog_compiler_pic_F77 in
21825 "" | " "*) ;;
21826 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21827 esac
21828else
21829 lt_prog_compiler_pic_F77=
21830 lt_prog_compiler_can_build_shared_F77=no
21831fi
21832
21833fi
Reid Spencera773bd52006-08-04 18:18:08 +000021834case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021835 # For platforms which do not support PIC, -DPIC is meaningless:
21836 *djgpp*)
21837 lt_prog_compiler_pic_F77=
21838 ;;
21839 *)
21840 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21841 ;;
21842esac
21843
Reid Spencera773bd52006-08-04 18:18:08 +000021844#
21845# Check to make sure the static flag actually works.
21846#
21847wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21848{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21849echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21850if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21852else
21853 lt_prog_compiler_static_works_F77=no
21854 save_LDFLAGS="$LDFLAGS"
21855 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21856 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21857 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21858 # The linker can only warn and ignore the option if not recognized
21859 # So say no if there are warnings
21860 if test -s conftest.err; then
21861 # Append any errors to the config.log.
21862 cat conftest.err 1>&5
21863 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21865 if diff conftest.exp conftest.er2 >/dev/null; then
21866 lt_prog_compiler_static_works_F77=yes
21867 fi
21868 else
21869 lt_prog_compiler_static_works_F77=yes
21870 fi
21871 fi
21872 $rm conftest*
21873 LDFLAGS="$save_LDFLAGS"
21874
21875fi
21876{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21877echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21878
21879if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21880 :
21881else
21882 lt_prog_compiler_static_F77=
21883fi
21884
21885
21886{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21887echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021888if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21890else
21891 lt_cv_prog_compiler_c_o_F77=no
21892 $rm -r conftest 2>/dev/null
21893 mkdir conftest
21894 cd conftest
21895 mkdir out
21896 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21897
John Criswell47fdd832003-07-14 16:52:07 +000021898 lt_compiler_flag="-o out/conftest2.$ac_objext"
21899 # Insert the option either (1) after the last *FLAGS variable, or
21900 # (2) before a word containing "conftest.", or (3) at the end.
21901 # Note that $ac_compile itself does not contain backslashes and begins
21902 # with a dollar sign (not a hyphen), so the echo should work correctly.
21903 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21906 -e 's:$: $lt_compiler_flag:'`
Gabor Greif4c750542009-08-27 17:07:35 +000021907 (eval echo "\"\$as_me:21907: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021908 (eval "$lt_compile" 2>out/conftest.err)
21909 ac_status=$?
21910 cat out/conftest.err >&5
Gabor Greif4c750542009-08-27 17:07:35 +000021911 echo "$as_me:21911: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021912 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21913 then
21914 # The compiler can only warn and ignore the option if not recognized
21915 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021916 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21917 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21918 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021919 lt_cv_prog_compiler_c_o_F77=yes
21920 fi
21921 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021922 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021923 $rm conftest*
21924 # SGI C++ compiler will create directory out/ii_files/ for
21925 # template instantiation
21926 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21927 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021928 cd ..
21929 rmdir conftest
21930 $rm conftest*
21931
21932fi
Reid Spencera773bd52006-08-04 18:18:08 +000021933{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21934echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021935
21936
21937hard_links="nottested"
21938if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21939 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021940 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21941echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021942 hard_links=yes
21943 $rm conftest*
21944 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21945 touch conftest.a
21946 ln conftest.a conftest.b 2>&5 || hard_links=no
21947 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021948 { echo "$as_me:$LINENO: result: $hard_links" >&5
21949echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021950 if test "$hard_links" = no; then
21951 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21952echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21953 need_locks=warn
21954 fi
21955else
21956 need_locks=no
21957fi
21958
Reid Spencera773bd52006-08-04 18:18:08 +000021959{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21960echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021961
21962 runpath_var=
21963 allow_undefined_flag_F77=
21964 enable_shared_with_static_runtimes_F77=no
21965 archive_cmds_F77=
21966 archive_expsym_cmds_F77=
21967 old_archive_From_new_cmds_F77=
21968 old_archive_from_expsyms_cmds_F77=
21969 export_dynamic_flag_spec_F77=
21970 whole_archive_flag_spec_F77=
21971 thread_safe_flag_spec_F77=
21972 hardcode_libdir_flag_spec_F77=
21973 hardcode_libdir_flag_spec_ld_F77=
21974 hardcode_libdir_separator_F77=
21975 hardcode_direct_F77=no
21976 hardcode_minus_L_F77=no
21977 hardcode_shlibpath_var_F77=unsupported
21978 link_all_deplibs_F77=unknown
21979 hardcode_automatic_F77=no
21980 module_cmds_F77=
21981 module_expsym_cmds_F77=
21982 always_export_symbols_F77=no
21983 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21984 # include_expsyms should be a list of space-separated symbols to be *always*
21985 # included in the symbol list
21986 include_expsyms_F77=
21987 # exclude_expsyms can be an extended regexp of symbols to exclude
21988 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21989 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21990 # as well as any symbol that contains `d'.
21991 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21992 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21993 # platforms (ab)use it in PIC code, but their linkers get confused if
21994 # the symbol is explicitly referenced. Since portable code cannot
21995 # rely on this symbol name, it's probably fine to never include it in
21996 # preloaded symbol tables.
21997 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021998 # Just being paranoid about ensuring that cc_basename is set.
21999 for cc_temp in $compiler""; do
22000 case $cc_temp in
22001 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22002 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22003 \-*) ;;
22004 *) break;;
22005 esac
22006done
22007cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000022008
22009 case $host_os in
22010 cygwin* | mingw* | pw32*)
22011 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22012 # When not using gcc, we currently assume that we are using
22013 # Microsoft Visual C++.
22014 if test "$GCC" != yes; then
22015 with_gnu_ld=no
22016 fi
22017 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022018 interix*)
22019 # we just hope/assume this is gcc and not c89 (= MSVC++)
22020 with_gnu_ld=yes
22021 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022022 openbsd*)
22023 with_gnu_ld=no
22024 ;;
22025 esac
22026
22027 ld_shlibs_F77=yes
22028 if test "$with_gnu_ld" = yes; then
22029 # If archive_cmds runs LD, not CC, wlarc should be empty
22030 wlarc='${wl}'
22031
Reid Spencera773bd52006-08-04 18:18:08 +000022032 # Set some defaults for GNU ld with shared library support. These
22033 # are reset later if shared libraries are not supported. Putting them
22034 # here allows them to be overridden if necessary.
22035 runpath_var=LD_RUN_PATH
22036 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22037 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22038 # ancient GNU ld didn't support --whole-archive et. al.
22039 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22040 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22041 else
22042 whole_archive_flag_spec_F77=
22043 fi
22044 supports_anon_versioning=no
22045 case `$LD -v 2>/dev/null` in
22046 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22047 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22048 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22049 *\ 2.11.*) ;; # other 2.11 versions
22050 *) supports_anon_versioning=yes ;;
22051 esac
22052
John Criswell47fdd832003-07-14 16:52:07 +000022053 # See if GNU ld supports shared libraries.
22054 case $host_os in
22055 aix3* | aix4* | aix5*)
22056 # On AIX/PPC, the GNU linker is very broken
22057 if test "$host_cpu" != ia64; then
22058 ld_shlibs_F77=no
22059 cat <<EOF 1>&2
22060
22061*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22062*** to be unable to reliably create shared libraries on AIX.
22063*** Therefore, libtool is disabling shared libraries support. If you
22064*** really care for shared libraries, you may want to modify your PATH
22065*** so that a non-GNU linker is found, and then restart.
22066
22067EOF
22068 fi
22069 ;;
22070
22071 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022072 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 +000022073 hardcode_libdir_flag_spec_F77='-L$libdir'
22074 hardcode_minus_L_F77=yes
22075
22076 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22077 # that the semantics of dynamic libraries on AmigaOS, at least up
22078 # to version 4, is to share data among multiple programs linked
22079 # with the same dynamic library. Since this doesn't match the
22080 # behavior of shared libraries on other platforms, we can't use
22081 # them.
22082 ld_shlibs_F77=no
22083 ;;
22084
22085 beos*)
22086 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22087 allow_undefined_flag_F77=unsupported
22088 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22089 # support --undefined. This deserves some investigation. FIXME
22090 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22091 else
22092 ld_shlibs_F77=no
22093 fi
22094 ;;
22095
22096 cygwin* | mingw* | pw32*)
22097 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22098 # as there is no search path for DLLs.
22099 hardcode_libdir_flag_spec_F77='-L$libdir'
22100 allow_undefined_flag_F77=unsupported
22101 always_export_symbols_F77=no
22102 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022103 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 +000022104
22105 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000022106 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 +000022107 # If the export-symbols file already is a .def file (1st line
22108 # is EXPORTS), use it as is; otherwise, prepend...
22109 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22110 cp $export_symbols $output_objdir/$soname.def;
22111 else
22112 echo EXPORTS > $output_objdir/$soname.def;
22113 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022114 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022115 $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 +000022116 else
Reid Spencera773bd52006-08-04 18:18:08 +000022117 ld_shlibs_F77=no
22118 fi
22119 ;;
22120
22121 interix3*)
22122 hardcode_direct_F77=no
22123 hardcode_shlibpath_var_F77=no
22124 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22125 export_dynamic_flag_spec_F77='${wl}-E'
22126 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22127 # Instead, shared libraries are loaded at an image base (0x10000000 by
22128 # default) and relocated if they conflict, which is a slow very memory
22129 # consuming and fragmenting process. To avoid this, we pick a random,
22130 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22131 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22132 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'
22133 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'
22134 ;;
22135
22136 linux*)
22137 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22138 tmp_addflag=
22139 case $cc_basename,$host_cpu in
22140 pgcc*) # Portland Group C compiler
22141 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'
22142 tmp_addflag=' $pic_flag'
22143 ;;
22144 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22145 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'
22146 tmp_addflag=' $pic_flag -Mnomain' ;;
22147 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22148 tmp_addflag=' -i_dynamic' ;;
22149 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22150 tmp_addflag=' -i_dynamic -nofor_main' ;;
22151 ifc* | ifort*) # Intel Fortran compiler
22152 tmp_addflag=' -nofor_main' ;;
22153 esac
22154 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22155
22156 if test $supports_anon_versioning = yes; then
22157 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22158 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22159 $echo "local: *; };" >> $output_objdir/$libname.ver~
22160 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22161 fi
22162 else
22163 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022164 fi
22165 ;;
22166
22167 netbsd*)
22168 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22169 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22170 wlarc=
22171 else
22172 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22173 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22174 fi
22175 ;;
22176
Reid Spencera773bd52006-08-04 18:18:08 +000022177 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022178 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22179 ld_shlibs_F77=no
22180 cat <<EOF 1>&2
22181
22182*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22183*** create shared libraries on Solaris systems. Therefore, libtool
22184*** is disabling shared libraries support. We urge you to upgrade GNU
22185*** binutils to release 2.9.1 or newer. Another option is to modify
22186*** your PATH or compiler configuration so that the native linker is
22187*** used, and then restart.
22188
22189EOF
22190 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22191 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22192 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22193 else
22194 ld_shlibs_F77=no
22195 fi
22196 ;;
22197
Reid Spencera773bd52006-08-04 18:18:08 +000022198 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22199 case `$LD -v 2>&1` in
22200 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22201 ld_shlibs_F77=no
22202 cat <<_LT_EOF 1>&2
22203
22204*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22205*** reliably create shared libraries on SCO systems. Therefore, libtool
22206*** is disabling shared libraries support. We urge you to upgrade GNU
22207*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22208*** your PATH or compiler configuration so that the native linker is
22209*** used, and then restart.
22210
22211_LT_EOF
22212 ;;
22213 *)
22214 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22215 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22216 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22217 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22218 else
22219 ld_shlibs_F77=no
22220 fi
22221 ;;
22222 esac
22223 ;;
22224
John Criswell47fdd832003-07-14 16:52:07 +000022225 sunos4*)
22226 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22227 wlarc=
22228 hardcode_direct_F77=yes
22229 hardcode_shlibpath_var_F77=no
22230 ;;
22231
22232 *)
22233 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22234 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22235 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22236 else
22237 ld_shlibs_F77=no
22238 fi
22239 ;;
22240 esac
22241
Reid Spencera773bd52006-08-04 18:18:08 +000022242 if test "$ld_shlibs_F77" = no; then
22243 runpath_var=
22244 hardcode_libdir_flag_spec_F77=
22245 export_dynamic_flag_spec_F77=
22246 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022247 fi
22248 else
22249 # PORTME fill in a description of your system's linker (not GNU ld)
22250 case $host_os in
22251 aix3*)
22252 allow_undefined_flag_F77=unsupported
22253 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022254 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 +000022255 # Note: this linker hardcodes the directories in LIBPATH if there
22256 # are no directories specified by -L.
22257 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022258 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022259 # Neither direct hardcoding nor static linking is supported with a
22260 # broken collect2.
22261 hardcode_direct_F77=unsupported
22262 fi
22263 ;;
22264
22265 aix4* | aix5*)
22266 if test "$host_cpu" = ia64; then
22267 # On IA64, the linker does run time linking by default, so we don't
22268 # have to do anything special.
22269 aix_use_runtimelinking=no
22270 exp_sym_flag='-Bexport'
22271 no_entry_flag=""
22272 else
22273 # If we're using GNU nm, then we don't want the "-C" option.
22274 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22275 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22276 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'
22277 else
22278 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'
22279 fi
22280 aix_use_runtimelinking=no
22281
22282 # Test if we are trying to use run time linking or normal
22283 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22284 # need to do runtime linking.
22285 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22286 for ld_flag in $LDFLAGS; do
22287 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22288 aix_use_runtimelinking=yes
22289 break
22290 fi
22291 done
Reid Spencera773bd52006-08-04 18:18:08 +000022292 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022293 esac
22294
22295 exp_sym_flag='-bexport'
22296 no_entry_flag='-bnoentry'
22297 fi
22298
22299 # When large executables or shared objects are built, AIX ld can
22300 # have problems creating the table of contents. If linking a library
22301 # or program results in "error TOC overflow" add -mminimal-toc to
22302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22304
22305 archive_cmds_F77=''
22306 hardcode_direct_F77=yes
22307 hardcode_libdir_separator_F77=':'
22308 link_all_deplibs_F77=yes
22309
22310 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022311 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022312 # We only want to do this on AIX 4.2 and lower, the check
22313 # below for broken collect2 doesn't work under 4.3+
22314 collect2name=`${CC} -print-prog-name=collect2`
22315 if test -f "$collect2name" && \
22316 strings "$collect2name" | grep resolve_lib_name >/dev/null
22317 then
22318 # We have reworked collect2
22319 hardcode_direct_F77=yes
22320 else
22321 # We have old collect2
22322 hardcode_direct_F77=unsupported
22323 # It fails to find uninstalled libraries when the uninstalled
22324 # path is not listed in the libpath. Setting hardcode_minus_L
22325 # to unsupported forces relinking
22326 hardcode_minus_L_F77=yes
22327 hardcode_libdir_flag_spec_F77='-L$libdir'
22328 hardcode_libdir_separator_F77=
22329 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022330 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022331 esac
22332 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022333 if test "$aix_use_runtimelinking" = yes; then
22334 shared_flag="$shared_flag "'${wl}-G'
22335 fi
John Criswell47fdd832003-07-14 16:52:07 +000022336 else
22337 # not using gcc
22338 if test "$host_cpu" = ia64; then
22339 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22340 # chokes on -Wl,-G. The following line is correct:
22341 shared_flag='-G'
22342 else
Reid Spencera773bd52006-08-04 18:18:08 +000022343 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022344 shared_flag='${wl}-G'
22345 else
22346 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022347 fi
John Criswell47fdd832003-07-14 16:52:07 +000022348 fi
22349 fi
22350
22351 # It seems that -bexpall does not export symbols beginning with
22352 # underscore (_), so it is better to generate a list of symbols to export.
22353 always_export_symbols_F77=yes
22354 if test "$aix_use_runtimelinking" = yes; then
22355 # Warning - without using the other runtime loading flags (-brtl),
22356 # -berok will link without error, but may produce a broken library.
22357 allow_undefined_flag_F77='-berok'
22358 # Determine the default libpath from the value encoded in an empty executable.
22359 cat >conftest.$ac_ext <<_ACEOF
22360 program main
22361
22362 end
22363_ACEOF
22364rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022365if { (ac_try="$ac_link"
22366case "(($ac_try" in
22367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22368 *) ac_try_echo=$ac_try;;
22369esac
22370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22371 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022372 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022373 grep -v '^ *+' conftest.er1 >conftest.err
22374 rm -f conftest.er1
22375 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022377 (exit $ac_status); } &&
22378 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22379 { (case "(($ac_try" in
22380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381 *) ac_try_echo=$ac_try;;
22382esac
22383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384 (eval "$ac_try") 2>&5
22385 ac_status=$?
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); }; } &&
22388 { ac_try='test -s conftest$ac_exeext'
22389 { (case "(($ac_try" in
22390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391 *) ac_try_echo=$ac_try;;
22392esac
22393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394 (eval "$ac_try") 2>&5
22395 ac_status=$?
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022398
22399aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22400}'`
22401# Check for a 64-bit object if we didn't find anything.
22402if 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; }
22403}'`; fi
22404else
22405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022406sed 's/^/| /' conftest.$ac_ext >&5
22407
Reid Spencera773bd52006-08-04 18:18:08 +000022408
John Criswell47fdd832003-07-14 16:52:07 +000022409fi
Reid Spencera773bd52006-08-04 18:18:08 +000022410
Bill Wendlingebcceee2009-04-18 11:20:33 +000022411rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022412 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022413if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22414
22415 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022416 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 +000022417 else
22418 if test "$host_cpu" = ia64; then
22419 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22420 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022421 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 +000022422 else
22423 # Determine the default libpath from the value encoded in an empty executable.
22424 cat >conftest.$ac_ext <<_ACEOF
22425 program main
22426
22427 end
22428_ACEOF
22429rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022430if { (ac_try="$ac_link"
22431case "(($ac_try" in
22432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22433 *) ac_try_echo=$ac_try;;
22434esac
22435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22436 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022437 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022438 grep -v '^ *+' conftest.er1 >conftest.err
22439 rm -f conftest.er1
22440 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022442 (exit $ac_status); } &&
22443 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22444 { (case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22447esac
22448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_try") 2>&5
22450 ac_status=$?
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); }; } &&
22453 { ac_try='test -s conftest$ac_exeext'
22454 { (case "(($ac_try" in
22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22457esac
22458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459 (eval "$ac_try") 2>&5
22460 ac_status=$?
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022463
22464aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22465}'`
22466# Check for a 64-bit object if we didn't find anything.
22467if 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; }
22468}'`; fi
22469else
22470 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022471sed 's/^/| /' conftest.$ac_ext >&5
22472
Reid Spencera773bd52006-08-04 18:18:08 +000022473
John Criswell47fdd832003-07-14 16:52:07 +000022474fi
Reid Spencera773bd52006-08-04 18:18:08 +000022475
Bill Wendlingebcceee2009-04-18 11:20:33 +000022476rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022477 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022478if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22479
22480 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22481 # Warning - without using the other run time loading flags,
22482 # -berok will link without error, but may produce a broken library.
22483 no_undefined_flag_F77=' ${wl}-bernotok'
22484 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022485 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022486 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022487 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022488 # This is similar to how AIX traditionally builds its shared libraries.
22489 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 +000022490 fi
22491 fi
22492 ;;
22493
22494 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022495 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 +000022496 hardcode_libdir_flag_spec_F77='-L$libdir'
22497 hardcode_minus_L_F77=yes
22498 # see comment about different semantics on the GNU ld section
22499 ld_shlibs_F77=no
22500 ;;
22501
Reid Spencer2706f8c2004-09-19 23:53:36 +000022502 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022503 export_dynamic_flag_spec_F77=-rdynamic
22504 ;;
22505
22506 cygwin* | mingw* | pw32*)
22507 # When not using gcc, we currently assume that we are using
22508 # Microsoft Visual C++.
22509 # hardcode_libdir_flag_spec is actually meaningless, as there is
22510 # no search path for DLLs.
22511 hardcode_libdir_flag_spec_F77=' '
22512 allow_undefined_flag_F77=unsupported
22513 # Tell ltmain to make .lib files, not .a files.
22514 libext=lib
22515 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022516 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022517 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022518 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 +000022519 # The linker will automatically build a .lib file if we build a DLL.
22520 old_archive_From_new_cmds_F77='true'
22521 # FIXME: Should let the user specify the lib program.
22522 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022523 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022524 enable_shared_with_static_runtimes_F77=yes
22525 ;;
22526
22527 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022528 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022529 rhapsody* | darwin1.[012])
22530 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22531 ;;
22532 *) # Darwin 1.3 on
22533 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22534 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22535 else
22536 case ${MACOSX_DEPLOYMENT_TARGET} in
22537 10.[012])
22538 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22539 ;;
22540 10.*)
22541 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22542 ;;
22543 esac
22544 fi
22545 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022546 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022547 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022548 hardcode_direct_F77=no
22549 hardcode_automatic_F77=yes
22550 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022551 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022552 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022553 if test "$GCC" = yes ; then
22554 output_verbose_link_cmd='echo'
22555 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22556 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022557 # 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 +000022558 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}'
22559 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 +000022560 else
Reid Spencera773bd52006-08-04 18:18:08 +000022561 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022562 xlc*)
22563 output_verbose_link_cmd='echo'
22564 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22565 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022566 # 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 +000022567 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}'
22568 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 +000022569 ;;
22570 *)
22571 ld_shlibs_F77=no
22572 ;;
22573 esac
John Criswell47fdd832003-07-14 16:52:07 +000022574 fi
22575 ;;
22576
22577 dgux*)
22578 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22579 hardcode_libdir_flag_spec_F77='-L$libdir'
22580 hardcode_shlibpath_var_F77=no
22581 ;;
22582
22583 freebsd1*)
22584 ld_shlibs_F77=no
22585 ;;
22586
22587 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22588 # support. Future versions do this automatically, but an explicit c++rt0.o
22589 # does not break anything, and helps significantly (at the cost of a little
22590 # extra space).
22591 freebsd2.2*)
22592 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22593 hardcode_libdir_flag_spec_F77='-R$libdir'
22594 hardcode_direct_F77=yes
22595 hardcode_shlibpath_var_F77=no
22596 ;;
22597
22598 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22599 freebsd2*)
22600 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22601 hardcode_direct_F77=yes
22602 hardcode_minus_L_F77=yes
22603 hardcode_shlibpath_var_F77=no
22604 ;;
22605
22606 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022607 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022608 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22609 hardcode_libdir_flag_spec_F77='-R$libdir'
22610 hardcode_direct_F77=yes
22611 hardcode_shlibpath_var_F77=no
22612 ;;
22613
22614 hpux9*)
22615 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022616 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 +000022617 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022618 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 +000022619 fi
22620 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22621 hardcode_libdir_separator_F77=:
22622 hardcode_direct_F77=yes
22623
22624 # hardcode_minus_L: Not really in the search PATH,
22625 # but as the default location of the library.
22626 hardcode_minus_L_F77=yes
22627 export_dynamic_flag_spec_F77='${wl}-E'
22628 ;;
22629
Reid Spencera773bd52006-08-04 18:18:08 +000022630 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022631 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022632 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22633 else
22634 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22635 fi
22636 if test "$with_gnu_ld" = no; then
22637 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22638 hardcode_libdir_separator_F77=:
22639
22640 hardcode_direct_F77=yes
22641 export_dynamic_flag_spec_F77='${wl}-E'
22642
22643 # hardcode_minus_L: Not really in the search PATH,
22644 # but as the default location of the library.
22645 hardcode_minus_L_F77=yes
22646 fi
22647 ;;
22648
22649 hpux11*)
22650 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22651 case $host_cpu in
22652 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022653 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22654 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022655 ia64*)
22656 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22657 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022658 *)
22659 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22660 ;;
22661 esac
22662 else
Reid Spencera773bd52006-08-04 18:18:08 +000022663 case $host_cpu in
22664 hppa*64*)
22665 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22666 ;;
22667 ia64*)
22668 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022669 ;;
22670 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022671 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 +000022672 ;;
22673 esac
22674 fi
22675 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022676 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22677 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022678
Reid Spencera773bd52006-08-04 18:18:08 +000022679 case $host_cpu in
22680 hppa*64*|ia64*)
22681 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22682 hardcode_direct_F77=no
22683 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022684 ;;
22685 *)
John Criswell47fdd832003-07-14 16:52:07 +000022686 hardcode_direct_F77=yes
22687 export_dynamic_flag_spec_F77='${wl}-E'
22688
22689 # hardcode_minus_L: Not really in the search PATH,
22690 # but as the default location of the library.
22691 hardcode_minus_L_F77=yes
22692 ;;
22693 esac
22694 fi
22695 ;;
22696
22697 irix5* | irix6* | nonstopux*)
22698 if test "$GCC" = yes; then
22699 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'
22700 else
22701 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'
22702 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22703 fi
22704 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22705 hardcode_libdir_separator_F77=:
22706 link_all_deplibs_F77=yes
22707 ;;
22708
22709 netbsd*)
22710 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22711 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22712 else
22713 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22714 fi
22715 hardcode_libdir_flag_spec_F77='-R$libdir'
22716 hardcode_direct_F77=yes
22717 hardcode_shlibpath_var_F77=no
22718 ;;
22719
22720 newsos6)
22721 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22722 hardcode_direct_F77=yes
22723 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22724 hardcode_libdir_separator_F77=:
22725 hardcode_shlibpath_var_F77=no
22726 ;;
22727
22728 openbsd*)
22729 hardcode_direct_F77=yes
22730 hardcode_shlibpath_var_F77=no
22731 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22732 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022733 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 +000022734 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22735 export_dynamic_flag_spec_F77='${wl}-E'
22736 else
22737 case $host_os in
22738 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22739 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22740 hardcode_libdir_flag_spec_F77='-R$libdir'
22741 ;;
22742 *)
22743 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22744 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22745 ;;
22746 esac
22747 fi
22748 ;;
22749
22750 os2*)
22751 hardcode_libdir_flag_spec_F77='-L$libdir'
22752 hardcode_minus_L_F77=yes
22753 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022754 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 +000022755 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22756 ;;
22757
22758 osf3*)
22759 if test "$GCC" = yes; then
22760 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22761 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'
22762 else
22763 allow_undefined_flag_F77=' -expect_unresolved \*'
22764 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'
22765 fi
22766 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22767 hardcode_libdir_separator_F77=:
22768 ;;
22769
22770 osf4* | osf5*) # as osf3* with the addition of -msym flag
22771 if test "$GCC" = yes; then
22772 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22773 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'
22774 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22775 else
22776 allow_undefined_flag_F77=' -expect_unresolved \*'
22777 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 +000022778 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 +000022779 $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 +000022780
John Criswell47fdd832003-07-14 16:52:07 +000022781 # Both c and cxx compiler support -rpath directly
22782 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22783 fi
22784 hardcode_libdir_separator_F77=:
22785 ;;
22786
John Criswell47fdd832003-07-14 16:52:07 +000022787 solaris*)
22788 no_undefined_flag_F77=' -z text'
22789 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022790 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022791 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022792 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22793 $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 +000022794 else
Reid Spencera773bd52006-08-04 18:18:08 +000022795 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022796 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022797 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22798 $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 +000022799 fi
22800 hardcode_libdir_flag_spec_F77='-R$libdir'
22801 hardcode_shlibpath_var_F77=no
22802 case $host_os in
22803 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022804 *)
22805 # The compiler driver will combine linker options so we
22806 # cannot just pass the convience library names through
22807 # without $wl, iff we do not link with $LD.
22808 # Luckily, gcc supports the same syntax we need for Sun Studio.
22809 # Supported since Solaris 2.6 (maybe 2.5.1?)
22810 case $wlarc in
22811 '')
22812 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22813 *)
22814 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' ;;
22815 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022816 esac
22817 link_all_deplibs_F77=yes
22818 ;;
22819
22820 sunos4*)
22821 if test "x$host_vendor" = xsequent; then
22822 # Use $CC to link under sequent, because it throws in some extra .o
22823 # files that make .init and .fini sections work.
22824 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22825 else
22826 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22827 fi
22828 hardcode_libdir_flag_spec_F77='-L$libdir'
22829 hardcode_direct_F77=yes
22830 hardcode_minus_L_F77=yes
22831 hardcode_shlibpath_var_F77=no
22832 ;;
22833
22834 sysv4)
22835 case $host_vendor in
22836 sni)
22837 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22838 hardcode_direct_F77=yes # is this really true???
22839 ;;
22840 siemens)
22841 ## LD is ld it makes a PLAMLIB
22842 ## CC just makes a GrossModule.
22843 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22844 reload_cmds_F77='$CC -r -o $output$reload_objs'
22845 hardcode_direct_F77=no
22846 ;;
22847 motorola)
22848 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22849 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22850 ;;
22851 esac
22852 runpath_var='LD_RUN_PATH'
22853 hardcode_shlibpath_var_F77=no
22854 ;;
22855
22856 sysv4.3*)
22857 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22858 hardcode_shlibpath_var_F77=no
22859 export_dynamic_flag_spec_F77='-Bexport'
22860 ;;
22861
22862 sysv4*MP*)
22863 if test -d /usr/nec; then
22864 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22865 hardcode_shlibpath_var_F77=no
22866 runpath_var=LD_RUN_PATH
22867 hardcode_runpath_var=yes
22868 ld_shlibs_F77=yes
22869 fi
22870 ;;
22871
Reid Spencera773bd52006-08-04 18:18:08 +000022872 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22873 no_undefined_flag_F77='${wl}-z,text'
22874 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022875 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022876 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022877
John Criswell47fdd832003-07-14 16:52:07 +000022878 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022879 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22880 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 +000022881 else
Reid Spencera773bd52006-08-04 18:18:08 +000022882 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22883 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 +000022884 fi
John Criswell47fdd832003-07-14 16:52:07 +000022885 ;;
22886
Reid Spencera773bd52006-08-04 18:18:08 +000022887 sysv5* | sco3.2v5* | sco5v6*)
22888 # Note: We can NOT use -z defs as we might desire, because we do not
22889 # link with -lc, and that would cause any symbols used from libc to
22890 # always be unresolved, which means just about no library would
22891 # ever link correctly. If we're not using GNU ld we use -z text
22892 # though, which does catch some bad symbols but isn't as heavy-handed
22893 # as -z defs.
22894 no_undefined_flag_F77='${wl}-z,text'
22895 allow_undefined_flag_F77='${wl}-z,nodefs'
22896 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022897 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022898 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22899 hardcode_libdir_separator_F77=':'
22900 link_all_deplibs_F77=yes
22901 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022902 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022903
22904 if test "$GCC" = yes; then
22905 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22906 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22907 else
22908 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22909 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22910 fi
John Criswell47fdd832003-07-14 16:52:07 +000022911 ;;
22912
22913 uts4*)
22914 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22915 hardcode_libdir_flag_spec_F77='-L$libdir'
22916 hardcode_shlibpath_var_F77=no
22917 ;;
22918
22919 *)
22920 ld_shlibs_F77=no
22921 ;;
22922 esac
22923 fi
22924
Reid Spencera773bd52006-08-04 18:18:08 +000022925{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22926echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022927test "$ld_shlibs_F77" = no && can_build_shared=no
22928
John Criswell47fdd832003-07-14 16:52:07 +000022929#
22930# Do we need to explicitly link libc?
22931#
22932case "x$archive_cmds_need_lc_F77" in
22933x|xyes)
22934 # Assume -lc should be added
22935 archive_cmds_need_lc_F77=yes
22936
22937 if test "$enable_shared" = yes && test "$GCC" = yes; then
22938 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022939 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022940 # FIXME: we may have to deal with multi-command sequences.
22941 ;;
22942 '$CC '*)
22943 # Test whether the compiler implicitly links with -lc since on some
22944 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22945 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022946 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22947echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022948 $rm conftest*
22949 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22950
22951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22952 (eval $ac_compile) 2>&5
22953 ac_status=$?
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); } 2>conftest.err; then
22956 soname=conftest
22957 lib=conftest
22958 libobjs=conftest.$ac_objext
22959 deplibs=
22960 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022961 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022962 compiler_flags=-v
22963 linker_flags=-v
22964 verstring=
22965 output_objdir=.
22966 libname=conftest
22967 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22968 allow_undefined_flag_F77=
22969 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22970 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22971 ac_status=$?
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); }
22974 then
22975 archive_cmds_need_lc_F77=no
22976 else
22977 archive_cmds_need_lc_F77=yes
22978 fi
22979 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22980 else
22981 cat conftest.err 1>&5
22982 fi
22983 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022984 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22985echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022986 ;;
22987 esac
22988 fi
22989 ;;
22990esac
22991
Reid Spencera773bd52006-08-04 18:18:08 +000022992{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22993echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022994library_names_spec=
22995libname_spec='lib$name'
22996soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022997shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022998postinstall_cmds=
22999postuninstall_cmds=
23000finish_cmds=
23001finish_eval=
23002shlibpath_var=
23003shlibpath_overrides_runpath=unknown
23004version_type=none
23005dynamic_linker="$host_os ld.so"
23006sys_lib_dlsearch_path_spec="/lib /usr/lib"
23007if test "$GCC" = yes; then
23008 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23009 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23010 # if the path contains ";" then we assume it to be the separator
23011 # otherwise default to the standard path separator (i.e. ":") - it is
23012 # assumed that no part of a normal pathname contains ";" but that should
23013 # okay in the real world where ";" in dirpaths is itself problematic.
23014 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23015 else
23016 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23017 fi
23018else
23019 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23020fi
23021need_lib_prefix=unknown
23022hardcode_into_libs=no
23023
23024# when you set need_version to no, make sure it does not cause -set_version
23025# flags to be left without arguments
23026need_version=unknown
23027
23028case $host_os in
23029aix3*)
23030 version_type=linux
23031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23032 shlibpath_var=LIBPATH
23033
23034 # AIX 3 has no versioning support, so we append a major version to the name.
23035 soname_spec='${libname}${release}${shared_ext}$major'
23036 ;;
23037
23038aix4* | aix5*)
23039 version_type=linux
23040 need_lib_prefix=no
23041 need_version=no
23042 hardcode_into_libs=yes
23043 if test "$host_cpu" = ia64; then
23044 # AIX 5 supports IA64
23045 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23046 shlibpath_var=LD_LIBRARY_PATH
23047 else
23048 # With GCC up to 2.95.x, collect2 would create an import file
23049 # for dependence libraries. The import file would start with
23050 # the line `#! .'. This would cause the generated library to
23051 # depend on `.', always an invalid library. This was fixed in
23052 # development snapshots of GCC prior to 3.0.
23053 case $host_os in
23054 aix4 | aix4.[01] | aix4.[01].*)
23055 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23056 echo ' yes '
23057 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23058 :
23059 else
23060 can_build_shared=no
23061 fi
23062 ;;
23063 esac
23064 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23065 # soname into executable. Probably we can add versioning support to
23066 # collect2, so additional links can be useful in future.
23067 if test "$aix_use_runtimelinking" = yes; then
23068 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23069 # instead of lib<name>.a to let people know that these are not
23070 # typical AIX shared libraries.
23071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23072 else
23073 # We preserve .a as extension for shared libraries through AIX4.2
23074 # and later when we are not doing run time linking.
23075 library_names_spec='${libname}${release}.a $libname.a'
23076 soname_spec='${libname}${release}${shared_ext}$major'
23077 fi
23078 shlibpath_var=LIBPATH
23079 fi
23080 ;;
23081
23082amigaos*)
23083 library_names_spec='$libname.ixlibrary $libname.a'
23084 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023085 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 +000023086 ;;
23087
23088beos*)
23089 library_names_spec='${libname}${shared_ext}'
23090 dynamic_linker="$host_os ld.so"
23091 shlibpath_var=LIBRARY_PATH
23092 ;;
23093
Reid Spencer2706f8c2004-09-19 23:53:36 +000023094bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023095 version_type=linux
23096 need_version=no
23097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23098 soname_spec='${libname}${release}${shared_ext}$major'
23099 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23100 shlibpath_var=LD_LIBRARY_PATH
23101 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23102 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23103 # the default ld.so.conf also contains /usr/contrib/lib and
23104 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23105 # libtool to hard-code these into programs
23106 ;;
23107
23108cygwin* | mingw* | pw32*)
23109 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000023110 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023111 need_version=no
23112 need_lib_prefix=no
23113
23114 case $GCC,$host_os in
23115 yes,cygwin* | yes,mingw* | yes,pw32*)
23116 library_names_spec='$libname.dll.a'
23117 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023118 postinstall_cmds='base_file=`basename \${file}`~
23119 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23120 dldir=$destdir/`dirname \$dlpath`~
23121 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023122 $install_prog $dir/$dlname \$dldir/$dlname~
23123 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023124 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23125 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023126 $rm \$dlpath'
23127 shlibpath_overrides_runpath=yes
23128
23129 case $host_os in
23130 cygwin*)
23131 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23132 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 +000023133 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023134 ;;
23135 mingw*)
23136 # MinGW DLLs use traditional 'lib' prefix
23137 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23138 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23139 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23140 # It is most probably a Windows format PATH printed by
23141 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23142 # path with ; separators, and with drive letters. We can handle the
23143 # drive letters (cygwin fileutils understands them), so leave them,
23144 # especially as we might pass files found there to a mingw objdump,
23145 # which wouldn't understand a cygwinified path. Ahh.
23146 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23147 else
23148 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23149 fi
23150 ;;
23151 pw32*)
23152 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023153 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 +000023154 ;;
23155 esac
23156 ;;
23157
23158 *)
23159 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23160 ;;
23161 esac
23162 dynamic_linker='Win32 ld.exe'
23163 # FIXME: first we should search . and the directory the executable is in
23164 shlibpath_var=PATH
23165 ;;
23166
23167darwin* | rhapsody*)
23168 dynamic_linker="$host_os dyld"
23169 version_type=darwin
23170 need_lib_prefix=no
23171 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023172 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023173 soname_spec='${libname}${release}${major}$shared_ext'
23174 shlibpath_overrides_runpath=yes
23175 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023176 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023177 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023178 if test "$GCC" = yes; then
23179 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"`
23180 else
23181 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023182 fi
23183 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23184 ;;
23185
23186dgux*)
23187 version_type=linux
23188 need_lib_prefix=no
23189 need_version=no
23190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23191 soname_spec='${libname}${release}${shared_ext}$major'
23192 shlibpath_var=LD_LIBRARY_PATH
23193 ;;
23194
23195freebsd1*)
23196 dynamic_linker=no
23197 ;;
23198
Reid Spencer2706f8c2004-09-19 23:53:36 +000023199kfreebsd*-gnu)
23200 version_type=linux
23201 need_lib_prefix=no
23202 need_version=no
23203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23204 soname_spec='${libname}${release}${shared_ext}$major'
23205 shlibpath_var=LD_LIBRARY_PATH
23206 shlibpath_overrides_runpath=no
23207 hardcode_into_libs=yes
23208 dynamic_linker='GNU ld.so'
23209 ;;
23210
Reid Spencera773bd52006-08-04 18:18:08 +000023211freebsd* | dragonfly*)
23212 # DragonFly does not have aout. When/if they implement a new
23213 # versioning mechanism, adjust this.
23214 if test -x /usr/bin/objformat; then
23215 objformat=`/usr/bin/objformat`
23216 else
23217 case $host_os in
23218 freebsd[123]*) objformat=aout ;;
23219 *) objformat=elf ;;
23220 esac
23221 fi
John Criswell47fdd832003-07-14 16:52:07 +000023222 version_type=freebsd-$objformat
23223 case $version_type in
23224 freebsd-elf*)
23225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23226 need_version=no
23227 need_lib_prefix=no
23228 ;;
23229 freebsd-*)
23230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23231 need_version=yes
23232 ;;
23233 esac
23234 shlibpath_var=LD_LIBRARY_PATH
23235 case $host_os in
23236 freebsd2*)
23237 shlibpath_overrides_runpath=yes
23238 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023239 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023240 shlibpath_overrides_runpath=yes
23241 hardcode_into_libs=yes
23242 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023243 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23244 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023245 shlibpath_overrides_runpath=no
23246 hardcode_into_libs=yes
23247 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023248 freebsd*) # from 4.6 on
23249 shlibpath_overrides_runpath=yes
23250 hardcode_into_libs=yes
23251 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023252 esac
23253 ;;
23254
23255gnu*)
23256 version_type=linux
23257 need_lib_prefix=no
23258 need_version=no
23259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23260 soname_spec='${libname}${release}${shared_ext}$major'
23261 shlibpath_var=LD_LIBRARY_PATH
23262 hardcode_into_libs=yes
23263 ;;
23264
23265hpux9* | hpux10* | hpux11*)
23266 # Give a soname corresponding to the major version so that dld.sl refuses to
23267 # link against other versions.
23268 version_type=sunos
23269 need_lib_prefix=no
23270 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023271 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023272 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023273 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023274 hardcode_into_libs=yes
23275 dynamic_linker="$host_os dld.so"
23276 shlibpath_var=LD_LIBRARY_PATH
23277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23279 soname_spec='${libname}${release}${shared_ext}$major'
23280 if test "X$HPUX_IA64_MODE" = X32; then
23281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23282 else
23283 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23284 fi
23285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23286 ;;
23287 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023288 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023289 hardcode_into_libs=yes
23290 dynamic_linker="$host_os dld.sl"
23291 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23294 soname_spec='${libname}${release}${shared_ext}$major'
23295 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23297 ;;
23298 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023299 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023300 dynamic_linker="$host_os dld.sl"
23301 shlibpath_var=SHLIB_PATH
23302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23304 soname_spec='${libname}${release}${shared_ext}$major'
23305 ;;
23306 esac
23307 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23308 postinstall_cmds='chmod 555 $lib'
23309 ;;
23310
Reid Spencera773bd52006-08-04 18:18:08 +000023311interix3*)
23312 version_type=linux
23313 need_lib_prefix=no
23314 need_version=no
23315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23316 soname_spec='${libname}${release}${shared_ext}$major'
23317 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23318 shlibpath_var=LD_LIBRARY_PATH
23319 shlibpath_overrides_runpath=no
23320 hardcode_into_libs=yes
23321 ;;
23322
John Criswell47fdd832003-07-14 16:52:07 +000023323irix5* | irix6* | nonstopux*)
23324 case $host_os in
23325 nonstopux*) version_type=nonstopux ;;
23326 *)
23327 if test "$lt_cv_prog_gnu_ld" = yes; then
23328 version_type=linux
23329 else
23330 version_type=irix
23331 fi ;;
23332 esac
23333 need_lib_prefix=no
23334 need_version=no
23335 soname_spec='${libname}${release}${shared_ext}$major'
23336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23337 case $host_os in
23338 irix5* | nonstopux*)
23339 libsuff= shlibsuff=
23340 ;;
23341 *)
23342 case $LD in # libtool.m4 will add one of these switches to LD
23343 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23344 libsuff= shlibsuff= libmagic=32-bit;;
23345 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23346 libsuff=32 shlibsuff=N32 libmagic=N32;;
23347 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23348 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23349 *) libsuff= shlibsuff= libmagic=never-match;;
23350 esac
23351 ;;
23352 esac
23353 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23354 shlibpath_overrides_runpath=no
23355 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23356 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23357 hardcode_into_libs=yes
23358 ;;
23359
23360# No shared lib support for Linux oldld, aout, or coff.
23361linux*oldld* | linux*aout* | linux*coff*)
23362 dynamic_linker=no
23363 ;;
23364
23365# This must be Linux ELF.
23366linux*)
23367 version_type=linux
23368 need_lib_prefix=no
23369 need_version=no
23370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23371 soname_spec='${libname}${release}${shared_ext}$major'
23372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23373 shlibpath_var=LD_LIBRARY_PATH
23374 shlibpath_overrides_runpath=no
23375 # This implies no fast_install, which is unacceptable.
23376 # Some rework will be needed to allow for fast_install
23377 # before this can be enabled.
23378 hardcode_into_libs=yes
23379
Reid Spencer2706f8c2004-09-19 23:53:36 +000023380 # Append ld.so.conf contents to the search path
23381 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023382 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 +000023383 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23384 fi
23385
John Criswell47fdd832003-07-14 16:52:07 +000023386 # We used to test for /lib/ld.so.1 and disable shared libraries on
23387 # powerpc, because MkLinux only supported shared libraries with the
23388 # GNU dynamic linker. Since this was broken with cross compilers,
23389 # most powerpc-linux boxes support dynamic linking these days and
23390 # people can always --disable-shared, the test was removed, and we
23391 # assume the GNU/Linux dynamic linker is in use.
23392 dynamic_linker='GNU/Linux ld.so'
23393 ;;
23394
Reid Spencer2706f8c2004-09-19 23:53:36 +000023395knetbsd*-gnu)
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 shlibpath_var=LD_LIBRARY_PATH
23402 shlibpath_overrides_runpath=no
23403 hardcode_into_libs=yes
23404 dynamic_linker='GNU ld.so'
23405 ;;
23406
John Criswell47fdd832003-07-14 16:52:07 +000023407netbsd*)
23408 version_type=sunos
23409 need_lib_prefix=no
23410 need_version=no
23411 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23414 dynamic_linker='NetBSD (a.out) ld.so'
23415 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023417 soname_spec='${libname}${release}${shared_ext}$major'
23418 dynamic_linker='NetBSD ld.elf_so'
23419 fi
23420 shlibpath_var=LD_LIBRARY_PATH
23421 shlibpath_overrides_runpath=yes
23422 hardcode_into_libs=yes
23423 ;;
23424
23425newsos6)
23426 version_type=linux
23427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23428 shlibpath_var=LD_LIBRARY_PATH
23429 shlibpath_overrides_runpath=yes
23430 ;;
23431
Reid Spencer2706f8c2004-09-19 23:53:36 +000023432nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023433 version_type=linux
23434 need_lib_prefix=no
23435 need_version=no
23436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23437 soname_spec='${libname}${release}${shared_ext}$major'
23438 shlibpath_var=LD_LIBRARY_PATH
23439 shlibpath_overrides_runpath=yes
23440 ;;
23441
23442openbsd*)
23443 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023444 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023445 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023446 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23447 case $host_os in
23448 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23449 *) need_version=no ;;
23450 esac
John Criswell47fdd832003-07-14 16:52:07 +000023451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23453 shlibpath_var=LD_LIBRARY_PATH
23454 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23455 case $host_os in
23456 openbsd2.[89] | openbsd2.[89].*)
23457 shlibpath_overrides_runpath=no
23458 ;;
23459 *)
23460 shlibpath_overrides_runpath=yes
23461 ;;
23462 esac
23463 else
23464 shlibpath_overrides_runpath=yes
23465 fi
23466 ;;
23467
23468os2*)
23469 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023470 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023471 need_lib_prefix=no
23472 library_names_spec='$libname${shared_ext} $libname.a'
23473 dynamic_linker='OS/2 ld.exe'
23474 shlibpath_var=LIBPATH
23475 ;;
23476
23477osf3* | osf4* | osf5*)
23478 version_type=osf
23479 need_lib_prefix=no
23480 need_version=no
23481 soname_spec='${libname}${release}${shared_ext}$major'
23482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23483 shlibpath_var=LD_LIBRARY_PATH
23484 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23485 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23486 ;;
23487
John Criswell47fdd832003-07-14 16:52:07 +000023488solaris*)
23489 version_type=linux
23490 need_lib_prefix=no
23491 need_version=no
23492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23493 soname_spec='${libname}${release}${shared_ext}$major'
23494 shlibpath_var=LD_LIBRARY_PATH
23495 shlibpath_overrides_runpath=yes
23496 hardcode_into_libs=yes
23497 # ldd complains unless libraries are executable
23498 postinstall_cmds='chmod +x $lib'
23499 ;;
23500
23501sunos4*)
23502 version_type=sunos
23503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23504 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23505 shlibpath_var=LD_LIBRARY_PATH
23506 shlibpath_overrides_runpath=yes
23507 if test "$with_gnu_ld" = yes; then
23508 need_lib_prefix=no
23509 fi
23510 need_version=yes
23511 ;;
23512
Reid Spencera773bd52006-08-04 18:18:08 +000023513sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023514 version_type=linux
23515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23516 soname_spec='${libname}${release}${shared_ext}$major'
23517 shlibpath_var=LD_LIBRARY_PATH
23518 case $host_vendor in
23519 sni)
23520 shlibpath_overrides_runpath=no
23521 need_lib_prefix=no
23522 export_dynamic_flag_spec='${wl}-Blargedynsym'
23523 runpath_var=LD_RUN_PATH
23524 ;;
23525 siemens)
23526 need_lib_prefix=no
23527 ;;
23528 motorola)
23529 need_lib_prefix=no
23530 need_version=no
23531 shlibpath_overrides_runpath=no
23532 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23533 ;;
23534 esac
23535 ;;
23536
23537sysv4*MP*)
23538 if test -d /usr/nec ;then
23539 version_type=linux
23540 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23541 soname_spec='$libname${shared_ext}.$major'
23542 shlibpath_var=LD_LIBRARY_PATH
23543 fi
23544 ;;
23545
Reid Spencera773bd52006-08-04 18:18:08 +000023546sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23547 version_type=freebsd-elf
23548 need_lib_prefix=no
23549 need_version=no
23550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23551 soname_spec='${libname}${release}${shared_ext}$major'
23552 shlibpath_var=LD_LIBRARY_PATH
23553 hardcode_into_libs=yes
23554 if test "$with_gnu_ld" = yes; then
23555 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23556 shlibpath_overrides_runpath=no
23557 else
23558 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23559 shlibpath_overrides_runpath=yes
23560 case $host_os in
23561 sco3.2v5*)
23562 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23563 ;;
23564 esac
23565 fi
23566 sys_lib_dlsearch_path_spec='/usr/lib'
23567 ;;
23568
John Criswell47fdd832003-07-14 16:52:07 +000023569uts4*)
23570 version_type=linux
23571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23572 soname_spec='${libname}${release}${shared_ext}$major'
23573 shlibpath_var=LD_LIBRARY_PATH
23574 ;;
23575
23576*)
23577 dynamic_linker=no
23578 ;;
23579esac
Reid Spencera773bd52006-08-04 18:18:08 +000023580{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23581echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023582test "$dynamic_linker" = no && can_build_shared=no
23583
Reid Spencera773bd52006-08-04 18:18:08 +000023584variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23585if test "$GCC" = yes; then
23586 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23587fi
23588
23589{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23590echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023591hardcode_action_F77=
23592if test -n "$hardcode_libdir_flag_spec_F77" || \
23593 test -n "$runpath_var_F77" || \
23594 test "X$hardcode_automatic_F77" = "Xyes" ; then
23595
23596 # We can hardcode non-existant directories.
23597 if test "$hardcode_direct_F77" != no &&
23598 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23599 # have to relink, otherwise we might link with an installed library
23600 # when we should be linking with a yet-to-be-installed one
23601 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23602 test "$hardcode_minus_L_F77" != no; then
23603 # Linking always hardcodes the temporary library directory.
23604 hardcode_action_F77=relink
23605 else
23606 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23607 hardcode_action_F77=immediate
23608 fi
23609else
23610 # We cannot hardcode anything, or else we can only hardcode existing
23611 # directories.
23612 hardcode_action_F77=unsupported
23613fi
Reid Spencera773bd52006-08-04 18:18:08 +000023614{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23615echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023616
23617if test "$hardcode_action_F77" = relink; then
23618 # Fast installation is not supported
23619 enable_fast_install=no
23620elif test "$shlibpath_overrides_runpath" = yes ||
23621 test "$enable_shared" = no; then
23622 # Fast installation is not necessary
23623 enable_fast_install=needless
23624fi
23625
John Criswell47fdd832003-07-14 16:52:07 +000023626
23627# The else clause should only fire when bootstrapping the
23628# libtool distribution, otherwise you forgot to ship ltmain.sh
23629# with your package, and you will get complaints that there are
23630# no rules to generate ltmain.sh.
23631if test -f "$ltmain"; then
23632 # See if we are running on zsh, and set the options which allow our commands through
23633 # without removal of \ escapes.
23634 if test -n "${ZSH_VERSION+set}" ; then
23635 setopt NO_GLOB_SUBST
23636 fi
23637 # Now quote all the things that may contain metacharacters while being
23638 # careful not to overquote the AC_SUBSTed values. We take copies of the
23639 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023640 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 +000023641 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023642 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23643 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23644 deplibs_check_method reload_flag reload_cmds need_locks \
23645 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23646 lt_cv_sys_global_symbol_to_c_name_address \
23647 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23648 old_postinstall_cmds old_postuninstall_cmds \
23649 compiler_F77 \
23650 CC_F77 \
23651 LD_F77 \
23652 lt_prog_compiler_wl_F77 \
23653 lt_prog_compiler_pic_F77 \
23654 lt_prog_compiler_static_F77 \
23655 lt_prog_compiler_no_builtin_flag_F77 \
23656 export_dynamic_flag_spec_F77 \
23657 thread_safe_flag_spec_F77 \
23658 whole_archive_flag_spec_F77 \
23659 enable_shared_with_static_runtimes_F77 \
23660 old_archive_cmds_F77 \
23661 old_archive_from_new_cmds_F77 \
23662 predep_objects_F77 \
23663 postdep_objects_F77 \
23664 predeps_F77 \
23665 postdeps_F77 \
23666 compiler_lib_search_path_F77 \
23667 archive_cmds_F77 \
23668 archive_expsym_cmds_F77 \
23669 postinstall_cmds_F77 \
23670 postuninstall_cmds_F77 \
23671 old_archive_from_expsyms_cmds_F77 \
23672 allow_undefined_flag_F77 \
23673 no_undefined_flag_F77 \
23674 export_symbols_cmds_F77 \
23675 hardcode_libdir_flag_spec_F77 \
23676 hardcode_libdir_flag_spec_ld_F77 \
23677 hardcode_libdir_separator_F77 \
23678 hardcode_automatic_F77 \
23679 module_cmds_F77 \
23680 module_expsym_cmds_F77 \
23681 lt_cv_prog_compiler_c_o_F77 \
23682 exclude_expsyms_F77 \
23683 include_expsyms_F77; do
23684
23685 case $var in
23686 old_archive_cmds_F77 | \
23687 old_archive_from_new_cmds_F77 | \
23688 archive_cmds_F77 | \
23689 archive_expsym_cmds_F77 | \
23690 module_cmds_F77 | \
23691 module_expsym_cmds_F77 | \
23692 old_archive_from_expsyms_cmds_F77 | \
23693 export_symbols_cmds_F77 | \
23694 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23695 postinstall_cmds | postuninstall_cmds | \
23696 old_postinstall_cmds | old_postuninstall_cmds | \
23697 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23698 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023699 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 +000023700 ;;
23701 *)
23702 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23703 ;;
23704 esac
23705 done
23706
23707 case $lt_echo in
23708 *'\$0 --fallback-echo"')
23709 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23710 ;;
23711 esac
23712
23713cfgfile="$ofile"
23714
23715 cat <<__EOF__ >> "$cfgfile"
23716# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23717
23718# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23719
23720# Shell to use when invoking shell scripts.
23721SHELL=$lt_SHELL
23722
23723# Whether or not to build shared libraries.
23724build_libtool_libs=$enable_shared
23725
23726# Whether or not to build static libraries.
23727build_old_libs=$enable_static
23728
23729# Whether or not to add -lc for building shared libraries.
23730build_libtool_need_lc=$archive_cmds_need_lc_F77
23731
23732# Whether or not to disallow shared libs when runtime libs are static
23733allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23734
23735# Whether or not to optimize for fast installation.
23736fast_install=$enable_fast_install
23737
23738# The host system.
23739host_alias=$host_alias
23740host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023741host_os=$host_os
23742
23743# The build system.
23744build_alias=$build_alias
23745build=$build
23746build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023747
23748# An echo program that does not interpret backslashes.
23749echo=$lt_echo
23750
23751# The archiver.
23752AR=$lt_AR
23753AR_FLAGS=$lt_AR_FLAGS
23754
23755# A C compiler.
23756LTCC=$lt_LTCC
23757
Reid Spencera773bd52006-08-04 18:18:08 +000023758# LTCC compiler flags.
23759LTCFLAGS=$lt_LTCFLAGS
23760
John Criswell47fdd832003-07-14 16:52:07 +000023761# A language-specific compiler.
23762CC=$lt_compiler_F77
23763
23764# Is the compiler the GNU C compiler?
23765with_gcc=$GCC_F77
23766
23767# An ERE matcher.
23768EGREP=$lt_EGREP
23769
23770# The linker used to build libraries.
23771LD=$lt_LD_F77
23772
23773# Whether we need hard or soft links.
23774LN_S=$lt_LN_S
23775
23776# A BSD-compatible nm program.
23777NM=$lt_NM
23778
23779# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023780STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023781
23782# Used to examine libraries when file_magic_cmd begins "file"
23783MAGIC_CMD=$MAGIC_CMD
23784
23785# Used on cygwin: DLL creation program.
23786DLLTOOL="$DLLTOOL"
23787
23788# Used on cygwin: object dumper.
23789OBJDUMP="$OBJDUMP"
23790
23791# Used on cygwin: assembler.
23792AS="$AS"
23793
23794# The name of the directory that contains temporary libtool files.
23795objdir=$objdir
23796
23797# How to create reloadable object files.
23798reload_flag=$lt_reload_flag
23799reload_cmds=$lt_reload_cmds
23800
23801# How to pass a linker flag through the compiler.
23802wl=$lt_lt_prog_compiler_wl_F77
23803
23804# Object file suffix (normally "o").
23805objext="$ac_objext"
23806
23807# Old archive suffix (normally "a").
23808libext="$libext"
23809
23810# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023811shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023812
23813# Executable file suffix (normally "").
23814exeext="$exeext"
23815
23816# Additional compiler flags for building library objects.
23817pic_flag=$lt_lt_prog_compiler_pic_F77
23818pic_mode=$pic_mode
23819
23820# What is the maximum length of a command?
23821max_cmd_len=$lt_cv_sys_max_cmd_len
23822
23823# Does compiler simultaneously support -c and -o options?
23824compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23825
Reid Spencera773bd52006-08-04 18:18:08 +000023826# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023827need_locks=$lt_need_locks
23828
23829# Do we need the lib prefix for modules?
23830need_lib_prefix=$need_lib_prefix
23831
23832# Do we need a version for libraries?
23833need_version=$need_version
23834
23835# Whether dlopen is supported.
23836dlopen_support=$enable_dlopen
23837
23838# Whether dlopen of programs is supported.
23839dlopen_self=$enable_dlopen_self
23840
23841# Whether dlopen of statically linked programs is supported.
23842dlopen_self_static=$enable_dlopen_self_static
23843
23844# Compiler flag to prevent dynamic linking.
23845link_static_flag=$lt_lt_prog_compiler_static_F77
23846
23847# Compiler flag to turn off builtin functions.
23848no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23849
23850# Compiler flag to allow reflexive dlopens.
23851export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23852
23853# Compiler flag to generate shared objects directly from archives.
23854whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23855
23856# Compiler flag to generate thread-safe objects.
23857thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23858
23859# Library versioning type.
23860version_type=$version_type
23861
23862# Format of library name prefix.
23863libname_spec=$lt_libname_spec
23864
23865# List of archive names. First name is the real one, the rest are links.
23866# The last name is the one that the linker finds with -lNAME.
23867library_names_spec=$lt_library_names_spec
23868
23869# The coded name of the library, if different from the real name.
23870soname_spec=$lt_soname_spec
23871
23872# Commands used to build and install an old-style archive.
23873RANLIB=$lt_RANLIB
23874old_archive_cmds=$lt_old_archive_cmds_F77
23875old_postinstall_cmds=$lt_old_postinstall_cmds
23876old_postuninstall_cmds=$lt_old_postuninstall_cmds
23877
23878# Create an old-style archive from a shared archive.
23879old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23880
23881# Create a temporary old-style archive to link instead of a shared archive.
23882old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23883
23884# Commands used to build and install a shared archive.
23885archive_cmds=$lt_archive_cmds_F77
23886archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23887postinstall_cmds=$lt_postinstall_cmds
23888postuninstall_cmds=$lt_postuninstall_cmds
23889
23890# Commands used to build a loadable module (assumed same as above if empty)
23891module_cmds=$lt_module_cmds_F77
23892module_expsym_cmds=$lt_module_expsym_cmds_F77
23893
23894# Commands to strip libraries.
23895old_striplib=$lt_old_striplib
23896striplib=$lt_striplib
23897
23898# Dependencies to place before the objects being linked to create a
23899# shared library.
23900predep_objects=$lt_predep_objects_F77
23901
23902# Dependencies to place after the objects being linked to create a
23903# shared library.
23904postdep_objects=$lt_postdep_objects_F77
23905
23906# Dependencies to place before the objects being linked to create a
23907# shared library.
23908predeps=$lt_predeps_F77
23909
23910# Dependencies to place after the objects being linked to create a
23911# shared library.
23912postdeps=$lt_postdeps_F77
23913
23914# The library search path used internally by the compiler when linking
23915# a shared library.
23916compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23917
23918# Method to check whether dependent libraries are shared objects.
23919deplibs_check_method=$lt_deplibs_check_method
23920
23921# Command to use when deplibs_check_method == file_magic.
23922file_magic_cmd=$lt_file_magic_cmd
23923
23924# Flag that allows shared libraries with undefined symbols to be built.
23925allow_undefined_flag=$lt_allow_undefined_flag_F77
23926
23927# Flag that forces no undefined symbols.
23928no_undefined_flag=$lt_no_undefined_flag_F77
23929
23930# Commands used to finish a libtool library installation in a directory.
23931finish_cmds=$lt_finish_cmds
23932
23933# Same as above, but a single script fragment to be evaled but not shown.
23934finish_eval=$lt_finish_eval
23935
23936# Take the output of nm and produce a listing of raw symbols and C names.
23937global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23938
23939# Transform the output of nm in a proper C declaration
23940global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23941
23942# Transform the output of nm in a C name address pair
23943global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23944
23945# This is the shared library runtime path variable.
23946runpath_var=$runpath_var
23947
23948# This is the shared library path variable.
23949shlibpath_var=$shlibpath_var
23950
23951# Is shlibpath searched before the hard-coded library search path?
23952shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23953
23954# How to hardcode a shared library path into an executable.
23955hardcode_action=$hardcode_action_F77
23956
23957# Whether we should hardcode library paths into libraries.
23958hardcode_into_libs=$hardcode_into_libs
23959
23960# Flag to hardcode \$libdir into a binary during linking.
23961# This must work even if \$libdir does not exist.
23962hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23963
23964# If ld is used when linking, flag to hardcode \$libdir into
23965# a binary during linking. This must work even if \$libdir does
23966# not exist.
23967hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23968
23969# Whether we need a single -rpath flag with a separated argument.
23970hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23971
23972# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23973# resulting binary.
23974hardcode_direct=$hardcode_direct_F77
23975
23976# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23977# resulting binary.
23978hardcode_minus_L=$hardcode_minus_L_F77
23979
23980# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23981# the resulting binary.
23982hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23983
23984# Set to yes if building a shared library automatically hardcodes DIR into the library
23985# and all subsequent libraries and executables linked against it.
23986hardcode_automatic=$hardcode_automatic_F77
23987
23988# Variables whose values should be saved in libtool wrapper scripts and
23989# restored at relink time.
23990variables_saved_for_relink="$variables_saved_for_relink"
23991
23992# Whether libtool must link a program against all its dependency libraries.
23993link_all_deplibs=$link_all_deplibs_F77
23994
23995# Compile-time system search path for libraries
23996sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23997
23998# Run-time system search path for libraries
23999sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24000
24001# Fix the shell variable \$srcfile for the compiler.
24002fix_srcfile_path="$fix_srcfile_path_F77"
24003
24004# Set to yes if exported symbols are required.
24005always_export_symbols=$always_export_symbols_F77
24006
24007# The commands to list exported symbols.
24008export_symbols_cmds=$lt_export_symbols_cmds_F77
24009
24010# The commands to extract the exported symbol list from a shared archive.
24011extract_expsyms_cmds=$lt_extract_expsyms_cmds
24012
24013# Symbols that should not be listed in the preloaded symbols.
24014exclude_expsyms=$lt_exclude_expsyms_F77
24015
24016# Symbols that must always be exported.
24017include_expsyms=$lt_include_expsyms_F77
24018
24019# ### END LIBTOOL TAG CONFIG: $tagname
24020
24021__EOF__
24022
24023
24024else
24025 # If there is no Makefile yet, we rely on a make rule to execute
24026 # `config.status --recheck' to rerun these tests and create the
24027 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024028 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24029 if test -f "$ltmain_in"; then
24030 test -f Makefile && make "$ltmain"
24031 fi
John Criswell47fdd832003-07-14 16:52:07 +000024032fi
24033
24034
24035ac_ext=c
24036ac_cpp='$CPP $CPPFLAGS'
24037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24039ac_compiler_gnu=$ac_cv_c_compiler_gnu
24040
24041CC="$lt_save_CC"
24042
24043 else
24044 tagname=""
24045 fi
24046 ;;
24047
24048 GCJ)
24049 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024050 ac_ext=c
24051ac_cpp='$CPP $CPPFLAGS'
24052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24054ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024055
24056
24057# Source file extension for Java test sources.
24058ac_ext=java
24059
24060# Object file extension for compiled Java test sources.
24061objext=o
24062objext_GCJ=$objext
24063
24064# Code to be used in simple compile tests
24065lt_simple_compile_test_code="class foo {}\n"
24066
24067# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000024068lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000024069
24070# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24071
24072# If no C compiler was specified, use CC.
24073LTCC=${LTCC-"$CC"}
24074
Reid Spencera773bd52006-08-04 18:18:08 +000024075# If no C compiler flags were specified, use CFLAGS.
24076LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24077
John Criswell47fdd832003-07-14 16:52:07 +000024078# Allow CC to be a program name with arguments.
24079compiler=$CC
24080
24081
Reid Spencera773bd52006-08-04 18:18:08 +000024082# save warnings/boilerplate of simple test code
24083ac_outfile=conftest.$ac_objext
24084printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24085eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24086_lt_compiler_boilerplate=`cat conftest.err`
24087$rm conftest*
24088
24089ac_outfile=conftest.$ac_objext
24090printf "$lt_simple_link_test_code" >conftest.$ac_ext
24091eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24092_lt_linker_boilerplate=`cat conftest.err`
24093$rm conftest*
24094
24095
John Criswell47fdd832003-07-14 16:52:07 +000024096# Allow CC to be a program name with arguments.
24097lt_save_CC="$CC"
24098CC=${GCJ-"gcj"}
24099compiler=$CC
24100compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000024101for cc_temp in $compiler""; do
24102 case $cc_temp in
24103 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24104 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24105 \-*) ;;
24106 *) break;;
24107 esac
24108done
24109cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24110
John Criswell47fdd832003-07-14 16:52:07 +000024111
24112# GCJ did not exist at the time GCC didn't implicitly link libc in.
24113archive_cmds_need_lc_GCJ=no
24114
Reid Spencera773bd52006-08-04 18:18:08 +000024115old_archive_cmds_GCJ=$old_archive_cmds
24116
John Criswell47fdd832003-07-14 16:52:07 +000024117
24118lt_prog_compiler_no_builtin_flag_GCJ=
24119
24120if test "$GCC" = yes; then
24121 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24122
Reid Spencer2706f8c2004-09-19 23:53:36 +000024123
Reid Spencera773bd52006-08-04 18:18:08 +000024124{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24125echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024126if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24127 echo $ECHO_N "(cached) $ECHO_C" >&6
24128else
24129 lt_cv_prog_compiler_rtti_exceptions=no
24130 ac_outfile=conftest.$ac_objext
24131 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24132 lt_compiler_flag="-fno-rtti -fno-exceptions"
24133 # Insert the option either (1) after the last *FLAGS variable, or
24134 # (2) before a word containing "conftest.", or (3) at the end.
24135 # Note that $ac_compile itself does not contain backslashes and begins
24136 # with a dollar sign (not a hyphen), so the echo should work correctly.
24137 # The option is referenced via a variable to avoid confusing sed.
24138 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24141 -e 's:$: $lt_compiler_flag:'`
Gabor Greif4c750542009-08-27 17:07:35 +000024142 (eval echo "\"\$as_me:24142: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024143 (eval "$lt_compile" 2>conftest.err)
24144 ac_status=$?
24145 cat conftest.err >&5
Gabor Greif4c750542009-08-27 17:07:35 +000024146 echo "$as_me:24146: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024147 if (exit $ac_status) && test -s "$ac_outfile"; then
24148 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024149 # So say no if there are warnings other than the usual output.
24150 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24152 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024153 lt_cv_prog_compiler_rtti_exceptions=yes
24154 fi
24155 fi
24156 $rm conftest*
24157
24158fi
Reid Spencera773bd52006-08-04 18:18:08 +000024159{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24160echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024161
24162if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24163 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24164else
24165 :
24166fi
24167
24168fi
24169
24170lt_prog_compiler_wl_GCJ=
24171lt_prog_compiler_pic_GCJ=
24172lt_prog_compiler_static_GCJ=
24173
Reid Spencera773bd52006-08-04 18:18:08 +000024174{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24175echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024176
24177 if test "$GCC" = yes; then
24178 lt_prog_compiler_wl_GCJ='-Wl,'
24179 lt_prog_compiler_static_GCJ='-static'
24180
24181 case $host_os in
24182 aix*)
24183 # All AIX code is PIC.
24184 if test "$host_cpu" = ia64; then
24185 # AIX 5 now supports IA64 processor
24186 lt_prog_compiler_static_GCJ='-Bstatic'
24187 fi
24188 ;;
24189
24190 amigaos*)
24191 # FIXME: we need at least 68020 code to build shared libraries, but
24192 # adding the `-m68020' flag to GCC prevents building anything better,
24193 # like `-m68040'.
24194 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24195 ;;
24196
24197 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24198 # PIC is the default for these OSes.
24199 ;;
24200
24201 mingw* | pw32* | os2*)
24202 # This hack is so that the source file can tell whether it is being
24203 # built for inclusion in a dll (and should export symbols for example).
24204 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24205 ;;
24206
24207 darwin* | rhapsody*)
24208 # PIC is the default on this platform
24209 # Common symbols not allowed in MH_DYLIB files
24210 lt_prog_compiler_pic_GCJ='-fno-common'
24211 ;;
24212
Reid Spencera773bd52006-08-04 18:18:08 +000024213 interix3*)
24214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24215 # Instead, we relocate shared libraries at runtime.
24216 ;;
24217
John Criswell47fdd832003-07-14 16:52:07 +000024218 msdosdjgpp*)
24219 # Just because we use GCC doesn't mean we suddenly get shared libraries
24220 # on systems that don't support them.
24221 lt_prog_compiler_can_build_shared_GCJ=no
24222 enable_shared=no
24223 ;;
24224
24225 sysv4*MP*)
24226 if test -d /usr/nec; then
24227 lt_prog_compiler_pic_GCJ=-Kconform_pic
24228 fi
24229 ;;
24230
24231 hpux*)
24232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24233 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024234 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024235 hppa*64*|ia64*)
24236 # +Z the default
24237 ;;
24238 *)
24239 lt_prog_compiler_pic_GCJ='-fPIC'
24240 ;;
24241 esac
24242 ;;
24243
24244 *)
24245 lt_prog_compiler_pic_GCJ='-fPIC'
24246 ;;
24247 esac
24248 else
24249 # PORTME Check for flag to pass linker flags through the system compiler.
24250 case $host_os in
24251 aix*)
24252 lt_prog_compiler_wl_GCJ='-Wl,'
24253 if test "$host_cpu" = ia64; then
24254 # AIX 5 now supports IA64 processor
24255 lt_prog_compiler_static_GCJ='-Bstatic'
24256 else
24257 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24258 fi
24259 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024260 darwin*)
24261 # PIC is the default on this platform
24262 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024263 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024264 xlc*)
24265 lt_prog_compiler_pic_GCJ='-qnocommon'
24266 lt_prog_compiler_wl_GCJ='-Wl,'
24267 ;;
24268 esac
24269 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024270
24271 mingw* | pw32* | os2*)
24272 # This hack is so that the source file can tell whether it is being
24273 # built for inclusion in a dll (and should export symbols for example).
24274 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24275 ;;
24276
24277 hpux9* | hpux10* | hpux11*)
24278 lt_prog_compiler_wl_GCJ='-Wl,'
24279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24280 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024281 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024282 hppa*64*|ia64*)
24283 # +Z the default
24284 ;;
24285 *)
24286 lt_prog_compiler_pic_GCJ='+Z'
24287 ;;
24288 esac
24289 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24290 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24291 ;;
24292
24293 irix5* | irix6* | nonstopux*)
24294 lt_prog_compiler_wl_GCJ='-Wl,'
24295 # PIC (with -KPIC) is the default.
24296 lt_prog_compiler_static_GCJ='-non_shared'
24297 ;;
24298
24299 newsos6)
24300 lt_prog_compiler_pic_GCJ='-KPIC'
24301 lt_prog_compiler_static_GCJ='-Bstatic'
24302 ;;
24303
24304 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024305 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024306 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024307 lt_prog_compiler_wl_GCJ='-Wl,'
24308 lt_prog_compiler_pic_GCJ='-KPIC'
24309 lt_prog_compiler_static_GCJ='-static'
24310 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024311 pgcc* | pgf77* | pgf90* | pgf95*)
24312 # Portland Group compilers (*not* the Pentium gcc compiler,
24313 # which looks to be a dead project)
24314 lt_prog_compiler_wl_GCJ='-Wl,'
24315 lt_prog_compiler_pic_GCJ='-fpic'
24316 lt_prog_compiler_static_GCJ='-Bstatic'
24317 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024318 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024319 lt_prog_compiler_wl_GCJ='-Wl,'
24320 # All Alpha code is PIC.
24321 lt_prog_compiler_static_GCJ='-non_shared'
24322 ;;
24323 esac
24324 ;;
24325
24326 osf3* | osf4* | osf5*)
24327 lt_prog_compiler_wl_GCJ='-Wl,'
24328 # All OSF/1 code is PIC.
24329 lt_prog_compiler_static_GCJ='-non_shared'
24330 ;;
24331
John Criswell47fdd832003-07-14 16:52:07 +000024332 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024333 lt_prog_compiler_pic_GCJ='-KPIC'
24334 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024335 case $cc_basename in
24336 f77* | f90* | f95*)
24337 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24338 *)
24339 lt_prog_compiler_wl_GCJ='-Wl,';;
24340 esac
John Criswell47fdd832003-07-14 16:52:07 +000024341 ;;
24342
24343 sunos4*)
24344 lt_prog_compiler_wl_GCJ='-Qoption ld '
24345 lt_prog_compiler_pic_GCJ='-PIC'
24346 lt_prog_compiler_static_GCJ='-Bstatic'
24347 ;;
24348
Reid Spencera773bd52006-08-04 18:18:08 +000024349 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024350 lt_prog_compiler_wl_GCJ='-Wl,'
24351 lt_prog_compiler_pic_GCJ='-KPIC'
24352 lt_prog_compiler_static_GCJ='-Bstatic'
24353 ;;
24354
24355 sysv4*MP*)
24356 if test -d /usr/nec ;then
24357 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24358 lt_prog_compiler_static_GCJ='-Bstatic'
24359 fi
24360 ;;
24361
Reid Spencera773bd52006-08-04 18:18:08 +000024362 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24363 lt_prog_compiler_wl_GCJ='-Wl,'
24364 lt_prog_compiler_pic_GCJ='-KPIC'
24365 lt_prog_compiler_static_GCJ='-Bstatic'
24366 ;;
24367
24368 unicos*)
24369 lt_prog_compiler_wl_GCJ='-Wl,'
24370 lt_prog_compiler_can_build_shared_GCJ=no
24371 ;;
24372
John Criswell47fdd832003-07-14 16:52:07 +000024373 uts4*)
24374 lt_prog_compiler_pic_GCJ='-pic'
24375 lt_prog_compiler_static_GCJ='-Bstatic'
24376 ;;
24377
24378 *)
24379 lt_prog_compiler_can_build_shared_GCJ=no
24380 ;;
24381 esac
24382 fi
24383
Reid Spencera773bd52006-08-04 18:18:08 +000024384{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24385echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024386
24387#
24388# Check to make sure the PIC flag actually works.
24389#
24390if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024391
Reid Spencera773bd52006-08-04 18:18:08 +000024392{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24393echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024394if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24395 echo $ECHO_N "(cached) $ECHO_C" >&6
24396else
24397 lt_prog_compiler_pic_works_GCJ=no
24398 ac_outfile=conftest.$ac_objext
24399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24400 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24401 # Insert the option either (1) after the last *FLAGS variable, or
24402 # (2) before a word containing "conftest.", or (3) at the end.
24403 # Note that $ac_compile itself does not contain backslashes and begins
24404 # with a dollar sign (not a hyphen), so the echo should work correctly.
24405 # The option is referenced via a variable to avoid confusing sed.
24406 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24409 -e 's:$: $lt_compiler_flag:'`
Gabor Greif4c750542009-08-27 17:07:35 +000024410 (eval echo "\"\$as_me:24410: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024411 (eval "$lt_compile" 2>conftest.err)
24412 ac_status=$?
24413 cat conftest.err >&5
Gabor Greif4c750542009-08-27 17:07:35 +000024414 echo "$as_me:24414: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024415 if (exit $ac_status) && test -s "$ac_outfile"; then
24416 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024417 # So say no if there are warnings other than the usual output.
24418 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24420 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024421 lt_prog_compiler_pic_works_GCJ=yes
24422 fi
24423 fi
24424 $rm conftest*
24425
24426fi
Reid Spencera773bd52006-08-04 18:18:08 +000024427{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24428echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024429
24430if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24431 case $lt_prog_compiler_pic_GCJ in
24432 "" | " "*) ;;
24433 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24434 esac
24435else
24436 lt_prog_compiler_pic_GCJ=
24437 lt_prog_compiler_can_build_shared_GCJ=no
24438fi
24439
24440fi
Reid Spencera773bd52006-08-04 18:18:08 +000024441case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024442 # For platforms which do not support PIC, -DPIC is meaningless:
24443 *djgpp*)
24444 lt_prog_compiler_pic_GCJ=
24445 ;;
24446 *)
24447 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24448 ;;
24449esac
24450
Reid Spencera773bd52006-08-04 18:18:08 +000024451#
24452# Check to make sure the static flag actually works.
24453#
24454wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24455{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24456echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24457if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24458 echo $ECHO_N "(cached) $ECHO_C" >&6
24459else
24460 lt_prog_compiler_static_works_GCJ=no
24461 save_LDFLAGS="$LDFLAGS"
24462 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24463 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24464 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24465 # The linker can only warn and ignore the option if not recognized
24466 # So say no if there are warnings
24467 if test -s conftest.err; then
24468 # Append any errors to the config.log.
24469 cat conftest.err 1>&5
24470 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24472 if diff conftest.exp conftest.er2 >/dev/null; then
24473 lt_prog_compiler_static_works_GCJ=yes
24474 fi
24475 else
24476 lt_prog_compiler_static_works_GCJ=yes
24477 fi
24478 fi
24479 $rm conftest*
24480 LDFLAGS="$save_LDFLAGS"
24481
24482fi
24483{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24484echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24485
24486if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24487 :
24488else
24489 lt_prog_compiler_static_GCJ=
24490fi
24491
24492
24493{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24494echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024495if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24496 echo $ECHO_N "(cached) $ECHO_C" >&6
24497else
24498 lt_cv_prog_compiler_c_o_GCJ=no
24499 $rm -r conftest 2>/dev/null
24500 mkdir conftest
24501 cd conftest
24502 mkdir out
24503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24504
John Criswell47fdd832003-07-14 16:52:07 +000024505 lt_compiler_flag="-o out/conftest2.$ac_objext"
24506 # Insert the option either (1) after the last *FLAGS variable, or
24507 # (2) before a word containing "conftest.", or (3) at the end.
24508 # Note that $ac_compile itself does not contain backslashes and begins
24509 # with a dollar sign (not a hyphen), so the echo should work correctly.
24510 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24513 -e 's:$: $lt_compiler_flag:'`
Gabor Greif4c750542009-08-27 17:07:35 +000024514 (eval echo "\"\$as_me:24514: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024515 (eval "$lt_compile" 2>out/conftest.err)
24516 ac_status=$?
24517 cat out/conftest.err >&5
Gabor Greif4c750542009-08-27 17:07:35 +000024518 echo "$as_me:24518: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024519 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24520 then
24521 # The compiler can only warn and ignore the option if not recognized
24522 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024523 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24524 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24525 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024526 lt_cv_prog_compiler_c_o_GCJ=yes
24527 fi
24528 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024529 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024530 $rm conftest*
24531 # SGI C++ compiler will create directory out/ii_files/ for
24532 # template instantiation
24533 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24534 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024535 cd ..
24536 rmdir conftest
24537 $rm conftest*
24538
24539fi
Reid Spencera773bd52006-08-04 18:18:08 +000024540{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24541echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024542
24543
24544hard_links="nottested"
24545if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24546 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024547 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24548echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024549 hard_links=yes
24550 $rm conftest*
24551 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24552 touch conftest.a
24553 ln conftest.a conftest.b 2>&5 || hard_links=no
24554 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024555 { echo "$as_me:$LINENO: result: $hard_links" >&5
24556echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024557 if test "$hard_links" = no; then
24558 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24559echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24560 need_locks=warn
24561 fi
24562else
24563 need_locks=no
24564fi
24565
Reid Spencera773bd52006-08-04 18:18:08 +000024566{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24567echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024568
24569 runpath_var=
24570 allow_undefined_flag_GCJ=
24571 enable_shared_with_static_runtimes_GCJ=no
24572 archive_cmds_GCJ=
24573 archive_expsym_cmds_GCJ=
24574 old_archive_From_new_cmds_GCJ=
24575 old_archive_from_expsyms_cmds_GCJ=
24576 export_dynamic_flag_spec_GCJ=
24577 whole_archive_flag_spec_GCJ=
24578 thread_safe_flag_spec_GCJ=
24579 hardcode_libdir_flag_spec_GCJ=
24580 hardcode_libdir_flag_spec_ld_GCJ=
24581 hardcode_libdir_separator_GCJ=
24582 hardcode_direct_GCJ=no
24583 hardcode_minus_L_GCJ=no
24584 hardcode_shlibpath_var_GCJ=unsupported
24585 link_all_deplibs_GCJ=unknown
24586 hardcode_automatic_GCJ=no
24587 module_cmds_GCJ=
24588 module_expsym_cmds_GCJ=
24589 always_export_symbols_GCJ=no
24590 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24591 # include_expsyms should be a list of space-separated symbols to be *always*
24592 # included in the symbol list
24593 include_expsyms_GCJ=
24594 # exclude_expsyms can be an extended regexp of symbols to exclude
24595 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24596 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24597 # as well as any symbol that contains `d'.
24598 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24599 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24600 # platforms (ab)use it in PIC code, but their linkers get confused if
24601 # the symbol is explicitly referenced. Since portable code cannot
24602 # rely on this symbol name, it's probably fine to never include it in
24603 # preloaded symbol tables.
24604 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024605 # Just being paranoid about ensuring that cc_basename is set.
24606 for cc_temp in $compiler""; do
24607 case $cc_temp in
24608 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24609 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24610 \-*) ;;
24611 *) break;;
24612 esac
24613done
24614cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024615
24616 case $host_os in
24617 cygwin* | mingw* | pw32*)
24618 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24619 # When not using gcc, we currently assume that we are using
24620 # Microsoft Visual C++.
24621 if test "$GCC" != yes; then
24622 with_gnu_ld=no
24623 fi
24624 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024625 interix*)
24626 # we just hope/assume this is gcc and not c89 (= MSVC++)
24627 with_gnu_ld=yes
24628 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024629 openbsd*)
24630 with_gnu_ld=no
24631 ;;
24632 esac
24633
24634 ld_shlibs_GCJ=yes
24635 if test "$with_gnu_ld" = yes; then
24636 # If archive_cmds runs LD, not CC, wlarc should be empty
24637 wlarc='${wl}'
24638
Reid Spencera773bd52006-08-04 18:18:08 +000024639 # Set some defaults for GNU ld with shared library support. These
24640 # are reset later if shared libraries are not supported. Putting them
24641 # here allows them to be overridden if necessary.
24642 runpath_var=LD_RUN_PATH
24643 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24644 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24645 # ancient GNU ld didn't support --whole-archive et. al.
24646 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24647 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24648 else
24649 whole_archive_flag_spec_GCJ=
24650 fi
24651 supports_anon_versioning=no
24652 case `$LD -v 2>/dev/null` in
24653 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24654 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24655 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24656 *\ 2.11.*) ;; # other 2.11 versions
24657 *) supports_anon_versioning=yes ;;
24658 esac
24659
John Criswell47fdd832003-07-14 16:52:07 +000024660 # See if GNU ld supports shared libraries.
24661 case $host_os in
24662 aix3* | aix4* | aix5*)
24663 # On AIX/PPC, the GNU linker is very broken
24664 if test "$host_cpu" != ia64; then
24665 ld_shlibs_GCJ=no
24666 cat <<EOF 1>&2
24667
24668*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24669*** to be unable to reliably create shared libraries on AIX.
24670*** Therefore, libtool is disabling shared libraries support. If you
24671*** really care for shared libraries, you may want to modify your PATH
24672*** so that a non-GNU linker is found, and then restart.
24673
24674EOF
24675 fi
24676 ;;
24677
24678 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024679 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 +000024680 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24681 hardcode_minus_L_GCJ=yes
24682
24683 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24684 # that the semantics of dynamic libraries on AmigaOS, at least up
24685 # to version 4, is to share data among multiple programs linked
24686 # with the same dynamic library. Since this doesn't match the
24687 # behavior of shared libraries on other platforms, we can't use
24688 # them.
24689 ld_shlibs_GCJ=no
24690 ;;
24691
24692 beos*)
24693 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24694 allow_undefined_flag_GCJ=unsupported
24695 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24696 # support --undefined. This deserves some investigation. FIXME
24697 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24698 else
24699 ld_shlibs_GCJ=no
24700 fi
24701 ;;
24702
24703 cygwin* | mingw* | pw32*)
24704 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24705 # as there is no search path for DLLs.
24706 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24707 allow_undefined_flag_GCJ=unsupported
24708 always_export_symbols_GCJ=no
24709 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024710 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 +000024711
24712 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024713 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 +000024714 # If the export-symbols file already is a .def file (1st line
24715 # is EXPORTS), use it as is; otherwise, prepend...
24716 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24717 cp $export_symbols $output_objdir/$soname.def;
24718 else
24719 echo EXPORTS > $output_objdir/$soname.def;
24720 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024721 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024722 $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 +000024723 else
Reid Spencera773bd52006-08-04 18:18:08 +000024724 ld_shlibs_GCJ=no
24725 fi
24726 ;;
24727
24728 interix3*)
24729 hardcode_direct_GCJ=no
24730 hardcode_shlibpath_var_GCJ=no
24731 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24732 export_dynamic_flag_spec_GCJ='${wl}-E'
24733 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24734 # Instead, shared libraries are loaded at an image base (0x10000000 by
24735 # default) and relocated if they conflict, which is a slow very memory
24736 # consuming and fragmenting process. To avoid this, we pick a random,
24737 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24738 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24739 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'
24740 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'
24741 ;;
24742
24743 linux*)
24744 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24745 tmp_addflag=
24746 case $cc_basename,$host_cpu in
24747 pgcc*) # Portland Group C compiler
24748 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'
24749 tmp_addflag=' $pic_flag'
24750 ;;
24751 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24752 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'
24753 tmp_addflag=' $pic_flag -Mnomain' ;;
24754 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24755 tmp_addflag=' -i_dynamic' ;;
24756 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24757 tmp_addflag=' -i_dynamic -nofor_main' ;;
24758 ifc* | ifort*) # Intel Fortran compiler
24759 tmp_addflag=' -nofor_main' ;;
24760 esac
24761 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24762
24763 if test $supports_anon_versioning = yes; then
24764 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24766 $echo "local: *; };" >> $output_objdir/$libname.ver~
24767 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24768 fi
24769 else
24770 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024771 fi
24772 ;;
24773
24774 netbsd*)
24775 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24776 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24777 wlarc=
24778 else
24779 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24780 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24781 fi
24782 ;;
24783
Reid Spencera773bd52006-08-04 18:18:08 +000024784 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024785 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24786 ld_shlibs_GCJ=no
24787 cat <<EOF 1>&2
24788
24789*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24790*** create shared libraries on Solaris systems. Therefore, libtool
24791*** is disabling shared libraries support. We urge you to upgrade GNU
24792*** binutils to release 2.9.1 or newer. Another option is to modify
24793*** your PATH or compiler configuration so that the native linker is
24794*** used, and then restart.
24795
24796EOF
24797 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24798 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24799 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24800 else
24801 ld_shlibs_GCJ=no
24802 fi
24803 ;;
24804
Reid Spencera773bd52006-08-04 18:18:08 +000024805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24806 case `$LD -v 2>&1` in
24807 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24808 ld_shlibs_GCJ=no
24809 cat <<_LT_EOF 1>&2
24810
24811*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24812*** reliably create shared libraries on SCO systems. Therefore, libtool
24813*** is disabling shared libraries support. We urge you to upgrade GNU
24814*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24815*** your PATH or compiler configuration so that the native linker is
24816*** used, and then restart.
24817
24818_LT_EOF
24819 ;;
24820 *)
24821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24822 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24823 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24824 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24825 else
24826 ld_shlibs_GCJ=no
24827 fi
24828 ;;
24829 esac
24830 ;;
24831
John Criswell47fdd832003-07-14 16:52:07 +000024832 sunos4*)
24833 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24834 wlarc=
24835 hardcode_direct_GCJ=yes
24836 hardcode_shlibpath_var_GCJ=no
24837 ;;
24838
24839 *)
24840 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24841 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24842 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24843 else
24844 ld_shlibs_GCJ=no
24845 fi
24846 ;;
24847 esac
24848
Reid Spencera773bd52006-08-04 18:18:08 +000024849 if test "$ld_shlibs_GCJ" = no; then
24850 runpath_var=
24851 hardcode_libdir_flag_spec_GCJ=
24852 export_dynamic_flag_spec_GCJ=
24853 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024854 fi
24855 else
24856 # PORTME fill in a description of your system's linker (not GNU ld)
24857 case $host_os in
24858 aix3*)
24859 allow_undefined_flag_GCJ=unsupported
24860 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024861 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 +000024862 # Note: this linker hardcodes the directories in LIBPATH if there
24863 # are no directories specified by -L.
24864 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024865 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024866 # Neither direct hardcoding nor static linking is supported with a
24867 # broken collect2.
24868 hardcode_direct_GCJ=unsupported
24869 fi
24870 ;;
24871
24872 aix4* | aix5*)
24873 if test "$host_cpu" = ia64; then
24874 # On IA64, the linker does run time linking by default, so we don't
24875 # have to do anything special.
24876 aix_use_runtimelinking=no
24877 exp_sym_flag='-Bexport'
24878 no_entry_flag=""
24879 else
24880 # If we're using GNU nm, then we don't want the "-C" option.
24881 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24882 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24883 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'
24884 else
24885 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'
24886 fi
24887 aix_use_runtimelinking=no
24888
24889 # Test if we are trying to use run time linking or normal
24890 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24891 # need to do runtime linking.
24892 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24893 for ld_flag in $LDFLAGS; do
24894 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24895 aix_use_runtimelinking=yes
24896 break
24897 fi
24898 done
Reid Spencera773bd52006-08-04 18:18:08 +000024899 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024900 esac
24901
24902 exp_sym_flag='-bexport'
24903 no_entry_flag='-bnoentry'
24904 fi
24905
24906 # When large executables or shared objects are built, AIX ld can
24907 # have problems creating the table of contents. If linking a library
24908 # or program results in "error TOC overflow" add -mminimal-toc to
24909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24911
24912 archive_cmds_GCJ=''
24913 hardcode_direct_GCJ=yes
24914 hardcode_libdir_separator_GCJ=':'
24915 link_all_deplibs_GCJ=yes
24916
24917 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024918 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024919 # We only want to do this on AIX 4.2 and lower, the check
24920 # below for broken collect2 doesn't work under 4.3+
24921 collect2name=`${CC} -print-prog-name=collect2`
24922 if test -f "$collect2name" && \
24923 strings "$collect2name" | grep resolve_lib_name >/dev/null
24924 then
24925 # We have reworked collect2
24926 hardcode_direct_GCJ=yes
24927 else
24928 # We have old collect2
24929 hardcode_direct_GCJ=unsupported
24930 # It fails to find uninstalled libraries when the uninstalled
24931 # path is not listed in the libpath. Setting hardcode_minus_L
24932 # to unsupported forces relinking
24933 hardcode_minus_L_GCJ=yes
24934 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24935 hardcode_libdir_separator_GCJ=
24936 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024937 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024938 esac
24939 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024940 if test "$aix_use_runtimelinking" = yes; then
24941 shared_flag="$shared_flag "'${wl}-G'
24942 fi
John Criswell47fdd832003-07-14 16:52:07 +000024943 else
24944 # not using gcc
24945 if test "$host_cpu" = ia64; then
24946 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24947 # chokes on -Wl,-G. The following line is correct:
24948 shared_flag='-G'
24949 else
Reid Spencera773bd52006-08-04 18:18:08 +000024950 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024951 shared_flag='${wl}-G'
24952 else
24953 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024954 fi
John Criswell47fdd832003-07-14 16:52:07 +000024955 fi
24956 fi
24957
24958 # It seems that -bexpall does not export symbols beginning with
24959 # underscore (_), so it is better to generate a list of symbols to export.
24960 always_export_symbols_GCJ=yes
24961 if test "$aix_use_runtimelinking" = yes; then
24962 # Warning - without using the other runtime loading flags (-brtl),
24963 # -berok will link without error, but may produce a broken library.
24964 allow_undefined_flag_GCJ='-berok'
24965 # Determine the default libpath from the value encoded in an empty executable.
24966 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024967/* confdefs.h. */
24968_ACEOF
24969cat confdefs.h >>conftest.$ac_ext
24970cat >>conftest.$ac_ext <<_ACEOF
24971/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024972
John Criswell47fdd832003-07-14 16:52:07 +000024973int
24974main ()
24975{
24976
24977 ;
24978 return 0;
24979}
24980_ACEOF
24981rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024982if { (ac_try="$ac_link"
24983case "(($ac_try" in
24984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24985 *) ac_try_echo=$ac_try;;
24986esac
24987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24988 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024989 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024990 grep -v '^ *+' conftest.er1 >conftest.err
24991 rm -f conftest.er1
24992 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024994 (exit $ac_status); } &&
24995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24996 { (case "(($ac_try" in
24997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24998 *) ac_try_echo=$ac_try;;
24999esac
25000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25001 (eval "$ac_try") 2>&5
25002 ac_status=$?
25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004 (exit $ac_status); }; } &&
25005 { ac_try='test -s conftest$ac_exeext'
25006 { (case "(($ac_try" in
25007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008 *) ac_try_echo=$ac_try;;
25009esac
25010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25011 (eval "$ac_try") 2>&5
25012 ac_status=$?
25013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025015
25016aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25017}'`
25018# Check for a 64-bit object if we didn't find anything.
25019if 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; }
25020}'`; fi
25021else
25022 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025023sed 's/^/| /' conftest.$ac_ext >&5
25024
Reid Spencera773bd52006-08-04 18:18:08 +000025025
John Criswell47fdd832003-07-14 16:52:07 +000025026fi
Reid Spencera773bd52006-08-04 18:18:08 +000025027
Bill Wendlingebcceee2009-04-18 11:20:33 +000025028rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025029 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025030if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25031
25032 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000025033 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 +000025034 else
25035 if test "$host_cpu" = ia64; then
25036 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25037 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000025038 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 +000025039 else
25040 # Determine the default libpath from the value encoded in an empty executable.
25041 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025042/* confdefs.h. */
25043_ACEOF
25044cat confdefs.h >>conftest.$ac_ext
25045cat >>conftest.$ac_ext <<_ACEOF
25046/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025047
John Criswell47fdd832003-07-14 16:52:07 +000025048int
25049main ()
25050{
25051
25052 ;
25053 return 0;
25054}
25055_ACEOF
25056rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025057if { (ac_try="$ac_link"
25058case "(($ac_try" in
25059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25060 *) ac_try_echo=$ac_try;;
25061esac
25062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25063 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025064 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025065 grep -v '^ *+' conftest.er1 >conftest.err
25066 rm -f conftest.er1
25067 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025069 (exit $ac_status); } &&
25070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25071 { (case "(($ac_try" in
25072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25073 *) ac_try_echo=$ac_try;;
25074esac
25075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25076 (eval "$ac_try") 2>&5
25077 ac_status=$?
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); }; } &&
25080 { ac_try='test -s conftest$ac_exeext'
25081 { (case "(($ac_try" in
25082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083 *) ac_try_echo=$ac_try;;
25084esac
25085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25086 (eval "$ac_try") 2>&5
25087 ac_status=$?
25088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025090
25091aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25092}'`
25093# Check for a 64-bit object if we didn't find anything.
25094if 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; }
25095}'`; fi
25096else
25097 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025098sed 's/^/| /' conftest.$ac_ext >&5
25099
Reid Spencera773bd52006-08-04 18:18:08 +000025100
John Criswell47fdd832003-07-14 16:52:07 +000025101fi
Reid Spencera773bd52006-08-04 18:18:08 +000025102
Bill Wendlingebcceee2009-04-18 11:20:33 +000025103rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025104 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025105if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25106
25107 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25108 # Warning - without using the other run time loading flags,
25109 # -berok will link without error, but may produce a broken library.
25110 no_undefined_flag_GCJ=' ${wl}-bernotok'
25111 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025112 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025113 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025114 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025115 # This is similar to how AIX traditionally builds its shared libraries.
25116 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 +000025117 fi
25118 fi
25119 ;;
25120
25121 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025122 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 +000025123 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25124 hardcode_minus_L_GCJ=yes
25125 # see comment about different semantics on the GNU ld section
25126 ld_shlibs_GCJ=no
25127 ;;
25128
Reid Spencer2706f8c2004-09-19 23:53:36 +000025129 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025130 export_dynamic_flag_spec_GCJ=-rdynamic
25131 ;;
25132
25133 cygwin* | mingw* | pw32*)
25134 # When not using gcc, we currently assume that we are using
25135 # Microsoft Visual C++.
25136 # hardcode_libdir_flag_spec is actually meaningless, as there is
25137 # no search path for DLLs.
25138 hardcode_libdir_flag_spec_GCJ=' '
25139 allow_undefined_flag_GCJ=unsupported
25140 # Tell ltmain to make .lib files, not .a files.
25141 libext=lib
25142 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025143 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025144 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025145 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 +000025146 # The linker will automatically build a .lib file if we build a DLL.
25147 old_archive_From_new_cmds_GCJ='true'
25148 # FIXME: Should let the user specify the lib program.
25149 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025150 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025151 enable_shared_with_static_runtimes_GCJ=yes
25152 ;;
25153
25154 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025155 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025156 rhapsody* | darwin1.[012])
25157 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25158 ;;
25159 *) # Darwin 1.3 on
25160 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25161 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25162 else
25163 case ${MACOSX_DEPLOYMENT_TARGET} in
25164 10.[012])
25165 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25166 ;;
25167 10.*)
25168 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25169 ;;
25170 esac
25171 fi
25172 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025173 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025174 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025175 hardcode_direct_GCJ=no
25176 hardcode_automatic_GCJ=yes
25177 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025178 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025179 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025180 if test "$GCC" = yes ; then
25181 output_verbose_link_cmd='echo'
25182 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25183 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025184 # 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 +000025185 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}'
25186 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 +000025187 else
Reid Spencera773bd52006-08-04 18:18:08 +000025188 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025189 xlc*)
25190 output_verbose_link_cmd='echo'
25191 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25192 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025193 # 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 +000025194 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}'
25195 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 +000025196 ;;
25197 *)
25198 ld_shlibs_GCJ=no
25199 ;;
25200 esac
John Criswell47fdd832003-07-14 16:52:07 +000025201 fi
25202 ;;
25203
25204 dgux*)
25205 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25206 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25207 hardcode_shlibpath_var_GCJ=no
25208 ;;
25209
25210 freebsd1*)
25211 ld_shlibs_GCJ=no
25212 ;;
25213
25214 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25215 # support. Future versions do this automatically, but an explicit c++rt0.o
25216 # does not break anything, and helps significantly (at the cost of a little
25217 # extra space).
25218 freebsd2.2*)
25219 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25220 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25221 hardcode_direct_GCJ=yes
25222 hardcode_shlibpath_var_GCJ=no
25223 ;;
25224
25225 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25226 freebsd2*)
25227 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25228 hardcode_direct_GCJ=yes
25229 hardcode_minus_L_GCJ=yes
25230 hardcode_shlibpath_var_GCJ=no
25231 ;;
25232
25233 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025234 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025235 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25236 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25237 hardcode_direct_GCJ=yes
25238 hardcode_shlibpath_var_GCJ=no
25239 ;;
25240
25241 hpux9*)
25242 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025243 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 +000025244 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025245 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 +000025246 fi
25247 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25248 hardcode_libdir_separator_GCJ=:
25249 hardcode_direct_GCJ=yes
25250
25251 # hardcode_minus_L: Not really in the search PATH,
25252 # but as the default location of the library.
25253 hardcode_minus_L_GCJ=yes
25254 export_dynamic_flag_spec_GCJ='${wl}-E'
25255 ;;
25256
Reid Spencera773bd52006-08-04 18:18:08 +000025257 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025258 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025259 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25260 else
25261 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25262 fi
25263 if test "$with_gnu_ld" = no; then
25264 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25265 hardcode_libdir_separator_GCJ=:
25266
25267 hardcode_direct_GCJ=yes
25268 export_dynamic_flag_spec_GCJ='${wl}-E'
25269
25270 # hardcode_minus_L: Not really in the search PATH,
25271 # but as the default location of the library.
25272 hardcode_minus_L_GCJ=yes
25273 fi
25274 ;;
25275
25276 hpux11*)
25277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25278 case $host_cpu in
25279 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025280 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25281 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025282 ia64*)
25283 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25284 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025285 *)
25286 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25287 ;;
25288 esac
25289 else
Reid Spencera773bd52006-08-04 18:18:08 +000025290 case $host_cpu in
25291 hppa*64*)
25292 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25293 ;;
25294 ia64*)
25295 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025296 ;;
25297 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025298 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 +000025299 ;;
25300 esac
25301 fi
25302 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025303 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25304 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025305
Reid Spencera773bd52006-08-04 18:18:08 +000025306 case $host_cpu in
25307 hppa*64*|ia64*)
25308 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25309 hardcode_direct_GCJ=no
25310 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025311 ;;
25312 *)
John Criswell47fdd832003-07-14 16:52:07 +000025313 hardcode_direct_GCJ=yes
25314 export_dynamic_flag_spec_GCJ='${wl}-E'
25315
25316 # hardcode_minus_L: Not really in the search PATH,
25317 # but as the default location of the library.
25318 hardcode_minus_L_GCJ=yes
25319 ;;
25320 esac
25321 fi
25322 ;;
25323
25324 irix5* | irix6* | nonstopux*)
25325 if test "$GCC" = yes; then
25326 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'
25327 else
25328 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'
25329 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25330 fi
25331 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25332 hardcode_libdir_separator_GCJ=:
25333 link_all_deplibs_GCJ=yes
25334 ;;
25335
25336 netbsd*)
25337 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25338 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25339 else
25340 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25341 fi
25342 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25343 hardcode_direct_GCJ=yes
25344 hardcode_shlibpath_var_GCJ=no
25345 ;;
25346
25347 newsos6)
25348 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25349 hardcode_direct_GCJ=yes
25350 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25351 hardcode_libdir_separator_GCJ=:
25352 hardcode_shlibpath_var_GCJ=no
25353 ;;
25354
25355 openbsd*)
25356 hardcode_direct_GCJ=yes
25357 hardcode_shlibpath_var_GCJ=no
25358 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25359 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025360 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 +000025361 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25362 export_dynamic_flag_spec_GCJ='${wl}-E'
25363 else
25364 case $host_os in
25365 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25366 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25367 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25368 ;;
25369 *)
25370 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25371 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25372 ;;
25373 esac
25374 fi
25375 ;;
25376
25377 os2*)
25378 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25379 hardcode_minus_L_GCJ=yes
25380 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025381 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 +000025382 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25383 ;;
25384
25385 osf3*)
25386 if test "$GCC" = yes; then
25387 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25388 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'
25389 else
25390 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25391 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'
25392 fi
25393 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25394 hardcode_libdir_separator_GCJ=:
25395 ;;
25396
25397 osf4* | osf5*) # as osf3* with the addition of -msym flag
25398 if test "$GCC" = yes; then
25399 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25400 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'
25401 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25402 else
25403 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25404 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 +000025405 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 +000025406 $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 +000025407
John Criswell47fdd832003-07-14 16:52:07 +000025408 # Both c and cxx compiler support -rpath directly
25409 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25410 fi
25411 hardcode_libdir_separator_GCJ=:
25412 ;;
25413
John Criswell47fdd832003-07-14 16:52:07 +000025414 solaris*)
25415 no_undefined_flag_GCJ=' -z text'
25416 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025417 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025418 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025419 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25420 $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 +000025421 else
Reid Spencera773bd52006-08-04 18:18:08 +000025422 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025423 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025424 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25425 $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 +000025426 fi
25427 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25428 hardcode_shlibpath_var_GCJ=no
25429 case $host_os in
25430 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025431 *)
25432 # The compiler driver will combine linker options so we
25433 # cannot just pass the convience library names through
25434 # without $wl, iff we do not link with $LD.
25435 # Luckily, gcc supports the same syntax we need for Sun Studio.
25436 # Supported since Solaris 2.6 (maybe 2.5.1?)
25437 case $wlarc in
25438 '')
25439 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25440 *)
25441 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' ;;
25442 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025443 esac
25444 link_all_deplibs_GCJ=yes
25445 ;;
25446
25447 sunos4*)
25448 if test "x$host_vendor" = xsequent; then
25449 # Use $CC to link under sequent, because it throws in some extra .o
25450 # files that make .init and .fini sections work.
25451 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25452 else
25453 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25454 fi
25455 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25456 hardcode_direct_GCJ=yes
25457 hardcode_minus_L_GCJ=yes
25458 hardcode_shlibpath_var_GCJ=no
25459 ;;
25460
25461 sysv4)
25462 case $host_vendor in
25463 sni)
25464 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25465 hardcode_direct_GCJ=yes # is this really true???
25466 ;;
25467 siemens)
25468 ## LD is ld it makes a PLAMLIB
25469 ## CC just makes a GrossModule.
25470 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25471 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25472 hardcode_direct_GCJ=no
25473 ;;
25474 motorola)
25475 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25476 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25477 ;;
25478 esac
25479 runpath_var='LD_RUN_PATH'
25480 hardcode_shlibpath_var_GCJ=no
25481 ;;
25482
25483 sysv4.3*)
25484 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25485 hardcode_shlibpath_var_GCJ=no
25486 export_dynamic_flag_spec_GCJ='-Bexport'
25487 ;;
25488
25489 sysv4*MP*)
25490 if test -d /usr/nec; then
25491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25492 hardcode_shlibpath_var_GCJ=no
25493 runpath_var=LD_RUN_PATH
25494 hardcode_runpath_var=yes
25495 ld_shlibs_GCJ=yes
25496 fi
25497 ;;
25498
Reid Spencera773bd52006-08-04 18:18:08 +000025499 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25500 no_undefined_flag_GCJ='${wl}-z,text'
25501 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025502 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025503 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025504
John Criswell47fdd832003-07-14 16:52:07 +000025505 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025506 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25507 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 +000025508 else
Reid Spencera773bd52006-08-04 18:18:08 +000025509 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25510 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 +000025511 fi
John Criswell47fdd832003-07-14 16:52:07 +000025512 ;;
25513
Reid Spencera773bd52006-08-04 18:18:08 +000025514 sysv5* | sco3.2v5* | sco5v6*)
25515 # Note: We can NOT use -z defs as we might desire, because we do not
25516 # link with -lc, and that would cause any symbols used from libc to
25517 # always be unresolved, which means just about no library would
25518 # ever link correctly. If we're not using GNU ld we use -z text
25519 # though, which does catch some bad symbols but isn't as heavy-handed
25520 # as -z defs.
25521 no_undefined_flag_GCJ='${wl}-z,text'
25522 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25523 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025524 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025525 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25526 hardcode_libdir_separator_GCJ=':'
25527 link_all_deplibs_GCJ=yes
25528 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025529 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025530
25531 if test "$GCC" = yes; then
25532 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25533 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25534 else
25535 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25536 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25537 fi
John Criswell47fdd832003-07-14 16:52:07 +000025538 ;;
25539
25540 uts4*)
25541 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25542 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25543 hardcode_shlibpath_var_GCJ=no
25544 ;;
25545
25546 *)
25547 ld_shlibs_GCJ=no
25548 ;;
25549 esac
25550 fi
25551
Reid Spencera773bd52006-08-04 18:18:08 +000025552{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25553echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025554test "$ld_shlibs_GCJ" = no && can_build_shared=no
25555
John Criswell47fdd832003-07-14 16:52:07 +000025556#
25557# Do we need to explicitly link libc?
25558#
25559case "x$archive_cmds_need_lc_GCJ" in
25560x|xyes)
25561 # Assume -lc should be added
25562 archive_cmds_need_lc_GCJ=yes
25563
25564 if test "$enable_shared" = yes && test "$GCC" = yes; then
25565 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025566 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025567 # FIXME: we may have to deal with multi-command sequences.
25568 ;;
25569 '$CC '*)
25570 # Test whether the compiler implicitly links with -lc since on some
25571 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25572 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025573 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25574echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025575 $rm conftest*
25576 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25577
25578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25579 (eval $ac_compile) 2>&5
25580 ac_status=$?
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); } 2>conftest.err; then
25583 soname=conftest
25584 lib=conftest
25585 libobjs=conftest.$ac_objext
25586 deplibs=
25587 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025588 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025589 compiler_flags=-v
25590 linker_flags=-v
25591 verstring=
25592 output_objdir=.
25593 libname=conftest
25594 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25595 allow_undefined_flag_GCJ=
25596 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25597 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25598 ac_status=$?
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); }
25601 then
25602 archive_cmds_need_lc_GCJ=no
25603 else
25604 archive_cmds_need_lc_GCJ=yes
25605 fi
25606 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25607 else
25608 cat conftest.err 1>&5
25609 fi
25610 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025611 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25612echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025613 ;;
25614 esac
25615 fi
25616 ;;
25617esac
25618
Reid Spencera773bd52006-08-04 18:18:08 +000025619{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25620echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025621library_names_spec=
25622libname_spec='lib$name'
25623soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025624shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025625postinstall_cmds=
25626postuninstall_cmds=
25627finish_cmds=
25628finish_eval=
25629shlibpath_var=
25630shlibpath_overrides_runpath=unknown
25631version_type=none
25632dynamic_linker="$host_os ld.so"
25633sys_lib_dlsearch_path_spec="/lib /usr/lib"
25634if test "$GCC" = yes; then
25635 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25636 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25637 # if the path contains ";" then we assume it to be the separator
25638 # otherwise default to the standard path separator (i.e. ":") - it is
25639 # assumed that no part of a normal pathname contains ";" but that should
25640 # okay in the real world where ";" in dirpaths is itself problematic.
25641 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25642 else
25643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25644 fi
25645else
25646 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25647fi
25648need_lib_prefix=unknown
25649hardcode_into_libs=no
25650
25651# when you set need_version to no, make sure it does not cause -set_version
25652# flags to be left without arguments
25653need_version=unknown
25654
25655case $host_os in
25656aix3*)
25657 version_type=linux
25658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25659 shlibpath_var=LIBPATH
25660
25661 # AIX 3 has no versioning support, so we append a major version to the name.
25662 soname_spec='${libname}${release}${shared_ext}$major'
25663 ;;
25664
25665aix4* | aix5*)
25666 version_type=linux
25667 need_lib_prefix=no
25668 need_version=no
25669 hardcode_into_libs=yes
25670 if test "$host_cpu" = ia64; then
25671 # AIX 5 supports IA64
25672 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25673 shlibpath_var=LD_LIBRARY_PATH
25674 else
25675 # With GCC up to 2.95.x, collect2 would create an import file
25676 # for dependence libraries. The import file would start with
25677 # the line `#! .'. This would cause the generated library to
25678 # depend on `.', always an invalid library. This was fixed in
25679 # development snapshots of GCC prior to 3.0.
25680 case $host_os in
25681 aix4 | aix4.[01] | aix4.[01].*)
25682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25683 echo ' yes '
25684 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25685 :
25686 else
25687 can_build_shared=no
25688 fi
25689 ;;
25690 esac
25691 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25692 # soname into executable. Probably we can add versioning support to
25693 # collect2, so additional links can be useful in future.
25694 if test "$aix_use_runtimelinking" = yes; then
25695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25696 # instead of lib<name>.a to let people know that these are not
25697 # typical AIX shared libraries.
25698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25699 else
25700 # We preserve .a as extension for shared libraries through AIX4.2
25701 # and later when we are not doing run time linking.
25702 library_names_spec='${libname}${release}.a $libname.a'
25703 soname_spec='${libname}${release}${shared_ext}$major'
25704 fi
25705 shlibpath_var=LIBPATH
25706 fi
25707 ;;
25708
25709amigaos*)
25710 library_names_spec='$libname.ixlibrary $libname.a'
25711 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025712 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 +000025713 ;;
25714
25715beos*)
25716 library_names_spec='${libname}${shared_ext}'
25717 dynamic_linker="$host_os ld.so"
25718 shlibpath_var=LIBRARY_PATH
25719 ;;
25720
Reid Spencer2706f8c2004-09-19 23:53:36 +000025721bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025722 version_type=linux
25723 need_version=no
25724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25725 soname_spec='${libname}${release}${shared_ext}$major'
25726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25727 shlibpath_var=LD_LIBRARY_PATH
25728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25730 # the default ld.so.conf also contains /usr/contrib/lib and
25731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25732 # libtool to hard-code these into programs
25733 ;;
25734
25735cygwin* | mingw* | pw32*)
25736 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025737 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025738 need_version=no
25739 need_lib_prefix=no
25740
25741 case $GCC,$host_os in
25742 yes,cygwin* | yes,mingw* | yes,pw32*)
25743 library_names_spec='$libname.dll.a'
25744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025745 postinstall_cmds='base_file=`basename \${file}`~
25746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25747 dldir=$destdir/`dirname \$dlpath`~
25748 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025749 $install_prog $dir/$dlname \$dldir/$dlname~
25750 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25752 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025753 $rm \$dlpath'
25754 shlibpath_overrides_runpath=yes
25755
25756 case $host_os in
25757 cygwin*)
25758 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25759 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 +000025760 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025761 ;;
25762 mingw*)
25763 # MinGW DLLs use traditional 'lib' prefix
25764 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25765 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25766 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25767 # It is most probably a Windows format PATH printed by
25768 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25769 # path with ; separators, and with drive letters. We can handle the
25770 # drive letters (cygwin fileutils understands them), so leave them,
25771 # especially as we might pass files found there to a mingw objdump,
25772 # which wouldn't understand a cygwinified path. Ahh.
25773 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25774 else
25775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25776 fi
25777 ;;
25778 pw32*)
25779 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025780 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 +000025781 ;;
25782 esac
25783 ;;
25784
25785 *)
25786 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25787 ;;
25788 esac
25789 dynamic_linker='Win32 ld.exe'
25790 # FIXME: first we should search . and the directory the executable is in
25791 shlibpath_var=PATH
25792 ;;
25793
25794darwin* | rhapsody*)
25795 dynamic_linker="$host_os dyld"
25796 version_type=darwin
25797 need_lib_prefix=no
25798 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025799 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025800 soname_spec='${libname}${release}${major}$shared_ext'
25801 shlibpath_overrides_runpath=yes
25802 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025803 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025804 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025805 if test "$GCC" = yes; then
25806 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"`
25807 else
25808 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025809 fi
25810 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25811 ;;
25812
25813dgux*)
25814 version_type=linux
25815 need_lib_prefix=no
25816 need_version=no
25817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25818 soname_spec='${libname}${release}${shared_ext}$major'
25819 shlibpath_var=LD_LIBRARY_PATH
25820 ;;
25821
25822freebsd1*)
25823 dynamic_linker=no
25824 ;;
25825
Reid Spencer2706f8c2004-09-19 23:53:36 +000025826kfreebsd*-gnu)
25827 version_type=linux
25828 need_lib_prefix=no
25829 need_version=no
25830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25831 soname_spec='${libname}${release}${shared_ext}$major'
25832 shlibpath_var=LD_LIBRARY_PATH
25833 shlibpath_overrides_runpath=no
25834 hardcode_into_libs=yes
25835 dynamic_linker='GNU ld.so'
25836 ;;
25837
Reid Spencera773bd52006-08-04 18:18:08 +000025838freebsd* | dragonfly*)
25839 # DragonFly does not have aout. When/if they implement a new
25840 # versioning mechanism, adjust this.
25841 if test -x /usr/bin/objformat; then
25842 objformat=`/usr/bin/objformat`
25843 else
25844 case $host_os in
25845 freebsd[123]*) objformat=aout ;;
25846 *) objformat=elf ;;
25847 esac
25848 fi
John Criswell47fdd832003-07-14 16:52:07 +000025849 version_type=freebsd-$objformat
25850 case $version_type in
25851 freebsd-elf*)
25852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25853 need_version=no
25854 need_lib_prefix=no
25855 ;;
25856 freebsd-*)
25857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25858 need_version=yes
25859 ;;
25860 esac
25861 shlibpath_var=LD_LIBRARY_PATH
25862 case $host_os in
25863 freebsd2*)
25864 shlibpath_overrides_runpath=yes
25865 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025866 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025867 shlibpath_overrides_runpath=yes
25868 hardcode_into_libs=yes
25869 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025870 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25871 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025872 shlibpath_overrides_runpath=no
25873 hardcode_into_libs=yes
25874 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025875 freebsd*) # from 4.6 on
25876 shlibpath_overrides_runpath=yes
25877 hardcode_into_libs=yes
25878 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025879 esac
25880 ;;
25881
25882gnu*)
25883 version_type=linux
25884 need_lib_prefix=no
25885 need_version=no
25886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25887 soname_spec='${libname}${release}${shared_ext}$major'
25888 shlibpath_var=LD_LIBRARY_PATH
25889 hardcode_into_libs=yes
25890 ;;
25891
25892hpux9* | hpux10* | hpux11*)
25893 # Give a soname corresponding to the major version so that dld.sl refuses to
25894 # link against other versions.
25895 version_type=sunos
25896 need_lib_prefix=no
25897 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025898 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025899 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025900 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025901 hardcode_into_libs=yes
25902 dynamic_linker="$host_os dld.so"
25903 shlibpath_var=LD_LIBRARY_PATH
25904 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25906 soname_spec='${libname}${release}${shared_ext}$major'
25907 if test "X$HPUX_IA64_MODE" = X32; then
25908 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25909 else
25910 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25911 fi
25912 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25913 ;;
25914 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025915 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025916 hardcode_into_libs=yes
25917 dynamic_linker="$host_os dld.sl"
25918 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25921 soname_spec='${libname}${release}${shared_ext}$major'
25922 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25924 ;;
25925 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025926 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025927 dynamic_linker="$host_os dld.sl"
25928 shlibpath_var=SHLIB_PATH
25929 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25931 soname_spec='${libname}${release}${shared_ext}$major'
25932 ;;
25933 esac
25934 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25935 postinstall_cmds='chmod 555 $lib'
25936 ;;
25937
Reid Spencera773bd52006-08-04 18:18:08 +000025938interix3*)
25939 version_type=linux
25940 need_lib_prefix=no
25941 need_version=no
25942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25943 soname_spec='${libname}${release}${shared_ext}$major'
25944 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25945 shlibpath_var=LD_LIBRARY_PATH
25946 shlibpath_overrides_runpath=no
25947 hardcode_into_libs=yes
25948 ;;
25949
John Criswell47fdd832003-07-14 16:52:07 +000025950irix5* | irix6* | nonstopux*)
25951 case $host_os in
25952 nonstopux*) version_type=nonstopux ;;
25953 *)
25954 if test "$lt_cv_prog_gnu_ld" = yes; then
25955 version_type=linux
25956 else
25957 version_type=irix
25958 fi ;;
25959 esac
25960 need_lib_prefix=no
25961 need_version=no
25962 soname_spec='${libname}${release}${shared_ext}$major'
25963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25964 case $host_os in
25965 irix5* | nonstopux*)
25966 libsuff= shlibsuff=
25967 ;;
25968 *)
25969 case $LD in # libtool.m4 will add one of these switches to LD
25970 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25971 libsuff= shlibsuff= libmagic=32-bit;;
25972 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25973 libsuff=32 shlibsuff=N32 libmagic=N32;;
25974 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25975 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25976 *) libsuff= shlibsuff= libmagic=never-match;;
25977 esac
25978 ;;
25979 esac
25980 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25981 shlibpath_overrides_runpath=no
25982 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25983 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25984 hardcode_into_libs=yes
25985 ;;
25986
25987# No shared lib support for Linux oldld, aout, or coff.
25988linux*oldld* | linux*aout* | linux*coff*)
25989 dynamic_linker=no
25990 ;;
25991
25992# This must be Linux ELF.
25993linux*)
25994 version_type=linux
25995 need_lib_prefix=no
25996 need_version=no
25997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25998 soname_spec='${libname}${release}${shared_ext}$major'
25999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26000 shlibpath_var=LD_LIBRARY_PATH
26001 shlibpath_overrides_runpath=no
26002 # This implies no fast_install, which is unacceptable.
26003 # Some rework will be needed to allow for fast_install
26004 # before this can be enabled.
26005 hardcode_into_libs=yes
26006
Reid Spencer2706f8c2004-09-19 23:53:36 +000026007 # Append ld.so.conf contents to the search path
26008 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000026009 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 +000026010 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26011 fi
26012
John Criswell47fdd832003-07-14 16:52:07 +000026013 # We used to test for /lib/ld.so.1 and disable shared libraries on
26014 # powerpc, because MkLinux only supported shared libraries with the
26015 # GNU dynamic linker. Since this was broken with cross compilers,
26016 # most powerpc-linux boxes support dynamic linking these days and
26017 # people can always --disable-shared, the test was removed, and we
26018 # assume the GNU/Linux dynamic linker is in use.
26019 dynamic_linker='GNU/Linux ld.so'
26020 ;;
26021
Reid Spencer2706f8c2004-09-19 23:53:36 +000026022knetbsd*-gnu)
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 shlibpath_var=LD_LIBRARY_PATH
26029 shlibpath_overrides_runpath=no
26030 hardcode_into_libs=yes
26031 dynamic_linker='GNU ld.so'
26032 ;;
26033
John Criswell47fdd832003-07-14 16:52:07 +000026034netbsd*)
26035 version_type=sunos
26036 need_lib_prefix=no
26037 need_version=no
26038 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26041 dynamic_linker='NetBSD (a.out) ld.so'
26042 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000026044 soname_spec='${libname}${release}${shared_ext}$major'
26045 dynamic_linker='NetBSD ld.elf_so'
26046 fi
26047 shlibpath_var=LD_LIBRARY_PATH
26048 shlibpath_overrides_runpath=yes
26049 hardcode_into_libs=yes
26050 ;;
26051
26052newsos6)
26053 version_type=linux
26054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26055 shlibpath_var=LD_LIBRARY_PATH
26056 shlibpath_overrides_runpath=yes
26057 ;;
26058
Reid Spencer2706f8c2004-09-19 23:53:36 +000026059nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000026060 version_type=linux
26061 need_lib_prefix=no
26062 need_version=no
26063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26064 soname_spec='${libname}${release}${shared_ext}$major'
26065 shlibpath_var=LD_LIBRARY_PATH
26066 shlibpath_overrides_runpath=yes
26067 ;;
26068
26069openbsd*)
26070 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000026071 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000026072 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000026073 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26074 case $host_os in
26075 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26076 *) need_version=no ;;
26077 esac
John Criswell47fdd832003-07-14 16:52:07 +000026078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26080 shlibpath_var=LD_LIBRARY_PATH
26081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26082 case $host_os in
26083 openbsd2.[89] | openbsd2.[89].*)
26084 shlibpath_overrides_runpath=no
26085 ;;
26086 *)
26087 shlibpath_overrides_runpath=yes
26088 ;;
26089 esac
26090 else
26091 shlibpath_overrides_runpath=yes
26092 fi
26093 ;;
26094
26095os2*)
26096 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000026097 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000026098 need_lib_prefix=no
26099 library_names_spec='$libname${shared_ext} $libname.a'
26100 dynamic_linker='OS/2 ld.exe'
26101 shlibpath_var=LIBPATH
26102 ;;
26103
26104osf3* | osf4* | osf5*)
26105 version_type=osf
26106 need_lib_prefix=no
26107 need_version=no
26108 soname_spec='${libname}${release}${shared_ext}$major'
26109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26110 shlibpath_var=LD_LIBRARY_PATH
26111 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26112 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26113 ;;
26114
John Criswell47fdd832003-07-14 16:52:07 +000026115solaris*)
26116 version_type=linux
26117 need_lib_prefix=no
26118 need_version=no
26119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26120 soname_spec='${libname}${release}${shared_ext}$major'
26121 shlibpath_var=LD_LIBRARY_PATH
26122 shlibpath_overrides_runpath=yes
26123 hardcode_into_libs=yes
26124 # ldd complains unless libraries are executable
26125 postinstall_cmds='chmod +x $lib'
26126 ;;
26127
26128sunos4*)
26129 version_type=sunos
26130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26131 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26132 shlibpath_var=LD_LIBRARY_PATH
26133 shlibpath_overrides_runpath=yes
26134 if test "$with_gnu_ld" = yes; then
26135 need_lib_prefix=no
26136 fi
26137 need_version=yes
26138 ;;
26139
Reid Spencera773bd52006-08-04 18:18:08 +000026140sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026141 version_type=linux
26142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26143 soname_spec='${libname}${release}${shared_ext}$major'
26144 shlibpath_var=LD_LIBRARY_PATH
26145 case $host_vendor in
26146 sni)
26147 shlibpath_overrides_runpath=no
26148 need_lib_prefix=no
26149 export_dynamic_flag_spec='${wl}-Blargedynsym'
26150 runpath_var=LD_RUN_PATH
26151 ;;
26152 siemens)
26153 need_lib_prefix=no
26154 ;;
26155 motorola)
26156 need_lib_prefix=no
26157 need_version=no
26158 shlibpath_overrides_runpath=no
26159 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26160 ;;
26161 esac
26162 ;;
26163
26164sysv4*MP*)
26165 if test -d /usr/nec ;then
26166 version_type=linux
26167 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26168 soname_spec='$libname${shared_ext}.$major'
26169 shlibpath_var=LD_LIBRARY_PATH
26170 fi
26171 ;;
26172
Reid Spencera773bd52006-08-04 18:18:08 +000026173sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26174 version_type=freebsd-elf
26175 need_lib_prefix=no
26176 need_version=no
26177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26178 soname_spec='${libname}${release}${shared_ext}$major'
26179 shlibpath_var=LD_LIBRARY_PATH
26180 hardcode_into_libs=yes
26181 if test "$with_gnu_ld" = yes; then
26182 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26183 shlibpath_overrides_runpath=no
26184 else
26185 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26186 shlibpath_overrides_runpath=yes
26187 case $host_os in
26188 sco3.2v5*)
26189 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26190 ;;
26191 esac
26192 fi
26193 sys_lib_dlsearch_path_spec='/usr/lib'
26194 ;;
26195
John Criswell47fdd832003-07-14 16:52:07 +000026196uts4*)
26197 version_type=linux
26198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26199 soname_spec='${libname}${release}${shared_ext}$major'
26200 shlibpath_var=LD_LIBRARY_PATH
26201 ;;
26202
26203*)
26204 dynamic_linker=no
26205 ;;
26206esac
Reid Spencera773bd52006-08-04 18:18:08 +000026207{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26208echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026209test "$dynamic_linker" = no && can_build_shared=no
26210
Reid Spencera773bd52006-08-04 18:18:08 +000026211variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26212if test "$GCC" = yes; then
26213 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26214fi
26215
26216{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26217echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026218hardcode_action_GCJ=
26219if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26220 test -n "$runpath_var_GCJ" || \
26221 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26222
26223 # We can hardcode non-existant directories.
26224 if test "$hardcode_direct_GCJ" != no &&
26225 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26226 # have to relink, otherwise we might link with an installed library
26227 # when we should be linking with a yet-to-be-installed one
26228 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26229 test "$hardcode_minus_L_GCJ" != no; then
26230 # Linking always hardcodes the temporary library directory.
26231 hardcode_action_GCJ=relink
26232 else
26233 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26234 hardcode_action_GCJ=immediate
26235 fi
26236else
26237 # We cannot hardcode anything, or else we can only hardcode existing
26238 # directories.
26239 hardcode_action_GCJ=unsupported
26240fi
Reid Spencera773bd52006-08-04 18:18:08 +000026241{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26242echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026243
26244if test "$hardcode_action_GCJ" = relink; then
26245 # Fast installation is not supported
26246 enable_fast_install=no
26247elif test "$shlibpath_overrides_runpath" = yes ||
26248 test "$enable_shared" = no; then
26249 # Fast installation is not necessary
26250 enable_fast_install=needless
26251fi
26252
John Criswell47fdd832003-07-14 16:52:07 +000026253
26254# The else clause should only fire when bootstrapping the
26255# libtool distribution, otherwise you forgot to ship ltmain.sh
26256# with your package, and you will get complaints that there are
26257# no rules to generate ltmain.sh.
26258if test -f "$ltmain"; then
26259 # See if we are running on zsh, and set the options which allow our commands through
26260 # without removal of \ escapes.
26261 if test -n "${ZSH_VERSION+set}" ; then
26262 setopt NO_GLOB_SUBST
26263 fi
26264 # Now quote all the things that may contain metacharacters while being
26265 # careful not to overquote the AC_SUBSTed values. We take copies of the
26266 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026267 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 +000026268 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026269 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26270 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26271 deplibs_check_method reload_flag reload_cmds need_locks \
26272 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26273 lt_cv_sys_global_symbol_to_c_name_address \
26274 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26275 old_postinstall_cmds old_postuninstall_cmds \
26276 compiler_GCJ \
26277 CC_GCJ \
26278 LD_GCJ \
26279 lt_prog_compiler_wl_GCJ \
26280 lt_prog_compiler_pic_GCJ \
26281 lt_prog_compiler_static_GCJ \
26282 lt_prog_compiler_no_builtin_flag_GCJ \
26283 export_dynamic_flag_spec_GCJ \
26284 thread_safe_flag_spec_GCJ \
26285 whole_archive_flag_spec_GCJ \
26286 enable_shared_with_static_runtimes_GCJ \
26287 old_archive_cmds_GCJ \
26288 old_archive_from_new_cmds_GCJ \
26289 predep_objects_GCJ \
26290 postdep_objects_GCJ \
26291 predeps_GCJ \
26292 postdeps_GCJ \
26293 compiler_lib_search_path_GCJ \
26294 archive_cmds_GCJ \
26295 archive_expsym_cmds_GCJ \
26296 postinstall_cmds_GCJ \
26297 postuninstall_cmds_GCJ \
26298 old_archive_from_expsyms_cmds_GCJ \
26299 allow_undefined_flag_GCJ \
26300 no_undefined_flag_GCJ \
26301 export_symbols_cmds_GCJ \
26302 hardcode_libdir_flag_spec_GCJ \
26303 hardcode_libdir_flag_spec_ld_GCJ \
26304 hardcode_libdir_separator_GCJ \
26305 hardcode_automatic_GCJ \
26306 module_cmds_GCJ \
26307 module_expsym_cmds_GCJ \
26308 lt_cv_prog_compiler_c_o_GCJ \
26309 exclude_expsyms_GCJ \
26310 include_expsyms_GCJ; do
26311
26312 case $var in
26313 old_archive_cmds_GCJ | \
26314 old_archive_from_new_cmds_GCJ | \
26315 archive_cmds_GCJ | \
26316 archive_expsym_cmds_GCJ | \
26317 module_cmds_GCJ | \
26318 module_expsym_cmds_GCJ | \
26319 old_archive_from_expsyms_cmds_GCJ | \
26320 export_symbols_cmds_GCJ | \
26321 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26322 postinstall_cmds | postuninstall_cmds | \
26323 old_postinstall_cmds | old_postuninstall_cmds | \
26324 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26325 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026326 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 +000026327 ;;
26328 *)
26329 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26330 ;;
26331 esac
26332 done
26333
26334 case $lt_echo in
26335 *'\$0 --fallback-echo"')
26336 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26337 ;;
26338 esac
26339
26340cfgfile="$ofile"
26341
26342 cat <<__EOF__ >> "$cfgfile"
26343# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26344
26345# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26346
26347# Shell to use when invoking shell scripts.
26348SHELL=$lt_SHELL
26349
26350# Whether or not to build shared libraries.
26351build_libtool_libs=$enable_shared
26352
26353# Whether or not to build static libraries.
26354build_old_libs=$enable_static
26355
26356# Whether or not to add -lc for building shared libraries.
26357build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26358
26359# Whether or not to disallow shared libs when runtime libs are static
26360allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26361
26362# Whether or not to optimize for fast installation.
26363fast_install=$enable_fast_install
26364
26365# The host system.
26366host_alias=$host_alias
26367host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026368host_os=$host_os
26369
26370# The build system.
26371build_alias=$build_alias
26372build=$build
26373build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026374
26375# An echo program that does not interpret backslashes.
26376echo=$lt_echo
26377
26378# The archiver.
26379AR=$lt_AR
26380AR_FLAGS=$lt_AR_FLAGS
26381
26382# A C compiler.
26383LTCC=$lt_LTCC
26384
Reid Spencera773bd52006-08-04 18:18:08 +000026385# LTCC compiler flags.
26386LTCFLAGS=$lt_LTCFLAGS
26387
John Criswell47fdd832003-07-14 16:52:07 +000026388# A language-specific compiler.
26389CC=$lt_compiler_GCJ
26390
26391# Is the compiler the GNU C compiler?
26392with_gcc=$GCC_GCJ
26393
26394# An ERE matcher.
26395EGREP=$lt_EGREP
26396
26397# The linker used to build libraries.
26398LD=$lt_LD_GCJ
26399
26400# Whether we need hard or soft links.
26401LN_S=$lt_LN_S
26402
26403# A BSD-compatible nm program.
26404NM=$lt_NM
26405
26406# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026407STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026408
26409# Used to examine libraries when file_magic_cmd begins "file"
26410MAGIC_CMD=$MAGIC_CMD
26411
26412# Used on cygwin: DLL creation program.
26413DLLTOOL="$DLLTOOL"
26414
26415# Used on cygwin: object dumper.
26416OBJDUMP="$OBJDUMP"
26417
26418# Used on cygwin: assembler.
26419AS="$AS"
26420
26421# The name of the directory that contains temporary libtool files.
26422objdir=$objdir
26423
26424# How to create reloadable object files.
26425reload_flag=$lt_reload_flag
26426reload_cmds=$lt_reload_cmds
26427
26428# How to pass a linker flag through the compiler.
26429wl=$lt_lt_prog_compiler_wl_GCJ
26430
26431# Object file suffix (normally "o").
26432objext="$ac_objext"
26433
26434# Old archive suffix (normally "a").
26435libext="$libext"
26436
26437# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026438shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026439
26440# Executable file suffix (normally "").
26441exeext="$exeext"
26442
26443# Additional compiler flags for building library objects.
26444pic_flag=$lt_lt_prog_compiler_pic_GCJ
26445pic_mode=$pic_mode
26446
26447# What is the maximum length of a command?
26448max_cmd_len=$lt_cv_sys_max_cmd_len
26449
26450# Does compiler simultaneously support -c and -o options?
26451compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26452
Reid Spencera773bd52006-08-04 18:18:08 +000026453# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026454need_locks=$lt_need_locks
26455
26456# Do we need the lib prefix for modules?
26457need_lib_prefix=$need_lib_prefix
26458
26459# Do we need a version for libraries?
26460need_version=$need_version
26461
26462# Whether dlopen is supported.
26463dlopen_support=$enable_dlopen
26464
26465# Whether dlopen of programs is supported.
26466dlopen_self=$enable_dlopen_self
26467
26468# Whether dlopen of statically linked programs is supported.
26469dlopen_self_static=$enable_dlopen_self_static
26470
26471# Compiler flag to prevent dynamic linking.
26472link_static_flag=$lt_lt_prog_compiler_static_GCJ
26473
26474# Compiler flag to turn off builtin functions.
26475no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26476
26477# Compiler flag to allow reflexive dlopens.
26478export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26479
26480# Compiler flag to generate shared objects directly from archives.
26481whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26482
26483# Compiler flag to generate thread-safe objects.
26484thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26485
26486# Library versioning type.
26487version_type=$version_type
26488
26489# Format of library name prefix.
26490libname_spec=$lt_libname_spec
26491
26492# List of archive names. First name is the real one, the rest are links.
26493# The last name is the one that the linker finds with -lNAME.
26494library_names_spec=$lt_library_names_spec
26495
26496# The coded name of the library, if different from the real name.
26497soname_spec=$lt_soname_spec
26498
26499# Commands used to build and install an old-style archive.
26500RANLIB=$lt_RANLIB
26501old_archive_cmds=$lt_old_archive_cmds_GCJ
26502old_postinstall_cmds=$lt_old_postinstall_cmds
26503old_postuninstall_cmds=$lt_old_postuninstall_cmds
26504
26505# Create an old-style archive from a shared archive.
26506old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26507
26508# Create a temporary old-style archive to link instead of a shared archive.
26509old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26510
26511# Commands used to build and install a shared archive.
26512archive_cmds=$lt_archive_cmds_GCJ
26513archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26514postinstall_cmds=$lt_postinstall_cmds
26515postuninstall_cmds=$lt_postuninstall_cmds
26516
26517# Commands used to build a loadable module (assumed same as above if empty)
26518module_cmds=$lt_module_cmds_GCJ
26519module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26520
26521# Commands to strip libraries.
26522old_striplib=$lt_old_striplib
26523striplib=$lt_striplib
26524
26525# Dependencies to place before the objects being linked to create a
26526# shared library.
26527predep_objects=$lt_predep_objects_GCJ
26528
26529# Dependencies to place after the objects being linked to create a
26530# shared library.
26531postdep_objects=$lt_postdep_objects_GCJ
26532
26533# Dependencies to place before the objects being linked to create a
26534# shared library.
26535predeps=$lt_predeps_GCJ
26536
26537# Dependencies to place after the objects being linked to create a
26538# shared library.
26539postdeps=$lt_postdeps_GCJ
26540
26541# The library search path used internally by the compiler when linking
26542# a shared library.
26543compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26544
26545# Method to check whether dependent libraries are shared objects.
26546deplibs_check_method=$lt_deplibs_check_method
26547
26548# Command to use when deplibs_check_method == file_magic.
26549file_magic_cmd=$lt_file_magic_cmd
26550
26551# Flag that allows shared libraries with undefined symbols to be built.
26552allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26553
26554# Flag that forces no undefined symbols.
26555no_undefined_flag=$lt_no_undefined_flag_GCJ
26556
26557# Commands used to finish a libtool library installation in a directory.
26558finish_cmds=$lt_finish_cmds
26559
26560# Same as above, but a single script fragment to be evaled but not shown.
26561finish_eval=$lt_finish_eval
26562
26563# Take the output of nm and produce a listing of raw symbols and C names.
26564global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26565
26566# Transform the output of nm in a proper C declaration
26567global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26568
26569# Transform the output of nm in a C name address pair
26570global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26571
26572# This is the shared library runtime path variable.
26573runpath_var=$runpath_var
26574
26575# This is the shared library path variable.
26576shlibpath_var=$shlibpath_var
26577
26578# Is shlibpath searched before the hard-coded library search path?
26579shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26580
26581# How to hardcode a shared library path into an executable.
26582hardcode_action=$hardcode_action_GCJ
26583
26584# Whether we should hardcode library paths into libraries.
26585hardcode_into_libs=$hardcode_into_libs
26586
26587# Flag to hardcode \$libdir into a binary during linking.
26588# This must work even if \$libdir does not exist.
26589hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26590
26591# If ld is used when linking, flag to hardcode \$libdir into
26592# a binary during linking. This must work even if \$libdir does
26593# not exist.
26594hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26595
26596# Whether we need a single -rpath flag with a separated argument.
26597hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26598
26599# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26600# resulting binary.
26601hardcode_direct=$hardcode_direct_GCJ
26602
26603# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26604# resulting binary.
26605hardcode_minus_L=$hardcode_minus_L_GCJ
26606
26607# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26608# the resulting binary.
26609hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26610
26611# Set to yes if building a shared library automatically hardcodes DIR into the library
26612# and all subsequent libraries and executables linked against it.
26613hardcode_automatic=$hardcode_automatic_GCJ
26614
26615# Variables whose values should be saved in libtool wrapper scripts and
26616# restored at relink time.
26617variables_saved_for_relink="$variables_saved_for_relink"
26618
26619# Whether libtool must link a program against all its dependency libraries.
26620link_all_deplibs=$link_all_deplibs_GCJ
26621
26622# Compile-time system search path for libraries
26623sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26624
26625# Run-time system search path for libraries
26626sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26627
26628# Fix the shell variable \$srcfile for the compiler.
26629fix_srcfile_path="$fix_srcfile_path_GCJ"
26630
26631# Set to yes if exported symbols are required.
26632always_export_symbols=$always_export_symbols_GCJ
26633
26634# The commands to list exported symbols.
26635export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26636
26637# The commands to extract the exported symbol list from a shared archive.
26638extract_expsyms_cmds=$lt_extract_expsyms_cmds
26639
26640# Symbols that should not be listed in the preloaded symbols.
26641exclude_expsyms=$lt_exclude_expsyms_GCJ
26642
26643# Symbols that must always be exported.
26644include_expsyms=$lt_include_expsyms_GCJ
26645
26646# ### END LIBTOOL TAG CONFIG: $tagname
26647
26648__EOF__
26649
26650
26651else
26652 # If there is no Makefile yet, we rely on a make rule to execute
26653 # `config.status --recheck' to rerun these tests and create the
26654 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026655 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26656 if test -f "$ltmain_in"; then
26657 test -f Makefile && make "$ltmain"
26658 fi
John Criswell47fdd832003-07-14 16:52:07 +000026659fi
26660
26661
26662ac_ext=c
26663ac_cpp='$CPP $CPPFLAGS'
26664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26666ac_compiler_gnu=$ac_cv_c_compiler_gnu
26667
26668CC="$lt_save_CC"
26669
26670 else
26671 tagname=""
26672 fi
26673 ;;
26674
26675 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026676 ac_ext=c
26677ac_cpp='$CPP $CPPFLAGS'
26678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26680ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026681
26682
26683# Source file extension for RC test sources.
26684ac_ext=rc
26685
26686# Object file extension for compiled RC test sources.
26687objext=o
26688objext_RC=$objext
26689
26690# Code to be used in simple compile tests
26691lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26692
26693# Code to be used in simple link tests
26694lt_simple_link_test_code="$lt_simple_compile_test_code"
26695
26696# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26697
26698# If no C compiler was specified, use CC.
26699LTCC=${LTCC-"$CC"}
26700
Reid Spencera773bd52006-08-04 18:18:08 +000026701# If no C compiler flags were specified, use CFLAGS.
26702LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26703
John Criswell47fdd832003-07-14 16:52:07 +000026704# Allow CC to be a program name with arguments.
26705compiler=$CC
26706
26707
Reid Spencera773bd52006-08-04 18:18:08 +000026708# save warnings/boilerplate of simple test code
26709ac_outfile=conftest.$ac_objext
26710printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26711eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26712_lt_compiler_boilerplate=`cat conftest.err`
26713$rm conftest*
26714
26715ac_outfile=conftest.$ac_objext
26716printf "$lt_simple_link_test_code" >conftest.$ac_ext
26717eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26718_lt_linker_boilerplate=`cat conftest.err`
26719$rm conftest*
26720
26721
John Criswell47fdd832003-07-14 16:52:07 +000026722# Allow CC to be a program name with arguments.
26723lt_save_CC="$CC"
26724CC=${RC-"windres"}
26725compiler=$CC
26726compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026727for cc_temp in $compiler""; do
26728 case $cc_temp in
26729 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26730 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26731 \-*) ;;
26732 *) break;;
26733 esac
26734done
26735cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26736
John Criswell47fdd832003-07-14 16:52:07 +000026737lt_cv_prog_compiler_c_o_RC=yes
26738
26739# The else clause should only fire when bootstrapping the
26740# libtool distribution, otherwise you forgot to ship ltmain.sh
26741# with your package, and you will get complaints that there are
26742# no rules to generate ltmain.sh.
26743if test -f "$ltmain"; then
26744 # See if we are running on zsh, and set the options which allow our commands through
26745 # without removal of \ escapes.
26746 if test -n "${ZSH_VERSION+set}" ; then
26747 setopt NO_GLOB_SUBST
26748 fi
26749 # Now quote all the things that may contain metacharacters while being
26750 # careful not to overquote the AC_SUBSTed values. We take copies of the
26751 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026752 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 +000026753 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026754 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26755 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26756 deplibs_check_method reload_flag reload_cmds need_locks \
26757 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26758 lt_cv_sys_global_symbol_to_c_name_address \
26759 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26760 old_postinstall_cmds old_postuninstall_cmds \
26761 compiler_RC \
26762 CC_RC \
26763 LD_RC \
26764 lt_prog_compiler_wl_RC \
26765 lt_prog_compiler_pic_RC \
26766 lt_prog_compiler_static_RC \
26767 lt_prog_compiler_no_builtin_flag_RC \
26768 export_dynamic_flag_spec_RC \
26769 thread_safe_flag_spec_RC \
26770 whole_archive_flag_spec_RC \
26771 enable_shared_with_static_runtimes_RC \
26772 old_archive_cmds_RC \
26773 old_archive_from_new_cmds_RC \
26774 predep_objects_RC \
26775 postdep_objects_RC \
26776 predeps_RC \
26777 postdeps_RC \
26778 compiler_lib_search_path_RC \
26779 archive_cmds_RC \
26780 archive_expsym_cmds_RC \
26781 postinstall_cmds_RC \
26782 postuninstall_cmds_RC \
26783 old_archive_from_expsyms_cmds_RC \
26784 allow_undefined_flag_RC \
26785 no_undefined_flag_RC \
26786 export_symbols_cmds_RC \
26787 hardcode_libdir_flag_spec_RC \
26788 hardcode_libdir_flag_spec_ld_RC \
26789 hardcode_libdir_separator_RC \
26790 hardcode_automatic_RC \
26791 module_cmds_RC \
26792 module_expsym_cmds_RC \
26793 lt_cv_prog_compiler_c_o_RC \
26794 exclude_expsyms_RC \
26795 include_expsyms_RC; do
26796
26797 case $var in
26798 old_archive_cmds_RC | \
26799 old_archive_from_new_cmds_RC | \
26800 archive_cmds_RC | \
26801 archive_expsym_cmds_RC | \
26802 module_cmds_RC | \
26803 module_expsym_cmds_RC | \
26804 old_archive_from_expsyms_cmds_RC | \
26805 export_symbols_cmds_RC | \
26806 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26807 postinstall_cmds | postuninstall_cmds | \
26808 old_postinstall_cmds | old_postuninstall_cmds | \
26809 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26810 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026811 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 +000026812 ;;
26813 *)
26814 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26815 ;;
26816 esac
26817 done
26818
26819 case $lt_echo in
26820 *'\$0 --fallback-echo"')
26821 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26822 ;;
26823 esac
26824
26825cfgfile="$ofile"
26826
26827 cat <<__EOF__ >> "$cfgfile"
26828# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26829
26830# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26831
26832# Shell to use when invoking shell scripts.
26833SHELL=$lt_SHELL
26834
26835# Whether or not to build shared libraries.
26836build_libtool_libs=$enable_shared
26837
26838# Whether or not to build static libraries.
26839build_old_libs=$enable_static
26840
26841# Whether or not to add -lc for building shared libraries.
26842build_libtool_need_lc=$archive_cmds_need_lc_RC
26843
26844# Whether or not to disallow shared libs when runtime libs are static
26845allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26846
26847# Whether or not to optimize for fast installation.
26848fast_install=$enable_fast_install
26849
26850# The host system.
26851host_alias=$host_alias
26852host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026853host_os=$host_os
26854
26855# The build system.
26856build_alias=$build_alias
26857build=$build
26858build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026859
26860# An echo program that does not interpret backslashes.
26861echo=$lt_echo
26862
26863# The archiver.
26864AR=$lt_AR
26865AR_FLAGS=$lt_AR_FLAGS
26866
26867# A C compiler.
26868LTCC=$lt_LTCC
26869
Reid Spencera773bd52006-08-04 18:18:08 +000026870# LTCC compiler flags.
26871LTCFLAGS=$lt_LTCFLAGS
26872
John Criswell47fdd832003-07-14 16:52:07 +000026873# A language-specific compiler.
26874CC=$lt_compiler_RC
26875
26876# Is the compiler the GNU C compiler?
26877with_gcc=$GCC_RC
26878
26879# An ERE matcher.
26880EGREP=$lt_EGREP
26881
26882# The linker used to build libraries.
26883LD=$lt_LD_RC
26884
26885# Whether we need hard or soft links.
26886LN_S=$lt_LN_S
26887
26888# A BSD-compatible nm program.
26889NM=$lt_NM
26890
26891# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026892STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026893
26894# Used to examine libraries when file_magic_cmd begins "file"
26895MAGIC_CMD=$MAGIC_CMD
26896
26897# Used on cygwin: DLL creation program.
26898DLLTOOL="$DLLTOOL"
26899
26900# Used on cygwin: object dumper.
26901OBJDUMP="$OBJDUMP"
26902
26903# Used on cygwin: assembler.
26904AS="$AS"
26905
26906# The name of the directory that contains temporary libtool files.
26907objdir=$objdir
26908
26909# How to create reloadable object files.
26910reload_flag=$lt_reload_flag
26911reload_cmds=$lt_reload_cmds
26912
26913# How to pass a linker flag through the compiler.
26914wl=$lt_lt_prog_compiler_wl_RC
26915
26916# Object file suffix (normally "o").
26917objext="$ac_objext"
26918
26919# Old archive suffix (normally "a").
26920libext="$libext"
26921
26922# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026923shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026924
26925# Executable file suffix (normally "").
26926exeext="$exeext"
26927
26928# Additional compiler flags for building library objects.
26929pic_flag=$lt_lt_prog_compiler_pic_RC
26930pic_mode=$pic_mode
26931
26932# What is the maximum length of a command?
26933max_cmd_len=$lt_cv_sys_max_cmd_len
26934
26935# Does compiler simultaneously support -c and -o options?
26936compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26937
Reid Spencera773bd52006-08-04 18:18:08 +000026938# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026939need_locks=$lt_need_locks
26940
26941# Do we need the lib prefix for modules?
26942need_lib_prefix=$need_lib_prefix
26943
26944# Do we need a version for libraries?
26945need_version=$need_version
26946
26947# Whether dlopen is supported.
26948dlopen_support=$enable_dlopen
26949
26950# Whether dlopen of programs is supported.
26951dlopen_self=$enable_dlopen_self
26952
26953# Whether dlopen of statically linked programs is supported.
26954dlopen_self_static=$enable_dlopen_self_static
26955
26956# Compiler flag to prevent dynamic linking.
26957link_static_flag=$lt_lt_prog_compiler_static_RC
26958
26959# Compiler flag to turn off builtin functions.
26960no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26961
26962# Compiler flag to allow reflexive dlopens.
26963export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26964
26965# Compiler flag to generate shared objects directly from archives.
26966whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26967
26968# Compiler flag to generate thread-safe objects.
26969thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26970
26971# Library versioning type.
26972version_type=$version_type
26973
26974# Format of library name prefix.
26975libname_spec=$lt_libname_spec
26976
26977# List of archive names. First name is the real one, the rest are links.
26978# The last name is the one that the linker finds with -lNAME.
26979library_names_spec=$lt_library_names_spec
26980
26981# The coded name of the library, if different from the real name.
26982soname_spec=$lt_soname_spec
26983
26984# Commands used to build and install an old-style archive.
26985RANLIB=$lt_RANLIB
26986old_archive_cmds=$lt_old_archive_cmds_RC
26987old_postinstall_cmds=$lt_old_postinstall_cmds
26988old_postuninstall_cmds=$lt_old_postuninstall_cmds
26989
26990# Create an old-style archive from a shared archive.
26991old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26992
26993# Create a temporary old-style archive to link instead of a shared archive.
26994old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26995
26996# Commands used to build and install a shared archive.
26997archive_cmds=$lt_archive_cmds_RC
26998archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26999postinstall_cmds=$lt_postinstall_cmds
27000postuninstall_cmds=$lt_postuninstall_cmds
27001
27002# Commands used to build a loadable module (assumed same as above if empty)
27003module_cmds=$lt_module_cmds_RC
27004module_expsym_cmds=$lt_module_expsym_cmds_RC
27005
27006# Commands to strip libraries.
27007old_striplib=$lt_old_striplib
27008striplib=$lt_striplib
27009
27010# Dependencies to place before the objects being linked to create a
27011# shared library.
27012predep_objects=$lt_predep_objects_RC
27013
27014# Dependencies to place after the objects being linked to create a
27015# shared library.
27016postdep_objects=$lt_postdep_objects_RC
27017
27018# Dependencies to place before the objects being linked to create a
27019# shared library.
27020predeps=$lt_predeps_RC
27021
27022# Dependencies to place after the objects being linked to create a
27023# shared library.
27024postdeps=$lt_postdeps_RC
27025
27026# The library search path used internally by the compiler when linking
27027# a shared library.
27028compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27029
27030# Method to check whether dependent libraries are shared objects.
27031deplibs_check_method=$lt_deplibs_check_method
27032
27033# Command to use when deplibs_check_method == file_magic.
27034file_magic_cmd=$lt_file_magic_cmd
27035
27036# Flag that allows shared libraries with undefined symbols to be built.
27037allow_undefined_flag=$lt_allow_undefined_flag_RC
27038
27039# Flag that forces no undefined symbols.
27040no_undefined_flag=$lt_no_undefined_flag_RC
27041
27042# Commands used to finish a libtool library installation in a directory.
27043finish_cmds=$lt_finish_cmds
27044
27045# Same as above, but a single script fragment to be evaled but not shown.
27046finish_eval=$lt_finish_eval
27047
27048# Take the output of nm and produce a listing of raw symbols and C names.
27049global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27050
27051# Transform the output of nm in a proper C declaration
27052global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27053
27054# Transform the output of nm in a C name address pair
27055global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27056
27057# This is the shared library runtime path variable.
27058runpath_var=$runpath_var
27059
27060# This is the shared library path variable.
27061shlibpath_var=$shlibpath_var
27062
27063# Is shlibpath searched before the hard-coded library search path?
27064shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27065
27066# How to hardcode a shared library path into an executable.
27067hardcode_action=$hardcode_action_RC
27068
27069# Whether we should hardcode library paths into libraries.
27070hardcode_into_libs=$hardcode_into_libs
27071
27072# Flag to hardcode \$libdir into a binary during linking.
27073# This must work even if \$libdir does not exist.
27074hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27075
27076# If ld is used when linking, flag to hardcode \$libdir into
27077# a binary during linking. This must work even if \$libdir does
27078# not exist.
27079hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27080
27081# Whether we need a single -rpath flag with a separated argument.
27082hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27083
27084# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27085# resulting binary.
27086hardcode_direct=$hardcode_direct_RC
27087
27088# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27089# resulting binary.
27090hardcode_minus_L=$hardcode_minus_L_RC
27091
27092# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27093# the resulting binary.
27094hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27095
27096# Set to yes if building a shared library automatically hardcodes DIR into the library
27097# and all subsequent libraries and executables linked against it.
27098hardcode_automatic=$hardcode_automatic_RC
27099
27100# Variables whose values should be saved in libtool wrapper scripts and
27101# restored at relink time.
27102variables_saved_for_relink="$variables_saved_for_relink"
27103
27104# Whether libtool must link a program against all its dependency libraries.
27105link_all_deplibs=$link_all_deplibs_RC
27106
27107# Compile-time system search path for libraries
27108sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27109
27110# Run-time system search path for libraries
27111sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27112
27113# Fix the shell variable \$srcfile for the compiler.
27114fix_srcfile_path="$fix_srcfile_path_RC"
27115
27116# Set to yes if exported symbols are required.
27117always_export_symbols=$always_export_symbols_RC
27118
27119# The commands to list exported symbols.
27120export_symbols_cmds=$lt_export_symbols_cmds_RC
27121
27122# The commands to extract the exported symbol list from a shared archive.
27123extract_expsyms_cmds=$lt_extract_expsyms_cmds
27124
27125# Symbols that should not be listed in the preloaded symbols.
27126exclude_expsyms=$lt_exclude_expsyms_RC
27127
27128# Symbols that must always be exported.
27129include_expsyms=$lt_include_expsyms_RC
27130
27131# ### END LIBTOOL TAG CONFIG: $tagname
27132
27133__EOF__
27134
27135
27136else
27137 # If there is no Makefile yet, we rely on a make rule to execute
27138 # `config.status --recheck' to rerun these tests and create the
27139 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027140 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27141 if test -f "$ltmain_in"; then
27142 test -f Makefile && make "$ltmain"
27143 fi
John Criswell47fdd832003-07-14 16:52:07 +000027144fi
27145
27146
27147ac_ext=c
27148ac_cpp='$CPP $CPPFLAGS'
27149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27151ac_compiler_gnu=$ac_cv_c_compiler_gnu
27152
27153CC="$lt_save_CC"
27154
27155 ;;
27156
27157 *)
27158 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27159echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27160 { (exit 1); exit 1; }; }
27161 ;;
27162 esac
27163
27164 # Append the new tag name to the list of available tags.
27165 if test -n "$tagname" ; then
27166 available_tags="$available_tags $tagname"
27167 fi
27168 fi
27169 done
27170 IFS="$lt_save_ifs"
27171
27172 # Now substitute the updated list of available tags.
27173 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27174 mv "${ofile}T" "$ofile"
27175 chmod +x "$ofile"
27176 else
27177 rm -f "${ofile}T"
27178 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27179echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27180 { (exit 1); exit 1; }; }
27181 fi
27182fi
John Criswell7a73b802003-06-30 21:59:07 +000027183
27184
27185
27186# This can be used to rebuild libtool when needed
27187LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27188
27189# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027190LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027191
27192# Prevent multiple expansion
27193
27194
27195
John Criswell47fdd832003-07-14 16:52:07 +000027196
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027213
Reid Spencer582a23c2004-12-29 07:07:57 +000027214if test "$lt_cv_dlopen_self" = "yes" ; then
27215
27216cat >>confdefs.h <<\_ACEOF
27217#define CAN_DLOPEN_SELF 1
27218_ACEOF
27219
27220fi
27221
Douglas Gregor01746742009-05-11 18:05:52 +000027222
Reid Spencer7931a782004-12-27 06:15:02 +000027223if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027224 LLVMGCC="llvm-gcc${EXEEXT}"
27225 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027226 LLVMGCCCOMMAND="$LLVMGCC"
27227 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027228 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27229
27230 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27231
Reid Spencerc84492c2005-06-02 22:34:49 +000027232 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27233set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027234{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027236if test "${ac_cv_path_LLVMGCC+set}" = set; then
27237 echo $ECHO_N "(cached) $ECHO_C" >&6
27238else
27239 case $LLVMGCC in
27240 [\\/]* | ?:[\\/]*)
27241 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27242 ;;
27243 *)
27244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27245for as_dir in $PATH
27246do
27247 IFS=$as_save_IFS
27248 test -z "$as_dir" && as_dir=.
27249 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027250 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 +000027251 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27253 break 2
27254 fi
27255done
27256done
Reid Spencera773bd52006-08-04 18:18:08 +000027257IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027258
Reid Spencer59473af2004-12-25 07:31:29 +000027259 ;;
27260esac
27261fi
27262LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027263if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027264 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27265echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027266else
Reid Spencera773bd52006-08-04 18:18:08 +000027267 { echo "$as_me:$LINENO: result: no" >&5
27268echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027269fi
27270
Reid Spencera773bd52006-08-04 18:18:08 +000027271
Reid Spencerc84492c2005-06-02 22:34:49 +000027272 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27273set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027276if test "${ac_cv_path_LLVMGXX+set}" = set; then
27277 echo $ECHO_N "(cached) $ECHO_C" >&6
27278else
27279 case $LLVMGXX in
27280 [\\/]* | ?:[\\/]*)
27281 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27282 ;;
27283 *)
27284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27285for as_dir in $PATH
27286do
27287 IFS=$as_save_IFS
27288 test -z "$as_dir" && as_dir=.
27289 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027290 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 +000027291 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27293 break 2
27294 fi
27295done
27296done
Reid Spencera773bd52006-08-04 18:18:08 +000027297IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027298
Reid Spencer59473af2004-12-25 07:31:29 +000027299 ;;
27300esac
27301fi
27302LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027303if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027304 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27305echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027306else
Reid Spencera773bd52006-08-04 18:18:08 +000027307 { echo "$as_me:$LINENO: result: no" >&5
27308echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027309fi
27310
Reid Spencera773bd52006-08-04 18:18:08 +000027311
Reid Spencer59473af2004-12-25 07:31:29 +000027312else
Devang Patel5d28b882007-12-04 22:54:47 +000027313 if test -z "$LLVMGCC"; then
27314 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027315 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000027316 fi
27317 if test -z "$LLVMGXX"; then
27318 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027319 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000027320 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027321
Reid Spencer59473af2004-12-25 07:31:29 +000027322 LLVMGCC=$LLVMGCC
27323
27324 LLVMGXX=$LLVMGXX
27325
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027326 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27327
27328 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27329
Reid Spencer59473af2004-12-25 07:31:29 +000027330fi
27331
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027332
Reid Spencera773bd52006-08-04 18:18:08 +000027333{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27334echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027335
Reid Spencer86901802004-12-08 23:07:27 +000027336ICC=no
27337IXX=no
27338case $CC in
27339 icc*|icpc*)
27340 ICC=yes
27341 IXX=yes
27342 ;;
27343 *)
27344 ;;
27345esac
27346
Duraid Madina937c60a2006-02-15 07:57:42 +000027347if test "$GCC" != "yes" && test "$ICC" != "yes"
27348then
27349 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27350echo "$as_me: error: gcc|icc required but not found" >&2;}
27351 { (exit 1); exit 1; }; }
27352fi
27353
27354if test "$GXX" != "yes" && test "$IXX" != "yes"
27355then
27356 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27357echo "$as_me: error: g++|icc required but not found" >&2;}
27358 { (exit 1); exit 1; }; }
27359fi
27360
Reid Spencer86901802004-12-08 23:07:27 +000027361if test "$GCC" = "yes"
27362then
Chris Lattner399c7c72008-02-05 19:43:53 +000027363 cat >conftest.$ac_ext <<_ACEOF
27364#if !defined(__GNUC__) || __GNUC__ < 3
27365#error Unsupported GCC version
27366#endif
27367
27368_ACEOF
27369rm -f conftest.$ac_objext
27370if { (ac_try="$ac_compile"
27371case "(($ac_try" in
27372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27373 *) ac_try_echo=$ac_try;;
27374esac
27375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27376 (eval "$ac_compile") 2>conftest.er1
27377 ac_status=$?
27378 grep -v '^ *+' conftest.er1 >conftest.err
27379 rm -f conftest.er1
27380 cat conftest.err >&5
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027382 (exit $ac_status); } &&
27383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27384 { (case "(($ac_try" in
27385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27386 *) ac_try_echo=$ac_try;;
27387esac
27388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27389 (eval "$ac_try") 2>&5
27390 ac_status=$?
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); }; } &&
27393 { ac_try='test -s conftest.$ac_objext'
27394 { (case "(($ac_try" in
27395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27396 *) ac_try_echo=$ac_try;;
27397esac
27398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27399 (eval "$ac_try") 2>&5
27400 ac_status=$?
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027403 :
27404else
27405 echo "$as_me: failed program was:" >&5
27406sed 's/^/| /' conftest.$ac_ext >&5
27407
27408 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027409echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27410 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027411fi
27412
27413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027414fi
27415
27416if test -z "$llvm_cv_gnu_make_command"
27417then
27418 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27419echo "$as_me: error: GNU Make required but not found" >&2;}
27420 { (exit 1); exit 1; }; }
27421fi
27422
Reid Spencera773bd52006-08-04 18:18:08 +000027423{ echo "$as_me:$LINENO: result: ok" >&5
27424echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027425
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000027426
27427
Reid Spencera773bd52006-08-04 18:18:08 +000027428{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27429echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027430if test "${ac_cv_lib_m_sin+set}" = set; then
27431 echo $ECHO_N "(cached) $ECHO_C" >&6
27432else
27433 ac_check_lib_save_LIBS=$LIBS
27434LIBS="-lm $LIBS"
27435cat >conftest.$ac_ext <<_ACEOF
27436/* confdefs.h. */
27437_ACEOF
27438cat confdefs.h >>conftest.$ac_ext
27439cat >>conftest.$ac_ext <<_ACEOF
27440/* end confdefs.h. */
27441
Reid Spencera773bd52006-08-04 18:18:08 +000027442/* Override any GCC internal prototype to avoid an error.
27443 Use char because int might match the return type of a GCC
27444 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027445#ifdef __cplusplus
27446extern "C"
27447#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027448char sin ();
27449int
27450main ()
27451{
Reid Spencera773bd52006-08-04 18:18:08 +000027452return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027453 ;
27454 return 0;
27455}
27456_ACEOF
27457rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027458if { (ac_try="$ac_link"
27459case "(($ac_try" in
27460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461 *) ac_try_echo=$ac_try;;
27462esac
27463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027465 ac_status=$?
27466 grep -v '^ *+' conftest.er1 >conftest.err
27467 rm -f conftest.er1
27468 cat conftest.err >&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027470 (exit $ac_status); } &&
27471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27472 { (case "(($ac_try" in
27473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474 *) ac_try_echo=$ac_try;;
27475esac
27476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477 (eval "$ac_try") 2>&5
27478 ac_status=$?
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; } &&
27481 { ac_try='test -s conftest$ac_exeext'
27482 { (case "(($ac_try" in
27483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27484 *) ac_try_echo=$ac_try;;
27485esac
27486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27487 (eval "$ac_try") 2>&5
27488 ac_status=$?
27489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027491 ac_cv_lib_m_sin=yes
27492else
27493 echo "$as_me: failed program was:" >&5
27494sed 's/^/| /' conftest.$ac_ext >&5
27495
Reid Spencera773bd52006-08-04 18:18:08 +000027496 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027497fi
Reid Spencera773bd52006-08-04 18:18:08 +000027498
Bill Wendlingebcceee2009-04-18 11:20:33 +000027499rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027500 conftest$ac_exeext conftest.$ac_ext
27501LIBS=$ac_check_lib_save_LIBS
27502fi
Reid Spencera773bd52006-08-04 18:18:08 +000027503{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27504echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027505if test $ac_cv_lib_m_sin = yes; then
27506 cat >>confdefs.h <<_ACEOF
27507#define HAVE_LIBM 1
27508_ACEOF
27509
27510 LIBS="-lm $LIBS"
27511
27512fi
27513
Jeff Cohen28783c32007-01-12 18:22:38 +000027514if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027515
Reid Spencera773bd52006-08-04 18:18:08 +000027516{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27517echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027518if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027519 echo $ECHO_N "(cached) $ECHO_C" >&6
27520else
27521 ac_check_lib_save_LIBS=$LIBS
27522LIBS="-limagehlp $LIBS"
27523cat >conftest.$ac_ext <<_ACEOF
27524/* confdefs.h. */
27525_ACEOF
27526cat confdefs.h >>conftest.$ac_ext
27527cat >>conftest.$ac_ext <<_ACEOF
27528/* end confdefs.h. */
27529
Reid Spencer48fdf912006-06-01 19:03:21 +000027530
Reid Spencer484fc8e2006-06-01 16:55:59 +000027531int
27532main ()
27533{
Reid Spencera773bd52006-08-04 18:18:08 +000027534return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027535 ;
27536 return 0;
27537}
27538_ACEOF
27539rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027540if { (ac_try="$ac_link"
27541case "(($ac_try" in
27542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27543 *) ac_try_echo=$ac_try;;
27544esac
27545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27546 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027547 ac_status=$?
27548 grep -v '^ *+' conftest.er1 >conftest.err
27549 rm -f conftest.er1
27550 cat conftest.err >&5
27551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027552 (exit $ac_status); } &&
27553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27554 { (case "(($ac_try" in
27555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556 *) ac_try_echo=$ac_try;;
27557esac
27558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559 (eval "$ac_try") 2>&5
27560 ac_status=$?
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); }; } &&
27563 { ac_try='test -s conftest$ac_exeext'
27564 { (case "(($ac_try" in
27565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27566 *) ac_try_echo=$ac_try;;
27567esac
27568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27569 (eval "$ac_try") 2>&5
27570 ac_status=$?
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027573 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027574else
27575 echo "$as_me: failed program was:" >&5
27576sed 's/^/| /' conftest.$ac_ext >&5
27577
Reid Spencera773bd52006-08-04 18:18:08 +000027578 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027579fi
Reid Spencera773bd52006-08-04 18:18:08 +000027580
Bill Wendlingebcceee2009-04-18 11:20:33 +000027581rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027582 conftest$ac_exeext conftest.$ac_ext
27583LIBS=$ac_check_lib_save_LIBS
27584fi
Reid Spencera773bd52006-08-04 18:18:08 +000027585{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27586echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027587if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027588 cat >>confdefs.h <<_ACEOF
27589#define HAVE_LIBIMAGEHLP 1
27590_ACEOF
27591
27592 LIBS="-limagehlp $LIBS"
27593
27594fi
27595
27596
Reid Spencera773bd52006-08-04 18:18:08 +000027597{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27598echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027599if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027600 echo $ECHO_N "(cached) $ECHO_C" >&6
27601else
27602 ac_check_lib_save_LIBS=$LIBS
27603LIBS="-lpsapi $LIBS"
27604cat >conftest.$ac_ext <<_ACEOF
27605/* confdefs.h. */
27606_ACEOF
27607cat confdefs.h >>conftest.$ac_ext
27608cat >>conftest.$ac_ext <<_ACEOF
27609/* end confdefs.h. */
27610
Reid Spencer48fdf912006-06-01 19:03:21 +000027611
Reid Spencer484fc8e2006-06-01 16:55:59 +000027612int
27613main ()
27614{
Reid Spencera773bd52006-08-04 18:18:08 +000027615return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027616 ;
27617 return 0;
27618}
27619_ACEOF
27620rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027621if { (ac_try="$ac_link"
27622case "(($ac_try" in
27623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27624 *) ac_try_echo=$ac_try;;
27625esac
27626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27627 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027628 ac_status=$?
27629 grep -v '^ *+' conftest.er1 >conftest.err
27630 rm -f conftest.er1
27631 cat conftest.err >&5
27632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027633 (exit $ac_status); } &&
27634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27635 { (case "(($ac_try" in
27636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27637 *) ac_try_echo=$ac_try;;
27638esac
27639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27640 (eval "$ac_try") 2>&5
27641 ac_status=$?
27642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643 (exit $ac_status); }; } &&
27644 { ac_try='test -s conftest$ac_exeext'
27645 { (case "(($ac_try" in
27646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27647 *) ac_try_echo=$ac_try;;
27648esac
27649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27650 (eval "$ac_try") 2>&5
27651 ac_status=$?
27652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027654 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027655else
27656 echo "$as_me: failed program was:" >&5
27657sed 's/^/| /' conftest.$ac_ext >&5
27658
Reid Spencera773bd52006-08-04 18:18:08 +000027659 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027660fi
Reid Spencera773bd52006-08-04 18:18:08 +000027661
Bill Wendlingebcceee2009-04-18 11:20:33 +000027662rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027663 conftest$ac_exeext conftest.$ac_ext
27664LIBS=$ac_check_lib_save_LIBS
27665fi
Reid Spencera773bd52006-08-04 18:18:08 +000027666{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27667echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027668if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027669 cat >>confdefs.h <<_ACEOF
27670#define HAVE_LIBPSAPI 1
27671_ACEOF
27672
27673 LIBS="-lpsapi $LIBS"
27674
27675fi
27676
27677fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027678
Reid Spencera773bd52006-08-04 18:18:08 +000027679{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27680echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027681if test "${ac_cv_search_dlopen+set}" = set; then
27682 echo $ECHO_N "(cached) $ECHO_C" >&6
27683else
27684 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027685cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027686/* confdefs.h. */
27687_ACEOF
27688cat confdefs.h >>conftest.$ac_ext
27689cat >>conftest.$ac_ext <<_ACEOF
27690/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027691
Reid Spencera773bd52006-08-04 18:18:08 +000027692/* Override any GCC internal prototype to avoid an error.
27693 Use char because int might match the return type of a GCC
27694 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027695#ifdef __cplusplus
27696extern "C"
27697#endif
John Criswell7a73b802003-06-30 21:59:07 +000027698char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027699int
27700main ()
27701{
Reid Spencera773bd52006-08-04 18:18:08 +000027702return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027703 ;
27704 return 0;
27705}
27706_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027707for ac_lib in '' dl; do
27708 if test -z "$ac_lib"; then
27709 ac_res="none required"
27710 else
27711 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027712 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027713 fi
27714 rm -f conftest.$ac_objext conftest$ac_exeext
27715if { (ac_try="$ac_link"
27716case "(($ac_try" in
27717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27718 *) ac_try_echo=$ac_try;;
27719esac
27720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27721 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027722 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027723 grep -v '^ *+' conftest.er1 >conftest.err
27724 rm -f conftest.er1
27725 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027727 (exit $ac_status); } &&
27728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27729 { (case "(($ac_try" in
27730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27731 *) ac_try_echo=$ac_try;;
27732esac
27733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27734 (eval "$ac_try") 2>&5
27735 ac_status=$?
27736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); }; } &&
27738 { ac_try='test -s conftest$ac_exeext'
27739 { (case "(($ac_try" in
27740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27741 *) ac_try_echo=$ac_try;;
27742esac
27743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27744 (eval "$ac_try") 2>&5
27745 ac_status=$?
27746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027748 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027749else
27750 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027751sed 's/^/| /' conftest.$ac_ext >&5
27752
Reid Spencera773bd52006-08-04 18:18:08 +000027753
John Criswell7a73b802003-06-30 21:59:07 +000027754fi
Reid Spencera773bd52006-08-04 18:18:08 +000027755
Bill Wendlingebcceee2009-04-18 11:20:33 +000027756rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027757 conftest$ac_exeext
27758 if test "${ac_cv_search_dlopen+set}" = set; then
27759 break
John Criswell7a73b802003-06-30 21:59:07 +000027760fi
Reid Spencera773bd52006-08-04 18:18:08 +000027761done
27762if test "${ac_cv_search_dlopen+set}" = set; then
27763 :
27764else
27765 ac_cv_search_dlopen=no
27766fi
27767rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027768LIBS=$ac_func_search_save_LIBS
27769fi
Reid Spencera773bd52006-08-04 18:18:08 +000027770{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27771echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27772ac_res=$ac_cv_search_dlopen
27773if test "$ac_res" != no; then
27774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027775
27776cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027777#define HAVE_DLOPEN 1
27778_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027779
27780else
Brian Gaekec45be042003-10-07 06:01:34 +000027781 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27782echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027783fi
27784
27785
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027786if test "$llvm_cv_enable_libffi" = "yes" ; then
27787 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027788echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27789if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027790 echo $ECHO_N "(cached) $ECHO_C" >&6
27791else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027792 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027793cat >conftest.$ac_ext <<_ACEOF
27794/* confdefs.h. */
27795_ACEOF
27796cat confdefs.h >>conftest.$ac_ext
27797cat >>conftest.$ac_ext <<_ACEOF
27798/* end confdefs.h. */
27799
27800/* Override any GCC internal prototype to avoid an error.
27801 Use char because int might match the return type of a GCC
27802 builtin and then its argument prototype would still apply. */
27803#ifdef __cplusplus
27804extern "C"
27805#endif
27806char ffi_call ();
27807int
27808main ()
27809{
27810return ffi_call ();
27811 ;
27812 return 0;
27813}
27814_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027815for ac_lib in '' ffi; do
27816 if test -z "$ac_lib"; then
27817 ac_res="none required"
27818 else
27819 ac_res=-l$ac_lib
27820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27821 fi
27822 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027823if { (ac_try="$ac_link"
27824case "(($ac_try" in
27825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27826 *) ac_try_echo=$ac_try;;
27827esac
27828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27829 (eval "$ac_link") 2>conftest.er1
27830 ac_status=$?
27831 grep -v '^ *+' conftest.er1 >conftest.err
27832 rm -f conftest.er1
27833 cat conftest.err >&5
27834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027835 (exit $ac_status); } &&
27836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27837 { (case "(($ac_try" in
27838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27839 *) ac_try_echo=$ac_try;;
27840esac
27841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27842 (eval "$ac_try") 2>&5
27843 ac_status=$?
27844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27845 (exit $ac_status); }; } &&
27846 { ac_try='test -s conftest$ac_exeext'
27847 { (case "(($ac_try" in
27848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27849 *) ac_try_echo=$ac_try;;
27850esac
27851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27852 (eval "$ac_try") 2>&5
27853 ac_status=$?
27854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027856 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027857else
27858 echo "$as_me: failed program was:" >&5
27859sed 's/^/| /' conftest.$ac_ext >&5
27860
Nick Lewycky267fddb2009-04-13 04:26:27 +000027861
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027862fi
27863
Bill Wendlingebcceee2009-04-18 11:20:33 +000027864rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027865 conftest$ac_exeext
27866 if test "${ac_cv_search_ffi_call+set}" = set; then
27867 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027868fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027869done
27870if test "${ac_cv_search_ffi_call+set}" = set; then
27871 :
27872else
27873 ac_cv_search_ffi_call=no
27874fi
27875rm conftest.$ac_ext
27876LIBS=$ac_func_search_save_LIBS
27877fi
27878{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27879echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27880ac_res=$ac_cv_search_ffi_call
27881if test "$ac_res" != no; then
27882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27883
27884cat >>confdefs.h <<\_ACEOF
27885#define HAVE_FFI_CALL 1
27886_ACEOF
27887
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027888else
27889 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27890echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27891fi
27892
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027893fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027894
Reid Spencera773bd52006-08-04 18:18:08 +000027895{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27896echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027897if test "${ac_cv_search_mallinfo+set}" = set; then
27898 echo $ECHO_N "(cached) $ECHO_C" >&6
27899else
27900 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027901cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027902/* confdefs.h. */
27903_ACEOF
27904cat confdefs.h >>conftest.$ac_ext
27905cat >>conftest.$ac_ext <<_ACEOF
27906/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027907
Reid Spencera773bd52006-08-04 18:18:08 +000027908/* Override any GCC internal prototype to avoid an error.
27909 Use char because int might match the return type of a GCC
27910 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027911#ifdef __cplusplus
27912extern "C"
27913#endif
John Criswell7a73b802003-06-30 21:59:07 +000027914char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027915int
27916main ()
27917{
Reid Spencera773bd52006-08-04 18:18:08 +000027918return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027919 ;
27920 return 0;
27921}
27922_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027923for ac_lib in '' malloc; do
27924 if test -z "$ac_lib"; then
27925 ac_res="none required"
27926 else
27927 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027929 fi
27930 rm -f conftest.$ac_objext conftest$ac_exeext
27931if { (ac_try="$ac_link"
27932case "(($ac_try" in
27933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27934 *) ac_try_echo=$ac_try;;
27935esac
27936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27937 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027938 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027939 grep -v '^ *+' conftest.er1 >conftest.err
27940 rm -f conftest.er1
27941 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027943 (exit $ac_status); } &&
27944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27945 { (case "(($ac_try" in
27946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27947 *) ac_try_echo=$ac_try;;
27948esac
27949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27950 (eval "$ac_try") 2>&5
27951 ac_status=$?
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; } &&
27954 { ac_try='test -s conftest$ac_exeext'
27955 { (case "(($ac_try" in
27956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27957 *) ac_try_echo=$ac_try;;
27958esac
27959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27960 (eval "$ac_try") 2>&5
27961 ac_status=$?
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027964 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027965else
27966 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027967sed 's/^/| /' conftest.$ac_ext >&5
27968
Reid Spencera773bd52006-08-04 18:18:08 +000027969
John Criswell7a73b802003-06-30 21:59:07 +000027970fi
Reid Spencera773bd52006-08-04 18:18:08 +000027971
Bill Wendlingebcceee2009-04-18 11:20:33 +000027972rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027973 conftest$ac_exeext
27974 if test "${ac_cv_search_mallinfo+set}" = set; then
27975 break
John Criswell7a73b802003-06-30 21:59:07 +000027976fi
Reid Spencera773bd52006-08-04 18:18:08 +000027977done
27978if test "${ac_cv_search_mallinfo+set}" = set; then
27979 :
27980else
27981 ac_cv_search_mallinfo=no
27982fi
27983rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027984LIBS=$ac_func_search_save_LIBS
27985fi
Reid Spencera773bd52006-08-04 18:18:08 +000027986{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27987echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27988ac_res=$ac_cv_search_mallinfo
27989if test "$ac_res" != no; then
27990 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027991
27992cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027993#define HAVE_MALLINFO 1
27994_ACEOF
27995
27996fi
27997
27998
Reid Spencer0a262ba2005-08-24 10:07:20 +000027999if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028000
Reid Spencera773bd52006-08-04 18:18:08 +000028001{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28002echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000028003if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28004 echo $ECHO_N "(cached) $ECHO_C" >&6
28005else
28006 ac_check_lib_save_LIBS=$LIBS
28007LIBS="-lpthread $LIBS"
28008cat >conftest.$ac_ext <<_ACEOF
28009/* confdefs.h. */
28010_ACEOF
28011cat confdefs.h >>conftest.$ac_ext
28012cat >>conftest.$ac_ext <<_ACEOF
28013/* end confdefs.h. */
28014
Reid Spencera773bd52006-08-04 18:18:08 +000028015/* Override any GCC internal prototype to avoid an error.
28016 Use char because int might match the return type of a GCC
28017 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000028018#ifdef __cplusplus
28019extern "C"
28020#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000028021char pthread_mutex_init ();
28022int
28023main ()
28024{
Reid Spencera773bd52006-08-04 18:18:08 +000028025return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000028026 ;
28027 return 0;
28028}
28029_ACEOF
28030rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028031if { (ac_try="$ac_link"
28032case "(($ac_try" in
28033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28034 *) ac_try_echo=$ac_try;;
28035esac
28036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28037 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000028038 ac_status=$?
28039 grep -v '^ *+' conftest.er1 >conftest.err
28040 rm -f conftest.er1
28041 cat conftest.err >&5
28042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028043 (exit $ac_status); } &&
28044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28045 { (case "(($ac_try" in
28046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28047 *) ac_try_echo=$ac_try;;
28048esac
28049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28050 (eval "$ac_try") 2>&5
28051 ac_status=$?
28052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 (exit $ac_status); }; } &&
28054 { ac_try='test -s conftest$ac_exeext'
28055 { (case "(($ac_try" in
28056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28057 *) ac_try_echo=$ac_try;;
28058esac
28059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28060 (eval "$ac_try") 2>&5
28061 ac_status=$?
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028064 ac_cv_lib_pthread_pthread_mutex_init=yes
28065else
28066 echo "$as_me: failed program was:" >&5
28067sed 's/^/| /' conftest.$ac_ext >&5
28068
Reid Spencera773bd52006-08-04 18:18:08 +000028069 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000028070fi
Reid Spencera773bd52006-08-04 18:18:08 +000028071
Bill Wendlingebcceee2009-04-18 11:20:33 +000028072rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000028073 conftest$ac_exeext conftest.$ac_ext
28074LIBS=$ac_check_lib_save_LIBS
28075fi
Reid Spencera773bd52006-08-04 18:18:08 +000028076{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28077echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000028078if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28079 cat >>confdefs.h <<_ACEOF
28080#define HAVE_LIBPTHREAD 1
28081_ACEOF
28082
28083 LIBS="-lpthread $LIBS"
28084
28085fi
28086
Reid Spencera773bd52006-08-04 18:18:08 +000028087 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28088echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000028089if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28090 echo $ECHO_N "(cached) $ECHO_C" >&6
28091else
28092 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000028093cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000028094/* confdefs.h. */
28095_ACEOF
28096cat confdefs.h >>conftest.$ac_ext
28097cat >>conftest.$ac_ext <<_ACEOF
28098/* end confdefs.h. */
28099
Reid Spencera773bd52006-08-04 18:18:08 +000028100/* Override any GCC internal prototype to avoid an error.
28101 Use char because int might match the return type of a GCC
28102 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000028103#ifdef __cplusplus
28104extern "C"
28105#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000028106char pthread_mutex_lock ();
28107int
28108main ()
28109{
Reid Spencera773bd52006-08-04 18:18:08 +000028110return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000028111 ;
28112 return 0;
28113}
28114_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028115for ac_lib in '' pthread; do
28116 if test -z "$ac_lib"; then
28117 ac_res="none required"
28118 else
28119 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000028120 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028121 fi
28122 rm -f conftest.$ac_objext conftest$ac_exeext
28123if { (ac_try="$ac_link"
28124case "(($ac_try" in
28125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28126 *) ac_try_echo=$ac_try;;
28127esac
28128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28129 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000028130 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028131 grep -v '^ *+' conftest.er1 >conftest.err
28132 rm -f conftest.er1
28133 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000028134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028135 (exit $ac_status); } &&
28136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28137 { (case "(($ac_try" in
28138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28139 *) ac_try_echo=$ac_try;;
28140esac
28141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142 (eval "$ac_try") 2>&5
28143 ac_status=$?
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); }; } &&
28146 { ac_try='test -s conftest$ac_exeext'
28147 { (case "(($ac_try" in
28148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28149 *) ac_try_echo=$ac_try;;
28150esac
28151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28152 (eval "$ac_try") 2>&5
28153 ac_status=$?
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028156 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028157else
28158 echo "$as_me: failed program was:" >&5
28159sed 's/^/| /' conftest.$ac_ext >&5
28160
Reid Spencera773bd52006-08-04 18:18:08 +000028161
Brian Gaeke5f268f72003-12-05 19:29:01 +000028162fi
Reid Spencera773bd52006-08-04 18:18:08 +000028163
Bill Wendlingebcceee2009-04-18 11:20:33 +000028164rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028165 conftest$ac_exeext
28166 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28167 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028168fi
Reid Spencera773bd52006-08-04 18:18:08 +000028169done
28170if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28171 :
28172else
28173 ac_cv_search_pthread_mutex_lock=no
28174fi
28175rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028176LIBS=$ac_func_search_save_LIBS
28177fi
Reid Spencera773bd52006-08-04 18:18:08 +000028178{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28179echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28180ac_res=$ac_cv_search_pthread_mutex_lock
28181if test "$ac_res" != no; then
28182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028183
John Criswell40468462004-09-24 21:19:06 +000028184cat >>confdefs.h <<\_ACEOF
28185#define HAVE_PTHREAD_MUTEX_LOCK 1
28186_ACEOF
28187
28188fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028189
Owen Andersonde8aed22009-06-16 18:20:20 +000028190 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28191echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28192if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28193 echo $ECHO_N "(cached) $ECHO_C" >&6
28194else
28195 ac_func_search_save_LIBS=$LIBS
28196cat >conftest.$ac_ext <<_ACEOF
28197/* confdefs.h. */
28198_ACEOF
28199cat confdefs.h >>conftest.$ac_ext
28200cat >>conftest.$ac_ext <<_ACEOF
28201/* end confdefs.h. */
28202
28203/* Override any GCC internal prototype to avoid an error.
28204 Use char because int might match the return type of a GCC
28205 builtin and then its argument prototype would still apply. */
28206#ifdef __cplusplus
28207extern "C"
28208#endif
28209char pthread_rwlock_init ();
28210int
28211main ()
28212{
28213return pthread_rwlock_init ();
28214 ;
28215 return 0;
28216}
28217_ACEOF
28218for ac_lib in '' pthread; do
28219 if test -z "$ac_lib"; then
28220 ac_res="none required"
28221 else
28222 ac_res=-l$ac_lib
28223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28224 fi
28225 rm -f conftest.$ac_objext conftest$ac_exeext
28226if { (ac_try="$ac_link"
28227case "(($ac_try" in
28228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229 *) ac_try_echo=$ac_try;;
28230esac
28231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28232 (eval "$ac_link") 2>conftest.er1
28233 ac_status=$?
28234 grep -v '^ *+' conftest.er1 >conftest.err
28235 rm -f conftest.er1
28236 cat conftest.err >&5
28237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238 (exit $ac_status); } &&
28239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28240 { (case "(($ac_try" in
28241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28242 *) ac_try_echo=$ac_try;;
28243esac
28244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28245 (eval "$ac_try") 2>&5
28246 ac_status=$?
28247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248 (exit $ac_status); }; } &&
28249 { ac_try='test -s conftest$ac_exeext'
28250 { (case "(($ac_try" in
28251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28252 *) ac_try_echo=$ac_try;;
28253esac
28254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28255 (eval "$ac_try") 2>&5
28256 ac_status=$?
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); }; }; then
28259 ac_cv_search_pthread_rwlock_init=$ac_res
28260else
28261 echo "$as_me: failed program was:" >&5
28262sed 's/^/| /' conftest.$ac_ext >&5
28263
28264
28265fi
28266
28267rm -f core conftest.err conftest.$ac_objext \
28268 conftest$ac_exeext
28269 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28270 break
28271fi
28272done
28273if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28274 :
28275else
28276 ac_cv_search_pthread_rwlock_init=no
28277fi
28278rm conftest.$ac_ext
28279LIBS=$ac_func_search_save_LIBS
28280fi
28281{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28282echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28283ac_res=$ac_cv_search_pthread_rwlock_init
28284if test "$ac_res" != no; then
28285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28286
28287cat >>confdefs.h <<\_ACEOF
28288#define HAVE_PTHREAD_RWLOCK_INIT 1
28289_ACEOF
28290
28291fi
28292
Owen Anderson27fcfe12009-06-25 23:10:26 +000028293 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28294echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28295if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28296 echo $ECHO_N "(cached) $ECHO_C" >&6
28297else
28298 ac_func_search_save_LIBS=$LIBS
28299cat >conftest.$ac_ext <<_ACEOF
28300/* confdefs.h. */
28301_ACEOF
28302cat confdefs.h >>conftest.$ac_ext
28303cat >>conftest.$ac_ext <<_ACEOF
28304/* end confdefs.h. */
28305
28306/* Override any GCC internal prototype to avoid an error.
28307 Use char because int might match the return type of a GCC
28308 builtin and then its argument prototype would still apply. */
28309#ifdef __cplusplus
28310extern "C"
28311#endif
28312char pthread_getspecific ();
28313int
28314main ()
28315{
28316return pthread_getspecific ();
28317 ;
28318 return 0;
28319}
28320_ACEOF
28321for ac_lib in '' pthread; do
28322 if test -z "$ac_lib"; then
28323 ac_res="none required"
28324 else
28325 ac_res=-l$ac_lib
28326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28327 fi
28328 rm -f conftest.$ac_objext conftest$ac_exeext
28329if { (ac_try="$ac_link"
28330case "(($ac_try" in
28331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28332 *) ac_try_echo=$ac_try;;
28333esac
28334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28335 (eval "$ac_link") 2>conftest.er1
28336 ac_status=$?
28337 grep -v '^ *+' conftest.er1 >conftest.err
28338 rm -f conftest.er1
28339 cat conftest.err >&5
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); } &&
28342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28343 { (case "(($ac_try" in
28344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28345 *) ac_try_echo=$ac_try;;
28346esac
28347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28348 (eval "$ac_try") 2>&5
28349 ac_status=$?
28350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351 (exit $ac_status); }; } &&
28352 { ac_try='test -s conftest$ac_exeext'
28353 { (case "(($ac_try" in
28354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28355 *) ac_try_echo=$ac_try;;
28356esac
28357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28358 (eval "$ac_try") 2>&5
28359 ac_status=$?
28360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); }; }; then
28362 ac_cv_search_pthread_getspecific=$ac_res
28363else
28364 echo "$as_me: failed program was:" >&5
28365sed 's/^/| /' conftest.$ac_ext >&5
28366
28367
28368fi
28369
28370rm -f core conftest.err conftest.$ac_objext \
28371 conftest$ac_exeext
28372 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28373 break
28374fi
28375done
28376if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28377 :
28378else
28379 ac_cv_search_pthread_getspecific=no
28380fi
28381rm conftest.$ac_ext
28382LIBS=$ac_func_search_save_LIBS
28383fi
28384{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28385echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28386ac_res=$ac_cv_search_pthread_getspecific
28387if test "$ac_res" != no; then
28388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28389
28390cat >>confdefs.h <<\_ACEOF
28391#define HAVE_PTHREAD_GETSPECIFIC 1
28392_ACEOF
28393
28394fi
28395
Reid Spencer0a262ba2005-08-24 10:07:20 +000028396fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028397
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028398
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028399# Check whether --with-udis86 was given.
28400if test "${with_udis86+set}" = set; then
28401 withval=$with_udis86;
28402 USE_UDIS86=1
28403
28404 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028405 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028406 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28407 esac
28408
28409{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28410echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28411if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28412 echo $ECHO_N "(cached) $ECHO_C" >&6
28413else
28414 ac_check_lib_save_LIBS=$LIBS
28415LIBS="-ludis86 $LIBS"
28416cat >conftest.$ac_ext <<_ACEOF
28417/* confdefs.h. */
28418_ACEOF
28419cat confdefs.h >>conftest.$ac_ext
28420cat >>conftest.$ac_ext <<_ACEOF
28421/* end confdefs.h. */
28422
28423/* Override any GCC internal prototype to avoid an error.
28424 Use char because int might match the return type of a GCC
28425 builtin and then its argument prototype would still apply. */
28426#ifdef __cplusplus
28427extern "C"
28428#endif
28429char ud_init ();
28430int
28431main ()
28432{
28433return ud_init ();
28434 ;
28435 return 0;
28436}
28437_ACEOF
28438rm -f conftest.$ac_objext conftest$ac_exeext
28439if { (ac_try="$ac_link"
28440case "(($ac_try" in
28441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28442 *) ac_try_echo=$ac_try;;
28443esac
28444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28445 (eval "$ac_link") 2>conftest.er1
28446 ac_status=$?
28447 grep -v '^ *+' conftest.er1 >conftest.err
28448 rm -f conftest.er1
28449 cat conftest.err >&5
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028451 (exit $ac_status); } &&
28452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28453 { (case "(($ac_try" in
28454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28455 *) ac_try_echo=$ac_try;;
28456esac
28457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28458 (eval "$ac_try") 2>&5
28459 ac_status=$?
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); }; } &&
28462 { ac_try='test -s conftest$ac_exeext'
28463 { (case "(($ac_try" in
28464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28465 *) ac_try_echo=$ac_try;;
28466esac
28467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28468 (eval "$ac_try") 2>&5
28469 ac_status=$?
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028472 ac_cv_lib_udis86_ud_init=yes
28473else
28474 echo "$as_me: failed program was:" >&5
28475sed 's/^/| /' conftest.$ac_ext >&5
28476
28477 ac_cv_lib_udis86_ud_init=no
28478fi
28479
Bill Wendlingebcceee2009-04-18 11:20:33 +000028480rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028481 conftest$ac_exeext conftest.$ac_ext
28482LIBS=$ac_check_lib_save_LIBS
28483fi
28484{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28485echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28486if test $ac_cv_lib_udis86_ud_init = yes; then
28487 cat >>confdefs.h <<_ACEOF
28488#define HAVE_LIBUDIS86 1
28489_ACEOF
28490
28491 LIBS="-ludis86 $LIBS"
28492
28493else
28494
28495 echo "Error! You need to have libudis86 around."
28496 exit -1
28497
28498fi
28499
28500
28501else
28502 USE_UDIS86=0
28503
28504fi
28505
28506
28507cat >>confdefs.h <<_ACEOF
28508#define USE_UDIS86 $USE_UDIS86
28509_ACEOF
28510
28511
28512
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028513# Check whether --with-oprofile was given.
28514if test "${with_oprofile+set}" = set; then
28515 withval=$with_oprofile;
28516 USE_OPROFILE=1
28517
28518 case "$withval" in
28519 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28520 *) llvm_cv_oppath="${withval}/lib/oprofile"
28521 CPPFLAGS="-I${withval}/include";;
28522 esac
28523 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28524 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28525echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28526if test "${ac_cv_search_op_open_agent+set}" = set; then
28527 echo $ECHO_N "(cached) $ECHO_C" >&6
28528else
28529 ac_func_search_save_LIBS=$LIBS
28530cat >conftest.$ac_ext <<_ACEOF
28531/* confdefs.h. */
28532_ACEOF
28533cat confdefs.h >>conftest.$ac_ext
28534cat >>conftest.$ac_ext <<_ACEOF
28535/* end confdefs.h. */
28536
28537/* Override any GCC internal prototype to avoid an error.
28538 Use char because int might match the return type of a GCC
28539 builtin and then its argument prototype would still apply. */
28540#ifdef __cplusplus
28541extern "C"
28542#endif
28543char op_open_agent ();
28544int
28545main ()
28546{
28547return op_open_agent ();
28548 ;
28549 return 0;
28550}
28551_ACEOF
28552for ac_lib in '' opagent; do
28553 if test -z "$ac_lib"; then
28554 ac_res="none required"
28555 else
28556 ac_res=-l$ac_lib
28557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28558 fi
28559 rm -f conftest.$ac_objext conftest$ac_exeext
28560if { (ac_try="$ac_link"
28561case "(($ac_try" in
28562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28563 *) ac_try_echo=$ac_try;;
28564esac
28565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28566 (eval "$ac_link") 2>conftest.er1
28567 ac_status=$?
28568 grep -v '^ *+' conftest.er1 >conftest.err
28569 rm -f conftest.er1
28570 cat conftest.err >&5
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); } &&
28573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28574 { (case "(($ac_try" in
28575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28576 *) ac_try_echo=$ac_try;;
28577esac
28578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28579 (eval "$ac_try") 2>&5
28580 ac_status=$?
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); }; } &&
28583 { ac_try='test -s conftest$ac_exeext'
28584 { (case "(($ac_try" in
28585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586 *) ac_try_echo=$ac_try;;
28587esac
28588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589 (eval "$ac_try") 2>&5
28590 ac_status=$?
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); }; }; then
28593 ac_cv_search_op_open_agent=$ac_res
28594else
28595 echo "$as_me: failed program was:" >&5
28596sed 's/^/| /' conftest.$ac_ext >&5
28597
28598
28599fi
28600
28601rm -f core conftest.err conftest.$ac_objext \
28602 conftest$ac_exeext
28603 if test "${ac_cv_search_op_open_agent+set}" = set; then
28604 break
28605fi
28606done
28607if test "${ac_cv_search_op_open_agent+set}" = set; then
28608 :
28609else
28610 ac_cv_search_op_open_agent=no
28611fi
28612rm conftest.$ac_ext
28613LIBS=$ac_func_search_save_LIBS
28614fi
28615{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28616echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28617ac_res=$ac_cv_search_op_open_agent
28618if test "$ac_res" != no; then
28619 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28620
28621else
28622
28623 echo "Error! You need to have libopagent around."
28624 exit -1
28625
28626fi
28627
28628 if test "${ac_cv_header_opagent_h+set}" = set; then
28629 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28630echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28631if test "${ac_cv_header_opagent_h+set}" = set; then
28632 echo $ECHO_N "(cached) $ECHO_C" >&6
28633fi
28634{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28635echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28636else
28637 # Is the header compilable?
28638{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28639echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28640cat >conftest.$ac_ext <<_ACEOF
28641/* confdefs.h. */
28642_ACEOF
28643cat confdefs.h >>conftest.$ac_ext
28644cat >>conftest.$ac_ext <<_ACEOF
28645/* end confdefs.h. */
28646$ac_includes_default
28647#include <opagent.h>
28648_ACEOF
28649rm -f conftest.$ac_objext
28650if { (ac_try="$ac_compile"
28651case "(($ac_try" in
28652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28653 *) ac_try_echo=$ac_try;;
28654esac
28655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28656 (eval "$ac_compile") 2>conftest.er1
28657 ac_status=$?
28658 grep -v '^ *+' conftest.er1 >conftest.err
28659 rm -f conftest.er1
28660 cat conftest.err >&5
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); } &&
28663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28664 { (case "(($ac_try" in
28665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666 *) ac_try_echo=$ac_try;;
28667esac
28668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28669 (eval "$ac_try") 2>&5
28670 ac_status=$?
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); }; } &&
28673 { ac_try='test -s conftest.$ac_objext'
28674 { (case "(($ac_try" in
28675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28676 *) ac_try_echo=$ac_try;;
28677esac
28678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28679 (eval "$ac_try") 2>&5
28680 ac_status=$?
28681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682 (exit $ac_status); }; }; then
28683 ac_header_compiler=yes
28684else
28685 echo "$as_me: failed program was:" >&5
28686sed 's/^/| /' conftest.$ac_ext >&5
28687
28688 ac_header_compiler=no
28689fi
28690
28691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28692{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28693echo "${ECHO_T}$ac_header_compiler" >&6; }
28694
28695# Is the header present?
28696{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28697echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28698cat >conftest.$ac_ext <<_ACEOF
28699/* confdefs.h. */
28700_ACEOF
28701cat confdefs.h >>conftest.$ac_ext
28702cat >>conftest.$ac_ext <<_ACEOF
28703/* end confdefs.h. */
28704#include <opagent.h>
28705_ACEOF
28706if { (ac_try="$ac_cpp conftest.$ac_ext"
28707case "(($ac_try" in
28708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28709 *) ac_try_echo=$ac_try;;
28710esac
28711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28713 ac_status=$?
28714 grep -v '^ *+' conftest.er1 >conftest.err
28715 rm -f conftest.er1
28716 cat conftest.err >&5
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); } >/dev/null; then
28719 if test -s conftest.err; then
28720 ac_cpp_err=$ac_c_preproc_warn_flag
28721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28722 else
28723 ac_cpp_err=
28724 fi
28725else
28726 ac_cpp_err=yes
28727fi
28728if test -z "$ac_cpp_err"; then
28729 ac_header_preproc=yes
28730else
28731 echo "$as_me: failed program was:" >&5
28732sed 's/^/| /' conftest.$ac_ext >&5
28733
28734 ac_header_preproc=no
28735fi
28736
28737rm -f conftest.err conftest.$ac_ext
28738{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28739echo "${ECHO_T}$ac_header_preproc" >&6; }
28740
28741# So? What about this header?
28742case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28743 yes:no: )
28744 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28745echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28746 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28747echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28748 ac_header_preproc=yes
28749 ;;
28750 no:yes:* )
28751 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28752echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28753 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28754echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28755 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28756echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28757 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28758echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28759 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28760echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28761 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28762echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28763 ( cat <<\_ASBOX
28764## ----------------------------------- ##
28765## Report this to llvmbugs@cs.uiuc.edu ##
28766## ----------------------------------- ##
28767_ASBOX
28768 ) | sed "s/^/$as_me: WARNING: /" >&2
28769 ;;
28770esac
28771{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28772echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28773if test "${ac_cv_header_opagent_h+set}" = set; then
28774 echo $ECHO_N "(cached) $ECHO_C" >&6
28775else
28776 ac_cv_header_opagent_h=$ac_header_preproc
28777fi
28778{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28779echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28780
28781fi
28782if test $ac_cv_header_opagent_h = yes; then
28783 :
28784else
28785
28786 echo "Error! You need to have opagent.h around."
28787 exit -1
28788
28789fi
28790
28791
28792
28793else
28794
28795 llvm_cv_old_LIBS="$LIBS"
28796 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28797 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28798echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28799if test "${ac_cv_search_op_open_agent+set}" = set; then
28800 echo $ECHO_N "(cached) $ECHO_C" >&6
28801else
28802 ac_func_search_save_LIBS=$LIBS
28803cat >conftest.$ac_ext <<_ACEOF
28804/* confdefs.h. */
28805_ACEOF
28806cat confdefs.h >>conftest.$ac_ext
28807cat >>conftest.$ac_ext <<_ACEOF
28808/* end confdefs.h. */
28809
28810/* Override any GCC internal prototype to avoid an error.
28811 Use char because int might match the return type of a GCC
28812 builtin and then its argument prototype would still apply. */
28813#ifdef __cplusplus
28814extern "C"
28815#endif
28816char op_open_agent ();
28817int
28818main ()
28819{
28820return op_open_agent ();
28821 ;
28822 return 0;
28823}
28824_ACEOF
28825for ac_lib in '' opagent; do
28826 if test -z "$ac_lib"; then
28827 ac_res="none required"
28828 else
28829 ac_res=-l$ac_lib
28830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28831 fi
28832 rm -f conftest.$ac_objext conftest$ac_exeext
28833if { (ac_try="$ac_link"
28834case "(($ac_try" in
28835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28836 *) ac_try_echo=$ac_try;;
28837esac
28838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28839 (eval "$ac_link") 2>conftest.er1
28840 ac_status=$?
28841 grep -v '^ *+' conftest.er1 >conftest.err
28842 rm -f conftest.er1
28843 cat conftest.err >&5
28844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845 (exit $ac_status); } &&
28846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28847 { (case "(($ac_try" in
28848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28849 *) ac_try_echo=$ac_try;;
28850esac
28851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28852 (eval "$ac_try") 2>&5
28853 ac_status=$?
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); }; } &&
28856 { ac_try='test -s conftest$ac_exeext'
28857 { (case "(($ac_try" in
28858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28859 *) ac_try_echo=$ac_try;;
28860esac
28861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28862 (eval "$ac_try") 2>&5
28863 ac_status=$?
28864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865 (exit $ac_status); }; }; then
28866 ac_cv_search_op_open_agent=$ac_res
28867else
28868 echo "$as_me: failed program was:" >&5
28869sed 's/^/| /' conftest.$ac_ext >&5
28870
28871
28872fi
28873
28874rm -f core conftest.err conftest.$ac_objext \
28875 conftest$ac_exeext
28876 if test "${ac_cv_search_op_open_agent+set}" = set; then
28877 break
28878fi
28879done
28880if test "${ac_cv_search_op_open_agent+set}" = set; then
28881 :
28882else
28883 ac_cv_search_op_open_agent=no
28884fi
28885rm conftest.$ac_ext
28886LIBS=$ac_func_search_save_LIBS
28887fi
28888{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28889echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28890ac_res=$ac_cv_search_op_open_agent
28891if test "$ac_res" != no; then
28892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28893 USE_OPROFILE=1
28894
28895else
28896 LIBS="$llvm_cv_old_LIBS"
28897 USE_OPROFILE=0
28898
28899fi
28900
28901 if test "${ac_cv_header_opagent_h+set}" = set; then
28902 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28903echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28904if test "${ac_cv_header_opagent_h+set}" = set; then
28905 echo $ECHO_N "(cached) $ECHO_C" >&6
28906fi
28907{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28908echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28909else
28910 # Is the header compilable?
28911{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28912echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28913cat >conftest.$ac_ext <<_ACEOF
28914/* confdefs.h. */
28915_ACEOF
28916cat confdefs.h >>conftest.$ac_ext
28917cat >>conftest.$ac_ext <<_ACEOF
28918/* end confdefs.h. */
28919$ac_includes_default
28920#include <opagent.h>
28921_ACEOF
28922rm -f conftest.$ac_objext
28923if { (ac_try="$ac_compile"
28924case "(($ac_try" in
28925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28926 *) ac_try_echo=$ac_try;;
28927esac
28928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28929 (eval "$ac_compile") 2>conftest.er1
28930 ac_status=$?
28931 grep -v '^ *+' conftest.er1 >conftest.err
28932 rm -f conftest.er1
28933 cat conftest.err >&5
28934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935 (exit $ac_status); } &&
28936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28937 { (case "(($ac_try" in
28938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28939 *) ac_try_echo=$ac_try;;
28940esac
28941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28942 (eval "$ac_try") 2>&5
28943 ac_status=$?
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); }; } &&
28946 { ac_try='test -s conftest.$ac_objext'
28947 { (case "(($ac_try" in
28948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28949 *) ac_try_echo=$ac_try;;
28950esac
28951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28952 (eval "$ac_try") 2>&5
28953 ac_status=$?
28954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955 (exit $ac_status); }; }; then
28956 ac_header_compiler=yes
28957else
28958 echo "$as_me: failed program was:" >&5
28959sed 's/^/| /' conftest.$ac_ext >&5
28960
28961 ac_header_compiler=no
28962fi
28963
28964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28965{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28966echo "${ECHO_T}$ac_header_compiler" >&6; }
28967
28968# Is the header present?
28969{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28970echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28971cat >conftest.$ac_ext <<_ACEOF
28972/* confdefs.h. */
28973_ACEOF
28974cat confdefs.h >>conftest.$ac_ext
28975cat >>conftest.$ac_ext <<_ACEOF
28976/* end confdefs.h. */
28977#include <opagent.h>
28978_ACEOF
28979if { (ac_try="$ac_cpp conftest.$ac_ext"
28980case "(($ac_try" in
28981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28982 *) ac_try_echo=$ac_try;;
28983esac
28984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28986 ac_status=$?
28987 grep -v '^ *+' conftest.er1 >conftest.err
28988 rm -f conftest.er1
28989 cat conftest.err >&5
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); } >/dev/null; then
28992 if test -s conftest.err; then
28993 ac_cpp_err=$ac_c_preproc_warn_flag
28994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28995 else
28996 ac_cpp_err=
28997 fi
28998else
28999 ac_cpp_err=yes
29000fi
29001if test -z "$ac_cpp_err"; then
29002 ac_header_preproc=yes
29003else
29004 echo "$as_me: failed program was:" >&5
29005sed 's/^/| /' conftest.$ac_ext >&5
29006
29007 ac_header_preproc=no
29008fi
29009
29010rm -f conftest.err conftest.$ac_ext
29011{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29012echo "${ECHO_T}$ac_header_preproc" >&6; }
29013
29014# So? What about this header?
29015case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29016 yes:no: )
29017 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29018echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29019 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29020echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29021 ac_header_preproc=yes
29022 ;;
29023 no:yes:* )
29024 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29025echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29026 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29027echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29028 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29029echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29031echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29032 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29033echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29034 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29035echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29036 ( cat <<\_ASBOX
29037## ----------------------------------- ##
29038## Report this to llvmbugs@cs.uiuc.edu ##
29039## ----------------------------------- ##
29040_ASBOX
29041 ) | sed "s/^/$as_me: WARNING: /" >&2
29042 ;;
29043esac
29044{ echo "$as_me:$LINENO: checking for opagent.h" >&5
29045echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29046if test "${ac_cv_header_opagent_h+set}" = set; then
29047 echo $ECHO_N "(cached) $ECHO_C" >&6
29048else
29049 ac_cv_header_opagent_h=$ac_header_preproc
29050fi
29051{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29052echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29053
29054fi
29055if test $ac_cv_header_opagent_h = yes; then
29056 :
29057else
29058
29059 LIBS="$llvm_cv_old_LIBS"
29060 USE_OPROFILE=0
29061
29062
29063fi
29064
29065
29066
29067fi
29068
29069
29070cat >>confdefs.h <<_ACEOF
29071#define USE_OPROFILE $USE_OPROFILE
29072_ACEOF
29073
29074
29075
Reid Spencer59473af2004-12-25 07:31:29 +000029076
29077
29078
29079
29080
29081ac_header_dirent=no
29082for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29083 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029084{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29085echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029087 echo $ECHO_N "(cached) $ECHO_C" >&6
29088else
29089 cat >conftest.$ac_ext <<_ACEOF
29090/* confdefs.h. */
29091_ACEOF
29092cat confdefs.h >>conftest.$ac_ext
29093cat >>conftest.$ac_ext <<_ACEOF
29094/* end confdefs.h. */
29095#include <sys/types.h>
29096#include <$ac_hdr>
29097
29098int
29099main ()
29100{
29101if ((DIR *) 0)
29102return 0;
29103 ;
29104 return 0;
29105}
29106_ACEOF
29107rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029108if { (ac_try="$ac_compile"
29109case "(($ac_try" in
29110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111 *) ac_try_echo=$ac_try;;
29112esac
29113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29114 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029115 ac_status=$?
29116 grep -v '^ *+' conftest.er1 >conftest.err
29117 rm -f conftest.er1
29118 cat conftest.err >&5
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029120 (exit $ac_status); } &&
29121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29122 { (case "(($ac_try" in
29123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29124 *) ac_try_echo=$ac_try;;
29125esac
29126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29127 (eval "$ac_try") 2>&5
29128 ac_status=$?
29129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130 (exit $ac_status); }; } &&
29131 { ac_try='test -s conftest.$ac_objext'
29132 { (case "(($ac_try" in
29133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29134 *) ac_try_echo=$ac_try;;
29135esac
29136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29137 (eval "$ac_try") 2>&5
29138 ac_status=$?
29139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029141 eval "$as_ac_Header=yes"
29142else
29143 echo "$as_me: failed program was:" >&5
29144sed 's/^/| /' conftest.$ac_ext >&5
29145
Reid Spencera773bd52006-08-04 18:18:08 +000029146 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000029147fi
Reid Spencera773bd52006-08-04 18:18:08 +000029148
29149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029150fi
Reid Spencera773bd52006-08-04 18:18:08 +000029151ac_res=`eval echo '${'$as_ac_Header'}'`
29152 { echo "$as_me:$LINENO: result: $ac_res" >&5
29153echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029154if test `eval echo '${'$as_ac_Header'}'` = yes; then
29155 cat >>confdefs.h <<_ACEOF
29156#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29157_ACEOF
29158
29159ac_header_dirent=$ac_hdr; break
29160fi
29161
29162done
29163# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29164if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000029165 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29166echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029167if test "${ac_cv_search_opendir+set}" = set; then
29168 echo $ECHO_N "(cached) $ECHO_C" >&6
29169else
29170 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029171cat >conftest.$ac_ext <<_ACEOF
29172/* confdefs.h. */
29173_ACEOF
29174cat confdefs.h >>conftest.$ac_ext
29175cat >>conftest.$ac_ext <<_ACEOF
29176/* end confdefs.h. */
29177
Reid Spencera773bd52006-08-04 18:18:08 +000029178/* Override any GCC internal prototype to avoid an error.
29179 Use char because int might match the return type of a GCC
29180 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029181#ifdef __cplusplus
29182extern "C"
29183#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029184char opendir ();
29185int
29186main ()
29187{
Reid Spencera773bd52006-08-04 18:18:08 +000029188return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029189 ;
29190 return 0;
29191}
29192_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029193for ac_lib in '' dir; do
29194 if test -z "$ac_lib"; then
29195 ac_res="none required"
29196 else
29197 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029199 fi
29200 rm -f conftest.$ac_objext conftest$ac_exeext
29201if { (ac_try="$ac_link"
29202case "(($ac_try" in
29203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29204 *) ac_try_echo=$ac_try;;
29205esac
29206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29207 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029208 ac_status=$?
29209 grep -v '^ *+' conftest.er1 >conftest.err
29210 rm -f conftest.er1
29211 cat conftest.err >&5
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029213 (exit $ac_status); } &&
29214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29215 { (case "(($ac_try" in
29216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29217 *) ac_try_echo=$ac_try;;
29218esac
29219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29220 (eval "$ac_try") 2>&5
29221 ac_status=$?
29222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223 (exit $ac_status); }; } &&
29224 { ac_try='test -s conftest$ac_exeext'
29225 { (case "(($ac_try" in
29226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29227 *) ac_try_echo=$ac_try;;
29228esac
29229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29230 (eval "$ac_try") 2>&5
29231 ac_status=$?
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029234 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029235else
29236 echo "$as_me: failed program was:" >&5
29237sed 's/^/| /' conftest.$ac_ext >&5
29238
Reid Spencera773bd52006-08-04 18:18:08 +000029239
Reid Spencer59473af2004-12-25 07:31:29 +000029240fi
Reid Spencera773bd52006-08-04 18:18:08 +000029241
Bill Wendlingebcceee2009-04-18 11:20:33 +000029242rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029243 conftest$ac_exeext
29244 if test "${ac_cv_search_opendir+set}" = set; then
29245 break
Reid Spencer59473af2004-12-25 07:31:29 +000029246fi
Reid Spencera773bd52006-08-04 18:18:08 +000029247done
29248if test "${ac_cv_search_opendir+set}" = set; then
29249 :
29250else
29251 ac_cv_search_opendir=no
29252fi
29253rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029254LIBS=$ac_func_search_save_LIBS
29255fi
Reid Spencera773bd52006-08-04 18:18:08 +000029256{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29257echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29258ac_res=$ac_cv_search_opendir
29259if test "$ac_res" != no; then
29260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029261
29262fi
29263
29264else
Reid Spencera773bd52006-08-04 18:18:08 +000029265 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29266echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029267if test "${ac_cv_search_opendir+set}" = set; then
29268 echo $ECHO_N "(cached) $ECHO_C" >&6
29269else
29270 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029271cat >conftest.$ac_ext <<_ACEOF
29272/* confdefs.h. */
29273_ACEOF
29274cat confdefs.h >>conftest.$ac_ext
29275cat >>conftest.$ac_ext <<_ACEOF
29276/* end confdefs.h. */
29277
Reid Spencera773bd52006-08-04 18:18:08 +000029278/* Override any GCC internal prototype to avoid an error.
29279 Use char because int might match the return type of a GCC
29280 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029281#ifdef __cplusplus
29282extern "C"
29283#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029284char opendir ();
29285int
29286main ()
29287{
Reid Spencera773bd52006-08-04 18:18:08 +000029288return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029289 ;
29290 return 0;
29291}
29292_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029293for ac_lib in '' x; do
29294 if test -z "$ac_lib"; then
29295 ac_res="none required"
29296 else
29297 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029299 fi
29300 rm -f conftest.$ac_objext conftest$ac_exeext
29301if { (ac_try="$ac_link"
29302case "(($ac_try" in
29303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29304 *) ac_try_echo=$ac_try;;
29305esac
29306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29307 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029308 ac_status=$?
29309 grep -v '^ *+' conftest.er1 >conftest.err
29310 rm -f conftest.er1
29311 cat conftest.err >&5
29312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029313 (exit $ac_status); } &&
29314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29315 { (case "(($ac_try" in
29316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29317 *) ac_try_echo=$ac_try;;
29318esac
29319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29320 (eval "$ac_try") 2>&5
29321 ac_status=$?
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; } &&
29324 { ac_try='test -s conftest$ac_exeext'
29325 { (case "(($ac_try" in
29326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29327 *) ac_try_echo=$ac_try;;
29328esac
29329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29330 (eval "$ac_try") 2>&5
29331 ac_status=$?
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029334 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029335else
29336 echo "$as_me: failed program was:" >&5
29337sed 's/^/| /' conftest.$ac_ext >&5
29338
Reid Spencera773bd52006-08-04 18:18:08 +000029339
Reid Spencer59473af2004-12-25 07:31:29 +000029340fi
Reid Spencera773bd52006-08-04 18:18:08 +000029341
Bill Wendlingebcceee2009-04-18 11:20:33 +000029342rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029343 conftest$ac_exeext
29344 if test "${ac_cv_search_opendir+set}" = set; then
29345 break
Reid Spencer59473af2004-12-25 07:31:29 +000029346fi
Reid Spencera773bd52006-08-04 18:18:08 +000029347done
29348if test "${ac_cv_search_opendir+set}" = set; then
29349 :
29350else
29351 ac_cv_search_opendir=no
29352fi
29353rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029354LIBS=$ac_func_search_save_LIBS
29355fi
Reid Spencera773bd52006-08-04 18:18:08 +000029356{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29357echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29358ac_res=$ac_cv_search_opendir
29359if test "$ac_res" != no; then
29360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029361
29362fi
29363
29364fi
29365
Reid Spencera773bd52006-08-04 18:18:08 +000029366{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29367echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029368if test "${ac_cv_header_mmap_anon+set}" = set; then
29369 echo $ECHO_N "(cached) $ECHO_C" >&6
29370else
29371 ac_ext=c
29372ac_cpp='$CPP $CPPFLAGS'
29373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29375ac_compiler_gnu=$ac_cv_c_compiler_gnu
29376
29377 cat >conftest.$ac_ext <<_ACEOF
29378/* confdefs.h. */
29379_ACEOF
29380cat confdefs.h >>conftest.$ac_ext
29381cat >>conftest.$ac_ext <<_ACEOF
29382/* end confdefs.h. */
29383#include <sys/mman.h>
29384#include <unistd.h>
29385#include <fcntl.h>
29386int
29387main ()
29388{
29389mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29390 ;
29391 return 0;
29392}
29393_ACEOF
29394rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029395if { (ac_try="$ac_compile"
29396case "(($ac_try" in
29397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29398 *) ac_try_echo=$ac_try;;
29399esac
29400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29401 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029402 ac_status=$?
29403 grep -v '^ *+' conftest.er1 >conftest.err
29404 rm -f conftest.er1
29405 cat conftest.err >&5
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029407 (exit $ac_status); } &&
29408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29409 { (case "(($ac_try" in
29410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29411 *) ac_try_echo=$ac_try;;
29412esac
29413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29414 (eval "$ac_try") 2>&5
29415 ac_status=$?
29416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417 (exit $ac_status); }; } &&
29418 { ac_try='test -s conftest.$ac_objext'
29419 { (case "(($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_try") 2>&5
29425 ac_status=$?
29426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029428 ac_cv_header_mmap_anon=yes
29429else
29430 echo "$as_me: failed program was:" >&5
29431sed 's/^/| /' conftest.$ac_ext >&5
29432
Reid Spencera773bd52006-08-04 18:18:08 +000029433 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000029434fi
Reid Spencera773bd52006-08-04 18:18:08 +000029435
29436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029437 ac_ext=c
29438ac_cpp='$CPP $CPPFLAGS'
29439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29441ac_compiler_gnu=$ac_cv_c_compiler_gnu
29442
29443
29444fi
Reid Spencera773bd52006-08-04 18:18:08 +000029445{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29446echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029447if test "$ac_cv_header_mmap_anon" = yes; then
29448
29449cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000029450#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000029451_ACEOF
29452
29453fi
29454
Reid Spencera773bd52006-08-04 18:18:08 +000029455{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29456echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029457if test "${ac_cv_header_stat_broken+set}" = set; then
29458 echo $ECHO_N "(cached) $ECHO_C" >&6
29459else
29460 cat >conftest.$ac_ext <<_ACEOF
29461/* confdefs.h. */
29462_ACEOF
29463cat confdefs.h >>conftest.$ac_ext
29464cat >>conftest.$ac_ext <<_ACEOF
29465/* end confdefs.h. */
29466#include <sys/types.h>
29467#include <sys/stat.h>
29468
Reid Spencera773bd52006-08-04 18:18:08 +000029469#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029470# if S_ISBLK (S_IFDIR)
29471You lose.
29472# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029473#endif
29474
Reid Spencera773bd52006-08-04 18:18:08 +000029475#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029476# if S_ISBLK (S_IFCHR)
29477You lose.
29478# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029479#endif
29480
Reid Spencera773bd52006-08-04 18:18:08 +000029481#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029482# if S_ISLNK (S_IFREG)
29483You lose.
29484# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029485#endif
29486
Reid Spencera773bd52006-08-04 18:18:08 +000029487#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029488# if S_ISSOCK (S_IFREG)
29489You lose.
29490# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029491#endif
29492
29493_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000029494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29495 $EGREP "You lose" >/dev/null 2>&1; then
29496 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029497else
Bill Wendlingebcceee2009-04-18 11:20:33 +000029498 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029499fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000029500rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029501
Reid Spencer59473af2004-12-25 07:31:29 +000029502fi
Reid Spencera773bd52006-08-04 18:18:08 +000029503{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29504echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029505if test $ac_cv_header_stat_broken = yes; then
29506
29507cat >>confdefs.h <<\_ACEOF
29508#define STAT_MACROS_BROKEN 1
29509_ACEOF
29510
29511fi
29512
Reid Spencera773bd52006-08-04 18:18:08 +000029513{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29514echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029515if test "${ac_cv_header_stdc+set}" = set; then
29516 echo $ECHO_N "(cached) $ECHO_C" >&6
29517else
29518 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029519/* confdefs.h. */
29520_ACEOF
29521cat confdefs.h >>conftest.$ac_ext
29522cat >>conftest.$ac_ext <<_ACEOF
29523/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029524#include <stdlib.h>
29525#include <stdarg.h>
29526#include <string.h>
29527#include <float.h>
29528
John Criswell0c38eaf2003-09-10 15:17:25 +000029529int
29530main ()
29531{
29532
29533 ;
29534 return 0;
29535}
John Criswell7a73b802003-06-30 21:59:07 +000029536_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029537rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029538if { (ac_try="$ac_compile"
29539case "(($ac_try" in
29540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29541 *) ac_try_echo=$ac_try;;
29542esac
29543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29544 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029545 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029546 grep -v '^ *+' conftest.er1 >conftest.err
29547 rm -f conftest.er1
29548 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029550 (exit $ac_status); } &&
29551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29552 { (case "(($ac_try" in
29553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29554 *) ac_try_echo=$ac_try;;
29555esac
29556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29557 (eval "$ac_try") 2>&5
29558 ac_status=$?
29559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560 (exit $ac_status); }; } &&
29561 { ac_try='test -s conftest.$ac_objext'
29562 { (case "(($ac_try" in
29563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564 *) ac_try_echo=$ac_try;;
29565esac
29566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29567 (eval "$ac_try") 2>&5
29568 ac_status=$?
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029571 ac_cv_header_stdc=yes
29572else
29573 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029574sed 's/^/| /' conftest.$ac_ext >&5
29575
Reid Spencera773bd52006-08-04 18:18:08 +000029576 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000029577fi
Reid Spencera773bd52006-08-04 18:18:08 +000029578
29579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029580
29581if test $ac_cv_header_stdc = yes; then
29582 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29583 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029584/* confdefs.h. */
29585_ACEOF
29586cat confdefs.h >>conftest.$ac_ext
29587cat >>conftest.$ac_ext <<_ACEOF
29588/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029589#include <string.h>
29590
29591_ACEOF
29592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029593 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029594 :
29595else
29596 ac_cv_header_stdc=no
29597fi
29598rm -f conftest*
29599
29600fi
29601
29602if test $ac_cv_header_stdc = yes; then
29603 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29604 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029605/* confdefs.h. */
29606_ACEOF
29607cat confdefs.h >>conftest.$ac_ext
29608cat >>conftest.$ac_ext <<_ACEOF
29609/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029610#include <stdlib.h>
29611
29612_ACEOF
29613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029614 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029615 :
29616else
29617 ac_cv_header_stdc=no
29618fi
29619rm -f conftest*
29620
29621fi
29622
29623if test $ac_cv_header_stdc = yes; then
29624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29625 if test "$cross_compiling" = yes; then
29626 :
29627else
29628 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029629/* confdefs.h. */
29630_ACEOF
29631cat confdefs.h >>conftest.$ac_ext
29632cat >>conftest.$ac_ext <<_ACEOF
29633/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029634#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000029635#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000029636#if ((' ' & 0x0FF) == 0x020)
29637# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29638# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29639#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029640# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029641 (('a' <= (c) && (c) <= 'i') \
29642 || ('j' <= (c) && (c) <= 'r') \
29643 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000029644# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29645#endif
29646
29647#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29648int
29649main ()
29650{
29651 int i;
29652 for (i = 0; i < 256; i++)
29653 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000029654 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000029655 return 2;
29656 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029657}
29658_ACEOF
29659rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029660if { (ac_try="$ac_link"
29661case "(($ac_try" in
29662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29663 *) ac_try_echo=$ac_try;;
29664esac
29665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29666 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029667 ac_status=$?
29668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029670 { (case "(($ac_try" in
29671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672 *) ac_try_echo=$ac_try;;
29673esac
29674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029676 ac_status=$?
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); }; }; then
29679 :
29680else
29681 echo "$as_me: program exited with status $ac_status" >&5
29682echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029683sed 's/^/| /' conftest.$ac_ext >&5
29684
John Criswell7a73b802003-06-30 21:59:07 +000029685( exit $ac_status )
29686ac_cv_header_stdc=no
29687fi
Reid Spencera773bd52006-08-04 18:18:08 +000029688rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29689fi
29690
29691
John Criswell7a73b802003-06-30 21:59:07 +000029692fi
29693fi
Reid Spencera773bd52006-08-04 18:18:08 +000029694{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29695echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029696if test $ac_cv_header_stdc = yes; then
29697
29698cat >>confdefs.h <<\_ACEOF
29699#define STDC_HEADERS 1
29700_ACEOF
29701
29702fi
29703
Reid Spencera773bd52006-08-04 18:18:08 +000029704{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29705echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029706if test "${ac_cv_header_sys_wait_h+set}" = set; then
29707 echo $ECHO_N "(cached) $ECHO_C" >&6
29708else
29709 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029710/* confdefs.h. */
29711_ACEOF
29712cat confdefs.h >>conftest.$ac_ext
29713cat >>conftest.$ac_ext <<_ACEOF
29714/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029715#include <sys/types.h>
29716#include <sys/wait.h>
29717#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000029718# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000029719#endif
29720#ifndef WIFEXITED
29721# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29722#endif
29723
John Criswell7a73b802003-06-30 21:59:07 +000029724int
29725main ()
29726{
29727 int s;
29728 wait (&s);
29729 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29730 ;
29731 return 0;
29732}
29733_ACEOF
29734rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029735if { (ac_try="$ac_compile"
29736case "(($ac_try" in
29737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29738 *) ac_try_echo=$ac_try;;
29739esac
29740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29741 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029742 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029743 grep -v '^ *+' conftest.er1 >conftest.err
29744 rm -f conftest.er1
29745 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029747 (exit $ac_status); } &&
29748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29749 { (case "(($ac_try" in
29750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29751 *) ac_try_echo=$ac_try;;
29752esac
29753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29754 (eval "$ac_try") 2>&5
29755 ac_status=$?
29756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757 (exit $ac_status); }; } &&
29758 { ac_try='test -s conftest.$ac_objext'
29759 { (case "(($ac_try" in
29760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29761 *) ac_try_echo=$ac_try;;
29762esac
29763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29764 (eval "$ac_try") 2>&5
29765 ac_status=$?
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029768 ac_cv_header_sys_wait_h=yes
29769else
29770 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029771sed 's/^/| /' conftest.$ac_ext >&5
29772
Reid Spencera773bd52006-08-04 18:18:08 +000029773 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000029774fi
Reid Spencera773bd52006-08-04 18:18:08 +000029775
29776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029777fi
Reid Spencera773bd52006-08-04 18:18:08 +000029778{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29779echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029780if test $ac_cv_header_sys_wait_h = yes; then
29781
29782cat >>confdefs.h <<\_ACEOF
29783#define HAVE_SYS_WAIT_H 1
29784_ACEOF
29785
29786fi
29787
Reid Spencera773bd52006-08-04 18:18:08 +000029788{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29789echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029790if test "${ac_cv_header_time+set}" = set; then
29791 echo $ECHO_N "(cached) $ECHO_C" >&6
29792else
29793 cat >conftest.$ac_ext <<_ACEOF
29794/* confdefs.h. */
29795_ACEOF
29796cat confdefs.h >>conftest.$ac_ext
29797cat >>conftest.$ac_ext <<_ACEOF
29798/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029799#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029800#include <sys/time.h>
29801#include <time.h>
29802
29803int
29804main ()
29805{
29806if ((struct tm *) 0)
29807return 0;
29808 ;
29809 return 0;
29810}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029811_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029812rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029813if { (ac_try="$ac_compile"
29814case "(($ac_try" in
29815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816 *) ac_try_echo=$ac_try;;
29817esac
29818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029820 ac_status=$?
29821 grep -v '^ *+' conftest.er1 >conftest.err
29822 rm -f conftest.er1
29823 cat conftest.err >&5
29824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029825 (exit $ac_status); } &&
29826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29827 { (case "(($ac_try" in
29828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29829 *) ac_try_echo=$ac_try;;
29830esac
29831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29832 (eval "$ac_try") 2>&5
29833 ac_status=$?
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; } &&
29836 { ac_try='test -s conftest.$ac_objext'
29837 { (case "(($ac_try" in
29838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29839 *) ac_try_echo=$ac_try;;
29840esac
29841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29842 (eval "$ac_try") 2>&5
29843 ac_status=$?
29844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029846 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029847else
29848 echo "$as_me: failed program was:" >&5
29849sed 's/^/| /' conftest.$ac_ext >&5
29850
Reid Spencera773bd52006-08-04 18:18:08 +000029851 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029852fi
Reid Spencera773bd52006-08-04 18:18:08 +000029853
29854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029855fi
Reid Spencera773bd52006-08-04 18:18:08 +000029856{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29857echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029858if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029859
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029860cat >>confdefs.h <<\_ACEOF
29861#define TIME_WITH_SYS_TIME 1
29862_ACEOF
29863
29864fi
29865
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029866
Reid Spencer59473af2004-12-25 07:31:29 +000029867
29868
29869
29870
29871
29872
29873for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29874do
29875as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029880 echo $ECHO_N "(cached) $ECHO_C" >&6
29881fi
Reid Spencera773bd52006-08-04 18:18:08 +000029882ac_res=`eval echo '${'$as_ac_Header'}'`
29883 { echo "$as_me:$LINENO: result: $ac_res" >&5
29884echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029885else
29886 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029887{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29888echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029889cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029890/* confdefs.h. */
29891_ACEOF
29892cat confdefs.h >>conftest.$ac_ext
29893cat >>conftest.$ac_ext <<_ACEOF
29894/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029895$ac_includes_default
29896#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029897_ACEOF
29898rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029899if { (ac_try="$ac_compile"
29900case "(($ac_try" in
29901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29902 *) ac_try_echo=$ac_try;;
29903esac
29904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29905 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029906 ac_status=$?
29907 grep -v '^ *+' conftest.er1 >conftest.err
29908 rm -f conftest.er1
29909 cat conftest.err >&5
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029911 (exit $ac_status); } &&
29912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29913 { (case "(($ac_try" in
29914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29915 *) ac_try_echo=$ac_try;;
29916esac
29917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29918 (eval "$ac_try") 2>&5
29919 ac_status=$?
29920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921 (exit $ac_status); }; } &&
29922 { ac_try='test -s conftest.$ac_objext'
29923 { (case "(($ac_try" in
29924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29925 *) ac_try_echo=$ac_try;;
29926esac
29927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29928 (eval "$ac_try") 2>&5
29929 ac_status=$?
29930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029932 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029933else
29934 echo "$as_me: failed program was:" >&5
29935sed 's/^/| /' conftest.$ac_ext >&5
29936
Reid Spencera773bd52006-08-04 18:18:08 +000029937 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029938fi
Reid Spencera773bd52006-08-04 18:18:08 +000029939
29940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29941{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29942echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029943
Reid Spencer59473af2004-12-25 07:31:29 +000029944# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029945{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29946echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029947cat >conftest.$ac_ext <<_ACEOF
29948/* confdefs.h. */
29949_ACEOF
29950cat confdefs.h >>conftest.$ac_ext
29951cat >>conftest.$ac_ext <<_ACEOF
29952/* end confdefs.h. */
29953#include <$ac_header>
29954_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029955if { (ac_try="$ac_cpp conftest.$ac_ext"
29956case "(($ac_try" in
29957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29958 *) ac_try_echo=$ac_try;;
29959esac
29960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029962 ac_status=$?
29963 grep -v '^ *+' conftest.er1 >conftest.err
29964 rm -f conftest.er1
29965 cat conftest.err >&5
29966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029967 (exit $ac_status); } >/dev/null; then
29968 if test -s conftest.err; then
29969 ac_cpp_err=$ac_c_preproc_warn_flag
29970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29971 else
29972 ac_cpp_err=
29973 fi
29974else
29975 ac_cpp_err=yes
29976fi
29977if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029978 ac_header_preproc=yes
29979else
29980 echo "$as_me: failed program was:" >&5
29981sed 's/^/| /' conftest.$ac_ext >&5
29982
29983 ac_header_preproc=no
29984fi
Reid Spencera773bd52006-08-04 18:18:08 +000029985
Reid Spencer59473af2004-12-25 07:31:29 +000029986rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029987{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29988echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029989
29990# So? What about this header?
29991case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29992 yes:no: )
29993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29994echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29996echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29997 ac_header_preproc=yes
29998 ;;
29999 no:yes:* )
30000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30001echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30003echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30005echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30007echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30009echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30011echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030012 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030013## ----------------------------------- ##
30014## Report this to llvmbugs@cs.uiuc.edu ##
30015## ----------------------------------- ##
30016_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030017 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030018 ;;
30019esac
Reid Spencera773bd52006-08-04 18:18:08 +000030020{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30022if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030023 echo $ECHO_N "(cached) $ECHO_C" >&6
30024else
30025 eval "$as_ac_Header=\$ac_header_preproc"
30026fi
Reid Spencera773bd52006-08-04 18:18:08 +000030027ac_res=`eval echo '${'$as_ac_Header'}'`
30028 { echo "$as_me:$LINENO: result: $ac_res" >&5
30029echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030030
30031fi
Reid Spencer59473af2004-12-25 07:31:29 +000030032if test `eval echo '${'$as_ac_Header'}'` = yes; then
30033 cat >>confdefs.h <<_ACEOF
30034#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030035_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030036
30037fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030038
Reid Spencer59473af2004-12-25 07:31:29 +000030039done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030040
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030041
30042
Reid Spencer59473af2004-12-25 07:31:29 +000030043
30044
30045
30046
Douglas Gregor071d73d2009-05-18 17:21:34 +000030047for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000030048do
30049as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030054 echo $ECHO_N "(cached) $ECHO_C" >&6
30055fi
Reid Spencera773bd52006-08-04 18:18:08 +000030056ac_res=`eval echo '${'$as_ac_Header'}'`
30057 { echo "$as_me:$LINENO: result: $ac_res" >&5
30058echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030059else
30060 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030061{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30062echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030063cat >conftest.$ac_ext <<_ACEOF
30064/* confdefs.h. */
30065_ACEOF
30066cat confdefs.h >>conftest.$ac_ext
30067cat >>conftest.$ac_ext <<_ACEOF
30068/* end confdefs.h. */
30069$ac_includes_default
30070#include <$ac_header>
30071_ACEOF
30072rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030073if { (ac_try="$ac_compile"
30074case "(($ac_try" in
30075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30076 *) ac_try_echo=$ac_try;;
30077esac
30078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30079 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030080 ac_status=$?
30081 grep -v '^ *+' conftest.er1 >conftest.err
30082 rm -f conftest.er1
30083 cat conftest.err >&5
30084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030085 (exit $ac_status); } &&
30086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30087 { (case "(($ac_try" in
30088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30089 *) ac_try_echo=$ac_try;;
30090esac
30091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30092 (eval "$ac_try") 2>&5
30093 ac_status=$?
30094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095 (exit $ac_status); }; } &&
30096 { ac_try='test -s conftest.$ac_objext'
30097 { (case "(($ac_try" in
30098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30099 *) ac_try_echo=$ac_try;;
30100esac
30101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30102 (eval "$ac_try") 2>&5
30103 ac_status=$?
30104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030106 ac_header_compiler=yes
30107else
30108 echo "$as_me: failed program was:" >&5
30109sed 's/^/| /' conftest.$ac_ext >&5
30110
Reid Spencera773bd52006-08-04 18:18:08 +000030111 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000030112fi
Reid Spencera773bd52006-08-04 18:18:08 +000030113
30114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30115{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30116echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030117
30118# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030119{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030121cat >conftest.$ac_ext <<_ACEOF
30122/* confdefs.h. */
30123_ACEOF
30124cat confdefs.h >>conftest.$ac_ext
30125cat >>conftest.$ac_ext <<_ACEOF
30126/* end confdefs.h. */
30127#include <$ac_header>
30128_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030129if { (ac_try="$ac_cpp conftest.$ac_ext"
30130case "(($ac_try" in
30131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30132 *) ac_try_echo=$ac_try;;
30133esac
30134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030136 ac_status=$?
30137 grep -v '^ *+' conftest.er1 >conftest.err
30138 rm -f conftest.er1
30139 cat conftest.err >&5
30140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030141 (exit $ac_status); } >/dev/null; then
30142 if test -s conftest.err; then
30143 ac_cpp_err=$ac_c_preproc_warn_flag
30144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30145 else
30146 ac_cpp_err=
30147 fi
30148else
30149 ac_cpp_err=yes
30150fi
30151if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000030152 ac_header_preproc=yes
30153else
30154 echo "$as_me: failed program was:" >&5
30155sed 's/^/| /' conftest.$ac_ext >&5
30156
30157 ac_header_preproc=no
30158fi
Reid Spencera773bd52006-08-04 18:18:08 +000030159
Reid Spencer59473af2004-12-25 07:31:29 +000030160rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030161{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30162echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030163
30164# So? What about this header?
30165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30166 yes:no: )
30167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30168echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30170echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30171 ac_header_preproc=yes
30172 ;;
30173 no:yes:* )
30174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30175echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30177echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30179echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30181echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30185echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030186 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030187## ----------------------------------- ##
30188## Report this to llvmbugs@cs.uiuc.edu ##
30189## ----------------------------------- ##
30190_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030191 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030192 ;;
30193esac
Reid Spencera773bd52006-08-04 18:18:08 +000030194{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030197 echo $ECHO_N "(cached) $ECHO_C" >&6
30198else
30199 eval "$as_ac_Header=\$ac_header_preproc"
30200fi
Reid Spencera773bd52006-08-04 18:18:08 +000030201ac_res=`eval echo '${'$as_ac_Header'}'`
30202 { echo "$as_me:$LINENO: result: $ac_res" >&5
30203echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030204
30205fi
30206if test `eval echo '${'$as_ac_Header'}'` = yes; then
30207 cat >>confdefs.h <<_ACEOF
30208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30209_ACEOF
30210
30211fi
30212
30213done
30214
30215
Douglas Gregor071d73d2009-05-18 17:21:34 +000030216
30217for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000030218do
30219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30224 echo $ECHO_N "(cached) $ECHO_C" >&6
30225fi
30226ac_res=`eval echo '${'$as_ac_Header'}'`
30227 { echo "$as_me:$LINENO: result: $ac_res" >&5
30228echo "${ECHO_T}$ac_res" >&6; }
30229else
30230 # Is the header compilable?
30231{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30232echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30233cat >conftest.$ac_ext <<_ACEOF
30234/* confdefs.h. */
30235_ACEOF
30236cat confdefs.h >>conftest.$ac_ext
30237cat >>conftest.$ac_ext <<_ACEOF
30238/* end confdefs.h. */
30239$ac_includes_default
30240#include <$ac_header>
30241_ACEOF
30242rm -f conftest.$ac_objext
30243if { (ac_try="$ac_compile"
30244case "(($ac_try" in
30245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30246 *) ac_try_echo=$ac_try;;
30247esac
30248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30249 (eval "$ac_compile") 2>conftest.er1
30250 ac_status=$?
30251 grep -v '^ *+' conftest.er1 >conftest.err
30252 rm -f conftest.er1
30253 cat conftest.err >&5
30254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030255 (exit $ac_status); } &&
30256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30257 { (case "(($ac_try" in
30258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30259 *) ac_try_echo=$ac_try;;
30260esac
30261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30262 (eval "$ac_try") 2>&5
30263 ac_status=$?
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); }; } &&
30266 { ac_try='test -s conftest.$ac_objext'
30267 { (case "(($ac_try" in
30268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30269 *) ac_try_echo=$ac_try;;
30270esac
30271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30272 (eval "$ac_try") 2>&5
30273 ac_status=$?
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030276 ac_header_compiler=yes
30277else
30278 echo "$as_me: failed program was:" >&5
30279sed 's/^/| /' conftest.$ac_ext >&5
30280
30281 ac_header_compiler=no
30282fi
30283
30284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30285{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30286echo "${ECHO_T}$ac_header_compiler" >&6; }
30287
30288# Is the header present?
30289{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30291cat >conftest.$ac_ext <<_ACEOF
30292/* confdefs.h. */
30293_ACEOF
30294cat confdefs.h >>conftest.$ac_ext
30295cat >>conftest.$ac_ext <<_ACEOF
30296/* end confdefs.h. */
30297#include <$ac_header>
30298_ACEOF
30299if { (ac_try="$ac_cpp conftest.$ac_ext"
30300case "(($ac_try" in
30301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30302 *) ac_try_echo=$ac_try;;
30303esac
30304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30306 ac_status=$?
30307 grep -v '^ *+' conftest.er1 >conftest.err
30308 rm -f conftest.er1
30309 cat conftest.err >&5
30310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030311 (exit $ac_status); } >/dev/null; then
30312 if test -s conftest.err; then
30313 ac_cpp_err=$ac_c_preproc_warn_flag
30314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30315 else
30316 ac_cpp_err=
30317 fi
30318else
30319 ac_cpp_err=yes
30320fi
30321if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030322 ac_header_preproc=yes
30323else
30324 echo "$as_me: failed program was:" >&5
30325sed 's/^/| /' conftest.$ac_ext >&5
30326
30327 ac_header_preproc=no
30328fi
30329
30330rm -f conftest.err conftest.$ac_ext
30331{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30332echo "${ECHO_T}$ac_header_preproc" >&6; }
30333
30334# So? What about this header?
30335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30336 yes:no: )
30337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30338echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30340echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30341 ac_header_preproc=yes
30342 ;;
30343 no:yes:* )
30344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30345echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30347echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30349echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30351echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30353echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30355echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30356 ( cat <<\_ASBOX
30357## ----------------------------------- ##
30358## Report this to llvmbugs@cs.uiuc.edu ##
30359## ----------------------------------- ##
30360_ASBOX
30361 ) | sed "s/^/$as_me: WARNING: /" >&2
30362 ;;
30363esac
30364{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30367 echo $ECHO_N "(cached) $ECHO_C" >&6
30368else
30369 eval "$as_ac_Header=\$ac_header_preproc"
30370fi
30371ac_res=`eval echo '${'$as_ac_Header'}'`
30372 { echo "$as_me:$LINENO: result: $ac_res" >&5
30373echo "${ECHO_T}$ac_res" >&6; }
30374
30375fi
30376if test `eval echo '${'$as_ac_Header'}'` = yes; then
30377 cat >>confdefs.h <<_ACEOF
30378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30379_ACEOF
30380
30381fi
30382
30383done
Reid Spencer59473af2004-12-25 07:31:29 +000030384
30385
30386
30387
Reid Spencerbe3e4192007-08-17 05:45:26 +000030388
30389for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030390do
30391as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030396 echo $ECHO_N "(cached) $ECHO_C" >&6
30397fi
Reid Spencera773bd52006-08-04 18:18:08 +000030398ac_res=`eval echo '${'$as_ac_Header'}'`
30399 { echo "$as_me:$LINENO: result: $ac_res" >&5
30400echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030401else
30402 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030403{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030405cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030406/* confdefs.h. */
30407_ACEOF
30408cat confdefs.h >>conftest.$ac_ext
30409cat >>conftest.$ac_ext <<_ACEOF
30410/* end confdefs.h. */
30411$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030412#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030413_ACEOF
30414rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030415if { (ac_try="$ac_compile"
30416case "(($ac_try" in
30417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30418 *) ac_try_echo=$ac_try;;
30419esac
30420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30421 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030422 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030423 grep -v '^ *+' conftest.er1 >conftest.err
30424 rm -f conftest.er1
30425 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030427 (exit $ac_status); } &&
30428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30429 { (case "(($ac_try" in
30430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30431 *) ac_try_echo=$ac_try;;
30432esac
30433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30434 (eval "$ac_try") 2>&5
30435 ac_status=$?
30436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437 (exit $ac_status); }; } &&
30438 { ac_try='test -s conftest.$ac_objext'
30439 { (case "(($ac_try" in
30440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30441 *) ac_try_echo=$ac_try;;
30442esac
30443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30444 (eval "$ac_try") 2>&5
30445 ac_status=$?
30446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30447 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030448 ac_header_compiler=yes
30449else
30450 echo "$as_me: failed program was:" >&5
30451sed 's/^/| /' conftest.$ac_ext >&5
30452
Reid Spencera773bd52006-08-04 18:18:08 +000030453 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030454fi
Reid Spencera773bd52006-08-04 18:18:08 +000030455
30456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30457{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30458echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030459
30460# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030461{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030463cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030464/* confdefs.h. */
30465_ACEOF
30466cat confdefs.h >>conftest.$ac_ext
30467cat >>conftest.$ac_ext <<_ACEOF
30468/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030469#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030470_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030471if { (ac_try="$ac_cpp conftest.$ac_ext"
30472case "(($ac_try" in
30473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30474 *) ac_try_echo=$ac_try;;
30475esac
30476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030478 ac_status=$?
30479 grep -v '^ *+' conftest.er1 >conftest.err
30480 rm -f conftest.er1
30481 cat conftest.err >&5
30482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030483 (exit $ac_status); } >/dev/null; then
30484 if test -s conftest.err; then
30485 ac_cpp_err=$ac_c_preproc_warn_flag
30486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30487 else
30488 ac_cpp_err=
30489 fi
30490else
30491 ac_cpp_err=yes
30492fi
30493if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030494 ac_header_preproc=yes
30495else
30496 echo "$as_me: failed program was:" >&5
30497sed 's/^/| /' conftest.$ac_ext >&5
30498
30499 ac_header_preproc=no
30500fi
Reid Spencera773bd52006-08-04 18:18:08 +000030501
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030502rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030503{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30504echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030505
30506# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030507case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30508 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30510echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30512echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030513 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030514 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030515 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30517echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30519echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30521echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30523echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30525echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30527echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030528 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030529## ----------------------------------- ##
30530## Report this to llvmbugs@cs.uiuc.edu ##
30531## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030532_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030533 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030534 ;;
30535esac
Reid Spencera773bd52006-08-04 18:18:08 +000030536{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030539 echo $ECHO_N "(cached) $ECHO_C" >&6
30540else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030541 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030542fi
Reid Spencera773bd52006-08-04 18:18:08 +000030543ac_res=`eval echo '${'$as_ac_Header'}'`
30544 { echo "$as_me:$LINENO: result: $ac_res" >&5
30545echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030546
30547fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030548if test `eval echo '${'$as_ac_Header'}'` = yes; then
30549 cat >>confdefs.h <<_ACEOF
30550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000030551_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000030552
30553fi
John Criswell7ed43ad2004-07-19 16:12:29 +000030554
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030555done
30556
John Criswell7ed43ad2004-07-19 16:12:29 +000030557
Reid Spencercdb08a32006-06-05 16:11:07 +000030558
Reid Spencera6d990a2006-09-14 06:17:21 +000030559
Douglas Gregor01746742009-05-11 18:05:52 +000030560
30561for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000030562do
30563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030568 echo $ECHO_N "(cached) $ECHO_C" >&6
30569fi
Reid Spencera773bd52006-08-04 18:18:08 +000030570ac_res=`eval echo '${'$as_ac_Header'}'`
30571 { echo "$as_me:$LINENO: result: $ac_res" >&5
30572echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030573else
30574 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030575{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030577cat >conftest.$ac_ext <<_ACEOF
30578/* confdefs.h. */
30579_ACEOF
30580cat confdefs.h >>conftest.$ac_ext
30581cat >>conftest.$ac_ext <<_ACEOF
30582/* end confdefs.h. */
30583$ac_includes_default
30584#include <$ac_header>
30585_ACEOF
30586rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030587if { (ac_try="$ac_compile"
30588case "(($ac_try" in
30589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30590 *) ac_try_echo=$ac_try;;
30591esac
30592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30593 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030594 ac_status=$?
30595 grep -v '^ *+' conftest.er1 >conftest.err
30596 rm -f conftest.er1
30597 cat conftest.err >&5
30598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030599 (exit $ac_status); } &&
30600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30601 { (case "(($ac_try" in
30602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30603 *) ac_try_echo=$ac_try;;
30604esac
30605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30606 (eval "$ac_try") 2>&5
30607 ac_status=$?
30608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30609 (exit $ac_status); }; } &&
30610 { ac_try='test -s conftest.$ac_objext'
30611 { (case "(($ac_try" in
30612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30613 *) ac_try_echo=$ac_try;;
30614esac
30615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30616 (eval "$ac_try") 2>&5
30617 ac_status=$?
30618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030620 ac_header_compiler=yes
30621else
30622 echo "$as_me: failed program was:" >&5
30623sed 's/^/| /' conftest.$ac_ext >&5
30624
Reid Spencera773bd52006-08-04 18:18:08 +000030625 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000030626fi
Reid Spencera773bd52006-08-04 18:18:08 +000030627
30628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30629{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30630echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030631
30632# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030633{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30634echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030635cat >conftest.$ac_ext <<_ACEOF
30636/* confdefs.h. */
30637_ACEOF
30638cat confdefs.h >>conftest.$ac_ext
30639cat >>conftest.$ac_ext <<_ACEOF
30640/* end confdefs.h. */
30641#include <$ac_header>
30642_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030643if { (ac_try="$ac_cpp conftest.$ac_ext"
30644case "(($ac_try" in
30645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30646 *) ac_try_echo=$ac_try;;
30647esac
30648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030650 ac_status=$?
30651 grep -v '^ *+' conftest.er1 >conftest.err
30652 rm -f conftest.er1
30653 cat conftest.err >&5
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030655 (exit $ac_status); } >/dev/null; then
30656 if test -s conftest.err; then
30657 ac_cpp_err=$ac_c_preproc_warn_flag
30658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30659 else
30660 ac_cpp_err=
30661 fi
30662else
30663 ac_cpp_err=yes
30664fi
30665if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000030666 ac_header_preproc=yes
30667else
30668 echo "$as_me: failed program was:" >&5
30669sed 's/^/| /' conftest.$ac_ext >&5
30670
30671 ac_header_preproc=no
30672fi
Reid Spencera773bd52006-08-04 18:18:08 +000030673
Chris Lattner0b142592005-11-14 06:57:34 +000030674rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030675{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30676echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030677
30678# So? What about this header?
30679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30680 yes:no: )
30681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30682echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30684echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30685 ac_header_preproc=yes
30686 ;;
30687 no:yes:* )
30688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30689echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30691echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30693echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30695echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30699echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030700 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000030701## ----------------------------------- ##
30702## Report this to llvmbugs@cs.uiuc.edu ##
30703## ----------------------------------- ##
30704_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030705 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000030706 ;;
30707esac
Reid Spencera773bd52006-08-04 18:18:08 +000030708{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030711 echo $ECHO_N "(cached) $ECHO_C" >&6
30712else
30713 eval "$as_ac_Header=\$ac_header_preproc"
30714fi
Reid Spencera773bd52006-08-04 18:18:08 +000030715ac_res=`eval echo '${'$as_ac_Header'}'`
30716 { echo "$as_me:$LINENO: result: $ac_res" >&5
30717echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030718
30719fi
30720if test `eval echo '${'$as_ac_Header'}'` = yes; then
30721 cat >>confdefs.h <<_ACEOF
30722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30723_ACEOF
30724
30725fi
30726
30727done
30728
Reid Spencer0a262ba2005-08-24 10:07:20 +000030729if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030730
30731for ac_header in pthread.h
30732do
30733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030738 echo $ECHO_N "(cached) $ECHO_C" >&6
30739fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030740ac_res=`eval echo '${'$as_ac_Header'}'`
30741 { echo "$as_me:$LINENO: result: $ac_res" >&5
30742echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030743else
30744 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030745{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30746echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030747cat >conftest.$ac_ext <<_ACEOF
30748/* confdefs.h. */
30749_ACEOF
30750cat confdefs.h >>conftest.$ac_ext
30751cat >>conftest.$ac_ext <<_ACEOF
30752/* end confdefs.h. */
30753$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000030754#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030755_ACEOF
30756rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030757if { (ac_try="$ac_compile"
30758case "(($ac_try" in
30759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30760 *) ac_try_echo=$ac_try;;
30761esac
30762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30763 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030764 ac_status=$?
30765 grep -v '^ *+' conftest.er1 >conftest.err
30766 rm -f conftest.er1
30767 cat conftest.err >&5
30768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030769 (exit $ac_status); } &&
30770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30771 { (case "(($ac_try" in
30772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30773 *) ac_try_echo=$ac_try;;
30774esac
30775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30776 (eval "$ac_try") 2>&5
30777 ac_status=$?
30778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779 (exit $ac_status); }; } &&
30780 { ac_try='test -s conftest.$ac_objext'
30781 { (case "(($ac_try" in
30782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30783 *) ac_try_echo=$ac_try;;
30784esac
30785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30786 (eval "$ac_try") 2>&5
30787 ac_status=$?
30788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30789 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030790 ac_header_compiler=yes
30791else
30792 echo "$as_me: failed program was:" >&5
30793sed 's/^/| /' conftest.$ac_ext >&5
30794
Reid Spencera773bd52006-08-04 18:18:08 +000030795 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000030796fi
Reid Spencera773bd52006-08-04 18:18:08 +000030797
30798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30799{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30800echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030801
30802# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030803{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30804echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030805cat >conftest.$ac_ext <<_ACEOF
30806/* confdefs.h. */
30807_ACEOF
30808cat confdefs.h >>conftest.$ac_ext
30809cat >>conftest.$ac_ext <<_ACEOF
30810/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000030811#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030812_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030813if { (ac_try="$ac_cpp conftest.$ac_ext"
30814case "(($ac_try" in
30815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30816 *) ac_try_echo=$ac_try;;
30817esac
30818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030820 ac_status=$?
30821 grep -v '^ *+' conftest.er1 >conftest.err
30822 rm -f conftest.er1
30823 cat conftest.err >&5
30824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030825 (exit $ac_status); } >/dev/null; then
30826 if test -s conftest.err; then
30827 ac_cpp_err=$ac_c_preproc_warn_flag
30828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30829 else
30830 ac_cpp_err=
30831 fi
30832else
30833 ac_cpp_err=yes
30834fi
30835if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030836 ac_header_preproc=yes
30837else
30838 echo "$as_me: failed program was:" >&5
30839sed 's/^/| /' conftest.$ac_ext >&5
30840
30841 ac_header_preproc=no
30842fi
Reid Spencera773bd52006-08-04 18:18:08 +000030843
Reid Spencer0a262ba2005-08-24 10:07:20 +000030844rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030845{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30846echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030847
30848# So? What about this header?
30849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30850 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30852echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30854echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030855 ac_header_preproc=yes
30856 ;;
30857 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30859echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30861echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30863echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30865echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30869echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030870 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030871## ----------------------------------- ##
30872## Report this to llvmbugs@cs.uiuc.edu ##
30873## ----------------------------------- ##
30874_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030875 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030876 ;;
30877esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030878{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030881 echo $ECHO_N "(cached) $ECHO_C" >&6
30882else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030883 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030884fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030885ac_res=`eval echo '${'$as_ac_Header'}'`
30886 { echo "$as_me:$LINENO: result: $ac_res" >&5
30887echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030888
30889fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030890if test `eval echo '${'$as_ac_Header'}'` = yes; then
30891 cat >>confdefs.h <<_ACEOF
30892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30893_ACEOF
30894 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030895
30896else
30897 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030898
30899fi
30900
Reid Spencerbe3e4192007-08-17 05:45:26 +000030901done
Reid Spencer1000b732006-12-01 00:37:14 +000030902
30903else
30904 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030905
30906fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030907
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030908if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030909
30910
30911for ac_header in ffi.h ffi/ffi.h
30912do
30913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30918 echo $ECHO_N "(cached) $ECHO_C" >&6
30919fi
30920ac_res=`eval echo '${'$as_ac_Header'}'`
30921 { echo "$as_me:$LINENO: result: $ac_res" >&5
30922echo "${ECHO_T}$ac_res" >&6; }
30923else
30924 # Is the header compilable?
30925{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30927cat >conftest.$ac_ext <<_ACEOF
30928/* confdefs.h. */
30929_ACEOF
30930cat confdefs.h >>conftest.$ac_ext
30931cat >>conftest.$ac_ext <<_ACEOF
30932/* end confdefs.h. */
30933$ac_includes_default
30934#include <$ac_header>
30935_ACEOF
30936rm -f conftest.$ac_objext
30937if { (ac_try="$ac_compile"
30938case "(($ac_try" in
30939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30940 *) ac_try_echo=$ac_try;;
30941esac
30942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30943 (eval "$ac_compile") 2>conftest.er1
30944 ac_status=$?
30945 grep -v '^ *+' conftest.er1 >conftest.err
30946 rm -f conftest.er1
30947 cat conftest.err >&5
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030949 (exit $ac_status); } &&
30950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30951 { (case "(($ac_try" in
30952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953 *) ac_try_echo=$ac_try;;
30954esac
30955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956 (eval "$ac_try") 2>&5
30957 ac_status=$?
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); }; } &&
30960 { ac_try='test -s conftest.$ac_objext'
30961 { (case "(($ac_try" in
30962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30963 *) ac_try_echo=$ac_try;;
30964esac
30965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30966 (eval "$ac_try") 2>&5
30967 ac_status=$?
30968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030970 ac_header_compiler=yes
30971else
30972 echo "$as_me: failed program was:" >&5
30973sed 's/^/| /' conftest.$ac_ext >&5
30974
30975 ac_header_compiler=no
30976fi
30977
30978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30979{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30980echo "${ECHO_T}$ac_header_compiler" >&6; }
30981
30982# Is the header present?
30983{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30985cat >conftest.$ac_ext <<_ACEOF
30986/* confdefs.h. */
30987_ACEOF
30988cat confdefs.h >>conftest.$ac_ext
30989cat >>conftest.$ac_ext <<_ACEOF
30990/* end confdefs.h. */
30991#include <$ac_header>
30992_ACEOF
30993if { (ac_try="$ac_cpp conftest.$ac_ext"
30994case "(($ac_try" in
30995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30996 *) ac_try_echo=$ac_try;;
30997esac
30998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31000 ac_status=$?
31001 grep -v '^ *+' conftest.er1 >conftest.err
31002 rm -f conftest.er1
31003 cat conftest.err >&5
31004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031005 (exit $ac_status); } >/dev/null; then
31006 if test -s conftest.err; then
31007 ac_cpp_err=$ac_c_preproc_warn_flag
31008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31009 else
31010 ac_cpp_err=
31011 fi
31012else
31013 ac_cpp_err=yes
31014fi
31015if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031016 ac_header_preproc=yes
31017else
31018 echo "$as_me: failed program was:" >&5
31019sed 's/^/| /' conftest.$ac_ext >&5
31020
31021 ac_header_preproc=no
31022fi
31023
31024rm -f conftest.err conftest.$ac_ext
31025{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31026echo "${ECHO_T}$ac_header_preproc" >&6; }
31027
31028# So? What about this header?
31029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31030 yes:no: )
31031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31034echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31035 ac_header_preproc=yes
31036 ;;
31037 no:yes:* )
31038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31041echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31043echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31045echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31049echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31050 ( cat <<\_ASBOX
31051## ----------------------------------- ##
31052## Report this to llvmbugs@cs.uiuc.edu ##
31053## ----------------------------------- ##
31054_ASBOX
31055 ) | sed "s/^/$as_me: WARNING: /" >&2
31056 ;;
31057esac
31058{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31061 echo $ECHO_N "(cached) $ECHO_C" >&6
31062else
31063 eval "$as_ac_Header=\$ac_header_preproc"
31064fi
31065ac_res=`eval echo '${'$as_ac_Header'}'`
31066 { echo "$as_me:$LINENO: result: $ac_res" >&5
31067echo "${ECHO_T}$ac_res" >&6; }
31068
31069fi
31070if test `eval echo '${'$as_ac_Header'}'` = yes; then
31071 cat >>confdefs.h <<_ACEOF
31072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31073_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031074
31075fi
31076
31077done
31078
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000031079fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031080
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031081
Reid Spencer8085cff2005-01-16 02:58:39 +000031082
Reid Spencerb2ed05262006-11-03 18:04:08 +000031083 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31084echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31085if test "${ac_cv_huge_val_sanity+set}" = set; then
31086 echo $ECHO_N "(cached) $ECHO_C" >&6
31087else
31088
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031089 ac_ext=cpp
31090ac_cpp='$CXXCPP $CPPFLAGS'
31091ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31092ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31093ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000031094
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031095 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000031096 if test "$cross_compiling" = yes; then
31097 ac_cv_huge_val_sanity=yes
31098else
31099 cat >conftest.$ac_ext <<_ACEOF
31100/* confdefs.h. */
31101_ACEOF
31102cat confdefs.h >>conftest.$ac_ext
31103cat >>conftest.$ac_ext <<_ACEOF
31104/* end confdefs.h. */
31105#include <math.h>
31106int
31107main ()
31108{
31109double x = HUGE_VAL; return x != x;
31110 ;
31111 return 0;
31112}
31113_ACEOF
31114rm -f conftest$ac_exeext
31115if { (ac_try="$ac_link"
31116case "(($ac_try" in
31117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31118 *) ac_try_echo=$ac_try;;
31119esac
31120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31121 (eval "$ac_link") 2>&5
31122 ac_status=$?
31123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31125 { (case "(($ac_try" in
31126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31127 *) ac_try_echo=$ac_try;;
31128esac
31129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31130 (eval "$ac_try") 2>&5
31131 ac_status=$?
31132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31133 (exit $ac_status); }; }; then
31134 ac_cv_huge_val_sanity=yes
31135else
31136 echo "$as_me: program exited with status $ac_status" >&5
31137echo "$as_me: failed program was:" >&5
31138sed 's/^/| /' conftest.$ac_ext >&5
31139
31140( exit $ac_status )
31141ac_cv_huge_val_sanity=no
31142fi
31143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31144fi
31145
31146
31147 ac_ext=c
31148ac_cpp='$CPP $CPPFLAGS'
31149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31151ac_compiler_gnu=$ac_cv_c_compiler_gnu
31152
31153
31154fi
31155{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31156echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31157 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31158
31159
Reid Spencera773bd52006-08-04 18:18:08 +000031160{ echo "$as_me:$LINENO: checking for pid_t" >&5
31161echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031162if test "${ac_cv_type_pid_t+set}" = set; then
31163 echo $ECHO_N "(cached) $ECHO_C" >&6
31164else
31165 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031166/* confdefs.h. */
31167_ACEOF
31168cat confdefs.h >>conftest.$ac_ext
31169cat >>conftest.$ac_ext <<_ACEOF
31170/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031171$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031172typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031173int
31174main ()
31175{
Reid Spencera773bd52006-08-04 18:18:08 +000031176if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031177 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031178if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031179 return 0;
31180 ;
31181 return 0;
31182}
31183_ACEOF
31184rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031185if { (ac_try="$ac_compile"
31186case "(($ac_try" in
31187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31188 *) ac_try_echo=$ac_try;;
31189esac
31190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31191 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031192 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031193 grep -v '^ *+' conftest.er1 >conftest.err
31194 rm -f conftest.er1
31195 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031197 (exit $ac_status); } &&
31198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31199 { (case "(($ac_try" in
31200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31201 *) ac_try_echo=$ac_try;;
31202esac
31203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31204 (eval "$ac_try") 2>&5
31205 ac_status=$?
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); }; } &&
31208 { ac_try='test -s conftest.$ac_objext'
31209 { (case "(($ac_try" in
31210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31211 *) ac_try_echo=$ac_try;;
31212esac
31213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31214 (eval "$ac_try") 2>&5
31215 ac_status=$?
31216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031218 ac_cv_type_pid_t=yes
31219else
31220 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031221sed 's/^/| /' conftest.$ac_ext >&5
31222
Reid Spencera773bd52006-08-04 18:18:08 +000031223 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031224fi
Reid Spencera773bd52006-08-04 18:18:08 +000031225
31226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031227fi
Reid Spencera773bd52006-08-04 18:18:08 +000031228{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31229echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031230if test $ac_cv_type_pid_t = yes; then
31231 :
31232else
31233
31234cat >>confdefs.h <<_ACEOF
31235#define pid_t int
31236_ACEOF
31237
31238fi
31239
Reid Spencera773bd52006-08-04 18:18:08 +000031240{ echo "$as_me:$LINENO: checking for size_t" >&5
31241echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031242if test "${ac_cv_type_size_t+set}" = set; then
31243 echo $ECHO_N "(cached) $ECHO_C" >&6
31244else
31245 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031246/* confdefs.h. */
31247_ACEOF
31248cat confdefs.h >>conftest.$ac_ext
31249cat >>conftest.$ac_ext <<_ACEOF
31250/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031251$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031252typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031253int
31254main ()
31255{
Reid Spencera773bd52006-08-04 18:18:08 +000031256if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031257 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031258if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031259 return 0;
31260 ;
31261 return 0;
31262}
31263_ACEOF
31264rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031265if { (ac_try="$ac_compile"
31266case "(($ac_try" in
31267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31268 *) ac_try_echo=$ac_try;;
31269esac
31270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31271 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031272 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031273 grep -v '^ *+' conftest.er1 >conftest.err
31274 rm -f conftest.er1
31275 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031277 (exit $ac_status); } &&
31278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31279 { (case "(($ac_try" in
31280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31281 *) ac_try_echo=$ac_try;;
31282esac
31283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31284 (eval "$ac_try") 2>&5
31285 ac_status=$?
31286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287 (exit $ac_status); }; } &&
31288 { ac_try='test -s conftest.$ac_objext'
31289 { (case "(($ac_try" in
31290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31291 *) ac_try_echo=$ac_try;;
31292esac
31293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31294 (eval "$ac_try") 2>&5
31295 ac_status=$?
31296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031298 ac_cv_type_size_t=yes
31299else
31300 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031301sed 's/^/| /' conftest.$ac_ext >&5
31302
Reid Spencera773bd52006-08-04 18:18:08 +000031303 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031304fi
Reid Spencera773bd52006-08-04 18:18:08 +000031305
31306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031307fi
Reid Spencera773bd52006-08-04 18:18:08 +000031308{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31309echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031310if test $ac_cv_type_size_t = yes; then
31311 :
31312else
31313
31314cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031315#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000031316_ACEOF
31317
31318fi
31319
Reid Spencera773bd52006-08-04 18:18:08 +000031320{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31321echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031322if test "${ac_cv_type_signal+set}" = set; then
31323 echo $ECHO_N "(cached) $ECHO_C" >&6
31324else
31325 cat >conftest.$ac_ext <<_ACEOF
31326/* confdefs.h. */
31327_ACEOF
31328cat confdefs.h >>conftest.$ac_ext
31329cat >>conftest.$ac_ext <<_ACEOF
31330/* end confdefs.h. */
31331#include <sys/types.h>
31332#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031333
31334int
31335main ()
31336{
Reid Spencera773bd52006-08-04 18:18:08 +000031337return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031338 ;
31339 return 0;
31340}
31341_ACEOF
31342rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031343if { (ac_try="$ac_compile"
31344case "(($ac_try" in
31345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31346 *) ac_try_echo=$ac_try;;
31347esac
31348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31349 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031350 ac_status=$?
31351 grep -v '^ *+' conftest.er1 >conftest.err
31352 rm -f conftest.er1
31353 cat conftest.err >&5
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031355 (exit $ac_status); } &&
31356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31357 { (case "(($ac_try" in
31358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31359 *) ac_try_echo=$ac_try;;
31360esac
31361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31362 (eval "$ac_try") 2>&5
31363 ac_status=$?
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); }; } &&
31366 { ac_try='test -s conftest.$ac_objext'
31367 { (case "(($ac_try" in
31368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31369 *) ac_try_echo=$ac_try;;
31370esac
31371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372 (eval "$ac_try") 2>&5
31373 ac_status=$?
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000031376 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031377else
31378 echo "$as_me: failed program was:" >&5
31379sed 's/^/| /' conftest.$ac_ext >&5
31380
Reid Spencera773bd52006-08-04 18:18:08 +000031381 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031382fi
Reid Spencera773bd52006-08-04 18:18:08 +000031383
31384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031385fi
Reid Spencera773bd52006-08-04 18:18:08 +000031386{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31387echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031388
31389cat >>confdefs.h <<_ACEOF
31390#define RETSIGTYPE $ac_cv_type_signal
31391_ACEOF
31392
31393
Reid Spencera773bd52006-08-04 18:18:08 +000031394{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31395echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031396if test "${ac_cv_struct_tm+set}" = set; then
31397 echo $ECHO_N "(cached) $ECHO_C" >&6
31398else
31399 cat >conftest.$ac_ext <<_ACEOF
31400/* confdefs.h. */
31401_ACEOF
31402cat confdefs.h >>conftest.$ac_ext
31403cat >>conftest.$ac_ext <<_ACEOF
31404/* end confdefs.h. */
31405#include <sys/types.h>
31406#include <time.h>
31407
31408int
31409main ()
31410{
Bill Wendlingebcceee2009-04-18 11:20:33 +000031411struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031412 ;
31413 return 0;
31414}
31415_ACEOF
31416rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031417if { (ac_try="$ac_compile"
31418case "(($ac_try" in
31419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31420 *) ac_try_echo=$ac_try;;
31421esac
31422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31423 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031424 ac_status=$?
31425 grep -v '^ *+' conftest.er1 >conftest.err
31426 rm -f conftest.er1
31427 cat conftest.err >&5
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031429 (exit $ac_status); } &&
31430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31431 { (case "(($ac_try" in
31432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31433 *) ac_try_echo=$ac_try;;
31434esac
31435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31436 (eval "$ac_try") 2>&5
31437 ac_status=$?
31438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31439 (exit $ac_status); }; } &&
31440 { ac_try='test -s conftest.$ac_objext'
31441 { (case "(($ac_try" in
31442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31443 *) ac_try_echo=$ac_try;;
31444esac
31445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31446 (eval "$ac_try") 2>&5
31447 ac_status=$?
31448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31449 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031450 ac_cv_struct_tm=time.h
31451else
31452 echo "$as_me: failed program was:" >&5
31453sed 's/^/| /' conftest.$ac_ext >&5
31454
Reid Spencera773bd52006-08-04 18:18:08 +000031455 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031456fi
Reid Spencera773bd52006-08-04 18:18:08 +000031457
31458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031459fi
Reid Spencera773bd52006-08-04 18:18:08 +000031460{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31461echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031462if test $ac_cv_struct_tm = sys/time.h; then
31463
31464cat >>confdefs.h <<\_ACEOF
31465#define TM_IN_SYS_TIME 1
31466_ACEOF
31467
31468fi
31469
Reid Spencera773bd52006-08-04 18:18:08 +000031470{ echo "$as_me:$LINENO: checking for int64_t" >&5
31471echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031472if test "${ac_cv_type_int64_t+set}" = set; then
31473 echo $ECHO_N "(cached) $ECHO_C" >&6
31474else
31475 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031476/* confdefs.h. */
31477_ACEOF
31478cat confdefs.h >>conftest.$ac_ext
31479cat >>conftest.$ac_ext <<_ACEOF
31480/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031481$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031482typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031483int
31484main ()
31485{
Reid Spencera773bd52006-08-04 18:18:08 +000031486if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031487 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031488if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031489 return 0;
31490 ;
31491 return 0;
31492}
31493_ACEOF
31494rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031495if { (ac_try="$ac_compile"
31496case "(($ac_try" in
31497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31498 *) ac_try_echo=$ac_try;;
31499esac
31500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31501 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031502 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031503 grep -v '^ *+' conftest.er1 >conftest.err
31504 rm -f conftest.er1
31505 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031507 (exit $ac_status); } &&
31508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31509 { (case "(($ac_try" in
31510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511 *) ac_try_echo=$ac_try;;
31512esac
31513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514 (eval "$ac_try") 2>&5
31515 ac_status=$?
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; } &&
31518 { ac_try='test -s conftest.$ac_objext'
31519 { (case "(($ac_try" in
31520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521 *) ac_try_echo=$ac_try;;
31522esac
31523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524 (eval "$ac_try") 2>&5
31525 ac_status=$?
31526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031528 ac_cv_type_int64_t=yes
31529else
31530 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031531sed 's/^/| /' conftest.$ac_ext >&5
31532
Reid Spencera773bd52006-08-04 18:18:08 +000031533 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031534fi
Reid Spencera773bd52006-08-04 18:18:08 +000031535
31536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031537fi
Reid Spencera773bd52006-08-04 18:18:08 +000031538{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31539echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031540if test $ac_cv_type_int64_t = yes; then
31541
31542cat >>confdefs.h <<_ACEOF
31543#define HAVE_INT64_T 1
31544_ACEOF
31545
31546
31547else
31548 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31549echo "$as_me: error: Type int64_t required but not found" >&2;}
31550 { (exit 1); exit 1; }; }
31551fi
31552
Reid Spencera773bd52006-08-04 18:18:08 +000031553{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31554echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031555if test "${ac_cv_type_uint64_t+set}" = set; then
31556 echo $ECHO_N "(cached) $ECHO_C" >&6
31557else
31558 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031559/* confdefs.h. */
31560_ACEOF
31561cat confdefs.h >>conftest.$ac_ext
31562cat >>conftest.$ac_ext <<_ACEOF
31563/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031564$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031565typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031566int
31567main ()
31568{
Reid Spencera773bd52006-08-04 18:18:08 +000031569if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031570 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031571if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031572 return 0;
31573 ;
31574 return 0;
31575}
31576_ACEOF
31577rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031578if { (ac_try="$ac_compile"
31579case "(($ac_try" in
31580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31581 *) ac_try_echo=$ac_try;;
31582esac
31583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31584 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031585 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031586 grep -v '^ *+' conftest.er1 >conftest.err
31587 rm -f conftest.er1
31588 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031590 (exit $ac_status); } &&
31591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31592 { (case "(($ac_try" in
31593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31594 *) ac_try_echo=$ac_try;;
31595esac
31596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31597 (eval "$ac_try") 2>&5
31598 ac_status=$?
31599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31600 (exit $ac_status); }; } &&
31601 { ac_try='test -s conftest.$ac_objext'
31602 { (case "(($ac_try" in
31603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31604 *) ac_try_echo=$ac_try;;
31605esac
31606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31607 (eval "$ac_try") 2>&5
31608 ac_status=$?
31609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031611 ac_cv_type_uint64_t=yes
31612else
31613 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031614sed 's/^/| /' conftest.$ac_ext >&5
31615
Reid Spencera773bd52006-08-04 18:18:08 +000031616 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031617fi
Reid Spencera773bd52006-08-04 18:18:08 +000031618
31619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031620fi
Reid Spencera773bd52006-08-04 18:18:08 +000031621{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31622echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031623if test $ac_cv_type_uint64_t = yes; then
31624
31625cat >>confdefs.h <<_ACEOF
31626#define HAVE_UINT64_T 1
31627_ACEOF
31628
31629
31630else
Reid Spencera773bd52006-08-04 18:18:08 +000031631 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31632echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031633if test "${ac_cv_type_u_int64_t+set}" = set; then
31634 echo $ECHO_N "(cached) $ECHO_C" >&6
31635else
31636 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000031637/* confdefs.h. */
31638_ACEOF
31639cat confdefs.h >>conftest.$ac_ext
31640cat >>conftest.$ac_ext <<_ACEOF
31641/* end confdefs.h. */
31642$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031643typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000031644int
31645main ()
31646{
Reid Spencera773bd52006-08-04 18:18:08 +000031647if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000031648 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031649if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000031650 return 0;
31651 ;
31652 return 0;
31653}
31654_ACEOF
31655rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031656if { (ac_try="$ac_compile"
31657case "(($ac_try" in
31658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31659 *) ac_try_echo=$ac_try;;
31660esac
31661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31662 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000031663 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031664 grep -v '^ *+' conftest.er1 >conftest.err
31665 rm -f conftest.er1
31666 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000031667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031668 (exit $ac_status); } &&
31669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31670 { (case "(($ac_try" in
31671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31672 *) ac_try_echo=$ac_try;;
31673esac
31674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31675 (eval "$ac_try") 2>&5
31676 ac_status=$?
31677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678 (exit $ac_status); }; } &&
31679 { ac_try='test -s conftest.$ac_objext'
31680 { (case "(($ac_try" in
31681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31682 *) ac_try_echo=$ac_try;;
31683esac
31684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31685 (eval "$ac_try") 2>&5
31686 ac_status=$?
31687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000031689 ac_cv_type_u_int64_t=yes
31690else
31691 echo "$as_me: failed program was:" >&5
31692sed 's/^/| /' conftest.$ac_ext >&5
31693
Reid Spencera773bd52006-08-04 18:18:08 +000031694 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000031695fi
Reid Spencera773bd52006-08-04 18:18:08 +000031696
31697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000031698fi
Reid Spencera773bd52006-08-04 18:18:08 +000031699{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31700echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031701if test $ac_cv_type_u_int64_t = yes; then
31702
31703cat >>confdefs.h <<_ACEOF
31704#define HAVE_U_INT64_T 1
31705_ACEOF
31706
31707
Misha Brukmanceca9042004-09-02 23:02:30 +000031708else
31709 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31710echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31711 { (exit 1); exit 1; }; }
31712fi
31713
John Criswell679ff312004-09-02 18:44:44 +000031714fi
31715
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031716
31717
31718
31719
31720
31721
31722
Reid Spencerf4bb9b12006-01-19 08:22:40 +000031723
31724
Reid Spencerdf3be822006-01-23 08:15:53 +000031725for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031726do
31727as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031728{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31729echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31730if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031731 echo $ECHO_N "(cached) $ECHO_C" >&6
31732else
31733 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031734/* confdefs.h. */
31735_ACEOF
31736cat confdefs.h >>conftest.$ac_ext
31737cat >>conftest.$ac_ext <<_ACEOF
31738/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031739/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31741#define $ac_func innocuous_$ac_func
31742
31743/* System header to define __stub macros and hopefully few prototypes,
31744 which can conflict with char $ac_func (); below.
31745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31746 <limits.h> exists even on freestanding compilers. */
31747
31748#ifdef __STDC__
31749# include <limits.h>
31750#else
31751# include <assert.h>
31752#endif
31753
31754#undef $ac_func
31755
Reid Spencera773bd52006-08-04 18:18:08 +000031756/* Override any GCC internal prototype to avoid an error.
31757 Use char because int might match the return type of a GCC
31758 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031759#ifdef __cplusplus
31760extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031761#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031762char $ac_func ();
31763/* The GNU C library defines this for functions which it implements
31764 to always fail with ENOSYS. Some functions are actually named
31765 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031766#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031767choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031768#endif
John Criswell7a73b802003-06-30 21:59:07 +000031769
John Criswell7a73b802003-06-30 21:59:07 +000031770int
31771main ()
31772{
Reid Spencera773bd52006-08-04 18:18:08 +000031773return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031774 ;
31775 return 0;
31776}
31777_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031778rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031779if { (ac_try="$ac_link"
31780case "(($ac_try" in
31781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31782 *) ac_try_echo=$ac_try;;
31783esac
31784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31785 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031786 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031787 grep -v '^ *+' conftest.er1 >conftest.err
31788 rm -f conftest.er1
31789 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031791 (exit $ac_status); } &&
31792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31793 { (case "(($ac_try" in
31794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31795 *) ac_try_echo=$ac_try;;
31796esac
31797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31798 (eval "$ac_try") 2>&5
31799 ac_status=$?
31800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801 (exit $ac_status); }; } &&
31802 { ac_try='test -s conftest$ac_exeext'
31803 { (case "(($ac_try" in
31804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31805 *) ac_try_echo=$ac_try;;
31806esac
31807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31808 (eval "$ac_try") 2>&5
31809 ac_status=$?
31810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31811 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031812 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031813else
31814 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031815sed 's/^/| /' conftest.$ac_ext >&5
31816
Reid Spencera773bd52006-08-04 18:18:08 +000031817 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031818fi
Reid Spencera773bd52006-08-04 18:18:08 +000031819
Bill Wendlingebcceee2009-04-18 11:20:33 +000031820rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031821 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031822fi
Reid Spencera773bd52006-08-04 18:18:08 +000031823ac_res=`eval echo '${'$as_ac_var'}'`
31824 { echo "$as_me:$LINENO: result: $ac_res" >&5
31825echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031826if test `eval echo '${'$as_ac_var'}'` = yes; then
31827 cat >>confdefs.h <<_ACEOF
31828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031829_ACEOF
31830
31831fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031832done
John Criswell7a73b802003-06-30 21:59:07 +000031833
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031834
31835
31836
Reid Spencer6af3d262004-12-15 04:01:48 +000031837
Reid Spencer96cf5872007-07-13 10:05:30 +000031838for ac_func in powf fmodf strtof round
31839do
31840as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31841{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31842echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31843if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31844 echo $ECHO_N "(cached) $ECHO_C" >&6
31845else
31846 cat >conftest.$ac_ext <<_ACEOF
31847/* confdefs.h. */
31848_ACEOF
31849cat confdefs.h >>conftest.$ac_ext
31850cat >>conftest.$ac_ext <<_ACEOF
31851/* end confdefs.h. */
31852/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31854#define $ac_func innocuous_$ac_func
31855
31856/* System header to define __stub macros and hopefully few prototypes,
31857 which can conflict with char $ac_func (); below.
31858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31859 <limits.h> exists even on freestanding compilers. */
31860
31861#ifdef __STDC__
31862# include <limits.h>
31863#else
31864# include <assert.h>
31865#endif
31866
31867#undef $ac_func
31868
31869/* Override any GCC internal prototype to avoid an error.
31870 Use char because int might match the return type of a GCC
31871 builtin and then its argument prototype would still apply. */
31872#ifdef __cplusplus
31873extern "C"
31874#endif
31875char $ac_func ();
31876/* The GNU C library defines this for functions which it implements
31877 to always fail with ENOSYS. Some functions are actually named
31878 something starting with __ and the normal name is an alias. */
31879#if defined __stub_$ac_func || defined __stub___$ac_func
31880choke me
31881#endif
31882
31883int
31884main ()
31885{
31886return $ac_func ();
31887 ;
31888 return 0;
31889}
31890_ACEOF
31891rm -f conftest.$ac_objext conftest$ac_exeext
31892if { (ac_try="$ac_link"
31893case "(($ac_try" in
31894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31895 *) ac_try_echo=$ac_try;;
31896esac
31897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31898 (eval "$ac_link") 2>conftest.er1
31899 ac_status=$?
31900 grep -v '^ *+' conftest.er1 >conftest.err
31901 rm -f conftest.er1
31902 cat conftest.err >&5
31903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031904 (exit $ac_status); } &&
31905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31906 { (case "(($ac_try" in
31907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31908 *) ac_try_echo=$ac_try;;
31909esac
31910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31911 (eval "$ac_try") 2>&5
31912 ac_status=$?
31913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31914 (exit $ac_status); }; } &&
31915 { ac_try='test -s conftest$ac_exeext'
31916 { (case "(($ac_try" in
31917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31918 *) ac_try_echo=$ac_try;;
31919esac
31920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31921 (eval "$ac_try") 2>&5
31922 ac_status=$?
31923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031925 eval "$as_ac_var=yes"
31926else
31927 echo "$as_me: failed program was:" >&5
31928sed 's/^/| /' conftest.$ac_ext >&5
31929
31930 eval "$as_ac_var=no"
31931fi
31932
Bill Wendlingebcceee2009-04-18 11:20:33 +000031933rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031934 conftest$ac_exeext conftest.$ac_ext
31935fi
31936ac_res=`eval echo '${'$as_ac_var'}'`
31937 { echo "$as_me:$LINENO: result: $ac_res" >&5
31938echo "${ECHO_T}$ac_res" >&6; }
31939if test `eval echo '${'$as_ac_var'}'` = yes; then
31940 cat >>confdefs.h <<_ACEOF
31941#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31942_ACEOF
31943
31944fi
31945done
31946
31947
31948
31949
31950
Reid Spencer6af3d262004-12-15 04:01:48 +000031951
Reid Spencerb90645c2007-02-16 19:17:20 +000031952for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31953do
31954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31955{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31957if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31958 echo $ECHO_N "(cached) $ECHO_C" >&6
31959else
31960 cat >conftest.$ac_ext <<_ACEOF
31961/* confdefs.h. */
31962_ACEOF
31963cat confdefs.h >>conftest.$ac_ext
31964cat >>conftest.$ac_ext <<_ACEOF
31965/* end confdefs.h. */
31966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31968#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031969
Reid Spencerb90645c2007-02-16 19:17:20 +000031970/* System header to define __stub macros and hopefully few prototypes,
31971 which can conflict with char $ac_func (); below.
31972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31973 <limits.h> exists even on freestanding compilers. */
31974
31975#ifdef __STDC__
31976# include <limits.h>
31977#else
31978# include <assert.h>
31979#endif
31980
31981#undef $ac_func
31982
31983/* Override any GCC internal prototype to avoid an error.
31984 Use char because int might match the return type of a GCC
31985 builtin and then its argument prototype would still apply. */
31986#ifdef __cplusplus
31987extern "C"
31988#endif
31989char $ac_func ();
31990/* The GNU C library defines this for functions which it implements
31991 to always fail with ENOSYS. Some functions are actually named
31992 something starting with __ and the normal name is an alias. */
31993#if defined __stub_$ac_func || defined __stub___$ac_func
31994choke me
31995#endif
31996
31997int
31998main ()
31999{
32000return $ac_func ();
32001 ;
32002 return 0;
32003}
32004_ACEOF
32005rm -f conftest.$ac_objext conftest$ac_exeext
32006if { (ac_try="$ac_link"
32007case "(($ac_try" in
32008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009 *) ac_try_echo=$ac_try;;
32010esac
32011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012 (eval "$ac_link") 2>conftest.er1
32013 ac_status=$?
32014 grep -v '^ *+' conftest.er1 >conftest.err
32015 rm -f conftest.er1
32016 cat conftest.err >&5
32017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032018 (exit $ac_status); } &&
32019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32020 { (case "(($ac_try" in
32021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022 *) ac_try_echo=$ac_try;;
32023esac
32024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32025 (eval "$ac_try") 2>&5
32026 ac_status=$?
32027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028 (exit $ac_status); }; } &&
32029 { ac_try='test -s conftest$ac_exeext'
32030 { (case "(($ac_try" in
32031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32032 *) ac_try_echo=$ac_try;;
32033esac
32034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32035 (eval "$ac_try") 2>&5
32036 ac_status=$?
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000032039 eval "$as_ac_var=yes"
32040else
32041 echo "$as_me: failed program was:" >&5
32042sed 's/^/| /' conftest.$ac_ext >&5
32043
32044 eval "$as_ac_var=no"
32045fi
32046
Bill Wendlingebcceee2009-04-18 11:20:33 +000032047rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000032048 conftest$ac_exeext conftest.$ac_ext
32049fi
32050ac_res=`eval echo '${'$as_ac_var'}'`
32051 { echo "$as_me:$LINENO: result: $ac_res" >&5
32052echo "${ECHO_T}$ac_res" >&6; }
32053if test `eval echo '${'$as_ac_var'}'` = yes; then
32054 cat >>confdefs.h <<_ACEOF
32055#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32056_ACEOF
32057
32058fi
32059done
32060
32061
32062
32063
32064for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000032065do
32066as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032067{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32068echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32069if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032070 echo $ECHO_N "(cached) $ECHO_C" >&6
32071else
32072 cat >conftest.$ac_ext <<_ACEOF
32073/* confdefs.h. */
32074_ACEOF
32075cat confdefs.h >>conftest.$ac_ext
32076cat >>conftest.$ac_ext <<_ACEOF
32077/* end confdefs.h. */
32078/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32080#define $ac_func innocuous_$ac_func
32081
32082/* System header to define __stub macros and hopefully few prototypes,
32083 which can conflict with char $ac_func (); below.
32084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32085 <limits.h> exists even on freestanding compilers. */
32086
32087#ifdef __STDC__
32088# include <limits.h>
32089#else
32090# include <assert.h>
32091#endif
32092
32093#undef $ac_func
32094
Reid Spencera773bd52006-08-04 18:18:08 +000032095/* Override any GCC internal prototype to avoid an error.
32096 Use char because int might match the return type of a GCC
32097 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000032098#ifdef __cplusplus
32099extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000032100#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000032101char $ac_func ();
32102/* The GNU C library defines this for functions which it implements
32103 to always fail with ENOSYS. Some functions are actually named
32104 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032105#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000032106choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000032107#endif
32108
32109int
32110main ()
32111{
Reid Spencera773bd52006-08-04 18:18:08 +000032112return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000032113 ;
32114 return 0;
32115}
32116_ACEOF
32117rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032118if { (ac_try="$ac_link"
32119case "(($ac_try" in
32120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32121 *) ac_try_echo=$ac_try;;
32122esac
32123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32124 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000032125 ac_status=$?
32126 grep -v '^ *+' conftest.er1 >conftest.err
32127 rm -f conftest.er1
32128 cat conftest.err >&5
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032130 (exit $ac_status); } &&
32131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32132 { (case "(($ac_try" in
32133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32134 *) ac_try_echo=$ac_try;;
32135esac
32136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32137 (eval "$ac_try") 2>&5
32138 ac_status=$?
32139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140 (exit $ac_status); }; } &&
32141 { ac_try='test -s conftest$ac_exeext'
32142 { (case "(($ac_try" in
32143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144 *) ac_try_echo=$ac_try;;
32145esac
32146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32147 (eval "$ac_try") 2>&5
32148 ac_status=$?
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032151 eval "$as_ac_var=yes"
32152else
32153 echo "$as_me: failed program was:" >&5
32154sed 's/^/| /' conftest.$ac_ext >&5
32155
Reid Spencera773bd52006-08-04 18:18:08 +000032156 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000032157fi
Reid Spencera773bd52006-08-04 18:18:08 +000032158
Bill Wendlingebcceee2009-04-18 11:20:33 +000032159rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000032160 conftest$ac_exeext conftest.$ac_ext
32161fi
Reid Spencera773bd52006-08-04 18:18:08 +000032162ac_res=`eval echo '${'$as_ac_var'}'`
32163 { echo "$as_me:$LINENO: result: $ac_res" >&5
32164echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000032165if test `eval echo '${'$as_ac_var'}'` = yes; then
32166 cat >>confdefs.h <<_ACEOF
32167#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32168_ACEOF
32169
32170fi
32171done
32172
32173
32174
32175
32176
32177
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032178for ac_func in mktemp realpath sbrk setrlimit strdup
32179do
32180as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32181{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32183if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32184 echo $ECHO_N "(cached) $ECHO_C" >&6
32185else
32186 cat >conftest.$ac_ext <<_ACEOF
32187/* confdefs.h. */
32188_ACEOF
32189cat confdefs.h >>conftest.$ac_ext
32190cat >>conftest.$ac_ext <<_ACEOF
32191/* end confdefs.h. */
32192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32194#define $ac_func innocuous_$ac_func
32195
32196/* System header to define __stub macros and hopefully few prototypes,
32197 which can conflict with char $ac_func (); below.
32198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32199 <limits.h> exists even on freestanding compilers. */
32200
32201#ifdef __STDC__
32202# include <limits.h>
32203#else
32204# include <assert.h>
32205#endif
32206
32207#undef $ac_func
32208
32209/* Override any GCC internal prototype to avoid an error.
32210 Use char because int might match the return type of a GCC
32211 builtin and then its argument prototype would still apply. */
32212#ifdef __cplusplus
32213extern "C"
32214#endif
32215char $ac_func ();
32216/* The GNU C library defines this for functions which it implements
32217 to always fail with ENOSYS. Some functions are actually named
32218 something starting with __ and the normal name is an alias. */
32219#if defined __stub_$ac_func || defined __stub___$ac_func
32220choke me
32221#endif
32222
32223int
32224main ()
32225{
32226return $ac_func ();
32227 ;
32228 return 0;
32229}
32230_ACEOF
32231rm -f conftest.$ac_objext conftest$ac_exeext
32232if { (ac_try="$ac_link"
32233case "(($ac_try" in
32234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32235 *) ac_try_echo=$ac_try;;
32236esac
32237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32238 (eval "$ac_link") 2>conftest.er1
32239 ac_status=$?
32240 grep -v '^ *+' conftest.er1 >conftest.err
32241 rm -f conftest.er1
32242 cat conftest.err >&5
32243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244 (exit $ac_status); } &&
32245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32246 { (case "(($ac_try" in
32247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32248 *) ac_try_echo=$ac_try;;
32249esac
32250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32251 (eval "$ac_try") 2>&5
32252 ac_status=$?
32253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254 (exit $ac_status); }; } &&
32255 { ac_try='test -s conftest$ac_exeext'
32256 { (case "(($ac_try" in
32257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258 *) ac_try_echo=$ac_try;;
32259esac
32260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261 (eval "$ac_try") 2>&5
32262 ac_status=$?
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); }; }; then
32265 eval "$as_ac_var=yes"
32266else
32267 echo "$as_me: failed program was:" >&5
32268sed 's/^/| /' conftest.$ac_ext >&5
32269
32270 eval "$as_ac_var=no"
32271fi
32272
32273rm -f core conftest.err conftest.$ac_objext \
32274 conftest$ac_exeext conftest.$ac_ext
32275fi
32276ac_res=`eval echo '${'$as_ac_var'}'`
32277 { echo "$as_me:$LINENO: result: $ac_res" >&5
32278echo "${ECHO_T}$ac_res" >&6; }
32279if test `eval echo '${'$as_ac_var'}'` = yes; then
32280 cat >>confdefs.h <<_ACEOF
32281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32282_ACEOF
32283
32284fi
32285done
Reid Spencerdf3be822006-01-23 08:15:53 +000032286
32287
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032288
32289
32290for ac_func in strerror strerror_r strerror_s
Reid Spencer7931a782004-12-27 06:15:02 +000032291do
32292as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032293{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32294echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32295if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032296 echo $ECHO_N "(cached) $ECHO_C" >&6
32297else
32298 cat >conftest.$ac_ext <<_ACEOF
32299/* confdefs.h. */
32300_ACEOF
32301cat confdefs.h >>conftest.$ac_ext
32302cat >>conftest.$ac_ext <<_ACEOF
32303/* end confdefs.h. */
32304/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32306#define $ac_func innocuous_$ac_func
32307
32308/* System header to define __stub macros and hopefully few prototypes,
32309 which can conflict with char $ac_func (); below.
32310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32311 <limits.h> exists even on freestanding compilers. */
32312
32313#ifdef __STDC__
32314# include <limits.h>
32315#else
32316# include <assert.h>
32317#endif
32318
32319#undef $ac_func
32320
Reid Spencera773bd52006-08-04 18:18:08 +000032321/* Override any GCC internal prototype to avoid an error.
32322 Use char because int might match the return type of a GCC
32323 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000032324#ifdef __cplusplus
32325extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000032326#endif
Reid Spencer7931a782004-12-27 06:15:02 +000032327char $ac_func ();
32328/* The GNU C library defines this for functions which it implements
32329 to always fail with ENOSYS. Some functions are actually named
32330 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032331#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000032332choke me
Reid Spencer7931a782004-12-27 06:15:02 +000032333#endif
32334
32335int
32336main ()
32337{
Reid Spencera773bd52006-08-04 18:18:08 +000032338return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000032339 ;
32340 return 0;
32341}
32342_ACEOF
32343rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032344if { (ac_try="$ac_link"
32345case "(($ac_try" in
32346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347 *) ac_try_echo=$ac_try;;
32348esac
32349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000032351 ac_status=$?
32352 grep -v '^ *+' conftest.er1 >conftest.err
32353 rm -f conftest.er1
32354 cat conftest.err >&5
32355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032356 (exit $ac_status); } &&
32357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32358 { (case "(($ac_try" in
32359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32360 *) ac_try_echo=$ac_try;;
32361esac
32362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363 (eval "$ac_try") 2>&5
32364 ac_status=$?
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); }; } &&
32367 { ac_try='test -s conftest$ac_exeext'
32368 { (case "(($ac_try" in
32369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370 *) ac_try_echo=$ac_try;;
32371esac
32372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373 (eval "$ac_try") 2>&5
32374 ac_status=$?
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032377 eval "$as_ac_var=yes"
32378else
32379 echo "$as_me: failed program was:" >&5
32380sed 's/^/| /' conftest.$ac_ext >&5
32381
Reid Spencera773bd52006-08-04 18:18:08 +000032382 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000032383fi
Reid Spencera773bd52006-08-04 18:18:08 +000032384
Bill Wendlingebcceee2009-04-18 11:20:33 +000032385rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000032386 conftest$ac_exeext conftest.$ac_ext
32387fi
Reid Spencera773bd52006-08-04 18:18:08 +000032388ac_res=`eval echo '${'$as_ac_var'}'`
32389 { echo "$as_me:$LINENO: result: $ac_res" >&5
32390echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000032391if test `eval echo '${'$as_ac_var'}'` = yes; then
32392 cat >>confdefs.h <<_ACEOF
32393#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32394_ACEOF
32395
32396fi
32397done
32398
32399
Reid Spencerba46ca32004-12-31 05:49:15 +000032400
32401
Chris Lattner0b142592005-11-14 06:57:34 +000032402
Chris Lattner511f11d2005-11-14 07:25:50 +000032403for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032404do
32405as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032406{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32407echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32408if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032409 echo $ECHO_N "(cached) $ECHO_C" >&6
32410else
32411 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032412/* confdefs.h. */
32413_ACEOF
32414cat confdefs.h >>conftest.$ac_ext
32415cat >>conftest.$ac_ext <<_ACEOF
32416/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032417/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32419#define $ac_func innocuous_$ac_func
32420
32421/* System header to define __stub macros and hopefully few prototypes,
32422 which can conflict with char $ac_func (); below.
32423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32424 <limits.h> exists even on freestanding compilers. */
32425
32426#ifdef __STDC__
32427# include <limits.h>
32428#else
32429# include <assert.h>
32430#endif
32431
32432#undef $ac_func
32433
Reid Spencera773bd52006-08-04 18:18:08 +000032434/* Override any GCC internal prototype to avoid an error.
32435 Use char because int might match the return type of a GCC
32436 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032437#ifdef __cplusplus
32438extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032439#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032440char $ac_func ();
32441/* The GNU C library defines this for functions which it implements
32442 to always fail with ENOSYS. Some functions are actually named
32443 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032444#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032445choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032446#endif
John Criswell7a73b802003-06-30 21:59:07 +000032447
John Criswell7a73b802003-06-30 21:59:07 +000032448int
32449main ()
32450{
Reid Spencera773bd52006-08-04 18:18:08 +000032451return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032452 ;
32453 return 0;
32454}
32455_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032456rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032457if { (ac_try="$ac_link"
32458case "(($ac_try" in
32459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32460 *) ac_try_echo=$ac_try;;
32461esac
32462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32463 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032464 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032465 grep -v '^ *+' conftest.er1 >conftest.err
32466 rm -f conftest.er1
32467 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032469 (exit $ac_status); } &&
32470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32471 { (case "(($ac_try" in
32472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32473 *) ac_try_echo=$ac_try;;
32474esac
32475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32476 (eval "$ac_try") 2>&5
32477 ac_status=$?
32478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32479 (exit $ac_status); }; } &&
32480 { ac_try='test -s conftest$ac_exeext'
32481 { (case "(($ac_try" in
32482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32483 *) ac_try_echo=$ac_try;;
32484esac
32485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32486 (eval "$ac_try") 2>&5
32487 ac_status=$?
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032490 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000032491else
32492 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032493sed 's/^/| /' conftest.$ac_ext >&5
32494
Reid Spencera773bd52006-08-04 18:18:08 +000032495 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032496fi
Reid Spencera773bd52006-08-04 18:18:08 +000032497
Bill Wendlingebcceee2009-04-18 11:20:33 +000032498rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032499 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032500fi
Reid Spencera773bd52006-08-04 18:18:08 +000032501ac_res=`eval echo '${'$as_ac_var'}'`
32502 { echo "$as_me:$LINENO: result: $ac_res" >&5
32503echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032504if test `eval echo '${'$as_ac_var'}'` = yes; then
32505 cat >>confdefs.h <<_ACEOF
32506#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000032507_ACEOF
32508
32509fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032510done
John Criswell7a73b802003-06-30 21:59:07 +000032511
Reid Spencercdb08a32006-06-05 16:11:07 +000032512
32513
32514
32515
Reid Spencerafa22e22006-12-10 23:29:19 +000032516for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000032517do
32518as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032519{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32520echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32521if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032522 echo $ECHO_N "(cached) $ECHO_C" >&6
32523else
32524 cat >conftest.$ac_ext <<_ACEOF
32525/* confdefs.h. */
32526_ACEOF
32527cat confdefs.h >>conftest.$ac_ext
32528cat >>conftest.$ac_ext <<_ACEOF
32529/* end confdefs.h. */
32530/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32532#define $ac_func innocuous_$ac_func
32533
32534/* System header to define __stub macros and hopefully few prototypes,
32535 which can conflict with char $ac_func (); below.
32536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32537 <limits.h> exists even on freestanding compilers. */
32538
32539#ifdef __STDC__
32540# include <limits.h>
32541#else
32542# include <assert.h>
32543#endif
32544
32545#undef $ac_func
32546
Reid Spencera773bd52006-08-04 18:18:08 +000032547/* Override any GCC internal prototype to avoid an error.
32548 Use char because int might match the return type of a GCC
32549 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000032550#ifdef __cplusplus
32551extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000032552#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000032553char $ac_func ();
32554/* The GNU C library defines this for functions which it implements
32555 to always fail with ENOSYS. Some functions are actually named
32556 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032557#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000032558choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000032559#endif
32560
32561int
32562main ()
32563{
Reid Spencera773bd52006-08-04 18:18:08 +000032564return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000032565 ;
32566 return 0;
32567}
32568_ACEOF
32569rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032570if { (ac_try="$ac_link"
32571case "(($ac_try" in
32572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32573 *) ac_try_echo=$ac_try;;
32574esac
32575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32576 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000032577 ac_status=$?
32578 grep -v '^ *+' conftest.er1 >conftest.err
32579 rm -f conftest.er1
32580 cat conftest.err >&5
32581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032582 (exit $ac_status); } &&
32583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32584 { (case "(($ac_try" in
32585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32586 *) ac_try_echo=$ac_try;;
32587esac
32588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32589 (eval "$ac_try") 2>&5
32590 ac_status=$?
32591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592 (exit $ac_status); }; } &&
32593 { ac_try='test -s conftest$ac_exeext'
32594 { (case "(($ac_try" in
32595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596 *) ac_try_echo=$ac_try;;
32597esac
32598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32599 (eval "$ac_try") 2>&5
32600 ac_status=$?
32601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032603 eval "$as_ac_var=yes"
32604else
32605 echo "$as_me: failed program was:" >&5
32606sed 's/^/| /' conftest.$ac_ext >&5
32607
Reid Spencera773bd52006-08-04 18:18:08 +000032608 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000032609fi
Reid Spencera773bd52006-08-04 18:18:08 +000032610
Bill Wendlingebcceee2009-04-18 11:20:33 +000032611rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000032612 conftest$ac_exeext conftest.$ac_ext
32613fi
Reid Spencera773bd52006-08-04 18:18:08 +000032614ac_res=`eval echo '${'$as_ac_var'}'`
32615 { echo "$as_me:$LINENO: result: $ac_res" >&5
32616echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000032617if test `eval echo '${'$as_ac_var'}'` = yes; then
32618 cat >>confdefs.h <<_ACEOF
32619#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32620_ACEOF
32621
32622fi
32623done
32624
Reid Spencera773bd52006-08-04 18:18:08 +000032625{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32626echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032627if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032628 echo $ECHO_N "(cached) $ECHO_C" >&6
32629else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032630 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032631ac_cpp='$CPP $CPPFLAGS'
32632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32634ac_compiler_gnu=$ac_cv_c_compiler_gnu
32635
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032636 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032637 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032638else
32639 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032640
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032641 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000032642_ACEOF
32643cat confdefs.h >>conftest.$ac_ext
32644cat >>conftest.$ac_ext <<_ACEOF
32645/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032646
John Criswella0137d32003-10-13 16:22:01 +000032647#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000032648#include <stdlib.h>
32649
John Criswella0137d32003-10-13 16:22:01 +000032650int
32651main ()
32652{
32653
Reid Spencer2706f8c2004-09-19 23:53:36 +000032654volatile double A, B;
32655char Buffer[100];
32656A = 1;
32657A /= 10.0;
32658sprintf(Buffer, "%a", A);
32659B = atof(Buffer);
32660if (A != B)
32661 return (1);
32662if (A != 0x1.999999999999ap-4)
32663 return (1);
32664return (0);
John Criswella0137d32003-10-13 16:22:01 +000032665 ;
32666 return 0;
32667}
32668_ACEOF
32669rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032670if { (ac_try="$ac_link"
32671case "(($ac_try" in
32672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32673 *) ac_try_echo=$ac_try;;
32674esac
32675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32676 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032677 ac_status=$?
32678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032680 { (case "(($ac_try" in
32681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682 *) ac_try_echo=$ac_try;;
32683esac
32684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32685 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032686 ac_status=$?
32687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032689 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000032690else
32691 echo "$as_me: program exited with status $ac_status" >&5
32692echo "$as_me: failed program was:" >&5
32693sed 's/^/| /' conftest.$ac_ext >&5
32694
32695( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000032696llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032697fi
Reid Spencera773bd52006-08-04 18:18:08 +000032698rm -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 +000032699fi
Reid Spencera773bd52006-08-04 18:18:08 +000032700
32701
Reid Spencer2706f8c2004-09-19 23:53:36 +000032702 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032703ac_cpp='$CPP $CPPFLAGS'
32704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32706ac_compiler_gnu=$ac_cv_c_compiler_gnu
32707
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032708fi
Reid Spencera773bd52006-08-04 18:18:08 +000032709{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32710echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032711 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000032712
32713cat >>confdefs.h <<\_ACEOF
32714#define HAVE_PRINTF_A 1
32715_ACEOF
32716
Reid Spencer2706f8c2004-09-19 23:53:36 +000032717 fi
John Criswella0137d32003-10-13 16:22:01 +000032718
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032719# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32720# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000032721{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32722echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032723if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000032724 echo $ECHO_N "(cached) $ECHO_C" >&6
32725else
John Criswell0021c312004-02-13 21:57:29 +000032726 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000032727/* confdefs.h. */
32728_ACEOF
32729cat confdefs.h >>conftest.$ac_ext
32730cat >>conftest.$ac_ext <<_ACEOF
32731/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032732#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000032733int
32734main ()
32735{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032736char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000032737 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000032738 ;
32739 return 0;
32740}
32741_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032742rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032743if { (ac_try="$ac_link"
32744case "(($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_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000032750 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032751 grep -v '^ *+' conftest.er1 >conftest.err
32752 rm -f conftest.er1
32753 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000032754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032755 (exit $ac_status); } &&
32756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32757 { (case "(($ac_try" in
32758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32759 *) ac_try_echo=$ac_try;;
32760esac
32761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32762 (eval "$ac_try") 2>&5
32763 ac_status=$?
32764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765 (exit $ac_status); }; } &&
32766 { ac_try='test -s conftest$ac_exeext'
32767 { (case "(($ac_try" in
32768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769 *) ac_try_echo=$ac_try;;
32770esac
32771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772 (eval "$ac_try") 2>&5
32773 ac_status=$?
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032776 ac_cv_working_alloca_h=yes
32777else
32778 echo "$as_me: failed program was:" >&5
32779sed 's/^/| /' conftest.$ac_ext >&5
32780
Reid Spencera773bd52006-08-04 18:18:08 +000032781 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000032782fi
Reid Spencera773bd52006-08-04 18:18:08 +000032783
Bill Wendlingebcceee2009-04-18 11:20:33 +000032784rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032785 conftest$ac_exeext conftest.$ac_ext
32786fi
Reid Spencera773bd52006-08-04 18:18:08 +000032787{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32788echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032789if test $ac_cv_working_alloca_h = yes; then
32790
32791cat >>confdefs.h <<\_ACEOF
32792#define HAVE_ALLOCA_H 1
32793_ACEOF
32794
32795fi
32796
Reid Spencera773bd52006-08-04 18:18:08 +000032797{ echo "$as_me:$LINENO: checking for alloca" >&5
32798echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032799if test "${ac_cv_func_alloca_works+set}" = set; then
32800 echo $ECHO_N "(cached) $ECHO_C" >&6
32801else
32802 cat >conftest.$ac_ext <<_ACEOF
32803/* confdefs.h. */
32804_ACEOF
32805cat confdefs.h >>conftest.$ac_ext
32806cat >>conftest.$ac_ext <<_ACEOF
32807/* end confdefs.h. */
32808#ifdef __GNUC__
32809# define alloca __builtin_alloca
32810#else
32811# ifdef _MSC_VER
32812# include <malloc.h>
32813# define alloca _alloca
32814# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000032815# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032816# include <alloca.h>
32817# else
32818# ifdef _AIX
32819 #pragma alloca
32820# else
32821# ifndef alloca /* predefined by HP cc +Olibcalls */
32822char *alloca ();
32823# endif
32824# endif
32825# endif
32826# endif
32827#endif
32828
32829int
32830main ()
32831{
32832char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032833 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032834 ;
32835 return 0;
32836}
32837_ACEOF
32838rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032839if { (ac_try="$ac_link"
32840case "(($ac_try" in
32841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32842 *) ac_try_echo=$ac_try;;
32843esac
32844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32845 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032846 ac_status=$?
32847 grep -v '^ *+' conftest.er1 >conftest.err
32848 rm -f conftest.er1
32849 cat conftest.err >&5
32850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032851 (exit $ac_status); } &&
32852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32853 { (case "(($ac_try" in
32854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32855 *) ac_try_echo=$ac_try;;
32856esac
32857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32858 (eval "$ac_try") 2>&5
32859 ac_status=$?
32860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861 (exit $ac_status); }; } &&
32862 { ac_try='test -s conftest$ac_exeext'
32863 { (case "(($ac_try" in
32864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32865 *) ac_try_echo=$ac_try;;
32866esac
32867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32868 (eval "$ac_try") 2>&5
32869 ac_status=$?
32870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32871 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032872 ac_cv_func_alloca_works=yes
32873else
32874 echo "$as_me: failed program was:" >&5
32875sed 's/^/| /' conftest.$ac_ext >&5
32876
Reid Spencera773bd52006-08-04 18:18:08 +000032877 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032878fi
Reid Spencera773bd52006-08-04 18:18:08 +000032879
Bill Wendlingebcceee2009-04-18 11:20:33 +000032880rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032881 conftest$ac_exeext conftest.$ac_ext
32882fi
Reid Spencera773bd52006-08-04 18:18:08 +000032883{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32884echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032885
32886if test $ac_cv_func_alloca_works = yes; then
32887
32888cat >>confdefs.h <<\_ACEOF
32889#define HAVE_ALLOCA 1
32890_ACEOF
32891
32892else
32893 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32894# that cause trouble. Some versions do not even contain alloca or
32895# contain a buggy version. If you still want to use their alloca,
32896# use ar to extract alloca.o from them instead of compiling alloca.c.
32897
Reid Spencera773bd52006-08-04 18:18:08 +000032898ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032899
32900cat >>confdefs.h <<\_ACEOF
32901#define C_ALLOCA 1
32902_ACEOF
32903
32904
Reid Spencera773bd52006-08-04 18:18:08 +000032905{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32906echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032907if test "${ac_cv_os_cray+set}" = set; then
32908 echo $ECHO_N "(cached) $ECHO_C" >&6
32909else
32910 cat >conftest.$ac_ext <<_ACEOF
32911/* confdefs.h. */
32912_ACEOF
32913cat confdefs.h >>conftest.$ac_ext
32914cat >>conftest.$ac_ext <<_ACEOF
32915/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032916#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032917webecray
32918#else
32919wenotbecray
32920#endif
32921
32922_ACEOF
32923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32924 $EGREP "webecray" >/dev/null 2>&1; then
32925 ac_cv_os_cray=yes
32926else
32927 ac_cv_os_cray=no
32928fi
32929rm -f conftest*
32930
32931fi
Reid Spencera773bd52006-08-04 18:18:08 +000032932{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32933echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032934if test $ac_cv_os_cray = yes; then
32935 for ac_func in _getb67 GETB67 getb67; do
32936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032937{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32938echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32939if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032940 echo $ECHO_N "(cached) $ECHO_C" >&6
32941else
32942 cat >conftest.$ac_ext <<_ACEOF
32943/* confdefs.h. */
32944_ACEOF
32945cat confdefs.h >>conftest.$ac_ext
32946cat >>conftest.$ac_ext <<_ACEOF
32947/* end confdefs.h. */
32948/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32950#define $ac_func innocuous_$ac_func
32951
32952/* System header to define __stub macros and hopefully few prototypes,
32953 which can conflict with char $ac_func (); below.
32954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32955 <limits.h> exists even on freestanding compilers. */
32956
32957#ifdef __STDC__
32958# include <limits.h>
32959#else
32960# include <assert.h>
32961#endif
32962
32963#undef $ac_func
32964
Reid Spencera773bd52006-08-04 18:18:08 +000032965/* Override any GCC internal prototype to avoid an error.
32966 Use char because int might match the return type of a GCC
32967 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032968#ifdef __cplusplus
32969extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032970#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032971char $ac_func ();
32972/* The GNU C library defines this for functions which it implements
32973 to always fail with ENOSYS. Some functions are actually named
32974 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032975#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032976choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032977#endif
32978
32979int
32980main ()
32981{
Reid Spencera773bd52006-08-04 18:18:08 +000032982return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032983 ;
32984 return 0;
32985}
32986_ACEOF
32987rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032988if { (ac_try="$ac_link"
32989case "(($ac_try" in
32990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32991 *) ac_try_echo=$ac_try;;
32992esac
32993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32994 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032995 ac_status=$?
32996 grep -v '^ *+' conftest.er1 >conftest.err
32997 rm -f conftest.er1
32998 cat conftest.err >&5
32999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033000 (exit $ac_status); } &&
33001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33002 { (case "(($ac_try" in
33003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33004 *) ac_try_echo=$ac_try;;
33005esac
33006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33007 (eval "$ac_try") 2>&5
33008 ac_status=$?
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); }; } &&
33011 { ac_try='test -s conftest$ac_exeext'
33012 { (case "(($ac_try" in
33013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014 *) ac_try_echo=$ac_try;;
33015esac
33016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017 (eval "$ac_try") 2>&5
33018 ac_status=$?
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033021 eval "$as_ac_var=yes"
33022else
33023 echo "$as_me: failed program was:" >&5
33024sed 's/^/| /' conftest.$ac_ext >&5
33025
Reid Spencera773bd52006-08-04 18:18:08 +000033026 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033027fi
Reid Spencera773bd52006-08-04 18:18:08 +000033028
Bill Wendlingebcceee2009-04-18 11:20:33 +000033029rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033030 conftest$ac_exeext conftest.$ac_ext
33031fi
Reid Spencera773bd52006-08-04 18:18:08 +000033032ac_res=`eval echo '${'$as_ac_var'}'`
33033 { echo "$as_me:$LINENO: result: $ac_res" >&5
33034echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033035if test `eval echo '${'$as_ac_var'}'` = yes; then
33036
33037cat >>confdefs.h <<_ACEOF
33038#define CRAY_STACKSEG_END $ac_func
33039_ACEOF
33040
33041 break
33042fi
33043
33044 done
33045fi
33046
Reid Spencera773bd52006-08-04 18:18:08 +000033047{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33048echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033049if test "${ac_cv_c_stack_direction+set}" = set; then
33050 echo $ECHO_N "(cached) $ECHO_C" >&6
33051else
33052 if test "$cross_compiling" = yes; then
33053 ac_cv_c_stack_direction=0
33054else
33055 cat >conftest.$ac_ext <<_ACEOF
33056/* confdefs.h. */
33057_ACEOF
33058cat confdefs.h >>conftest.$ac_ext
33059cat >>conftest.$ac_ext <<_ACEOF
33060/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000033061$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033062int
33063find_stack_direction ()
33064{
33065 static char *addr = 0;
33066 auto char dummy;
33067 if (addr == 0)
33068 {
33069 addr = &dummy;
33070 return find_stack_direction ();
33071 }
John Criswell0021c312004-02-13 21:57:29 +000033072 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033073 return (&dummy > addr) ? 1 : -1;
33074}
John Criswell0021c312004-02-13 21:57:29 +000033075
John Criswell0021c312004-02-13 21:57:29 +000033076int
33077main ()
33078{
Reid Spencera773bd52006-08-04 18:18:08 +000033079 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000033080}
33081_ACEOF
33082rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033083if { (ac_try="$ac_link"
33084case "(($ac_try" in
33085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33086 *) ac_try_echo=$ac_try;;
33087esac
33088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33089 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033090 ac_status=$?
33091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033093 { (case "(($ac_try" in
33094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33095 *) ac_try_echo=$ac_try;;
33096esac
33097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33098 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033099 ac_status=$?
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033102 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000033103else
33104 echo "$as_me: program exited with status $ac_status" >&5
33105echo "$as_me: failed program was:" >&5
33106sed 's/^/| /' conftest.$ac_ext >&5
33107
33108( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033109ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000033110fi
Reid Spencera773bd52006-08-04 18:18:08 +000033111rm -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 +000033112fi
Reid Spencera773bd52006-08-04 18:18:08 +000033113
33114
John Criswell0021c312004-02-13 21:57:29 +000033115fi
Reid Spencera773bd52006-08-04 18:18:08 +000033116{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33117echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033118
33119cat >>confdefs.h <<_ACEOF
33120#define STACK_DIRECTION $ac_cv_c_stack_direction
33121_ACEOF
33122
33123
John Criswell0021c312004-02-13 21:57:29 +000033124fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033125
33126
Reid Spencera773bd52006-08-04 18:18:08 +000033127{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33128echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033129if test "${ac_cv_func_rand48+set}" = set; then
33130 echo $ECHO_N "(cached) $ECHO_C" >&6
33131else
Reid Spencera773bd52006-08-04 18:18:08 +000033132 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033133ac_cpp='$CXXCPP $CPPFLAGS'
33134ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33135ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33136ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33137
33138 cat >conftest.$ac_ext <<_ACEOF
33139/* confdefs.h. */
33140_ACEOF
33141cat confdefs.h >>conftest.$ac_ext
33142cat >>conftest.$ac_ext <<_ACEOF
33143/* end confdefs.h. */
33144#include <stdlib.h>
33145int
33146main ()
33147{
33148srand48(0);lrand48();drand48();
33149 ;
33150 return 0;
33151}
33152_ACEOF
33153rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033154if { (ac_try="$ac_compile"
33155case "(($ac_try" in
33156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33157 *) ac_try_echo=$ac_try;;
33158esac
33159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33160 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033161 ac_status=$?
33162 grep -v '^ *+' conftest.er1 >conftest.err
33163 rm -f conftest.er1
33164 cat conftest.err >&5
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033166 (exit $ac_status); } &&
33167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33168 { (case "(($ac_try" in
33169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170 *) ac_try_echo=$ac_try;;
33171esac
33172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173 (eval "$ac_try") 2>&5
33174 ac_status=$?
33175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 (exit $ac_status); }; } &&
33177 { ac_try='test -s conftest.$ac_objext'
33178 { (case "(($ac_try" in
33179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180 *) ac_try_echo=$ac_try;;
33181esac
33182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183 (eval "$ac_try") 2>&5
33184 ac_status=$?
33185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033187 ac_cv_func_rand48=yes
33188else
33189 echo "$as_me: failed program was:" >&5
33190sed 's/^/| /' conftest.$ac_ext >&5
33191
Reid Spencera773bd52006-08-04 18:18:08 +000033192 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033193fi
Reid Spencera773bd52006-08-04 18:18:08 +000033194
33195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033196 ac_ext=c
33197ac_cpp='$CPP $CPPFLAGS'
33198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33200ac_compiler_gnu=$ac_cv_c_compiler_gnu
33201
33202fi
Reid Spencera773bd52006-08-04 18:18:08 +000033203{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33204echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033205
33206if test "$ac_cv_func_rand48" = "yes" ; then
33207
33208cat >>confdefs.h <<\_ACEOF
33209#define HAVE_RAND48 1
33210_ACEOF
33211
33212fi
John Criswell0021c312004-02-13 21:57:29 +000033213
33214
Reid Spencera773bd52006-08-04 18:18:08 +000033215{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33216echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033217if test "${ac_cv_cxx_namespaces+set}" = set; then
33218 echo $ECHO_N "(cached) $ECHO_C" >&6
33219else
Reid Spencera773bd52006-08-04 18:18:08 +000033220 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033221ac_cpp='$CXXCPP $CPPFLAGS'
33222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33225
33226 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033227/* confdefs.h. */
33228_ACEOF
33229cat confdefs.h >>conftest.$ac_ext
33230cat >>conftest.$ac_ext <<_ACEOF
33231/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033232namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000033233int
33234main ()
33235{
33236using namespace Outer::Inner; return i;
33237 ;
33238 return 0;
33239}
33240_ACEOF
33241rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033242if { (ac_try="$ac_compile"
33243case "(($ac_try" in
33244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33245 *) ac_try_echo=$ac_try;;
33246esac
33247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33248 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033249 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033250 grep -v '^ *+' conftest.er1 >conftest.err
33251 rm -f conftest.er1
33252 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033254 (exit $ac_status); } &&
33255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33256 { (case "(($ac_try" in
33257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33258 *) ac_try_echo=$ac_try;;
33259esac
33260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33261 (eval "$ac_try") 2>&5
33262 ac_status=$?
33263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264 (exit $ac_status); }; } &&
33265 { ac_try='test -s conftest.$ac_objext'
33266 { (case "(($ac_try" in
33267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268 *) ac_try_echo=$ac_try;;
33269esac
33270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271 (eval "$ac_try") 2>&5
33272 ac_status=$?
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033275 ac_cv_cxx_namespaces=yes
33276else
33277 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033278sed 's/^/| /' conftest.$ac_ext >&5
33279
Reid Spencera773bd52006-08-04 18:18:08 +000033280 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000033281fi
Reid Spencera773bd52006-08-04 18:18:08 +000033282
33283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033284 ac_ext=c
33285ac_cpp='$CPP $CPPFLAGS'
33286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33288ac_compiler_gnu=$ac_cv_c_compiler_gnu
33289
33290
33291fi
Reid Spencera773bd52006-08-04 18:18:08 +000033292{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33293echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033294if test "$ac_cv_cxx_namespaces" = yes; then
33295
33296cat >>confdefs.h <<\_ACEOF
33297#define HAVE_NAMESPACES
33298_ACEOF
33299
33300fi
33301
Reid Spencera773bd52006-08-04 18:18:08 +000033302{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33303echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033304if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33305 echo $ECHO_N "(cached) $ECHO_C" >&6
33306else
33307
Reid Spencera773bd52006-08-04 18:18:08 +000033308 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033309ac_cpp='$CXXCPP $CPPFLAGS'
33310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33313
33314 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033315/* confdefs.h. */
33316_ACEOF
33317cat confdefs.h >>conftest.$ac_ext
33318cat >>conftest.$ac_ext <<_ACEOF
33319/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033320#include <iterator>
33321#ifdef HAVE_NAMESPACES
33322using namespace std;
33323#endif
John Criswell7a73b802003-06-30 21:59:07 +000033324int
33325main ()
33326{
33327iterator<int,int,int> t; return 0;
33328 ;
33329 return 0;
33330}
33331_ACEOF
33332rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033333if { (ac_try="$ac_compile"
33334case "(($ac_try" in
33335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33336 *) ac_try_echo=$ac_try;;
33337esac
33338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33339 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033340 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033341 grep -v '^ *+' conftest.er1 >conftest.err
33342 rm -f conftest.er1
33343 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033345 (exit $ac_status); } &&
33346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33347 { (case "(($ac_try" in
33348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33349 *) ac_try_echo=$ac_try;;
33350esac
33351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33352 (eval "$ac_try") 2>&5
33353 ac_status=$?
33354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33355 (exit $ac_status); }; } &&
33356 { ac_try='test -s conftest.$ac_objext'
33357 { (case "(($ac_try" in
33358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33359 *) ac_try_echo=$ac_try;;
33360esac
33361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33362 (eval "$ac_try") 2>&5
33363 ac_status=$?
33364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33365 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033366 ac_cv_cxx_have_std_iterator=yes
33367else
33368 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033369sed 's/^/| /' conftest.$ac_ext >&5
33370
Reid Spencera773bd52006-08-04 18:18:08 +000033371 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033372fi
Reid Spencera773bd52006-08-04 18:18:08 +000033373
33374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033375 ac_ext=c
33376ac_cpp='$CPP $CPPFLAGS'
33377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33379ac_compiler_gnu=$ac_cv_c_compiler_gnu
33380
33381
33382fi
Reid Spencera773bd52006-08-04 18:18:08 +000033383{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33384echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033385if test "$ac_cv_cxx_have_std_iterator" = yes
33386then
John Criswell40468462004-09-24 21:19:06 +000033387
33388cat >>confdefs.h <<\_ACEOF
33389#define HAVE_STD_ITERATOR 1
33390_ACEOF
33391
33392else
33393
33394cat >>confdefs.h <<\_ACEOF
33395#define HAVE_STD_ITERATOR 0
33396_ACEOF
33397
John Criswell7a73b802003-06-30 21:59:07 +000033398fi
33399
Reid Spencera773bd52006-08-04 18:18:08 +000033400{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33401echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033402if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33403 echo $ECHO_N "(cached) $ECHO_C" >&6
33404else
33405
Reid Spencera773bd52006-08-04 18:18:08 +000033406 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033407ac_cpp='$CXXCPP $CPPFLAGS'
33408ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33411
33412 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033413/* confdefs.h. */
33414_ACEOF
33415cat confdefs.h >>conftest.$ac_ext
33416cat >>conftest.$ac_ext <<_ACEOF
33417/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033418#include <iterator>
33419#ifdef HAVE_NAMESPACES
33420using namespace std;
33421#endif
John Criswell7a73b802003-06-30 21:59:07 +000033422int
33423main ()
33424{
John Criswellc78022e2003-07-29 19:11:58 +000033425bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033426 ;
33427 return 0;
33428}
33429_ACEOF
33430rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033431if { (ac_try="$ac_compile"
33432case "(($ac_try" in
33433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33434 *) ac_try_echo=$ac_try;;
33435esac
33436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33437 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033438 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033439 grep -v '^ *+' conftest.er1 >conftest.err
33440 rm -f conftest.er1
33441 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033443 (exit $ac_status); } &&
33444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33445 { (case "(($ac_try" in
33446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33447 *) ac_try_echo=$ac_try;;
33448esac
33449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33450 (eval "$ac_try") 2>&5
33451 ac_status=$?
33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 (exit $ac_status); }; } &&
33454 { ac_try='test -s conftest.$ac_objext'
33455 { (case "(($ac_try" in
33456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33457 *) ac_try_echo=$ac_try;;
33458esac
33459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33460 (eval "$ac_try") 2>&5
33461 ac_status=$?
33462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33463 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033464 ac_cv_cxx_have_bi_iterator=yes
33465else
33466 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033467sed 's/^/| /' conftest.$ac_ext >&5
33468
Reid Spencera773bd52006-08-04 18:18:08 +000033469 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033470fi
Reid Spencera773bd52006-08-04 18:18:08 +000033471
33472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033473 ac_ext=c
33474ac_cpp='$CPP $CPPFLAGS'
33475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33477ac_compiler_gnu=$ac_cv_c_compiler_gnu
33478
33479
33480fi
Reid Spencera773bd52006-08-04 18:18:08 +000033481{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33482echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033483if test "$ac_cv_cxx_have_bi_iterator" = yes
33484then
John Criswell40468462004-09-24 21:19:06 +000033485
33486cat >>confdefs.h <<\_ACEOF
33487#define HAVE_BI_ITERATOR 1
33488_ACEOF
33489
33490else
33491
33492cat >>confdefs.h <<\_ACEOF
33493#define HAVE_BI_ITERATOR 0
33494_ACEOF
33495
John Criswell7a73b802003-06-30 21:59:07 +000033496fi
33497
Reid Spencera773bd52006-08-04 18:18:08 +000033498{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33499echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033500if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33501 echo $ECHO_N "(cached) $ECHO_C" >&6
33502else
33503
Reid Spencera773bd52006-08-04 18:18:08 +000033504 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033505ac_cpp='$CXXCPP $CPPFLAGS'
33506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33509
33510 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033511/* confdefs.h. */
33512_ACEOF
33513cat confdefs.h >>conftest.$ac_ext
33514cat >>conftest.$ac_ext <<_ACEOF
33515/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033516#include <iterator>
33517#ifdef HAVE_NAMESPACES
33518using namespace std;
33519#endif
John Criswell7a73b802003-06-30 21:59:07 +000033520int
33521main ()
33522{
John Criswellc78022e2003-07-29 19:11:58 +000033523forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033524 ;
33525 return 0;
33526}
33527_ACEOF
33528rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033529if { (ac_try="$ac_compile"
33530case "(($ac_try" in
33531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33532 *) ac_try_echo=$ac_try;;
33533esac
33534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33535 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033536 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033537 grep -v '^ *+' conftest.er1 >conftest.err
33538 rm -f conftest.er1
33539 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033541 (exit $ac_status); } &&
33542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33543 { (case "(($ac_try" in
33544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33545 *) ac_try_echo=$ac_try;;
33546esac
33547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33548 (eval "$ac_try") 2>&5
33549 ac_status=$?
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); }; } &&
33552 { ac_try='test -s conftest.$ac_objext'
33553 { (case "(($ac_try" in
33554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555 *) ac_try_echo=$ac_try;;
33556esac
33557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558 (eval "$ac_try") 2>&5
33559 ac_status=$?
33560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033562 ac_cv_cxx_have_fwd_iterator=yes
33563else
33564 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033565sed 's/^/| /' conftest.$ac_ext >&5
33566
Reid Spencera773bd52006-08-04 18:18:08 +000033567 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033568fi
Reid Spencera773bd52006-08-04 18:18:08 +000033569
33570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033571 ac_ext=c
33572ac_cpp='$CPP $CPPFLAGS'
33573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33575ac_compiler_gnu=$ac_cv_c_compiler_gnu
33576
33577
33578fi
Reid Spencera773bd52006-08-04 18:18:08 +000033579{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33580echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033581if test "$ac_cv_cxx_have_fwd_iterator" = yes
33582then
John Criswell40468462004-09-24 21:19:06 +000033583
33584cat >>confdefs.h <<\_ACEOF
33585#define HAVE_FWD_ITERATOR 1
33586_ACEOF
33587
33588else
33589
33590cat >>confdefs.h <<\_ACEOF
33591#define HAVE_FWD_ITERATOR 0
33592_ACEOF
33593
John Criswell7a73b802003-06-30 21:59:07 +000033594fi
33595
33596
Reid Spencera773bd52006-08-04 18:18:08 +000033597{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33598echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033599if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33600 echo $ECHO_N "(cached) $ECHO_C" >&6
33601else
Reid Spencera773bd52006-08-04 18:18:08 +000033602 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033603ac_cpp='$CXXCPP $CPPFLAGS'
33604ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33605ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33606ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33607
Reid Spencerabec8f92004-10-27 23:03:44 +000033608 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033609/* confdefs.h. */
33610_ACEOF
33611cat confdefs.h >>conftest.$ac_ext
33612cat >>conftest.$ac_ext <<_ACEOF
33613/* end confdefs.h. */
33614#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033615int
33616main ()
33617{
33618float f; isnan(f);
33619 ;
33620 return 0;
33621}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033622_ACEOF
33623rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033624if { (ac_try="$ac_compile"
33625case "(($ac_try" in
33626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33627 *) ac_try_echo=$ac_try;;
33628esac
33629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33630 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033631 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033632 grep -v '^ *+' conftest.er1 >conftest.err
33633 rm -f conftest.er1
33634 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033636 (exit $ac_status); } &&
33637 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33638 { (case "(($ac_try" in
33639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33640 *) ac_try_echo=$ac_try;;
33641esac
33642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33643 (eval "$ac_try") 2>&5
33644 ac_status=$?
33645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33646 (exit $ac_status); }; } &&
33647 { ac_try='test -s conftest.$ac_objext'
33648 { (case "(($ac_try" in
33649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33650 *) ac_try_echo=$ac_try;;
33651esac
33652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33653 (eval "$ac_try") 2>&5
33654 ac_status=$?
33655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33656 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033657 ac_cv_func_isnan_in_math_h=yes
33658else
33659 echo "$as_me: failed program was:" >&5
33660sed 's/^/| /' conftest.$ac_ext >&5
33661
Reid Spencera773bd52006-08-04 18:18:08 +000033662 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033663fi
Reid Spencera773bd52006-08-04 18:18:08 +000033664
33665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033666 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033667ac_cpp='$CPP $CPPFLAGS'
33668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33670ac_compiler_gnu=$ac_cv_c_compiler_gnu
33671
33672fi
Reid Spencera773bd52006-08-04 18:18:08 +000033673{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33674echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033675
33676
33677if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033678
33679cat >>confdefs.h <<\_ACEOF
33680#define HAVE_ISNAN_IN_MATH_H 1
33681_ACEOF
33682
Reid Spencerabec8f92004-10-27 23:03:44 +000033683fi
33684
Reid Spencera773bd52006-08-04 18:18:08 +000033685{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33686echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033687if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33688 echo $ECHO_N "(cached) $ECHO_C" >&6
33689else
Reid Spencera773bd52006-08-04 18:18:08 +000033690 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033691ac_cpp='$CXXCPP $CPPFLAGS'
33692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33695
Reid Spencerabec8f92004-10-27 23:03:44 +000033696 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033697/* confdefs.h. */
33698_ACEOF
33699cat confdefs.h >>conftest.$ac_ext
33700cat >>conftest.$ac_ext <<_ACEOF
33701/* end confdefs.h. */
33702#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033703int
33704main ()
33705{
33706float f; isnan(f);
33707 ;
33708 return 0;
33709}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033710_ACEOF
33711rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033712if { (ac_try="$ac_compile"
33713case "(($ac_try" in
33714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33715 *) ac_try_echo=$ac_try;;
33716esac
33717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33718 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033719 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033720 grep -v '^ *+' conftest.er1 >conftest.err
33721 rm -f conftest.er1
33722 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033724 (exit $ac_status); } &&
33725 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33726 { (case "(($ac_try" in
33727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33728 *) ac_try_echo=$ac_try;;
33729esac
33730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33731 (eval "$ac_try") 2>&5
33732 ac_status=$?
33733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734 (exit $ac_status); }; } &&
33735 { ac_try='test -s conftest.$ac_objext'
33736 { (case "(($ac_try" in
33737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33738 *) ac_try_echo=$ac_try;;
33739esac
33740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33741 (eval "$ac_try") 2>&5
33742 ac_status=$?
33743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033745 ac_cv_func_isnan_in_cmath=yes
33746else
33747 echo "$as_me: failed program was:" >&5
33748sed 's/^/| /' conftest.$ac_ext >&5
33749
Reid Spencera773bd52006-08-04 18:18:08 +000033750 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033751fi
Reid Spencera773bd52006-08-04 18:18:08 +000033752
33753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033754 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033755ac_cpp='$CPP $CPPFLAGS'
33756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33758ac_compiler_gnu=$ac_cv_c_compiler_gnu
33759
33760fi
Reid Spencera773bd52006-08-04 18:18:08 +000033761{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33762echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033763
33764if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033765
33766cat >>confdefs.h <<\_ACEOF
33767#define HAVE_ISNAN_IN_CMATH 1
33768_ACEOF
33769
Reid Spencerabec8f92004-10-27 23:03:44 +000033770fi
33771
Reid Spencera773bd52006-08-04 18:18:08 +000033772{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33773echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033774if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33775 echo $ECHO_N "(cached) $ECHO_C" >&6
33776else
Reid Spencera773bd52006-08-04 18:18:08 +000033777 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033778ac_cpp='$CXXCPP $CPPFLAGS'
33779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33782
Reid Spencerabec8f92004-10-27 23:03:44 +000033783 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033784/* confdefs.h. */
33785_ACEOF
33786cat confdefs.h >>conftest.$ac_ext
33787cat >>conftest.$ac_ext <<_ACEOF
33788/* end confdefs.h. */
33789#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033790int
33791main ()
33792{
33793float f; std::isnan(f);
33794 ;
33795 return 0;
33796}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033797_ACEOF
33798rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033799if { (ac_try="$ac_compile"
33800case "(($ac_try" in
33801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33802 *) ac_try_echo=$ac_try;;
33803esac
33804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33805 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033806 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033807 grep -v '^ *+' conftest.er1 >conftest.err
33808 rm -f conftest.er1
33809 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033811 (exit $ac_status); } &&
33812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33813 { (case "(($ac_try" in
33814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33815 *) ac_try_echo=$ac_try;;
33816esac
33817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33818 (eval "$ac_try") 2>&5
33819 ac_status=$?
33820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821 (exit $ac_status); }; } &&
33822 { ac_try='test -s conftest.$ac_objext'
33823 { (case "(($ac_try" in
33824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33825 *) ac_try_echo=$ac_try;;
33826esac
33827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33828 (eval "$ac_try") 2>&5
33829 ac_status=$?
33830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33831 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033832 ac_cv_func_std_isnan_in_cmath=yes
33833else
33834 echo "$as_me: failed program was:" >&5
33835sed 's/^/| /' conftest.$ac_ext >&5
33836
Reid Spencera773bd52006-08-04 18:18:08 +000033837 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033838fi
Reid Spencera773bd52006-08-04 18:18:08 +000033839
33840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033841 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033842ac_cpp='$CPP $CPPFLAGS'
33843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33845ac_compiler_gnu=$ac_cv_c_compiler_gnu
33846
33847fi
Reid Spencera773bd52006-08-04 18:18:08 +000033848{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33849echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033850
33851if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033852
33853cat >>confdefs.h <<\_ACEOF
33854#define HAVE_STD_ISNAN_IN_CMATH 1
33855_ACEOF
33856
Reid Spencerabec8f92004-10-27 23:03:44 +000033857fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033858
33859
Reid Spencera773bd52006-08-04 18:18:08 +000033860{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33861echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033862if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33863 echo $ECHO_N "(cached) $ECHO_C" >&6
33864else
Reid Spencera773bd52006-08-04 18:18:08 +000033865 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033866ac_cpp='$CXXCPP $CPPFLAGS'
33867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33870
Reid Spencerabec8f92004-10-27 23:03:44 +000033871 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033872/* confdefs.h. */
33873_ACEOF
33874cat confdefs.h >>conftest.$ac_ext
33875cat >>conftest.$ac_ext <<_ACEOF
33876/* end confdefs.h. */
33877#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033878int
33879main ()
33880{
33881float f; isinf(f);
33882 ;
33883 return 0;
33884}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033885_ACEOF
33886rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033887if { (ac_try="$ac_compile"
33888case "(($ac_try" in
33889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33890 *) ac_try_echo=$ac_try;;
33891esac
33892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33893 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033894 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033895 grep -v '^ *+' conftest.er1 >conftest.err
33896 rm -f conftest.er1
33897 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033899 (exit $ac_status); } &&
33900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33901 { (case "(($ac_try" in
33902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33903 *) ac_try_echo=$ac_try;;
33904esac
33905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33906 (eval "$ac_try") 2>&5
33907 ac_status=$?
33908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33909 (exit $ac_status); }; } &&
33910 { ac_try='test -s conftest.$ac_objext'
33911 { (case "(($ac_try" in
33912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33913 *) ac_try_echo=$ac_try;;
33914esac
33915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33916 (eval "$ac_try") 2>&5
33917 ac_status=$?
33918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033920 ac_cv_func_isinf_in_math_h=yes
33921else
33922 echo "$as_me: failed program was:" >&5
33923sed 's/^/| /' conftest.$ac_ext >&5
33924
Reid Spencera773bd52006-08-04 18:18:08 +000033925 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033926fi
Reid Spencera773bd52006-08-04 18:18:08 +000033927
33928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033929 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033930ac_cpp='$CPP $CPPFLAGS'
33931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33933ac_compiler_gnu=$ac_cv_c_compiler_gnu
33934
33935fi
Reid Spencera773bd52006-08-04 18:18:08 +000033936{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33937echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033938
33939if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033940
33941cat >>confdefs.h <<\_ACEOF
33942#define HAVE_ISINF_IN_MATH_H 1
33943_ACEOF
33944
Reid Spencerabec8f92004-10-27 23:03:44 +000033945fi
33946
Reid Spencera773bd52006-08-04 18:18:08 +000033947{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33948echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033949if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33950 echo $ECHO_N "(cached) $ECHO_C" >&6
33951else
Reid Spencera773bd52006-08-04 18:18:08 +000033952 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033953ac_cpp='$CXXCPP $CPPFLAGS'
33954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33957
Reid Spencerabec8f92004-10-27 23:03:44 +000033958 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033959/* confdefs.h. */
33960_ACEOF
33961cat confdefs.h >>conftest.$ac_ext
33962cat >>conftest.$ac_ext <<_ACEOF
33963/* end confdefs.h. */
33964#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033965int
33966main ()
33967{
33968float f; isinf(f);
33969 ;
33970 return 0;
33971}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033972_ACEOF
33973rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033974if { (ac_try="$ac_compile"
33975case "(($ac_try" in
33976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33977 *) ac_try_echo=$ac_try;;
33978esac
33979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33980 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033981 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033982 grep -v '^ *+' conftest.er1 >conftest.err
33983 rm -f conftest.er1
33984 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033986 (exit $ac_status); } &&
33987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33988 { (case "(($ac_try" in
33989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33990 *) ac_try_echo=$ac_try;;
33991esac
33992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33993 (eval "$ac_try") 2>&5
33994 ac_status=$?
33995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996 (exit $ac_status); }; } &&
33997 { ac_try='test -s conftest.$ac_objext'
33998 { (case "(($ac_try" in
33999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34000 *) ac_try_echo=$ac_try;;
34001esac
34002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34003 (eval "$ac_try") 2>&5
34004 ac_status=$?
34005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034007 ac_cv_func_isinf_in_cmath=yes
34008else
34009 echo "$as_me: failed program was:" >&5
34010sed 's/^/| /' conftest.$ac_ext >&5
34011
Reid Spencera773bd52006-08-04 18:18:08 +000034012 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000034013fi
Reid Spencera773bd52006-08-04 18:18:08 +000034014
34015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034016 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000034017ac_cpp='$CPP $CPPFLAGS'
34018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34020ac_compiler_gnu=$ac_cv_c_compiler_gnu
34021
34022fi
Reid Spencera773bd52006-08-04 18:18:08 +000034023{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34024echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034025
34026if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034027
34028cat >>confdefs.h <<\_ACEOF
34029#define HAVE_ISINF_IN_CMATH 1
34030_ACEOF
34031
Reid Spencerabec8f92004-10-27 23:03:44 +000034032fi
34033
Reid Spencera773bd52006-08-04 18:18:08 +000034034{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34035echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000034036if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34037 echo $ECHO_N "(cached) $ECHO_C" >&6
34038else
Reid Spencera773bd52006-08-04 18:18:08 +000034039 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000034040ac_cpp='$CXXCPP $CPPFLAGS'
34041ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34042ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34043ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34044
Reid Spencerabec8f92004-10-27 23:03:44 +000034045 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000034046/* confdefs.h. */
34047_ACEOF
34048cat confdefs.h >>conftest.$ac_ext
34049cat >>conftest.$ac_ext <<_ACEOF
34050/* end confdefs.h. */
34051#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000034052int
34053main ()
34054{
34055float f; std::isinf(f)}
34056 ;
34057 return 0;
34058}
Brian Gaeke52a551d2004-07-21 03:14:12 +000034059_ACEOF
34060rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034061if { (ac_try="$ac_compile"
34062case "(($ac_try" in
34063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34064 *) ac_try_echo=$ac_try;;
34065esac
34066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34067 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000034068 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034069 grep -v '^ *+' conftest.er1 >conftest.err
34070 rm -f conftest.er1
34071 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000034072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034073 (exit $ac_status); } &&
34074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34075 { (case "(($ac_try" in
34076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34077 *) ac_try_echo=$ac_try;;
34078esac
34079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34080 (eval "$ac_try") 2>&5
34081 ac_status=$?
34082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083 (exit $ac_status); }; } &&
34084 { ac_try='test -s conftest.$ac_objext'
34085 { (case "(($ac_try" in
34086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34087 *) ac_try_echo=$ac_try;;
34088esac
34089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34090 (eval "$ac_try") 2>&5
34091 ac_status=$?
34092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034094 ac_cv_func_std_isinf_in_cmath=yes
34095else
34096 echo "$as_me: failed program was:" >&5
34097sed 's/^/| /' conftest.$ac_ext >&5
34098
Reid Spencera773bd52006-08-04 18:18:08 +000034099 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000034100fi
Reid Spencera773bd52006-08-04 18:18:08 +000034101
34102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034103 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000034104ac_cpp='$CPP $CPPFLAGS'
34105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34107ac_compiler_gnu=$ac_cv_c_compiler_gnu
34108
34109fi
Reid Spencera773bd52006-08-04 18:18:08 +000034110{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34111echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034112
34113if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034114
34115cat >>confdefs.h <<\_ACEOF
34116#define HAVE_STD_ISINF_IN_CMATH 1
34117_ACEOF
34118
Reid Spencerabec8f92004-10-27 23:03:44 +000034119fi
34120
Reid Spencera773bd52006-08-04 18:18:08 +000034121{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34122echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000034123if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34124 echo $ECHO_N "(cached) $ECHO_C" >&6
34125else
Reid Spencera773bd52006-08-04 18:18:08 +000034126 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000034127ac_cpp='$CXXCPP $CPPFLAGS'
34128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34131
Reid Spencerabec8f92004-10-27 23:03:44 +000034132 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000034133/* confdefs.h. */
34134_ACEOF
34135cat confdefs.h >>conftest.$ac_ext
34136cat >>conftest.$ac_ext <<_ACEOF
34137/* end confdefs.h. */
34138#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000034139int
34140main ()
34141{
34142float f; finite(f);
34143 ;
34144 return 0;
34145}
Brian Gaeked59a6472004-07-21 03:33:58 +000034146_ACEOF
34147rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034148if { (ac_try="$ac_compile"
34149case "(($ac_try" in
34150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34151 *) ac_try_echo=$ac_try;;
34152esac
34153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34154 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000034155 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034156 grep -v '^ *+' conftest.er1 >conftest.err
34157 rm -f conftest.er1
34158 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000034159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034160 (exit $ac_status); } &&
34161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34162 { (case "(($ac_try" in
34163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34164 *) ac_try_echo=$ac_try;;
34165esac
34166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34167 (eval "$ac_try") 2>&5
34168 ac_status=$?
34169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34170 (exit $ac_status); }; } &&
34171 { ac_try='test -s conftest.$ac_objext'
34172 { (case "(($ac_try" in
34173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34174 *) ac_try_echo=$ac_try;;
34175esac
34176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34177 (eval "$ac_try") 2>&5
34178 ac_status=$?
34179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34180 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034181 ac_cv_func_finite_in_ieeefp_h=yes
34182else
34183 echo "$as_me: failed program was:" >&5
34184sed 's/^/| /' conftest.$ac_ext >&5
34185
Reid Spencera773bd52006-08-04 18:18:08 +000034186 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000034187fi
Reid Spencera773bd52006-08-04 18:18:08 +000034188
34189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034190 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000034191ac_cpp='$CPP $CPPFLAGS'
34192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34194ac_compiler_gnu=$ac_cv_c_compiler_gnu
34195
34196fi
Reid Spencera773bd52006-08-04 18:18:08 +000034197{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34198echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034199
Brian Gaeke6802b552004-10-28 05:06:45 +000034200if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034201
34202cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000034203#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000034204_ACEOF
34205
Reid Spencerabec8f92004-10-27 23:03:44 +000034206fi
34207
34208
34209
Reid Spencer30fe5262007-01-20 07:48:49 +000034210if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000034211
34212
34213for ac_header in stdlib.h unistd.h
34214do
34215as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034216if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034220 echo $ECHO_N "(cached) $ECHO_C" >&6
34221fi
Reid Spencera773bd52006-08-04 18:18:08 +000034222ac_res=`eval echo '${'$as_ac_Header'}'`
34223 { echo "$as_me:$LINENO: result: $ac_res" >&5
34224echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034225else
34226 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000034227{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34228echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034229cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034230/* confdefs.h. */
34231_ACEOF
34232cat confdefs.h >>conftest.$ac_ext
34233cat >>conftest.$ac_ext <<_ACEOF
34234/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034235$ac_includes_default
34236#include <$ac_header>
34237_ACEOF
34238rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034239if { (ac_try="$ac_compile"
34240case "(($ac_try" in
34241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34242 *) ac_try_echo=$ac_try;;
34243esac
34244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34245 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034246 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034247 grep -v '^ *+' conftest.er1 >conftest.err
34248 rm -f conftest.er1
34249 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034251 (exit $ac_status); } &&
34252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34253 { (case "(($ac_try" in
34254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34255 *) ac_try_echo=$ac_try;;
34256esac
34257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34258 (eval "$ac_try") 2>&5
34259 ac_status=$?
34260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261 (exit $ac_status); }; } &&
34262 { ac_try='test -s conftest.$ac_objext'
34263 { (case "(($ac_try" in
34264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34265 *) ac_try_echo=$ac_try;;
34266esac
34267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34268 (eval "$ac_try") 2>&5
34269 ac_status=$?
34270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034272 ac_header_compiler=yes
34273else
34274 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034275sed 's/^/| /' conftest.$ac_ext >&5
34276
Reid Spencera773bd52006-08-04 18:18:08 +000034277 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000034278fi
Reid Spencera773bd52006-08-04 18:18:08 +000034279
34280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34281{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34282echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034283
34284# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000034285{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34286echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034287cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034288/* confdefs.h. */
34289_ACEOF
34290cat confdefs.h >>conftest.$ac_ext
34291cat >>conftest.$ac_ext <<_ACEOF
34292/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034293#include <$ac_header>
34294_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034295if { (ac_try="$ac_cpp conftest.$ac_ext"
34296case "(($ac_try" in
34297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34298 *) ac_try_echo=$ac_try;;
34299esac
34300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034302 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000034303 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000034304 rm -f conftest.er1
34305 cat conftest.err >&5
34306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034307 (exit $ac_status); } >/dev/null; then
34308 if test -s conftest.err; then
34309 ac_cpp_err=$ac_c_preproc_warn_flag
34310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34311 else
34312 ac_cpp_err=
34313 fi
34314else
34315 ac_cpp_err=yes
34316fi
34317if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000034318 ac_header_preproc=yes
34319else
34320 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034321sed 's/^/| /' conftest.$ac_ext >&5
34322
John Criswell7a73b802003-06-30 21:59:07 +000034323 ac_header_preproc=no
34324fi
Reid Spencera773bd52006-08-04 18:18:08 +000034325
John Criswell7a73b802003-06-30 21:59:07 +000034326rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000034327{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34328echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034329
34330# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34332 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000034333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34337 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000034338 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000034339 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000034340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34343echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34347echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000034348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000034352 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000034353## ----------------------------------- ##
34354## Report this to llvmbugs@cs.uiuc.edu ##
34355## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000034356_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000034357 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000034358 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034359esac
Reid Spencera773bd52006-08-04 18:18:08 +000034360{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034363 echo $ECHO_N "(cached) $ECHO_C" >&6
34364else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034365 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000034366fi
Reid Spencera773bd52006-08-04 18:18:08 +000034367ac_res=`eval echo '${'$as_ac_Header'}'`
34368 { echo "$as_me:$LINENO: result: $ac_res" >&5
34369echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034370
34371fi
34372if test `eval echo '${'$as_ac_Header'}'` = yes; then
34373 cat >>confdefs.h <<_ACEOF
34374#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34375_ACEOF
34376
34377fi
34378
34379done
34380
34381
34382for ac_func in getpagesize
34383do
34384as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034385{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34386echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34387if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034388 echo $ECHO_N "(cached) $ECHO_C" >&6
34389else
34390 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034391/* confdefs.h. */
34392_ACEOF
34393cat confdefs.h >>conftest.$ac_ext
34394cat >>conftest.$ac_ext <<_ACEOF
34395/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034396/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34398#define $ac_func innocuous_$ac_func
34399
John Criswell7a73b802003-06-30 21:59:07 +000034400/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000034401 which can conflict with char $ac_func (); below.
34402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34403 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034404
John Criswell0c38eaf2003-09-10 15:17:25 +000034405#ifdef __STDC__
34406# include <limits.h>
34407#else
34408# include <assert.h>
34409#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000034410
34411#undef $ac_func
34412
Reid Spencera773bd52006-08-04 18:18:08 +000034413/* Override any GCC internal prototype to avoid an error.
34414 Use char because int might match the return type of a GCC
34415 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000034416#ifdef __cplusplus
34417extern "C"
34418#endif
John Criswell7a73b802003-06-30 21:59:07 +000034419char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034420/* The GNU C library defines this for functions which it implements
34421 to always fail with ENOSYS. Some functions are actually named
34422 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000034423#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000034424choke me
John Criswell7a73b802003-06-30 21:59:07 +000034425#endif
34426
John Criswell0c38eaf2003-09-10 15:17:25 +000034427int
34428main ()
34429{
Reid Spencera773bd52006-08-04 18:18:08 +000034430return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034431 ;
34432 return 0;
34433}
34434_ACEOF
34435rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034436if { (ac_try="$ac_link"
34437case "(($ac_try" in
34438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34439 *) ac_try_echo=$ac_try;;
34440esac
34441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34442 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034443 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034444 grep -v '^ *+' conftest.er1 >conftest.err
34445 rm -f conftest.er1
34446 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034448 (exit $ac_status); } &&
34449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34450 { (case "(($ac_try" in
34451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34452 *) ac_try_echo=$ac_try;;
34453esac
34454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34455 (eval "$ac_try") 2>&5
34456 ac_status=$?
34457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458 (exit $ac_status); }; } &&
34459 { ac_try='test -s conftest$ac_exeext'
34460 { (case "(($ac_try" in
34461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34462 *) ac_try_echo=$ac_try;;
34463esac
34464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34465 (eval "$ac_try") 2>&5
34466 ac_status=$?
34467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034469 eval "$as_ac_var=yes"
34470else
34471 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034472sed 's/^/| /' conftest.$ac_ext >&5
34473
Reid Spencera773bd52006-08-04 18:18:08 +000034474 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000034475fi
Reid Spencera773bd52006-08-04 18:18:08 +000034476
Bill Wendlingebcceee2009-04-18 11:20:33 +000034477rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034478 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034479fi
Reid Spencera773bd52006-08-04 18:18:08 +000034480ac_res=`eval echo '${'$as_ac_var'}'`
34481 { echo "$as_me:$LINENO: result: $ac_res" >&5
34482echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034483if test `eval echo '${'$as_ac_var'}'` = yes; then
34484 cat >>confdefs.h <<_ACEOF
34485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34486_ACEOF
34487
34488fi
34489done
34490
Reid Spencera773bd52006-08-04 18:18:08 +000034491{ echo "$as_me:$LINENO: checking for working mmap" >&5
34492echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034493if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34494 echo $ECHO_N "(cached) $ECHO_C" >&6
34495else
34496 if test "$cross_compiling" = yes; then
34497 ac_cv_func_mmap_fixed_mapped=no
34498else
34499 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034500/* confdefs.h. */
34501_ACEOF
34502cat confdefs.h >>conftest.$ac_ext
34503cat >>conftest.$ac_ext <<_ACEOF
34504/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034505$ac_includes_default
34506/* malloc might have been renamed as rpl_malloc. */
34507#undef malloc
34508
34509/* Thanks to Mike Haertel and Jim Avera for this test.
34510 Here is a matrix of mmap possibilities:
34511 mmap private not fixed
34512 mmap private fixed at somewhere currently unmapped
34513 mmap private fixed at somewhere already mapped
34514 mmap shared not fixed
34515 mmap shared fixed at somewhere currently unmapped
34516 mmap shared fixed at somewhere already mapped
34517 For private mappings, we should verify that changes cannot be read()
34518 back from the file, nor mmap's back from the file at a different
34519 address. (There have been systems where private was not correctly
34520 implemented like the infamous i386 svr4.0, and systems where the
34521 VM page cache was not coherent with the file system buffer cache
34522 like early versions of FreeBSD and possibly contemporary NetBSD.)
34523 For shared mappings, we should conversely verify that changes get
34524 propagated back to all the places they're supposed to be.
34525
34526 Grep wants private fixed already mapped.
34527 The main things grep needs to know about mmap are:
34528 * does it exist and is it safe to write into the mmap'd area
34529 * how to use it (BSD variants) */
34530
34531#include <fcntl.h>
34532#include <sys/mman.h>
34533
Bill Wendlingebcceee2009-04-18 11:20:33 +000034534#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000034535char *malloc ();
34536#endif
34537
34538/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034539#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000034540/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034541# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034542# define HAVE_SYS_PARAM_H 1
34543# endif
34544
34545# ifdef _SC_PAGESIZE
34546# define getpagesize() sysconf(_SC_PAGESIZE)
34547# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034548# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034549# include <sys/param.h>
34550# ifdef EXEC_PAGESIZE
34551# define getpagesize() EXEC_PAGESIZE
34552# else /* no EXEC_PAGESIZE */
34553# ifdef NBPG
34554# define getpagesize() NBPG * CLSIZE
34555# ifndef CLSIZE
34556# define CLSIZE 1
34557# endif /* no CLSIZE */
34558# else /* no NBPG */
34559# ifdef NBPC
34560# define getpagesize() NBPC
34561# else /* no NBPC */
34562# ifdef PAGESIZE
34563# define getpagesize() PAGESIZE
34564# endif /* PAGESIZE */
34565# endif /* no NBPC */
34566# endif /* no NBPG */
34567# endif /* no EXEC_PAGESIZE */
34568# else /* no HAVE_SYS_PARAM_H */
34569# define getpagesize() 8192 /* punt totally */
34570# endif /* no HAVE_SYS_PARAM_H */
34571# endif /* no _SC_PAGESIZE */
34572
34573#endif /* no HAVE_GETPAGESIZE */
34574
34575int
34576main ()
34577{
34578 char *data, *data2, *data3;
34579 int i, pagesize;
34580 int fd;
34581
34582 pagesize = getpagesize ();
34583
34584 /* First, make a file with some known garbage in it. */
34585 data = (char *) malloc (pagesize);
34586 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000034587 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034588 for (i = 0; i < pagesize; ++i)
34589 *(data + i) = rand ();
34590 umask (0);
34591 fd = creat ("conftest.mmap", 0600);
34592 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034593 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034594 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034595 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034596 close (fd);
34597
34598 /* Next, try to mmap the file at a fixed address which already has
34599 something else allocated at it. If we can, also make sure that
34600 we see the same garbage. */
34601 fd = open ("conftest.mmap", O_RDWR);
34602 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034603 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034604 data2 = (char *) malloc (2 * pagesize);
34605 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000034606 return 1;
34607 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000034608 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000034609 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000034610 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034611 for (i = 0; i < pagesize; ++i)
34612 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034613 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034614
34615 /* Finally, make sure that changes to the mapped area do not
34616 percolate back to the file as seen by read(). (This is a bug on
34617 some variants of i386 svr4.0.) */
34618 for (i = 0; i < pagesize; ++i)
34619 *(data2 + i) = *(data2 + i) + 1;
34620 data3 = (char *) malloc (pagesize);
34621 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000034622 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034623 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034624 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034625 for (i = 0; i < pagesize; ++i)
34626 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034627 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034628 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034629 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034630}
34631_ACEOF
34632rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034633if { (ac_try="$ac_link"
34634case "(($ac_try" in
34635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34636 *) ac_try_echo=$ac_try;;
34637esac
34638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34639 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034640 ac_status=$?
34641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034643 { (case "(($ac_try" in
34644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34645 *) ac_try_echo=$ac_try;;
34646esac
34647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34648 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034649 ac_status=$?
34650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651 (exit $ac_status); }; }; then
34652 ac_cv_func_mmap_fixed_mapped=yes
34653else
34654 echo "$as_me: program exited with status $ac_status" >&5
34655echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034656sed 's/^/| /' conftest.$ac_ext >&5
34657
John Criswell7a73b802003-06-30 21:59:07 +000034658( exit $ac_status )
34659ac_cv_func_mmap_fixed_mapped=no
34660fi
Reid Spencera773bd52006-08-04 18:18:08 +000034661rm -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 +000034662fi
Reid Spencera773bd52006-08-04 18:18:08 +000034663
34664
John Criswell7a73b802003-06-30 21:59:07 +000034665fi
Reid Spencera773bd52006-08-04 18:18:08 +000034666{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34667echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034668if test $ac_cv_func_mmap_fixed_mapped = yes; then
34669
34670cat >>confdefs.h <<\_ACEOF
34671#define HAVE_MMAP 1
34672_ACEOF
34673
34674fi
34675rm -f conftest.mmap
34676
Reid Spencer30fe5262007-01-20 07:48:49 +000034677 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034678echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034679if test "${ac_cv_func_mmap_file+set}" = set; then
34680 echo $ECHO_N "(cached) $ECHO_C" >&6
34681else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034682 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034683ac_cpp='$CPP $CPPFLAGS'
34684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34686ac_compiler_gnu=$ac_cv_c_compiler_gnu
34687
34688 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034689 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034690else
34691 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034692
Reid Spencer777ce172004-09-20 04:09:56 +000034693 /* confdefs.h. */
34694_ACEOF
34695cat confdefs.h >>conftest.$ac_ext
34696cat >>conftest.$ac_ext <<_ACEOF
34697/* end confdefs.h. */
34698
John Criswell7a73b802003-06-30 21:59:07 +000034699#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034700#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034701#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034702
34703int
34704main ()
34705{
John Criswell7a73b802003-06-30 21:59:07 +000034706
34707 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034708 fd = creat ("foo",0777);
34709 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34710 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034711 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034712 ;
34713 return 0;
34714}
John Criswell7a73b802003-06-30 21:59:07 +000034715_ACEOF
34716rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034717if { (ac_try="$ac_link"
34718case "(($ac_try" in
34719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34720 *) ac_try_echo=$ac_try;;
34721esac
34722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34723 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034724 ac_status=$?
34725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034727 { (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
John Criswell7a73b802003-06-30 21:59:07 +000034733 ac_status=$?
34734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34735 (exit $ac_status); }; }; then
34736 ac_cv_func_mmap_file=yes
34737else
34738 echo "$as_me: program exited with status $ac_status" >&5
34739echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034740sed 's/^/| /' conftest.$ac_ext >&5
34741
John Criswell7a73b802003-06-30 21:59:07 +000034742( exit $ac_status )
34743ac_cv_func_mmap_file=no
34744fi
Reid Spencera773bd52006-08-04 18:18:08 +000034745rm -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 +000034746fi
Reid Spencera773bd52006-08-04 18:18:08 +000034747
34748
John Criswell7a73b802003-06-30 21:59:07 +000034749 ac_ext=c
34750ac_cpp='$CPP $CPPFLAGS'
34751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34753ac_compiler_gnu=$ac_cv_c_compiler_gnu
34754
34755
34756fi
Reid Spencera773bd52006-08-04 18:18:08 +000034757{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34758echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034759if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034760
34761cat >>confdefs.h <<\_ACEOF
34762#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034763_ACEOF
34764
34765 MMAP_FILE=yes
34766
34767fi
34768
Reid Spencer30fe5262007-01-20 07:48:49 +000034769 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034770echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034771if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34772 echo $ECHO_N "(cached) $ECHO_C" >&6
34773else
Reid Spencer582a23c2004-12-29 07:07:57 +000034774 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034775 ac_cv_need_dev_zero_for_mmap=yes
34776 else
34777 ac_cv_need_dev_zero_for_mmap=no
34778 fi
34779
34780fi
Reid Spencera773bd52006-08-04 18:18:08 +000034781{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34782echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034783if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34784
34785cat >>confdefs.h <<\_ACEOF
34786#define NEED_DEV_ZERO_FOR_MMAP 1
34787_ACEOF
34788
34789fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034790
Reid Spencer30fe5262007-01-20 07:48:49 +000034791 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34792 then
34793 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034794echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034795 fi
34796 if test "$ac_cv_func_mmap_file" = "no"
34797 then
34798 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034799echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034800 fi
John Criswellb13092b2003-07-22 21:00:24 +000034801fi
John Criswell7a73b802003-06-30 21:59:07 +000034802
Owen Andersona8603702009-05-19 22:18:56 +000034803{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000034804echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034805cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000034806/* confdefs.h. */
34807_ACEOF
34808cat confdefs.h >>conftest.$ac_ext
34809cat >>conftest.$ac_ext <<_ACEOF
34810/* end confdefs.h. */
34811int main() {
Owen Andersona8603702009-05-19 22:18:56 +000034812 volatile unsigned long val = 1;
34813 __sync_synchronize();
34814 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000034815 __sync_add_and_fetch(&val, 1);
34816 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000034817 return 0;
34818 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034819
34820_ACEOF
34821rm -f conftest.$ac_objext conftest$ac_exeext
34822if { (ac_try="$ac_link"
34823case "(($ac_try" in
34824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34825 *) ac_try_echo=$ac_try;;
34826esac
34827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34828 (eval "$ac_link") 2>conftest.er1
34829 ac_status=$?
34830 grep -v '^ *+' conftest.er1 >conftest.err
34831 rm -f conftest.er1
34832 cat conftest.err >&5
34833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34834 (exit $ac_status); } &&
34835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34836 { (case "(($ac_try" in
34837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34838 *) ac_try_echo=$ac_try;;
34839esac
34840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34841 (eval "$ac_try") 2>&5
34842 ac_status=$?
34843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844 (exit $ac_status); }; } &&
34845 { ac_try='test -s conftest$ac_exeext'
34846 { (case "(($ac_try" in
34847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34848 *) ac_try_echo=$ac_try;;
34849esac
34850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34851 (eval "$ac_try") 2>&5
34852 ac_status=$?
34853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34854 (exit $ac_status); }; }; then
34855 { echo "$as_me:$LINENO: result: yes" >&5
34856echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034857
34858cat >>confdefs.h <<\_ACEOF
34859#define LLVM_MULTITHREADED 1
34860_ACEOF
34861
Owen Andersond4b272b2009-05-18 23:58:51 +000034862else
34863 echo "$as_me: failed program was:" >&5
34864sed 's/^/| /' conftest.$ac_ext >&5
34865
34866 { echo "$as_me:$LINENO: result: no" >&5
34867echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034868
Owen Andersona8603702009-05-19 22:18:56 +000034869cat >>confdefs.h <<\_ACEOF
34870#define LLVM_MULTITHREADED 0
34871_ACEOF
34872
34873 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34874echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034875fi
34876
34877rm -f core conftest.err conftest.$ac_objext \
34878 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034879
34880
John Criswell7a73b802003-06-30 21:59:07 +000034881
Reid Spencer9372f152007-07-30 20:13:24 +000034882
34883for ac_func in __dso_handle
34884do
34885as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34886{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34887echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34888if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34889 echo $ECHO_N "(cached) $ECHO_C" >&6
34890else
34891 cat >conftest.$ac_ext <<_ACEOF
34892/* confdefs.h. */
34893_ACEOF
34894cat confdefs.h >>conftest.$ac_ext
34895cat >>conftest.$ac_ext <<_ACEOF
34896/* end confdefs.h. */
34897/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34899#define $ac_func innocuous_$ac_func
34900
34901/* System header to define __stub macros and hopefully few prototypes,
34902 which can conflict with char $ac_func (); below.
34903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34904 <limits.h> exists even on freestanding compilers. */
34905
34906#ifdef __STDC__
34907# include <limits.h>
34908#else
34909# include <assert.h>
34910#endif
34911
34912#undef $ac_func
34913
34914/* Override any GCC internal prototype to avoid an error.
34915 Use char because int might match the return type of a GCC
34916 builtin and then its argument prototype would still apply. */
34917#ifdef __cplusplus
34918extern "C"
34919#endif
34920char $ac_func ();
34921/* The GNU C library defines this for functions which it implements
34922 to always fail with ENOSYS. Some functions are actually named
34923 something starting with __ and the normal name is an alias. */
34924#if defined __stub_$ac_func || defined __stub___$ac_func
34925choke me
34926#endif
34927
34928int
34929main ()
34930{
34931return $ac_func ();
34932 ;
34933 return 0;
34934}
34935_ACEOF
34936rm -f conftest.$ac_objext conftest$ac_exeext
34937if { (ac_try="$ac_link"
34938case "(($ac_try" in
34939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34940 *) ac_try_echo=$ac_try;;
34941esac
34942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34943 (eval "$ac_link") 2>conftest.er1
34944 ac_status=$?
34945 grep -v '^ *+' conftest.er1 >conftest.err
34946 rm -f conftest.er1
34947 cat conftest.err >&5
34948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034949 (exit $ac_status); } &&
34950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34951 { (case "(($ac_try" in
34952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34953 *) ac_try_echo=$ac_try;;
34954esac
34955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34956 (eval "$ac_try") 2>&5
34957 ac_status=$?
34958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34959 (exit $ac_status); }; } &&
34960 { ac_try='test -s conftest$ac_exeext'
34961 { (case "(($ac_try" in
34962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34963 *) ac_try_echo=$ac_try;;
34964esac
34965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34966 (eval "$ac_try") 2>&5
34967 ac_status=$?
34968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034970 eval "$as_ac_var=yes"
34971else
34972 echo "$as_me: failed program was:" >&5
34973sed 's/^/| /' conftest.$ac_ext >&5
34974
34975 eval "$as_ac_var=no"
34976fi
34977
Bill Wendlingebcceee2009-04-18 11:20:33 +000034978rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034979 conftest$ac_exeext conftest.$ac_ext
34980fi
34981ac_res=`eval echo '${'$as_ac_var'}'`
34982 { echo "$as_me:$LINENO: result: $ac_res" >&5
34983echo "${ECHO_T}$ac_res" >&6; }
34984if test `eval echo '${'$as_ac_var'}'` = yes; then
34985 cat >>confdefs.h <<_ACEOF
34986#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34987_ACEOF
34988
34989fi
34990done
34991
34992
Reid Spencera773bd52006-08-04 18:18:08 +000034993{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34994echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034995if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34996 echo $ECHO_N "(cached) $ECHO_C" >&6
34997else
34998 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034999if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035000 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000035001 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35002 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035003 if test $? -eq 0 ; then
35004 llvm_cv_llvmgcc_sanity="yes"
35005 fi
35006 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000035007fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035008fi
Reid Spencera773bd52006-08-04 18:18:08 +000035009{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35010echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035011
35012if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000035013 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35014echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000035015 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035016 LLVMCC1=$llvmcc1path
35017
Reid Spencer502935f2004-12-22 05:56:56 +000035018 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035019 LLVMCC1PLUS=$llvmcc1pluspath
35020
Reid Spencer502935f2004-12-22 05:56:56 +000035021 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35022 LLVMGCCDIR=$llvmgccdir
35023
Reid Spencer282d8c12006-12-21 22:55:41 +000035024 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35025 LLVMGCCLIBEXEC=$llvmgcclibexec
35026
Reid Spencerb5d75b82006-05-09 00:31:01 +000035027 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000035028 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35029 LLVMGCC_VERSION=$llvmgccversion
35030
35031 LLVMGCC_MAJVERS=$llvmgccmajvers
35032
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000035033 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000035034 LLVMGCC_LANGS=$llvmgcclangs
35035
35036 { echo "$as_me:$LINENO: result: ok" >&5
35037echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000035038fi
35039
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035040SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000035041
35042
Reid Spencere9de0912004-08-20 09:03:57 +000035043# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035044# information into substitutions that will end up in Makefile.config.in
35045# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000035046if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000035047 prefix="/usr/local"
35048fi
Reid Spencere9de0912004-08-20 09:03:57 +000035049eval LLVM_PREFIX="${prefix}";
35050eval LLVM_BINDIR="${prefix}/bin";
35051eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000035052eval LLVM_DATADIR="${prefix}/share/llvm";
35053eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35054eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000035055eval LLVM_INCLUDEDIR="${prefix}/include";
35056eval LLVM_INFODIR="${prefix}/info";
35057eval LLVM_MANDIR="${prefix}/man";
35058LLVM_CONFIGTIME=`date`
35059
35060
35061
35062
35063
35064
35065
35066
35067
35068
35069
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035070# Place the various directores into the config.h file as #defines so that we
35071# can know about the installation paths within LLVM.
35072
Reid Spencere9de0912004-08-20 09:03:57 +000035073cat >>confdefs.h <<_ACEOF
35074#define LLVM_PREFIX "$LLVM_PREFIX"
35075_ACEOF
35076
35077
35078cat >>confdefs.h <<_ACEOF
35079#define LLVM_BINDIR "$LLVM_BINDIR"
35080_ACEOF
35081
35082
35083cat >>confdefs.h <<_ACEOF
35084#define LLVM_LIBDIR "$LLVM_LIBDIR"
35085_ACEOF
35086
35087
35088cat >>confdefs.h <<_ACEOF
35089#define LLVM_DATADIR "$LLVM_DATADIR"
35090_ACEOF
35091
35092
35093cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000035094#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035095_ACEOF
35096
35097
35098cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000035099#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035100_ACEOF
35101
35102
35103cat >>confdefs.h <<_ACEOF
35104#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35105_ACEOF
35106
35107
35108cat >>confdefs.h <<_ACEOF
35109#define LLVM_INFODIR "$LLVM_INFODIR"
35110_ACEOF
35111
35112
35113cat >>confdefs.h <<_ACEOF
35114#define LLVM_MANDIR "$LLVM_MANDIR"
35115_ACEOF
35116
35117
35118cat >>confdefs.h <<_ACEOF
35119#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35120_ACEOF
35121
35122
Eric Christopher790e11c2007-12-01 00:34:39 +000035123cat >>confdefs.h <<_ACEOF
35124#define LLVM_HOSTTRIPLE "$host"
35125_ACEOF
35126
35127
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035128# Determine which bindings to build.
35129if test "$BINDINGS_TO_BUILD" = auto ; then
35130 BINDINGS_TO_BUILD=""
35131 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35132 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35133 fi
35134fi
35135BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35136
35137
35138# This isn't really configurey, but it avoids having to repeat the list in
35139# other files.
35140ALL_BINDINGS=ocaml
35141
35142
Gordon Henriksenf0915682007-10-02 16:42:22 +000035143# Do any work necessary to ensure that bindings have what they need.
35144binding_prereqs_failed=0
35145for a_binding in $BINDINGS_TO_BUILD ; do
35146 case "$a_binding" in
35147 ocaml)
35148 if test "x$OCAMLC" = x ; then
35149 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35150echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35151 binding_prereqs_failed=1
35152 fi
35153 if test "x$OCAMLDEP" = x ; then
35154 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35155echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35156 binding_prereqs_failed=1
35157 fi
35158 if test "x$OCAMLOPT" = x ; then
35159 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35160echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35161 fi
35162 if test "x$with_ocaml_libdir" != xauto ; then
35163 OCAML_LIBDIR=$with_ocaml_libdir
35164
35165 else
35166 ocaml_stdlib="`"$OCAMLC" -where`"
35167 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35168 then
35169 # ocaml stdlib is beneath our prefix; use stdlib
35170 OCAML_LIBDIR=$ocaml_stdlib
35171
35172 else
35173 # ocaml stdlib is outside our prefix; use libdir/ocaml
35174 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35175
35176 fi
35177 fi
35178 ;;
35179 esac
35180done
35181if test "$binding_prereqs_failed" = 1 ; then
35182 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35183echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35184 { (exit 1); exit 1; }; }
35185fi
35186
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035187{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35188echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35189if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35190 echo $ECHO_N "(cached) $ECHO_C" >&6
35191else
35192 ac_ext=cpp
35193ac_cpp='$CXXCPP $CPPFLAGS'
35194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35197
35198 oldcxxflags="$CXXFLAGS"
35199 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35200 cat >conftest.$ac_ext <<_ACEOF
35201/* confdefs.h. */
35202_ACEOF
35203cat confdefs.h >>conftest.$ac_ext
35204cat >>conftest.$ac_ext <<_ACEOF
35205/* end confdefs.h. */
35206
35207int
35208main ()
35209{
35210
35211 ;
35212 return 0;
35213}
35214_ACEOF
35215rm -f conftest.$ac_objext
35216if { (ac_try="$ac_compile"
35217case "(($ac_try" in
35218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35219 *) ac_try_echo=$ac_try;;
35220esac
35221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35222 (eval "$ac_compile") 2>conftest.er1
35223 ac_status=$?
35224 grep -v '^ *+' conftest.er1 >conftest.err
35225 rm -f conftest.er1
35226 cat conftest.err >&5
35227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000035228 (exit $ac_status); } &&
35229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35230 { (case "(($ac_try" in
35231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35232 *) ac_try_echo=$ac_try;;
35233esac
35234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35235 (eval "$ac_try") 2>&5
35236 ac_status=$?
35237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238 (exit $ac_status); }; } &&
35239 { ac_try='test -s conftest.$ac_objext'
35240 { (case "(($ac_try" in
35241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35242 *) ac_try_echo=$ac_try;;
35243esac
35244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35245 (eval "$ac_try") 2>&5
35246 ac_status=$?
35247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35248 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035249 llvm_cv_cxx_visibility_inlines_hidden=yes
35250else
35251 echo "$as_me: failed program was:" >&5
35252sed 's/^/| /' conftest.$ac_ext >&5
35253
35254 llvm_cv_cxx_visibility_inlines_hidden=no
35255fi
35256
35257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35258 CXXFLAGS="$oldcxxflags"
35259 ac_ext=c
35260ac_cpp='$CPP $CPPFLAGS'
35261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35263ac_compiler_gnu=$ac_cv_c_compiler_gnu
35264
35265
35266fi
35267{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35268echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35269if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35270 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35271
35272else
35273 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35274
35275fi
35276
Gordon Henriksenf0915682007-10-02 16:42:22 +000035277
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035278if test "$llvm_cv_link_use_r" = "yes" ; then
35279 RPATH="-Wl,-R"
35280else
35281 RPATH="-Wl,-rpath"
35282fi
35283
35284
35285if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35286 RDYNAMIC="-Wl,-export-dynamic"
35287else
35288 RDYNAMIC=""
35289fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035290
35291
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035292
Reid Spencera773bd52006-08-04 18:18:08 +000035293ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035294
Douglas Gregor1555a232009-06-16 20:12:29 +000035295ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35296
35297ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35298
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035299ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35300
Reid Spencera773bd52006-08-04 18:18:08 +000035301ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035302
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035303
Reid Spencera773bd52006-08-04 18:18:08 +000035304ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035305
35306
Reid Spencerea949cf2006-08-16 00:45:38 +000035307ac_config_files="$ac_config_files llvm.spec"
35308
35309
Reid Spencera773bd52006-08-04 18:18:08 +000035310ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000035311
35312
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035313ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35314
35315
Reid Spencera773bd52006-08-04 18:18:08 +000035316ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000035317
35318
Reid Spencera773bd52006-08-04 18:18:08 +000035319ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000035320
Reid Spencera773bd52006-08-04 18:18:08 +000035321ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035322
35323
Reid Spencera773bd52006-08-04 18:18:08 +000035324ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035325
35326
Reid Spencera773bd52006-08-04 18:18:08 +000035327ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035328
35329
Reid Spencera773bd52006-08-04 18:18:08 +000035330ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035331
35332
Reid Spencer8b2e1412006-11-17 03:32:33 +000035333ac_config_commands="$ac_config_commands runtime/Makefile"
35334
35335
Reid Spencera773bd52006-08-04 18:18:08 +000035336ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035337
35338
Reid Spencera773bd52006-08-04 18:18:08 +000035339ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035340
35341
Bill Wendlingf24eb392009-01-04 23:12:30 +000035342ac_config_commands="$ac_config_commands unittests/Makefile"
35343
35344
Reid Spencera773bd52006-08-04 18:18:08 +000035345ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035346
35347
Reid Spencera773bd52006-08-04 18:18:08 +000035348ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035349
35350
Reid Spencera773bd52006-08-04 18:18:08 +000035351ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035352
35353
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035354ac_config_commands="$ac_config_commands bindings/Makefile"
35355
35356
35357ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35358
35359
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035360
John Criswell7a73b802003-06-30 21:59:07 +000035361cat >confcache <<\_ACEOF
35362# This file is a shell script that caches the results of configure
35363# tests run on this system so they can be shared between configure
35364# scripts and configure runs, see configure's option --config-cache.
35365# It is not useful on other systems. If it contains results you don't
35366# want to keep, you may remove or edit it.
35367#
35368# config.status only pays attention to the cache file if you give it
35369# the --recheck option to rerun configure.
35370#
John Criswell0c38eaf2003-09-10 15:17:25 +000035371# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000035372# loading this file, other *unset* `ac_cv_foo' will be assigned the
35373# following values.
35374
35375_ACEOF
35376
35377# The following way of writing the cache mishandles newlines in values,
35378# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000035379# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000035380# Ultrix sh set writes to stderr and can't be redirected directly,
35381# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000035382(
35383 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35384 eval ac_val=\$$ac_var
35385 case $ac_val in #(
35386 *${as_nl}*)
35387 case $ac_var in #(
35388 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35389echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35390 esac
35391 case $ac_var in #(
35392 _ | IFS | as_nl) ;; #(
35393 *) $as_unset $ac_var ;;
35394 esac ;;
35395 esac
35396 done
35397
John Criswell7a73b802003-06-30 21:59:07 +000035398 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000035399 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35400 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000035401 # `set' does not quote correctly, so add quotes (double-quote
35402 # substitution turns \\\\ into \\, and sed turns \\ into \).
35403 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035404 "s/'/'\\\\''/g;
35405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000035406 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000035407 *)
35408 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000035409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000035410 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035411 esac |
35412 sort
35413) |
John Criswell7a73b802003-06-30 21:59:07 +000035414 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035415 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000035416 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000035417 :clear
John Criswell7a73b802003-06-30 21:59:07 +000035418 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35419 t end
Reid Spencera773bd52006-08-04 18:18:08 +000035420 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35421 :end' >>confcache
35422if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35423 if test -w "$cache_file"; then
35424 test "x$cache_file" != "x/dev/null" &&
35425 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35426echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035427 cat confcache >$cache_file
35428 else
Reid Spencera773bd52006-08-04 18:18:08 +000035429 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35430echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035431 fi
35432fi
35433rm -f confcache
35434
35435test "x$prefix" = xNONE && prefix=$ac_default_prefix
35436# Let make expand exec_prefix.
35437test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35438
John Criswell7a73b802003-06-30 21:59:07 +000035439DEFS=-DHAVE_CONFIG_H
35440
John Criswell0c38eaf2003-09-10 15:17:25 +000035441ac_libobjs=
35442ac_ltlibobjs=
35443for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35444 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000035445 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35446 ac_i=`echo "$ac_i" | sed "$ac_script"`
35447 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35448 # will be set to the directory where LIBOBJS objects are built.
35449 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35450 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000035451done
35452LIBOBJS=$ac_libobjs
35453
35454LTLIBOBJS=$ac_ltlibobjs
35455
35456
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035457if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35458 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35459Usually this means the macro was only invoked conditionally." >&5
35460echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35461Usually this means the macro was only invoked conditionally." >&2;}
35462 { (exit 1); exit 1; }; }
35463fi
35464if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35465 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35466Usually this means the macro was only invoked conditionally." >&5
35467echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35468Usually this means the macro was only invoked conditionally." >&2;}
35469 { (exit 1); exit 1; }; }
35470fi
John Criswell7a73b802003-06-30 21:59:07 +000035471
35472: ${CONFIG_STATUS=./config.status}
35473ac_clean_files_save=$ac_clean_files
35474ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35475{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35476echo "$as_me: creating $CONFIG_STATUS" >&6;}
35477cat >$CONFIG_STATUS <<_ACEOF
35478#! $SHELL
35479# Generated by $as_me.
35480# Run this file to recreate the current configuration.
35481# Compiler output produced by configure, useful for debugging
35482# configure, is in config.log if it exists.
35483
35484debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000035485ac_cs_recheck=false
35486ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000035487SHELL=\${CONFIG_SHELL-$SHELL}
35488_ACEOF
35489
35490cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035491## --------------------- ##
35492## M4sh Initialization. ##
35493## --------------------- ##
35494
Bill Wendlingebcceee2009-04-18 11:20:33 +000035495# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000035496if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35497 emulate sh
35498 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035499 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35500 # is contrary to our usage. Disable this feature.
35501 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000035502 setopt NO_GLOB_SUBST
35503else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035504 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000035505fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035506BIN_SH=xpg4; export BIN_SH # for Tru64
35507DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000035508
John Criswell7a73b802003-06-30 21:59:07 +000035509
Reid Spencera773bd52006-08-04 18:18:08 +000035510# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000035511# Avoid depending upon Character Ranges.
35512as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35513as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35514as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35515as_cr_digits='0123456789'
35516as_cr_alnum=$as_cr_Letters$as_cr_digits
35517
35518# The user is always right.
35519if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000035520 echo "#! /bin/sh" >conf$$.sh
35521 echo "exit 0" >>conf$$.sh
35522 chmod +x conf$$.sh
35523 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035524 PATH_SEPARATOR=';'
35525 else
35526 PATH_SEPARATOR=:
35527 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000035528 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000035529fi
35530
Reid Spencera773bd52006-08-04 18:18:08 +000035531# Support unset when possible.
35532if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35533 as_unset=unset
35534else
35535 as_unset=false
35536fi
John Criswell7a73b802003-06-30 21:59:07 +000035537
Reid Spencera773bd52006-08-04 18:18:08 +000035538
35539# IFS
35540# We need space, tab and new line, in precisely that order. Quoting is
35541# there to prevent editors from complaining about space-tab.
35542# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35543# splitting by setting IFS to empty value.)
35544as_nl='
35545'
35546IFS=" "" $as_nl"
35547
35548# Find who we are. Look in the path if we contain no directory separator.
35549case $0 in
35550 *[\\/]* ) as_myself=$0 ;;
35551 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000035552for as_dir in $PATH
35553do
35554 IFS=$as_save_IFS
35555 test -z "$as_dir" && as_dir=.
35556 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35557done
Reid Spencera773bd52006-08-04 18:18:08 +000035558IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000035559
Reid Spencera773bd52006-08-04 18:18:08 +000035560 ;;
35561esac
35562# We did not find ourselves, most probably we were run as `sh COMMAND'
35563# in which case we are not to be found in the path.
35564if test "x$as_myself" = x; then
35565 as_myself=$0
35566fi
35567if test ! -f "$as_myself"; then
35568 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35569 { (exit 1); exit 1; }
35570fi
35571
35572# Work around bugs in pre-3.0 UWIN ksh.
35573for as_var in ENV MAIL MAILPATH
35574do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35575done
35576PS1='$ '
35577PS2='> '
35578PS4='+ '
35579
35580# NLS nuisances.
35581for as_var in \
35582 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35583 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35584 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000035585do
Reid Spencera773bd52006-08-04 18:18:08 +000035586 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35587 eval $as_var=C; export $as_var
35588 else
35589 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35590 fi
35591done
35592
35593# Required to use basename.
35594if expr a : '\(a\)' >/dev/null 2>&1 &&
35595 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35596 as_expr=expr
35597else
35598 as_expr=false
35599fi
35600
35601if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35602 as_basename=basename
35603else
35604 as_basename=false
35605fi
35606
35607
35608# Name of the executable.
35609as_me=`$as_basename -- "$0" ||
35610$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35611 X"$0" : 'X\(//\)$' \| \
35612 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35613echo X/"$0" |
35614 sed '/^.*\/\([^/][^/]*\)\/*$/{
35615 s//\1/
35616 q
35617 }
35618 /^X\/\(\/\/\)$/{
35619 s//\1/
35620 q
35621 }
35622 /^X\/\(\/\).*/{
35623 s//\1/
35624 q
35625 }
35626 s/.*/./; q'`
35627
35628# CDPATH.
35629$as_unset CDPATH
35630
35631
35632
John Criswell7a73b802003-06-30 21:59:07 +000035633 as_lineno_1=$LINENO
35634 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000035635 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000035636 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000035637
35638 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35639 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000035640 # line-number line after each line using $LINENO; the second 'sed'
35641 # does the real work. The second script uses 'N' to pair each
35642 # line-number line with the line containing $LINENO, and appends
35643 # trailing '-' during substitution so that $LINENO is not a special
35644 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000035645 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000035646 # scripts with optimization help from Paolo Bonzini. Blame Lee
35647 # E. McMahon (1931-1989) for sed's syntax. :-)
35648 sed -n '
35649 p
35650 /[$]LINENO/=
35651 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000035652 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035653 s/[$]LINENO.*/&-/
35654 t lineno
35655 b
35656 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000035657 N
Reid Spencera773bd52006-08-04 18:18:08 +000035658 :loop
35659 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000035660 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000035661 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000035662 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000035663 chmod +x "$as_me.lineno" ||
35664 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000035665 { (exit 1); exit 1; }; }
35666
35667 # Don't try to exec as it changes $[0], causing all sort of problems
35668 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000035669 # original and so on. Autoconf is especially sensitive to this).
35670 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000035671 # Exit status is that of the last command.
35672 exit
35673}
35674
35675
Reid Spencera773bd52006-08-04 18:18:08 +000035676if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35677 as_dirname=dirname
35678else
35679 as_dirname=false
35680fi
35681
35682ECHO_C= ECHO_N= ECHO_T=
35683case `echo -n x` in
35684-n*)
35685 case `echo 'x\c'` in
35686 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35687 *) ECHO_C='\c';;
35688 esac;;
35689*)
35690 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000035691esac
35692
Reid Spencera773bd52006-08-04 18:18:08 +000035693if expr a : '\(a\)' >/dev/null 2>&1 &&
35694 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000035695 as_expr=expr
35696else
35697 as_expr=false
35698fi
35699
35700rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000035701if test -d conf$$.dir; then
35702 rm -f conf$$.dir/conf$$.file
35703else
35704 rm -f conf$$.dir
35705 mkdir conf$$.dir
35706fi
John Criswell7a73b802003-06-30 21:59:07 +000035707echo >conf$$.file
35708if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000035709 as_ln_s='ln -s'
35710 # ... but there are two gotchas:
35711 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35712 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35713 # In both cases, we have to default to `cp -p'.
35714 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000035715 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000035716elif ln conf$$.file conf$$ 2>/dev/null; then
35717 as_ln_s=ln
35718else
35719 as_ln_s='cp -p'
35720fi
Reid Spencera773bd52006-08-04 18:18:08 +000035721rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35722rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035723
John Criswell0c38eaf2003-09-10 15:17:25 +000035724if mkdir -p . 2>/dev/null; then
35725 as_mkdir_p=:
35726else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035727 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035728 as_mkdir_p=false
35729fi
35730
Bill Wendlingebcceee2009-04-18 11:20:33 +000035731# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35732# systems may use methods other than mode bits to determine executability.
35733cat >conf$$.file <<_ASEOF
35734#! /bin/sh
35735exit 0
35736_ASEOF
35737chmod +x conf$$.file
35738if test -x conf$$.file >/dev/null 2>&1; then
35739 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035740else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035741 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035742fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035743rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035744
35745# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035746as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035747
35748# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035749as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035750
35751
John Criswell7a73b802003-06-30 21:59:07 +000035752exec 6>&1
35753
Reid Spencera773bd52006-08-04 18:18:08 +000035754# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035755# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035756# values after options handling.
35757ac_log="
Tanya Lattner953042b2009-08-22 04:37:30 +000035758This file was extended by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000035759generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035760
35761 CONFIG_FILES = $CONFIG_FILES
35762 CONFIG_HEADERS = $CONFIG_HEADERS
35763 CONFIG_LINKS = $CONFIG_LINKS
35764 CONFIG_COMMANDS = $CONFIG_COMMANDS
35765 $ $0 $@
35766
Reid Spencera773bd52006-08-04 18:18:08 +000035767on `(hostname || uname -n) 2>/dev/null | sed 1q`
35768"
35769
John Criswell7a73b802003-06-30 21:59:07 +000035770_ACEOF
35771
Reid Spencera773bd52006-08-04 18:18:08 +000035772cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035773# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035774config_files="$ac_config_files"
35775config_headers="$ac_config_headers"
35776config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035777
Reid Spencera773bd52006-08-04 18:18:08 +000035778_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035779
35780cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035781ac_cs_usage="\
35782\`$as_me' instantiates files from templates according to the
35783current configuration.
35784
35785Usage: $0 [OPTIONS] [FILE]...
35786
35787 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000035788 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035789 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035790 -d, --debug don't remove temporary files
35791 --recheck update $as_me by reconfiguring in the same conditions
35792 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035793 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035794 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035795 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035796
35797Configuration files:
35798$config_files
35799
35800Configuration headers:
35801$config_headers
35802
John Criswellc764fbc2003-09-06 15:17:13 +000035803Configuration commands:
35804$config_commands
35805
John Criswell7a73b802003-06-30 21:59:07 +000035806Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035807
Reid Spencera773bd52006-08-04 18:18:08 +000035808_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035809cat >>$CONFIG_STATUS <<_ACEOF
35810ac_cs_version="\\
Tanya Lattner953042b2009-08-22 04:37:30 +000035811llvm config.status 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000035812configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035813 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035814
Reid Spencera773bd52006-08-04 18:18:08 +000035815Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035816This config.status script is free software; the Free Software Foundation
35817gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035818
35819ac_pwd='$ac_pwd'
35820srcdir='$srcdir'
35821INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035822_ACEOF
35823
35824cat >>$CONFIG_STATUS <<\_ACEOF
35825# If no file are specified by the user, then we need to provide default
35826# value. By we need to know if files were specified by the user.
35827ac_need_defaults=:
35828while test $# != 0
35829do
35830 case $1 in
35831 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035832 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35833 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035834 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035835 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035836 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035837 ac_option=$1
35838 ac_optarg=$2
35839 ac_shift=shift
35840 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035841 esac
35842
John Criswell0c38eaf2003-09-10 15:17:25 +000035843 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035844 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035845 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35846 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035847 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35848 echo "$ac_cs_version"; exit ;;
35849 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035850 debug=: ;;
35851 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035852 $ac_shift
35853 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035854 ac_need_defaults=false;;
35855 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035856 $ac_shift
35857 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035858 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035859 --he | --h)
35860 # Conflict between --help and --header
35861 { echo "$as_me: error: ambiguous option: $1
35862Try \`$0 --help' for more information." >&2
35863 { (exit 1); exit 1; }; };;
35864 --help | --hel | -h )
35865 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35868 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035869
35870 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035871 -*) { echo "$as_me: error: unrecognized option: $1
35872Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035873 { (exit 1); exit 1; }; } ;;
35874
Reid Spencera773bd52006-08-04 18:18:08 +000035875 *) ac_config_targets="$ac_config_targets $1"
35876 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035877
35878 esac
35879 shift
35880done
35881
John Criswell0c38eaf2003-09-10 15:17:25 +000035882ac_configure_extra_args=
35883
35884if $ac_cs_silent; then
35885 exec 6>/dev/null
35886 ac_configure_extra_args="$ac_configure_extra_args --silent"
35887fi
35888
35889_ACEOF
35890cat >>$CONFIG_STATUS <<_ACEOF
35891if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035892 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35893 CONFIG_SHELL=$SHELL
35894 export CONFIG_SHELL
35895 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035896fi
35897
John Criswell7a73b802003-06-30 21:59:07 +000035898_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035899cat >>$CONFIG_STATUS <<\_ACEOF
35900exec 5>>config.log
35901{
35902 echo
35903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35904## Running $as_me. ##
35905_ASBOX
35906 echo "$ac_log"
35907} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035908
Reid Spencera773bd52006-08-04 18:18:08 +000035909_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035910cat >>$CONFIG_STATUS <<_ACEOF
35911#
Reid Spencera773bd52006-08-04 18:18:08 +000035912# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035913#
Reid Spencerc0682832005-02-24 19:05:19 +000035914llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035915
35916_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035917
John Criswell7a73b802003-06-30 21:59:07 +000035918cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035919
35920# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035921for ac_config_target in $ac_config_targets
35922do
Reid Spencera773bd52006-08-04 18:18:08 +000035923 case $ac_config_target in
35924 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000035925 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35926 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035927 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035928 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035929 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035930 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035931 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035932 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035933 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35934 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35935 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35936 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35937 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35938 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035939 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035940 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35941 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035942 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035943 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35944 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35945 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035946 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35947 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035948
John Criswell7a73b802003-06-30 21:59:07 +000035949 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35950echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35951 { (exit 1); exit 1; }; };;
35952 esac
35953done
35954
Reid Spencera773bd52006-08-04 18:18:08 +000035955
John Criswell7a73b802003-06-30 21:59:07 +000035956# If the user did not use the arguments to specify the items to instantiate,
35957# then the envvar interface is used. Set only those that are not.
35958# We use the long form for the default assignment because of an extremely
35959# bizarre bug on SunOS 4.1.3.
35960if $ac_need_defaults; then
35961 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35962 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035963 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035964fi
35965
John Criswell0c38eaf2003-09-10 15:17:25 +000035966# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035967# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035968# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035969# Hook for its removal unless debugging.
35970# Note that there is a small window in which the directory will not be cleaned:
35971# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035972$debug ||
35973{
Reid Spencera773bd52006-08-04 18:18:08 +000035974 tmp=
35975 trap 'exit_status=$?
35976 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35977' 0
John Criswell7a73b802003-06-30 21:59:07 +000035978 trap '{ (exit 1); exit 1; }' 1 2 13 15
35979}
John Criswell7a73b802003-06-30 21:59:07 +000035980# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035981
John Criswell7a73b802003-06-30 21:59:07 +000035982{
Reid Spencera773bd52006-08-04 18:18:08 +000035983 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035984 test -n "$tmp" && test -d "$tmp"
35985} ||
35986{
Reid Spencera773bd52006-08-04 18:18:08 +000035987 tmp=./conf$$-$RANDOM
35988 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035989} ||
35990{
John Criswell0c38eaf2003-09-10 15:17:25 +000035991 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035992 { (exit 1); exit 1; }
35993}
35994
John Criswell7a73b802003-06-30 21:59:07 +000035995#
Reid Spencera773bd52006-08-04 18:18:08 +000035996# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035997#
35998
35999# No need to generate the scripts if there are no CONFIG_FILES.
36000# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000036001if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000036002
36003_ACEOF
36004
Reid Spencera773bd52006-08-04 18:18:08 +000036005
36006
36007ac_delim='%!_!# '
36008for ac_last_try in false false false false false :; do
36009 cat >conf$$subs.sed <<_ACEOF
36010SHELL!$SHELL$ac_delim
36011PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36012PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36013PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36014PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36015PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36016PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36017exec_prefix!$exec_prefix$ac_delim
36018prefix!$prefix$ac_delim
36019program_transform_name!$program_transform_name$ac_delim
36020bindir!$bindir$ac_delim
36021sbindir!$sbindir$ac_delim
36022libexecdir!$libexecdir$ac_delim
36023datarootdir!$datarootdir$ac_delim
36024datadir!$datadir$ac_delim
36025sysconfdir!$sysconfdir$ac_delim
36026sharedstatedir!$sharedstatedir$ac_delim
36027localstatedir!$localstatedir$ac_delim
36028includedir!$includedir$ac_delim
36029oldincludedir!$oldincludedir$ac_delim
36030docdir!$docdir$ac_delim
36031infodir!$infodir$ac_delim
36032htmldir!$htmldir$ac_delim
36033dvidir!$dvidir$ac_delim
36034pdfdir!$pdfdir$ac_delim
36035psdir!$psdir$ac_delim
36036libdir!$libdir$ac_delim
36037localedir!$localedir$ac_delim
36038mandir!$mandir$ac_delim
36039DEFS!$DEFS$ac_delim
36040ECHO_C!$ECHO_C$ac_delim
36041ECHO_N!$ECHO_N$ac_delim
36042ECHO_T!$ECHO_T$ac_delim
36043LIBS!$LIBS$ac_delim
36044build_alias!$build_alias$ac_delim
36045host_alias!$host_alias$ac_delim
36046target_alias!$target_alias$ac_delim
36047LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36048subdirs!$subdirs$ac_delim
36049build!$build$ac_delim
36050build_cpu!$build_cpu$ac_delim
36051build_vendor!$build_vendor$ac_delim
36052build_os!$build_os$ac_delim
36053host!$host$ac_delim
36054host_cpu!$host_cpu$ac_delim
36055host_vendor!$host_vendor$ac_delim
36056host_os!$host_os$ac_delim
36057target!$target$ac_delim
36058target_cpu!$target_cpu$ac_delim
36059target_vendor!$target_vendor$ac_delim
36060target_os!$target_os$ac_delim
36061OS!$OS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036062HOST_OS!$HOST_OS$ac_delim
36063TARGET_OS!$TARGET_OS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036064LINKALL!$LINKALL$ac_delim
36065NOLINKALL!$NOLINKALL$ac_delim
36066LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36067LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000036068ARCH!$ARCH$ac_delim
36069ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036070CC!$CC$ac_delim
36071CFLAGS!$CFLAGS$ac_delim
36072LDFLAGS!$LDFLAGS$ac_delim
36073CPPFLAGS!$CPPFLAGS$ac_delim
36074ac_ct_CC!$ac_ct_CC$ac_delim
36075EXEEXT!$EXEEXT$ac_delim
36076OBJEXT!$OBJEXT$ac_delim
36077CPP!$CPP$ac_delim
36078GREP!$GREP$ac_delim
36079EGREP!$EGREP$ac_delim
36080LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36081BUILD_CC!$BUILD_CC$ac_delim
36082BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000036083BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036084CVSBUILD!$CVSBUILD$ac_delim
36085ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036086ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036087DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000036088ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36089EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000036090DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036091JIT!$JIT$ac_delim
36092TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36093ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36094ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000036095ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036096TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036097LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36098LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036099LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000036100ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036101EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000036102BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036103ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36104ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036105CXX!$CXX$ac_delim
Gabor Greif4c750542009-08-27 17:07:35 +000036106CXXFLAGS!$CXXFLAGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036107_ACEOF
36108
36109 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36110 break
36111 elif $ac_last_try; then
36112 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36113echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36114 { (exit 1); exit 1; }; }
36115 else
36116 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000036117 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036118done
36119
36120ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36121if test -n "$ac_eof"; then
36122 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36123 ac_eof=`expr $ac_eof + 1`
36124fi
36125
36126cat >>$CONFIG_STATUS <<_ACEOF
36127cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36128/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36129_ACEOF
36130sed '
36131s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36132s/^/s,@/; s/!/@,|#_!!_#|/
36133:n
36134t n
36135s/'"$ac_delim"'$/,g/; t
36136s/$/\\/; p
36137N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36138' >>$CONFIG_STATUS <conf$$subs.sed
36139rm -f conf$$subs.sed
36140cat >>$CONFIG_STATUS <<_ACEOF
36141CEOF$ac_eof
36142_ACEOF
36143
36144
36145ac_delim='%!_!# '
36146for ac_last_try in false false false false false :; do
36147 cat >conf$$subs.sed <<_ACEOF
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036148ac_ct_CXX!$ac_ct_CXX$ac_delim
Shantonu Sen7e836972009-08-11 13:39:52 +000036149NM!$NM$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036150ifGNUmake!$ifGNUmake$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036151LN_S!$LN_S$ac_delim
36152CMP!$CMP$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036153CP!$CP$ac_delim
36154DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036155FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036156MKDIR!$MKDIR$ac_delim
36157MV!$MV$ac_delim
36158RANLIB!$RANLIB$ac_delim
36159RM!$RM$ac_delim
36160SED!$SED$ac_delim
36161TAR!$TAR$ac_delim
36162BINPWD!$BINPWD$ac_delim
36163GRAPHVIZ!$GRAPHVIZ$ac_delim
36164DOT!$DOT$ac_delim
David Greenef0b9eff2009-07-09 17:16:26 +000036165FDP!$FDP$ac_delim
36166NEATO!$NEATO$ac_delim
36167TWOPI!$TWOPI$ac_delim
36168CIRCO!$CIRCO$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036169GV!$GV$ac_delim
36170DOTTY!$DOTTY$ac_delim
36171PERL!$PERL$ac_delim
36172HAVE_PERL!$HAVE_PERL$ac_delim
36173INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36174INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36175INSTALL_DATA!$INSTALL_DATA$ac_delim
36176BZIP2!$BZIP2$ac_delim
36177DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036178GROFF!$GROFF$ac_delim
36179GZIP!$GZIP$ac_delim
36180POD2HTML!$POD2HTML$ac_delim
36181POD2MAN!$POD2MAN$ac_delim
36182RUNTEST!$RUNTEST$ac_delim
36183TCLSH!$TCLSH$ac_delim
36184ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000036185OCAMLC!$OCAMLC$ac_delim
36186OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000036187OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000036188OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000036189GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036190INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36191INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36192CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36193CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36194LIBADD_DL!$LIBADD_DL$ac_delim
36195ECHO!$ECHO$ac_delim
36196AR!$AR$ac_delim
36197STRIP!$STRIP$ac_delim
36198CXXCPP!$CXXCPP$ac_delim
36199F77!$F77$ac_delim
36200FFLAGS!$FFLAGS$ac_delim
36201ac_ct_F77!$ac_ct_F77$ac_delim
36202LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000036203LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36204LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000036205LLVMGCC!$LLVMGCC$ac_delim
36206LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000036207USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000036208USE_OPROFILE!$USE_OPROFILE$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000036209HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000036210HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036211ALLOCA!$ALLOCA$ac_delim
36212MMAP_FILE!$MMAP_FILE$ac_delim
36213LLVMCC1!$LLVMCC1$ac_delim
36214LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36215LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000036216LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036217LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36218LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000036219LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036220SHLIBEXT!$SHLIBEXT$ac_delim
36221LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36222LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36223LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36224LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36225LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36226LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36227LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36228LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36229LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36230LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000036231BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36232ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000036233OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000036234ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000036235RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000036236RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036237LIBOBJS!$LIBOBJS$ac_delim
36238LTLIBOBJS!$LTLIBOBJS$ac_delim
36239_ACEOF
36240
Gabor Greif4c750542009-08-27 17:07:35 +000036241 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Reid Spencera773bd52006-08-04 18:18:08 +000036242 break
36243 elif $ac_last_try; then
36244 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36245echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36246 { (exit 1); exit 1; }; }
36247 else
36248 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36249 fi
36250done
36251
36252ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36253if test -n "$ac_eof"; then
36254 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36255 ac_eof=`expr $ac_eof + 1`
36256fi
36257
36258cat >>$CONFIG_STATUS <<_ACEOF
36259cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36260/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36261_ACEOF
36262sed '
36263s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36264s/^/s,@/; s/!/@,|#_!!_#|/
36265:n
36266t n
36267s/'"$ac_delim"'$/,g/; t
36268s/$/\\/; p
36269N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36270' >>$CONFIG_STATUS <conf$$subs.sed
36271rm -f conf$$subs.sed
36272cat >>$CONFIG_STATUS <<_ACEOF
36273:end
36274s/|#_!!_#|//g
36275CEOF$ac_eof
36276_ACEOF
36277
36278
36279# VPATH may cause trouble with some makes, so we remove $(srcdir),
36280# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36281# trailing colons and then remove the whole line if VPATH becomes empty
36282# (actually we leave an empty line to preserve line numbers).
36283if test "x$srcdir" = x.; then
36284 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36285s/:*\$(srcdir):*/:/
36286s/:*\${srcdir}:*/:/
36287s/:*@srcdir@:*/:/
36288s/^\([^=]*=[ ]*\):*/\1/
36289s/:*$//
36290s/^[^=]*=[ ]*$//
36291}'
36292fi
36293
36294cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036295fi # test -n "$CONFIG_FILES"
36296
Reid Spencera773bd52006-08-04 18:18:08 +000036297
36298for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36299do
36300 case $ac_tag in
36301 :[FHLC]) ac_mode=$ac_tag; continue;;
36302 esac
36303 case $ac_mode$ac_tag in
36304 :[FHL]*:*);;
36305 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36306echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36307 { (exit 1); exit 1; }; };;
36308 :[FH]-) ac_tag=-:-;;
36309 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36310 esac
36311 ac_save_IFS=$IFS
36312 IFS=:
36313 set x $ac_tag
36314 IFS=$ac_save_IFS
36315 shift
36316 ac_file=$1
36317 shift
36318
36319 case $ac_mode in
36320 :L) ac_source=$1;;
36321 :[FH])
36322 ac_file_inputs=
36323 for ac_f
36324 do
36325 case $ac_f in
36326 -) ac_f="$tmp/stdin";;
36327 *) # Look for the file first in the build tree, then in the source tree
36328 # (if the path is not absolute). The absolute path cannot be DOS-style,
36329 # because $ac_f cannot contain `:'.
36330 test -f "$ac_f" ||
36331 case $ac_f in
36332 [\\/$]*) false;;
36333 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36334 esac ||
36335 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36336echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36337 { (exit 1); exit 1; }; };;
36338 esac
36339 ac_file_inputs="$ac_file_inputs $ac_f"
36340 done
36341
36342 # Let's still pretend it is `configure' which instantiates (i.e., don't
36343 # use $as_me), people would be surprised to read:
36344 # /* config.h. Generated by config.status. */
36345 configure_input="Generated from "`IFS=:
36346 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36347 if test x"$ac_file" != x-; then
36348 configure_input="$ac_file. $configure_input"
36349 { echo "$as_me:$LINENO: creating $ac_file" >&5
36350echo "$as_me: creating $ac_file" >&6;}
36351 fi
36352
36353 case $ac_tag in
36354 *:-:* | *:-) cat >"$tmp/stdin";;
36355 esac
36356 ;;
John Criswell7a73b802003-06-30 21:59:07 +000036357 esac
36358
Reid Spencera773bd52006-08-04 18:18:08 +000036359 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000036360$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036361 X"$ac_file" : 'X\(//\)[^/]' \| \
36362 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036363 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000036364echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000036365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36366 s//\1/
36367 q
36368 }
36369 /^X\(\/\/\)[^/].*/{
36370 s//\1/
36371 q
36372 }
36373 /^X\(\/\/\)$/{
36374 s//\1/
36375 q
36376 }
36377 /^X\(\/\).*/{
36378 s//\1/
36379 q
36380 }
36381 s/.*/./; q'`
36382 { as_dir="$ac_dir"
36383 case $as_dir in #(
36384 -*) as_dir=./$as_dir;;
36385 esac
36386 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000036387 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036388 while :; do
36389 case $as_dir in #(
36390 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36391 *) as_qdir=$as_dir;;
36392 esac
36393 as_dirs="'$as_qdir' $as_dirs"
36394 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036395$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036396 X"$as_dir" : 'X\(//\)[^/]' \| \
36397 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036398 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036399echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36401 s//\1/
36402 q
36403 }
36404 /^X\(\/\/\)[^/].*/{
36405 s//\1/
36406 q
36407 }
36408 /^X\(\/\/\)$/{
36409 s//\1/
36410 q
36411 }
36412 /^X\(\/\).*/{
36413 s//\1/
36414 q
36415 }
36416 s/.*/./; q'`
36417 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000036418 done
Reid Spencera773bd52006-08-04 18:18:08 +000036419 test -z "$as_dirs" || eval "mkdir $as_dirs"
36420 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36421echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000036422 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000036423 ac_builddir=.
36424
Reid Spencera773bd52006-08-04 18:18:08 +000036425case "$ac_dir" in
36426.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36427*)
John Criswell7a73b802003-06-30 21:59:07 +000036428 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036429 # A ".." for each directory in $ac_dir_suffix.
36430 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36431 case $ac_top_builddir_sub in
36432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36434 esac ;;
36435esac
36436ac_abs_top_builddir=$ac_pwd
36437ac_abs_builddir=$ac_pwd$ac_dir_suffix
36438# for backward compatibility:
36439ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000036440
36441case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036442 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000036443 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036444 ac_top_srcdir=$ac_top_builddir_sub
36445 ac_abs_top_srcdir=$ac_pwd ;;
36446 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000036447 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036448 ac_top_srcdir=$srcdir
36449 ac_abs_top_srcdir=$srcdir ;;
36450 *) # Relative name.
36451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36452 ac_top_srcdir=$ac_top_build_prefix$srcdir
36453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000036454esac
Reid Spencera773bd52006-08-04 18:18:08 +000036455ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000036456
John Criswell7a73b802003-06-30 21:59:07 +000036457
Reid Spencera773bd52006-08-04 18:18:08 +000036458 case $ac_mode in
36459 :F)
36460 #
36461 # CONFIG_FILE
36462 #
John Criswell7a73b802003-06-30 21:59:07 +000036463
36464 case $INSTALL in
36465 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036466 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000036467 esac
John Criswell7a73b802003-06-30 21:59:07 +000036468_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036469
36470cat >>$CONFIG_STATUS <<\_ACEOF
36471# If the template does not know about datarootdir, expand it.
36472# FIXME: This hack should be removed a few years after 2.60.
36473ac_datarootdir_hack=; ac_datarootdir_seen=
36474
36475case `sed -n '/datarootdir/ {
36476 p
36477 q
36478}
36479/@datadir@/p
36480/@docdir@/p
36481/@infodir@/p
36482/@localedir@/p
36483/@mandir@/p
36484' $ac_file_inputs` in
36485*datarootdir*) ac_datarootdir_seen=yes;;
36486*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36487 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36488echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36489_ACEOF
36490cat >>$CONFIG_STATUS <<_ACEOF
36491 ac_datarootdir_hack='
36492 s&@datadir@&$datadir&g
36493 s&@docdir@&$docdir&g
36494 s&@infodir@&$infodir&g
36495 s&@localedir@&$localedir&g
36496 s&@mandir@&$mandir&g
36497 s&\\\${datarootdir}&$datarootdir&g' ;;
36498esac
36499_ACEOF
36500
36501# Neutralize VPATH when `$srcdir' = `.'.
36502# Shell code in configure.ac might set extrasub.
36503# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000036504cat >>$CONFIG_STATUS <<_ACEOF
36505 sed "$ac_vpsub
36506$extrasub
36507_ACEOF
36508cat >>$CONFIG_STATUS <<\_ACEOF
36509:t
36510/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000036511s&@configure_input@&$configure_input&;t t
36512s&@top_builddir@&$ac_top_builddir_sub&;t t
36513s&@srcdir@&$ac_srcdir&;t t
36514s&@abs_srcdir@&$ac_abs_srcdir&;t t
36515s&@top_srcdir@&$ac_top_srcdir&;t t
36516s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36517s&@builddir@&$ac_builddir&;t t
36518s&@abs_builddir@&$ac_abs_builddir&;t t
36519s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36520s&@INSTALL@&$ac_INSTALL&;t t
36521$ac_datarootdir_hack
36522" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000036523
Reid Spencera773bd52006-08-04 18:18:08 +000036524test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36525 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36526 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36527 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36528which seems to be undefined. Please make sure it is defined." >&5
36529echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36530which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000036531
Reid Spencera773bd52006-08-04 18:18:08 +000036532 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000036533 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000036534 -) cat "$tmp/out"; rm -f "$tmp/out";;
36535 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000036536 esac
Reid Spencera773bd52006-08-04 18:18:08 +000036537 ;;
36538 :H)
36539 #
36540 # CONFIG_HEADER
36541 #
John Criswell7a73b802003-06-30 21:59:07 +000036542_ACEOF
36543
Reid Spencera773bd52006-08-04 18:18:08 +000036544# Transform confdefs.h into a sed script `conftest.defines', that
36545# substitutes the proper values into config.h.in to produce config.h.
36546rm -f conftest.defines conftest.tail
36547# First, append a space to every undef/define line, to ease matching.
36548echo 's/$/ /' >conftest.defines
36549# Then, protect against being on the right side of a sed subst, or in
36550# an unquoted here document, in config.status. If some macros were
36551# called several times there might be several #defines for the same
36552# symbol, which is useless. But do not sort them, since the last
36553# AC_DEFINE must be honored.
36554ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36555# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36556# NAME is the cpp macro being defined, VALUE is the value it is being given.
36557# PARAMS is the parameter list in the macro definition--in most cases, it's
36558# just an empty string.
36559ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36560ac_dB='\\)[ (].*,\\1define\\2'
36561ac_dC=' '
36562ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000036563
Reid Spencera773bd52006-08-04 18:18:08 +000036564uniq confdefs.h |
36565 sed -n '
36566 t rset
36567 :rset
36568 s/^[ ]*#[ ]*define[ ][ ]*//
36569 t ok
36570 d
36571 :ok
36572 s/[\\&,]/\\&/g
36573 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36574 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36575 ' >>conftest.defines
36576
36577# Remove the space that was appended to ease matching.
36578# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000036579# example, in the case of _POSIX_SOURCE, which is predefined and required
36580# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000036581# (The regexp can be short, since the line contains either #define or #undef.)
36582echo 's/ $//
36583s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000036584
Reid Spencera773bd52006-08-04 18:18:08 +000036585# Break up conftest.defines:
36586ac_max_sed_lines=50
36587
36588# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36589# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36590# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36591# et cetera.
36592ac_in='$ac_file_inputs'
36593ac_out='"$tmp/out1"'
36594ac_nxt='"$tmp/out2"'
36595
36596while :
John Criswell7a73b802003-06-30 21:59:07 +000036597do
Reid Spencera773bd52006-08-04 18:18:08 +000036598 # Write a here document:
36599 cat >>$CONFIG_STATUS <<_ACEOF
36600 # First, check the format of the line:
36601 cat >"\$tmp/defines.sed" <<\\CEOF
36602/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36603/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36604b
36605:def
36606_ACEOF
36607 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036608 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036609 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36610 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36611 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36612 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000036613 rm -f conftest.defines
36614 mv conftest.tail conftest.defines
36615done
Reid Spencera773bd52006-08-04 18:18:08 +000036616rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000036617
Reid Spencera773bd52006-08-04 18:18:08 +000036618echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036619cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036620 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000036621 echo "/* $configure_input */" >"$tmp/config.h"
36622 cat "$ac_result" >>"$tmp/config.h"
36623 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000036624 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36625echo "$as_me: $ac_file is unchanged" >&6;}
36626 else
John Criswell7a73b802003-06-30 21:59:07 +000036627 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000036628 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000036629 fi
36630 else
Reid Spencera773bd52006-08-04 18:18:08 +000036631 echo "/* $configure_input */"
36632 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000036633 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036634 rm -f "$tmp/out12"
36635 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036636
Reid Spencera773bd52006-08-04 18:18:08 +000036637 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36638echo "$as_me: executing $ac_file commands" >&6;}
36639 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036640 esac
John Criswell7a73b802003-06-30 21:59:07 +000036641
Reid Spencera773bd52006-08-04 18:18:08 +000036642
36643 case $ac_file$ac_mode in
36644 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036645 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036646 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000036647 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036648 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036649 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036650 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036651 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036652 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036653 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036654 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036655 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036656 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000036657 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036658 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036659 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036660 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036661 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036662 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036663 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036664 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036665 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036666 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036667 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036668 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000036669 ${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 +000036670
36671 esac
36672done # for ac_tag
36673
John Criswell7a73b802003-06-30 21:59:07 +000036674
36675{ (exit 0); exit 0; }
36676_ACEOF
36677chmod +x $CONFIG_STATUS
36678ac_clean_files=$ac_clean_files_save
36679
36680
36681# configure is writing to config.log, and then calls config.status.
36682# config.status does its own redirection, appending to config.log.
36683# Unfortunately, on DOS this fails, as config.log is still kept open
36684# by configure, so config.status won't be able to write to it; its
36685# output is simply discarded. So we exec the FD to /dev/null,
36686# effectively closing config.log, so it can be properly (re)opened and
36687# appended to by config.status. When coming back to configure, we
36688# need to make the FD available again.
36689if test "$no_create" != yes; then
36690 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000036691 ac_config_status_args=
36692 test "$silent" = yes &&
36693 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000036694 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000036695 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000036696 exec 5>>config.log
36697 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36698 # would make configure fail if this is the last instruction.
36699 $ac_cs_success || { (exit 1); exit 1; }
36700fi
36701
John Criswell12399a12003-09-30 15:55:44 +000036702#
36703# CONFIG_SUBDIRS section.
36704#
36705if test "$no_recursion" != yes; then
36706
36707 # Remove --cache-file and --srcdir arguments so they do not pile up.
36708 ac_sub_configure_args=
36709 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000036710 eval "set x $ac_configure_args"
36711 shift
36712 for ac_arg
36713 do
John Criswell12399a12003-09-30 15:55:44 +000036714 if test -n "$ac_prev"; then
36715 ac_prev=
36716 continue
36717 fi
36718 case $ac_arg in
36719 -cache-file | --cache-file | --cache-fil | --cache-fi \
36720 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36721 ac_prev=cache_file ;;
36722 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36723 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36724 | --c=*)
36725 ;;
36726 --config-cache | -C)
36727 ;;
36728 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36729 ac_prev=srcdir ;;
36730 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36731 ;;
36732 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36733 ac_prev=prefix ;;
36734 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36735 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036736 *)
36737 case $ac_arg in
36738 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36739 esac
36740 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036741 esac
36742 done
36743
36744 # Always prepend --prefix to ensure using the same prefix
36745 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036746 ac_arg="--prefix=$prefix"
36747 case $ac_arg in
36748 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36749 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000036750 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036751
36752 ac_popdir=`pwd`
36753 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36754
36755 # Do not complain, so a configure script can configure whichever
36756 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036757 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036758
Reid Spencera773bd52006-08-04 18:18:08 +000036759 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36760 echo "$as_me:$LINENO: $ac_msg" >&5
36761 echo "$ac_msg" >&6
36762 { as_dir="$ac_dir"
36763 case $as_dir in #(
36764 -*) as_dir=./$as_dir;;
36765 esac
36766 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036767 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036768 while :; do
36769 case $as_dir in #(
36770 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36771 *) as_qdir=$as_dir;;
36772 esac
36773 as_dirs="'$as_qdir' $as_dirs"
36774 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036775$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036776 X"$as_dir" : 'X\(//\)[^/]' \| \
36777 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036778 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036779echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36781 s//\1/
36782 q
36783 }
36784 /^X\(\/\/\)[^/].*/{
36785 s//\1/
36786 q
36787 }
36788 /^X\(\/\/\)$/{
36789 s//\1/
36790 q
36791 }
36792 /^X\(\/\).*/{
36793 s//\1/
36794 q
36795 }
36796 s/.*/./; q'`
36797 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036798 done
Reid Spencera773bd52006-08-04 18:18:08 +000036799 test -z "$as_dirs" || eval "mkdir $as_dirs"
36800 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36801echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036802 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036803 ac_builddir=.
36804
Reid Spencera773bd52006-08-04 18:18:08 +000036805case "$ac_dir" in
36806.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36807*)
John Criswell12399a12003-09-30 15:55:44 +000036808 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036809 # A ".." for each directory in $ac_dir_suffix.
36810 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36811 case $ac_top_builddir_sub in
36812 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36813 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36814 esac ;;
36815esac
36816ac_abs_top_builddir=$ac_pwd
36817ac_abs_builddir=$ac_pwd$ac_dir_suffix
36818# for backward compatibility:
36819ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036820
36821case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036822 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036823 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036824 ac_top_srcdir=$ac_top_builddir_sub
36825 ac_abs_top_srcdir=$ac_pwd ;;
36826 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036827 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036828 ac_top_srcdir=$srcdir
36829 ac_abs_top_srcdir=$srcdir ;;
36830 *) # Relative name.
36831 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36832 ac_top_srcdir=$ac_top_build_prefix$srcdir
36833 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036834esac
Reid Spencera773bd52006-08-04 18:18:08 +000036835ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036836
36837
Reid Spencera773bd52006-08-04 18:18:08 +000036838 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036839
36840 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036841 if test -f "$ac_srcdir/configure.gnu"; then
36842 ac_sub_configure=$ac_srcdir/configure.gnu
36843 elif test -f "$ac_srcdir/configure"; then
36844 ac_sub_configure=$ac_srcdir/configure
36845 elif test -f "$ac_srcdir/configure.in"; then
36846 # This should be Cygnus configure.
36847 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036848 else
36849 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36850echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36851 ac_sub_configure=
36852 fi
36853
36854 # The recursion is here.
36855 if test -n "$ac_sub_configure"; then
36856 # Make the cache file name correct relative to the subdirectory.
36857 case $cache_file in
36858 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036859 *) # Relative name.
36860 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036861 esac
36862
Reid Spencera773bd52006-08-04 18:18:08 +000036863 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36864echo "$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 +000036865 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036866 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36867 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036868 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036869echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36870 { (exit 1); exit 1; }; }
36871 fi
36872
Reid Spencera773bd52006-08-04 18:18:08 +000036873 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036874 done
36875fi
36876